tabexseriescomponents 0.0.64 → 0.0.66
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 +25023 -16634
- package/dist/index.esm.js +25033 -16645
- package/dist/index.umd.js +24824 -16437
- package/package.json +1 -1
- package/src1-10/Contexts/LanguageContext.jsx +347 -0
- package/src1-10/Contexts/ProductsCardsSectionContext.jsx +28 -0
- package/src1-10/StylesJS/Customstyles.js +235 -0
- package/src1-10/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +205 -0
- package/src1-10/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +239 -0
- package/src1-10/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +198 -0
- package/src1-10/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +169 -0
- package/src1-10/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +180 -0
- package/src1-10/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +162 -0
- package/src1-10/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +184 -0
- package/src1-10/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +149 -0
- package/src1-10/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +271 -0
- package/src1-10/TabexComponents/Cards/MenuCard/MenuCard.jsx +546 -0
- package/src1-10/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +474 -0
- package/src1-10/TabexComponents/Cards/Productcard6/Productcard6.jsx +290 -0
- package/src1-10/TabexComponents/Cards/Productcard7/Productcard7.jsx +278 -0
- package/src1-10/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +293 -0
- package/src1-10/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +278 -0
- package/src1-10/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +312 -0
- package/src1-10/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +279 -0
- package/src1-10/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +293 -0
- package/src1-10/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +456 -0
- package/src1-10/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +272 -0
- package/src1-10/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +286 -0
- package/src1-10/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +127 -0
- package/src1-10/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +126 -0
- package/src1-10/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +292 -0
- package/src1-10/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +281 -0
- package/src1-10/TabexComponents/Footer/Footer1/Footer1.jsx +418 -0
- package/src1-10/TabexComponents/Footer/Footer2/Footer2.jsx +381 -0
- package/src1-10/TabexComponents/Footer/Footer3/Footer3.jsx +316 -0
- package/src1-10/TabexComponents/Footer/Footer4/Footer4.jsx +437 -0
- package/src1-10/TabexComponents/Footer/Footer5/Footer5.jsx +488 -0
- package/src1-10/TabexComponents/Footer/Footer6/Footer6.jsx +286 -0
- package/src1-10/TabexComponents/Footer/Footer7/Footer7.jsx +370 -0
- package/src1-10/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +231 -0
- package/src1-10/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
- package/src1-10/TabexComponents/Generalfiles/images/noimage.png +0 -0
- package/src1-10/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
- package/src1-10/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
- package/src1-10/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
- package/src1-10/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
- package/src1-10/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
- package/src1-10/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
- package/src1-10/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
- package/src1-10/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
- package/src1-10/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
- package/src1-10/TabexComponents/Generalfiles/images/usflag.png +0 -0
- package/src1-10/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
- package/src1-10/TabexComponents/Headers/AllinoneHeader/AllinoneHeader.jsx +722 -0
- package/src1-10/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +681 -0
- package/src1-10/TabexComponents/Headers/Header4/Header4.jsx +614 -0
- package/src1-10/TabexComponents/Headers/Header6/Header6.jsx +666 -0
- package/src1-10/TabexComponents/Headers/Header8/Header8.jsx +888 -0
- package/src1-10/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +710 -0
- package/src1-10/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +769 -0
- package/src1-10/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +666 -0
- package/src1-10/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +940 -0
- package/src1-10/TabexComponents/Headers/Modernheader/Modernheader.jsx +714 -0
- package/src1-10/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +833 -0
- package/src1-10/TabexComponents/Headers/Subheader/Subheader.jsx +239 -0
- package/src1-10/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +312 -0
- package/src1-10/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +278 -0
- package/src1-10/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +129 -0
- package/src1-10/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +153 -0
- package/src1-10/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +295 -0
- package/src1-10/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +409 -0
- package/src1-10/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +793 -0
- package/src1-10/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +486 -0
- package/src1-10/TabexComponents/Sections/Cards/CardsSection7/CardsSection7.js +888 -0
- package/src1-10/TabexComponents/Sections/Cards/CardsSection8/CardsSection8.js +419 -0
- package/src1-10/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +512 -0
- package/src1-10/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +281 -0
- package/src1-10/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +166 -0
- package/src1-10/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +152 -0
- package/src1-10/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +139 -0
- package/src1-10/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +146 -0
- package/src1-10/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +209 -0
- package/src1-10/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +145 -0
- package/src1-10/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +252 -0
- package/src1-10/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +175 -0
- package/src1-10/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +154 -0
- package/src1-10/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +193 -0
- package/src1-10/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +197 -0
- package/src1-10/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.js +91 -0
- package/src1-10/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +309 -0
- package/src1-10/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +260 -0
- package/src1-10/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +459 -0
- package/src1-10/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +216 -0
- package/src1-10/TabexComponents/StaticPages/Checkout/Checkout.jsx +1220 -0
- package/src1-10/TabexComponents/StaticPages/Filter/Filter.jsx +542 -0
- package/src1-10/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +51 -0
- package/src1-10/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +35 -0
- package/src1-10/TabexComponents/StaticPages/Login/Login.jsx +299 -0
- package/src1-10/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.js +192 -0
- package/src1-10/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +1271 -0
- package/src1-10/TabexComponents/StaticPages/Policies/Policies.jsx +353 -0
- package/src1-10/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +1456 -0
- package/src1-10/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +209 -0
- package/src1-10/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +776 -0
- package/src1-10/TabexComponents/StaticPages/Signup/Signup.jsx +157 -0
- package/src1-10/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +285 -0
- package/src1-10/TabexComponents/StaticPages/Viewcart/Viewcart.js +1090 -0
- package/src1-10/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +606 -0
- package/src1-10/assets/images/cod.png +0 -0
- package/src1-10/assets/images/egyptflag.png +0 -0
- package/src1-10/assets/images/fawry.png +0 -0
- package/src1-10/assets/images/payment.png +0 -0
- package/src1-10/assets/images/paymob.png +0 -0
- package/src1-10/assets/images/paypal.png +0 -0
- package/src1-10/assets/images/shoppingcart.png +0 -0
- package/src1-10/assets/images/usflag.png +0 -0
- package/src1-10/assets/images/visa.png +0 -0
- package/src1-10/assets/images/whatsapp.png +0 -0
- package/src1-10/button.jsx +40 -0
- package/src1-10/index.jsx +179 -0
- package/src1-10/styles/Home.module.css +129 -0
- package/src1-10/styles/cards/Categorcycard_fullimage.module.css +10 -0
- package/src1-10/styles/cards/Categorycard_slidebgscaled.module.css +73 -0
- package/src1-10/styles/cards/Categorycard_withshapes.module.css +189 -0
- package/src1-10/styles/cards/Productcard6.module.css +9 -0
- package/src1-10/styles/cards/Productcard_with_circularbg.module.css +137 -0
- package/src1-10/styles/cards/Productccard_with_zoominonhover.module.css +51 -0
- package/src1-10/styles/cards/Prouductcard_with_zoomhover.module.css +61 -0
- package/src1-10/styles/cards/categorycard.module.css +102 -0
- package/src1-10/styles/cards/categorycard3.module.css +51 -0
- package/src1-10/styles/cards/categorycardwithtext.module.css +40 -0
- package/src1-10/styles/cards/productcard_animatedbuttons.module.css +104 -0
- package/src1-10/styles/cards/productcard_with_textonhover.module.css +12 -0
- package/src1-10/styles/cards/productccard_with_imageontopleft.module.css +85 -0
- package/src1-10/styles/general/bootstrap.css +4415 -0
- package/src1-10/styles/general/dropdown.css +199 -0
- package/src1-10/styles/general/editorbardropdown.module.css +94 -0
- package/src1-10/styles/general/filter.module.css +108 -0
- package/src1-10/styles/general/form.module.css +273 -0
- package/src1-10/styles/general/general.module.css +861 -0
- package/src1-10/styles/general/image-gallery.css +481 -0
- package/src1-10/styles/general/react-accessible-accordion.module.css +52 -0
- package/src1-10/styles/general/react-phone-input-2.module.css +927 -0
- package/src1-10/styles/general/scrollbtn.module.css +22 -0
- package/src1-10/styles/general/slick.module.css +166 -0
- package/src1-10/styles/general/tabs.module.css +110 -0
- package/src1-10/styles/general/workplaceeditor.module.css +328 -0
- package/src1-10/styles/globals.css +26 -0
- package/src1-10/styles/headers/Allinoneheader.module.css +91 -0
- package/src1-10/styles/headers/Header7.module.css +50 -0
- package/src1-10/styles/headers/Header_threesectionslogocentered.module.css +97 -0
- package/src1-10/styles/headers/Sideheader.module.css +108 -0
- package/src1-10/styles/headers/classicheaderstyles.module.css +16 -0
- package/src1-10/styles/headers/dropdown.css +0 -0
- package/src1-10/styles/headers/header4.module.css +175 -0
- package/src1-10/styles/headers/header5.module.css +30 -0
- package/src1-10/styles/headers/header6.module.css +117 -0
- package/src1-10/styles/headers/header_contactinfo.module.css +78 -0
- package/src1-10/styles/headers/headerresturant.module.css +89 -0
- package/src1-10/styles/headers/headerstyles.module.css +24 -0
- package/src1-10/styles/headers/modernheader.module.css +78 -0
- package/src1-10/styles/headers/subheader.module.css +114 -0
- package/src1-10/styles/sections/Backgroundimage1.module.css +17 -0
- package/src1-10/styles/sections/Backgroundimage_with_topcircle.module.css +28 -0
- package/src1-10/styles/sections/Section_with_rightbgcont.module.css +49 -0
- package/src1-10/styles/sections/Slideshow_with_rotatedsquare.module.css +35 -0
- package/src1-10/styles/sections/Slideshow_with_squarebg.module.css +39 -0
- package/src1-10/styles/staticpages/accordion.module.css +9 -0
- package/src1-10/styles/staticpages/cart.module.css +108 -0
- package/src1-10/styles/staticpages/dropdown.css +196 -0
- package/src1-10/styles/staticpages/filter.module.css +139 -0
- package/src1-10/styles/staticpages/login.module.css +146 -0
- package/src1-10/styles/staticpages/productinfo.module.css +54 -0
- package/src1-10/styles/staticpages/shop.module.css +191 -0
- package/src1-10/styles/staticpages/signup.module.css +206 -0
- package/src1-10/styles/staticpages/staticroutersidenav.module.css +129 -0
- package/src1-10/styles/staticpages/viewcart.module.css +129 -0
- package/src1-10/styles/staticpages/wishlist.module.css +29 -0
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
import React, { useEffect, useState, useContext } from 'react';
|
|
2
|
+
import generalstyles from '../../../styles/general/general.module.css';
|
|
3
|
+
import tabstyles from '../../../styles/general/tabs.module.css';
|
|
4
|
+
import { css } from 'glamor';
|
|
5
|
+
import Staticpagesrouter from '../Staticpagesrouter/Staticpagesrouter.jsx';
|
|
6
|
+
import { IKImage } from 'imagekitio-react';
|
|
7
|
+
import { IKpublicKey, IKurlEndpoint } from '../../../../Env';
|
|
8
|
+
const Policies = (props) => {
|
|
9
|
+
const [sectionproperties, setsectionproperties] = useState('');
|
|
10
|
+
const [policychoosedindex, setpolicychoosedindex] = useState('');
|
|
11
|
+
const templatepropcontext = props.actions.templatepropcontext;
|
|
12
|
+
const fetchInstitutePoliciesQueryContext = props.actions.fetchInstitutePoliciesQueryContext;
|
|
13
|
+
const FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
|
|
14
|
+
const setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
|
|
15
|
+
const navigationstyle = props.actions.navigationstyle;
|
|
16
|
+
const lang = props.actions.lang;
|
|
17
|
+
const langdetect = props.actions.langdetect;
|
|
18
|
+
const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
19
|
+
const TabexSectionsComponentsContext = props.actions.TabexSectionsComponentsContext;
|
|
20
|
+
const pageindexcontext = props.actions.pageindexcontext;
|
|
21
|
+
const actions = props.actions;
|
|
22
|
+
const [CurrentPageId, setCurrentPageId] = useState('');
|
|
23
|
+
|
|
24
|
+
useEffect(() => {
|
|
25
|
+
if (Object.keys(StatePagePropertiesContext).length != 0) {
|
|
26
|
+
var secpropobj = {};
|
|
27
|
+
StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
28
|
+
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
setsectionproperties({ ...secpropobj });
|
|
32
|
+
}
|
|
33
|
+
}, [StatePagePropertiesContext]);
|
|
34
|
+
|
|
35
|
+
useEffect(() => {
|
|
36
|
+
var cartindex = templatepropcontext?.pagesnprop?.findIndex((x) => x.staticpageid == '6218bccb85eae');
|
|
37
|
+
if (cartindex >= 0) {
|
|
38
|
+
setCurrentPageId(cartindex);
|
|
39
|
+
}
|
|
40
|
+
}, []);
|
|
41
|
+
useEffect(() => {
|
|
42
|
+
var secpropobj = {};
|
|
43
|
+
templatepropcontext?.pagesnprop[CurrentPageId]?.pageproperties?.forEach(function (arrayItem, arrayindex) {
|
|
44
|
+
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
45
|
+
});
|
|
46
|
+
setsectionproperties({ ...secpropobj });
|
|
47
|
+
}, [CurrentPageId]);
|
|
48
|
+
|
|
49
|
+
useEffect(() => {
|
|
50
|
+
var tempFetchQueriesEngineContext = { ...FetchQueriesEngineContext };
|
|
51
|
+
tempFetchQueriesEngineContext.fetchinstitutepolicy = true;
|
|
52
|
+
setFetchQueriesEngineContext({ ...tempFetchQueriesEngineContext });
|
|
53
|
+
}, []);
|
|
54
|
+
const [bgimagesarray, setbgimagesarray] = useState([]);
|
|
55
|
+
useEffect(() => {
|
|
56
|
+
if (sectionproperties.length != 0) {
|
|
57
|
+
if (sectionproperties.arrayofobjectimagesonly != null) {
|
|
58
|
+
var arrayofobjectimagesonlyparsed = JSON.parse(sectionproperties.arrayofobjectimagesonly);
|
|
59
|
+
if (Array.isArray(arrayofobjectimagesonlyparsed)) {
|
|
60
|
+
setbgimagesarray([...arrayofobjectimagesonlyparsed]);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}, [sectionproperties]);
|
|
65
|
+
useEffect(() => {
|
|
66
|
+
setpolicychoosedindex(0);
|
|
67
|
+
}, []);
|
|
68
|
+
|
|
69
|
+
const policies_cssstyles = {
|
|
70
|
+
tabsli: css({
|
|
71
|
+
color: sectionproperties.tabtextcolor,
|
|
72
|
+
transition: '.3s',
|
|
73
|
+
':hover': {
|
|
74
|
+
color: sectionproperties.cardtitle_coloronhover,
|
|
75
|
+
borderTop: '3px solid ',
|
|
76
|
+
borderColor: sectionproperties.cardtitle_coloronhover,
|
|
77
|
+
},
|
|
78
|
+
}),
|
|
79
|
+
tabsliactive: css({
|
|
80
|
+
borderTop: '3px solid ',
|
|
81
|
+
borderColor: sectionproperties.activetabbordercolor,
|
|
82
|
+
}),
|
|
83
|
+
sectiontitlespan: css({
|
|
84
|
+
':after': {
|
|
85
|
+
width: sectionproperties.sectitle_lineafterwidth + '%',
|
|
86
|
+
backgroundColor: sectionproperties.linebgcolor,
|
|
87
|
+
},
|
|
88
|
+
}),
|
|
89
|
+
sectiontitlespan2: css({
|
|
90
|
+
':after': {
|
|
91
|
+
width: sectionproperties.sectitle_lineafterwidth + 'px',
|
|
92
|
+
height: '100%',
|
|
93
|
+
backgroundColor: sectionproperties.linebgcolor,
|
|
94
|
+
},
|
|
95
|
+
}),
|
|
96
|
+
};
|
|
97
|
+
return (
|
|
98
|
+
<div
|
|
99
|
+
className={'row m-0 w-100 d-flex justify-content-center'}
|
|
100
|
+
style={{
|
|
101
|
+
backgroundColor: sectionproperties.backgroundColor,
|
|
102
|
+
}}
|
|
103
|
+
>
|
|
104
|
+
{sectionproperties.showbgimage == 'Show' && (
|
|
105
|
+
<div className="col-lg-12 p-0 d-flex justify-content-center">
|
|
106
|
+
<div
|
|
107
|
+
style={{
|
|
108
|
+
width: sectionproperties.image_width + 'vw',
|
|
109
|
+
height: sectionproperties.image_height + 'vh',
|
|
110
|
+
marginBottom: sectionproperties.image_mb + 'px',
|
|
111
|
+
position: 'relative',
|
|
112
|
+
}}
|
|
113
|
+
>
|
|
114
|
+
<IKImage
|
|
115
|
+
urlEndpoint={IKurlEndpoint}
|
|
116
|
+
publicKey={IKpublicKey}
|
|
117
|
+
path={
|
|
118
|
+
bgimagesarray.length != 0
|
|
119
|
+
? langdetect == 'en'
|
|
120
|
+
? '/tr:w-3500,h-650/' + bgimagesarray[0]?.bgsection_image
|
|
121
|
+
: '/tr:w-3500,h-650/' + bgimagesarray[0]?.bgsection_image_ar
|
|
122
|
+
: ''
|
|
123
|
+
}
|
|
124
|
+
style={{
|
|
125
|
+
height: '100%',
|
|
126
|
+
width: '100%',
|
|
127
|
+
// objectFit: 'cover',
|
|
128
|
+
margin: 0,
|
|
129
|
+
padding: 0,
|
|
130
|
+
background: sectionproperties.image_bgcolor,
|
|
131
|
+
borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
|
|
132
|
+
borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
|
|
133
|
+
borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
134
|
+
borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
|
|
135
|
+
zIndex: -1,
|
|
136
|
+
// transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)',
|
|
137
|
+
}}
|
|
138
|
+
/>
|
|
139
|
+
<div
|
|
140
|
+
className={' col-lg-12 p-0 w-100 d-flex align-items-center justify-content-center '}
|
|
141
|
+
style={{
|
|
142
|
+
position: 'absolute',
|
|
143
|
+
top: 0,
|
|
144
|
+
right: 0,
|
|
145
|
+
bottom: 0,
|
|
146
|
+
left: 0,
|
|
147
|
+
}}
|
|
148
|
+
>
|
|
149
|
+
<p
|
|
150
|
+
className={' m-0 p-0 '}
|
|
151
|
+
style={{
|
|
152
|
+
fontSize: sectionproperties.imagetextfontsize + 'px',
|
|
153
|
+
color: sectionproperties.imagetextcolor,
|
|
154
|
+
textTransform: sectionproperties.imagetexttextTransform,
|
|
155
|
+
fontWeight: sectionproperties.imagetextfontWeight,
|
|
156
|
+
}}
|
|
157
|
+
>
|
|
158
|
+
{lang.policies}
|
|
159
|
+
</p>
|
|
160
|
+
</div>
|
|
161
|
+
</div>
|
|
162
|
+
</div>
|
|
163
|
+
)}
|
|
164
|
+
<div className="col-lg-12 p-0">
|
|
165
|
+
<div
|
|
166
|
+
className="row m-0 w-100 pl-md-3 pr-md-3 pl-sm-2 pr-sm-2"
|
|
167
|
+
style={{
|
|
168
|
+
marginTop: sectionproperties.marginTop + 'px',
|
|
169
|
+
marginBottom: sectionproperties.marginBottom + 'px',
|
|
170
|
+
paddingLeft: sectionproperties.paddingLeft + 'px',
|
|
171
|
+
paddingRight: sectionproperties.paddingRight + 'px',
|
|
172
|
+
paddingTop: sectionproperties.paddingTop + 'px',
|
|
173
|
+
paddingBottom: sectionproperties.paddingBottom + 'px',
|
|
174
|
+
borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
|
|
175
|
+
borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
|
|
176
|
+
borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
|
|
177
|
+
borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
|
|
178
|
+
borderColor: sectionproperties.sectioncardbordercolor,
|
|
179
|
+
border: sectionproperties.sectioncardborderwidth + 'px solid',
|
|
180
|
+
}}
|
|
181
|
+
>
|
|
182
|
+
<div className={navigationstyle == 'Side Navigation' ? 'col-lg-3 pl-0 w-100 p-md-0' : 'col-lg-12 w-100 p-md-0'}>
|
|
183
|
+
<Staticpagesrouter currentpageprops={'Policies'} actions={actions} />
|
|
184
|
+
</div>
|
|
185
|
+
<div className={navigationstyle == 'Side Navigation' ? 'col-lg-9 pr-0 p-md-0' : 'col-lg-12 p-md-0'}>
|
|
186
|
+
<div className="row m-0 w-100">
|
|
187
|
+
{navigationstyle == 'Side Navigation' && (
|
|
188
|
+
<div className="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0">
|
|
189
|
+
<div className={`${generalstyles.sectiontitlecont} `}>
|
|
190
|
+
{sectionproperties.sectiontitlestyle == 'Line Under Text' && (
|
|
191
|
+
<div className="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0">
|
|
192
|
+
<div className={`${generalstyles.sectiontitlecont} `}>
|
|
193
|
+
<div
|
|
194
|
+
className={' col-lg-12 d-flex align-items-center p-0'}
|
|
195
|
+
style={{
|
|
196
|
+
justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
|
|
197
|
+
marginTop: sectionproperties.sectionTitleMarginTop + 'px',
|
|
198
|
+
marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
|
|
199
|
+
marginLeft: sectionproperties.sectionTitleMarginLeft + 'px',
|
|
200
|
+
marginRight: sectionproperties.sectionTitleMarginRight + 'px',
|
|
201
|
+
}}
|
|
202
|
+
>
|
|
203
|
+
<span
|
|
204
|
+
className={`${policies_cssstyles.sectiontitlespan}`}
|
|
205
|
+
style={{
|
|
206
|
+
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
207
|
+
color: sectionproperties.sectionTitleColor,
|
|
208
|
+
|
|
209
|
+
textTransform: sectionproperties.sectionTitleTextTransform,
|
|
210
|
+
fontWeight: sectionproperties.sectionTitleFontWeight,
|
|
211
|
+
}}
|
|
212
|
+
>
|
|
213
|
+
{lang.policies}
|
|
214
|
+
</span>
|
|
215
|
+
</div>
|
|
216
|
+
</div>
|
|
217
|
+
</div>
|
|
218
|
+
)}
|
|
219
|
+
{sectionproperties.sectiontitlestyle == 'Line Before Text' && (
|
|
220
|
+
<div
|
|
221
|
+
className="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0"
|
|
222
|
+
style={{
|
|
223
|
+
justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
|
|
224
|
+
}}
|
|
225
|
+
>
|
|
226
|
+
<div
|
|
227
|
+
className={`${generalstyles.sectiontitlecont2}`}
|
|
228
|
+
style={{
|
|
229
|
+
marginTop: sectionproperties.sectionTitleMarginTop + 'px',
|
|
230
|
+
marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
|
|
231
|
+
marginLeft: sectionproperties.sectionTitleMarginLeft + 'px',
|
|
232
|
+
marginRight: sectionproperties.sectionTitleMarginRight + 'px',
|
|
233
|
+
}}
|
|
234
|
+
>
|
|
235
|
+
<span
|
|
236
|
+
className={`${policies_cssstyles.sectiontitlespan2}` + ' pl-3 '}
|
|
237
|
+
style={{
|
|
238
|
+
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
239
|
+
color: sectionproperties.sectionTitleColor,
|
|
240
|
+
textTransform: sectionproperties.sectionTitleTextTransform,
|
|
241
|
+
fontWeight: sectionproperties.sectionTitleFontWeight,
|
|
242
|
+
}}
|
|
243
|
+
>
|
|
244
|
+
{lang.policies}
|
|
245
|
+
</span>
|
|
246
|
+
</div>
|
|
247
|
+
</div>
|
|
248
|
+
)}
|
|
249
|
+
</div>
|
|
250
|
+
</div>
|
|
251
|
+
)}
|
|
252
|
+
<div className={'col-lg-12 p-0'}>
|
|
253
|
+
{fetchInstitutePoliciesQueryContext.isFetching && (
|
|
254
|
+
<div className="w-100 row m-0 w-100 d-flex align-items-center justify-content-center" style={{ height: '20vh' }}>
|
|
255
|
+
{/* <Pagepreloader /> */}
|
|
256
|
+
</div>
|
|
257
|
+
)}
|
|
258
|
+
{!fetchInstitutePoliciesQueryContext.isFetching && fetchInstitutePoliciesQueryContext.isSuccess && (
|
|
259
|
+
<div className="w-100 row m-0">
|
|
260
|
+
<div className="col-lg-12 p-0">
|
|
261
|
+
<div className={`${tabstyles.tabs} ${tabstyles.policiestabs}` + ' w-100 p-0 '}>
|
|
262
|
+
<ul
|
|
263
|
+
className={`${tabstyles.tabsul}` + ' m-0 p-0 '}
|
|
264
|
+
style={{ background: sectionproperties.tabcontainerbgcolor, borderRadius: sectionproperties.tabcontainerborderradius + 'px' }}
|
|
265
|
+
>
|
|
266
|
+
{fetchInstitutePoliciesQueryContext.data.data.policies.map((item, index) => {
|
|
267
|
+
var activeclass = '';
|
|
268
|
+
if (index == policychoosedindex) {
|
|
269
|
+
activeclass = policies_cssstyles.tabsliactive;
|
|
270
|
+
}
|
|
271
|
+
return (
|
|
272
|
+
<li
|
|
273
|
+
className={
|
|
274
|
+
index == policychoosedindex
|
|
275
|
+
? `${tabstyles.tabsli} ${policies_cssstyles.tabsli} ${policies_cssstyles.tabsliactive}`
|
|
276
|
+
: `${tabstyles.tabsli} ${policies_cssstyles.tabsli}`
|
|
277
|
+
}
|
|
278
|
+
onClick={() => {
|
|
279
|
+
setpolicychoosedindex(index);
|
|
280
|
+
}}
|
|
281
|
+
>
|
|
282
|
+
<label role="button" className={policies_cssstyles.labelname + ' d-flex align-items-center m-0 w-md-100 '}>
|
|
283
|
+
<span
|
|
284
|
+
className="pt-2 pb-2"
|
|
285
|
+
style={{
|
|
286
|
+
textTransform: sectionproperties.tabtexttexttransform,
|
|
287
|
+
fontWeight: sectionproperties.tabtextfontweight,
|
|
288
|
+
fontSize: sectionproperties.tabtextfontsize + 'px',
|
|
289
|
+
color: index == policychoosedindex ? sectionproperties.tabtextactivecolor : sectionproperties.tabtextcolor,
|
|
290
|
+
transition: '.3s',
|
|
291
|
+
}}
|
|
292
|
+
>
|
|
293
|
+
{langdetect == 'en' ? item.policypagename_en : item.policypagename_ar}
|
|
294
|
+
</span>
|
|
295
|
+
</label>
|
|
296
|
+
</li>
|
|
297
|
+
);
|
|
298
|
+
})}
|
|
299
|
+
</ul>
|
|
300
|
+
</div>
|
|
301
|
+
</div>
|
|
302
|
+
<div className="col-lg-12 mt-3" style={{ background: 'white', borderRadius: '10px' }}>
|
|
303
|
+
{policychoosedindex.length != 0 && langdetect == 'en' && (
|
|
304
|
+
<div
|
|
305
|
+
className="w-100 mt-3"
|
|
306
|
+
dangerouslySetInnerHTML={{ __html: fetchInstitutePoliciesQueryContext.data.data.policies[policychoosedindex].policycontent_en }}
|
|
307
|
+
></div>
|
|
308
|
+
)}
|
|
309
|
+
{policychoosedindex.length != 0 && langdetect == 'ar' && (
|
|
310
|
+
<div
|
|
311
|
+
className="w-100 mt-3"
|
|
312
|
+
dangerouslySetInnerHTML={{ __html: fetchInstitutePoliciesQueryContext.data.data.policies[policychoosedindex].policycontent_ar }}
|
|
313
|
+
></div>
|
|
314
|
+
)}
|
|
315
|
+
</div>
|
|
316
|
+
</div>
|
|
317
|
+
)}
|
|
318
|
+
</div>
|
|
319
|
+
</div>
|
|
320
|
+
</div>
|
|
321
|
+
</div>
|
|
322
|
+
</div>
|
|
323
|
+
|
|
324
|
+
<div className="col-lg-12 d-flex align-items-center justify-content-center p-0">
|
|
325
|
+
{/* {pageindexcontext.length != 0 && Object.keys(StatePagePropertiesContext).length != 0 && (
|
|
326
|
+
<div className={generalstyles.app_container + ' w-100 '} style={{ position: 'relative' }}>
|
|
327
|
+
{StatePagePropertiesContext.pageobj.sections.map((item, index) => {
|
|
328
|
+
if (item.tabexsectioninfo != null && TabexSectionsComponentsContext[item.tabexsectioninfo.sectioncompname] != undefined && item.componenttype == 'section') {
|
|
329
|
+
var sectioncomp = TabexSectionsComponentsContext[item.tabexsectioninfo.sectioncompname];
|
|
330
|
+
return (
|
|
331
|
+
<div className="row w-100 ml-0 mr-0 d-flex justify-content-center">
|
|
332
|
+
{item.tabexsectioninfo.sectiontype == 'Cards' && (
|
|
333
|
+
<ProductsCardsSectionContext_Provider>
|
|
334
|
+
{React.createElement(sectioncomp, {
|
|
335
|
+
sectionidprops: item.sectionid,
|
|
336
|
+
sectionindexprops: index,
|
|
337
|
+
srcfromprops: 'GeneralProductsComponent',
|
|
338
|
+
collectionidprops: collectionidparams,
|
|
339
|
+
})}
|
|
340
|
+
</ProductsCardsSectionContext_Provider>
|
|
341
|
+
)}
|
|
342
|
+
{item.tabexsectioninfo.sectiontype != 'Cards' && React.createElement(sectioncomp, { sectionidprops: item.sectionid, sectionindexprops: index })}
|
|
343
|
+
</div>
|
|
344
|
+
);
|
|
345
|
+
}
|
|
346
|
+
})}
|
|
347
|
+
</div>
|
|
348
|
+
)} */}
|
|
349
|
+
</div>
|
|
350
|
+
</div>
|
|
351
|
+
);
|
|
352
|
+
};
|
|
353
|
+
export default Policies;
|