tabexseriescomponents 0.0.106 → 0.0.108

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 CHANGED
@@ -21,7 +21,6 @@ var IoMdClose = require('@react-icons/all-files/io/IoMdClose');
21
21
  var reactBootstrap = require('react-bootstrap');
22
22
  require('react-query');
23
23
  var ImageGallery = require('react-image-gallery');
24
- var ShowMoreText = require('react-show-more-text');
25
24
  var reactRouter = require('react-router');
26
25
  var imagekitioReact = require('imagekitio-react');
27
26
  var MdAddShoppingCart$1 = require('@react-icons/all-files/md/MdAddShoppingCart');
@@ -148,7 +147,6 @@ var Cookies__default = /*#__PURE__*/_interopDefaultLegacy(Cookies);
148
147
  var jwtDecode__default = /*#__PURE__*/_interopDefaultLegacy(jwtDecode);
149
148
  var FacebookLogin__default = /*#__PURE__*/_interopDefaultLegacy(FacebookLogin);
150
149
  var ImageGallery__default = /*#__PURE__*/_interopDefaultLegacy(ImageGallery);
151
- var ShowMoreText__default = /*#__PURE__*/_interopDefaultLegacy(ShowMoreText);
152
150
  var _toConsumableArray__default = /*#__PURE__*/_interopDefaultLegacy(_toConsumableArray);
153
151
  var TextareaAutosize__default = /*#__PURE__*/_interopDefaultLegacy(TextareaAutosize);
154
152
  var Dropdown__default = /*#__PURE__*/_interopDefaultLegacy(Dropdown);
@@ -1668,14 +1666,7 @@ var Productinfo = function Productinfo(props) {
1668
1666
  className: "row m-0 w-100 d-flex flex-column"
1669
1667
  }, /*#__PURE__*/React__default["default"].createElement("p", {
1670
1668
  className: "m-0 p-0 text-light font-15 d-flex justify-content-start"
1671
- }, lang.description, ":"), /*#__PURE__*/React__default["default"].createElement(ShowMoreText__default["default"], {
1672
- lines: 5,
1673
- more: lang.showmore,
1674
- less: lang.showless,
1675
- anchorClass: "my-anchor-css-className",
1676
- expanded: false,
1677
- truncatedEndingComponent: '... '
1678
- }, /*#__PURE__*/React__default["default"].createElement("p", {
1669
+ }, lang.description, ":"), /*#__PURE__*/React__default["default"].createElement("p", {
1679
1670
  className: 'text-black text-capitalize m-0 p-0 wordbreak',
1680
1671
  style: {
1681
1672
  textAlign: langdetect == 'en' ? 'left' : 'right'
@@ -1683,7 +1674,7 @@ var Productinfo = function Productinfo(props) {
1683
1674
  dangerouslySetInnerHTML: {
1684
1675
  __html: langdetect == 'en' ? fetchProductInfoQueryContext.data.data.productinfo.description_en : fetchProductInfoQueryContext.data.data.productinfo.description_ar
1685
1676
  }
1686
- })))), langdetect == 'ar' && fetchProductInfoQueryContext.data.data.productinfo.description_ar != '' && /*#__PURE__*/React__default["default"].createElement("div", {
1677
+ }))), langdetect == 'ar' && fetchProductInfoQueryContext.data.data.productinfo.description_ar != '' && /*#__PURE__*/React__default["default"].createElement("div", {
1687
1678
  className: "col-lg-12 p-0 mb-5 d-flex justify-content-center",
1688
1679
  style: {
1689
1680
  minHeight: '15vh'
@@ -1692,14 +1683,7 @@ var Productinfo = function Productinfo(props) {
1692
1683
  className: "row m-0 w-100 d-flex flex-column"
1693
1684
  }, /*#__PURE__*/React__default["default"].createElement("p", {
1694
1685
  className: "m-0 p-0 text-light font-15 d-flex justify-content-start"
1695
- }, lang.description, ":"), /*#__PURE__*/React__default["default"].createElement(ShowMoreText__default["default"], {
1696
- lines: 5,
1697
- more: lang.showmore,
1698
- less: lang.showless,
1699
- anchorClass: "my-anchor-css-className",
1700
- expanded: false,
1701
- truncatedEndingComponent: '... '
1702
- }, /*#__PURE__*/React__default["default"].createElement("p", {
1686
+ }, lang.description, ":"), /*#__PURE__*/React__default["default"].createElement("p", {
1703
1687
  className: 'text-black text-capitalize m-0 p-0 wordbreak',
1704
1688
  style: {
1705
1689
  textAlign: langdetect == 'en' ? 'left' : 'right'
@@ -1707,7 +1691,7 @@ var Productinfo = function Productinfo(props) {
1707
1691
  dangerouslySetInnerHTML: {
1708
1692
  __html: langdetect == 'en' ? fetchProductInfoQueryContext.data.data.productinfo.description_en : fetchProductInfoQueryContext.data.data.productinfo.description_ar
1709
1693
  }
1710
- })))), fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
1694
+ }))), fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
1711
1695
  className: "row m-0 w-100 d-flex align-items-start"
