tabexseriescomponents 0.0.249 → 0.0.251
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/index.cjs.js +1095 -418
- package/dist/index.esm.js +1092 -417
- package/dist/index.umd.js +1096 -421
- package/package.json +3 -1
- package/src.zip +0 -0
- package/src-components.zip +0 -0
package/dist/index.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@babel/runtime/helpers/slicedToArray'), require('react'), require('@babel/runtime/helpers/classCallCheck'), require('@babel/runtime/helpers/createClass'), require('@babel/runtime/helpers/assertThisInitialized'), require('@babel/runtime/helpers/inherits'), require('@babel/runtime/helpers/possibleConstructorReturn'), require('@babel/runtime/helpers/getPrototypeOf'), require('@babel/runtime/helpers/defineProperty'), require('universal-cookie'), require('react-cssfx-loading'), require('glamor'), require('@react-oauth/google'), require('jwt-decode'), require('react-facebook-login/dist/facebook-login-render-props'), require('@react-icons/all-files/fa/FaFacebookF'), require('@react-icons/all-files/ai/AiOutlineUser'), require('@react-icons/all-files/io/IoMdClose'), require('react-bootstrap'), require('react-query'), require('react-image-gallery'), require('@react-icons/all-files/md/MdAddShoppingCart'), require('@react-icons/all-files/io5/IoBagHandleOutline'), require('@react-icons/all-files/bs/BsBag'), require('@react-icons/all-files/cg/CgShoppingBag'), require('@react-icons/all-files/fa/FaRegHeart'), require('@react-icons/all-files/fa/FaHeart'), require('@react-icons/all-files/fi/FiShoppingBag'), require('@react-icons/all-files/fi/FiShoppingCart'), require('@react-icons/all-files/ai/AiFillStar'), require('@react-icons/all-files/ai/AiOutlineStar'), require('react-share'), require('imagekitio-react'), require('@mui/material'), require('@react-icons/all-files/ai/AiOutlineClockCircle'), require('@react-icons/all-files/ai/AiOutlinePlus'), require('@react-icons/all-files/ai/AiOutlineCheck'), require('react-horizontal-scrolling-menu'), require('@react-icons/all-files/hi/HiOutlinePhone'), require('@react-icons/all-files/ai/AiOutlineMail'), require('@react-icons/all-files/fa/FaShippingFast'), require('@react-icons/all-files/ri/RiSecurePaymentLine'), require('@babel/runtime/helpers/toConsumableArray'), require('@react-icons/all-files/ai/AiOutlineSecurityScan'), require('@react-icons/all-files/fa/FaStar'), require('@react-icons/all-files/io5/IoLocationSharp'), require('@react-icons/all-files/hi/HiOutlineChevronRight'), require('@react-icons/all-files/hi/HiOutlineChevronLeft'), require('@react-icons/all-files/go/GoGlobe'), require('@react-icons/all-files/vsc/VscGlobe'), require('@react-icons/all-files/fi/FiLayers'), require('@react-icons/all-files/hi/HiOutlineTrash'), require('@react-icons/all-files/bi/BiSad'), require('@react-icons/all-files/fi/FiCalendar'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['@babel/runtime/helpers/slicedToArray', 'react', '@babel/runtime/helpers/classCallCheck', '@babel/runtime/helpers/createClass', '@babel/runtime/helpers/assertThisInitialized', '@babel/runtime/helpers/inherits', '@babel/runtime/helpers/possibleConstructorReturn', '@babel/runtime/helpers/getPrototypeOf', '@babel/runtime/helpers/defineProperty', 'universal-cookie', 'react-cssfx-loading', 'glamor', '@react-oauth/google', 'jwt-decode', 'react-facebook-login/dist/facebook-login-render-props', '@react-icons/all-files/fa/FaFacebookF', '@react-icons/all-files/ai/AiOutlineUser', '@react-icons/all-files/io/IoMdClose', 'react-bootstrap', 'react-query', 'react-image-gallery', '@react-icons/all-files/md/MdAddShoppingCart', '@react-icons/all-files/io5/IoBagHandleOutline', '@react-icons/all-files/bs/BsBag', '@react-icons/all-files/cg/CgShoppingBag', '@react-icons/all-files/fa/FaRegHeart', '@react-icons/all-files/fa/FaHeart', '@react-icons/all-files/fi/FiShoppingBag', '@react-icons/all-files/fi/FiShoppingCart', '@react-icons/all-files/ai/AiFillStar', '@react-icons/all-files/ai/AiOutlineStar', 'react-share', 'imagekitio-react', '@mui/material', '@react-icons/all-files/ai/AiOutlineClockCircle', '@react-icons/all-files/ai/AiOutlinePlus', '@react-icons/all-files/ai/AiOutlineCheck', 'react-horizontal-scrolling-menu', '@react-icons/all-files/hi/HiOutlinePhone', '@react-icons/all-files/ai/AiOutlineMail', '@react-icons/all-files/fa/FaShippingFast', '@react-icons/all-files/ri/RiSecurePaymentLine', '@babel/runtime/helpers/toConsumableArray', '@react-icons/all-files/ai/AiOutlineSecurityScan', '@react-icons/all-files/fa/FaStar', '@react-icons/all-files/io5/IoLocationSharp', '@react-icons/all-files/hi/HiOutlineChevronRight', '@react-icons/all-files/hi/HiOutlineChevronLeft', '@react-icons/all-files/go/GoGlobe', '@react-icons/all-files/vsc/VscGlobe', '@react-icons/all-files/fi/FiLayers', '@react-icons/all-files/hi/HiOutlineTrash', '@react-icons/all-files/bi/BiSad', '@react-icons/all-files/fi/FiCalendar', '
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.tabexseriescomponents = factory(global._slicedToArray, global.React, global._classCallCheck, global._createClass, global._assertThisInitialized, global._inherits, global._possibleConstructorReturn, global._getPrototypeOf, global._defineProperty, global.Cookies, global.reactCssfxLoading, global.glamor, global.google, global.jwtDecode, global.FacebookLogin, global.FaFacebookF, global.AiOutlineUser, global.IoMdClose, global.reactBootstrap, null, global.ImageGallery, global.MdAddShoppingCart, global.IoBagHandleOutline, global.BsBag, global.CgShoppingBag, global.FaRegHeart, global.FaHeart, global.FiShoppingBag, global.FiShoppingCart, global.AiFillStar, global.AiOutlineStar, global.reactShare, global.imagekitioReact, global.material, global.AiOutlineClockCircle, global.AiOutlinePlus, global.AiOutlineCheck, global.reactHorizontalScrollingMenu, global.HiOutlinePhone, global.AiOutlineMail, global.FaShippingFast, global.RiSecurePaymentLine, global._toConsumableArray, global.AiOutlineSecurityScan, global.FaStar, global.IoLocationSharp, global.HiOutlineChevronRight, global.HiOutlineChevronLeft, global.GoGlobe, global.VscGlobe, global.FiLayers, global.HiOutlineTrash, global.BiSad, global.FiCalendar, global.
|
|
5
|
-
})(this, (function (_slicedToArray, React, _classCallCheck, _createClass, _assertThisInitialized, _inherits, _possibleConstructorReturn, _getPrototypeOf, _defineProperty, Cookies, reactCssfxLoading, glamor, google, jwtDecode, FacebookLogin, FaFacebookF, AiOutlineUser, IoMdClose, reactBootstrap, reactQuery, ImageGallery, MdAddShoppingCart, IoBagHandleOutline, BsBag, CgShoppingBag, FaRegHeart, FaHeart, FiShoppingBag, FiShoppingCart, AiFillStar, AiOutlineStar, reactShare, imagekitioReact, material, AiOutlineClockCircle, AiOutlinePlus, AiOutlineCheck, reactHorizontalScrollingMenu, HiOutlinePhone, AiOutlineMail, FaShippingFast, RiSecurePaymentLine, _toConsumableArray, AiOutlineSecurityScan, FaStar, IoLocationSharp, HiOutlineChevronRight, HiOutlineChevronLeft, GoGlobe, VscGlobe, FiLayers, HiOutlineTrash, BiSad, FiCalendar,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@babel/runtime/helpers/slicedToArray'), require('react'), require('@babel/runtime/helpers/classCallCheck'), require('@babel/runtime/helpers/createClass'), require('@babel/runtime/helpers/assertThisInitialized'), require('@babel/runtime/helpers/inherits'), require('@babel/runtime/helpers/possibleConstructorReturn'), require('@babel/runtime/helpers/getPrototypeOf'), require('@babel/runtime/helpers/defineProperty'), require('universal-cookie'), require('react-cssfx-loading'), require('glamor'), require('@react-oauth/google'), require('jwt-decode'), require('react-facebook-login/dist/facebook-login-render-props'), require('@react-icons/all-files/fa/FaFacebookF'), require('@react-icons/all-files/ai/AiOutlineUser'), require('@react-icons/all-files/io/IoMdClose'), require('react-bootstrap'), require('react-query'), require('react-image-gallery'), require('@react-icons/all-files/md/MdAddShoppingCart'), require('@react-icons/all-files/io5/IoBagHandleOutline'), require('@react-icons/all-files/bs/BsBag'), require('@react-icons/all-files/cg/CgShoppingBag'), require('@react-icons/all-files/fa/FaRegHeart'), require('@react-icons/all-files/fa/FaHeart'), require('@react-icons/all-files/fi/FiShoppingBag'), require('@react-icons/all-files/fi/FiShoppingCart'), require('@react-icons/all-files/ai/AiFillStar'), require('@react-icons/all-files/ai/AiOutlineStar'), require('react-share'), require('imagekitio-react'), require('react-rating-stars-component'), require('@mui/material'), require('@react-icons/all-files/ai/AiOutlineClockCircle'), require('@react-icons/all-files/ai/AiOutlinePlus'), require('@react-icons/all-files/ai/AiOutlineCheck'), require('react-horizontal-scrolling-menu'), require('@react-icons/all-files/hi/HiOutlinePhone'), require('@react-icons/all-files/ai/AiOutlineMail'), require('@react-icons/all-files/fa/FaShippingFast'), require('@react-icons/all-files/ri/RiSecurePaymentLine'), require('react-textarea-autosize'), require('@babel/runtime/helpers/toConsumableArray'), require('@react-icons/all-files/ai/AiOutlineSecurityScan'), require('@react-icons/all-files/fa/FaStar'), require('@react-icons/all-files/io5/IoLocationSharp'), require('@react-icons/all-files/hi/HiOutlineChevronRight'), require('@react-icons/all-files/hi/HiOutlineChevronLeft'), require('@react-icons/all-files/go/GoGlobe'), require('@react-icons/all-files/vsc/VscGlobe'), require('@react-icons/all-files/fi/FiLayers'), require('@react-icons/all-files/hi/HiOutlineTrash'), require('@react-icons/all-files/bi/BiSad'), require('@react-icons/all-files/fi/FiCalendar'), require('@react-icons/all-files/hi/HiUser'), require('@react-icons/all-files/gr/GrMail'), require('@react-icons/all-files/fi/FiCheckCircle'), require('@react-icons/all-files/bi/BiPhone'), require('react-phone-input-2'), require('react-accessible-accordion'), require('@react-icons/all-files/bs/BsChevronLeft'), require('@react-icons/all-files/bs/BsChevronRight'), require('@react-icons/all-files/ri/RiArrowUpSLine'), require('@react-icons/all-files/ri/RiArrowDownSLine'), require('react-router-dom'), require('@react-icons/all-files/io5/IoBagCheckOutline'), require('@react-icons/all-files/io5/IoBagRemoveOutline'), require('react-bootstrap/Dropdown'), require('@react-icons/all-files/fi/FiChevronUp'), require('@react-icons/all-files/fi/FiChevronDown'), require('react-input-range'), require('react-intersection-observer'), require('@react-icons/all-files/fa/FaArrowAltCircleRight'), require('@react-icons/all-files/fa/FaArrowAltCircleLeft'), require('@react-icons/all-files/fi/FiFilter'), require('@react-icons/all-files/fi/FiChevronLeft'), require('@react-icons/all-files/fi/FiChevronRight'), require('react-paginate'), require('@react-icons/all-files/bi/BiGlobe'), require('@react-icons/all-files/md/MdKeyboardArrowDown'), require('@react-icons/all-files/fa/FaMoneyBillWave'), require('@react-icons/all-files/bi/BiLogOutCircle'), require('@react-icons/all-files/bi/BiChevronDown'), require('@react-icons/all-files/bi/BiUser'), require('@react-icons/all-files/ai/AiOutlineLogin'), require('@react-icons/all-files/ai/AiOutlineUserAdd'), require('@react-icons/all-files/ri/RiSearchLine'), require('@react-icons/all-files/cg/CgMenuLeft'), require('@react-icons/all-files/cg/CgMenuRight'), require('@react-icons/all-files/hi/HiOutlineShoppingBag'), require('@react-icons/all-files/ri/RiHandbagLine'), require('@react-icons/all-files/bi/BiSearch'), require('@react-icons/all-files/fi/FiUser'), require('@react-icons/all-files/ai/AiOutlineHeart'), require('@react-icons/all-files/fi/FiPhone'), require('@react-icons/all-files/hi/HiMenuAlt4'), require('@react-icons/all-files/fi/FiSearch'), require('@react-icons/all-files/bs/BsSearch'), require('@react-icons/all-files/ai/AiFillInstagram'), require('@react-icons/all-files/fa/FaWhatsapp'), require('@react-icons/all-files/go/GoSearch'), require('@react-icons/all-files/ai/AiOutlineInstagram'), require('@react-icons/all-files/md/MdKeyboardArrowUp'), require('@react-icons/all-files/bs/BsInfoCircle'), require('@react-icons/all-files/ai/AiFillPhone'), require('@react-icons/all-files/io5/IoClose'), require('@react-icons/all-files/fa/FaPhoneAlt'), require('@react-icons/all-files/fa/FaPhone'), require('@react-icons/all-files/ai/AiOutlinePhone'), require('@react-icons/all-files/go/GoLocation'), require('@react-icons/all-files/ri/RiRoadMapLine'), require('@react-icons/all-files/hi/HiOutlineClock'), require('react-select'), require('@react-icons/all-files/io/IoIosArrowRoundForward'), require('@react-icons/all-files/io/IoIosArrowRoundBack'), require('react-player'), require('react-background-slideshow'), require('@babel/runtime/helpers/extends'), require('react-slideshow-image'), require('@react-icons/all-files/hi/HiOutlineLocationMarker'), require('@react-icons/all-files/fi/FiPhoneCall'), require('@react-icons/all-files/fa/FaRegEye'), require('@react-icons/all-files/fi/FiMinus'), require('@react-icons/all-files/fi/FiPlus'), require('@react-icons/all-files/bs/BsArrowRight'), require('@react-icons/all-files/bs/BsArrowLeft'), require('@react-icons/all-files/bs/BsEye'), require('@react-icons/all-files/bi/BiTimeFive'), require('@react-icons/all-files/io/IoIosArrowUp')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['@babel/runtime/helpers/slicedToArray', 'react', '@babel/runtime/helpers/classCallCheck', '@babel/runtime/helpers/createClass', '@babel/runtime/helpers/assertThisInitialized', '@babel/runtime/helpers/inherits', '@babel/runtime/helpers/possibleConstructorReturn', '@babel/runtime/helpers/getPrototypeOf', '@babel/runtime/helpers/defineProperty', 'universal-cookie', 'react-cssfx-loading', 'glamor', '@react-oauth/google', 'jwt-decode', 'react-facebook-login/dist/facebook-login-render-props', '@react-icons/all-files/fa/FaFacebookF', '@react-icons/all-files/ai/AiOutlineUser', '@react-icons/all-files/io/IoMdClose', 'react-bootstrap', 'react-query', 'react-image-gallery', '@react-icons/all-files/md/MdAddShoppingCart', '@react-icons/all-files/io5/IoBagHandleOutline', '@react-icons/all-files/bs/BsBag', '@react-icons/all-files/cg/CgShoppingBag', '@react-icons/all-files/fa/FaRegHeart', '@react-icons/all-files/fa/FaHeart', '@react-icons/all-files/fi/FiShoppingBag', '@react-icons/all-files/fi/FiShoppingCart', '@react-icons/all-files/ai/AiFillStar', '@react-icons/all-files/ai/AiOutlineStar', 'react-share', 'imagekitio-react', 'react-rating-stars-component', '@mui/material', '@react-icons/all-files/ai/AiOutlineClockCircle', '@react-icons/all-files/ai/AiOutlinePlus', '@react-icons/all-files/ai/AiOutlineCheck', 'react-horizontal-scrolling-menu', '@react-icons/all-files/hi/HiOutlinePhone', '@react-icons/all-files/ai/AiOutlineMail', '@react-icons/all-files/fa/FaShippingFast', '@react-icons/all-files/ri/RiSecurePaymentLine', 'react-textarea-autosize', '@babel/runtime/helpers/toConsumableArray', '@react-icons/all-files/ai/AiOutlineSecurityScan', '@react-icons/all-files/fa/FaStar', '@react-icons/all-files/io5/IoLocationSharp', '@react-icons/all-files/hi/HiOutlineChevronRight', '@react-icons/all-files/hi/HiOutlineChevronLeft', '@react-icons/all-files/go/GoGlobe', '@react-icons/all-files/vsc/VscGlobe', '@react-icons/all-files/fi/FiLayers', '@react-icons/all-files/hi/HiOutlineTrash', '@react-icons/all-files/bi/BiSad', '@react-icons/all-files/fi/FiCalendar', '@react-icons/all-files/hi/HiUser', '@react-icons/all-files/gr/GrMail', '@react-icons/all-files/fi/FiCheckCircle', '@react-icons/all-files/bi/BiPhone', 'react-phone-input-2', 'react-accessible-accordion', '@react-icons/all-files/bs/BsChevronLeft', '@react-icons/all-files/bs/BsChevronRight', '@react-icons/all-files/ri/RiArrowUpSLine', '@react-icons/all-files/ri/RiArrowDownSLine', 'react-router-dom', '@react-icons/all-files/io5/IoBagCheckOutline', '@react-icons/all-files/io5/IoBagRemoveOutline', 'react-bootstrap/Dropdown', '@react-icons/all-files/fi/FiChevronUp', '@react-icons/all-files/fi/FiChevronDown', 'react-input-range', 'react-intersection-observer', '@react-icons/all-files/fa/FaArrowAltCircleRight', '@react-icons/all-files/fa/FaArrowAltCircleLeft', '@react-icons/all-files/fi/FiFilter', '@react-icons/all-files/fi/FiChevronLeft', '@react-icons/all-files/fi/FiChevronRight', 'react-paginate', '@react-icons/all-files/bi/BiGlobe', '@react-icons/all-files/md/MdKeyboardArrowDown', '@react-icons/all-files/fa/FaMoneyBillWave', '@react-icons/all-files/bi/BiLogOutCircle', '@react-icons/all-files/bi/BiChevronDown', '@react-icons/all-files/bi/BiUser', '@react-icons/all-files/ai/AiOutlineLogin', '@react-icons/all-files/ai/AiOutlineUserAdd', '@react-icons/all-files/ri/RiSearchLine', '@react-icons/all-files/cg/CgMenuLeft', '@react-icons/all-files/cg/CgMenuRight', '@react-icons/all-files/hi/HiOutlineShoppingBag', '@react-icons/all-files/ri/RiHandbagLine', '@react-icons/all-files/bi/BiSearch', '@react-icons/all-files/fi/FiUser', '@react-icons/all-files/ai/AiOutlineHeart', '@react-icons/all-files/fi/FiPhone', '@react-icons/all-files/hi/HiMenuAlt4', '@react-icons/all-files/fi/FiSearch', '@react-icons/all-files/bs/BsSearch', '@react-icons/all-files/ai/AiFillInstagram', '@react-icons/all-files/fa/FaWhatsapp', '@react-icons/all-files/go/GoSearch', '@react-icons/all-files/ai/AiOutlineInstagram', '@react-icons/all-files/md/MdKeyboardArrowUp', '@react-icons/all-files/bs/BsInfoCircle', '@react-icons/all-files/ai/AiFillPhone', '@react-icons/all-files/io5/IoClose', '@react-icons/all-files/fa/FaPhoneAlt', '@react-icons/all-files/fa/FaPhone', '@react-icons/all-files/ai/AiOutlinePhone', '@react-icons/all-files/go/GoLocation', '@react-icons/all-files/ri/RiRoadMapLine', '@react-icons/all-files/hi/HiOutlineClock', 'react-select', '@react-icons/all-files/io/IoIosArrowRoundForward', '@react-icons/all-files/io/IoIosArrowRoundBack', 'react-player', 'react-background-slideshow', '@babel/runtime/helpers/extends', 'react-slideshow-image', '@react-icons/all-files/hi/HiOutlineLocationMarker', '@react-icons/all-files/fi/FiPhoneCall', '@react-icons/all-files/fa/FaRegEye', '@react-icons/all-files/fi/FiMinus', '@react-icons/all-files/fi/FiPlus', '@react-icons/all-files/bs/BsArrowRight', '@react-icons/all-files/bs/BsArrowLeft', '@react-icons/all-files/bs/BsEye', '@react-icons/all-files/bi/BiTimeFive', '@react-icons/all-files/io/IoIosArrowUp'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.tabexseriescomponents = factory(global._slicedToArray, global.React, global._classCallCheck, global._createClass, global._assertThisInitialized, global._inherits, global._possibleConstructorReturn, global._getPrototypeOf, global._defineProperty, global.Cookies, global.reactCssfxLoading, global.glamor, global.google, global.jwtDecode, global.FacebookLogin, global.FaFacebookF, global.AiOutlineUser, global.IoMdClose, global.reactBootstrap, null, global.ImageGallery, global.MdAddShoppingCart, global.IoBagHandleOutline, global.BsBag, global.CgShoppingBag, global.FaRegHeart, global.FaHeart, global.FiShoppingBag, global.FiShoppingCart, global.AiFillStar, global.AiOutlineStar, global.reactShare, global.imagekitioReact, global.ReactStars, global.material, global.AiOutlineClockCircle, global.AiOutlinePlus, global.AiOutlineCheck, global.reactHorizontalScrollingMenu, global.HiOutlinePhone, global.AiOutlineMail, global.FaShippingFast, global.RiSecurePaymentLine, global.TextareaAutosize, global._toConsumableArray, global.AiOutlineSecurityScan, global.FaStar, global.IoLocationSharp, global.HiOutlineChevronRight, global.HiOutlineChevronLeft, global.GoGlobe, global.VscGlobe, global.FiLayers, global.HiOutlineTrash, global.BiSad, global.FiCalendar, global.HiUser, global.GrMail, global.FiCheckCircle, global.BiPhone, global.PhoneInput, global.reactAccessibleAccordion, global.BsChevronLeft, global.BsChevronRight, global.RiArrowUpSLine, global.RiArrowDownSLine, null, global.IoBagCheckOutline, global.IoBagRemoveOutline, global.Dropdown, global.FiChevronUp, global.FiChevronDown, global.InputRange, global.reactIntersectionObserver, global.FaArrowAltCircleRight, global.FaArrowAltCircleLeft, global.FiFilter, global.FiChevronLeft, global.FiChevronRight, global.ReactPaginate, global.BiGlobe, global.MdKeyboardArrowDown, global.FaMoneyBillWave, global.BiLogOutCircle, global.BiChevronDown, global.BiUser, global.AiOutlineLogin, global.AiOutlineUserAdd, global.RiSearchLine, global.CgMenuLeft, global.CgMenuRight, global.HiOutlineShoppingBag, global.RiHandbagLine, global.BiSearch, global.FiUser, global.AiOutlineHeart, global.FiPhone, global.HiMenuAlt4, global.FiSearch, global.BsSearch, global.AiFillInstagram, global.FaWhatsapp, global.GoSearch, global.AiOutlineInstagram, global.MdKeyboardArrowUp, global.BsInfoCircle, global.AiFillPhone, global.IoClose, global.FaPhoneAlt, global.FaPhone, global.AiOutlinePhone, global.GoLocation, global.RiRoadMapLine, global.HiOutlineClock, global.Select$2, global.IoIosArrowRoundForward, global.IoIosArrowRoundBack, global.ReactPlayer, global.BackgroundSlideshow, global._extends, global.reactSlideshowImage, global.HiOutlineLocationMarker, global.FiPhoneCall, global.FaRegEye, global.FiMinus, global.FiPlus, global.BsArrowRight, global.BsArrowLeft, global.BsEye, global.BiTimeFive, global.IoIosArrowUp));
|
|
5
|
+
})(this, (function (_slicedToArray, React, _classCallCheck, _createClass, _assertThisInitialized, _inherits, _possibleConstructorReturn, _getPrototypeOf, _defineProperty, Cookies, reactCssfxLoading, glamor, google, jwtDecode, FacebookLogin, FaFacebookF, AiOutlineUser, IoMdClose, reactBootstrap, reactQuery, ImageGallery, MdAddShoppingCart, IoBagHandleOutline, BsBag, CgShoppingBag, FaRegHeart, FaHeart, FiShoppingBag, FiShoppingCart, AiFillStar, AiOutlineStar, reactShare, imagekitioReact, ReactStars, material, AiOutlineClockCircle, AiOutlinePlus, AiOutlineCheck, reactHorizontalScrollingMenu, HiOutlinePhone, AiOutlineMail, FaShippingFast, RiSecurePaymentLine, TextareaAutosize, _toConsumableArray, AiOutlineSecurityScan, FaStar, IoLocationSharp, HiOutlineChevronRight, HiOutlineChevronLeft, GoGlobe, VscGlobe, FiLayers, HiOutlineTrash, BiSad, FiCalendar, HiUser, GrMail, FiCheckCircle, BiPhone, PhoneInput, reactAccessibleAccordion, BsChevronLeft, BsChevronRight, RiArrowUpSLine, RiArrowDownSLine, reactRouterDom, IoBagCheckOutline, IoBagRemoveOutline, Dropdown, FiChevronUp, FiChevronDown, InputRange, reactIntersectionObserver, FaArrowAltCircleRight, FaArrowAltCircleLeft, FiFilter, FiChevronLeft, FiChevronRight, ReactPaginate, BiGlobe, MdKeyboardArrowDown, FaMoneyBillWave, BiLogOutCircle, BiChevronDown, BiUser, AiOutlineLogin, AiOutlineUserAdd, RiSearchLine, CgMenuLeft, CgMenuRight, HiOutlineShoppingBag, RiHandbagLine, BiSearch, FiUser, AiOutlineHeart, FiPhone, HiMenuAlt4, FiSearch, BsSearch, AiFillInstagram, FaWhatsapp, GoSearch, AiOutlineInstagram, MdKeyboardArrowUp, BsInfoCircle, AiFillPhone, IoClose, FaPhoneAlt, FaPhone, AiOutlinePhone, GoLocation, RiRoadMapLine, HiOutlineClock, Select$2, IoIosArrowRoundForward, IoIosArrowRoundBack, ReactPlayer, BackgroundSlideshow, _extends, reactSlideshowImage, HiOutlineLocationMarker, FiPhoneCall, FaRegEye, FiMinus, FiPlus, BsArrowRight, BsArrowLeft, BsEye, BiTimeFive, IoIosArrowUp) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -19,10 +19,12 @@
|
|
|
19
19
|
var jwtDecode__default = /*#__PURE__*/_interopDefaultLegacy(jwtDecode);
|
|
20
20
|
var FacebookLogin__default = /*#__PURE__*/_interopDefaultLegacy(FacebookLogin);
|
|
21
21
|
var ImageGallery__default = /*#__PURE__*/_interopDefaultLegacy(ImageGallery);
|
|
22
|
-
var
|
|
22
|
+
var ReactStars__default = /*#__PURE__*/_interopDefaultLegacy(ReactStars);
|
|
23
23
|
var TextareaAutosize__default = /*#__PURE__*/_interopDefaultLegacy(TextareaAutosize);
|
|
24
|
+
var _toConsumableArray__default = /*#__PURE__*/_interopDefaultLegacy(_toConsumableArray);
|
|
24
25
|
var PhoneInput__default = /*#__PURE__*/_interopDefaultLegacy(PhoneInput);
|
|
25
26
|
var Dropdown__default = /*#__PURE__*/_interopDefaultLegacy(Dropdown);
|
|
27
|
+
var InputRange__default = /*#__PURE__*/_interopDefaultLegacy(InputRange);
|
|
26
28
|
var ReactPaginate__default = /*#__PURE__*/_interopDefaultLegacy(ReactPaginate);
|
|
27
29
|
var Select__default = /*#__PURE__*/_interopDefaultLegacy(Select$2);
|
|
28
30
|
var ReactPlayer__default = /*#__PURE__*/_interopDefaultLegacy(ReactPlayer);
|
|
@@ -163,8 +165,9 @@
|
|
|
163
165
|
loginwithfacebook: 'Sign in with facebook',
|
|
164
166
|
orsigninwith: 'Or Sign in with',
|
|
165
167
|
orsignupwith: 'Or Sign up with'
|
|
166
|
-
}, _defineProperty__default["default"](_en, "price", 'Price'), _defineProperty__default["default"](_en, "relatedproducts", 'Related products'), _defineProperty__default["default"](_en, "qty", 'QTY'), _defineProperty__default["default"](_en, "emptyshoppingcart", 'Your shopping cart is empty'), _defineProperty__default["default"](_en, "shopnow", 'Shop now'), _defineProperty__default["default"](_en, "total", 'Total'), _defineProperty__default["default"](_en, "otherinformation", 'Other information'), _defineProperty__default["default"](_en, "productname", 'Product name'), _defineProperty__default["default"](_en, "quantity", 'Quantity'), _defineProperty__default["default"](_en, "orderid", 'Order ID'), _defineProperty__default["default"](_en, "numberofproducts", 'Number of products'), _defineProperty__default["default"](_en, "checkyourorder", 'Check your order'), _defineProperty__default["default"](_en, "search", 'Search'), _defineProperty__default["default"](_en, "searchproducts", 'Search for products...'), _defineProperty__default["default"](_en, "choosecity", 'Choose city'), _defineProperty__default["default"](_en, "choosestategov", 'Choose state/governorate'), _defineProperty__default["default"](_en, "choosecountry", 'Choose country'), _defineProperty__default["default"](_en, "giftcarddicountcode", 'Gift Card Or Discount Code...'), _defineProperty__default["default"](_en, "nosearchresults", 'No search results'), _defineProperty__default["default"](_en, "sale", 'Sale'), _defineProperty__default["default"](_en, "nofavoriteproducts", 'Your wishlist is empty'), _defineProperty__default["default"](_en, "loggedoutsuccess", 'Logged out successfully'), _defineProperty__default["default"](_en, "addedtocartsuccess", 'Cart is updated successfully'), _defineProperty__default["default"](_en, "promocodeapplied", 'Promo code is applied.'), _defineProperty__default["default"](_en, "promocoderemoved", 'Promo code is removed'), _defineProperty__default["default"](_en, "countryandstateupdatedsuccess", 'Country and state are updated successfully'), _defineProperty__default["default"](_en, "orderaddedsuccess", 'Order is added successfully'), _defineProperty__default["default"](_en, "addedtowishlist", 'Added to your favourites'), _defineProperty__default["default"](_en, "productrmovedfromwishlist", 'Removed from your favourites'), _defineProperty__default["default"](_en, "fillthemissingfields", 'Please complete the missing fields'), _defineProperty__default["default"](_en, "passwordsdontmatch", "Passwords don't match"), _defineProperty__default["default"](_en, "loggedinsuccess", 'Logged in successfully'), _defineProperty__default["default"](_en, "subtotal", 'Sub total'), _defineProperty__default["default"](_en, "discount", 'Discount'), _defineProperty__default["default"](_en, "outofzone", 'Out of zone'), _defineProperty__default["default"](_en, "total", 'Total'), _defineProperty__default["default"](_en, "cod", 'Cash on Delivery'), _defineProperty__default["default"](_en, "cardondelivery", 'Credit Card On Delivery'), _defineProperty__default["default"](_en, "onlinepayment", 'Online Payment'), _defineProperty__default["default"](_en, "paymentcardinformation", 'Payment Card Information'), _defineProperty__default["default"](_en, "shippingfees", 'Shipping fees'), _defineProperty__default["default"](_en, "shippingaddress", 'Shipping address'), _defineProperty__default["default"](_en, "cardnumber", 'Card number'), _defineProperty__default["default"](_en, "year", 'Year'), _defineProperty__default["default"](_en, "month", 'Month'), _defineProperty__default["default"](_en, "cvv", 'CVV'), _defineProperty__default["default"](_en, "nameoncard", 'Name On Card'), _defineProperty__default["default"](_en, "country", 'Country'), _defineProperty__default["default"](_en, "addressdetails", 'ِAddress details'), _defineProperty__default["default"](_en, "stategov", 'State/Governorate'), _defineProperty__default["default"](_en, "city", 'City'), _defineProperty__default["default"](_en, "paymentmethod", 'Payment method'), _defineProperty__default["default"](_en, "productimage", 'Product image'), _defineProperty__default["default"](_en, "orderdetails", 'Order details'), _defineProperty__default["default"](_en, "orderinvoice", 'Order invoice'), _defineProperty__default["default"](_en, "promocodediscount", 'Promo code discount'), _defineProperty__default["default"](_en, "address", 'Address'), _defineProperty__default["default"](_en, "update", 'Update'), _defineProperty__default["default"](_en, "phonenumber", 'Mobile number'), _defineProperty__default["default"](_en, "completerequiredfields", 'Please complete all required fields'), _defineProperty__default["default"](_en, "name", 'Name'), _defineProperty__default["default"](_en, "email", 'Email'), _defineProperty__default["default"](_en, "password", 'Password'), _defineProperty__default["default"](_en, "confirmpassword", 'Confirm password'), _defineProperty__default["default"](_en, "showmore", 'Show more'), _defineProperty__default["default"](_en, "showless", 'Show less'), _defineProperty__default["default"](_en, "contactdetails", 'Contact Information'), _defineProperty__default["default"](_en, "asaguest", 'As a guest'), _defineProperty__default["default"](_en, "choosecountryfirst", 'Please choose country first'), _defineProperty__default["default"](_en, "security", 'Security'), _defineProperty__default["default"](_en, "personalinformation", 'Personal Information'), _defineProperty__default["default"](_en, "contactus", 'Contact us'), _defineProperty__default["default"](_en, "slogan", 'Your website & mobile application in one place'), _defineProperty__default["default"](_en, "recent", 'Recent'), _defineProperty__default["default"](_en, "oldest", 'Oldest'), _defineProperty__default["default"](_en, "pricehightolow", 'High to low'), _defineProperty__default["default"](_en, "pricelowtohigh", 'Low to High'), _en),
|
|
168
|
+
}, _defineProperty__default["default"](_en, "price", 'Price'), _defineProperty__default["default"](_en, "relatedproducts", 'Related products'), _defineProperty__default["default"](_en, "qty", 'QTY'), _defineProperty__default["default"](_en, "emptyshoppingcart", 'Your shopping cart is empty'), _defineProperty__default["default"](_en, "shopnow", 'Shop now'), _defineProperty__default["default"](_en, "total", 'Total'), _defineProperty__default["default"](_en, "otherinformation", 'Other information'), _defineProperty__default["default"](_en, "productname", 'Product name'), _defineProperty__default["default"](_en, "quantity", 'Quantity'), _defineProperty__default["default"](_en, "orderid", 'Order ID'), _defineProperty__default["default"](_en, "numberofproducts", 'Number of products'), _defineProperty__default["default"](_en, "checkyourorder", 'Check your order'), _defineProperty__default["default"](_en, "search", 'Search'), _defineProperty__default["default"](_en, "searchproducts", 'Search for products...'), _defineProperty__default["default"](_en, "choosecity", 'Choose city'), _defineProperty__default["default"](_en, "choosestategov", 'Choose state/governorate'), _defineProperty__default["default"](_en, "choosecountry", 'Choose country'), _defineProperty__default["default"](_en, "giftcarddicountcode", 'Gift Card Or Discount Code...'), _defineProperty__default["default"](_en, "nosearchresults", 'No search results'), _defineProperty__default["default"](_en, "sale", 'Sale'), _defineProperty__default["default"](_en, "nofavoriteproducts", 'Your wishlist is empty'), _defineProperty__default["default"](_en, "loggedoutsuccess", 'Logged out successfully'), _defineProperty__default["default"](_en, "addedtocartsuccess", 'Cart is updated successfully'), _defineProperty__default["default"](_en, "promocodeapplied", 'Promo code is applied.'), _defineProperty__default["default"](_en, "promocoderemoved", 'Promo code is removed'), _defineProperty__default["default"](_en, "countryandstateupdatedsuccess", 'Country and state are updated successfully'), _defineProperty__default["default"](_en, "orderaddedsuccess", 'Order is added successfully'), _defineProperty__default["default"](_en, "addedtowishlist", 'Added to your favourites'), _defineProperty__default["default"](_en, "productrmovedfromwishlist", 'Removed from your favourites'), _defineProperty__default["default"](_en, "fillthemissingfields", 'Please complete the missing fields'), _defineProperty__default["default"](_en, "passwordsdontmatch", "Passwords don't match"), _defineProperty__default["default"](_en, "loggedinsuccess", 'Logged in successfully'), _defineProperty__default["default"](_en, "subtotal", 'Sub total'), _defineProperty__default["default"](_en, "discount", 'Discount'), _defineProperty__default["default"](_en, "outofzone", 'Out of zone'), _defineProperty__default["default"](_en, "total", 'Total'), _defineProperty__default["default"](_en, "cod", 'Cash on Delivery'), _defineProperty__default["default"](_en, "cardondelivery", 'Credit Card On Delivery'), _defineProperty__default["default"](_en, "onlinepayment", 'Online Payment'), _defineProperty__default["default"](_en, "paymentcardinformation", 'Payment Card Information'), _defineProperty__default["default"](_en, "shippingfees", 'Shipping fees'), _defineProperty__default["default"](_en, "shippingaddress", 'Shipping address'), _defineProperty__default["default"](_en, "cardnumber", 'Card number'), _defineProperty__default["default"](_en, "year", 'Year'), _defineProperty__default["default"](_en, "month", 'Month'), _defineProperty__default["default"](_en, "cvv", 'CVV'), _defineProperty__default["default"](_en, "nameoncard", 'Name On Card'), _defineProperty__default["default"](_en, "country", 'Country'), _defineProperty__default["default"](_en, "addressdetails", 'ِAddress details'), _defineProperty__default["default"](_en, "stategov", 'State/Governorate'), _defineProperty__default["default"](_en, "city", 'City'), _defineProperty__default["default"](_en, "paymentmethod", 'Payment method'), _defineProperty__default["default"](_en, "productimage", 'Product image'), _defineProperty__default["default"](_en, "orderdetails", 'Order details'), _defineProperty__default["default"](_en, "orderinvoice", 'Order invoice'), _defineProperty__default["default"](_en, "promocodediscount", 'Promo code discount'), _defineProperty__default["default"](_en, "address", 'Address'), _defineProperty__default["default"](_en, "update", 'Update'), _defineProperty__default["default"](_en, "phonenumber", 'Mobile number'), _defineProperty__default["default"](_en, "completerequiredfields", 'Please complete all required fields'), _defineProperty__default["default"](_en, "name", 'Name'), _defineProperty__default["default"](_en, "email", 'Email'), _defineProperty__default["default"](_en, "password", 'Password'), _defineProperty__default["default"](_en, "confirmpassword", 'Confirm password'), _defineProperty__default["default"](_en, "showmore", 'Show more'), _defineProperty__default["default"](_en, "showless", 'Show less'), _defineProperty__default["default"](_en, "contactdetails", 'Contact Information'), _defineProperty__default["default"](_en, "asaguest", 'As a guest'), _defineProperty__default["default"](_en, "choosecountryfirst", 'Please choose country first'), _defineProperty__default["default"](_en, "security", 'Security'), _defineProperty__default["default"](_en, "personalinformation", 'Personal Information'), _defineProperty__default["default"](_en, "contactus", 'Contact us'), _defineProperty__default["default"](_en, "slogan", 'Your website & mobile application in one place'), _defineProperty__default["default"](_en, "recent", 'Recent'), _defineProperty__default["default"](_en, "oldest", 'Oldest'), _defineProperty__default["default"](_en, "pricehightolow", 'High to low'), _defineProperty__default["default"](_en, "pricelowtohigh", 'Low to High'), _defineProperty__default["default"](_en, "pleasecompleteaddressmissingfields", 'Please complete the missing address fields'), _en),
|
|
167
169
|
ar: (_ar = {
|
|
170
|
+
pleasecompleteaddressmissingfields: 'من فضلك اكمل باقى بيانات العنوان',
|
|
168
171
|
loginregister: 'تسجيل الدخول/إنشاء حساب جديد',
|
|
169
172
|
pleaselogintocheckout: 'قم بتسجيل دخول لاستكمال طلبك',
|
|
170
173
|
reservationtime: 'ميعاد الحجز',
|
|
@@ -312,7 +315,9 @@
|
|
|
312
315
|
sortprice: '',
|
|
313
316
|
sortdates: '',
|
|
314
317
|
page: 0,
|
|
315
|
-
vendorsarr: []
|
|
318
|
+
vendorsarr: [],
|
|
319
|
+
minrate: 0,
|
|
320
|
+
maxrate: 5
|
|
316
321
|
}),
|
|
317
322
|
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
318
323
|
ProductFilterObjContext = _useState4[0],
|
|
@@ -435,8 +440,8 @@
|
|
|
435
440
|
}));
|
|
436
441
|
};
|
|
437
442
|
|
|
438
|
-
function ownKeys$
|
|
439
|
-
function _objectSpread$
|
|
443
|
+
function ownKeys$21(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
444
|
+
function _objectSpread$21(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$21(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$21(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
440
445
|
var Login = function Login(props) {
|
|
441
446
|
var _css;
|
|
442
447
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
@@ -505,7 +510,7 @@
|
|
|
505
510
|
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 ? void 0 : (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 ? void 0 : (_StatePagePropertiesC2 = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC2 === void 0 ? void 0 : _StatePagePropertiesC2.forEach(function (arrayItem, arrayindex) {
|
|
506
511
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
507
512
|
});
|
|
508
|
-
setsectionproperties(_objectSpread$
|
|
513
|
+
setsectionproperties(_objectSpread$21({}, secpropobj));
|
|
509
514
|
}
|
|
510
515
|
}, [StatePagePropertiesContext]);
|
|
511
516
|
React.useEffect(function () {
|
|
@@ -664,9 +669,9 @@
|
|
|
664
669
|
className: "".concat(loginstyles2.form_control),
|
|
665
670
|
value: payloadobj.email,
|
|
666
671
|
onChange: function onChange(event) {
|
|
667
|
-
var temppayloadobj = _objectSpread$
|
|
672
|
+
var temppayloadobj = _objectSpread$21({}, payloadobj);
|
|
668
673
|
temppayloadobj.email = event.target.value;
|
|
669
|
-
setpayloadobj(_objectSpread$
|
|
674
|
+
setpayloadobj(_objectSpread$21({}, temppayloadobj));
|
|
670
675
|
},
|
|
671
676
|
style: {
|
|
672
677
|
background: 'transparent'
|
|
@@ -687,9 +692,9 @@
|
|
|
687
692
|
textplaceholder: "",
|
|
688
693
|
value: payloadobj.password,
|
|
689
694
|
onChange: function onChange(event) {
|
|
690
|
-
var temppayloadobj = _objectSpread$
|
|
695
|
+
var temppayloadobj = _objectSpread$21({}, payloadobj);
|
|
691
696
|
temppayloadobj.password = event.target.value;
|
|
692
|
-
setpayloadobj(_objectSpread$
|
|
697
|
+
setpayloadobj(_objectSpread$21({}, temppayloadobj));
|
|
693
698
|
}
|
|
694
699
|
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
695
700
|
className: langdetect == 'en' ? loginstyles$1.login_input_icon : loginstyles$1.login_input_icontrans
|
|
@@ -822,9 +827,9 @@
|
|
|
822
827
|
className: "".concat(loginstyles2.form_control),
|
|
823
828
|
value: forgotpasswordpayload.email,
|
|
824
829
|
onChange: function onChange(event) {
|
|
825
|
-
var temppayloadobj = _objectSpread$
|
|
830
|
+
var temppayloadobj = _objectSpread$21({}, forgotpasswordpayload);
|
|
826
831
|
temppayloadobj.email = event.target.value;
|
|
827
|
-
setforgotpasswordpayload(_objectSpread$
|
|
832
|
+
setforgotpasswordpayload(_objectSpread$21({}, temppayloadobj));
|
|
828
833
|
},
|
|
829
834
|
disabled: forgetpasswordstage == 'verify' ? true : false
|
|
830
835
|
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
@@ -842,9 +847,9 @@
|
|
|
842
847
|
className: "".concat(loginstyles2.form_control),
|
|
843
848
|
value: forgotpasswordpayload.code,
|
|
844
849
|
onChange: function onChange(event) {
|
|
845
|
-
var temppayloadobj = _objectSpread$
|
|
850
|
+
var temppayloadobj = _objectSpread$21({}, forgotpasswordpayload);
|
|
846
851
|
temppayloadobj.code = event.target.value;
|
|
847
|
-
setforgotpasswordpayload(_objectSpread$
|
|
852
|
+
setforgotpasswordpayload(_objectSpread$21({}, temppayloadobj));
|
|
848
853
|
}
|
|
849
854
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
850
855
|
className: "col-lg-12 col-md-12 col-sm-12 mb-3 p-sm-0"
|
|
@@ -855,9 +860,9 @@
|
|
|
855
860
|
className: "".concat(loginstyles2.form_control),
|
|
856
861
|
value: forgotpasswordpayload.newpassword,
|
|
857
862
|
onChange: function onChange(event) {
|
|
858
|
-
var temppayloadobj = _objectSpread$
|
|
863
|
+
var temppayloadobj = _objectSpread$21({}, forgotpasswordpayload);
|
|
859
864
|
temppayloadobj.newpassword = event.target.value;
|
|
860
|
-
setforgotpasswordpayload(_objectSpread$
|
|
865
|
+
setforgotpasswordpayload(_objectSpread$21({}, temppayloadobj));
|
|
861
866
|
}
|
|
862
867
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
863
868
|
className: "col-lg-12 col-md-12 col-sm-12 mb-2 p-sm-0"
|
|
@@ -868,9 +873,9 @@
|
|
|
868
873
|
className: "".concat(loginstyles2.form_control),
|
|
869
874
|
value: forgotpasswordpayload.confirmnewpassword,
|
|
870
875
|
onChange: function onChange(event) {
|
|
871
|
-
var temppayloadobj = _objectSpread$
|
|
876
|
+
var temppayloadobj = _objectSpread$21({}, forgotpasswordpayload);
|
|
872
877
|
temppayloadobj.confirmnewpassword = event.target.value;
|
|
873
|
-
setforgotpasswordpayload(_objectSpread$
|
|
878
|
+
setforgotpasswordpayload(_objectSpread$21({}, temppayloadobj));
|
|
874
879
|
}
|
|
875
880
|
}))))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Footer, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
876
881
|
className: "col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-center mb-3 "
|
|
@@ -879,7 +884,7 @@
|
|
|
879
884
|
onClick: function onClick() {
|
|
880
885
|
if (forgotpasswordpayload.email.length != 0) {
|
|
881
886
|
var runfunc = false;
|
|
882
|
-
var tempforgotpasswordpayload = _objectSpread$
|
|
887
|
+
var tempforgotpasswordpayload = _objectSpread$21({}, forgotpasswordpayload);
|
|
883
888
|
tempforgotpasswordpayload.functype = forgetpasswordstage;
|
|
884
889
|
if (forgetpasswordstage == 'verify') {
|
|
885
890
|
if (tempforgotpasswordpayload.newpassword.length != 0 && tempforgotpasswordpayload.code.length != 0) {
|
|
@@ -1173,10 +1178,10 @@
|
|
|
1173
1178
|
}, '-' + Math.round(10.0 * ((parseFloat(getprice_discountpriceprops('defaultprice', 0, variantindexcompleted)) - parseFloat(getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted))) / parseFloat(getprice_discountpriceprops('defaultprice', 0, variantindexcompleted))) * 100) / 10.0 + '%'))))));
|
|
1174
1179
|
};
|
|
1175
1180
|
|
|
1176
|
-
function ownKeys$
|
|
1177
|
-
function _objectSpread$
|
|
1181
|
+
function ownKeys$20(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1182
|
+
function _objectSpread$20(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$20(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$20(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1178
1183
|
var Product_itemtype = function Product_itemtype(props) {
|
|
1179
|
-
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _ProductInfoObj$data, _ProductInfoObj$data$, _ProductInfoObj$data$2;
|
|
1184
|
+
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _ProductInfoObj$data, _ProductInfoObj$data$, _ProductInfoObj$data$2;
|
|
1180
1185
|
var lang = props.actions.lang;
|
|
1181
1186
|
var langdetect = props.actions.langdetect;
|
|
1182
1187
|
var srcfromprops = props.actions.srcfromprops;
|
|
@@ -1202,6 +1207,8 @@
|
|
|
1202
1207
|
var getprice_discountpriceprops = props.actions.getprice_discountpriceprops;
|
|
1203
1208
|
props.actions.quantityconditionfoundobjprops;
|
|
1204
1209
|
props.actions.ikimagecredcontext;
|
|
1210
|
+
var currentshowingimageindex = props.actions.currentshowingimageindex;
|
|
1211
|
+
props.actions.setcurrentshowingimageindex;
|
|
1205
1212
|
var StoreInfoprops = props.actions.StoreInfoprops;
|
|
1206
1213
|
var _useState = React.useState(false),
|
|
1207
1214
|
_useState2 = _slicedToArray__default["default"](_useState, 2);
|
|
@@ -1279,13 +1286,14 @@
|
|
|
1279
1286
|
thumbnailPosition: sectionproperties.thumbnailposition == 'Bottom' ? 'bottom' : 'left',
|
|
1280
1287
|
showNav: false,
|
|
1281
1288
|
showPlayButton: false,
|
|
1282
|
-
showFullscreenButton: true
|
|
1289
|
+
showFullscreenButton: true,
|
|
1290
|
+
startIndex: currentshowingimageindex
|
|
1283
1291
|
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1284
1292
|
className: langdetect == 'en' ? 'col-xl-7 col-lg-8 col-md-12 col-sm-12 pl-4 pr-0 p-md-0' : 'col-xl-7 col-lg-8 col-md-12 col-sm-12 pl-0 pr-4 p-md-0'
|
|
1285
1293
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1286
1294
|
className: "row m-0 w-100"
|
|
1287
|
-
},
|
|
1288
|
-
className:
|
|
1295
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1296
|
+
className: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 ? void 0 : (_fetchProductInfoQuer2 = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : (_fetchProductInfoQuer3 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.productcanrate) == 1 ? 'col-lg-8 col-md-8 col-sm-8 p-0 mb-1 d-flex justify-content-start align-items-center' : 'col-lg-12 p-0 mb-1 d-flex justify-content-start align-items-center'
|
|
1289
1297
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
1290
1298
|
className: "".concat(productinfo_cssstyles.productname, " ").concat(productinfo_cssstyles.productnamehover) + ' m-0 p-0 wordbreak d-flex justify-content-start cursor-pointer font-sm-15 ',
|
|
1291
1299
|
onClick: function onClick() {
|
|
@@ -1294,12 +1302,31 @@
|
|
|
1294
1302
|
style: {
|
|
1295
1303
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
1296
1304
|
}
|
|
1297
|
-
}, langdetect == 'en' ? fetchProductInfoQueryContext.data.data.productinfo.name_en : fetchProductInfoQueryContext.data.data.productinfo.name_ar)),
|
|
1298
|
-
className: "col-lg-
|
|
1299
|
-
}, /*#__PURE__*/React__default["default"].createElement("
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1305
|
+
}, langdetect == 'en' ? fetchProductInfoQueryContext.data.data.productinfo.name_en : fetchProductInfoQueryContext.data.data.productinfo.name_ar)), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : (_fetchProductInfoQuer5 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : (_fetchProductInfoQuer6 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : _fetchProductInfoQuer6.productcanrate) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1306
|
+
className: "col-lg-4 col-md-4 col-sm-4 p-0 mb-1 d-flex justify-content-end align-items-center"
|
|
1307
|
+
}, /*#__PURE__*/React__default["default"].createElement(ReactStars__default["default"], {
|
|
1308
|
+
count: 5,
|
|
1309
|
+
value: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : (_fetchProductInfoQuer8 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : (_fetchProductInfoQuer9 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : _fetchProductInfoQuer9.productoverallrate,
|
|
1310
|
+
edit: false,
|
|
1311
|
+
size: 18,
|
|
1312
|
+
emptyIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
1313
|
+
className: "far fa-star",
|
|
1314
|
+
style: {
|
|
1315
|
+
color: '#FAB400'
|
|
1316
|
+
}
|
|
1317
|
+
}),
|
|
1318
|
+
halfIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
1319
|
+
className: "fa fa-star-half-alt style={{ color: '#FAB400' }}"
|
|
1320
|
+
}),
|
|
1321
|
+
filledIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
1322
|
+
className: "fa fa-star",
|
|
1323
|
+
style: {
|
|
1324
|
+
color: '#FAB400'
|
|
1325
|
+
}
|
|
1326
|
+
}),
|
|
1327
|
+
activeColor: "#ffd700"
|
|
1328
|
+
})), sectionproperties.showSKU == 'Show' && sectionproperties.productInformationType == 'Product/Service Information' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1329
|
+
"class": sectionproperties.deliverytimeshow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer10 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : (_fetchProductInfoQuer11 = _fetchProductInfoQuer10.data) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : (_fetchProductInfoQuer12 = _fetchProductInfoQuer11.productinfo) === null || _fetchProductInfoQuer12 === void 0 ? void 0 : _fetchProductInfoQuer12.deliverydatetext) != null ? 'col-lg-12 p-0 mb-2 d-flex justify-content-start' : 'col-lg-12 p-0 mb-3 d-flex justify-content-start'
|
|
1303
1330
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
1304
1331
|
"class": "m-0 p-0 d-flex justify-content-start"
|
|
1305
1332
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
@@ -1317,7 +1344,7 @@
|
|
|
1317
1344
|
fontSize: sectionproperties.skuFontSize + 'px',
|
|
1318
1345
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
1319
1346
|
}
|
|
1320
|
-
}, fetchProductInfoQueryContext.data.data.productinfo.sku))), sectionproperties.deliverytimeshow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
1347
|
+
}, fetchProductInfoQueryContext.data.data.productinfo.sku))), sectionproperties.deliverytimeshow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer13 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer13 === void 0 ? void 0 : (_fetchProductInfoQuer14 = _fetchProductInfoQuer13.data) === null || _fetchProductInfoQuer14 === void 0 ? void 0 : (_fetchProductInfoQuer15 = _fetchProductInfoQuer14.productinfo) === null || _fetchProductInfoQuer15 === void 0 ? void 0 : _fetchProductInfoQuer15.deliverydatetext) != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1321
1348
|
"class": "mb-4 col-lg-12",
|
|
1322
1349
|
style: {
|
|
1323
1350
|
width: '100%',
|
|
@@ -1337,9 +1364,9 @@
|
|
|
1337
1364
|
style: {
|
|
1338
1365
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
1339
1366
|
}
|
|
1340
|
-
}, langdetect == 'en' ? 'Delivery Time' : 'مدة الشحن', ": ", fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
1367
|
+
}, langdetect == 'en' ? 'Delivery Time' : 'مدة الشحن', ": ", fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer16 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer16 === void 0 ? void 0 : (_fetchProductInfoQuer17 = _fetchProductInfoQuer16.data) === null || _fetchProductInfoQuer17 === void 0 ? void 0 : (_fetchProductInfoQuer18 = _fetchProductInfoQuer17.productinfo) === null || _fetchProductInfoQuer18 === void 0 ? void 0 : _fetchProductInfoQuer18.deliverydatetext)), /*#__PURE__*/React__default["default"].createElement(ProductHeaderPricing, {
|
|
1341
1368
|
actions: props.actions
|
|
1342
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
1369
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer19 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer19 === void 0 ? void 0 : (_fetchProductInfoQuer20 = _fetchProductInfoQuer19.data) === null || _fetchProductInfoQuer20 === void 0 ? void 0 : (_fetchProductInfoQuer21 = _fetchProductInfoQuer20.productinfo) === null || _fetchProductInfoQuer21 === void 0 ? void 0 : _fetchProductInfoQuer21.hasvariants) == 1 && sectionproperties.productInformationType == 'Profile' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1343
1370
|
className: "row m-0 w-100 d-flex align-items-start"
|
|
1344
1371
|
}, ProductInfoObj === null || ProductInfoObj === void 0 ? void 0 : (_ProductInfoObj$data = ProductInfoObj.data) === null || _ProductInfoObj$data === void 0 ? void 0 : (_ProductInfoObj$data$ = _ProductInfoObj$data.productinfo) === null || _ProductInfoObj$data$ === void 0 ? void 0 : (_ProductInfoObj$data$2 = _ProductInfoObj$data$.productoptions) === null || _ProductInfoObj$data$2 === void 0 ? void 0 : _ProductInfoObj$data$2.map(function (item, index) {
|
|
1345
1372
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -1433,11 +1460,11 @@
|
|
|
1433
1460
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1434
1461
|
className: "".concat(productinfo_cssstyles.minus_quantitybtn_icon_container) + ' m-1 ',
|
|
1435
1462
|
onClick: function onClick() {
|
|
1436
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
1463
|
+
var tempaddtocardpayloadobj = _objectSpread$20({}, addtocardpayloadobj);
|
|
1437
1464
|
if (tempaddtocardpayloadobj.quantity > 0) {
|
|
1438
1465
|
tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity - 1;
|
|
1439
1466
|
}
|
|
1440
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
1467
|
+
setaddtocardpayloadobj(_objectSpread$20({}, tempaddtocardpayloadobj));
|
|
1441
1468
|
}
|
|
1442
1469
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
1443
1470
|
className: "fa fa-chevron-down",
|
|
@@ -1449,9 +1476,9 @@
|
|
|
1449
1476
|
}, addtocardpayloadobj.quantity), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1450
1477
|
className: "".concat(productinfo_cssstyles.add_quantitybtn_icon_container) + ' m-1 ',
|
|
1451
1478
|
onClick: function onClick() {
|
|
1452
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
1479
|
+
var tempaddtocardpayloadobj = _objectSpread$20({}, addtocardpayloadobj);
|
|
1453
1480
|
tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity + 1;
|
|
1454
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
1481
|
+
setaddtocardpayloadobj(_objectSpread$20({}, tempaddtocardpayloadobj));
|
|
1455
1482
|
}
|
|
1456
1483
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
1457
1484
|
className: "fa fa-chevron-up",
|
|
@@ -1652,8 +1679,8 @@
|
|
|
1652
1679
|
}, StoreInfoprops())))));
|
|
1653
1680
|
};
|
|
1654
1681
|
|
|
1655
|
-
function ownKeys$
|
|
1656
|
-
function _objectSpread$
|
|
1682
|
+
function ownKeys$1$(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1683
|
+
function _objectSpread$1$(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1$(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1$(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1657
1684
|
var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
1658
1685
|
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22, _fetchProductInfoQuer23, _fetchProductInfoQuer24;
|
|
1659
1686
|
var langdetect = props.actions.langdetect;
|
|
@@ -1694,7 +1721,7 @@
|
|
|
1694
1721
|
slots = _useState6[0],
|
|
1695
1722
|
setslots = _useState6[1];
|
|
1696
1723
|
React.useEffect(function () {
|
|
1697
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
1724
|
+
setaddtocardpayloadobj(_objectSpread$1$(_objectSpread$1$({}, addtocardpayloadobj), {}, {
|
|
1698
1725
|
item_type: 'service'
|
|
1699
1726
|
}));
|
|
1700
1727
|
}, [tabsarray]);
|
|
@@ -1706,16 +1733,16 @@
|
|
|
1706
1733
|
if (diffDays.toString() != 'NaN') {
|
|
1707
1734
|
if (date2 <= date1) {
|
|
1708
1735
|
NotificationManager.warning('', 'Please choose another date.');
|
|
1709
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
1736
|
+
setaddtocardpayloadobj(_objectSpread$1$(_objectSpread$1$({}, addtocardpayloadobj), {}, {
|
|
1710
1737
|
quantity: 0
|
|
1711
1738
|
}));
|
|
1712
1739
|
} else {
|
|
1713
1740
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= diffDays && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= diffDays) {
|
|
1714
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
1741
|
+
setaddtocardpayloadobj(_objectSpread$1$(_objectSpread$1$({}, addtocardpayloadobj), {}, {
|
|
1715
1742
|
quantity: diffDays
|
|
1716
1743
|
}));
|
|
1717
1744
|
} else {
|
|
1718
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
1745
|
+
setaddtocardpayloadobj(_objectSpread$1$(_objectSpread$1$({}, addtocardpayloadobj), {}, {
|
|
1719
1746
|
quantity: 0
|
|
1720
1747
|
}));
|
|
1721
1748
|
NotificationManager.warning('', 'Max: ' + fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant + ', Min: ' + fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant);
|
|
@@ -1851,7 +1878,7 @@
|
|
|
1851
1878
|
min: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer9 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : (_fetchProductInfoQuer10 = _fetchProductInfoQuer9.data) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : (_fetchProductInfoQuer11 = _fetchProductInfoQuer10.productinfo) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : (_fetchProductInfoQuer12 = _fetchProductInfoQuer11.serviceinfo) === null || _fetchProductInfoQuer12 === void 0 ? void 0 : _fetchProductInfoQuer12.reservationstarts,
|
|
1852
1879
|
max: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer13 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer13 === void 0 ? void 0 : (_fetchProductInfoQuer14 = _fetchProductInfoQuer13.data) === null || _fetchProductInfoQuer14 === void 0 ? void 0 : (_fetchProductInfoQuer15 = _fetchProductInfoQuer14.productinfo) === null || _fetchProductInfoQuer15 === void 0 ? void 0 : (_fetchProductInfoQuer16 = _fetchProductInfoQuer15.serviceinfo) === null || _fetchProductInfoQuer16 === void 0 ? void 0 : _fetchProductInfoQuer16.reservationends,
|
|
1853
1880
|
onChange: function onChange(event) {
|
|
1854
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
1881
|
+
setaddtocardpayloadobj(_objectSpread$1$(_objectSpread$1$({}, addtocardpayloadobj), {}, {
|
|
1855
1882
|
from: event.target.value
|
|
1856
1883
|
}));
|
|
1857
1884
|
}
|
|
@@ -1871,7 +1898,7 @@
|
|
|
1871
1898
|
min: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts,
|
|
1872
1899
|
max: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends,
|
|
1873
1900
|
onChange: function onChange(event) {
|
|
1874
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
1901
|
+
setaddtocardpayloadobj(_objectSpread$1$(_objectSpread$1$({}, addtocardpayloadobj), {}, {
|
|
1875
1902
|
to: event.target.value
|
|
1876
1903
|
}));
|
|
1877
1904
|
}
|
|
@@ -1891,7 +1918,7 @@
|
|
|
1891
1918
|
min: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts,
|
|
1892
1919
|
max: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends,
|
|
1893
1920
|
onChange: function onChange(event) {
|
|
1894
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
1921
|
+
setaddtocardpayloadobj(_objectSpread$1$(_objectSpread$1$({}, addtocardpayloadobj), {}, {
|
|
1895
1922
|
date: event.target.value
|
|
1896
1923
|
}));
|
|
1897
1924
|
setcurrentmutatestate('/fetchserviceslots');
|
|
@@ -1942,7 +1969,7 @@
|
|
|
1942
1969
|
color: ischoosed ? sectionproperties.generalbtn_bgColortransparent == 'Transparent' ? sectionproperties.generalbtn_textColoronhover : sectionproperties.generalbtn_textColor : ''
|
|
1943
1970
|
},
|
|
1944
1971
|
onClick: function onClick() {
|
|
1945
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
1972
|
+
setaddtocardpayloadobj(_objectSpread$1$(_objectSpread$1$({}, addtocardpayloadobj), {}, {
|
|
1946
1973
|
time: item.slot
|
|
1947
1974
|
}));
|
|
1948
1975
|
}
|
|
@@ -1951,7 +1978,7 @@
|
|
|
1951
1978
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
1952
1979
|
"class": TabsStyles.booknow_btn_resp + ' allcentered ',
|
|
1953
1980
|
onClick: function onClick() {
|
|
1954
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
1981
|
+
setaddtocardpayloadobj(_objectSpread$1$(_objectSpread$1$({}, addtocardpayloadobj), {}, {
|
|
1955
1982
|
time: item.slot
|
|
1956
1983
|
}));
|
|
1957
1984
|
}
|
|
@@ -1993,7 +2020,7 @@
|
|
|
1993
2020
|
"class": ischoosed == true ? TabsStyles.timeSlotContainer_active + ' allcentered cursor-pointer px-1 ' : TabsStyles.timeSlotContainer + ' allcentered cursor-pointer px-1 ',
|
|
1994
2021
|
style: {},
|
|
1995
2022
|
onClick: function onClick() {
|
|
1996
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2023
|
+
setaddtocardpayloadobj(_objectSpread$1$(_objectSpread$1$({}, addtocardpayloadobj), {}, {
|
|
1997
2024
|
time: item.slot
|
|
1998
2025
|
}));
|
|
1999
2026
|
}
|
|
@@ -2536,10 +2563,520 @@
|
|
|
2536
2563
|
}, StoreInfoprops()))));
|
|
2537
2564
|
};
|
|
2538
2565
|
|
|
2566
|
+
function ownKeys$1_(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2567
|
+
function _objectSpread$1_(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1_(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1_(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2568
|
+
var AddReview = function AddReview(props) {
|
|
2569
|
+
var _css;
|
|
2570
|
+
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
2571
|
+
props.actions;
|
|
2572
|
+
props.actions.lang;
|
|
2573
|
+
var langdetect = props.actions.langdetect;
|
|
2574
|
+
var productid = props.actions.productid;
|
|
2575
|
+
var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
|
|
2576
|
+
var NotificationManager = props.actions.NotificationManager;
|
|
2577
|
+
var canuserreview = props.actions.canuserreview;
|
|
2578
|
+
var addreviewcallback = props.actions.addreviewcallback;
|
|
2579
|
+
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
2580
|
+
var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
|
|
2581
|
+
var pageindexcontext = props.actions.pageindexcontext;
|
|
2582
|
+
var setpageindexcontext = props.actions.setpageindexcontext;
|
|
2583
|
+
var setCurrentPageIdContext = props.actions.setCurrentPageIdContext;
|
|
2584
|
+
var templatepropcontext = props.actions.templatepropcontext;
|
|
2585
|
+
var _useState = React.useState(''),
|
|
2586
|
+
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
2587
|
+
sectionproperties = _useState2[0],
|
|
2588
|
+
setsectionproperties = _useState2[1];
|
|
2589
|
+
var _useState3 = React.useState(''),
|
|
2590
|
+
_useState4 = _slicedToArray__default["default"](_useState3, 2);
|
|
2591
|
+
_useState4[0];
|
|
2592
|
+
var setCurrentPageId = _useState4[1];
|
|
2593
|
+
var _useState5 = React.useState({
|
|
2594
|
+
reviewtitle: '',
|
|
2595
|
+
reviewbody: '',
|
|
2596
|
+
reviewrate: 0,
|
|
2597
|
+
reviewname: '',
|
|
2598
|
+
hasreview: 0
|
|
2599
|
+
}),
|
|
2600
|
+
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
2601
|
+
reviewpayloadobj = _useState6[0],
|
|
2602
|
+
setreviewpayloadobj = _useState6[1];
|
|
2603
|
+
React.useEffect(function () {
|
|
2604
|
+
var cartindex = templatepropcontext.pagesnprop.findIndex(function (x) {
|
|
2605
|
+
return x.staticpageid == '63fcbef36eebe';
|
|
2606
|
+
});
|
|
2607
|
+
if (cartindex >= 0) {
|
|
2608
|
+
setpageindexcontext(cartindex);
|
|
2609
|
+
setCurrentPageId(templatepropcontext.pagesnprop[cartindex].pageid);
|
|
2610
|
+
if (props.srcfromprops != 'templatedraftrouter') {
|
|
2611
|
+
setCurrentPageIdContext(templatepropcontext.pagesnprop[cartindex].pageid);
|
|
2612
|
+
}
|
|
2613
|
+
}
|
|
2614
|
+
}, []);
|
|
2615
|
+
React.useEffect(function () {
|
|
2616
|
+
if (Object.keys(StatePagePropertiesContext).length != 0) {
|
|
2617
|
+
var secpropobj = {};
|
|
2618
|
+
StatePagePropertiesContext.pageobj != undefined && StatePagePropertiesContext.pageobj.pageproperties != undefined && StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
2619
|
+
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
2620
|
+
});
|
|
2621
|
+
setsectionproperties(_objectSpread$1_({}, secpropobj));
|
|
2622
|
+
}
|
|
2623
|
+
}, [StatePagePropertiesContext]);
|
|
2624
|
+
React.useEffect(function () {
|
|
2625
|
+
var _templatepropcontext$, _templatepropcontext$2;
|
|
2626
|
+
var secpropobj = {};
|
|
2627
|
+
templatepropcontext === null || templatepropcontext === void 0 ? void 0 : (_templatepropcontext$ = templatepropcontext.pagesnprop[pageindexcontext]) === null || _templatepropcontext$ === void 0 ? void 0 : (_templatepropcontext$2 = _templatepropcontext$.pageproperties) === null || _templatepropcontext$2 === void 0 ? void 0 : _templatepropcontext$2.forEach(function (arrayItem, arrayindex) {
|
|
2628
|
+
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
2629
|
+
});
|
|
2630
|
+
setsectionproperties(_objectSpread$1_({}, secpropobj));
|
|
2631
|
+
}, [pageindexcontext]);
|
|
2632
|
+
var reviewstyles = {
|
|
2633
|
+
submitreviewbtn: glamor.css({
|
|
2634
|
+
width: sectionproperties.reviewbtn_width + 'px',
|
|
2635
|
+
height: sectionproperties.reviewbtn_height + 'px',
|
|
2636
|
+
borderRadius: sectionproperties.reviewbtn_borderradius + 'px',
|
|
2637
|
+
fontSize: sectionproperties.reviewbtn_fontsize + 'px',
|
|
2638
|
+
color: sectionproperties.reviewbtn_color,
|
|
2639
|
+
fontWeight: sectionproperties.reviewbtn_fontweight,
|
|
2640
|
+
backgroundColor: sectionproperties.reviewbtn_bgcolor,
|
|
2641
|
+
border: sectionproperties.reviewbtn_borderwidth + 'px solid ' + sectionproperties.reviewbtn_bordercolor,
|
|
2642
|
+
':hover': {
|
|
2643
|
+
transition: '.3s',
|
|
2644
|
+
backgroundColor: sectionproperties.reviewbtn_bgcoloronhover,
|
|
2645
|
+
color: sectionproperties.reviewbtn_coloronhover
|
|
2646
|
+
}
|
|
2647
|
+
}),
|
|
2648
|
+
form_control: glamor.css((_css = {
|
|
2649
|
+
position: 'relative',
|
|
2650
|
+
display: 'flex',
|
|
2651
|
+
alignItems: 'center'
|
|
2652
|
+
}, _defineProperty__default["default"](_css, "display", 'block'), _defineProperty__default["default"](_css, "width", '100%'), _defineProperty__default["default"](_css, "padding", '0 10px'), _defineProperty__default["default"](_css, "transition", '.3s'), _defineProperty__default["default"](_css, "fontWeight", 500), _defineProperty__default["default"](_css, "border", sectionproperties.inputfieldbordertype == 'All' ? sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor : 0), _defineProperty__default["default"](_css, "borderBottom", sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor), _defineProperty__default["default"](_css, "borderRadius", sectionproperties.inputfieldborderradius + 'px'), _defineProperty__default["default"](_css, "height", sectionproperties.inputfieldheight + 'px'), _defineProperty__default["default"](_css, "background", sectionproperties.input_bgcolor), _defineProperty__default["default"](_css, "color", sectionproperties.inputfieldcolor), _defineProperty__default["default"](_css, ':focus', {
|
|
2653
|
+
borderColor: sectionproperties.inputfeildbordercoloronfocus
|
|
2654
|
+
}), _defineProperty__default["default"](_css, ':focus .login_input_icon', {
|
|
2655
|
+
color: sectionproperties.inputfeildbordercoloronfocus
|
|
2656
|
+
}), _css)),
|
|
2657
|
+
inputfield_label: glamor.css({
|
|
2658
|
+
color: sectionproperties.form_labelcolor,
|
|
2659
|
+
fontWeight: sectionproperties.form_labelfontweight,
|
|
2660
|
+
fontSize: sectionproperties.form_labelfontsize + 'px',
|
|
2661
|
+
textTransform: sectionproperties.form_labeltexttransform,
|
|
2662
|
+
marginBottom: sectionproperties.inputfieldbordertype == 'All' ? 10 : 0
|
|
2663
|
+
}),
|
|
2664
|
+
reviewbutton: glamor.css({
|
|
2665
|
+
width: sectionproperties.reviewbtn_width + 'px',
|
|
2666
|
+
height: sectionproperties.reviewbtn_height + 'px',
|
|
2667
|
+
background: sectionproperties.reviewbtn_bgcolor,
|
|
2668
|
+
color: sectionproperties.reviewbtn_color,
|
|
2669
|
+
fontSize: sectionproperties.reviewbtn_fontsize + 'px',
|
|
2670
|
+
borderRadius: sectionproperties.reviewbtn_borderradius + 'px',
|
|
2671
|
+
border: sectionproperties.reviewbtn_borderwidth + 'px solid ' + sectionproperties.reviewbtn_bordercolor,
|
|
2672
|
+
fontWeight: sectionproperties.reviewbtn_fontweight,
|
|
2673
|
+
':hover': {
|
|
2674
|
+
transition: '.3s',
|
|
2675
|
+
color: sectionproperties.reviewbtn_coloronhover,
|
|
2676
|
+
borderColor: sectionproperties.reviewbtn_coloronhover,
|
|
2677
|
+
backgroundColor: sectionproperties.reviewbtn_bgcoloronhover
|
|
2678
|
+
}
|
|
2679
|
+
}),
|
|
2680
|
+
productname: glamor.css({
|
|
2681
|
+
fontSize: sectionproperties.prodNameFontSize + 'px',
|
|
2682
|
+
textTransform: sectionproperties.prodNameTextTranform,
|
|
2683
|
+
fontWeight: sectionproperties.prodNameFontWeight,
|
|
2684
|
+
color: sectionproperties.prodNameColor
|
|
2685
|
+
})
|
|
2686
|
+
};
|
|
2687
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2688
|
+
className: 'row w-100 ml-0 mr-0 pb-5',
|
|
2689
|
+
style: {
|
|
2690
|
+
marginTop: sectionproperties.marginTop + 'px'
|
|
2691
|
+
}
|
|
2692
|
+
}, sectionproperties.sectionTitleFontSize != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2693
|
+
"class": "row m-0 w-100 mt-3"
|
|
2694
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2695
|
+
"class": "col-lg-12 p-0 allcentered"
|
|
2696
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2697
|
+
"class": "m-0 p-0",
|
|
2698
|
+
style: {
|
|
2699
|
+
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
2700
|
+
color: sectionproperties.sectionTitleColor,
|
|
2701
|
+
fontWeight: sectionproperties.sectionTitleFontWeight
|
|
2702
|
+
}
|
|
2703
|
+
}, langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2704
|
+
"class": "col-lg-12"
|
|
2705
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", null))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2706
|
+
"class": "col-lg-12 mb-3"
|
|
2707
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2708
|
+
"class": "row m-0 w-100 d-flex justify-content-start align-items-center"
|
|
2709
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2710
|
+
"class": "d-flex justify-content-start align-items-center",
|
|
2711
|
+
style: {
|
|
2712
|
+
width: '9vh',
|
|
2713
|
+
height: '9vh'
|
|
2714
|
+
}
|
|
2715
|
+
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
2716
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
2717
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
2718
|
+
path: fetchProductInfoQueryContext.data.data.productinfo.productmainimage,
|
|
2719
|
+
style: {
|
|
2720
|
+
width: '100%',
|
|
2721
|
+
height: '100%',
|
|
2722
|
+
objectFit: 'contain'
|
|
2723
|
+
},
|
|
2724
|
+
loading: "lazy"
|
|
2725
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2726
|
+
"class": "col-lg-9 co-md-9 col-sm-9 d-flex justify-content-start align-items-center"
|
|
2727
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2728
|
+
"class": "row m-0 w-100"
|
|
2729
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2730
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start align-items-center"
|
|
2731
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2732
|
+
"class": reviewstyles.productname + ' m-0 p-0 '
|
|
2733
|
+
}, langdetect == 'en' ? fetchProductInfoQueryContext.data.data.productinfo.name_en : fetchProductInfoQueryContext.data.data.productinfo.name_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2734
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start align-items-center"
|
|
2735
|
+
}, /*#__PURE__*/React__default["default"].createElement(ReactStars__default["default"], {
|
|
2736
|
+
count: 5,
|
|
2737
|
+
value: reviewpayloadobj.reviewrate,
|
|
2738
|
+
size: 18,
|
|
2739
|
+
emptyIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2740
|
+
className: "far fa-star",
|
|
2741
|
+
style: {
|
|
2742
|
+
color: '#bfbfbf'
|
|
2743
|
+
}
|
|
2744
|
+
}),
|
|
2745
|
+
halfIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2746
|
+
className: "fa fa-star-half-alt style={{ color: '#FAB400' }}"
|
|
2747
|
+
}),
|
|
2748
|
+
filledIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2749
|
+
className: "fa fa-star",
|
|
2750
|
+
style: {
|
|
2751
|
+
color: '#FAB400'
|
|
2752
|
+
}
|
|
2753
|
+
}),
|
|
2754
|
+
activeColor: "#ffd700",
|
|
2755
|
+
onChange: function onChange(event) {
|
|
2756
|
+
var tempreviewpayloadobj = _objectSpread$1_({}, reviewpayloadobj);
|
|
2757
|
+
tempreviewpayloadobj.reviewrate = event;
|
|
2758
|
+
setreviewpayloadobj(_objectSpread$1_({}, tempreviewpayloadobj));
|
|
2759
|
+
}
|
|
2760
|
+
})))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2761
|
+
"class": "col-lg-12"
|
|
2762
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2763
|
+
"class": "row m-0 w-100"
|
|
2764
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2765
|
+
"class": "col-lg-12 mb-4"
|
|
2766
|
+
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
2767
|
+
className: "".concat(reviewstyles.inputfield_label) + ' text-transform-none d-flex justify-content-start '
|
|
2768
|
+
}, langdetect == 'en' ? 'Your Name' : 'اسمك'), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
2769
|
+
"class": reviewstyles.form_control,
|
|
2770
|
+
value: reviewpayloadobj.reviewname,
|
|
2771
|
+
onChange: function onChange(event) {
|
|
2772
|
+
var tempreviewpayloadobj = _objectSpread$1_({}, reviewpayloadobj);
|
|
2773
|
+
tempreviewpayloadobj.reviewname = event.target.value;
|
|
2774
|
+
setreviewpayloadobj(_objectSpread$1_({}, tempreviewpayloadobj));
|
|
2775
|
+
}
|
|
2776
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2777
|
+
"class": "col-lg-12 mb-4"
|
|
2778
|
+
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
2779
|
+
className: "".concat(reviewstyles.inputfield_label) + ' text-transform-none d-flex justify-content-start '
|
|
2780
|
+
}, langdetect == 'en' ? 'Review title' : 'عنوان التقييم'), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
2781
|
+
"class": reviewstyles.form_control,
|
|
2782
|
+
value: reviewpayloadobj.reviewtitle,
|
|
2783
|
+
onChange: function onChange(event) {
|
|
2784
|
+
var tempreviewpayloadobj = _objectSpread$1_({}, reviewpayloadobj);
|
|
2785
|
+
tempreviewpayloadobj.reviewtitle = event.target.value;
|
|
2786
|
+
setreviewpayloadobj(_objectSpread$1_({}, tempreviewpayloadobj));
|
|
2787
|
+
}
|
|
2788
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2789
|
+
"class": "col-lg-12 mb-4"
|
|
2790
|
+
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
2791
|
+
className: "".concat(reviewstyles.inputfield_label) + ' text-transform-none d-flex justify-content-start '
|
|
2792
|
+
}, langdetect == 'en' ? 'Your Review' : 'تقييمك'), /*#__PURE__*/React__default["default"].createElement(TextareaAutosize__default["default"], {
|
|
2793
|
+
type: 'text',
|
|
2794
|
+
"class": reviewstyles.form_control + ' form_control ',
|
|
2795
|
+
value: reviewpayloadobj.reviewbody,
|
|
2796
|
+
onChange: function onChange(event) {
|
|
2797
|
+
var tempreviewpayloadobj = _objectSpread$1_({}, reviewpayloadobj);
|
|
2798
|
+
tempreviewpayloadobj.reviewbody = event.target.value;
|
|
2799
|
+
setreviewpayloadobj(_objectSpread$1_({}, tempreviewpayloadobj));
|
|
2800
|
+
},
|
|
2801
|
+
style: {
|
|
2802
|
+
resize: 'none',
|
|
2803
|
+
minRows: 5
|
|
2804
|
+
}
|
|
2805
|
+
})))), canuserreview && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2806
|
+
"class": "col-lg-12 allcentered mt-3"
|
|
2807
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
2808
|
+
"class": "".concat(reviewstyles.submitreviewbtn),
|
|
2809
|
+
onClick: function onClick() {
|
|
2810
|
+
if (reviewpayloadobj.reviewtitle.length != 0 && reviewpayloadobj.reviewbody.length != 0 && reviewpayloadobj.reviewrate.length != 0 && parseInt(reviewpayloadobj.reviewrate) > 0 && reviewpayloadobj.reviewname.length != 0) {
|
|
2811
|
+
GeneralAPIMutationContext.mutate({
|
|
2812
|
+
endpointurl: '/addproductreview',
|
|
2813
|
+
productid: productid,
|
|
2814
|
+
reviewpayloadobj: reviewpayloadobj,
|
|
2815
|
+
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
2816
|
+
if (data.data.status) {
|
|
2817
|
+
NotificationManager.success('', 'Success');
|
|
2818
|
+
addreviewcallback();
|
|
2819
|
+
} else {
|
|
2820
|
+
NotificationManager.warning('', data.data.reason);
|
|
2821
|
+
}
|
|
2822
|
+
}
|
|
2823
|
+
});
|
|
2824
|
+
} else {
|
|
2825
|
+
NotificationManager.warning('', langdetect == 'en' ? 'Please complete the missing fields' : 'من فضلك اكمل باقى البيانات');
|
|
2826
|
+
|
|
2827
|
+
// alert('Please fill the missing fields');
|
|
2828
|
+
}
|
|
2829
|
+
}
|
|
2830
|
+
}, langdetect == 'en' ? sectionproperties.reviewbtn_contenten : sectionproperties.reviewbtn_contentar)));
|
|
2831
|
+
};
|
|
2832
|
+
|
|
2833
|
+
function ownKeys$1Z(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2834
|
+
function _objectSpread$1Z(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1Z(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1Z(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2835
|
+
var ProductReviews = function ProductReviews(props) {
|
|
2836
|
+
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12;
|
|
2837
|
+
props.actions.lang;
|
|
2838
|
+
var langdetect = props.actions.langdetect;
|
|
2839
|
+
var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
|
|
2840
|
+
var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
|
|
2841
|
+
props.actions.NotificationManager;
|
|
2842
|
+
var sectionproperties = props.actions.sectionproperties;
|
|
2843
|
+
var actions = props.actions;
|
|
2844
|
+
var productid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 ? void 0 : (_fetchProductInfoQuer2 = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : (_fetchProductInfoQuer3 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.productid;
|
|
2845
|
+
var productinfo_cssstyles = props.actions.productinfo_cssstyles;
|
|
2846
|
+
var _useState = React.useState(false),
|
|
2847
|
+
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
2848
|
+
canuserreview = _useState2[0],
|
|
2849
|
+
setcanuserreview = _useState2[1];
|
|
2850
|
+
var _useState3 = React.useState(false),
|
|
2851
|
+
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
2852
|
+
openreviewmodal = _useState4[0],
|
|
2853
|
+
setopenreviewmodal = _useState4[1];
|
|
2854
|
+
var _useState5 = React.useState('all'),
|
|
2855
|
+
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
2856
|
+
filterproductreviews = _useState6[0],
|
|
2857
|
+
setfilterproductreviews = _useState6[1];
|
|
2858
|
+
var _useState7 = React.useState([]),
|
|
2859
|
+
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
2860
|
+
productreviews = _useState8[0],
|
|
2861
|
+
setproductreviews = _useState8[1];
|
|
2862
|
+
React.useEffect(function () {
|
|
2863
|
+
if (fetchProductInfoQueryContext.isSuccess) {
|
|
2864
|
+
getreviewsassignermutationfunc();
|
|
2865
|
+
}
|
|
2866
|
+
}, [filterproductreviews]);
|
|
2867
|
+
var getreviewsassignermutationfunc = function getreviewsassignermutationfunc() {
|
|
2868
|
+
var _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6;
|
|
2869
|
+
GeneralAPIMutationContext.mutate({
|
|
2870
|
+
endpointurl: '/fetchproductreviews',
|
|
2871
|
+
productid: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : (_fetchProductInfoQuer5 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : (_fetchProductInfoQuer6 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : _fetchProductInfoQuer6.productid,
|
|
2872
|
+
filterproductreviews: filterproductreviews,
|
|
2873
|
+
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
2874
|
+
if (data.data.status) {
|
|
2875
|
+
setproductreviews(data.data.productreviews);
|
|
2876
|
+
setcanuserreview(data.data.canuserAddReview);
|
|
2877
|
+
}
|
|
2878
|
+
}
|
|
2879
|
+
});
|
|
2880
|
+
};
|
|
2881
|
+
var addreviewcallback = function addreviewcallback() {
|
|
2882
|
+
setopenreviewmodal(false);
|
|
2883
|
+
getreviewsassignermutationfunc();
|
|
2884
|
+
fetchProductInfoQueryContext.refetch();
|
|
2885
|
+
};
|
|
2886
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2887
|
+
className: 'row w-100 ml-0 mr-0',
|
|
2888
|
+
style: {
|
|
2889
|
+
marginTop: sectionproperties.marginTop + 'px'
|
|
2890
|
+
}
|
|
2891
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2892
|
+
"class": "col-lg-12 p-0 w-100 pl-5 pr-5 p-md-0 plr-1025-0"
|
|
2893
|
+
}, GeneralAPIMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2894
|
+
"class": "col-lg-12 allcentered",
|
|
2895
|
+
style: {
|
|
2896
|
+
height: '20vh'
|
|
2897
|
+
}
|
|
2898
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.Messaging, {
|
|
2899
|
+
color: "#ccc",
|
|
2900
|
+
width: "10px",
|
|
2901
|
+
height: "10px",
|
|
2902
|
+
duration: "1s"
|
|
2903
|
+
})), !GeneralAPIMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2904
|
+
"class": "row m-0 w-100"
|
|
2905
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2906
|
+
"class": "col-lg-3"
|
|
2907
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2908
|
+
"class": "row m-0 w-100 allcentered"
|
|
2909
|
+
}, canuserreview && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2910
|
+
"class": "col-lg-12 allcentered mb-3 p-0"
|
|
2911
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
2912
|
+
"class": "".concat(productinfo_cssstyles.reviewbutton) + ' ',
|
|
2913
|
+
onClick: function onClick() {
|
|
2914
|
+
setopenreviewmodal(true);
|
|
2915
|
+
}
|
|
2916
|
+
}, langdetect == 'en' ? sectionproperties.reviewbtn_contenten : sectionproperties.reviewbtn_contentar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2917
|
+
"class": "col-lg-12 p-0 mb-3"
|
|
2918
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2919
|
+
"class": "row m-0 w-100 py-3 px-2",
|
|
2920
|
+
style: {
|
|
2921
|
+
borderRadius: 10,
|
|
2922
|
+
background: '#eee'
|
|
2923
|
+
}
|
|
2924
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2925
|
+
"class": "col-lg-12 p-0 allcentered"
|
|
2926
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2927
|
+
"class": "m-0 font-weight-600 text-uppercase",
|
|
2928
|
+
style: {
|
|
2929
|
+
fontSize: '17px'
|
|
2930
|
+
}
|
|
2931
|
+
}, langdetect == 'en' ? 'Overall Ratings' : 'جميع التقييمات')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2932
|
+
"class": "col-lg-12 pl-3 pr-3"
|
|
2933
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", null)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2934
|
+
"class": "col-lg-12 p-0 allcentered"
|
|
2935
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2936
|
+
"class": "m-0 p-0 font-weight-600",
|
|
2937
|
+
style: {
|
|
2938
|
+
fontSize: '20px'
|
|
2939
|
+
}
|
|
2940
|
+
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : (_fetchProductInfoQuer8 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : (_fetchProductInfoQuer9 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : _fetchProductInfoQuer9.productoverallrate, "/5")), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2941
|
+
"class": "col-lg-12 p-0 allcentered"
|
|
2942
|
+
}, /*#__PURE__*/React__default["default"].createElement(ReactStars__default["default"], {
|
|
2943
|
+
count: 5,
|
|
2944
|
+
value: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer10 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : (_fetchProductInfoQuer11 = _fetchProductInfoQuer10.data) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : (_fetchProductInfoQuer12 = _fetchProductInfoQuer11.productinfo) === null || _fetchProductInfoQuer12 === void 0 ? void 0 : _fetchProductInfoQuer12.productoverallrate,
|
|
2945
|
+
edit: false,
|
|
2946
|
+
size: 18,
|
|
2947
|
+
emptyIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2948
|
+
className: "far fa-star",
|
|
2949
|
+
style: {
|
|
2950
|
+
color: '#bfbfbf'
|
|
2951
|
+
}
|
|
2952
|
+
}),
|
|
2953
|
+
halfIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2954
|
+
className: "fa fa-star-half-alt style={{ color: '#FAB400' }}"
|
|
2955
|
+
}),
|
|
2956
|
+
filledIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2957
|
+
className: "fa fa-star",
|
|
2958
|
+
style: {
|
|
2959
|
+
color: '#FAB400'
|
|
2960
|
+
}
|
|
2961
|
+
}),
|
|
2962
|
+
activeColor: "#ffd700"
|
|
2963
|
+
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2964
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start mb-3"
|
|
2965
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2966
|
+
"class": "row m-0 w-100 py-3 px-2",
|
|
2967
|
+
style: {
|
|
2968
|
+
borderRadius: 10,
|
|
2969
|
+
background: '#eee'
|
|
2970
|
+
}
|
|
2971
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2972
|
+
"class": "col-lg-12 p-0 allcentered"
|
|
2973
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2974
|
+
"class": "m-0 font-weight-600 text-uppercase",
|
|
2975
|
+
style: {
|
|
2976
|
+
fontSize: '17px'
|
|
2977
|
+
}
|
|
2978
|
+
}, langdetect == 'en' ? 'Filter' : 'فلترة')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2979
|
+
"class": "col-lg-12 pl-3 pr-3"
|
|
2980
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", null)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2981
|
+
"class": "col-lg-12 d-flex justify-content-center"
|
|
2982
|
+
}, /*#__PURE__*/React__default["default"].createElement(ReactStars__default["default"], {
|
|
2983
|
+
count: 5,
|
|
2984
|
+
value: filterproductreviews
|
|
2985
|
+
// edit={false}
|
|
2986
|
+
,
|
|
2987
|
+
size: 18,
|
|
2988
|
+
emptyIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2989
|
+
className: "far fa-star",
|
|
2990
|
+
style: {
|
|
2991
|
+
color: '#bfbfbf'
|
|
2992
|
+
}
|
|
2993
|
+
}),
|
|
2994
|
+
halfIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2995
|
+
className: "fa fa-star-half-alt style={{ color: '#FAB400' }}"
|
|
2996
|
+
}),
|
|
2997
|
+
filledIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
2998
|
+
className: "fa fa-star",
|
|
2999
|
+
style: {
|
|
3000
|
+
color: '#FAB400'
|
|
3001
|
+
}
|
|
3002
|
+
}),
|
|
3003
|
+
activeColor: "#ffd700",
|
|
3004
|
+
onChange: function onChange(event) {
|
|
3005
|
+
setfilterproductreviews(event);
|
|
3006
|
+
}
|
|
3007
|
+
})))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3008
|
+
"class": "col-lg-9"
|
|
3009
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3010
|
+
"class": "row m-0 w-100"
|
|
3011
|
+
}, productreviews === null || productreviews === void 0 ? void 0 : productreviews.map(function (reviewitem, reviewindex) {
|
|
3012
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3013
|
+
"class": "col-lg-12 flex-column"
|
|
3014
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3015
|
+
"class": "row m-0 w-100"
|
|
3016
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3017
|
+
"class": "col-lg-12 d-flex justify-content-start p-0 mb-2"
|
|
3018
|
+
}, /*#__PURE__*/React__default["default"].createElement(ReactStars__default["default"], {
|
|
3019
|
+
count: 5,
|
|
3020
|
+
value: reviewitem.review_rating,
|
|
3021
|
+
edit: false,
|
|
3022
|
+
size: 18,
|
|
3023
|
+
emptyIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3024
|
+
className: "far fa-star",
|
|
3025
|
+
style: {
|
|
3026
|
+
color: '#bfbfbf'
|
|
3027
|
+
}
|
|
3028
|
+
}),
|
|
3029
|
+
halfIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3030
|
+
className: "fa fa-star-half-alt style={{ color: '#FAB400' }}"
|
|
3031
|
+
}),
|
|
3032
|
+
filledIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3033
|
+
className: "fa fa-star",
|
|
3034
|
+
style: {
|
|
3035
|
+
color: '#FAB400'
|
|
3036
|
+
}
|
|
3037
|
+
}),
|
|
3038
|
+
activeColor: "#ffd700"
|
|
3039
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3040
|
+
"class": "col-lg-12 p-0 mb-2 d-flex justify-content-start "
|
|
3041
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3042
|
+
"class": "m-0 p-0 font-weight-600",
|
|
3043
|
+
style: {
|
|
3044
|
+
fontSize: '17px'
|
|
3045
|
+
}
|
|
3046
|
+
}, reviewitem.reviewtitle)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3047
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start mb-2"
|
|
3048
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3049
|
+
"class": "m-0 p-0 font-weight-500"
|
|
3050
|
+
}, reviewitem.reviewbody)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3051
|
+
"class": "col-lg-6 d-flex align-items-center justify-content-start p-0"
|
|
3052
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3053
|
+
"class": "m-0 p-0 font-weight-600"
|
|
3054
|
+
}, langdetect == 'en' ? 'By' : 'عن طريق', ": ", reviewitem.review_name)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3055
|
+
"class": "col-lg-6 d-flex align-items-center justify-content-end justify-content-md-start p-0 font-weight-500 text-light"
|
|
3056
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
3057
|
+
"class": "fa fa-clock text-light ml-2 mr-2"
|
|
3058
|
+
}), " ", reviewitem.timestamp)), /*#__PURE__*/React__default["default"].createElement("hr", null));
|
|
3059
|
+
}))))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal, {
|
|
3060
|
+
show: openreviewmodal,
|
|
3061
|
+
onHide: function onHide() {
|
|
3062
|
+
return setopenreviewmodal(false);
|
|
3063
|
+
},
|
|
3064
|
+
centered: true,
|
|
3065
|
+
size: "md",
|
|
3066
|
+
"class": "reviewmodal"
|
|
3067
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Body, null, /*#__PURE__*/React__default["default"].createElement(AddReview, {
|
|
3068
|
+
actions: _objectSpread$1Z(_objectSpread$1Z({}, actions), {}, {
|
|
3069
|
+
productid: productid,
|
|
3070
|
+
canuserreview: canuserreview,
|
|
3071
|
+
addreviewcallback: addreviewcallback
|
|
3072
|
+
})
|
|
3073
|
+
}))));
|
|
3074
|
+
};
|
|
3075
|
+
|
|
2539
3076
|
function ownKeys$1Y(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2540
3077
|
function _objectSpread$1Y(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1Y(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1Y(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2541
3078
|
var Productinfo = function Productinfo(props) {
|
|
2542
|
-
var _ref, _ref2, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _fetchProductInfoQuer55, _fetchProductInfoQuer56, _fetchProductInfoQuer57, _fetchProductInfoQuer58, _fetchProductInfoQuer59, _fetchProductInfoQuer60, _fetchProductInfoQuer61, _fetchProductInfoQuer62, _fetchProductInfoQuer63, _fetchProductInfoQuer64, _fetchProductInfoQuer65, _fetchProductInfoQuer66, _fetchProductInfoQuer67, _fetchProductInfoQuer68, _fetchProductInfoQuer69, _fetchProductInfoQuer70, _fetchProductInfoQuer71, _fetchProductInfoQuer72, _fetchProductInfoQuer73, _fetchProductInfoQuer74, _fetchProductInfoQuer75, _fetchProductInfoQuer76, _fetchProductInfoQuer77, _fetchProductInfoQuer78, _fetchProductInfoQuer79, _fetchProductInfoQuer80, _fetchProductInfoQuer81, _fetchProductInfoQuer82, _fetchProductInfoQuer83, _fetchProductInfoQuer84, _fetchProductInfoQuer85, _fetchProductInfoQuer86, _fetchProductInfoQuer87, _fetchProductInfoQuer88, _fetchProductInfoQuer89, _fetchProductInfoQuer90, _fetchProductInfoQuer91, _fetchProductInfoQuer92,
|
|
3079
|
+
var _css, _ref, _ref2, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _fetchProductInfoQuer52, _fetchProductInfoQuer53, _fetchProductInfoQuer54, _fetchProductInfoQuer55, _fetchProductInfoQuer56, _fetchProductInfoQuer57, _fetchProductInfoQuer58, _fetchProductInfoQuer59, _fetchProductInfoQuer60, _fetchProductInfoQuer61, _fetchProductInfoQuer62, _fetchProductInfoQuer63, _fetchProductInfoQuer64, _fetchProductInfoQuer65, _fetchProductInfoQuer66, _fetchProductInfoQuer67, _fetchProductInfoQuer68, _fetchProductInfoQuer69, _fetchProductInfoQuer70, _fetchProductInfoQuer71, _fetchProductInfoQuer72, _fetchProductInfoQuer73, _fetchProductInfoQuer74, _fetchProductInfoQuer75, _fetchProductInfoQuer76, _fetchProductInfoQuer77, _fetchProductInfoQuer78, _fetchProductInfoQuer79, _fetchProductInfoQuer80, _fetchProductInfoQuer81, _fetchProductInfoQuer82, _fetchProductInfoQuer83, _fetchProductInfoQuer84, _fetchProductInfoQuer85, _fetchProductInfoQuer86, _fetchProductInfoQuer87, _fetchProductInfoQuer88, _fetchProductInfoQuer89, _fetchProductInfoQuer90, _fetchProductInfoQuer91, _fetchProductInfoQuer92, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8;
|
|
2543
3080
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
2544
3081
|
var lang = props.actions.lang;
|
|
2545
3082
|
var langdetect = props.actions.langdetect;
|
|
@@ -2561,6 +3098,7 @@
|
|
|
2561
3098
|
var setpageindexcontext = props.actions.setpageindexcontext;
|
|
2562
3099
|
var authdetailsContext = props.actions.authdetailsContext;
|
|
2563
3100
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
3101
|
+
var actions = props.actions;
|
|
2564
3102
|
var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
|
|
2565
3103
|
var setCurrentPageIdContext = props.actions.setCurrentPageIdContext;
|
|
2566
3104
|
var NotificationManager = props.actions.NotificationManager;
|
|
@@ -2582,13 +3120,13 @@
|
|
|
2582
3120
|
ProductInfoObj = _useState8[0],
|
|
2583
3121
|
setProductInfoObj = _useState8[1];
|
|
2584
3122
|
var _useState9 = React.useState('all'),
|
|
2585
|
-
_useState10 = _slicedToArray__default["default"](_useState9, 2)
|
|
2586
|
-
|
|
2587
|
-
|
|
3123
|
+
_useState10 = _slicedToArray__default["default"](_useState9, 2);
|
|
3124
|
+
_useState10[0];
|
|
3125
|
+
_useState10[1];
|
|
2588
3126
|
var _useState11 = React.useState([]),
|
|
2589
|
-
_useState12 = _slicedToArray__default["default"](_useState11, 2)
|
|
2590
|
-
|
|
2591
|
-
|
|
3127
|
+
_useState12 = _slicedToArray__default["default"](_useState11, 2);
|
|
3128
|
+
_useState12[0];
|
|
3129
|
+
_useState12[1];
|
|
2592
3130
|
var _useState13 = React.useState([]),
|
|
2593
3131
|
_useState14 = _slicedToArray__default["default"](_useState13, 2),
|
|
2594
3132
|
Relatedproducts = _useState14[0],
|
|
@@ -2629,12 +3167,16 @@
|
|
|
2629
3167
|
setShowMore = _useState26[1];
|
|
2630
3168
|
var _useState27 = React.useState(0),
|
|
2631
3169
|
_useState28 = _slicedToArray__default["default"](_useState27, 2),
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
var _useState29 = React.useState(
|
|
3170
|
+
currentshowingimageindex = _useState28[0],
|
|
3171
|
+
setcurrentshowingimageindex = _useState28[1];
|
|
3172
|
+
var _useState29 = React.useState(0),
|
|
2635
3173
|
_useState30 = _slicedToArray__default["default"](_useState29, 2),
|
|
2636
|
-
|
|
2637
|
-
|
|
3174
|
+
tabIndex = _useState30[0],
|
|
3175
|
+
setTabIndex = _useState30[1];
|
|
3176
|
+
var _useState31 = React.useState('descriptiontab'),
|
|
3177
|
+
_useState32 = _slicedToArray__default["default"](_useState31, 2),
|
|
3178
|
+
tabname = _useState32[0],
|
|
3179
|
+
settabname = _useState32[1];
|
|
2638
3180
|
var handleTabChange = function handleTabChange(event, newTabIndex) {
|
|
2639
3181
|
setTabIndex(newTabIndex);
|
|
2640
3182
|
};
|
|
@@ -2692,41 +3234,17 @@
|
|
|
2692
3234
|
tempfetchproductinfoObjContext.productid = productid;
|
|
2693
3235
|
setfetchproductinfoObjContext(_objectSpread$1Y({}, tempfetchproductinfoObjContext));
|
|
2694
3236
|
};
|
|
2695
|
-
React.useEffect(function () {
|
|
2696
|
-
if (fetchProductInfoQueryContext.isSuccess && tabname == 'reviewstab') {
|
|
2697
|
-
if (Array.isArray(productreviews) && productreviews.length == 0) {
|
|
2698
|
-
getreviewsassignermutationfunc();
|
|
2699
|
-
}
|
|
2700
|
-
}
|
|
2701
|
-
}, [tabname, fetchProductInfoQueryContext.isSuccess]);
|
|
2702
|
-
React.useEffect(function () {
|
|
2703
|
-
if (fetchProductInfoQueryContext.isSuccess && tabname == 'reviewstab') {
|
|
2704
|
-
getreviewsassignermutationfunc();
|
|
2705
|
-
}
|
|
2706
|
-
}, [filterproductreviews]);
|
|
2707
|
-
var getreviewsassignermutationfunc = function getreviewsassignermutationfunc() {
|
|
2708
|
-
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3;
|
|
2709
|
-
GeneralAPIMutationContext.mutate({
|
|
2710
|
-
endpointurl: '/fetchproductreviews',
|
|
2711
|
-
productid: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 ? void 0 : (_fetchProductInfoQuer2 = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : (_fetchProductInfoQuer3 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.productid,
|
|
2712
|
-
filterproductreviews: filterproductreviews,
|
|
2713
|
-
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
2714
|
-
if (data.data.status) {
|
|
2715
|
-
setproductreviews(data.data.productreviews);
|
|
2716
|
-
}
|
|
2717
|
-
}
|
|
2718
|
-
});
|
|
2719
|
-
};
|
|
2720
3237
|
React.useEffect(function () {
|
|
2721
3238
|
if (!fetchProductInfoQueryContext.isFetching && fetchProductInfoQueryContext.isSuccess) {
|
|
2722
3239
|
if (fetchProductInfoQueryContext.data.data.productinfo != null) {
|
|
2723
|
-
var
|
|
3240
|
+
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7;
|
|
2724
3241
|
var tempproductimagesarray = [];
|
|
2725
3242
|
if (Array.isArray(fetchProductInfoQueryContext.data.data.productinfo.productimages)) {
|
|
2726
3243
|
fetchProductInfoQueryContext.data.data.productinfo.productimages.forEach(function (arrayItem, arrayindex) {
|
|
2727
3244
|
var productimagesarrayobj = {
|
|
2728
3245
|
thumbnail: serverbaselink + arrayItem.path,
|
|
2729
|
-
original: serverbaselink + arrayItem.path
|
|
3246
|
+
original: serverbaselink + arrayItem.path,
|
|
3247
|
+
galleryid: arrayItem.galleryid
|
|
2730
3248
|
// description:
|
|
2731
3249
|
// // { dangerouslySetInnerHTML={{
|
|
2732
3250
|
// // __html:
|
|
@@ -2744,7 +3262,7 @@
|
|
|
2744
3262
|
tempaddtocardpayloadobj.productid = fetchProductInfoQueryContext.data.data.productinfo.productid;
|
|
2745
3263
|
setaddtocardpayloadobj(_objectSpread$1Y({}, tempaddtocardpayloadobj));
|
|
2746
3264
|
setRelatedProductsTagid(fetchProductInfoQueryContext.data.data.productinfo.maintagid);
|
|
2747
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
3265
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 ? void 0 : (_fetchProductInfoQuer2 = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : (_fetchProductInfoQuer3 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.maintagid) != null && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : (_fetchProductInfoQuer5 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : (_fetchProductInfoQuer6 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : (_fetchProductInfoQuer7 = _fetchProductInfoQuer6.maintagid) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : _fetchProductInfoQuer7.length) != 0) {
|
|
2748
3266
|
GeneralAPIMutationContext.mutate({
|
|
2749
3267
|
endpointurl: '/FetchRelatedProducts',
|
|
2750
3268
|
tagid: fetchProductInfoQueryContext.data.data.productinfo.maintagid,
|
|
@@ -2906,6 +3424,13 @@
|
|
|
2906
3424
|
variantid = variantobj.variantid;
|
|
2907
3425
|
var tempaddtocardpayloadobj = _objectSpread$1Y({}, addtocardpayloadobj);
|
|
2908
3426
|
tempaddtocardpayloadobj.variantid = variantid;
|
|
3427
|
+
var variantimageindex = 0;
|
|
3428
|
+
productimagesarray === null || productimagesarray === void 0 ? void 0 : productimagesarray.forEach(function (tempimageitem, tempimageindex) {
|
|
3429
|
+
if (tempimageitem.galleryid == (variantobj === null || variantobj === void 0 ? void 0 : variantobj.variantgalleryid)) {
|
|
3430
|
+
variantimageindex = tempimageindex;
|
|
3431
|
+
}
|
|
3432
|
+
});
|
|
3433
|
+
setcurrentshowingimageindex(variantimageindex);
|
|
2909
3434
|
setaddtocardpayloadobj(_objectSpread$1Y({}, tempaddtocardpayloadobj));
|
|
2910
3435
|
setvariantindexcompleted(ProductVariantIndex);
|
|
2911
3436
|
}
|
|
@@ -2917,8 +3442,8 @@
|
|
|
2917
3442
|
var addtocartfunc = function addtocartfunc() {
|
|
2918
3443
|
var runfunc = false;
|
|
2919
3444
|
if (addtocardpayloadobj.productid.length != 0 && addtocardpayloadobj.quantity > 0) {
|
|
2920
|
-
var
|
|
2921
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
3445
|
+
var _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10;
|
|
3446
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer8 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : (_fetchProductInfoQuer9 = _fetchProductInfoQuer8.data) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : (_fetchProductInfoQuer10 = _fetchProductInfoQuer9.productinfo) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : _fetchProductInfoQuer10.hasvariants) == 1) {
|
|
2922
3447
|
if (addtocardpayloadobj.variantid.length != 0) {
|
|
2923
3448
|
runfunc = true;
|
|
2924
3449
|
} else {
|
|
@@ -3041,6 +3566,54 @@
|
|
|
3041
3566
|
}
|
|
3042
3567
|
};
|
|
3043
3568
|
var productinfo_cssstyles = {
|
|
3569
|
+
submitreviewbtn: glamor.css({
|
|
3570
|
+
width: sectionproperties.applybtn_width + 'px',
|
|
3571
|
+
height: sectionproperties.applybtn_height + 'px',
|
|
3572
|
+
borderRadius: sectionproperties.applybtn_borderBottomLeftRadius + 'px',
|
|
3573
|
+
fontSize: sectionproperties.applybtn_fontsize + 'px',
|
|
3574
|
+
color: sectionproperties.applybtn_textColor,
|
|
3575
|
+
fontWeight: sectionproperties.applybtn_Textfontweight,
|
|
3576
|
+
backgroundColor: sectionproperties.applybtn_bgColor,
|
|
3577
|
+
border: sectionproperties.applybtnborderwidth + 'px solid ' + sectionproperties.applybtnbordercolor,
|
|
3578
|
+
textTransform: sectionproperties.applybtn_texttransform,
|
|
3579
|
+
':hover': {
|
|
3580
|
+
transition: '.3s',
|
|
3581
|
+
backgroundColor: sectionproperties.applybtn_bgColoronhover,
|
|
3582
|
+
color: sectionproperties.applybtn_Textcoloronhover
|
|
3583
|
+
}
|
|
3584
|
+
}),
|
|
3585
|
+
form_control: glamor.css((_css = {
|
|
3586
|
+
position: 'relative',
|
|
3587
|
+
display: 'flex',
|
|
3588
|
+
alignItems: 'center'
|
|
3589
|
+
}, _defineProperty__default["default"](_css, "display", 'block'), _defineProperty__default["default"](_css, "width", '100%'), _defineProperty__default["default"](_css, "padding", '0 10px'), _defineProperty__default["default"](_css, "transition", '.3s'), _defineProperty__default["default"](_css, "fontWeight", 500), _defineProperty__default["default"](_css, "border", sectionproperties.inputfieldbordertype == 'All' ? sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor : 0), _defineProperty__default["default"](_css, "borderBottom", sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor), _defineProperty__default["default"](_css, "borderRadius", sectionproperties.inputfieldborderradius + 'px'), _defineProperty__default["default"](_css, "height", sectionproperties.inputfieldheight + 'px'), _defineProperty__default["default"](_css, "background", sectionproperties.input_bgcolor), _defineProperty__default["default"](_css, "color", sectionproperties.inputfieldcolor), _defineProperty__default["default"](_css, ':focus', {
|
|
3590
|
+
borderColor: sectionproperties.inputfeildbordercoloronfocus
|
|
3591
|
+
}), _defineProperty__default["default"](_css, ':focus .login_input_icon', {
|
|
3592
|
+
color: sectionproperties.inputfeildbordercoloronfocus
|
|
3593
|
+
}), _css)),
|
|
3594
|
+
inputfield_label: glamor.css({
|
|
3595
|
+
color: sectionproperties.form_labelcolor,
|
|
3596
|
+
fontWeight: sectionproperties.form_labelfontweight,
|
|
3597
|
+
fontSize: sectionproperties.form_labelfontsize + 'px',
|
|
3598
|
+
textTransform: sectionproperties.form_labeltexttransform,
|
|
3599
|
+
marginBottom: sectionproperties.inputfieldbordertype == 'All' ? 10 : 0
|
|
3600
|
+
}),
|
|
3601
|
+
reviewbutton: glamor.css({
|
|
3602
|
+
width: sectionproperties.reviewbtn_width + 'px',
|
|
3603
|
+
height: sectionproperties.reviewbtn_height + 'px',
|
|
3604
|
+
background: sectionproperties.reviewbtn_bgcolor,
|
|
3605
|
+
color: sectionproperties.reviewbtn_color,
|
|
3606
|
+
fontSize: sectionproperties.reviewbtn_fontsize + 'px',
|
|
3607
|
+
borderRadius: sectionproperties.reviewbtn_borderradius + 'px',
|
|
3608
|
+
border: sectionproperties.reviewbtn_borderwidth + 'px solid ' + sectionproperties.reviewbtn_bordercolor,
|
|
3609
|
+
fontWeight: sectionproperties.reviewbtn_fontweight,
|
|
3610
|
+
':hover': {
|
|
3611
|
+
transition: '.3s',
|
|
3612
|
+
color: sectionproperties.reviewbtn_coloronhover,
|
|
3613
|
+
borderColor: sectionproperties.reviewbtn_coloronhover,
|
|
3614
|
+
backgroundColor: sectionproperties.reviewbtn_bgcoloronhover
|
|
3615
|
+
}
|
|
3616
|
+
}),
|
|
3044
3617
|
before: glamor.css({
|
|
3045
3618
|
':before': {
|
|
3046
3619
|
background: sectionproperties.activetabbordercolor
|
|
@@ -3253,24 +3826,24 @@
|
|
|
3253
3826
|
})
|
|
3254
3827
|
};
|
|
3255
3828
|
var getprice_discountpriceprops = function getprice_discountpriceprops(type, withtotal, variantindexcompleted) {
|
|
3256
|
-
var _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22, _fetchProductInfoQuer23
|
|
3829
|
+
var _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22, _fetchProductInfoQuer23;
|
|
3257
3830
|
var price = 0;
|
|
3258
3831
|
var quantityconditions = [];
|
|
3259
3832
|
var quantity = 0;
|
|
3260
3833
|
if (addtocardpayloadobj.quantity != undefined && addtocardpayloadobj.quantity != null) {
|
|
3261
3834
|
quantity = parseFloat(addtocardpayloadobj.quantity);
|
|
3262
3835
|
}
|
|
3263
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
3836
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer11 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : (_fetchProductInfoQuer12 = _fetchProductInfoQuer11.data) === null || _fetchProductInfoQuer12 === void 0 ? void 0 : (_fetchProductInfoQuer13 = _fetchProductInfoQuer12.productinfo) === null || _fetchProductInfoQuer13 === void 0 ? void 0 : _fetchProductInfoQuer13.productquantityoptions) != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer14 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer14 === void 0 ? void 0 : (_fetchProductInfoQuer15 = _fetchProductInfoQuer14.data) === null || _fetchProductInfoQuer15 === void 0 ? void 0 : (_fetchProductInfoQuer16 = _fetchProductInfoQuer15.productinfo) === null || _fetchProductInfoQuer16 === void 0 ? void 0 : _fetchProductInfoQuer16.productquantityoptions) != null && Array.isArray(fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer17 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer17 === void 0 ? void 0 : (_fetchProductInfoQuer18 = _fetchProductInfoQuer17.data) === null || _fetchProductInfoQuer18 === void 0 ? void 0 : (_fetchProductInfoQuer19 = _fetchProductInfoQuer18.productinfo) === null || _fetchProductInfoQuer19 === void 0 ? void 0 : _fetchProductInfoQuer19.productquantityoptions) && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer20 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer20 === void 0 ? void 0 : (_fetchProductInfoQuer21 = _fetchProductInfoQuer20.data) === null || _fetchProductInfoQuer21 === void 0 ? void 0 : (_fetchProductInfoQuer22 = _fetchProductInfoQuer21.productinfo) === null || _fetchProductInfoQuer22 === void 0 ? void 0 : (_fetchProductInfoQuer23 = _fetchProductInfoQuer22.productquantityoptions) === null || _fetchProductInfoQuer23 === void 0 ? void 0 : _fetchProductInfoQuer23.length) != 0) {
|
|
3264
3837
|
quantityconditions = fetchProductInfoQueryContext.data.data.productinfo.productquantityoptions;
|
|
3265
3838
|
}
|
|
3266
3839
|
if (type == 'defaultprice') {
|
|
3267
3840
|
price = fetchProductInfoQueryContext.data.data.productinfo.defaultprice;
|
|
3268
3841
|
if (fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1) {
|
|
3269
3842
|
if (variantindexcompleted != undefined) {
|
|
3270
|
-
var
|
|
3271
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
3272
|
-
var
|
|
3273
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
3843
|
+
var _fetchProductInfoQuer24, _fetchProductInfoQuer25, _fetchProductInfoQuer26, _fetchProductInfoQuer27;
|
|
3844
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer24 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer24 === void 0 ? void 0 : (_fetchProductInfoQuer25 = _fetchProductInfoQuer24.data) === null || _fetchProductInfoQuer25 === void 0 ? void 0 : (_fetchProductInfoQuer26 = _fetchProductInfoQuer25.productinfo) === null || _fetchProductInfoQuer26 === void 0 ? void 0 : (_fetchProductInfoQuer27 = _fetchProductInfoQuer26.variants[variantindexcompleted]) === null || _fetchProductInfoQuer27 === void 0 ? void 0 : _fetchProductInfoQuer27.variantprice) != undefined) {
|
|
3845
|
+
var _fetchProductInfoQuer28, _fetchProductInfoQuer29, _fetchProductInfoQuer30, _fetchProductInfoQuer31;
|
|
3846
|
+
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer28 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer28 === void 0 ? void 0 : (_fetchProductInfoQuer29 = _fetchProductInfoQuer28.data) === null || _fetchProductInfoQuer29 === void 0 ? void 0 : (_fetchProductInfoQuer30 = _fetchProductInfoQuer29.productinfo) === null || _fetchProductInfoQuer30 === void 0 ? void 0 : (_fetchProductInfoQuer31 = _fetchProductInfoQuer30.variants[variantindexcompleted]) === null || _fetchProductInfoQuer31 === void 0 ? void 0 : _fetchProductInfoQuer31.variantprice;
|
|
3274
3847
|
}
|
|
3275
3848
|
}
|
|
3276
3849
|
}
|
|
@@ -3278,10 +3851,10 @@
|
|
|
3278
3851
|
price = fetchProductInfoQueryContext.data.data.productinfo.defaultsaleprice;
|
|
3279
3852
|
if (fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1) {
|
|
3280
3853
|
if (variantindexcompleted != undefined) {
|
|
3281
|
-
var
|
|
3282
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
3283
|
-
var
|
|
3284
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
3854
|
+
var _fetchProductInfoQuer32, _fetchProductInfoQuer33, _fetchProductInfoQuer34, _fetchProductInfoQuer35;
|
|
3855
|
+
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer32 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer32 === void 0 ? void 0 : (_fetchProductInfoQuer33 = _fetchProductInfoQuer32.data) === null || _fetchProductInfoQuer33 === void 0 ? void 0 : (_fetchProductInfoQuer34 = _fetchProductInfoQuer33.productinfo) === null || _fetchProductInfoQuer34 === void 0 ? void 0 : (_fetchProductInfoQuer35 = _fetchProductInfoQuer34.variants[variantindexcompleted]) === null || _fetchProductInfoQuer35 === void 0 ? void 0 : _fetchProductInfoQuer35.variantsaleprice) != undefined) {
|
|
3856
|
+
var _fetchProductInfoQuer36, _fetchProductInfoQuer37, _fetchProductInfoQuer38, _fetchProductInfoQuer39;
|
|
3857
|
+
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer36 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer36 === void 0 ? void 0 : (_fetchProductInfoQuer37 = _fetchProductInfoQuer36.data) === null || _fetchProductInfoQuer37 === void 0 ? void 0 : (_fetchProductInfoQuer38 = _fetchProductInfoQuer37.productinfo) === null || _fetchProductInfoQuer38 === void 0 ? void 0 : (_fetchProductInfoQuer39 = _fetchProductInfoQuer38.variants[variantindexcompleted]) === null || _fetchProductInfoQuer39 === void 0 ? void 0 : _fetchProductInfoQuer39.variantsaleprice;
|
|
3285
3858
|
}
|
|
3286
3859
|
}
|
|
3287
3860
|
}
|
|
@@ -3307,7 +3880,7 @@
|
|
|
3307
3880
|
return price;
|
|
3308
3881
|
};
|
|
3309
3882
|
var getQuantityCondition = function getQuantityCondition() {
|
|
3310
|
-
var
|
|
3883
|
+
var _fetchProductInfoQuer40, _fetchProductInfoQuer41, _fetchProductInfoQuer42, _fetchProductInfoQuer43;
|
|
3311
3884
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3312
3885
|
"class": "col-lg-12 p-0",
|
|
3313
3886
|
style: {
|
|
@@ -3337,12 +3910,12 @@
|
|
|
3337
3910
|
height: 1,
|
|
3338
3911
|
background: sectionproperties.pricelisttitlecolor
|
|
3339
3912
|
}
|
|
3340
|
-
})), fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
3341
|
-
var
|
|
3913
|
+
})), fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer40 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer40 === void 0 ? void 0 : (_fetchProductInfoQuer41 = _fetchProductInfoQuer40.data) === null || _fetchProductInfoQuer41 === void 0 ? void 0 : (_fetchProductInfoQuer42 = _fetchProductInfoQuer41.productinfo) === null || _fetchProductInfoQuer42 === void 0 ? void 0 : (_fetchProductInfoQuer43 = _fetchProductInfoQuer42.productquantityoptions) === null || _fetchProductInfoQuer43 === void 0 ? void 0 : _fetchProductInfoQuer43.map(function (item, index) {
|
|
3914
|
+
var _fetchProductInfoQuer44, _fetchProductInfoQuer45, _fetchProductInfoQuer46, _fetchProductInfoQuer47;
|
|
3342
3915
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3343
3916
|
className: "col-lg-12 p-0 w-100 d-flex align-items-center",
|
|
3344
3917
|
style: {
|
|
3345
|
-
marginBottom: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
3918
|
+
marginBottom: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer44 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer44 === void 0 ? void 0 : (_fetchProductInfoQuer45 = _fetchProductInfoQuer44.data) === null || _fetchProductInfoQuer45 === void 0 ? void 0 : (_fetchProductInfoQuer46 = _fetchProductInfoQuer45.productinfo) === null || _fetchProductInfoQuer46 === void 0 ? void 0 : (_fetchProductInfoQuer47 = _fetchProductInfoQuer46.productquantityoptions) === null || _fetchProductInfoQuer47 === void 0 ? void 0 : _fetchProductInfoQuer47.length) - 1 != index ? '1rem' : 0
|
|
3346
3919
|
}
|
|
3347
3920
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3348
3921
|
"class": "d-flex align-items-center",
|
|
@@ -3376,7 +3949,7 @@
|
|
|
3376
3949
|
})));
|
|
3377
3950
|
};
|
|
3378
3951
|
var StoreInfo = function StoreInfo() {
|
|
3379
|
-
var
|
|
3952
|
+
var _fetchProductInfoQuer48, _fetchProductInfoQuer49, _fetchProductInfoQuer50, _fetchProductInfoQuer51, _authdetailsContext$i5, _authdetailsContext$i6;
|
|
3380
3953
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3381
3954
|
"class": "row m-0 w-100"
|
|
3382
3955
|
}, sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showstoreinfo1 == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -3419,7 +3992,7 @@
|
|
|
3419
3992
|
style: {
|
|
3420
3993
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
3421
3994
|
}
|
|
3422
|
-
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showpricinglist == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
3995
|
+
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showpricinglist == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer48 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer48 === void 0 ? void 0 : (_fetchProductInfoQuer49 = _fetchProductInfoQuer48.data) === null || _fetchProductInfoQuer49 === void 0 ? void 0 : (_fetchProductInfoQuer50 = _fetchProductInfoQuer49.productinfo) === null || _fetchProductInfoQuer50 === void 0 ? void 0 : (_fetchProductInfoQuer51 = _fetchProductInfoQuer50.productquantityoptions) === null || _fetchProductInfoQuer51 === void 0 ? void 0 : _fetchProductInfoQuer51.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3423
3996
|
"class": "col-lg-12 p-0 mb-4"
|
|
3424
3997
|
}, getQuantityCondition()), sectionproperties.showfooterphonenumber == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3425
3998
|
className: productinfo_cssstyles.storeinfocontainer + ' mb-4 col-lg-12 p-0 d-flex align-items-center cursor-pointer ',
|
|
@@ -3485,7 +4058,7 @@
|
|
|
3485
4058
|
width: "10px",
|
|
3486
4059
|
height: "10px",
|
|
3487
4060
|
duration: "1s"
|
|
3488
|
-
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4061
|
+
})), Object.keys(sectionproperties).length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3489
4062
|
className: "col-lg-12 p-0"
|
|
3490
4063
|
}, !fetchProductInfoQueryContext.isFetching && fetchProductInfoQueryContext.isSuccess && fetchProductInfoQueryContext.data.data.productinfo != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3491
4064
|
className: sectionproperties.card_marginLeft != 0 ? ' row m-0 w-100 pl-lg-3 pr-lg-3 pl-md-4 pr-md-4 pl-sm-1 pr-sm-1 ' : ' row m-0 w-100 p-sm-0 ',
|
|
@@ -3499,7 +4072,7 @@
|
|
|
3499
4072
|
langdetect: langdetect,
|
|
3500
4073
|
lang: lang,
|
|
3501
4074
|
srcfromprops: props.srcfromprops
|
|
3502
|
-
}, _defineProperty__default["default"](_ref, "returnpolicyobj", returnpolicyobj), _defineProperty__default["default"](_ref, "productinfo_cssstyles", productinfo_cssstyles), _defineProperty__default["default"](_ref, "addtocartfunc", addtocartfunc), _defineProperty__default["default"](_ref, "selectproductoptionvalue", selectproductoptionvalue), _defineProperty__default["default"](_ref, "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), _defineProperty__default["default"](_ref, "productimagesarray", productimagesarray), _defineProperty__default["default"](_ref, "fetchProductInfoQueryContext", fetchProductInfoQueryContext), _defineProperty__default["default"](_ref, "ProductInfoObj", ProductInfoObj), _defineProperty__default["default"](_ref, "sectionproperties", sectionproperties), _defineProperty__default["default"](_ref, "addtocardpayloadobj", addtocardpayloadobj), _defineProperty__default["default"](_ref, "setaddtocardpayloadobj", setaddtocardpayloadobj), _defineProperty__default["default"](_ref, "routingcountext", routingcountext), _defineProperty__default["default"](_ref, "AddtoCartMutationContext", AddtoCartMutationContext), _defineProperty__default["default"](_ref, "authdetailsContext", authdetailsContext), _defineProperty__default["default"](_ref, "addtofavoritescontext", addtofavoritescontext), _defineProperty__default["default"](_ref, "variantindexcompleted", variantindexcompleted), _defineProperty__default["default"](_ref, "StaticPagesLinksContext", StaticPagesLinksContext), _defineProperty__default["default"](_ref, "NotificationManager", NotificationManager), _defineProperty__default["default"](_ref, "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty__default["default"](_ref, "relatedproducts", relatedproducts), _defineProperty__default["default"](_ref, "getprice_discountpriceprops", getprice_discountpriceprops), _defineProperty__default["default"](_ref, "StoreInfoprops", StoreInfo), _ref)
|
|
4075
|
+
}, _defineProperty__default["default"](_ref, "returnpolicyobj", returnpolicyobj), _defineProperty__default["default"](_ref, "productinfo_cssstyles", productinfo_cssstyles), _defineProperty__default["default"](_ref, "addtocartfunc", addtocartfunc), _defineProperty__default["default"](_ref, "selectproductoptionvalue", selectproductoptionvalue), _defineProperty__default["default"](_ref, "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), _defineProperty__default["default"](_ref, "productimagesarray", productimagesarray), _defineProperty__default["default"](_ref, "fetchProductInfoQueryContext", fetchProductInfoQueryContext), _defineProperty__default["default"](_ref, "ProductInfoObj", ProductInfoObj), _defineProperty__default["default"](_ref, "sectionproperties", sectionproperties), _defineProperty__default["default"](_ref, "addtocardpayloadobj", addtocardpayloadobj), _defineProperty__default["default"](_ref, "setaddtocardpayloadobj", setaddtocardpayloadobj), _defineProperty__default["default"](_ref, "routingcountext", routingcountext), _defineProperty__default["default"](_ref, "AddtoCartMutationContext", AddtoCartMutationContext), _defineProperty__default["default"](_ref, "authdetailsContext", authdetailsContext), _defineProperty__default["default"](_ref, "addtofavoritescontext", addtofavoritescontext), _defineProperty__default["default"](_ref, "variantindexcompleted", variantindexcompleted), _defineProperty__default["default"](_ref, "StaticPagesLinksContext", StaticPagesLinksContext), _defineProperty__default["default"](_ref, "NotificationManager", NotificationManager), _defineProperty__default["default"](_ref, "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty__default["default"](_ref, "relatedproducts", relatedproducts), _defineProperty__default["default"](_ref, "getprice_discountpriceprops", getprice_discountpriceprops), _defineProperty__default["default"](_ref, "StoreInfoprops", StoreInfo), _defineProperty__default["default"](_ref, "currentshowingimageindex", currentshowingimageindex), _defineProperty__default["default"](_ref, "setcurrentshowingimageindex", setcurrentshowingimageindex), _ref)
|
|
3503
4076
|
}), fetchProductInfoQueryContext.data.data.productinfo.item_type == 'service' && /*#__PURE__*/React__default["default"].createElement(Service_itemtype, {
|
|
3504
4077
|
actions: (_ref2 = {
|
|
3505
4078
|
returnpolicyobj: returnpolicyobj,
|
|
@@ -3572,18 +4145,18 @@
|
|
|
3572
4145
|
onClick: function onClick() {
|
|
3573
4146
|
settabname('refundpolicytab');
|
|
3574
4147
|
}
|
|
3575
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
3576
|
-
label: 'Reviews',
|
|
4148
|
+
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer52 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer52 === void 0 ? void 0 : (_fetchProductInfoQuer53 = _fetchProductInfoQuer52.data) === null || _fetchProductInfoQuer53 === void 0 ? void 0 : (_fetchProductInfoQuer54 = _fetchProductInfoQuer53.productinfo) === null || _fetchProductInfoQuer54 === void 0 ? void 0 : _fetchProductInfoQuer54.productcanrate) == 1 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
|
|
4149
|
+
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
3577
4150
|
onClick: function onClick() {
|
|
3578
4151
|
settabname('reviewstab');
|
|
3579
4152
|
}
|
|
3580
|
-
}))),
|
|
3581
|
-
"class": "w-100"
|
|
3582
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3583
|
-
"class": "col-lg-12 pl-5 pr-5 p-md-0 w-100
|
|
4153
|
+
}))), /*#__PURE__*/React__default["default"].createElement(material.Box, {
|
|
4154
|
+
"class": "w-100 mt-5 mb-4"
|
|
4155
|
+
}, tabname == 'descriptiontab' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4156
|
+
"class": "col-lg-12 pl-5 pr-5 p-md-0 w-100"
|
|
3584
4157
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3585
4158
|
"class": "row m-0 w-100"
|
|
3586
|
-
}, langdetect == 'en' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
4159
|
+
}, langdetect == 'en' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer55 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer55 === void 0 ? void 0 : (_fetchProductInfoQuer56 = _fetchProductInfoQuer55.data) === null || _fetchProductInfoQuer56 === void 0 ? void 0 : (_fetchProductInfoQuer57 = _fetchProductInfoQuer56.productinfo) === null || _fetchProductInfoQuer57 === void 0 ? void 0 : _fetchProductInfoQuer57.description_en) != '' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer58 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer58 === void 0 ? void 0 : (_fetchProductInfoQuer59 = _fetchProductInfoQuer58.data) === null || _fetchProductInfoQuer59 === void 0 ? void 0 : (_fetchProductInfoQuer60 = _fetchProductInfoQuer59.productinfo) === null || _fetchProductInfoQuer60 === void 0 ? void 0 : _fetchProductInfoQuer60.description_en) != null && sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3587
4160
|
className: "col-lg-12 p-0 mb-4 d-flex justify-content-center"
|
|
3588
4161
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3589
4162
|
className: "row m-0 w-100 d-flex"
|
|
@@ -3595,16 +4168,16 @@
|
|
|
3595
4168
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
3596
4169
|
},
|
|
3597
4170
|
dangerouslySetInnerHTML: {
|
|
3598
|
-
__html: showMore == true ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
4171
|
+
__html: showMore == true ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer61 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer61 === void 0 ? void 0 : (_fetchProductInfoQuer62 = _fetchProductInfoQuer61.data) === null || _fetchProductInfoQuer62 === void 0 ? void 0 : (_fetchProductInfoQuer63 = _fetchProductInfoQuer62.productinfo) === null || _fetchProductInfoQuer63 === void 0 ? void 0 : _fetchProductInfoQuer63.description_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer64 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer64 === void 0 ? void 0 : (_fetchProductInfoQuer65 = _fetchProductInfoQuer64.data) === null || _fetchProductInfoQuer65 === void 0 ? void 0 : (_fetchProductInfoQuer66 = _fetchProductInfoQuer65.productinfo) === null || _fetchProductInfoQuer66 === void 0 ? void 0 : _fetchProductInfoQuer66.description_en.slice(0, 1000)
|
|
3599
4172
|
}
|
|
3600
4173
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3601
4174
|
"class": "col-lg-12 allcentered"
|
|
3602
|
-
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
4175
|
+
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer67 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer67 === void 0 ? void 0 : (_fetchProductInfoQuer68 = _fetchProductInfoQuer67.data) === null || _fetchProductInfoQuer68 === void 0 ? void 0 : (_fetchProductInfoQuer69 = _fetchProductInfoQuer68.productinfo) === null || _fetchProductInfoQuer69 === void 0 ? void 0 : _fetchProductInfoQuer69.description_en.length) > 1000 && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3603
4176
|
"class": "m-0 p-0 cursor-pointer text-grey font-weight-600",
|
|
3604
4177
|
onClick: function onClick() {
|
|
3605
4178
|
return setShowMore(!showMore);
|
|
3606
4179
|
}
|
|
3607
|
-
}, showMore ? lang.showless : lang.showmore)))), langdetect == 'ar' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
4180
|
+
}, showMore ? lang.showless : lang.showmore)))), langdetect == 'ar' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer70 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer70 === void 0 ? void 0 : (_fetchProductInfoQuer71 = _fetchProductInfoQuer70.data) === null || _fetchProductInfoQuer71 === void 0 ? void 0 : (_fetchProductInfoQuer72 = _fetchProductInfoQuer71.productinfo) === null || _fetchProductInfoQuer72 === void 0 ? void 0 : _fetchProductInfoQuer72.description_ar) != '' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer73 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer73 === void 0 ? void 0 : (_fetchProductInfoQuer74 = _fetchProductInfoQuer73.data) === null || _fetchProductInfoQuer74 === void 0 ? void 0 : (_fetchProductInfoQuer75 = _fetchProductInfoQuer74.productinfo) === null || _fetchProductInfoQuer75 === void 0 ? void 0 : _fetchProductInfoQuer75.description_ar) != null && sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3608
4181
|
className: "col-lg-12 p-0 mb-4 d-flex justify-content-center"
|
|
3609
4182
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3610
4183
|
className: "row m-0 w-100 d-flex"
|
|
@@ -3616,16 +4189,16 @@
|
|
|
3616
4189
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
3617
4190
|
},
|
|
3618
4191
|
dangerouslySetInnerHTML: {
|
|
3619
|
-
__html: showMore == true ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
4192
|
+
__html: showMore == true ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer76 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer76 === void 0 ? void 0 : (_fetchProductInfoQuer77 = _fetchProductInfoQuer76.data) === null || _fetchProductInfoQuer77 === void 0 ? void 0 : (_fetchProductInfoQuer78 = _fetchProductInfoQuer77.productinfo) === null || _fetchProductInfoQuer78 === void 0 ? void 0 : _fetchProductInfoQuer78.description_ar : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer79 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer79 === void 0 ? void 0 : (_fetchProductInfoQuer80 = _fetchProductInfoQuer79.data) === null || _fetchProductInfoQuer80 === void 0 ? void 0 : (_fetchProductInfoQuer81 = _fetchProductInfoQuer80.productinfo) === null || _fetchProductInfoQuer81 === void 0 ? void 0 : _fetchProductInfoQuer81.description_ar.slice(0, 1000)
|
|
3620
4193
|
}
|
|
3621
4194
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3622
4195
|
"class": "col-lg-12 allcentered"
|
|
3623
|
-
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
4196
|
+
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer82 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer82 === void 0 ? void 0 : (_fetchProductInfoQuer83 = _fetchProductInfoQuer82.data) === null || _fetchProductInfoQuer83 === void 0 ? void 0 : (_fetchProductInfoQuer84 = _fetchProductInfoQuer83.productinfo) === null || _fetchProductInfoQuer84 === void 0 ? void 0 : _fetchProductInfoQuer84.description_ar.length) > 1000 && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3624
4197
|
"class": "m-0 p-0 cursor-pointer text-grey font-weight-600 text-right",
|
|
3625
4198
|
onClick: function onClick() {
|
|
3626
4199
|
return setShowMore(!showMore);
|
|
3627
4200
|
}
|
|
3628
|
-
}, showMore ? lang.showless : lang.showmore)))), sectionproperties.showGallery == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
4201
|
+
}, showMore ? lang.showless : lang.showmore)))), sectionproperties.showGallery == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer85 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer85 === void 0 ? void 0 : (_fetchProductInfoQuer86 = _fetchProductInfoQuer85.data) === null || _fetchProductInfoQuer86 === void 0 ? void 0 : (_fetchProductInfoQuer87 = _fetchProductInfoQuer86.productinfo) === null || _fetchProductInfoQuer87 === void 0 ? void 0 : (_fetchProductInfoQuer88 = _fetchProductInfoQuer87.productimages) === null || _fetchProductInfoQuer88 === void 0 ? void 0 : _fetchProductInfoQuer88.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3629
4202
|
"class": "col-lg-12 p-0"
|
|
3630
4203
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3631
4204
|
"class": "row m-0 w-100 allcentered pl-md-3 pr-md-3",
|
|
@@ -3633,7 +4206,7 @@
|
|
|
3633
4206
|
paddingLeft: sectionproperties.galleryPaddingHorizontal + 'px',
|
|
3634
4207
|
paddingRight: sectionproperties.galleryPaddingHorizontal + 'px'
|
|
3635
4208
|
}
|
|
3636
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
4209
|
+
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer89 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer89 === void 0 ? void 0 : (_fetchProductInfoQuer90 = _fetchProductInfoQuer89.data) === null || _fetchProductInfoQuer90 === void 0 ? void 0 : (_fetchProductInfoQuer91 = _fetchProductInfoQuer90.productinfo) === null || _fetchProductInfoQuer91 === void 0 ? void 0 : (_fetchProductInfoQuer92 = _fetchProductInfoQuer91.productimages) === null || _fetchProductInfoQuer92 === void 0 ? void 0 : _fetchProductInfoQuer92.map(function (item, index) {
|
|
3637
4210
|
if (index <= 6) {
|
|
3638
4211
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3639
4212
|
"class": ' col-md-4 col-sm-12 mb-3 col-lg-' + sectionproperties.galleryNoOfCols,
|
|
@@ -3652,8 +4225,8 @@
|
|
|
3652
4225
|
loading: "lazy"
|
|
3653
4226
|
}));
|
|
3654
4227
|
}
|
|
3655
|
-
})))))
|
|
3656
|
-
"class": "col-lg-12 pl-5 pr-5 p-md-0 w-100
|
|
4228
|
+
}))))), tabname == 'shippingpolicytab' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4229
|
+
"class": "col-lg-12 pl-5 pr-5 p-md-0 w-100"
|
|
3657
4230
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3658
4231
|
className: ' m-0 p-0 wordbreak ',
|
|
3659
4232
|
style: {
|
|
@@ -3664,8 +4237,8 @@
|
|
|
3664
4237
|
dangerouslySetInnerHTML: {
|
|
3665
4238
|
__html: langdetect == 'en' ? (_returnpolicyobj5 = returnpolicyobj('Shipping Policy')) === null || _returnpolicyobj5 === void 0 ? void 0 : _returnpolicyobj5.policycontent_en : (_returnpolicyobj6 = returnpolicyobj('Shipping Policy')) === null || _returnpolicyobj6 === void 0 ? void 0 : _returnpolicyobj6.policycontent_ar
|
|
3666
4239
|
}
|
|
3667
|
-
}))
|
|
3668
|
-
"class": "col-lg-12 p-0 w-100
|
|
4240
|
+
})), tabname == 'refundpolicytab' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4241
|
+
"class": "col-lg-12 p-0 w-100 pl-5 pr-5 p-md-0"
|
|
3669
4242
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
3670
4243
|
className: ' m-0 p-0 wordbreak ',
|
|
3671
4244
|
style: {
|
|
@@ -3676,35 +4249,14 @@
|
|
|
3676
4249
|
dangerouslySetInnerHTML: {
|
|
3677
4250
|
__html: langdetect == 'en' ? (_returnpolicyobj7 = returnpolicyobj('Refund Policy')) === null || _returnpolicyobj7 === void 0 ? void 0 : _returnpolicyobj7.policycontent_en : (_returnpolicyobj8 = returnpolicyobj('Refund Policy')) === null || _returnpolicyobj8 === void 0 ? void 0 : _returnpolicyobj8.policycontent_ar
|
|
3678
4251
|
}
|
|
3679
|
-
}))
|
|
3680
|
-
"class": "col-lg-12 p-0 w-100
|
|
3681
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
}
|
|
3686
|
-
}, /*#__PURE__*/React__default["default"].createElement("
|
|
3687
|
-
value: "all"
|
|
3688
|
-
}, "All"), /*#__PURE__*/React__default["default"].createElement("option", {
|
|
3689
|
-
value: "5"
|
|
3690
|
-
}, "5"), /*#__PURE__*/React__default["default"].createElement("option", {
|
|
3691
|
-
value: "4"
|
|
3692
|
-
}, "4"), /*#__PURE__*/React__default["default"].createElement("option", {
|
|
3693
|
-
value: "3"
|
|
3694
|
-
}, "3"), /*#__PURE__*/React__default["default"].createElement("option", {
|
|
3695
|
-
value: "2"
|
|
3696
|
-
}, "2"), /*#__PURE__*/React__default["default"].createElement("option", {
|
|
3697
|
-
value: "1"
|
|
3698
|
-
}, "1")), GeneralAPIMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("p", null, "Loading.."), !GeneralAPIMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3699
|
-
"class": "row w-100"
|
|
3700
|
-
}, productreviews === null || productreviews === void 0 ? void 0 : productreviews.map(function (reviewitem, reviewindex) {
|
|
3701
|
-
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3702
|
-
"class": "col-lg-12",
|
|
3703
|
-
style: {
|
|
3704
|
-
backgroundColor: 'grey'
|
|
3705
|
-
}
|
|
3706
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", null, "Title:", reviewitem.reviewtitle), /*#__PURE__*/React__default["default"].createElement("p", null, "Body:", reviewitem.reviewbody), /*#__PURE__*/React__default["default"].createElement("p", null, "Name:", reviewitem.review_name), /*#__PURE__*/React__default["default"].createElement("p", null, "Rating:", reviewitem.review_rating), /*#__PURE__*/React__default["default"].createElement("p", null, "date:", reviewitem.reviewtimestmap));
|
|
3707
|
-
})))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4252
|
+
})), tabname == 'reviewstab' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4253
|
+
"class": "col-lg-12 p-0 w-100 pl-5 pr-5 p-md-0"
|
|
4254
|
+
}, /*#__PURE__*/React__default["default"].createElement(ProductReviews, {
|
|
4255
|
+
actions: _objectSpread$1Y(_objectSpread$1Y({}, actions), {}, {
|
|
4256
|
+
productinfo_cssstyles: productinfo_cssstyles,
|
|
4257
|
+
sectionproperties: sectionproperties
|
|
4258
|
+
})
|
|
4259
|
+
}))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3708
4260
|
className: sectionproperties.card_marginLeft != 0 ? ' col-lg-12 pl-lg-3 pr-lg-3 pl-md-4 pr-md-4 pl-sm-1 pr-sm-1 ' : ' col-lg-12 p-sm-0 ',
|
|
3709
4261
|
style: {
|
|
3710
4262
|
paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
|
|
@@ -3944,32 +4496,36 @@
|
|
|
3944
4496
|
var _useState = React.useState(''),
|
|
3945
4497
|
_useState2 = _slicedToArray__default["default"](_useState, 2);
|
|
3946
4498
|
_useState2[0];
|
|
3947
|
-
|
|
3948
|
-
var _useState3 = React.useState(
|
|
4499
|
+
_useState2[1];
|
|
4500
|
+
var _useState3 = React.useState(''),
|
|
3949
4501
|
_useState4 = _slicedToArray__default["default"](_useState3, 2);
|
|
3950
4502
|
_useState4[0];
|
|
3951
|
-
var
|
|
3952
|
-
var _useState5 = React.useState(
|
|
4503
|
+
var setCurrentPageId = _useState4[1];
|
|
4504
|
+
var _useState5 = React.useState(false),
|
|
4505
|
+
_useState6 = _slicedToArray__default["default"](_useState5, 2);
|
|
4506
|
+
_useState6[0];
|
|
4507
|
+
var setopenorderitemsmodalshow = _useState6[1];
|
|
4508
|
+
var _useState7 = React.useState({
|
|
3953
4509
|
reviewtitle: '',
|
|
3954
4510
|
reviewbody: '',
|
|
3955
4511
|
reviewrate: 0,
|
|
3956
4512
|
reviewname: ''
|
|
3957
4513
|
}),
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
var
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
var
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
var
|
|
3970
|
-
|
|
3971
|
-
orderindex =
|
|
3972
|
-
setorderindex =
|
|
4514
|
+
_useState8 = _slicedToArray__default["default"](_useState7, 2);
|
|
4515
|
+
_useState8[0];
|
|
4516
|
+
_useState8[1];
|
|
4517
|
+
var _useState9 = React.useState({}),
|
|
4518
|
+
_useState10 = _slicedToArray__default["default"](_useState9, 2);
|
|
4519
|
+
_useState10[0];
|
|
4520
|
+
_useState10[1];
|
|
4521
|
+
var _useState11 = React.useState(false),
|
|
4522
|
+
_useState12 = _slicedToArray__default["default"](_useState11, 2);
|
|
4523
|
+
_useState12[0];
|
|
4524
|
+
_useState12[1];
|
|
4525
|
+
var _useState13 = React.useState(''),
|
|
4526
|
+
_useState14 = _slicedToArray__default["default"](_useState13, 2),
|
|
4527
|
+
orderindex = _useState14[0],
|
|
4528
|
+
setorderindex = _useState14[1];
|
|
3973
4529
|
React.useEffect(function () {
|
|
3974
4530
|
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.loggedin) == true) {
|
|
3975
4531
|
var tempFetchQueriesEngineContext = _objectSpread$1W({}, FetchQueriesEngineContext);
|
|
@@ -3977,10 +4533,10 @@
|
|
|
3977
4533
|
setFetchQueriesEngineContext(_objectSpread$1W({}, tempFetchQueriesEngineContext));
|
|
3978
4534
|
}
|
|
3979
4535
|
}, []);
|
|
3980
|
-
var
|
|
3981
|
-
|
|
3982
|
-
sectionproperties =
|
|
3983
|
-
setsectionproperties =
|
|
4536
|
+
var _useState15 = React.useState(''),
|
|
4537
|
+
_useState16 = _slicedToArray__default["default"](_useState15, 2),
|
|
4538
|
+
sectionproperties = _useState16[0],
|
|
4539
|
+
setsectionproperties = _useState16[1];
|
|
3984
4540
|
React.useEffect(function () {
|
|
3985
4541
|
var cartindex = templatepropcontext.pagesnprop.findIndex(function (x) {
|
|
3986
4542
|
return x.staticpageid == '6218bccb81d1c';
|
|
@@ -4137,10 +4693,10 @@
|
|
|
4137
4693
|
}
|
|
4138
4694
|
})
|
|
4139
4695
|
};
|
|
4140
|
-
var
|
|
4141
|
-
|
|
4142
|
-
bgimagesarray =
|
|
4143
|
-
setbgimagesarray =
|
|
4696
|
+
var _useState17 = React.useState([]),
|
|
4697
|
+
_useState18 = _slicedToArray__default["default"](_useState17, 2),
|
|
4698
|
+
bgimagesarray = _useState18[0],
|
|
4699
|
+
setbgimagesarray = _useState18[1];
|
|
4144
4700
|
React.useEffect(function () {
|
|
4145
4701
|
if (sectionproperties.length != 0) {
|
|
4146
4702
|
if (sectionproperties.arrayofobjectimagesonly != null) {
|
|
@@ -4546,7 +5102,7 @@
|
|
|
4546
5102
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4547
5103
|
className: "row m-0 w-100 d-flex align-items-start"
|
|
4548
5104
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4549
|
-
className: "col-lg-
|
|
5105
|
+
className: "col-lg-9 col-md-9 col-sm-9 p-0 d-flex align-items-start"
|
|
4550
5106
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
4551
5107
|
className: orderhistory_cssstyles.productNameStyles + ' p-0 m-0 wordbreak wordbreak3 ',
|
|
4552
5108
|
style: {
|
|
@@ -4569,26 +5125,7 @@
|
|
|
4569
5125
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
4570
5126
|
className: ' m-0 p-0 font-13 fontfamilymedium wordbreak allcentered '
|
|
4571
5127
|
}, variantoptionitem.valuename));
|
|
4572
|
-
})))))),
|
|
4573
|
-
onClick: function onClick() {
|
|
4574
|
-
setopenreviewmodal(true);
|
|
4575
|
-
setopenreviewmodalproductobj(item);
|
|
4576
|
-
}
|
|
4577
|
-
}, "Rate item"), item.hasreview == 1 && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
4578
|
-
style: {
|
|
4579
|
-
color: 'green'
|
|
4580
|
-
},
|
|
4581
|
-
onClick: function onClick() {
|
|
4582
|
-
setopenreviewmodal(true);
|
|
4583
|
-
setopenreviewmodalproductobj(item);
|
|
4584
|
-
setreviewpayloadobj({
|
|
4585
|
-
reviewtitle: item.reviewtitle,
|
|
4586
|
-
reviewbody: item.reviewbody,
|
|
4587
|
-
reviewrate: item.review_rating,
|
|
4588
|
-
reviewname: item.review_name
|
|
4589
|
-
});
|
|
4590
|
-
}
|
|
4591
|
-
}, "View Rate")), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5128
|
+
})))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4592
5129
|
className: "col-lg-12 p-0"
|
|
4593
5130
|
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
4594
5131
|
className: "mt- mb-3"
|
|
@@ -4851,77 +5388,7 @@
|
|
|
4851
5388
|
color: sectionproperties.paymenttextcolor,
|
|
4852
5389
|
fontWeight: sectionproperties.paymenttextfontweight
|
|
4853
5390
|
}
|
|
4854
|
-
}, langdetect == 'en' ? sectionproperties.cod_text_en : sectionproperties.cod_text_ar))))))))
|
|
4855
|
-
show: openreviewmodal,
|
|
4856
|
-
onHide: function onHide() {
|
|
4857
|
-
return setopenreviewmodal(false);
|
|
4858
|
-
},
|
|
4859
|
-
centered: true,
|
|
4860
|
-
size: "lg"
|
|
4861
|
-
}, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Body, null, /*#__PURE__*/React__default["default"].createElement("p", null, "Review modal"), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4862
|
-
"class": "col-lg-12"
|
|
4863
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", null, "Review title"), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
4864
|
-
disabled: openreviewmodalproductobj.hasreview == 1 ? true : false,
|
|
4865
|
-
value: reviewpayloadobj.reviewtitle,
|
|
4866
|
-
onChange: function onChange(event) {
|
|
4867
|
-
var tempreviewpayloadobj = _objectSpread$1W({}, reviewpayloadobj);
|
|
4868
|
-
tempreviewpayloadobj.reviewtitle = event.target.value;
|
|
4869
|
-
setreviewpayloadobj(_objectSpread$1W({}, tempreviewpayloadobj));
|
|
4870
|
-
}
|
|
4871
|
-
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4872
|
-
"class": "col-lg-12"
|
|
4873
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", null, "Review body"), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
4874
|
-
disabled: openreviewmodalproductobj.hasreview == 1 ? true : false,
|
|
4875
|
-
value: reviewpayloadobj.reviewbody,
|
|
4876
|
-
onChange: function onChange(event) {
|
|
4877
|
-
var tempreviewpayloadobj = _objectSpread$1W({}, reviewpayloadobj);
|
|
4878
|
-
tempreviewpayloadobj.reviewbody = event.target.value;
|
|
4879
|
-
setreviewpayloadobj(_objectSpread$1W({}, tempreviewpayloadobj));
|
|
4880
|
-
}
|
|
4881
|
-
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4882
|
-
"class": "col-lg-12"
|
|
4883
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", null, "Review rate"), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
4884
|
-
disabled: openreviewmodalproductobj.hasreview == 1 ? true : false,
|
|
4885
|
-
value: reviewpayloadobj.reviewrate,
|
|
4886
|
-
type: "number",
|
|
4887
|
-
onChange: function onChange(event) {
|
|
4888
|
-
var tempreviewpayloadobj = _objectSpread$1W({}, reviewpayloadobj);
|
|
4889
|
-
tempreviewpayloadobj.reviewrate = event.target.value;
|
|
4890
|
-
setreviewpayloadobj(_objectSpread$1W({}, tempreviewpayloadobj));
|
|
4891
|
-
}
|
|
4892
|
-
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4893
|
-
"class": "col-lg-12"
|
|
4894
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", null, "Review name"), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
4895
|
-
disabled: openreviewmodalproductobj.hasreview == 1 ? true : false,
|
|
4896
|
-
value: reviewpayloadobj.reviewname,
|
|
4897
|
-
onChange: function onChange(event) {
|
|
4898
|
-
var tempreviewpayloadobj = _objectSpread$1W({}, reviewpayloadobj);
|
|
4899
|
-
tempreviewpayloadobj.reviewname = event.target.value;
|
|
4900
|
-
setreviewpayloadobj(_objectSpread$1W({}, tempreviewpayloadobj));
|
|
4901
|
-
}
|
|
4902
|
-
})), openreviewmodalproductobj.hasreview == 0 && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
4903
|
-
onClick: function onClick() {
|
|
4904
|
-
if (reviewpayloadobj.reviewtitle.length != 0 && reviewpayloadobj.reviewbody.length != 0 && reviewpayloadobj.reviewrate.length != 0 && parseInt(reviewpayloadobj.reviewrate) > 0 && reviewpayloadobj.reviewname.length != 0) {
|
|
4905
|
-
var tempreviewpayloadobj = reviewpayloadobj;
|
|
4906
|
-
tempreviewpayloadobj.endpointurl = '/addproductreview';
|
|
4907
|
-
tempreviewpayloadobj.orderitemid = openreviewmodalproductobj.orderitemid;
|
|
4908
|
-
GeneralAPIMutationContext.mutate({
|
|
4909
|
-
endpointurl: '/addproductreview',
|
|
4910
|
-
orderitemid: openreviewmodalproductobj.orderitemid,
|
|
4911
|
-
reviewpayloadobj: reviewpayloadobj,
|
|
4912
|
-
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
4913
|
-
if (data.data.status) {
|
|
4914
|
-
NotificationManager.success('', 'Success');
|
|
4915
|
-
} else {
|
|
4916
|
-
NotificationManager.warning('', data.data.reason);
|
|
4917
|
-
}
|
|
4918
|
-
}
|
|
4919
|
-
});
|
|
4920
|
-
} else {
|
|
4921
|
-
alert('Please fill the missing fields');
|
|
4922
|
-
}
|
|
4923
|
-
}
|
|
4924
|
-
}, "Submit")))))));
|
|
5391
|
+
}, langdetect == 'en' ? sectionproperties.cod_text_en : sectionproperties.cod_text_ar))))))))))));
|
|
4925
5392
|
};
|
|
4926
5393
|
|
|
4927
5394
|
var css_248z$G = ".wishlist-module_wishlist_card__sUXul .wishlist-module_image_container__FuptA {\n height: 300px;\n border-radius: 10px;\n background-size: cover !important;\n background-repeat: no-repeat;\n background-position: center;\n background-color: #e6e6e6;\n width: 100% !important;\n box-shadow: 0 0 10px #e6e6e6;\n}\n.wishlist-module_floatbtn__PZDvQ {\n position: absolute;\n top: 10px;\n right: 10px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: 0.3s;\n opacity: 0;\n}\n.wishlist-module_wishlist_card__sUXul:hover .wishlist-module_floatbtn__PZDvQ {\n opacity: 1;\n}\n@media screen and (max-width: 800px) {\n .wishlist-module_floatbtn__PZDvQ {\n opacity: 1 !important;\n }\n}\n";
|
|
@@ -7117,7 +7584,7 @@
|
|
|
7117
7584
|
return import('react-select');
|
|
7118
7585
|
});
|
|
7119
7586
|
var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
7120
|
-
var _css;
|
|
7587
|
+
var _fetchAuthorizationQu, _fetchAuthorizationQu2, _fetchAuthorizationQu3, _fetchAuthorizationQu4, _fetchAuthorizationQu5, _fetchAuthorizationQu6, _css;
|
|
7121
7588
|
var lang = props.actions.lang;
|
|
7122
7589
|
var langdetect = props.actions.langdetect;
|
|
7123
7590
|
props.actions.routingcountext;
|
|
@@ -7130,21 +7597,34 @@
|
|
|
7130
7597
|
var FetchTabexStatesPayloadobjContext = props.actions.FetchTabexStatesPayloadobjContext;
|
|
7131
7598
|
var setFetchTabexStatesPayloadobjContext = props.actions.setFetchTabexStatesPayloadobjContext;
|
|
7132
7599
|
var CustomerSignUpMutationContext = props.actions.CustomerSignUpMutationContext;
|
|
7600
|
+
var fetchAuthorizationQueryContext = props.actions.fetchAuthorizationQueryContext;
|
|
7133
7601
|
var authdetailsContext = props.actions.authdetailsContext;
|
|
7134
7602
|
var instapikey = props.actions.instapikey;
|
|
7135
7603
|
var templatepropcontext = props.actions.templatepropcontext;
|
|
7136
7604
|
props.actions.ikimagecredcontext;
|
|
7137
7605
|
var NotificationManager = props.actions.NotificationManager;
|
|
7138
7606
|
var actions = props.actions;
|
|
7139
|
-
var _useState = React.useState(
|
|
7607
|
+
var _useState = React.useState(fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : (_fetchAuthorizationQu = fetchAuthorizationQueryContext.data) === null || _fetchAuthorizationQu === void 0 ? void 0 : (_fetchAuthorizationQu2 = _fetchAuthorizationQu.data) === null || _fetchAuthorizationQu2 === void 0 ? void 0 : (_fetchAuthorizationQu3 = _fetchAuthorizationQu2.instinfo) === null || _fetchAuthorizationQu3 === void 0 ? void 0 : _fetchAuthorizationQu3.customerAddressrequiered),
|
|
7140
7608
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
7141
|
-
|
|
7142
|
-
|
|
7143
|
-
var _useState3 = React.useState(
|
|
7144
|
-
_useState4 = _slicedToArray__default["default"](_useState3, 2)
|
|
7145
|
-
|
|
7146
|
-
|
|
7147
|
-
var _useState5 = React.useState(
|
|
7609
|
+
customeraddressrequierd = _useState2[0],
|
|
7610
|
+
setcustomeraddressrequierd = _useState2[1];
|
|
7611
|
+
var _useState3 = React.useState(fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : (_fetchAuthorizationQu4 = fetchAuthorizationQueryContext.data) === null || _fetchAuthorizationQu4 === void 0 ? void 0 : (_fetchAuthorizationQu5 = _fetchAuthorizationQu4.data) === null || _fetchAuthorizationQu5 === void 0 ? void 0 : (_fetchAuthorizationQu6 = _fetchAuthorizationQu5.instinfo) === null || _fetchAuthorizationQu6 === void 0 ? void 0 : _fetchAuthorizationQu6.customervalidateemail),
|
|
7612
|
+
_useState4 = _slicedToArray__default["default"](_useState3, 2);
|
|
7613
|
+
_useState4[0];
|
|
7614
|
+
var setcustomervalidateemail = _useState4[1];
|
|
7615
|
+
var _useState5 = React.useState(false),
|
|
7616
|
+
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
7617
|
+
validateemailmodal = _useState6[0],
|
|
7618
|
+
setvalidateemailmodal = _useState6[1];
|
|
7619
|
+
var _useState7 = React.useState(''),
|
|
7620
|
+
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
7621
|
+
sectionproperties = _useState8[0],
|
|
7622
|
+
setsectionproperties = _useState8[1];
|
|
7623
|
+
var _useState9 = React.useState(false),
|
|
7624
|
+
_useState10 = _slicedToArray__default["default"](_useState9, 2),
|
|
7625
|
+
dataloaded = _useState10[0],
|
|
7626
|
+
setdataloaded = _useState10[1];
|
|
7627
|
+
var _useState11 = React.useState({
|
|
7148
7628
|
instapikey: instapikey,
|
|
7149
7629
|
name: '',
|
|
7150
7630
|
email: '',
|
|
@@ -7159,9 +7639,16 @@
|
|
|
7159
7639
|
cityid: '',
|
|
7160
7640
|
countrydialcode: ''
|
|
7161
7641
|
}),
|
|
7162
|
-
|
|
7163
|
-
payloadobj =
|
|
7164
|
-
setpayloadobj =
|
|
7642
|
+
_useState12 = _slicedToArray__default["default"](_useState11, 2),
|
|
7643
|
+
payloadobj = _useState12[0],
|
|
7644
|
+
setpayloadobj = _useState12[1];
|
|
7645
|
+
React.useEffect(function () {
|
|
7646
|
+
if (fetchAuthorizationQueryContext.isSuccess) {
|
|
7647
|
+
var _fetchAuthorizationQu7, _fetchAuthorizationQu8, _fetchAuthorizationQu9, _fetchAuthorizationQu10, _fetchAuthorizationQu11, _fetchAuthorizationQu12;
|
|
7648
|
+
setcustomeraddressrequierd(fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : (_fetchAuthorizationQu7 = fetchAuthorizationQueryContext.data) === null || _fetchAuthorizationQu7 === void 0 ? void 0 : (_fetchAuthorizationQu8 = _fetchAuthorizationQu7.data) === null || _fetchAuthorizationQu8 === void 0 ? void 0 : (_fetchAuthorizationQu9 = _fetchAuthorizationQu8.instinfo) === null || _fetchAuthorizationQu9 === void 0 ? void 0 : _fetchAuthorizationQu9.customerAddressrequiered);
|
|
7649
|
+
setcustomervalidateemail(fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : (_fetchAuthorizationQu10 = fetchAuthorizationQueryContext.data) === null || _fetchAuthorizationQu10 === void 0 ? void 0 : (_fetchAuthorizationQu11 = _fetchAuthorizationQu10.data) === null || _fetchAuthorizationQu11 === void 0 ? void 0 : (_fetchAuthorizationQu12 = _fetchAuthorizationQu11.instinfo) === null || _fetchAuthorizationQu12 === void 0 ? void 0 : _fetchAuthorizationQu12.customervalidateemail);
|
|
7650
|
+
}
|
|
7651
|
+
}, [fetchAuthorizationQueryContext.isSuccess]);
|
|
7165
7652
|
React.useEffect(function () {
|
|
7166
7653
|
var tempFetchQueriesEngineContext = _objectSpread$1R({}, FetchQueriesEngineContext);
|
|
7167
7654
|
tempFetchQueriesEngineContext.institutecustomerinfosignup = true;
|
|
@@ -7355,7 +7842,12 @@
|
|
|
7355
7842
|
className: sectionproperties.cardstyletype == 'Style 1' ? 'col-lg-4 col-md-12 col-sm-12 mb-4 p-sm-0' : 'col-lg-12 col-md-12 col-sm-12 mb-4 p-sm-0'
|
|
7356
7843
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
7357
7844
|
className: formstyles.input_label_name + ' d-flex justify-content-start '
|
|
7358
|
-
}, lang.country
|
|
7845
|
+
}, lang.country, customeraddressrequierd == 1 && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
7846
|
+
"class": "ml-1 mr-1",
|
|
7847
|
+
style: {
|
|
7848
|
+
color: 'red'
|
|
7849
|
+
}
|
|
7850
|
+
}, "*")), fetchTabexCountriesQueryContext.isFetching && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7359
7851
|
className: "col-lg-4 col-md-12 col-sm-12 mb-3 p-sm-0 d-flex justify-content-center align-items-center"
|
|
7360
7852
|
}, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
|
|
7361
7853
|
color: "black",
|
|
@@ -7398,7 +7890,12 @@
|
|
|
7398
7890
|
className: sectionproperties.cardstyletype == 'Style 1' ? 'col-lg-4 col-md-12 col-sm-12 mb-4 p-sm-0' : 'col-lg-12 col-md-12 col-sm-12 mb-4 p-sm-0'
|
|
7399
7891
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
7400
7892
|
className: formstyles.input_label_name + ' d-flex justify-content-start '
|
|
7401
|
-
}, lang.choosestategov
|
|
7893
|
+
}, lang.choosestategov, ' ', customeraddressrequierd == 1 && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
7894
|
+
"class": "ml-1 mr-1",
|
|
7895
|
+
style: {
|
|
7896
|
+
color: 'red'
|
|
7897
|
+
}
|
|
7898
|
+
}, "*")), fetchTabexStatesQueryContext.isFetching && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7402
7899
|
className: "col-lg-12 col-md-12 col-sm-12 mb-3 p-sm-0 d-flex justify-content-center align-items-center"
|
|
7403
7900
|
}, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
|
|
7404
7901
|
color: "black",
|
|
@@ -7445,7 +7942,12 @@
|
|
|
7445
7942
|
className: sectionproperties.cardstyletype == 'Style 1' ? 'col-lg-4 col-md-12 col-sm-12 mb-4 p-sm-0' : 'col-lg-12 col-md-12 col-sm-12 mb-4 p-sm-0'
|
|
7446
7943
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
7447
7944
|
className: formstyles.input_label_name + ' d-flex justify-content-start '
|
|
7448
|
-
}, lang.city
|
|
7945
|
+
}, lang.city, customeraddressrequierd == 1 && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
7946
|
+
"class": "ml-1 mr-1",
|
|
7947
|
+
style: {
|
|
7948
|
+
color: 'red'
|
|
7949
|
+
}
|
|
7950
|
+
}, "*")), fetchTabexCitiesQueryContext.isFetching && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7449
7951
|
className: "col-lg-12 col-md-12 col-sm-12 mb-3 p-sm-0 d-flex justify-content-center align-items-center"
|
|
7450
7952
|
}, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
|
|
7451
7953
|
color: "black",
|
|
@@ -7488,7 +7990,12 @@
|
|
|
7488
7990
|
className: 'col-lg-12 col-md-12 col-sm-12 mb-4 p-sm-0'
|
|
7489
7991
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
7490
7992
|
className: "".concat(formstyles.input_label_name) + ' mb-1 text-transform-none d-flex align-items-start '
|
|
7491
|
-
}, lang.address
|
|
7993
|
+
}, lang.address, ' ', customeraddressrequierd == 1 && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
7994
|
+
"class": "ml-1 mr-1",
|
|
7995
|
+
style: {
|
|
7996
|
+
color: 'red'
|
|
7997
|
+
}
|
|
7998
|
+
}, "*")), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7492
7999
|
className: loginstyles.wrap_input100
|
|
7493
8000
|
}, /*#__PURE__*/React__default["default"].createElement(TextareaAutosize__default["default"], {
|
|
7494
8001
|
type: "text",
|
|
@@ -7749,6 +8256,7 @@
|
|
|
7749
8256
|
className: "".concat(formstyles.signupbtn) + ' d-flex align-items-center justify-content-center ',
|
|
7750
8257
|
disabled: CustomerSignUpMutationContext.isLoading ? true : false,
|
|
7751
8258
|
onClick: function onClick() {
|
|
8259
|
+
var isshippingaddresscompleted = false;
|
|
7752
8260
|
var passwordvalidation = false;
|
|
7753
8261
|
if (authdetailsContext.loggedin == false) {
|
|
7754
8262
|
if (payloadobj.password.length != 0) {
|
|
@@ -7768,27 +8276,38 @@
|
|
|
7768
8276
|
if (passwordvalidation == false) {
|
|
7769
8277
|
NotificationManager.warning('', lang.passwordsdontmatch);
|
|
7770
8278
|
}
|
|
7771
|
-
if (
|
|
7772
|
-
|
|
7773
|
-
|
|
7774
|
-
|
|
7775
|
-
|
|
7776
|
-
|
|
8279
|
+
if (customeraddressrequierd == 1) {
|
|
8280
|
+
if (payloadobj.countryid.length != 0 && payloadobj.stateid.length != 0 && payloadobj.cityid.length != 0 && payloadobj.shippingaddress.length != 0) {
|
|
8281
|
+
isshippingaddresscompleted = true;
|
|
8282
|
+
}
|
|
8283
|
+
} else {
|
|
8284
|
+
isshippingaddresscompleted = true;
|
|
8285
|
+
}
|
|
8286
|
+
if (payloadobj.email.length != 0 && payloadobj.name.length != 0 && payloadobj.mobile.length != 0 && passwordvalidation == true) {
|
|
8287
|
+
if (isshippingaddresscompleted) {
|
|
8288
|
+
var signupformismissing = true;
|
|
8289
|
+
payloadobj.instsignupformvalues.forEach(function (arrayItem) {
|
|
8290
|
+
if (arrayItem.optional == 1) {
|
|
8291
|
+
if (arrayItem.customersignupvalue == undefined || arrayItem.customersignupvalue.length == 0) {
|
|
8292
|
+
signupformismissing = false;
|
|
8293
|
+
}
|
|
7777
8294
|
}
|
|
7778
|
-
}
|
|
7779
|
-
|
|
7780
|
-
|
|
7781
|
-
|
|
7782
|
-
|
|
7783
|
-
|
|
8295
|
+
});
|
|
8296
|
+
if (signupformismissing) {
|
|
8297
|
+
var temppayloadobj = _objectSpread$1R({}, payloadobj);
|
|
8298
|
+
if (authdetailsContext.loggedin == true) {
|
|
8299
|
+
temppayloadobj.functype = 'edit';
|
|
8300
|
+
} else {
|
|
8301
|
+
temppayloadobj.functype = 'add';
|
|
8302
|
+
}
|
|
8303
|
+
temppayloadobj.addedsourcetype = 'Webapp';
|
|
8304
|
+
temppayloadobj.instapikey = instapikey;
|
|
8305
|
+
CustomerSignUpMutationContext.mutate(temppayloadobj);
|
|
7784
8306
|
} else {
|
|
7785
|
-
|
|
8307
|
+
NotificationManager.warning('', lang.completerequiredfields);
|
|
7786
8308
|
}
|
|
7787
|
-
temppayloadobj.addedsourcetype = 'Webapp';
|
|
7788
|
-
temppayloadobj.instapikey = instapikey;
|
|
7789
|
-
CustomerSignUpMutationContext.mutate(temppayloadobj);
|
|
7790
8309
|
} else {
|
|
7791
|
-
NotificationManager.warning('', lang.
|
|
8310
|
+
NotificationManager.warning('', lang.pleasecompleteaddressmissingfields);
|
|
7792
8311
|
}
|
|
7793
8312
|
} else {
|
|
7794
8313
|
NotificationManager.warning('', lang.fillthemissingfields);
|
|
@@ -7831,7 +8350,31 @@
|
|
|
7831
8350
|
className: "ml-1 mr-1"
|
|
7832
8351
|
}, /*#__PURE__*/React__default["default"].createElement(GoogleLoginButton, {
|
|
7833
8352
|
actions: actions
|
|
7834
|
-
}))))
|
|
8353
|
+
})))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal, {
|
|
8354
|
+
show: validateemailmodal,
|
|
8355
|
+
onHide: function onHide() {
|
|
8356
|
+
return setvalidateemailmodal(false);
|
|
8357
|
+
},
|
|
8358
|
+
centered: true,
|
|
8359
|
+
size: 'md'
|
|
8360
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Body, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8361
|
+
"class": "d-flex align-items-center justify-content-center bgdanger-hover",
|
|
8362
|
+
style: {
|
|
8363
|
+
position: 'absolute',
|
|
8364
|
+
right: -15,
|
|
8365
|
+
top: -15,
|
|
8366
|
+
width: '4vh',
|
|
8367
|
+
height: '4vh',
|
|
8368
|
+
background: '#000',
|
|
8369
|
+
borderRadius: '50%'
|
|
8370
|
+
},
|
|
8371
|
+
onClick: function onClick() {
|
|
8372
|
+
return setvalidateemailmodal(false);
|
|
8373
|
+
}
|
|
8374
|
+
}, /*#__PURE__*/React__default["default"].createElement(IoMdClose.IoMdClose, {
|
|
8375
|
+
size: 15,
|
|
8376
|
+
color: "white"
|
|
8377
|
+
}))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Footer, null)));
|
|
7835
8378
|
};
|
|
7836
8379
|
|
|
7837
8380
|
function ownKeys$1Q(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -8342,7 +8885,7 @@
|
|
|
8342
8885
|
}), /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
8343
8886
|
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
8344
8887
|
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
8345
|
-
path: bgimagesarray.length != 0 ? langdetect == 'en' ? (_bgimagesarray$7 = bgimagesarray[0]) === null || _bgimagesarray$7 === void 0 ? void 0 : _bgimagesarray$7.
|
|
8888
|
+
path: bgimagesarray.length != 0 ? langdetect == 'en' ? '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + ((_bgimagesarray$7 = bgimagesarray[0]) === null || _bgimagesarray$7 === void 0 ? void 0 : _bgimagesarray$7.bgsection_image) : '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + ((_bgimagesarray$8 = bgimagesarray[0]) === null || _bgimagesarray$8 === void 0 ? void 0 : _bgimagesarray$8.bgsection_image_ar) : '',
|
|
8346
8889
|
"class": "d-none d-sm-flex",
|
|
8347
8890
|
style: {
|
|
8348
8891
|
height: '100%',
|
|
@@ -9232,7 +9775,14 @@
|
|
|
9232
9775
|
_useState10 = _slicedToArray__default["default"](_useState9, 2);
|
|
9233
9776
|
_useState10[0];
|
|
9234
9777
|
_useState10[1];
|
|
9235
|
-
var _useState11 = React.useState(
|
|
9778
|
+
var _useState11 = React.useState({
|
|
9779
|
+
min: 0,
|
|
9780
|
+
max: 5
|
|
9781
|
+
}),
|
|
9782
|
+
_useState12 = _slicedToArray__default["default"](_useState11, 2),
|
|
9783
|
+
raterangevalue = _useState12[0],
|
|
9784
|
+
setraterangevalue = _useState12[1];
|
|
9785
|
+
var _useState13 = React.useState([{
|
|
9236
9786
|
payloadvalue: 'sortprice',
|
|
9237
9787
|
name: lang.price,
|
|
9238
9788
|
filterarray: [{
|
|
@@ -9257,9 +9807,9 @@
|
|
|
9257
9807
|
isfilterselected: false
|
|
9258
9808
|
}]
|
|
9259
9809
|
}]),
|
|
9260
|
-
|
|
9261
|
-
otherfilters =
|
|
9262
|
-
|
|
9810
|
+
_useState14 = _slicedToArray__default["default"](_useState13, 2),
|
|
9811
|
+
otherfilters = _useState14[0];
|
|
9812
|
+
_useState14[1];
|
|
9263
9813
|
React.useEffect(function () {
|
|
9264
9814
|
filterupdater();
|
|
9265
9815
|
}, []);
|
|
@@ -9277,6 +9827,22 @@
|
|
|
9277
9827
|
React.useEffect(function () {
|
|
9278
9828
|
filterupdater();
|
|
9279
9829
|
}, [ProductFilterObjContext]);
|
|
9830
|
+
var timeoutRef = React__default["default"].useRef(null);
|
|
9831
|
+
React__default["default"].useEffect(function () {
|
|
9832
|
+
if (timeoutRef.current !== null) {
|
|
9833
|
+
clearTimeout(timeoutRef.current);
|
|
9834
|
+
}
|
|
9835
|
+
timeoutRef.current = setTimeout(function () {
|
|
9836
|
+
if (raterangevalue.min != 0 || raterangevalue.max != 5) {
|
|
9837
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$1L({}, ProductFilterObjContext);
|
|
9838
|
+
tempfetchproductsfilerobjcontext.minrate = raterangevalue.min;
|
|
9839
|
+
tempfetchproductsfilerobjcontext.maxrate = raterangevalue.max;
|
|
9840
|
+
tempfetchproductsfilerobjcontext.page = 0;
|
|
9841
|
+
setProductFilterObjContext(_objectSpread$1L({}, tempfetchproductsfilerobjcontext));
|
|
9842
|
+
// routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
|
|
9843
|
+
}
|
|
9844
|
+
}, 500);
|
|
9845
|
+
}, [raterangevalue]);
|
|
9280
9846
|
var filterupdater = function filterupdater() {
|
|
9281
9847
|
if (instfilters.length != 0) {
|
|
9282
9848
|
var _ProductFilterObjCont;
|
|
@@ -9907,7 +10473,28 @@
|
|
|
9907
10473
|
}
|
|
9908
10474
|
}, valueitem.name)));
|
|
9909
10475
|
}))))))));
|
|
9910
|
-
})
|
|
10476
|
+
}), sectionproperties.showfilterbyrating == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10477
|
+
className: "col-lg-12 pl-4 pr-4"
|
|
10478
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10479
|
+
className: filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '
|
|
10480
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10481
|
+
className: "col-lg-12 col-md-12 col-sm-12 p-0 mb-3"
|
|
10482
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10483
|
+
className: langdetect == 'en' ? filter_cssstyles.collapsetitle + ' m-0 p-0 collapsetitle ' : filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 text-right'
|
|
10484
|
+
}, langdetect == 'en' ? 'Ratings' : 'التقييمات')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10485
|
+
className: "col-lg-12 col-md-12 col-sm-12 mb-4"
|
|
10486
|
+
}, /*#__PURE__*/React__default["default"].createElement(InputRange__default["default"], {
|
|
10487
|
+
draggableTrack: true,
|
|
10488
|
+
formatLabel: function formatLabel(value) {
|
|
10489
|
+
return "".concat(value);
|
|
10490
|
+
},
|
|
10491
|
+
maxValue: 5,
|
|
10492
|
+
minValue: 0,
|
|
10493
|
+
value: raterangevalue,
|
|
10494
|
+
onChange: function onChange(value) {
|
|
10495
|
+
setraterangevalue(_objectSpread$1L({}, value));
|
|
10496
|
+
}
|
|
10497
|
+
}))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
9911
10498
|
className: "col-lg-9 col-md-9 col-sm-9 d-flex align-items-center d-md-none"
|
|
9912
10499
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
9913
10500
|
className: "m-0 p-0 font-16 font-weight-600",
|
|
@@ -10846,7 +11433,10 @@
|
|
|
10846
11433
|
}, /*#__PURE__*/React__default["default"].createElement(reactHorizontalScrollingMenu.ScrollMenu, {
|
|
10847
11434
|
transitionBehavior: 'auto',
|
|
10848
11435
|
wrapperClassName: '',
|
|
10849
|
-
itemClassName: item.tabexsectioninfo.sectioncompname == 'Productcard6' ? 'scrollmenuclassnameitemProductcard6' : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover' ? 'scrollmenuclassnameitemProductcard_with_circularhover' : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg' ? 'scrollmenuclassnameitemProductcard_with_circularbg' : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition' ? 'scrollmenuclassnameitemCategorycard_with_twolinestransition' :
|
|
11436
|
+
itemClassName: item.tabexsectioninfo.sectioncompname == 'Productcard6' ? 'scrollmenuclassnameitemProductcard6' : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover' ? 'scrollmenuclassnameitemProductcard_with_circularhover' : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg' ? 'scrollmenuclassnameitemProductcard_with_circularbg' : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition' ? 'scrollmenuclassnameitemCategorycard_with_twolinestransition' :
|
|
11437
|
+
// : item.tabexsectioninfo.sectioncompname == 'Productcard_with_slideanimation'
|
|
11438
|
+
// ? 'scrollmenuclassnameitemProductcard_with_slideanimation'
|
|
11439
|
+
item.tabexsectioninfo.sectioncompname == 'Categorycard_withtext' ? 'scrollmenuclassnameitemCategorycard_withtext' :
|
|
10850
11440
|
// : item.tabexsectioninfo.sectioncompname == 'Productcard_animatedbuttons'
|
|
10851
11441
|
// ? 'scrollmenuclassnameitemProductcard_animatedbuttons'
|
|
10852
11442
|
item.tabexsectioninfo.sectioncompname == 'Productcard_with_variants' ? 'scrollmenuclassnameitemProductcard_with_variants' : item.tabexsectioninfo.sectioncompname == 'Productcarddefault' ? 'scrollmenuclassnameitemProductcarddefault' :
|
|
@@ -11596,7 +12186,7 @@
|
|
|
11596
12186
|
function ownKeys$1H(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
11597
12187
|
function _objectSpread$1H(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1H(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1H(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
11598
12188
|
var Headerresponsive = function Headerresponsive(props) {
|
|
11599
|
-
var _logoarrayofobjects$, _logoarrayofobjects$2,
|
|
12189
|
+
var _logoarrayofobjects$, _logoarrayofobjects$2, _logoarrayofobjects$3, _logoarrayofobjects$4, _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i5, _authdetailsContext$i6;
|
|
11600
12190
|
var actions = props.actions;
|
|
11601
12191
|
var LogoutMutationContext = props.actions.LogoutMutationContext;
|
|
11602
12192
|
var setsidecartnavshowcontext = props.actions.setsidecartnavshowcontext;
|
|
@@ -11805,6 +12395,69 @@
|
|
|
11805
12395
|
}
|
|
11806
12396
|
})
|
|
11807
12397
|
};
|
|
12398
|
+
var CartButton = function CartButton() {
|
|
12399
|
+
var _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7, _fetchcustomercartQue8, _fetchcustomercartQue9, _fetchcustomercartQue10;
|
|
12400
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12401
|
+
"class": "d-flex align-items-center",
|
|
12402
|
+
style: {
|
|
12403
|
+
position: 'relative'
|
|
12404
|
+
}
|
|
12405
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
12406
|
+
className: "".concat(header_cssstyles.addtocartbtn_resp) + ' d-flex align-items-center justify-content-center ml-1 p-0 ',
|
|
12407
|
+
onClick: function onClick() {
|
|
12408
|
+
var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4;
|
|
12409
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue === void 0 ? void 0 : (_fetchcustomercartQue2 = _fetchcustomercartQue.data) === null || _fetchcustomercartQue2 === void 0 ? void 0 : (_fetchcustomercartQue3 = _fetchcustomercartQue2.customercart) === null || _fetchcustomercartQue3 === void 0 ? void 0 : (_fetchcustomercartQue4 = _fetchcustomercartQue3.cartitems) === null || _fetchcustomercartQue4 === void 0 ? void 0 : _fetchcustomercartQue4.length) > 7) {
|
|
12410
|
+
routingcountext(StaticPagesLinksContext.viewcart);
|
|
12411
|
+
} else {
|
|
12412
|
+
setsidecartnavshowcontext(true);
|
|
12413
|
+
}
|
|
12414
|
+
}
|
|
12415
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
12416
|
+
className: ' h-100 d-flex align-items-center justify-content-center '
|
|
12417
|
+
}, sectionproperties.carticonstyle == 'Shopping bag 1' && /*#__PURE__*/React__default["default"].createElement(FiShoppingBag.FiShoppingBag, {
|
|
12418
|
+
size: sectionproperties.cartBtniconresp_size
|
|
12419
|
+
}), sectionproperties.carticonstyle == 'Shopping bag 2' && /*#__PURE__*/React__default["default"].createElement(CgShoppingBag.CgShoppingBag, {
|
|
12420
|
+
size: sectionproperties.cartBtniconresp_size
|
|
12421
|
+
}), sectionproperties.carticonstyle == 'Shopping bag 3' && /*#__PURE__*/React__default["default"].createElement(BsBag.BsBag, {
|
|
12422
|
+
size: sectionproperties.cartBtniconresp_size
|
|
12423
|
+
}), sectionproperties.carticonstyle == 'Shopping bag 4' && /*#__PURE__*/React__default["default"].createElement(RiHandbagLine.RiHandbagLine, {
|
|
12424
|
+
size: sectionproperties.cartBtniconresp_size
|
|
12425
|
+
}), sectionproperties.carticonstyle == 'Shopping cart 1' && /*#__PURE__*/React__default["default"].createElement(FiShoppingCart.FiShoppingCart, {
|
|
12426
|
+
size: sectionproperties.cartBtniconresp_size
|
|
12427
|
+
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
|
|
12428
|
+
size: sectionproperties.cartBtniconresp_size
|
|
12429
|
+
}), sectionproperties.carticonstyle == 'Calendar 1' && /*#__PURE__*/React__default["default"].createElement(FiCalendar.FiCalendar, {
|
|
12430
|
+
size: sectionproperties.cartBtniconresp_size
|
|
12431
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12432
|
+
className: "".concat(header_cssstyles.badge_counter_header_notifications),
|
|
12433
|
+
style: {
|
|
12434
|
+
top: sectionproperties.cartbadgefromtop + 'px',
|
|
12435
|
+
right: sectionproperties.cartbadgefromright + 'px'
|
|
12436
|
+
}
|
|
12437
|
+
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue5 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue5 === void 0 ? void 0 : (_fetchcustomercartQue6 = _fetchcustomercartQue5.data) === null || _fetchcustomercartQue6 === void 0 ? void 0 : _fetchcustomercartQue6.customercart) != null ? fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue7 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue7 === void 0 ? void 0 : (_fetchcustomercartQue8 = _fetchcustomercartQue7.data) === null || _fetchcustomercartQue8 === void 0 ? void 0 : (_fetchcustomercartQue9 = _fetchcustomercartQue8.customercart) === null || _fetchcustomercartQue9 === void 0 ? void 0 : (_fetchcustomercartQue10 = _fetchcustomercartQue9.cartitems) === null || _fetchcustomercartQue10 === void 0 ? void 0 : _fetchcustomercartQue10.length : 0));
|
|
12438
|
+
};
|
|
12439
|
+
var FavButton = function FavButton() {
|
|
12440
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12441
|
+
style: {
|
|
12442
|
+
position: 'relative',
|
|
12443
|
+
marginLeft: langdetect == 'en' ? '12px' : '16px',
|
|
12444
|
+
marginRight: langdetect == 'en' ? '16px' : '16px'
|
|
12445
|
+
}
|
|
12446
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
12447
|
+
className: header_cssstyles.wishlistbtn + ' d-flex align-items-center justify-content-center ml-1 p-0 ',
|
|
12448
|
+
onClick: function onClick() {
|
|
12449
|
+
routingcountext(StaticPagesLinksContext.Wishlist);
|
|
12450
|
+
}
|
|
12451
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
12452
|
+
className: ' h-100 d-flex align-items-center justify-content-center '
|
|
12453
|
+
}, sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, null), sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React__default["default"].createElement(AiFillStar.AiFillStar, null))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12454
|
+
className: "".concat(header_cssstyles.badge_counter_header_notifications),
|
|
12455
|
+
style: {
|
|
12456
|
+
top: sectionproperties.wishlistresponsivebadgefromtop + 'px',
|
|
12457
|
+
right: sectionproperties.wishlistresponsivebadgefromright + 'px'
|
|
12458
|
+
}
|
|
12459
|
+
}, favoriteprojectscountContext.length >= 10 ? '+9' : favoriteprojectscountContext.length));
|
|
12460
|
+
};
|
|
11808
12461
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11809
12462
|
className: "row m-0 w-100"
|
|
11810
12463
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -11819,7 +12472,7 @@
|
|
|
11819
12472
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11820
12473
|
className: "row m-0 w-100 p-0 pl-2 pr-2 "
|
|
11821
12474
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11822
|
-
className:
|
|
12475
|
+
className: sectionproperties.searchbar_show == 'Show' ? 'col-md-6 col-sm-5 d-flex filter align-items-center p-0' : 'col-md-4 col-sm-4 d-flex filter align-items-center p-0'
|
|
11823
12476
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11824
12477
|
className: langdetect == 'en' ? 'mr-1' : 'ml-1',
|
|
11825
12478
|
onClick: function onClick() {
|
|
@@ -11841,7 +12494,7 @@
|
|
|
11841
12494
|
style: {
|
|
11842
12495
|
color: sectionproperties.resp_sidenav_color
|
|
11843
12496
|
}
|
|
11844
|
-
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12497
|
+
}))), sectionproperties.searchbar_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11845
12498
|
className: header_cssstyles.header_logo + ' d-flex align-items-center justify-content-start ',
|
|
11846
12499
|
style: {
|
|
11847
12500
|
cursor: 'pointer'
|
|
@@ -11857,8 +12510,26 @@
|
|
|
11857
12510
|
maxWidth: '100%',
|
|
11858
12511
|
maxHeight: '100%'
|
|
11859
12512
|
}
|
|
12513
|
+
}))), sectionproperties.searchbar_show == 'Hide' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12514
|
+
className: 'col-md-4 col-sm-4 allcentered p-0'
|
|
12515
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12516
|
+
className: header_cssstyles.header_logo + ' d-flex align-items-center justify-content-start ',
|
|
12517
|
+
style: {
|
|
12518
|
+
cursor: 'pointer'
|
|
12519
|
+
},
|
|
12520
|
+
onClick: function onClick() {
|
|
12521
|
+
routingcountext('home');
|
|
12522
|
+
}
|
|
12523
|
+
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
12524
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
12525
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
12526
|
+
path: langdetect == 'en' ? (_logoarrayofobjects$3 = logoarrayofobjects[0]) === null || _logoarrayofobjects$3 === void 0 ? void 0 : _logoarrayofobjects$3.englishlogo : (_logoarrayofobjects$4 = logoarrayofobjects[0]) === null || _logoarrayofobjects$4 === void 0 ? void 0 : _logoarrayofobjects$4.arabiclogo,
|
|
12527
|
+
style: {
|
|
12528
|
+
maxWidth: '100%',
|
|
12529
|
+
maxHeight: '100%'
|
|
12530
|
+
}
|
|
11860
12531
|
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11861
|
-
className:
|
|
12532
|
+
className: sectionproperties.searchbar_show == 'Show' ? 'col-md-6 col-sm-7 d-flex align-items-center justify-content-end p-0' : 'col-md-4 col-sm-4 d-flex align-items-center justify-content-end p-0'
|
|
11862
12533
|
}, sectionproperties.ShowUserBtn == 'Show' && /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"], null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Toggle, null, !authdetailsContext.loggedin && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
11863
12534
|
"class": "".concat(header_cssstyles.userbtn_respContainer) + ' d-flex align-items-center justify-content-center p-0 m-0 font-weight-600 mt-1 '
|
|
11864
12535
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
@@ -12019,69 +12690,13 @@
|
|
|
12019
12690
|
className: ' d-flex align-items-center m-0 p-0 '
|
|
12020
12691
|
}, /*#__PURE__*/React__default["default"].createElement(BiLogOutCircle.BiLogOutCircle, null), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
12021
12692
|
className: langdetect == 'en' ? 'ml-2' : 'mr-2'
|
|
12022
|
-
}, lang.logout)))))), sectionproperties.faviconshape != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12023
|
-
style: {
|
|
12024
|
-
position: 'relative',
|
|
12025
|
-
marginLeft: langdetect == 'en' ? '12px' : '16px',
|
|
12026
|
-
marginRight: langdetect == 'en' ? '16px' : '16px'
|
|
12027
|
-
}
|
|
12028
|
-
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
12029
|
-
className: header_cssstyles.wishlistbtn + ' d-flex align-items-center justify-content-center ml-1 p-0 ',
|
|
12030
|
-
onClick: function onClick() {
|
|
12031
|
-
routingcountext(StaticPagesLinksContext.Wishlist);
|
|
12032
|
-
}
|
|
12033
|
-
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
12034
|
-
className: ' h-100 d-flex align-items-center justify-content-center '
|
|
12035
|
-
}, sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, null), sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React__default["default"].createElement(AiFillStar.AiFillStar, null))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12036
|
-
className: "".concat(header_cssstyles.badge_counter_header_notifications),
|
|
12037
|
-
style: {
|
|
12038
|
-
top: sectionproperties.wishlistresponsivebadgefromtop + 'px',
|
|
12039
|
-
right: sectionproperties.wishlistresponsivebadgefromright + 'px'
|
|
12040
|
-
}
|
|
12041
|
-
}, favoriteprojectscountContext.length >= 10 ? '+9' : favoriteprojectscountContext.length)), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12042
|
-
style: {
|
|
12043
|
-
position: 'relative'
|
|
12044
|
-
},
|
|
12045
|
-
"class": "d-flex align-items-center"
|
|
12046
|
-
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
12047
|
-
className: "".concat(header_cssstyles.addtocartbtn_resp) + ' d-flex align-items-center justify-content-center ml-1 p-0 ',
|
|
12048
|
-
onClick: function onClick() {
|
|
12049
|
-
var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4;
|
|
12050
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue === void 0 ? void 0 : (_fetchcustomercartQue2 = _fetchcustomercartQue.data) === null || _fetchcustomercartQue2 === void 0 ? void 0 : (_fetchcustomercartQue3 = _fetchcustomercartQue2.customercart) === null || _fetchcustomercartQue3 === void 0 ? void 0 : (_fetchcustomercartQue4 = _fetchcustomercartQue3.cartitems) === null || _fetchcustomercartQue4 === void 0 ? void 0 : _fetchcustomercartQue4.length) > 7) {
|
|
12051
|
-
routingcountext(StaticPagesLinksContext.viewcart);
|
|
12052
|
-
} else {
|
|
12053
|
-
setsidecartnavshowcontext(true);
|
|
12054
|
-
}
|
|
12055
|
-
}
|
|
12056
|
-
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
12057
|
-
className: ' h-100 d-flex align-items-center justify-content-center '
|
|
12058
|
-
}, sectionproperties.carticonstyle == 'Shopping bag 1' && /*#__PURE__*/React__default["default"].createElement(FiShoppingBag.FiShoppingBag, {
|
|
12059
|
-
size: sectionproperties.cartBtniconresp_size
|
|
12060
|
-
}), sectionproperties.carticonstyle == 'Shopping bag 2' && /*#__PURE__*/React__default["default"].createElement(CgShoppingBag.CgShoppingBag, {
|
|
12061
|
-
size: sectionproperties.cartBtniconresp_size
|
|
12062
|
-
}), sectionproperties.carticonstyle == 'Shopping bag 3' && /*#__PURE__*/React__default["default"].createElement(BsBag.BsBag, {
|
|
12063
|
-
size: sectionproperties.cartBtniconresp_size
|
|
12064
|
-
}), sectionproperties.carticonstyle == 'Shopping bag 4' && /*#__PURE__*/React__default["default"].createElement(RiHandbagLine.RiHandbagLine, {
|
|
12065
|
-
size: sectionproperties.cartBtniconresp_size
|
|
12066
|
-
}), sectionproperties.carticonstyle == 'Shopping cart 1' && /*#__PURE__*/React__default["default"].createElement(FiShoppingCart.FiShoppingCart, {
|
|
12067
|
-
size: sectionproperties.cartBtniconresp_size
|
|
12068
|
-
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
|
|
12069
|
-
size: sectionproperties.cartBtniconresp_size
|
|
12070
|
-
}), sectionproperties.carticonstyle == 'Calendar 1' && /*#__PURE__*/React__default["default"].createElement(FiCalendar.FiCalendar, {
|
|
12071
|
-
size: sectionproperties.cartBtniconresp_size
|
|
12072
|
-
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12073
|
-
className: "".concat(header_cssstyles.badge_counter_header_notifications),
|
|
12074
|
-
style: {
|
|
12075
|
-
top: sectionproperties.cartbadgefromtop + 'px',
|
|
12076
|
-
right: sectionproperties.cartbadgefromright + 'px'
|
|
12077
|
-
}
|
|
12078
|
-
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue5 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue5 === void 0 ? void 0 : (_fetchcustomercartQue6 = _fetchcustomercartQue5.data) === null || _fetchcustomercartQue6 === void 0 ? void 0 : _fetchcustomercartQue6.customercart) != null ? fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue7 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue7 === void 0 ? void 0 : (_fetchcustomercartQue8 = _fetchcustomercartQue7.data) === null || _fetchcustomercartQue8 === void 0 ? void 0 : (_fetchcustomercartQue9 = _fetchcustomercartQue8.customercart) === null || _fetchcustomercartQue9 === void 0 ? void 0 : (_fetchcustomercartQue10 = _fetchcustomercartQue9.cartitems) === null || _fetchcustomercartQue10 === void 0 ? void 0 : _fetchcustomercartQue10.length : 0)))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12693
|
+
}, lang.logout)))))), sectionproperties.faviconshape != null && sectionproperties.searchbar_show == 'Show' && FavButton(), sectionproperties.cartBtnShow == 'Show' && sectionproperties.searchbar_show == 'Show' && CartButton())), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12079
12694
|
className: "row m-0 w-100 p-0",
|
|
12080
12695
|
style: {
|
|
12081
12696
|
borderTop: '1px solid ' + sectionproperties.searchbarcont_bordercolorresponsive,
|
|
12082
12697
|
borderBottom: '1px solid ' + sectionproperties.searchbarcont_bordercolorresponsive
|
|
12083
12698
|
}
|
|
12084
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12699
|
+
}, sectionproperties.searchbar_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12085
12700
|
className: authdetailsContext != undefined && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : (_authdetailsContext$i2 = _authdetailsContext$i.instcurrencies) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.length) > 1 ? 'col-md-8 p-0' : 'col-md-10 p-0',
|
|
12086
12701
|
style: {
|
|
12087
12702
|
borderRight: langdetect == 'en' ? '1px solid ' + sectionproperties.searchbarcont_bordercolorresponsive : 0,
|
|
@@ -12108,12 +12723,27 @@
|
|
|
12108
12723
|
sectionpropertiesprops: sectionproperties,
|
|
12109
12724
|
actions: actions,
|
|
12110
12725
|
srcfromprops: 'respheader'
|
|
12111
|
-
}))),
|
|
12112
|
-
"class":
|
|
12726
|
+
}))), sectionproperties.faviconshape != null && sectionproperties.searchbar_show == 'Hide' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12727
|
+
"class": "allcentered pt-2 pb-2",
|
|
12113
12728
|
style: {
|
|
12729
|
+
flex: 1,
|
|
12730
|
+
borderRight: langdetect == 'en' ? '1px solid ' + sectionproperties.searchbarcont_bordercolorresponsive : 0,
|
|
12731
|
+
borderLeft: langdetect == 'en' ? 0 : '1px solid ' + sectionproperties.searchbarcont_bordercolorresponsive
|
|
12732
|
+
}
|
|
12733
|
+
}, FavButton()), sectionproperties.faviconshape != null && sectionproperties.searchbar_show == 'Hide' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12734
|
+
"class": "allcentered pt-2 pb-2",
|
|
12735
|
+
style: {
|
|
12736
|
+
flex: 1,
|
|
12114
12737
|
borderRight: langdetect == 'en' ? '1px solid ' + sectionproperties.searchbarcont_bordercolorresponsive : 0,
|
|
12115
12738
|
borderLeft: langdetect == 'en' ? 0 : '1px solid ' + sectionproperties.searchbarcont_bordercolorresponsive
|
|
12116
12739
|
}
|
|
12740
|
+
}, CartButton()), authdetailsContext != undefined && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 ? void 0 : (_authdetailsContext$i4 = _authdetailsContext$i3.instcurrencies) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.length) > 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12741
|
+
"class": sectionproperties.searchbar_show == 'Show' ? 'col-md-2 d-flex align-items-center justify-content-center pl-1 pr-1 pt-1' : 'd-flex align-items-center justify-content-center pl-1 pr-1 pt-2 pb-2',
|
|
12742
|
+
style: {
|
|
12743
|
+
borderRight: langdetect == 'en' ? '1px solid ' + sectionproperties.searchbarcont_bordercolorresponsive : 0,
|
|
12744
|
+
borderLeft: langdetect == 'en' ? 0 : '1px solid ' + sectionproperties.searchbarcont_bordercolorresponsive,
|
|
12745
|
+
flex: sectionproperties.searchbar_show == 'Show' ? '' : 1
|
|
12746
|
+
}
|
|
12117
12747
|
}, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"], null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Toggle, null, /*#__PURE__*/React__default["default"].createElement("li", {
|
|
12118
12748
|
"class": ' d-flex align-items-center justify-content-center '
|
|
12119
12749
|
}, langdetect == 'en' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -12152,7 +12782,10 @@
|
|
|
12152
12782
|
"class": "m-0"
|
|
12153
12783
|
}))));
|
|
12154
12784
|
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12155
|
-
className: langdetect == 'en' ? 'col-md-2 allcentered pl-1 pr-1 pt-1 resposiveheader_languagedropdown' : 'col-md-2 allcentered pl-1 pr-1 pt-1'
|
|
12785
|
+
className: sectionproperties.searchbar_show == 'Show' ? langdetect == 'en' ? 'col-md-2 allcentered pl-1 pr-1 pt-1 resposiveheader_languagedropdown' : 'col-md-2 allcentered pl-1 pr-1 pt-1' : 'allcentered pl-1 pr-1 pt-2 pb-2 resposiveheader_languagedropdown',
|
|
12786
|
+
style: {
|
|
12787
|
+
flex: sectionproperties.searchbar_show == 'Show' ? '' : 1
|
|
12788
|
+
}
|
|
12156
12789
|
}, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"], null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Toggle, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12157
12790
|
className: 'allcentered m-0 cursor-pointer'
|
|
12158
12791
|
}, langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -24450,7 +25083,7 @@
|
|
|
24450
25083
|
function ownKeys$1s(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
24451
25084
|
function _objectSpread$1s(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1s(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1s(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
24452
25085
|
var HeaderWithAdSlider = function HeaderWithAdSlider(props) {
|
|
24453
|
-
var _css, _authdetailsContext$i3, _authdetailsContext$i4, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6;
|
|
25086
|
+
var _css, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i5, _authdetailsContext$i6, _authdetailsContext$i7, _authdetailsContext$i8, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6;
|
|
24454
25087
|
var _useState = React.useState(''),
|
|
24455
25088
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
24456
25089
|
sectionproperties = _useState2[0],
|
|
@@ -24471,6 +25104,7 @@
|
|
|
24471
25104
|
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
24472
25105
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
24473
25106
|
var actions = props.actions;
|
|
25107
|
+
var setcurrencyfunccontext = props.actions.setcurrencyfunccontext;
|
|
24474
25108
|
React.useEffect(function () {
|
|
24475
25109
|
var secpropobj = {};
|
|
24476
25110
|
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
@@ -24905,7 +25539,50 @@
|
|
|
24905
25539
|
"class": "ml-2 mr-2"
|
|
24906
25540
|
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
24907
25541
|
"class": "m-0 p-0"
|
|
24908
|
-
}, "En"))))))
|
|
25542
|
+
}, "En"))), authdetailsContext != undefined && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : (_authdetailsContext$i6 = _authdetailsContext$i5.instcurrencies) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.length) > 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
25543
|
+
"class": 'd-flex align-items-center justify-content-center pl-3 pr-3'
|
|
25544
|
+
}, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"], null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Toggle, null, /*#__PURE__*/React__default["default"].createElement("li", {
|
|
25545
|
+
"class": ' d-flex align-items-center justify-content-center '
|
|
25546
|
+
}, langdetect == 'en' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
25547
|
+
"class": "".concat(header_cssstyles.languagecontainer) + ' row m-0 w-100 d-flex align-items-center '
|
|
25548
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
25549
|
+
"class": "m-0 p-0 mr-2 ml-2",
|
|
25550
|
+
style: {
|
|
25551
|
+
fontSize: '16px'
|
|
25552
|
+
}
|
|
25553
|
+
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en), /*#__PURE__*/React__default["default"].createElement(MdKeyboardArrowDown.MdKeyboardArrowDown, {
|
|
25554
|
+
size: 16
|
|
25555
|
+
})), langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
25556
|
+
"class": "".concat(header_cssstyles.languagecontainer) + ' row m-0 w-100 d-flex align-items-center '
|
|
25557
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
25558
|
+
"class": "m-0 p-0 ml-2 mr-2",
|
|
25559
|
+
style: {
|
|
25560
|
+
fontSize: '16px'
|
|
25561
|
+
}
|
|
25562
|
+
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), /*#__PURE__*/React__default["default"].createElement(MdKeyboardArrowDown.MdKeyboardArrowDown, {
|
|
25563
|
+
size: 16
|
|
25564
|
+
})))), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Menu, null, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : (_authdetailsContext$i8 = _authdetailsContext$i7.instcurrencies) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.map(function (item, index) {
|
|
25565
|
+
var _authdetailsContext$i9, _authdetailsContext$i10;
|
|
25566
|
+
return /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
|
|
25567
|
+
onClick: function onClick() {
|
|
25568
|
+
setcurrencyfunccontext(item);
|
|
25569
|
+
}
|
|
25570
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
25571
|
+
"class": "row m-0 w-100"
|
|
25572
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
25573
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start"
|
|
25574
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
25575
|
+
"class": "".concat(header_cssstyles.dropdownitemcontainer) + ' allcenetered m-0 p-0 '
|
|
25576
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
25577
|
+
"class": "".concat(header_cssstyles.dropdownitem) + ' dropdownitem allcenetered m-0 p-0 '
|
|
25578
|
+
}, /*#__PURE__*/React__default["default"].createElement(FaMoneyBillWave.FaMoneyBillWave, null), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
25579
|
+
"class": 'ml-2 mr-2'
|
|
25580
|
+
}, langdetect == 'en' ? item.currencyname_en : item.currencyname_ar)))), index != (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : (_authdetailsContext$i10 = _authdetailsContext$i9.instcurrencies) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.length) - 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
25581
|
+
"class": "col-lg-12 p-0"
|
|
25582
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
25583
|
+
"class": "m-0"
|
|
25584
|
+
}))));
|
|
25585
|
+
}))))))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
24909
25586
|
"class": ' col-lg-12 p-0 allcentered '
|
|
24910
25587
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
24911
25588
|
"class": header_cssstyles.divider
|
|
@@ -39134,7 +39811,7 @@
|
|
|
39134
39811
|
};
|
|
39135
39812
|
var Content = function Content() {
|
|
39136
39813
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
39137
|
-
"class":
|
|
39814
|
+
"class": sectionproperties.image_show == 'show' ? 'col-lg-6 col-md-12 d-flex justify-content-start h-100 h-md-auto justify-content-md-center pl-0 pr-0' : 'col-lg-12 col-md-12 d-flex justify-content-start h-100 h-md-auto justify-content-md-center pl-0 pr-0',
|
|
39138
39815
|
style: {
|
|
39139
39816
|
background: sectionproperties.reservation_bgcolor,
|
|
39140
39817
|
alignItems: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : '',
|
|
@@ -39302,7 +39979,7 @@
|
|
|
39302
39979
|
width: sectionproperties.width + 'vw'
|
|
39303
39980
|
}
|
|
39304
39981
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
39305
|
-
"class": sectionproperties.paddingLeft != 0 ? langdetect == 'en' ? 'row m-0 w-100 d-flex justify-content-between pl-1025-1 pl-md-3' : 'row m-0 w-100 d-flex justify-content-between pr-1025-1 pr-md-3' : sectionproperties.paddingRight != 0 ? langdetect == 'en' ? 'row m-0 w-100 d-flex justify-content-between pr-1025-1 pr-md-3' : 'row m-0 w-100 d-flex justify-content-between pl-1025-1 pl-md-3' : 'row m-0 w-100 d-flex justify-content-between',
|
|
39982
|
+
"class": sectionproperties.paddingLeft != 0 && sectionproperties.paddingRight != 0 ? 'row m-0 w-100 d-flex justify-content-between plr-1025-1 pr-md-3 pl-md-3' : sectionproperties.paddingLeft != 0 ? langdetect == 'en' ? 'row m-0 w-100 d-flex justify-content-between pl-1025-1 pl-md-3' : 'row m-0 w-100 d-flex justify-content-between pr-1025-1 pr-md-3' : sectionproperties.paddingRight != 0 ? langdetect == 'en' ? 'row m-0 w-100 d-flex justify-content-between pr-1025-1 pr-md-3' : 'row m-0 w-100 d-flex justify-content-between pl-1025-1 pl-md-3' : 'row m-0 w-100 d-flex justify-content-between',
|
|
39306
39983
|
style: {
|
|
39307
39984
|
paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
|
|
39308
39985
|
paddingRight: langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
|
|
@@ -39323,7 +40000,7 @@
|
|
|
39323
40000
|
alignItems: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : '',
|
|
39324
40001
|
justifyContent: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : 'start'
|
|
39325
40002
|
}
|
|
39326
|
-
}, Content(), Image())), sectionproperties.sectionstyle == 'Image on left' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
40003
|
+
}, Content(), sectionproperties.image_show == 'show' && Image())), sectionproperties.sectionstyle == 'Image on left' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
39327
40004
|
"class": "col-lg-12 p-0 d-flex justify-content-between"
|
|
39328
40005
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
39329
40006
|
"class": "row m-0 w-100 d-flex justify-content-between",
|
|
@@ -39331,7 +40008,7 @@
|
|
|
39331
40008
|
alignItems: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : '',
|
|
39332
40009
|
justifyContent: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : 'start'
|
|
39333
40010
|
}
|
|
39334
|
-
}, Image(), Content())))));
|
|
40011
|
+
}, sectionproperties.image_show == 'show' && Image(), Content())))));
|
|
39335
40012
|
};
|
|
39336
40013
|
|
|
39337
40014
|
function ownKeys$Q(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -44201,8 +44878,8 @@
|
|
|
44201
44878
|
minWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.width + 'px',
|
|
44202
44879
|
maxWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.width + 'px',
|
|
44203
44880
|
'@media (max-width: 800px)': {
|
|
44204
|
-
minWidth: sectionproperties.widthresponsive + 'px',
|
|
44205
|
-
maxWidth: sectionproperties.widthresponsive + 'px'
|
|
44881
|
+
minWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.widthresponsive + 'px',
|
|
44882
|
+
maxWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.widthresponsive + 'px'
|
|
44206
44883
|
}
|
|
44207
44884
|
}),
|
|
44208
44885
|
innerproductcard: glamor.css((_css = {
|
|
@@ -46991,7 +47668,7 @@
|
|
|
46991
47668
|
}, langdetect == 'en' ? sectionproperties.slideshow_btn_text : sectionproperties.slideshow_btn_text_ar)))))));
|
|
46992
47669
|
};
|
|
46993
47670
|
|
|
46994
|
-
var css_248z$a = ".Categorcycard_fullimage-module_categorycardtext__WLY3- {\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n display: flex;\n justify-content: center;\n width: 100%;\n}";
|
|
47671
|
+
var css_248z$a = ".Categorcycard_fullimage-module_categorycardtext__WLY3- {\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n display: flex;\n justify-content: center;\n width: 100%;\n width: 100%;\n}";
|
|
46995
47672
|
var cardstyles$5 = {"categorycardtext":"Categorcycard_fullimage-module_categorycardtext__WLY3-"};
|
|
46996
47673
|
styleInject(css_248z$a);
|
|
46997
47674
|
|
|
@@ -47151,11 +47828,11 @@
|
|
|
47151
47828
|
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
47152
47829
|
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
47153
47830
|
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
47154
|
-
path: item.image,
|
|
47831
|
+
path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
|
|
47155
47832
|
style: {
|
|
47156
47833
|
width: '100%',
|
|
47157
47834
|
height: '100%',
|
|
47158
|
-
objectFit: 'cover'
|
|
47835
|
+
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
|
|
47159
47836
|
},
|
|
47160
47837
|
loading: "lazy"
|
|
47161
47838
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -48363,7 +49040,7 @@
|
|
|
48363
49040
|
paddingBottom: sectionproperties.paddingBottom + 'px'
|
|
48364
49041
|
}
|
|
48365
49042
|
}, sectionproperties.image_show == 'show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
48366
|
-
"class": props.numberOfColsvertical == '1' ? 'col-lg-2 col-md-
|
|
49043
|
+
"class": props.numberOfColsvertical == '1' ? 'col-lg-2 col-md-3 col-sm-3 p-0 h-100' : 'col-lg-4 col-md-4 col-sm-4 p-0 h-100'
|
|
48367
49044
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
48368
49045
|
"class": "d-flex d-md-none",
|
|
48369
49046
|
onClick: function onClick() {
|
|
@@ -48440,7 +49117,7 @@
|
|
|
48440
49117
|
fontSize: sectionproperties.badge_fontsize + 'px'
|
|
48441
49118
|
}
|
|
48442
49119
|
}, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
48443
|
-
"class": sectionproperties.image_show == 'show' ? props.numberOfColsvertical == '1' ? 'col-lg-10 col-md-
|
|
49120
|
+
"class": sectionproperties.image_show == 'show' ? props.numberOfColsvertical == '1' ? 'col-lg-10 col-md-9 col-sm-9 pt-2' : 'col-lg-8 col-md-8 col-sm-8 pt-2' : 'col-lg-12 col-md-12 col-sm-12 pt-2',
|
|
48444
49121
|
style: {
|
|
48445
49122
|
paddingRight: langdetect == 'en' ? 0 : '',
|
|
48446
49123
|
paddingLeft: langdetect == 'ar' ? 0 : '',
|
|
@@ -48503,7 +49180,7 @@
|
|
|
48503
49180
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
48504
49181
|
}
|
|
48505
49182
|
}, plainString(langdetect == 'en' ? item.description_en : item.description_ar))), sectionproperties.cartBtnShow == 'Show' && props.numberOfColsvertical == '1' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
48506
|
-
"class": "col-lg-3 col-md-
|
|
49183
|
+
"class": "col-lg-3 col-md-12 col-sm-12 p-0 d-flex align-items-center justify-content-end justify-content-md-start"
|
|
48507
49184
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
48508
49185
|
"class": card_cssstyles.cart_btn,
|
|
48509
49186
|
onClick: function onClick() {
|
|
@@ -50799,28 +51476,23 @@
|
|
|
50799
51476
|
var cardonclickfunctionContext = props.actions.cardonclickfunctionContext;
|
|
50800
51477
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
50801
51478
|
React.useEffect(function () {
|
|
50802
|
-
|
|
50803
|
-
|
|
50804
|
-
|
|
50805
|
-
|
|
50806
|
-
|
|
50807
|
-
|
|
50808
|
-
|
|
50809
|
-
|
|
50810
|
-
|
|
50811
|
-
if (sectionitem.sectionid == props.sectionidprops) {
|
|
50812
|
-
sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
|
|
50813
|
-
secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
|
|
50814
|
-
});
|
|
50815
|
-
}
|
|
50816
|
-
});
|
|
50817
|
-
setsectionproperties(_objectSpread$b({}, secpropobj));
|
|
50818
|
-
}
|
|
51479
|
+
var secpropobj = {};
|
|
51480
|
+
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
51481
|
+
if (sectionitem.sectionid == props.sectionidprops) {
|
|
51482
|
+
sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
|
|
51483
|
+
secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
|
|
51484
|
+
});
|
|
51485
|
+
}
|
|
51486
|
+
});
|
|
51487
|
+
setsectionproperties(_objectSpread$b({}, secpropobj));
|
|
50819
51488
|
}, [StatePagePropertiesContext]);
|
|
50820
51489
|
React.useEffect(function () {
|
|
50821
51490
|
setitem(props.cardinfoitemprops);
|
|
50822
51491
|
}, [props.cardinfoitemprops]);
|
|
50823
51492
|
var card_cssstyles = {
|
|
51493
|
+
cardcont: glamor.css({
|
|
51494
|
+
width: sectionproperties.width + 'px'
|
|
51495
|
+
}),
|
|
50824
51496
|
productcard: glamor.css({
|
|
50825
51497
|
position: 'relative',
|
|
50826
51498
|
background: sectionproperties.backgroundColortransparent == 'Transparent' ? 'transparent' : sectionproperties.backgroundColor,
|
|
@@ -50900,8 +51572,8 @@
|
|
|
50900
51572
|
}
|
|
50901
51573
|
}),
|
|
50902
51574
|
cart_btn: glamor.css({
|
|
50903
|
-
width: sectionproperties.cartBtnWidth + 'px',
|
|
50904
|
-
height: sectionproperties.cartBtnHeight + 'px',
|
|
51575
|
+
width: sectionproperties.cartBtnWidth == 0 ? 'auto' : sectionproperties.cartBtnWidth + 'px',
|
|
51576
|
+
height: sectionproperties.cartBtnHeight == 0 ? 'auto' : sectionproperties.cartBtnHeight + 'px',
|
|
50905
51577
|
background: sectionproperties.cartbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColor,
|
|
50906
51578
|
borderRadius: sectionproperties.cart_btn_borderBottomLeftRadius + 'px',
|
|
50907
51579
|
color: sectionproperties.cartBtnTextcolor,
|
|
@@ -50917,7 +51589,9 @@
|
|
|
50917
51589
|
})
|
|
50918
51590
|
};
|
|
50919
51591
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
50920
|
-
"class":
|
|
51592
|
+
"class": props.sectiontypeprops2 == 'vertical' ? 'w-100' : "".concat(card_cssstyles.cardcont)
|
|
51593
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
51594
|
+
"class": "row m-0 w-100 pl-sm-2 pr-sm-2",
|
|
50921
51595
|
style: {
|
|
50922
51596
|
paddingLeft: langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px',
|
|
50923
51597
|
paddingRight: langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px'
|
|
@@ -51044,7 +51718,7 @@
|
|
|
51044
51718
|
size: sectionproperties.favBtnIconfontsize
|
|
51045
51719
|
}), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, {
|
|
51046
51720
|
size: sectionproperties.favBtnIconfontsize
|
|
51047
|
-
}))))))));
|
|
51721
|
+
})))))))));
|
|
51048
51722
|
};
|
|
51049
51723
|
|
|
51050
51724
|
function ownKeys$a(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -53982,6 +54656,7 @@
|
|
|
53982
54656
|
AwesomeButton: AwesomeButton,
|
|
53983
54657
|
Checkout: Checkout,
|
|
53984
54658
|
Signup: Signup,
|
|
54659
|
+
AddReview: AddReview,
|
|
53985
54660
|
Productinfo: Productinfo,
|
|
53986
54661
|
Ordershistory: Ordershistory,
|
|
53987
54662
|
Wishlist: Wishlist,
|