tabexseriescomponents 0.0.73 → 0.0.75
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 +337 -225
- package/dist/index.esm.js +343 -231
- package/dist/index.umd.js +340 -229
- package/package.json +1 -1
- package/src-aya/Contexts/LanguageContext.jsx +0 -369
- package/src-aya/Contexts/ProductsCardsSectionContext.jsx +0 -28
- package/src-aya/StylesJS/Customstyles.js +0 -235
- package/src-aya/TabexComponents/Cards/Card20/Card20.jsx +0 -288
- package/src-aya/TabexComponents/Cards/Card21/Card21.jsx +0 -386
- package/src-aya/TabexComponents/Cards/Card22/Card22.jsx +0 -289
- package/src-aya/TabexComponents/Cards/Card23/Card23.jsx +0 -355
- package/src-aya/TabexComponents/Cards/CardBadgeSlideFromTop/CardBadgeSlideFromTop.jsx +0 -393
- package/src-aya/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +0 -168
- package/src-aya/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +0 -243
- package/src-aya/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +0 -202
- package/src-aya/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +0 -174
- package/src-aya/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +0 -182
- package/src-aya/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +0 -158
- package/src-aya/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +0 -189
- package/src-aya/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +0 -150
- package/src-aya/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +0 -271
- package/src-aya/TabexComponents/Cards/MenuCard/MenuCard.jsx +0 -538
- package/src-aya/TabexComponents/Cards/ModernCardWithQuantityButton/ModernCardWithQuantityButton.jsx +0 -491
- package/src-aya/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +0 -469
- package/src-aya/TabexComponents/Cards/Productcard6/Productcard6.jsx +0 -257
- package/src-aya/TabexComponents/Cards/Productcard7/Productcard7.jsx +0 -272
- package/src-aya/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +0 -295
- package/src-aya/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +0 -289
- package/src-aya/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +0 -315
- package/src-aya/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +0 -288
- package/src-aya/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +0 -328
- package/src-aya/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +0 -509
- package/src-aya/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +0 -272
- package/src-aya/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +0 -286
- package/src-aya/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +0 -133
- package/src-aya/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +0 -125
- package/src-aya/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +0 -292
- package/src-aya/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +0 -336
- package/src-aya/TabexComponents/Footer/Allinonefooter/Allinonefooter.jsx +0 -429
- package/src-aya/TabexComponents/Footer/Footer1/Footer1.jsx +0 -416
- package/src-aya/TabexComponents/Footer/Footer2/Footer2.jsx +0 -381
- package/src-aya/TabexComponents/Footer/Footer3/Footer3.jsx +0 -302
- package/src-aya/TabexComponents/Footer/Footer4/Footer4.jsx +0 -437
- package/src-aya/TabexComponents/Footer/Footer5/Footer5.jsx +0 -488
- package/src-aya/TabexComponents/Footer/Footer6/Footer6.jsx +0 -286
- package/src-aya/TabexComponents/Footer/Footer7/Footer7.jsx +0 -370
- package/src-aya/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +0 -231
- package/src-aya/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
- package/src-aya/TabexComponents/Generalfiles/images/noimage.png +0 -0
- package/src-aya/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
- package/src-aya/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
- package/src-aya/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
- package/src-aya/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
- package/src-aya/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
- package/src-aya/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
- package/src-aya/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
- package/src-aya/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
- package/src-aya/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
- package/src-aya/TabexComponents/Generalfiles/images/usflag.png +0 -0
- package/src-aya/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
- package/src-aya/TabexComponents/Headers/CTAHeader/CTAHeader.jsx +0 -822
- package/src-aya/TabexComponents/Headers/CategoryFeaturingHeader/CategoryFeaturingHeader.jsx +0 -841
- package/src-aya/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +0 -677
- package/src-aya/TabexComponents/Headers/Gotoheader/Gotoheader.jsx +0 -707
- package/src-aya/TabexComponents/Headers/Header4/Header4.jsx +0 -614
- package/src-aya/TabexComponents/Headers/Header6/Header6.jsx +0 -631
- package/src-aya/TabexComponents/Headers/Header8/Header8.jsx +0 -815
- package/src-aya/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +0 -709
- package/src-aya/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +0 -770
- package/src-aya/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +0 -669
- package/src-aya/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +0 -919
- package/src-aya/TabexComponents/Headers/Modernheader/Modernheader.jsx +0 -687
- package/src-aya/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +0 -813
- package/src-aya/TabexComponents/Headers/Subheader/Subheader.jsx +0 -248
- package/src-aya/TabexComponents/Headers/ThreeTieredHeader/ThreeTieredHeader.jsx +0 -926
- package/src-aya/TabexComponents/Sections/BackgroundImages/BacgroundThreeImageWithCategories/BacgroundThreeImageWithCategories.jsx +0 -168
- package/src-aya/TabexComponents/Sections/BackgroundImages/BackgroundFiveImageStructure/BackgroundFiveImageStructure.jsx +0 -346
- package/src-aya/TabexComponents/Sections/BackgroundImages/BackgroundImageWithTopContent/BackgroundImageWithTopContent.jsx +0 -304
- package/src-aya/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +0 -312
- package/src-aya/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +0 -271
- package/src-aya/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +0 -130
- package/src-aya/TabexComponents/Sections/BackgroundImages/Bgimagewithsearchbar/Bgimagewithsearchbar.jsx +0 -200
- package/src-aya/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +0 -153
- package/src-aya/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +0 -295
- package/src-aya/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +0 -409
- package/src-aya/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +0 -768
- package/src-aya/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +0 -483
- package/src-aya/TabexComponents/Sections/Cards/CardsSection7/CardsSection7.jsx +0 -663
- package/src-aya/TabexComponents/Sections/Cards/CardsSection8/CardsSection8.js +0 -419
- package/src-aya/TabexComponents/Sections/Cards/Cardsection10/Arrows.js +0 -94
- package/src-aya/TabexComponents/Sections/Cards/Cardsection10/Cardsection10.js +0 -741
- package/src-aya/TabexComponents/Sections/Cards/Cardsection100/Cardsection10.js +0 -430
- package/src-aya/TabexComponents/Sections/Cards/Cardsection100/burger.jpg +0 -0
- package/src-aya/TabexComponents/Sections/Cards/ElegantCategoriesCardSection/ElegantCategoriesCardSection.jsx +0 -473
- package/src-aya/TabexComponents/Sections/Cards/ModernCardsSection/ModernCardsSection.jsx +0 -523
- package/src-aya/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +0 -502
- package/src-aya/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +0 -276
- package/src-aya/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +0 -160
- package/src-aya/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +0 -176
- package/src-aya/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +0 -139
- package/src-aya/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +0 -140
- package/src-aya/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +0 -201
- package/src-aya/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +0 -125
- package/src-aya/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +0 -226
- package/src-aya/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +0 -149
- package/src-aya/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +0 -139
- package/src-aya/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +0 -215
- package/src-aya/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +0 -202
- package/src-aya/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.js +0 -91
- package/src-aya/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +0 -277
- package/src-aya/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +0 -260
- package/src-aya/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +0 -458
- package/src-aya/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +0 -216
- package/src-aya/TabexComponents/StaticPages/Checkout/Checkout.jsx +0 -1220
- package/src-aya/TabexComponents/StaticPages/Filter/Filter.jsx +0 -542
- package/src-aya/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +0 -51
- package/src-aya/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +0 -35
- package/src-aya/TabexComponents/StaticPages/Login/Login.jsx +0 -283
- package/src-aya/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.js +0 -192
- package/src-aya/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +0 -1271
- package/src-aya/TabexComponents/StaticPages/Policies/Policies.jsx +0 -353
- package/src-aya/TabexComponents/StaticPages/Productinfo/Iteminfo.js +0 -1287
- package/src-aya/TabexComponents/StaticPages/Productinfo/Productinfo.js +0 -710
- package/src-aya/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +0 -1457
- package/src-aya/TabexComponents/StaticPages/Productinfo/Serviceinfo.js +0 -804
- package/src-aya/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +0 -206
- package/src-aya/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +0 -791
- package/src-aya/TabexComponents/StaticPages/Signup/Signup.jsx +0 -155
- package/src-aya/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +0 -279
- package/src-aya/TabexComponents/StaticPages/Viewcart/Viewcart.jsx +0 -1048
- package/src-aya/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +0 -606
- package/src-aya/assets/images/appstore.png +0 -0
- package/src-aya/assets/images/cod.png +0 -0
- package/src-aya/assets/images/egyptflag.png +0 -0
- package/src-aya/assets/images/fawry.png +0 -0
- package/src-aya/assets/images/googleplay.png +0 -0
- package/src-aya/assets/images/payment.png +0 -0
- package/src-aya/assets/images/paymob.png +0 -0
- package/src-aya/assets/images/paypal.png +0 -0
- package/src-aya/assets/images/shoppingcart.png +0 -0
- package/src-aya/assets/images/usflag.png +0 -0
- package/src-aya/assets/images/visa.png +0 -0
- package/src-aya/assets/images/whatsapp.png +0 -0
- package/src-aya/button.jsx +0 -40
- package/src-aya/index.jsx +0 -222
- package/src-aya/styles/Home.module.css +0 -129
- package/src-aya/styles/cards/Categorcycard_fullimage.module.css +0 -10
- package/src-aya/styles/cards/Categorycard_slidebgscaled.module.css +0 -73
- package/src-aya/styles/cards/Categorycard_withshapes.module.css +0 -189
- package/src-aya/styles/cards/ModernCardWithQuantityButton.module.css +0 -34
- package/src-aya/styles/cards/Productcard6.module.css +0 -9
- package/src-aya/styles/cards/Productcard_with_circularbg.module.css +0 -137
- package/src-aya/styles/cards/Productccard_with_zoominonhover.module.css +0 -51
- package/src-aya/styles/cards/Prouductcard_with_zoomhover.module.css +0 -61
- package/src-aya/styles/cards/categorycard.module.css +0 -85
- package/src-aya/styles/cards/categorycard3.module.css +0 -50
- package/src-aya/styles/cards/categorycardwithtext.module.css +0 -40
- package/src-aya/styles/cards/productcard_animatedbuttons.module.css +0 -127
- package/src-aya/styles/cards/productcard_with_textonhover.module.css +0 -12
- package/src-aya/styles/cards/productccard_with_imageontopleft.module.css +0 -85
- package/src-aya/styles/general/bootstrap.css +0 -4562
- package/src-aya/styles/general/dropdown.css +0 -206
- package/src-aya/styles/general/editorbardropdown.module.css +0 -94
- package/src-aya/styles/general/filter.module.css +0 -108
- package/src-aya/styles/general/form.module.css +0 -273
- package/src-aya/styles/general/general.module.css +0 -861
- package/src-aya/styles/general/image-gallery.css +0 -481
- package/src-aya/styles/general/react-accessible-accordion.module.css +0 -52
- package/src-aya/styles/general/react-phone-input-2.module.css +0 -927
- package/src-aya/styles/general/scrollbtn.module.css +0 -22
- package/src-aya/styles/general/slick.module.css +0 -166
- package/src-aya/styles/general/tabs.module.css +0 -110
- package/src-aya/styles/general/workplaceeditor.module.css +0 -328
- package/src-aya/styles/globals.css +0 -26
- package/src-aya/styles/headers/CTAHeader.module.css +0 -40
- package/src-aya/styles/headers/CategoryFeaturingHeader.module.css +0 -61
- package/src-aya/styles/headers/Gotoheader.module.css +0 -91
- package/src-aya/styles/headers/Header7.module.css +0 -50
- package/src-aya/styles/headers/Header_threesectionslogocentered.module.css +0 -96
- package/src-aya/styles/headers/Sideheader.module.css +0 -108
- package/src-aya/styles/headers/classicheader.module.css +0 -16
- package/src-aya/styles/headers/classicheaderstyles.module.css +0 -16
- package/src-aya/styles/headers/dropdown.css +0 -0
- package/src-aya/styles/headers/header4.module.css +0 -175
- package/src-aya/styles/headers/header5.module.css +0 -30
- package/src-aya/styles/headers/header6.module.css +0 -102
- package/src-aya/styles/headers/header_contactinfo.module.css +0 -66
- package/src-aya/styles/headers/headerresturant.module.css +0 -89
- package/src-aya/styles/headers/modernheader.module.css +0 -72
- package/src-aya/styles/headers/stylishheader.module.css +0 -24
- package/src-aya/styles/headers/subheader.module.css +0 -114
- package/src-aya/styles/headers/threetieredheader.module.css +0 -91
- package/src-aya/styles/sections/BackgroundImageWithTopContent.css +0 -4
- package/src-aya/styles/sections/Backgroundimage1.module.css +0 -17
- package/src-aya/styles/sections/Backgroundimage_with_topcircle.module.css +0 -28
- package/src-aya/styles/sections/Section_with_rightbgcont.module.css +0 -49
- package/src-aya/styles/sections/Slideshow_with_rotatedsquare.module.css +0 -35
- package/src-aya/styles/sections/Slideshow_with_squarebg.module.css +0 -39
- package/src-aya/styles/staticpages/accordion.module.css +0 -9
- package/src-aya/styles/staticpages/cart.module.css +0 -108
- package/src-aya/styles/staticpages/dropdown.css +0 -196
- package/src-aya/styles/staticpages/filter.module.css +0 -139
- package/src-aya/styles/staticpages/image-gallery.css +0 -481
- package/src-aya/styles/staticpages/login.module.css +0 -113
- package/src-aya/styles/staticpages/productinfo.module.css +0 -54
- package/src-aya/styles/staticpages/shop.module.css +0 -191
- package/src-aya/styles/staticpages/signup.module.css +0 -206
- package/src-aya/styles/staticpages/staticroutersidenav.module.css +0 -129
- package/src-aya/styles/staticpages/viewcart.module.css +0 -129
- package/src-aya/styles/staticpages/wishlist.module.css +0 -29
- package/src-aya/styles.rar +0 -0
|
@@ -1,353 +0,0 @@
|
|
|
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;
|