1712
1696
  }, fetchProductInfoQueryContext.data.data.productinfo.productoptions.map(function (item, index) {
1713
1697
  return /*#__PURE__*/React__default["default"].createElement("div", {
@@ -31687,7 +31671,6 @@ var Threebgimages = function Threebgimages(props) {
31687
31671
  function ownKeys$J(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; }
31688
31672
  function _objectSpread$J(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$J(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$J(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
31689
31673
  var Twobgimages = function Twobgimages(props) {
31690
- var _bgimagearrayofobjs$;
31691
31674
  var _useState = React.useState(''),
31692
31675
  _useState2 = _slicedToArray__default["default"](_useState, 2),
31693
31676
  sectionproperties = _useState2[0],
@@ -31821,207 +31804,221 @@ var Twobgimages = function Twobgimages(props) {
31821
31804
  }
31822
31805
  })
31823
31806
  };
31824
- return /*#__PURE__*/React__default["default"].createElement("div", {
31825
- className: "row m-0 w-100"
31826
- }, /*#__PURE__*/React__default["default"].createElement("div", {
31827
- className: "col-lg-12 p-0"
31828
- }, /*#__PURE__*/React__default["default"].createElement("div", {
31829
- className: ((_bgimagearrayofobjs$ = bgimagearrayofobjs[0]) === null || _bgimagearrayofobjs$ === void 0 ? void 0 : _bgimagearrayofobjs$.bg1_numberofcols) == '12' ? 'row w-100 ml-0 mr-0 pl-md-0 pr-md-0 no-repeat' : 'row w-100 ml-0 mr-0 pl-md-3 pr-md-3 no-repeat',
31830
- style: {
31831
- paddingTop: sectionproperties.paddingTop + 'px',
31832
- paddingBottom: sectionproperties.paddingBottom + 'px',
31833
- paddingLeft: sectionproperties.paddingLeft + 'px',
31834
- paddingRight: sectionproperties.paddingRight + 'px',
31835
- backgroundImage: maincontainerarrayofobjs.length != 0 ? 'url(' + serverbaselink$1 + maincontainerarrayofobjs[0].back_bgimage + ')' : '',
31836
- backgroundSize: 'cover',
31837
- background: sectionproperties.backgroundColor
31838
- }
31839
- }, sectionproperties.collectionssectionshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
31840
- className: "col-lg-2 col-md-12 pl-2 pr-2 mb-md-3"
31841
- }, /*#__PURE__*/React__default["default"].createElement(Categoriesdropdown, {
31842
- sectionpropertiesprops: sectionproperties,
31843
- actions: actions
31844
- })), /*#__PURE__*/React__default["default"].createElement("div", {
31845
- className: sectionproperties.collectionssectionshow == 'Show' ? 'col-lg-10 col-md-12 p-md-0' : 'col-lg-12 p-0'
31846
- }, /*#__PURE__*/React__default["default"].createElement("div", {
31847
- className: "row m-0 w-100"
31848
- }, Object.keys(bgimagearrayofobjs).length != 0 && bgimagearrayofobjs.map(function (item, index) {
31849
- // bgimagearrayofobjs.IsClickable
31850
- // bgimagearrayofobjs.clickable_page_route
31851
- // bgimagearrayofobjs.Clickable_Reference_Collection_ID
31807
+ var BackgroundImage = function BackgroundImage() {
31808
+ var _bgimagearrayofobjs$;
31852
31809
  return /*#__PURE__*/React__default["default"].createElement("div", {
31853
- className: bgimagearrayofobjs[index].bg1_numberofcols != 12 ? ' d-flex align-items-stretch col-md-6 col-sm-12 pr-sm-2 pl-sm-2 mb-md-3 mt-md-3 col-lg-' + bgimagearrayofobjs[index].bg1_numberofcols : ' d-flex align-items-stretch col-md-12 col-sm-12 pr-md-0 pl-md-0 col-lg-' + bgimagearrayofobjs[index].bg1_numberofcols,
31854
- style: {
31855
- paddingLeft: bgimagearrayofobjs[index].bg1_numberofcols == '12' ? 0 : '7px',
31856
- paddingRight: bgimagearrayofobjs[index].bg1_numberofcols == '12' ? 0 : '7px',
31857
- cursor: item.place_clickable == 'General' ? 'pointer' : 'default'
31858
- },
31859
- onClick: function onClick() {
31860
- if (item.IsClickable == 'Yes') {
31861
- if (item.place_clickable == 'General') {
31862
- if (item.clickable_page_route && item.clickable_page_route.length != 0) {
31863
- routingcountext(item.clickable_page_route, false, '');
31864
- } else {
31865
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.Clickable_Reference_Collection_ID);
31866
- }
31867
- }
31868
- }
31869
- }
31870
- }, /*#__PURE__*/React__default["default"].createElement("div", {
31871
- className: "row ml-0 mr-0 d-flex justify-content-center w-100"
31872
- }, /*#__PURE__*/React__default["default"].createElement("div", {
31873
- className: sectionproperties.bgcovercontainresponsive == 'Contain' ? 'col-lg-12 p-0 h-md-auto' : 'col-lg-12 p-0',
31874
- style: {
31875
- height: sectionproperties.image_height + 'vh'
31876
- }
31877
- }, /*#__PURE__*/React__default["default"].createElement("div", {
31878
- className: "".concat(bgcssstyles.bgimage) + ' d-md-flex d-sm-none ',
31879
- style: {
31880
- height: '100%',
31881
- width: '100%'
31882
- }
31883
- }, /*#__PURE__*/React__default["default"].createElement(imagekitioReact.IKImage, {
31884
- urlEndpoint: IKurlEndpoint,
31885
- publicKey: IKpublicKey,
31886
- path: bgimagearrayofobjs.length != 0 ? langdetect == 'en' ? bgimagearrayofobjs[index].bg1_image : bgimagearrayofobjs[index].bg1_image_ar : '',
31887
- className: sectionproperties.bgcovercontainresponsive == 'Contain' ? 'objectFit-md-contain' : '',
31888
- style: {
31889
- height: '100%',
31890
- width: '100%',
31891
- objectFit: sectionproperties.bgcovercontain,
31892
- borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
31893
- borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
31894
- borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
31895
- borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px'
31896
- }
31897
- })), /*#__PURE__*/React__default["default"].createElement("div", {
31898
- className: "".concat(bgcssstyles.bgimage) + ' d-none d-md-none d-sm-flex',
31899
- style: {
31900
- height: '100%',
31901
- width: '100%'
31902
- }
31903
- }, /*#__PURE__*/React__default["default"].createElement(imagekitioReact.IKImage, {
31904
- urlEndpoint: IKurlEndpoint,
31905
- publicKey: IKpublicKey,
31906
- path: bgimagearrayofobjs.length != 0 ? langdetect == 'en' ? bgimagearrayofobjs[index].bg1_imageresponsive : bgimagearrayofobjs[index].bg1_imageresponsive_ar : '',
31907
- className: sectionproperties.bgcovercontainresponsive == 'Contain' ? 'objectFit-md-contain' : '',
31810
+ className: ((_bgimagearrayofobjs$ = bgimagearrayofobjs[0]) === null || _bgimagearrayofobjs$ === void 0 ? void 0 : _bgimagearrayofobjs$.bg1_numberofcols) == '12' ? 'row w-100 ml-0 mr-0 pl-md-0 pr-md-0 no-repeat' : 'row w-100 ml-0 mr-0 pl-md-3 pr-md-3 no-repeat',
31908
31811
  style: {
31909
- height: '100%',
31910
- width: '100%',
31911
- objectFit: sectionproperties.bgcovercontain,
31912
- borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
31913
- borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
31914
- borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
31915
- borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px'
31812
+ paddingTop: sectionproperties.paddingTop + 'px',
31813
+ paddingBottom: sectionproperties.paddingBottom + 'px',
31814
+ paddingLeft: sectionproperties.paddingLeft + 'px',
31815
+ paddingRight: sectionproperties.paddingRight + 'px',
31816
+ backgroundImage: maincontainerarrayofobjs.length != 0 ? 'url(' + serverbaselink$1 + maincontainerarrayofobjs[0].back_bgimage + ')' : '',
31817
+ backgroundSize: 'cover',
31818
+ background: sectionproperties.backgroundColor
31916
31819
  }
31820
+ }, sectionproperties.collectionssectionshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
31821
+ className: "col-lg-2 col-md-12 pl-2 pr-2 mb-md-3"
31822
+ }, /*#__PURE__*/React__default["default"].createElement(Categoriesdropdown, {
31823
+ sectionpropertiesprops: sectionproperties,
31824
+ actions: actions
31917
31825
  })), /*#__PURE__*/React__default["default"].createElement("div", {
31918
- className: "".concat(bgcssstyles.bgImageContainer) + ' col-lg-12 p-0 w-100 ',
31919
- style: {
31920
- position: 'absolute',
31921
- top: 0,
31922
- right: 0,
31923
- bottom: 0,
31924
- left: 0,
31925
- zIndex: 1
31926
- }
31927
- }, /*#__PURE__*/React__default["default"].createElement("div", {
31928
- className: "".concat(bgcssstyles.centered_container) + ' row m-0 d-flex pt-0 '
31826
+ className: sectionproperties.collectionssectionshow == 'Show' ? 'col-lg-10 col-md-12 p-md-0' : 'col-lg-12 p-0'
31929
31827
  }, /*#__PURE__*/React__default["default"].createElement("div", {
31930
- className: bgimagearrayofobjs[index].bg1_numberofcols == '12' ? ' p-0 d-flex flex-column d-md-none col-lg-12 ' : ' p-0 d-flex flex-column d-md-none col-lg-6 ',
31931
- style: {
31932
- position: 'relative',
31933
- overflow: 'hidden'
31934
- }
31935
- }, /*#__PURE__*/React__default["default"].createElement("p", {
31936
- className: 'd-flex justify-content-md-center wordbreak',
31937
- style: {
31938
- maxWidth: '100%',
31939
- position: 'relative',
31940
- fontSize: bgimagearrayofobjs[index].bg1_fontsize + 'px',
31941
- color: bgimagearrayofobjs[index].bg1_txtcolor,
31942
- textTransform: bgimagearrayofobjs[index].bg1_txttransform,
31943
- fontWeight: bgimagearrayofobjs[index].bg1_fontweight,
31944
- top: bgimagearrayofobjs[index].bg1_numberofcols == '12' ? 0 : bgimagearrayofobjs[index].bg1_texttop + 'px',
31945
- left: bgimagearrayofobjs[index].bg1_numberofcols == '12' ? 0 : langdetect == 'en' ? bgimagearrayofobjs[index].bg1_textleft + 'px' : '',
31946
- right: bgimagearrayofobjs[index].bg1_numberofcols == '12' ? 0 : langdetect == 'en' ? '' : bgimagearrayofobjs[index].bg1_textleft + 'px',
31947
- bottom: bgimagearrayofobjs[index].bg1_numberofcols == '12' ? 0 : '',
31948
- margin: bgimagearrayofobjs[index].bg1_numberofcols == '12' ? 'auto' : '',
31949
- textAlign: langdetect == 'en' ? 'left' : 'right'
31950
- }
31951
- }, langdetect == 'en' ? bgimagearrayofobjs[index].bg1_text_en : bgimagearrayofobjs[index].bg1_text_ar), bgimagearrayofobjs[index].showdescription1 == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
31952
- className: 'd-flex justify-content-md-center wordbreak',
31953
- style: {
31954
- // maxWidth: '97%',
31955
- position: 'relative',
31956
- fontSize: bgimagearrayofobjs[index].bg1_desfontsize + 'px',
31957
- color: bgimagearrayofobjs[index].bg1_descolor,
31958
- textTransform: bgimagearrayofobjs[index].bg1_destxttransform,
31959
- fontWeight: bgimagearrayofobjs[index].bg1_desfontweight,
31960
- top: bgimagearrayofobjs[index].desc1top + 'px',
31961
- left: langdetect == 'en' ? bgimagearrayofobjs[index].desc1left + 'px' : '',
31962
- right: langdetect == 'en' ? '' : bgimagearrayofobjs[index].desc1left + 'px',
31963
- textAlign: langdetect == 'en' ? 'left' : 'right'
31964
- }
31965
- }, langdetect == 'en' ? bgimagearrayofobjs[index].bg1_descriptionen : bgimagearrayofobjs[index].bg1_descriptionar), bgimagearrayofobjs[index].showbutton1 == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
31966
- className: "".concat(bgcssstyles.btnone) + ' allcentered ',
31967
- style: {
31968
- top: bgimagearrayofobjs[index].bg1_btnpositiontop + 'px',
31969
- left: langdetect == 'en' ? bgimagearrayofobjs[index].bg1_btnpositionleft + 'px' : '',
31970
- right: langdetect == 'en' ? '' : bgimagearrayofobjs[index].bg1_btnpositionleft + 'px',
31971
- letterSpacing: langdetect == 'en' ? '1px' : 0
31972
- },
31973
- onClick: function onClick() {
31974
- if (item.IsClickable == 'Yes') {
31975
- if (item.place_clickable == 'Button') {
31976
- if (item.clickable_page_route && item.clickable_page_route.length != 0) {
31977
- routingcountext(item.clickable_page_route, false, '');
31978
- } else {
31979
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.Clickable_Reference_Collection_ID);
31828
+ className: "row m-0 w-100"
31829
+ }, Object.keys(bgimagearrayofobjs).length != 0 && bgimagearrayofobjs.map(function (item, index) {
31830
+ // bgimagearrayofobjs.IsClickable
31831
+ // bgimagearrayofobjs.clickable_page_route
31832
+ // bgimagearrayofobjs.Clickable_Reference_Collection_ID
31833
+ return /*#__PURE__*/React__default["default"].createElement("div", {
31834
+ className: bgimagearrayofobjs[index].bg1_numberofcols != 12 ? ' d-flex align-items-stretch col-md-6 col-sm-12 pr-sm-2 pl-sm-2 mb-md-3 mt-md-3 col-lg-' + bgimagearrayofobjs[index].bg1_numberofcols : ' d-flex align-items-stretch col-md-12 col-sm-12 pr-md-0 pl-md-0 col-lg-' + bgimagearrayofobjs[index].bg1_numberofcols,
31835
+ style: {
31836
+ paddingLeft: bgimagearrayofobjs[index].bg1_numberofcols == '12' ? 0 : '7px',
31837
+ paddingRight: bgimagearrayofobjs[index].bg1_numberofcols == '12' ? 0 : '7px',
31838
+ cursor: item.place_clickable == 'General' ? 'pointer' : 'default'
31839
+ },
31840
+ onClick: function onClick() {
31841
+ if (item.IsClickable == 'Yes') {
31842
+ if (item.place_clickable == 'General') {
31843
+ if (item.clickable_page_route && item.clickable_page_route.length != 0) {
31844
+ routingcountext(item.clickable_page_route, false, '');
31845
+ } else {
31846
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.Clickable_Reference_Collection_ID);
31847
+ }
31980
31848
  }
31981
31849
  }
31982
31850
  }
31983
- }
31984
- }, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar, ' ', langdetect == 'en' ? /*#__PURE__*/React__default["default"].createElement(IoIosArrowRoundForward.IoIosArrowRoundForward, {
31985
- size: 20
31986
- }) : /*#__PURE__*/React__default["default"].createElement(IoIosArrowRoundBack.IoIosArrowRoundBack, {
31987
- size: 20
31988
- }))), /*#__PURE__*/React__default["default"].createElement("div", {
31989
- className: "col-md-12 d-none d-md-flex flex-column mt-auto mb-auto "
31990
- }, /*#__PURE__*/React__default["default"].createElement("p", {
31991
- className: "wordbreak m-0",
31992
- style: {
31993
- position: 'relative',
31994
- fontSize: bgimagearrayofobjs[index].bg1_fontsize + 'px',
31995
- color: bgimagearrayofobjs[index].bg1_txtcolor,
31996
- textTransform: bgimagearrayofobjs[index].bg1_txttransform,
31997
- fontWeight: bgimagearrayofobjs[index].bg1_fontweight,
31998
- textAlign: langdetect == 'en' ? 'left' : 'right'
31999
- }
32000
- }, langdetect == 'en' ? bgimagearrayofobjs[index].bg1_text_en : bgimagearrayofobjs[index].bg1_text_ar), bgimagearrayofobjs[index].showdescription1 == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
32001
- className: 'd-flex justify-content-md-center wordbreak m-0',
32002
- style: {
32003
- position: 'relative',
32004
- fontSize: bgimagearrayofobjs[index].bg1_desfontsize + 'px',
32005
- color: bgimagearrayofobjs[index].bg1_descolor,
32006
- textTransform: bgimagearrayofobjs[index].bg1_destxttransform,
32007
- fontWeight: bgimagearrayofobjs[index].bg1_desfontweight,
32008
- textAlign: langdetect == 'en' ? 'left' : 'right'
32009
- }
32010
- }, langdetect == 'en' ? bgimagearrayofobjs[index].bg1_descriptionen : bgimagearrayofobjs[index].bg1_descriptionar), bgimagearrayofobjs[index].showbutton1 == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
32011
- className: "".concat(bgcssstyles.btnresp) + ' mt-md-5 mt-sm-3 ',
32012
- onClick: function onClick() {
32013
- if (item.IsClickable == 'Yes') {
32014
- if (item.place_clickable == 'Button') {
32015
- if (item.clickable_page_route && item.clickable_page_route.length != 0) {
32016
- routingcountext(item.clickable_page_route, false, '');
32017
- } else {
32018
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.Clickable_Reference_Collection_ID);
31851
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
31852
+ className: "row ml-0 mr-0 d-flex justify-content-center w-100"
31853
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
31854
+ className: sectionproperties.bgcovercontainresponsive == 'Contain' ? 'col-lg-12 p-0 h-md-auto' : 'col-lg-12 p-0',
31855
+ style: {
31856
+ height: sectionproperties.image_height + 'vh'
31857
+ }
31858
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
31859
+ className: "".concat(bgcssstyles.bgimage) + ' d-md-flex d-sm-none ',
31860
+ style: {
31861
+ height: '100%',
31862
+ width: '100%'
31863
+ }
31864
+ }, /*#__PURE__*/React__default["default"].createElement(imagekitioReact.IKImage, {
31865
+ urlEndpoint: IKurlEndpoint,
31866
+ publicKey: IKpublicKey,
31867
+ path: bgimagearrayofobjs.length != 0 ? langdetect == 'en' ? bgimagearrayofobjs[index].bg1_image : bgimagearrayofobjs[index].bg1_image_ar : '',
31868
+ className: sectionproperties.bgcovercontainresponsive == 'Contain' ? 'objectFit-md-contain' : '',
31869
+ style: {
31870
+ height: '100%',
31871
+ width: '100%',
31872
+ objectFit: sectionproperties.bgcovercontain,
31873
+ borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
31874
+ borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
31875
+ borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
31876
+ borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px'
31877
+ }
31878
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
31879
+ className: "".concat(bgcssstyles.bgimage) + ' d-none d-md-none d-sm-flex',
31880
+ style: {
31881
+ height: '100%',
31882
+ width: '100%'
31883
+ }
31884
+ }, /*#__PURE__*/React__default["default"].createElement(imagekitioReact.IKImage, {
31885
+ urlEndpoint: IKurlEndpoint,
31886
+ publicKey: IKpublicKey,
31887
+ path: bgimagearrayofobjs.length != 0 ? langdetect == 'en' ? bgimagearrayofobjs[index].bg1_imageresponsive : bgimagearrayofobjs[index].bg1_imageresponsive_ar : '',
31888
+ className: sectionproperties.bgcovercontainresponsive == 'Contain' ? 'objectFit-md-contain' : '',
31889
+ style: {
31890
+ height: '100%',
31891
+ width: '100%',
31892
+ objectFit: sectionproperties.bgcovercontain,
31893
+ borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
31894
+ borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
31895
+ borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
31896
+ borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px'
31897
+ }
31898
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
31899
+ className: "".concat(bgcssstyles.bgImageContainer) + ' col-lg-12 p-0 w-100 ',
31900
+ style: {
31901
+ position: 'absolute',
31902
+ top: 0,
31903
+ right: 0,
31904
+ bottom: 0,
31905
+ left: 0,
31906
+ zIndex: 1
31907
+ }
31908
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
31909
+ className: "".concat(bgcssstyles.centered_container) + ' row m-0 d-flex pt-0 '
31910
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
31911
+ className: bgimagearrayofobjs[index].bg1_numberofcols == '12' ? ' p-0 d-flex flex-column d-md-none col-lg-12 ' : ' p-0 d-flex flex-column d-md-none col-lg-6 ',
31912
+ style: {
31913
+ position: 'relative',
31914
+ overflow: 'hidden'
31915
+ }
31916
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
31917
+ className: 'd-flex justify-content-md-center wordbreak',
31918
+ style: {
31919
+ maxWidth: '100%',
31920
+ position: 'relative',
31921
+ fontSize: bgimagearrayofobjs[index].bg1_fontsize + 'px',
31922
+ color: bgimagearrayofobjs[index].bg1_txtcolor,
31923
+ textTransform: bgimagearrayofobjs[index].bg1_txttransform,
31924
+ fontWeight: bgimagearrayofobjs[index].bg1_fontweight,
31925
+ top: bgimagearrayofobjs[index].bg1_numberofcols == '12' ? 0 : bgimagearrayofobjs[index].bg1_texttop + 'px',
31926
+ left: bgimagearrayofobjs[index].bg1_numberofcols == '12' ? 0 : langdetect == 'en' ? bgimagearrayofobjs[index].bg1_textleft + 'px' : '',
31927
+ right: bgimagearrayofobjs[index].bg1_numberofcols == '12' ? 0 : langdetect == 'en' ? '' : bgimagearrayofobjs[index].bg1_textleft + 'px',
31928
+ bottom: bgimagearrayofobjs[index].bg1_numberofcols == '12' ? 0 : '',
31929
+ margin: bgimagearrayofobjs[index].bg1_numberofcols == '12' ? 'auto' : '',
31930
+ textAlign: langdetect == 'en' ? 'left' : 'right'
31931
+ }
31932
+ }, langdetect == 'en' ? bgimagearrayofobjs[index].bg1_text_en : bgimagearrayofobjs[index].bg1_text_ar), bgimagearrayofobjs[index].showdescription1 == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
31933
+ className: 'd-flex justify-content-md-center wordbreak',
31934
+ style: {
31935
+ // maxWidth: '97%',
31936
+ position: 'relative',
31937
+ fontSize: bgimagearrayofobjs[index].bg1_desfontsize + 'px',
31938
+ color: bgimagearrayofobjs[index].bg1_descolor,
31939
+ textTransform: bgimagearrayofobjs[index].bg1_destxttransform,
31940
+ fontWeight: bgimagearrayofobjs[index].bg1_desfontweight,
31941
+ top: bgimagearrayofobjs[index].desc1top + 'px',
31942
+ left: langdetect == 'en' ? bgimagearrayofobjs[index].desc1left + 'px' : '',
31943
+ right: langdetect == 'en' ? '' : bgimagearrayofobjs[index].desc1left + 'px',
31944
+ textAlign: langdetect == 'en' ? 'left' : 'right'
31945
+ }
31946
+ }, langdetect == 'en' ? bgimagearrayofobjs[index].bg1_descriptionen : bgimagearrayofobjs[index].bg1_descriptionar), bgimagearrayofobjs[index].showbutton1 == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
31947
+ className: "".concat(bgcssstyles.btnone) + ' allcentered ',
31948
+ style: {
31949
+ top: bgimagearrayofobjs[index].bg1_btnpositiontop + 'px',
31950
+ left: langdetect == 'en' ? bgimagearrayofobjs[index].bg1_btnpositionleft + 'px' : '',
31951
+ right: langdetect == 'en' ? '' : bgimagearrayofobjs[index].bg1_btnpositionleft + 'px',
31952
+ letterSpacing: langdetect == 'en' ? '1px' : 0
31953
+ },
31954
+ onClick: function onClick() {
31955
+ if (item.IsClickable == 'Yes') {
31956
+ if (item.place_clickable == 'Button') {
31957
+ if (item.clickable_page_route && item.clickable_page_route.length != 0) {
31958
+ routingcountext(item.clickable_page_route, false, '');
31959
+ } else {
31960
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.Clickable_Reference_Collection_ID);
31961
+ }
32019
31962
  }
32020
31963
  }
32021
31964
  }
32022
- }
32023
- }, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar)))))));
32024
- }))))));
31965
+ }, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar, ' ', langdetect == 'en' ? /*#__PURE__*/React__default["default"].createElement(IoIosArrowRoundForward.IoIosArrowRoundForward, {
31966
+ size: 20
31967
+ }) : /*#__PURE__*/React__default["default"].createElement(IoIosArrowRoundBack.IoIosArrowRoundBack, {
31968
+ size: 20
31969
+ }))), /*#__PURE__*/React__default["default"].createElement("div", {
31970
+ className: "col-md-12 d-none d-md-flex flex-column mt-auto mb-auto "
31971
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
31972
+ className: "wordbreak m-0",
31973
+ style: {
31974
+ position: 'relative',
31975
+ fontSize: bgimagearrayofobjs[index].bg1_fontsize + 'px',
31976
+ color: bgimagearrayofobjs[index].bg1_txtcolor,
31977
+ textTransform: bgimagearrayofobjs[index].bg1_txttransform,
31978
+ fontWeight: bgimagearrayofobjs[index].bg1_fontweight,
31979
+ textAlign: langdetect == 'en' ? 'left' : 'right'
31980
+ }
31981
+ }, langdetect == 'en' ? bgimagearrayofobjs[index].bg1_text_en : bgimagearrayofobjs[index].bg1_text_ar), bgimagearrayofobjs[index].showdescription1 == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
31982
+ className: 'd-flex justify-content-md-center wordbreak m-0',
31983
+ style: {
31984
+ position: 'relative',
31985
+ fontSize: bgimagearrayofobjs[index].bg1_desfontsize + 'px',
31986
+ color: bgimagearrayofobjs[index].bg1_descolor,
31987
+ textTransform: bgimagearrayofobjs[index].bg1_destxttransform,
31988
+ fontWeight: bgimagearrayofobjs[index].bg1_desfontweight,
31989
+ textAlign: langdetect == 'en' ? 'left' : 'right'
31990
+ }
31991
+ }, langdetect == 'en' ? bgimagearrayofobjs[index].bg1_descriptionen : bgimagearrayofobjs[index].bg1_descriptionar), bgimagearrayofobjs[index].showbutton1 == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
31992
+ className: "".concat(bgcssstyles.btnresp) + ' mt-md-5 mt-sm-3 ',
31993
+ onClick: function onClick() {
31994
+ if (item.IsClickable == 'Yes') {
31995
+ if (item.place_clickable == 'Button') {
31996
+ if (item.clickable_page_route && item.clickable_page_route.length != 0) {
31997
+ routingcountext(item.clickable_page_route, false, '');
31998
+ } else {
31999
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.Clickable_Reference_Collection_ID);
32000
+ }
32001
+ }
32002
+ }
32003
+ }
32004
+ }, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar)))))));
32005
+ }))));
32006
+ };
32007
+ return /*#__PURE__*/React__default["default"].createElement("div", {
32008
+ className: "row m-0 w-100"
32009
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
32010
+ className: "col-lg-12 p-0 d-flex d-md-none",
32011
+ style: {
32012
+ marginTop: sectionproperties.marginTop + 'px',
32013
+ marginBottom: sectionproperties.marginBottom + 'px'
32014
+ }
32015
+ }, BackgroundImage()), /*#__PURE__*/React__default["default"].createElement("div", {
32016
+ className: "col-lg-12 p-0 d-none d-md-flex",
32017
+ style: {
32018
+ marginTop: sectionproperties.marginTopResp + 'px',
32019
+ marginBottom: sectionproperties.marginBottomResp + 'px'
32020
+ }
32021
+ }, BackgroundImage()));
32025
32022
  };
32026
32023
 
32027
32024
  function ownKeys$I(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; }