{"version":3,"sources":["assets/red-pay-logo-xxx.png","hooks/cart.hook.js","store/actions/user.actions.js","components/login/index.js","store/reducers/cart.reducer.js","store/reducers/user.reducer.js","store/reducers/settings.reducer.js","store/reducers/index.js","store/index.js","services/service.js","services/register.service.js","Helper/helper.js","services/metaPixel.service.js","components/register/index.js","components/itemPurchaseDetails/index.js","components/itemPurchase/index.js","components/boxPayMethod/itemPayMethod/index.js","components/boxPayMethod/index.js","components/asidePurchase/index.js","components/header/index.js","components/footer/index.js","components/blockScreen/index.js","hooks/shouldShowPrompt.js","hooks/iosInstallPrompt.js","hooks/webInstallPrompt.js","components/pwa/installPWA.js","components/whatsAppButton/index.js","store/actions/settings.actions.js","views/Layout.js","components/hubItemProvider/index.js","components/hubContainer/index.js","services/coupon.service.js","components/couponsSlider/couponsSlider.js","components/sliderProvider/sliderItemProvider/index.js","components/sliderProvider/index.js","components/formEmbassador/formEmbassador.js","components/wrapperProviderIndividual/itemProviderIndividual/index.js","components/wrapperProviderIndividual/index.js","components/wrapperBullets/index.js","components/sliderHome/index.js","views/Home.js","components/favoriteCheck/index.js","components/providers/headerProviders.js","components/validations/modalError.js","components/providers/providersRecharge.js","components/videoProvider/index.js","components/asideProvider/index.js","components/itemProduct/index.js","components/containProvider/index.js","components/providers/providersCoupons.js","components/validations/modalSuccess.js","components/providers/providersServices.js","components/providers/index.js","views/Provider.js","components/purchasedItemDetails/index.js","components/purchasedItem/index.js","components/shoppingHistoryWrapper/index.js","views/ShoppingHistory.js","views/NoticePrivacy.js","views/TermsAndConditions.js","views/ResetPassword.js","views/ForgotPassword.js","views/ConfirmedAccount.js","views/PaymentCanceled.js","views/PurchaseOrderDetail.js","components/paymentMethod/BasePaymentMethod.js","services/verificationCard.service.js","services/subscription.service.js","components/cardRegistrationItem/cardRegistrationItem.js","services/country.service.js","components/paymentMethod/RedPay/redpay.js","views/PaymentMethod.js","services/paymentMethod.service.js","components/cardRegistration/cardRegistration.js","components/cardVerification/cardVerification.js","App.js","registerServiceWorker.js","index.js"],"names":["module","exports","cartHook","addItem","onChangeQuantity","deleteItem","deleteItemDetail","getItems","rechargeProducts","products","reference","isSaveReference","Name","push","JSON","parse","localStorage","map","provider","Items","itemtemp","item","ProductId","UrlImage","ProductPrice","Price","Cant","Quantity","ProductCode","Code","Description","Descripcion","ProviderId","subscriptionProductsId","subscriptionProducts","filter","a","includes","length","clean","product","cartItems","totalItems","parseFloat","urlLogoClrs","proveedorId","Total","Reference","undefined","foundProvider","find","p","isNew","foundProduct","itemProvider","ProviderName","providerName","Logo","$","click","stringify","providerId","productId","value","cart","total","getUser","dispatch","fetch","method","then","response","json","result","type","payload","isAuthenticated","IsAuthenticated","userName","User","paymentMethods","PaymentMethods","activeSubscription","ActiveSubscription","showCancelSubscriptionButton","ShowCancelSubscriptionButton","SubscriptionProduct","forEach","catch","error","console","log","setModal","Login","props","toggle","useDispatch","useForm","register","handleSubmit","useState","showPass","setShowPass","showIco","setShowIco","className","onSubmit","data","e","headers","body","ok","window","location","href","Status","sessionStorage","setItem","userInfo","profileId","target","reset","swal","text","Message","icon","htmlFor","name","id","required","ref","onClick","to","initialState","items","isModalOpen","whatsApp","combineReducers","cartProducts","state","action","Object","assign","itemToRemove","user","settings","middleware","thunk","store","createStore","rootReducer","applyMiddleware","callApi","url","contentType","options","handleResponse","handleError","get","blob","status","Promise","reject","message","registerService","getRegisterReferernce","helperService","generateGuid","replace","c","r","Math","random","toString","metaPixelService","trackEvent","customEvent","simpleEvent","trackRegisterEvent","pixelId","process","pixUser","getItem","newData","fbq","eventID","eventId","pixelData","user_Info","registerdata","DataResult","Register","registerReference","setRegisterReference","useEffect","IAgree","Data","for","Id","ItemPurchaseDetails","deletePurchaseItemDetail","SettingProviderName","onChange","toLocaleString","minimumFractionDigits","maximumFractionDigits","ItemPurchase","activeAccordion","setStateAccordion","activeChevron","setStateChevron","deletePurchaseItem","src","alt","aria-labelledby","data-parent","itemDetail","ItemPayMethod","payOrder","PaymentMethodId","UrlLogo","BoxPayMethod","onCloseClick","useSelector","onlyOneClick","setOnlyOneClick","history","useHistory","paymentMethodId","model","Products","ValidationMessage","Model","pathname","append","paymentMethod","AsidePurchase","activeAside","toggleBlocking","pruchaseItems","setPurchaseItems","setTotal","parseInt","title","dangerMode","buttons","willDelete","Fragment","class","Header","setStateAside","AsidePurchaseBox","activePurchase","setStatusPurchase","setStatePurchase","btnMenu","setBtnMenu","menuMobile","setMenuMobile","MenuMobile","showLogeo","setShowLogeo","toggleLogeo","dropdownOpen","setDropdownOpen","toggleDrop","prevState","CargarLogeo","MailContact","preventDefault","isOpen","tag","data-toggle","aria-expanded","clear","this","reload","Footer","currentYear","setCurrentYear","year","Date","getFullYear","BlockScreen","blocking","color","setInstallPromptSeenToday","promptName","today","moment","toISOString","getUserShouldBePromptedToInstall","daysToWaitBeforePromptingAgain","lastPrompt","getInstallPromptLastSeenAt","daysSinceLastPrompt","diff","isNaN","useShouldShowPrompt","userShouldBePromptedToInstall","setUserShouldBePromptedToInstall","handleUserSeeingInstallPrompt","isIOS","navigator","standalone","ua","userAgent","isIPad","match","isIPhone","useIosInstallPrompt","useWebInstallPrompt","installPromptEvent","setInstallPromptEvent","beforeInstallPromptHandler","event","addEventListener","removeEventListener","prompt","userChoice","choice","outcome","InstallPWA","iosInstallPrompt","handleIOSInstallDeclined","webInstallPrompt","handleWebInstallDeclined","handleWebInstallAccepted","centered","style","borderTopRightRadius","borderTopLeftRadius","backgroundColor","marginTop","width","margin","WhatsAppButton","phone","rel","Layout","infoSetting","setState","setWhatsApp","WhatsApp","children","Component","displayName","connect","HubItemProvider","validateSetModal","processRedirection","route","providersOptions","providers","next_props","providersOption","key","Type","IsAvailable","ProviderLogo","ImageNotAvailable","HubContainer","couponService","getAll","download","CouponsSlider","coupons","setCoupons","coupon","setCoupon","modal","dots","infinite","centerMode","slidesToShow","centerPadding","pauseOnHover","swipeToSlide","slidesToScroll","autoplay","speed","autoplaySpeed","responsive","breakpoint","CouponId","ImagePath","FilePath","CouponTemplateName","dangerouslySetInnerHTML","__html","SliderItemProvider","SliderProvider","initialSlide","FormEmbassador","form","setForm","activeSec","setActiveSec","sec","handleOnChange","1","Nickname","Email","PhoneNumber","2","Bank","Clabe","3","ItemProviderIndividual","WrapperProviderIndividual","WrapperBullets","arrows","SliderHome","slider","carrousel","Link","indexOf","CompanyCarrouselId","UrlImageResponsive","Home","Providers","Carrousel","scrollTop","FavoriteCheck","activeFav","stateFav","HeaderProviders","paragraph","providerImg","ModalError","size","backdrop","viewBox","strokeWidth","stroke","fill","cx","cy","strokeLinecap","strokeMiterlimit","x1","y1","x2","y2","ProvidersRecharges","steps","setSteps","productItems","setProductItems","userProfileReferences","setUserProfileReferences","suscriptionItem","setSuscriptionItem","totalAmount","setTotalAmount","selectedProduct","setSelectedProduct","confirm","amount","dataRecharge","setDataRecharge","validPhoneNumber","setValidPhoneNumber","validConfirmPhoneNumber","setValidConfirmPhoneNumber","validReferenceName","setValidreferenceName","confirmPhoneNumber","setConfirmPhoneNumber","addPhone","setAddPhone","newPhoneNumber","setNewPhoneNumber","modalError","setModalError","content_type","content_ids","currency","content_category","contents","quantity","getUserReferences","productsSorted","array","CompanyProducts","sort","b","x","y","onChangeInput","handleAmount","productChecked","cant","productPrice","PercentageDiscount","xs","Info","noGutters","lg","md","sm","maxLength","placeholder","onKeyPress","charCode","keyCode","which","charStr","String","fromCharCode","invalid","disabled","check","checked","index","UserProfileInputValueId","Value","KeyName","Restrictions","suscriptionItemS","redPay2","VideoProvider","urlImage","urlVideo","height","frameborder","allow","allowfullscreen","AsideProvider","isAll","setIsAll","toggleCategories","ItemProduct","settingProviderId","addPruchaseItem","activeBoxTooltip","setBoxTooltip","ShowTooltip","newRef","setNewRef","toggleRef","savedReferences","SaveReference","references","setReferences","BoxReference","settingProviderName","autoComplete","urlRoot","ContainProvider","outstandingProducts","OutstandingProducts","show","display","hide","UrlVideo","SettingProviderId","StorageRoot","UrlLogoClrs","ProvidersCoupons","UrlImageVideo","ModalSuccess","d","description","ProvidersServices","modalSuccess","setModalSuccess","validReference","setValidReference","dataService","setDataService","toggleSuccess","onKeyUp","num","str","arr","split","out","cnt","Number","join","getNumber","params","setModel","providerID","slice","providerType","providerModel","bgProviders","background","UrlHeader","Provider","search","PurchasedItemDetails","SubTotal","PurchasedItem","collapse","setCollapse","OrderNumber","Details","ShoppingHistoryWrapper","shoppingHistory","ShoppingHistory","NoticePrivacy","TermsAndConditions","ResetPassword","aria-describedby","ForgotPassword","ConfirmedAccount","PaymentCanceled","removeItem","PurchaseOrderDetail","ps","OrderId","setTimeout","purchaseOrderDetail","bind","getProductOrder","ProductName","VoucherCode","showGenerateInvoice","IsBillable","pendingProducts","IsSaleText","format","BasePaymentMethod","cancel","verificationCardService","getList","verifyCard","deleteCard","subscriptionService","CardRegistrationItem","selectCard","isRedpay","currentPurchase","cardList","setCardList","card","setCard","VerifiedCardId","CardNumber","onSelectCard","CardType","FirstName","LastName","countrySerice","getAllCountry","getState","countryId","RedPay","getCountry","Countrys","changeCountry","CountryId","States","changeState","IdState","Card","handleChange","validateInputs","input","formValidators","HasExternalToke","inputs","document","forms","getElementsByTagName","validationInputs","keys","values","HasExternalToken","isInProcess","getElementById","submit","ButtonProcess","Amount","CardExpirationMonth","CardExpirationYear","Cvv","PostalCode","City","Street","StreetNumber","purchaseItem","UrlSubmit","readOnly","mask","maskChar","selected","CountryName","StateId","PaymentMethod","switchPaymentMethod","component","paymentMethodService","registerCard","CardRegistration","setCartType","number","re","RegExp","handleChangeCard","setCurrentPurchaseToSession","currentPurchaseModel","CardVerification","step","min","max","App","exact","path","isLocalhost","Boolean","hostname","registerValidSW","swUrl","serviceWorker","registration","onupdatefound","installingWorker","installing","onstatechange","controller","rootElement","createBrowserHistory","ReactGA","initialize","pageview","plugin","require","listen","ReactDOM","render","basename","URL","origin","ready","unregister","checkValidServiceWorker","registerServiceWorker"],"mappings":"mIAAAA,EAAOC,QAAU,IAA0B,8C,w4BCG9BC,EAAW,CACpBC,Q,4CACAC,iB,gDACAC,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png\";","import $ from 'jquery'\r\nimport swal from \"sweetalert\"\r\n\r\nexport const cartHook = {\r\n addItem,\r\n onChangeQuantity,\r\n deleteItem,\r\n deleteItemDetail,\r\n getItems,\r\n clean\r\n}\r\n\r\nasync function addItem(product) {\r\n let cartItems = JSON.parse(localStorage[\"pruchaseList\"])\r\n let totalItems = parseFloat(localStorage[\"pruchaseTotal\"]);\r\n\r\n let item = {\r\n ProductId: product.ProductId,\r\n Name: product.Name,\r\n Price: product.ProductPrice,\r\n Quantity: 1,\r\n Code: product.ProductCode,\r\n UrlImage: product.urlLogoClrs,\r\n Descripcion: product.Description,\r\n ProviderId: product.proveedorId,\r\n Total: product.ProductPrice,\r\n Reference: product.Reference\r\n }\r\n\r\n let foundProvider = cartItems.find(p => p.ProviderId == product.proveedorId);\r\n if (foundProvider != undefined) {\r\n let isNew = true;\r\n if (item.Reference == undefined) {\r\n let foundProduct = foundProvider.Items.find(p => p.ProductId == item.ProductId);\r\n if (foundProduct != undefined) {\r\n foundProduct.Quantity += item.Quantity;\r\n foundProduct.Total = foundProduct.Quantity * item.Price\r\n isNew = false;\r\n }\r\n } else {\r\n let foundProduct = foundProvider.Items.find(p => p.ProductId == item.ProductId && p.Reference == item.Reference);\r\n if (foundProduct != undefined) {\r\n //swal({ text: \"Esta referencia ya esta en carrito de compras\", icon: \"error\" });\r\n return false;\r\n }\r\n }\r\n\r\n if (isNew) foundProvider.Items.push(item)\r\n\r\n foundProvider.Total += item.Total;\r\n } else {\r\n let itemProvider =\r\n {\r\n ProviderId: product.proveedorId,\r\n ProviderName: product.providerName,\r\n Logo: product.urlLogoClrs,\r\n Total: item.Price,\r\n Items: [item]\r\n }\r\n cartItems.push(itemProvider);\r\n $(\"#spanActivePurchase\").click();\r\n }\r\n\r\n localStorage[\"pruchaseTotal\"] = totalItems + item.Price\r\n localStorage[\"pruchaseList\"] = JSON.stringify(cartItems)\r\n}\r\n\r\nasync function onChangeQuantity(providerId, productId, value) {\r\n let cart = JSON.parse(localStorage[\"pruchaseList\"]);\r\n let total = parseFloat(localStorage[\"pruchaseTotal\"]);\r\n\r\n let foundProvider = cart.find(p => p.ProviderId == providerId);\r\n if (foundProvider != undefined) {\r\n let foundProduct = foundProvider.Items.find(p => p.ProductId == productId);\r\n if (foundProduct != undefined) {\r\n foundProvider.Total -= foundProduct.Total;\r\n total -= foundProduct.Total;\r\n\r\n foundProduct.Quantity = value;\r\n foundProduct.Total = foundProduct.Quantity * foundProduct.Price;\r\n\r\n foundProvider.Total += foundProduct.Total;\r\n total += foundProduct.Total;\r\n }\r\n }\r\n\r\n localStorage[\"pruchaseTotal\"] = total;\r\n localStorage[\"pruchaseList\"] = JSON.stringify(cart);\r\n}\r\n\r\nasync function deleteItem(providerId) {\r\n let cart = JSON.parse(localStorage[\"pruchaseList\"]);\r\n let total = parseFloat(localStorage[\"pruchaseTotal\"]);\r\n\r\n let foundProvider = cart.find(p => p.ProviderId == providerId);\r\n if (foundProvider != undefined) {\r\n\r\n total -= foundProvider.Total;\r\n cart = cart.filter(p => p.ProviderId != providerId);\r\n }\r\n\r\n localStorage[\"pruchaseTotal\"] = total;\r\n localStorage[\"pruchaseList\"] = JSON.stringify(cart);\r\n}\r\n\r\nasync function deleteItemDetail(providerId, productId, reference) {\r\n let cart = JSON.parse(localStorage[\"pruchaseList\"]);\r\n let total = parseFloat(localStorage[\"pruchaseTotal\"]);\r\n\r\n let foundProvider = cart.find(p => p.ProviderId == providerId);\r\n if (foundProvider != undefined) {\r\n let foundProduct = foundProvider.Items.find(p => p.ProductId == productId);\r\n if (foundProduct != undefined) {\r\n foundProvider.Total -= foundProduct.Total;\r\n total -= foundProduct.Total;\r\n if (reference == undefined) foundProvider.Items = foundProvider.Items.filter(p => p.ProductId != productId);\r\n else foundProvider.Items = foundProvider.Items.filter(p => p.Reference != reference)\r\n\r\n if (foundProvider.Total == 0) cart = cart.filter(p => p.ProviderId != providerId);\r\n }\r\n }\r\n\r\n localStorage[\"pruchaseTotal\"] = total;\r\n localStorage[\"pruchaseList\"] = JSON.stringify(cart);\r\n}\r\n\r\nfunction getItems(rechargeProducts) {\r\n let products = [];\r\n\r\n if (!rechargeProducts) {\r\n let cartItems = JSON.parse(localStorage[\"pruchaseList\"])\r\n cartItems.map(provider => {\r\n provider.Items.map(itemtemp => {\r\n let item = {\r\n ProductId: itemtemp.ProductId,\r\n UrlImage: itemtemp.UrlImage,\r\n Name: itemtemp.Name,\r\n ProductPrice: itemtemp.Price,\r\n Cant: itemtemp.Quantity,\r\n ProductCode: itemtemp.Code,\r\n Description: itemtemp.Descripcion,\r\n ProviderId: itemtemp.ProviderId\r\n };\r\n products.push(item);\r\n })\r\n });\r\n }\r\n else {\r\n rechargeProducts.reference.isSaveReference = rechargeProducts.reference.Name != \"\";\r\n products.push(rechargeProducts)\r\n }\r\n\r\n let subscriptionProductsId = [1, 2];\r\n let subscriptionProducts = products.filter(a => subscriptionProductsId.includes(a.ProductId)) ?? [];\r\n\r\n if (subscriptionProducts.length > 0) {\r\n localStorage[\"rg_pending_products\"] = localStorage[\"pruchaseList\"]\r\n products = subscriptionProducts;\r\n }\r\n\r\n return products;\r\n}\r\n\r\nasync function clean() {\r\n localStorage[\"pruchaseTotal\"] = \"0\";\r\n localStorage[\"pruchaseList\"] = \"[]\";\r\n}","import { cartHook } from \"../../hooks/cart.hook\";\r\n\r\nexport const getUser = () => dispatch => {\r\n fetch(\"/api/Account/IsAuthenticated\", { method: 'GET' })\r\n .then(response => response.json())\r\n .then(result => {\r\n dispatch({\r\n type: \"SET_USER\",\r\n payload: { isAuthenticated: result.IsAuthenticated, userName: result.User, paymentMethods: result.PaymentMethods, activeSubscription: result.ActiveSubscription, showCancelSubscriptionButton: result.ShowCancelSubscriptionButton },\r\n });\r\n\r\n if (result.SubscriptionProduct.length > 0) {\r\n result.SubscriptionProduct.forEach((item) => cartHook.addItem(item));\r\n } else {\r\n cartHook.deleteItem(1)\r\n }\r\n })\r\n .catch(error => {\r\n console.log('error', error)\r\n });\r\n}\r\nexport const setModal = () => dispatch => {\r\n dispatch ({\r\n type: \"Set_Modal\",\r\n });\r\n };","import React, { useState } from \"react\"\r\nimport { useForm } from 'react-hook-form'\r\nimport swal from \"sweetalert\"\r\nimport { Link } from 'react-router-dom';\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { getUser } from '../../store/actions/user.actions';\r\n\r\nconst Login = (props, toggle) => {\r\n const dispatch = useDispatch();\r\n const { register, handleSubmit } = useForm();\r\n\r\n const onSubmit = (data, e) => {\r\n fetch('/api/Account/Login', {\r\n method: 'POST',\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n body: JSON.stringify(data)\r\n }).then(function (response) {\r\n if (response.ok) {\r\n response.json()\r\n return window.location.href = '/';\r\n }\r\n }).then(function (result) {\r\n if (result.Status) {\r\n sessionStorage.setItem(\"pixelUserInfo\", JSON.stringify( result.userInfo));\r\n sessionStorage.setItem(\"userId\", JSON.stringify( result.profileId));\r\n e.target.reset();\r\n dispatch(getUser());\r\n props.toggle();\r\n window.location.href = '/'\r\n } else {\r\n swal({ text: result.Message, icon: \"error\" });\r\n }\r\n }).catch(function (error) {\r\n console.log(error);\r\n swal({ text: \"Error\", icon: \"error\" });\r\n });\r\n }\r\n\r\n const [showPass, setShowPass] = useState(\"password\");\r\n const [showIco, setShowIco] = useState(\"fa-eye-slash\");\r\n\r\n const setInputPass = () => {\r\n setShowPass(showPass === \"password\" ? \"text\" : \"password\");\r\n setShowIco(showIco === \"fa-eye-slash\" ? \"fa-eye\" : \"fa-eye-slash\");\r\n };\r\n\r\n return (\r\n
\r\n
\r\n
Iniciar sesión
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n Olvide mi contraseña\r\n \r\n \r\n \r\n
\r\n

\r\n \r\n

\r\n
\r\n
\r\n
\r\n )\r\n}\r\nexport default Login;\r\n","const initialState = {\r\n items: []\r\n};\r\n\r\nexport default function (state = initialState, action) {\r\n switch (action.type) {\r\n case 'LOAD_CART':\r\n return {\r\n ...state,\r\n items: action.payload\r\n };\r\n case 'ADD_PRODUCT':\r\n return {\r\n ...state,\r\n item: Object.assign({}, action.payload)\r\n };\r\n case 'REMOVE_PRODUCT':\r\n return {\r\n ...state,\r\n itemToRemove: Object.assign({}, action.payload)\r\n };\r\n default:\r\n return state;\r\n }\r\n}\r\n","const initialState = {\r\n isAuthenticated: undefined,\r\n userName: \"\",\r\n paymentMethods: [],\r\n activeSubscription: false,\r\n isModalOpen: false,\r\n};\r\n\r\nexport default function (state = initialState, action) {\r\n switch (action.type) {\r\n case \"SET_USER\":\r\n return {\r\n ...state,\r\n ...action.payload\r\n };\r\n case \"Set_Modal\":\r\n return {\r\n ...state,\r\n isModalOpen: !state.isModalOpen\r\n };\r\n default:\r\n return state;\r\n }\r\n}\r\n","const initialState = {\r\n whatsApp: \"\"\r\n};\r\n\r\nexport default function (state = initialState, action) {\r\n switch (action.type) {\r\n case \"Set_WhatsApp\":\r\n return {\r\n ...state,\r\n whatsApp: action.payload,\r\n };\r\n default:\r\n return state;\r\n }\r\n}\r\n","import { combineReducers } from 'redux';\r\nimport cartReducer from './cart.reducer';\r\nimport userReducer from './user.reducer';\r\nimport settingsReducer from './settings.reducer';\r\n\r\nexport default combineReducers({\r\n cartProducts: cartReducer,\r\n user: userReducer,\r\n settings: settingsReducer\r\n});","import { createStore, applyMiddleware, compose } from \"redux\";\r\nimport thunk from 'redux-thunk';\r\nimport rootReducer from './reducers';\r\n\r\nconst initialState = {};\r\n\r\nconst middleware = [thunk];\r\n\r\nconst store = createStore(\r\n rootReducer,\r\n initialState,\r\n applyMiddleware(...middleware)\r\n);\r\n\r\nexport default store;","import store from '../store'\r\n\r\n/**\r\n * Communication with the API\r\n * @param {*} url\r\n * @param {*} method\r\n * @param {*} body\r\n * @param {*} contentType\r\n */\r\n\r\nexport async function callApi(url, method, body, contentType = 'application/json') {\r\n var options = {\r\n method: method,\r\n headers: {\r\n 'Content-Type': contentType\r\n },\r\n body: JSON.stringify(body)\r\n };\r\n\r\n //store.dispatch(toggleBlocking())\r\n return fetch(url, options)\r\n .then(response => handleResponse(response))\r\n .catch(handleError);\r\n}\r\n\r\n/**\r\n * Communication with the API file\r\n * @param {*} url\r\n * @param {*} method\r\n * @param {*} body\r\n */\r\n\r\nexport async function callApiFile(url, method, body) {\r\n var options = {\r\n method: method,\r\n headers: {\r\n //'Authorization': 'Bearer ' + sessionStorage[\"red_co_token\"]\r\n },\r\n body: body\r\n };\r\n\r\n //store.dispatch(toggleBlocking())\r\n return fetch(url, options)\r\n .then(response => handleResponse(response))\r\n .catch(handleError);\r\n}\r\n\r\nexport function handleResponse(response) {\r\n //store.dispatch(toggleBlocking())\r\n if (!response.ok) {\r\n if (response.status === 401 || response.status === 403) {\r\n window.location.href = \"/\";\r\n }\r\n return Promise.reject(\"error\");\r\n }\r\n const contentType = response.headers.get(\"content-type\");\r\n if (contentType.includes(\"application/json;\"))\r\n return response.text()\r\n .then(text => {\r\n let data\r\n\r\n try {\r\n data = text && JSON.parse(text);\r\n }\r\n catch (e) {\r\n data = text\r\n }\r\n return data;\r\n });\r\n else return response.blob();\r\n}\r\n\r\nexport function handleError(error) {\r\n //store.dispatch(toggleBlocking())\r\n console.log('error', error)\r\n if (error.message === \"Failed to fetch\")\r\n error.message = \"El Servicio no se encuentra disponible\";\r\n return Promise.reject(error);\r\n}","import { callApi } from './service'\r\n\r\nexport const registerService = {\r\n getRegisterReferernce\r\n}\r\n\r\nasync function getRegisterReferernce() {\r\n return callApi('/api/Account/GetRegisterReference', 'Get')\r\n .then((result) => {\r\n return result;\r\n }).catch((error) => {\r\n console.log(error);\r\n return [];\r\n });\r\n}","\r\nexport const helperService = {\r\n\tgenerateGuid,\r\n\t\r\n}\r\n\r\nfunction generateGuid() {\r\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'\r\n .replace(/[xy]/g, function (c) {\r\n const r = Math.random() * 16 | 0,\r\n v = c == 'x' ? r : (r & 0x3 | 0x8);\r\n return v.toString(16);\r\n });\r\n}","import { callApi } from './service'\r\nimport { helperService } from '../Helper/helper'\r\n\r\nexport const metaPixelService = {\r\n trackEvent,\r\n customEvent,\r\n simpleEvent,\r\n trackRegisterEvent\r\n}\r\n\r\nconst pixelId = process.env.REACT_APP_PIXEL_ID\r\n\r\nasync function trackEvent(type, name, data) {\r\n let pixUser = JSON.parse(sessionStorage.getItem(\"pixelUserInfo\"));\r\n let newData = { ...data };\r\n \r\n if (pixUser) \r\n newData = { ...data, ...pixUser }\r\n \r\n let id = helperService.generateGuid();\r\n window.fbq(\"init\", pixelId);\r\n window.fbq(type, name, newData, { eventID: id });\r\n var params = {\r\n type: name, \r\n eventId: id,\r\n pixelData: JSON.stringify(data), \r\n user_Info: pixUser ? JSON.stringify(pixUser) : null\r\n }\r\n callApi('/api/MetaPixel/Track', 'POST', params)\r\n .then((result) => {\r\n console.log('resultTrack', result);\r\n });\r\n}\r\n\r\nasync function customEvent(type, name, data = null) {\r\n debugger\r\n window.fbq(\"init\", pixelId);\r\n if(data){\r\n window.fbq(type, name, data);\r\n } else {\r\n window.fbq(type, name);\r\n }\r\n}\r\n\r\nasync function simpleEvent(type, name, data = null) {\r\n let pixUser = JSON.parse(sessionStorage.getItem(\"pixelUserInfo\"));\r\n let newData = { ...data };\r\n let id = helperService.generateGuid(); \r\n \r\n if (pixUser) \r\n newData = { ...data, ...pixUser }\r\n window.fbq(\"init\", pixelId);\r\n window.fbq(type, name, newData, { eventID: id });\r\n\r\n var params = {\r\n type: name, \r\n eventId: id,\r\n pixelData: data ? JSON.stringify(data): null, \r\n user_Info: pixUser ? JSON.stringify(pixUser) : null\r\n }\r\n \r\n callApi('/api/MetaPixel/Track', 'POST', params)\r\n .then((result) => {\r\n console.log(result);\r\n });\r\n}\r\n\r\n\r\nasync function trackRegisterEvent(type, name, data) {\r\n let id = helperService.generateGuid();\r\n \r\n window.fbq(\"init\", pixelId);\r\n window.fbq(type, name, { eventID: id });\r\n var params = {\r\n type: name, \r\n eventId: id,\r\n pixelData: JSON.stringify(data.registerdata), \r\n user_Info: JSON.stringify( data.DataResult)\r\n }\r\n callApi('/api/MetaPixel/Track', 'POST', params)\r\n .then((result) => {\r\n console.log(result);\r\n });\r\n}\r\n","import React, { useEffect } from \"react\"\r\nimport { useState } from \"react\";\r\nimport { useForm } from 'react-hook-form'\r\nimport swal from \"sweetalert\"\r\nimport { registerService } from '../../services/register.service'\r\nimport { metaPixelService } from '../../services/metaPixel.service'\r\n\r\nconst Register = () => {\r\n const { register, handleSubmit } = useForm();\r\n const [registerReference, setRegisterReference] = useState([]);\r\n\r\n useEffect(() => {\r\n registerService.getRegisterReferernce().then(result => setRegisterReference(result));\r\n }, []);\r\n\r\n const onSubmit = (data, e) => {\r\n if (data.IAgree) {\r\n fetch('/api/Account/Register', {\r\n method: 'POST',\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n body: JSON.stringify(data)\r\n }).then(function (response) {\r\n if (response.ok) {\r\n return response.json()\r\n }\r\n }).then(function (result) {\r\n if (result.Status) {\r\n e.target.reset();\r\n metaPixelService.trackRegisterEvent('track','CompleteRegistration', result.Data);\r\n swal({ text: result.Message, icon: \"success\" });\r\n } else {\r\n swal({ text: result.Message, icon: \"error\" });\r\n }\r\n }).catch(function (error) {\r\n console.log(error);\r\n swal({ text: \"Error\", icon: \"error\" });\r\n });\r\n } else {\r\n swal({ text: \"Debe aceptar los términos y condiciones\", icon: \"warning\" })\r\n }\r\n }\r\n\r\n return (\r\n
\r\n
\r\n
Registro Nuevo
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n

\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n )\r\n}\r\nexport default Register;","import React from 'react';\r\nimport './itemPurchaseDetails.scss'\r\n\r\nconst ItemPurchaseDetails = (props) => {\r\n\r\n return (\r\n
\r\n
\r\n {props.Reference != \"membership\" && { props.deletePurchaseItemDetail(props.ProviderId, props.ProductId, props.Reference) }}>}\r\n
\r\n
\r\n

{props.Name}

\r\n {props.Reference != \"membership\" &&

{props.Reference == undefined ? \"Precio individual $\" + props.Price : props.SettingProviderName + \": \" + props.Reference}

}\r\n
\r\n
\r\n {props.Reference == undefined ?\r\n \r\n :\r\n \"\"\r\n }\r\n
\r\n
${(props.Total).toLocaleString(\"es-mx\", { minimumFractionDigits: 0, maximumFractionDigits: 2 })}
\r\n
\r\n )\r\n}\r\n\r\nexport default ItemPurchaseDetails","import React, { useState } from 'react';\r\nimport ItemPurchaseDetails from '../itemPurchaseDetails'\r\nimport './itemPurchase.scss'\r\n\r\nconst ItemPurchase = (props) => {\r\n const [activeAccordion, setStateAccordion] = useState('')\r\n const [activeChevron, setStateChevron] = useState('')\r\n\r\n function AsidePurchaseBox() {\r\n setStateAccordion(activeAccordion === '' ? 'show' : '')\r\n setStateChevron(activeChevron === '' ? 'open' : '')\r\n }\r\n\r\n const items = props.Items;\r\n return (\r\n
\r\n {props.ProviderId != 1 && { props.deletePurchaseItem(props.ProviderId, props.ProviderName) }}> Eliminar}\r\n
\r\n
\r\n
\r\n \r\n \"\"\r\n \r\n
\r\n
\r\n
{props.ProviderName}
\r\n {props.ProviderId!=1 ?\r\n

Ir a la tienda

\r\n :\r\n

Ir al home

\r\n\r\n }\r\n
\r\n
\r\n
${(props.Total).toLocaleString(\"es-mx\", { minimumFractionDigits: 0, maximumFractionDigits: 2 })}
\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n {\r\n items.map(itemDetail => {\r\n return \r\n })\r\n }\r\n
\r\n
\r\n
\r\n
\r\n )\r\n}\r\n\r\nexport default ItemPurchase","import React, { useState } from 'react';\r\n\r\n\r\nconst ItemPayMethod = ({ data, payOrder }) => {\r\n \r\n\r\n return (\r\n \r\n )\r\n}\r\n\r\nexport default ItemPayMethod","import React, { useState, useEffect } from 'react';\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { setModal } from '../../store/actions/user.actions';\r\nimport ItemPayMethod from './itemPayMethod'\r\nimport swal from \"sweetalert\"\r\nimport $ from \"jquery\"\r\nimport { cartHook } from \"../../hooks/cart.hook\";\r\nimport { useHistory } from 'react-router-dom';\r\nimport './boxPayMethod.scss'\r\n\r\nconst BoxPayMethod = ({ onCloseClick, rechargeProducts }) => {\r\n const dispatch = useDispatch();\r\n const paymentMethods = useSelector(state => state.user.paymentMethods)\r\n const isAuthenticated = useSelector((state) => state.user.isAuthenticated);\r\n\r\n const [onlyOneClick, setOnlyOneClick] = useState(false)\r\n const history = useHistory();\r\n const payOrder = (paymentMethodId) => {\r\n if (!onlyOneClick) {\r\n setOnlyOneClick(true);\r\n\r\n const model =\r\n {\r\n Products: cartHook.getItems(rechargeProducts),\r\n PaymentMethodId: paymentMethodId\r\n }\r\n\r\n if (parseFloat(localStorage[\"pruchaseTotal\"]) <= 0 && !rechargeProducts) {\r\n swal({ text: \"El monto a pagar debe ser mayor a 0\", icon: \"error\" })\r\n setOnlyOneClick(false);\r\n } else {\r\n if (model.Products.length > 0) {\r\n fetch(\"/api/PaymentMethod/CreateOrder\",\r\n {\r\n method: 'POST',\r\n headers: { 'Content-Type': 'application/json' },\r\n body: JSON.stringify(model)\r\n }).then(function (response) {\r\n if (response.ok) {\r\n const contentType = response.headers.get(\"content-type\");\r\n if (contentType.includes(\"application/json;\")) return response.json();\r\n else return response.text()\r\n }\r\n }).then(function (data) {\r\n if (data.ValidationMessage) {\r\n swal({ text: data.ValidationMessage, icon: \"error\" });\r\n setOnlyOneClick(false);\r\n } else {\r\n setOnlyOneClick(false);\r\n if (data.Model) {\r\n //if (data.SecondModel)\r\n // localStorage.setItem(\"secondOrder\", JSON.stringify(data.SecondModel));\r\n if (onCloseClick) onCloseClick();\r\n history.push({\r\n pathname: '/checkout',\r\n state: { model: data.Model }\r\n })\r\n } else {\r\n $('body').append(data);\r\n }\r\n }\r\n }).catch(function (error) {\r\n setOnlyOneClick(false);\r\n swal({ text: \"Error\", icon: \"error\" })\r\n })\r\n } else {\r\n swal({ text: \"No hay ningún producto en el carrito de compras\", icon: \"error\" })\r\n setOnlyOneClick(false);\r\n }\r\n }\r\n }\r\n }\r\n\r\n return (\r\n
\r\n {isAuthenticated ? (\r\n paymentMethods.map((paymentMethod) => {\r\n return ;\r\n })\r\n ) : (\r\n
\r\n

\r\n ¡Por favor inicia sesión para completar tu compra!{\" \"}\r\n

\r\n dispatch(setModal())}\r\n >\r\n Entrar\r\n \r\n
\r\n )}\r\n
\r\n );\r\n}\r\n\r\nexport default BoxPayMethod\r\n\r\n","import React, { useState, useEffect } from 'react';\r\nimport ItemPurchase from '../itemPurchase'\r\nimport BoxPayMethod from '../boxPayMethod'\r\nimport './asidePurchase.scss'\r\nimport swal from \"sweetalert\"\r\nimport { cartHook } from \"../../hooks/cart.hook\";\r\n\r\nconst AsidePurchase = ({ activeAside, onCloseClick, toggleBlocking }) => {\r\n\r\n const [pruchaseItems, setPurchaseItems] = useState([])\r\n const [total, setTotal] = useState(0)\r\n\r\n useEffect(() => {\r\n if (activeAside) {\r\n setPurchaseItems(JSON.parse(localStorage[\"pruchaseList\"]));\r\n setTotal(JSON.parse(localStorage[\"pruchaseTotal\"]));\r\n }\r\n }, [activeAside]);\r\n\r\n const onChangeQuantity = (providerId, productId, value) => {\r\n cartHook.onChangeQuantity(providerId, productId, parseInt(value))\r\n .then(function () {\r\n setTotal(JSON.parse(localStorage[\"pruchaseTotal\"]));\r\n setPurchaseItems(JSON.parse(localStorage[\"pruchaseList\"]));\r\n });\r\n }\r\n\r\n const deleteItem = (providerId, providerName) => {\r\n swal({\r\n title: \"¿Estas seguro?\",\r\n text: \"¡Desea eliminar los productos de \" + providerName + \" del carrito de compras!\",\r\n icon: \"warning\",\r\n dangerMode: true,\r\n buttons: [\"Cancelar\", \"Si, eliminar\"]\r\n })\r\n .then((willDelete) => {\r\n if (willDelete) {\r\n cartHook.deleteItem(providerId)\r\n .then(function () {\r\n setTotal(JSON.parse(localStorage[\"pruchaseTotal\"]));\r\n setPurchaseItems(JSON.parse(localStorage[\"pruchaseList\"]));\r\n });\r\n }\r\n });\r\n }\r\n\r\n const deleteItemDetail = (providerId, productId, reference) => {\r\n swal({\r\n title: \"¿Estas seguro?\",\r\n text: \"¡Desea eliminar este productos del carrito de compras!\",\r\n icon: \"warning\",\r\n buttons: [\"Cancelar\", \"Si, eliminar\"],\r\n dangerMode: true,\r\n })\r\n .then((willDelete) => {\r\n if (willDelete) {\r\n cartHook.deleteItemDetail(providerId, productId, reference)\r\n .then(function () {\r\n setTotal(JSON.parse(localStorage[\"pruchaseTotal\"]));\r\n setPurchaseItems(JSON.parse(localStorage[\"pruchaseList\"]));\r\n });\r\n }\r\n });\r\n }\r\n return \r\n \r\n
\r\n
\r\n}\r\n\r\nexport default AsidePurchase\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { Link, useHistory, useLocation } from \"react-router-dom\";\r\nimport { Modal, Button, ModalFooter, Card, CardBody, CardTitle, CardText } from \"reactstrap\";\r\nimport { Dropdown, DropdownMenu, DropdownToggle } from \"reactstrap\";\r\nimport $ from \"jquery\"\r\nimport Login from \"../login\";\r\nimport Register from \"../register\";\r\nimport AsidePurchase from \"../asidePurchase\";\r\nimport \"./header.scss\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { getUser } from \"../../store/actions/user.actions\";\r\nimport { metaPixelService } from '../../services/metaPixel.service'\r\nimport { setModal } from \"../../store/actions/user.actions\";\r\n\r\nconst Header = (props) => {\r\n const isModalOpen = useSelector((state) => state.user.isModalOpen);\r\n const user = useSelector((state) => state.user);\r\n const dispatch = useDispatch();\r\n const history = useHistory();\r\n const [activeAside, setStateAside] = useState(\"\");\r\n function AsidePurchaseBox() {\r\n if (activePurchase != \"\") {\r\n setStateAside(activeAside === \"\" ? \" is-show\" : \"\");\r\n } else {\r\n setStatusPurchase(true);\r\n }\r\n }\r\n const [modalShow, setModalShow] = useState(true);\r\n\r\n const [activePurchase, setStatePurchase] = useState(\"\");\r\n const setStatusPurchase = (status) => {\r\n setStatePurchase(status ? \" active_purchase\" : \"\");\r\n };\r\n\r\n const [btnMenu, setBtnMenu] = useState(\"fa-bars\");\r\n const [menuMobile, setMenuMobile] = useState(\"\");\r\n function MenuMobile() {\r\n setMenuMobile(menuMobile === \"\" ? \" is-visible\" : \"\");\r\n setBtnMenu(btnMenu === \"fa-bars\" ? \" fa-times\" : \"fa-bars\");\r\n }\r\n\r\n //const [modal, setModal] = useState(false);\r\n const toggle = () => dispatch(setModal());\r\n\r\n const [showLogeo, setShowLogeo] = useState(false);\r\n const toggleLogeo = () => setShowLogeo(!showLogeo);\r\n\r\n const [dropdownOpen, setDropdownOpen] = useState(false);\r\n const toggleDrop = () => setDropdownOpen((prevState) => !prevState);\r\n\r\n const CargarLogeo = () => {\r\n return showLogeo === false ? (\r\n
\r\n
¿Eres nuevo en Red Godínez?
\r\n
\r\n \r\n
\r\n
\r\n ) :\r\n (\r\n
\r\n
¡Únete YA,
compra todo lo que quieras y ahorra!
\r\n
\r\n \r\n
\r\n
\r\n );\r\n };\r\n\r\n useEffect(() => {\r\n dispatch(getUser());\r\n }, []);\r\n\r\n useEffect(() => {\r\n setStatusPurchase(localStorage[\"pruchaseTotal\"] != 0);\r\n });\r\n\r\n useEffect(() => {\r\n if (!user.activeSubscription && user.isAuthenticated && activePurchase && history.location.pathname == \"/active-aside-purchase\")\r\n setStateAside(\" is-show\");\r\n }, [user, activePurchase]);\r\n\r\n\r\n const logOff = () => {\r\n fetch(\"/api/Account/LogOff\", { method: \"POST\" })\r\n .then(function (response) {\r\n if (response.ok) {\r\n sessionStorage.clear();\r\n return response.json();\r\n }\r\n })\r\n .then(function (result) {\r\n if (result.Status) {\r\n this.dispatch(getUser());\r\n toggleDrop();\r\n history.push(\"/\");\r\n } else {\r\n console.log(result);\r\n }\r\n window.location.reload();\r\n })\r\n .catch(function (error) {\r\n window.location.reload();\r\n console.log(error);\r\n });\r\n };\r\n\r\n const handleClose = () => {\r\n setModalShow(false)\r\n }\r\n\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n \r\n {\r\n metaPixelService.simpleEvent('track', 'Contact');\r\n window.location.href = \"mailto: \" + props.MailContact;\r\n e.preventDefault();\r\n }}\r\n >\r\n {props.MailContact}\r\n \r\n \r\n
\r\n
\r\n {/* ¿Cómo ganar a través de Red Godínez */}\r\n Síguenos\r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n \r\n \"RedGodínez\"\r\n \r\n
\r\n\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n

Escritorio

\r\n \r\n {history.location.pathname != \"/checkout\" && (\r\n \r\n \r\n \r\n \r\n

Mi mochila

\r\n \r\n )}\r\n\r\n {user.isAuthenticated ? (\r\n \r\n \r\n \r\n \"ICO\"\r\n \r\n \r\n

¡Hola!

\r\n
{user.userName}
\r\n
\r\n \r\n \r\n \r\n Mis compras\r\n \r\n \r\n Mis tarjetas\r\n \r\n \r\n \r\n \r\n ) : (\r\n \r\n \r\n

MI GAFETE

\r\n

Iniciar sesión

\r\n
\r\n \r\n \"ICO\"\r\n \r\n \r\n )}\r\n
\r\n
\r\n\r\n
\r\n \r\n \r\n \r\n \r\n

Home

\r\n \r\n {history.location.pathname != \"/checkout\" && (\r\n \r\n \r\n \r\n \r\n

Mi mochila

\r\n \r\n )}\r\n\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
Únete
\r\n

\r\n Al corporativo más Godín de México… con promos en artículos chidos y una cuponera que ni tu jefe tiene\r\n

\r\n
\r\n \r\n
\r\n\r\n {showLogeo === false ? : }\r\n \r\n \r\n \r\n
\r\n
\r\n\r\n setStateAside(\"\")}\r\n />\r\n\r\n
\r\n );\r\n};\r\n\r\nexport default Header;\r\n","import React, {useEffect, useState} from 'react'\r\nimport { Link } from 'react-router-dom';\r\nimport { metaPixelService } from '../../services/metaPixel.service'\r\nimport './footer.scss'\r\n\r\nconst Footer = (props) => {\r\n const [currentYear, setCurrentYear] = useState(0);\r\n\r\n useEffect(() => {\r\n const year = new Date();\r\n setCurrentYear(year.getFullYear());\r\n }, []);\r\n\r\n return (\r\n \r\n )\r\n}\r\n\r\nexport default Footer;\r\n","import React from 'react';\r\nimport { Modal } from 'reactstrap';\r\nimport Spinner from 'react-spinkit';\r\nimport './blockScreen.scss';\r\n\r\nconst BlockScreen = ({ blocking}) => {\r\n\r\n return (\r\n \r\n
\r\n \r\n
\r\n
\r\n )\r\n}\r\n\r\nexport default BlockScreen","import { useState } from 'react';\r\nimport moment from 'moment';\r\n\r\nconst getInstallPromptLastSeenAt = (promptName) => localStorage.getItem(promptName);\r\n\r\nconst setInstallPromptSeenToday = (promptName) => {\r\n const today = moment().toISOString();\r\n localStorage.setItem(promptName, today);\r\n};\r\n\r\nfunction getUserShouldBePromptedToInstall(promptName, daysToWaitBeforePromptingAgain) {\r\n const lastPrompt = moment(getInstallPromptLastSeenAt(promptName));\r\n const daysSinceLastPrompt = moment().diff(lastPrompt, 'days');\r\n return isNaN(daysSinceLastPrompt) || daysSinceLastPrompt > daysToWaitBeforePromptingAgain;\r\n}\r\n\r\nconst useShouldShowPrompt = (promptName, daysToWaitBeforePromptingAgain = 30) => {\r\n const [userShouldBePromptedToInstall, setUserShouldBePromptedToInstall] = useState(\r\n getUserShouldBePromptedToInstall(promptName, daysToWaitBeforePromptingAgain)\r\n );\r\n\r\n const handleUserSeeingInstallPrompt = () => {\r\n setUserShouldBePromptedToInstall(false);\r\n setInstallPromptSeenToday(promptName);\r\n };\r\n\r\n return [userShouldBePromptedToInstall, handleUserSeeingInstallPrompt];\r\n};\r\nexport default useShouldShowPrompt;","import useShouldShowPrompt from './shouldShowPrompt';\r\n\r\nconst iosInstallPromptedAt = 'iosInstallPromptedAt';\r\n\r\nconst isIOS = () => {\r\n // @ts-ignore\r\n if (navigator.standalone) {\r\n //user has already installed the app\r\n return false;\r\n }\r\n const ua = window.navigator.userAgent;\r\n const isIPad = !!ua.match(/iPad/i);\r\n const isIPhone = !!ua.match(/iPhone/i);\r\n return isIPad || isIPhone;\r\n};\r\n\r\nconst useIosInstallPrompt = () => {\r\n const [userShouldBePromptedToInstall, handleUserSeeingInstallPrompt] = useShouldShowPrompt(iosInstallPromptedAt);\r\n\r\n return [isIOS() && userShouldBePromptedToInstall, handleUserSeeingInstallPrompt];\r\n};\r\nexport default useIosInstallPrompt;","import { useState, useEffect } from 'react';\r\nimport useShouldShowPrompt from './shouldShowPrompt';\r\n\r\nconst webInstallPromptedAt = 'webInstallPromptedAt';\r\n\r\nconst useWebInstallPrompt = () => {\r\n const [installPromptEvent, setInstallPromptEvent] = useState();\r\n const [userShouldBePromptedToInstall, handleUserSeeingInstallPrompt] = useShouldShowPrompt(webInstallPromptedAt);\r\n\r\n useEffect(() => {\r\n const beforeInstallPromptHandler = event => {\r\n event.preventDefault();\r\n\r\n // check if user has already been asked\r\n if (userShouldBePromptedToInstall) {\r\n // store the event for later use\r\n setInstallPromptEvent(event);\r\n }\r\n };\r\n window.addEventListener('beforeinstallprompt', beforeInstallPromptHandler);\r\n return () => window.removeEventListener('beforeinstallprompt', beforeInstallPromptHandler);\r\n }, [userShouldBePromptedToInstall]);\r\n\r\n const handleInstallDeclined = () => {\r\n handleUserSeeingInstallPrompt();\r\n setInstallPromptEvent(null);\r\n };\r\n\r\n const handleInstallAccepted = () => {\r\n // show native prompt\r\n installPromptEvent.prompt();\r\n\r\n // decide what to do after the user chooses\r\n installPromptEvent.userChoice.then(choice => {\r\n // if the user declined, we don't want to show the prompt again\r\n if (choice.outcome !== 'accepted') {\r\n handleUserSeeingInstallPrompt();\r\n }\r\n setInstallPromptEvent(null);\r\n });\r\n };\r\n return [installPromptEvent, handleInstallDeclined, handleInstallAccepted];\r\n};\r\nexport default useWebInstallPrompt;","import React from 'react';\r\nimport { Button, Modal, Card, CardText, CardBody, CardTitle } from 'reactstrap';\r\nimport useIosInstallPrompt from '../../hooks/iosInstallPrompt';\r\nimport useWebInstallPrompt from '../../hooks/webInstallPrompt';\r\n\r\nexport const InstallPWA = () => {\r\n const [iosInstallPrompt, handleIOSInstallDeclined] = useIosInstallPrompt();\r\n const [webInstallPrompt, handleWebInstallDeclined, handleWebInstallAccepted] = useWebInstallPrompt();\r\n\r\n if (!iosInstallPrompt && !webInstallPrompt) {\r\n return null;\r\n }\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n

Instalar App

\r\n
\r\n {iosInstallPrompt && (\r\n <>\r\n \r\n Tap\r\n \r\n then "Add to Home Screen"\r\n \r\n
\r\n \r\n
\r\n \r\n )}\r\n {webInstallPrompt && (\r\n
\r\n \r\n \r\n
\r\n )}\r\n
\r\n
\r\n
\r\n );\r\n};","import React from 'react'\r\nimport { useSelector } from \"react-redux\";\r\n\r\nimport './whatsAppButton.scss'\r\n\r\nexport default function WhatsAppButton() {\r\n const phone = useSelector(state => state.settings.whatsApp);\r\n //console.log(phone)\r\n\r\n if (!phone) return <>;\r\n return (\r\n \r\n \r\n \r\n )\r\n}\r\n","export const setWhatsApp = (payload) => {\r\n return {\r\n type: \"Set_WhatsApp\",\r\n payload,\r\n };\r\n};\r\n","import React, { Component } from 'react';\r\nimport Header from '../components/header';\r\nimport Footer from '../components/footer';\r\nimport BlockScreen from '../components/blockScreen';\r\nimport { InstallPWA } from '../components/pwa/installPWA';\r\nimport { connect } from 'react-redux';\r\nimport WhatsAppButton from '../components/whatsAppButton';\r\nimport { setWhatsApp } from '../store/actions/settings.actions';\r\n\r\nclass Layout extends Component {\r\n static displayName = Layout.name;\r\n constructor() {\r\n super()\r\n\r\n this.state = {\r\n infoSetting: \"\",\r\n blocking: false\r\n }\r\n }\r\n\r\n componentWillMount() {\r\n this.infoSetting();\r\n if (localStorage.getItem('pruchaseList') == undefined) localStorage.setItem('pruchaseList', \"[]\");\r\n if (localStorage.getItem('pruchaseTotal') == undefined) localStorage.setItem('pruchaseTotal', 0);\r\n }\r\n\r\n infoSetting = () => {\r\n fetch(\"/api/Account/SiteInfoSetting\", { method: 'GET' })\r\n .then(response => response.json())\r\n .then(result => {\r\n this.setState({ infoSetting: result });\r\n this.props.setWhatsApp(result.WhatsApp);\r\n })\r\n .catch(error => console.log('error', error));\r\n }\r\n\r\n toggleBlocking = () => {\r\n this.setState({ blocking: !this.state.blocking });\r\n }\r\n\r\n render() {\r\n return \r\n \r\n
\r\n
\r\n {this.props.children}\r\n
\r\n