(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[24],{CRMQ:function(e,t,a){"use strict";a.r(t);var o=a("nKUr"),r=a("vJKn"),c=a.n(r),n=a("rg98"),s=a("H+61"),l=a("UlJF"),i=a("+Css"),d=a("7LId"),m=a("VIvw"),p=a("iHvq"),u=a("cpVT"),j=a("q1tI"),b=a.n(j),h=a("0RuX"),f=a("F366"),g=a("E+oP"),x=a.n(g),O=a("20a2"),v=a.n(O),N=a("3WF5"),w=a.n(N),k=a("xEri"),_=a("FMJ8"),y=a("G/Zh"),C=a("nraC"),L=a.n(C),R=a("komj");function P(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,o=Object(p.a)(e);if(t){var r=Object(p.a)(this).constructor;a=Reflect.construct(o,arguments,r)}else a=o.apply(this,arguments);return Object(m.a)(this,a)}}var D=function(e){Object(d.a)(a,e);var t=P(a);function a(e){var o;return Object(s.default)(this,a),o=t.call(this,e),Object(u.a)(Object(i.a)(o),"getFooterData",function(){var e=Object(n.a)(c.a.mark((function e(t){var a,r,n,s,l,i,d,m,p,u;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("BS",(a=t&&t.LoggedInSession||"")&&"undefined"!==typeof a||(a=!1),r="LP",window&&(r=Object(k.getBrandName)(window).brand),s={brand:r,channel:"WEB",page:"BS",guest:n=a?"no":"yes",pagePath:"yes"===n?"/footerGuest":"/footerLogged"},l=o.props.setFooterData,i=o.context,d=i.updatefooterData,m=i.snbfooterData,p="?",(u=Object.keys(s)||[]).map((function(e,t){p=to.height?(c=r-o.height,e.style.top=r-a.height+"px",t.style.height=parseInt(window.getComputedStyle(t).height.replace(/px/g,""),10)+c+"px"):(e.style.removeProperty("top"),t.style.removeProperty("height"))}},{key:"componentWillReceiveProps",value:function(e){(this.props.loginDetails&&this.props.loginDetails.LoggedInSession)!==(e.loginDetails&&e.loginDetails.LoggedInSession)&&(this.getFooterData(e.loginDetails),this.setState({loginDetails:e.loginDetails}))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.snbfooterData,a=e.loginDetails;t&&(this.getFooterData(a),this.setState({loginDetails:this.props.loginDetails}))}},{key:"render",value:function(){var e=this;var t=this.state.footerContent||"",a=(this.props.loginDetails&&this.props.loginDetails.LoggedInSession,this.props),r=a.loginDetails,c=a.footerClassName;r&&r.cartHeaderResponse&&r.cartHeaderResponse.cartHeaderDetails&&r.cartHeaderResponse.cartHeaderDetails.firstName,r&&r.cartHeaderResponse&&r.cartHeaderResponse.cartHeaderDetails&&r.cartHeaderResponse.cartHeaderDetails.lastName,r&&r.cartHeaderResponse&&r.cartHeaderResponse.cartHeaderDetails&&r.cartHeaderResponse.cartHeaderDetails.firstName_full;return Object(o.jsxs)("footer",{className:c+(this.props.enableCartRegaloBestPromotions?" footer-main-pmr":" footer-main"),children:[Object(o.jsxs)("div",{className:"container",children:[Object(o.jsxs)("div",{className:"row align-items-top",children:[Object(o.jsx)("div",{className:"col-12 pb-3 pb-lg-5"}),Object(o.jsx)("div",{className:"col-12 col-lg-8 footer-pmr",children:Object(o.jsx)("nav",{children:Object(o.jsx)("div",{className:"row",children:Object(o.jsxs)("div",{className:"card-columns w-100 footer-vertical-display ".concat(t.verticalLink5?"card-columns-5":t.verticalLink4?"card-columns-4":"card-columns-3"),children:[Object(o.jsx)("div",{className:"col-12 col-lg order-1 p-0 footer-pmr",children:t.verticalLink1&&w()(t.verticalLink1,(function(t,a){return Object(o.jsx)(b.a.Fragment,{children:null!=t&&null!=t.displayName?Object(o.jsxs)("div",{className:"card m-footer__accordion card-pmr-mob",onClick:e.toggleClass.bind(e,"active1"),children:[Object(o.jsxs)("div",{className:"card-header d-flex justify-content-between align-items-center","data-toggle":"collapse","data-target":"#collapseSupport1","aria-expanded":e.state.accordion.active1,"aria-controls":"#collapseSupport",id:"support",children:[Object(o.jsx)("h3",{className:"a-footer__sectionTitle",children:t&&t.displayName}),Object(o.jsx)("i",{className:"icon-arrow_down d-block d-lg-none"})]}),Object(o.jsx)("div",{className:e.state.accordion.active1?"collapse show":"collapse","aria-labelledby":"support",id:"#collapseSupport",children:Object(o.jsx)("div",{className:"card-body pt-0 pb-lg-0",children:Object(o.jsx)("ul",{className:"m-0",children:!x()(t&&t.displayName)&&!x()(t&&t.links)&&w()(t&&t.links,(function(t,a){var r=t.text;return r=r.toLowerCase(),Object(o.jsx)("li",{className:"p-0",children:"tiempo aire"===r?Object(o.jsx)("a",{className:"a-footer__link",href:"#",onClick:function(){return e.redirectToURL(t.url,t.text)},children:t.text}):x()(t.url)?t.text:Object(o.jsx)("a",{className:"a-footer__link",href:t.url,children:t.text})},a)}))})})})]}):null},a)}))}),Object(o.jsx)("div",{className:"col-12 col-lg order-2 p-0 footer-pmr",children:!x()(t)&&!x()(t.verticalLink2)&&w()(t.verticalLink2,(function(a,r){return Object(o.jsx)(b.a.Fragment,{children:null!=a&&null!=a.displayName?Object(o.jsxs)("div",{className:"card m-footer__accordion card-pmr-mob",onClick:e.toggleClass.bind(e,"active2"),children:[Object(o.jsxs)("div",{className:"card-header d-flex justify-content-between align-items-center","data-toggle":"collapse","data-target":"#collapseRefundAndCancel","aria-expanded":e.state.accordion.active2,"aria-controls":"#collapseRefundAndCancel",id:"refundAndCancel",children:[Object(o.jsx)("h3",{className:"a-footer__sectionTitle",children:a&&a.displayName}),Object(o.jsx)("i",{className:"icon-arrow_down d-block d-lg-none"})]}),Object(o.jsx)("div",{className:e.state.accordion.active2?"collapse show":"collapse","aria-labelledby":"refundAndCancel",id:"#collapseRefundAndCancel",children:Object(o.jsx)("div",{className:"card-body pt-0 pb-lg-0",children:Object(o.jsx)("ul",{className:"m-0",children:!x()(t&&a)&&!x()(a&&a.links)&&w()(a&&a.links,(function(t,a){var r=t.text;return r=r&&r.toLowerCase(),Object(o.jsx)("li",{className:"p-0",children:"tiempo aire"===r?Object(o.jsx)("a",{className:"a-footer__link",href:"#",onClick:function(){return e.redirectToURL(t.url,t.text)},children:t.text}):x()(t.url)?Object(o.jsx)("span",{className:"a-footer__noLink",children:t.text}):Object(o.jsx)("a",{className:"a-footer__link",href:t.url,children:t.text})},a)}))})})})]}):null},r)}))}),Object(o.jsx)("div",{className:"col-12 col-lg order-3 p-0 footer-pmr",children:!x()(t)&&!x()(t.verticalLink3)&&w()(t.verticalLink3,(function(t,a){return Object(o.jsx)(b.a.Fragment,{children:null!=t&&null!=t.displayName?Object(o.jsxs)("div",{className:"card m-footer__accordion card-pmr-mob",onClick:e.toggleClass.bind(e,"active3"),children:[Object(o.jsxs)("div",{className:"card-header d-flex justify-content-between align-items-center","data-toggle":"collapse","data-target":"#collapseAboutUss","aria-expanded":e.state.accordion.active3,"aria-controls":"collapseAboutUs",id:"aboutUs",children:[Object(o.jsx)("h3",{className:"a-footer__sectionTitle",children:t&&t.displayName}),Object(o.jsx)("i",{className:"icon-arrow_down d-block d-lg-none"})]}),Object(o.jsx)("div",{className:e.state.accordion.active3?"collapse show":"collapse","aria-labelledby":"aboutUs",id:"#collapseAboutUss",children:Object(o.jsx)("div",{className:"card-body pt-0 pb-lg-0",children:Object(o.jsx)("ul",{className:"m-0",children:!x()(t)&&!x()(t.links)&&w()(t.links,(function(t,a){var r=t.text;return r=r&&r.toLowerCase(),Object(o.jsx)("li",{className:"p-0",children:"tiempo aire"===r?Object(o.jsx)("a",{className:"a-footer__link",href:"#",onClick:function(){return e.redirectToURL(t.url,t.text)},children:t.text}):x()(t.url)?t.text:Object(o.jsx)("a",{className:"a-footer__link",href:t.url,children:t.text})},a)}))})})})]}):null},a)}))}),Object(o.jsx)("div",{className:"col-12 col-lg order-4 p-0 footer-pmr",children:!x()(t)&&!x()(t.verticalLink4)&&w()(t.verticalLink4,(function(t,a){return Object(o.jsx)(b.a.Fragment,{children:null!=t&&null!=t.displayName?Object(o.jsxs)("div",{className:"card m-footer__accordion card-pmr-mob",onClick:e.toggleClass.bind(e,"active4"),children:[Object(o.jsxs)("div",{className:"card-header d-flex justify-content-between align-items-center","data-toggle":"collapse","data-target":"#collapsePromo","aria-expanded":e.state.accordion.active4,"aria-controls":"collapsePromo",id:"Promotion",children:[Object(o.jsx)("h3",{className:"a-footer__sectionTitle",children:t&&t.displayName}),Object(o.jsx)("i",{className:"icon-arrow_down d-block d-lg-none"})]}),Object(o.jsx)("div",{className:e.state.accordion.active4?"collapse show":"collapse","aria-labelledby":"Promotion",id:"#collapsePromo",children:Object(o.jsx)("div",{className:"card-body pt-0 pb-lg-0",children:Object(o.jsx)("ul",{className:"m-0",children:!x()(t)&&!x()(t.links)&&w()(t.links,(function(t,a){var r=t.text;return r=r&&r.toLowerCase(),Object(o.jsx)("li",{className:"p-0",children:"tiempo aire"===r?Object(o.jsx)("a",{className:"a-footer__link",href:"#",onClick:function(){return e.redirectToURL(t.url,t.text)},children:t.text}):x()(t.url)?t.text:Object(o.jsx)("a",{className:"a-footer__link",href:t.url,children:t.text})},a)}))})})})]}):null},a)}))}),Object(o.jsx)("div",{className:"col-12 col-lg order-4 p-0 footer-pmr",children:!x()(t)&&!x()(t.verticalLink5)&&w()(t.verticalLink5,(function(t,a){return Object(o.jsx)(b.a.Fragment,{children:null!=t&&null!=t.displayName?Object(o.jsxs)("div",{className:"card m-footer__accordion card-pmr-mob",onClick:e.toggleClass.bind(e,"active5"),children:[Object(o.jsxs)("div",{className:"card-header d-flex justify-content-between align-items-center","data-toggle":"collapse","data-target":"#collapsePromo","aria-expanded":e.state.accordion.active5,"aria-controls":"collapsePromo",id:"Promotion",children:[Object(o.jsx)("h3",{className:"a-footer__sectionTitle",children:t&&t.displayName}),Object(o.jsx)("i",{className:"icon-arrow_down d-block d-lg-none"})]}),Object(o.jsx)("div",{className:e.state.accordion.active5?"collapse show":"collapse","aria-labelledby":"Promotion",id:"#collapsePromo",children:Object(o.jsx)("div",{className:"card-body pt-0 pb-lg-0",children:Object(o.jsx)("ul",{className:"m-0",children:!x()(t)&&!x()(t.links)&&w()(t.links,(function(t,a){var r=t.text;return r=r&&r.toLowerCase(),Object(o.jsx)("li",{className:"p-0",children:"tiempo aire"===r?Object(o.jsx)("a",{className:"a-footer__link",href:"#",onClick:function(){return e.redirectToURL(t.url,t.text)},children:t.text}):x()(t.url)?t.text:Object(o.jsx)("a",{className:"a-footer__link",href:t.url,children:t.text})},a)}))})})})]}):null},a)}))})]})})})}),Object(o.jsx)("div",{className:this.props.enableCartRegaloBestPromotions?"col-12 col-lg-4 d-footer--padding card-pmr-footer":"col-12 col-lg-4 d-footer--padding",children:Object(o.jsx)("div",{className:"row",children:Object(o.jsx)("div",{className:this.props.enableCartRegaloBestPromotions?"col-12 order-2 pt-3 text-center card-pmr-footer":"col-12 order-2 pt-3 text-center",children:!x()(t)&&!x()(t.newsLetter)&&w()(t.newsLetter.links,(function(e,t){return"Social"===e.displayStyle?Object(o.jsx)("a",{className:"a-footer__socialMedia",href:e.url,children:Object(o.jsx)("i",{className:"icon-"+(e.text||"").toLowerCase()})},t.toString()):Object(o.jsx)("p",{className:"a-footer__contact text-lg-left",dangerouslySetInnerHTML:{__html:e.text}},t.toString())}))})})}),Object(o.jsx)("div",{className:this.props.enableCartRegaloBestPromotions?"col-12 pt-4 pt-lg-5 card-pmr-footer":"col-12 pt-4 pt-lg-5",children:Object(o.jsx)("hr",{})})]}),Object(o.jsxs)("div",{className:"row align-items-center",children:[Object(o.jsx)("div",{className:"col-12 ".concat(this.props.enableCartRegaloBestPromotions&&"pmr-footer"," ").concat(x()(t&&t.socialNetworking)||0!==t.socialNetworking.length?"col-lg-4":"col-lg-5"," text-lg-left text-center order-1 pt-4 pb-2 pt-lg-3 pb-lg-3"),children:!x()(t)&&!x()(t.horizontalLink1)&&w()(t.horizontalLink1.links,(function(e,t){return Object(o.jsx)("span",{className:"a-footer__comments",children:"Link"==e["@type"]?Object(o.jsx)("a",{className:"a-footer__comments",href:e.url,children:e.text}):" "+e.text},t)}))}),Object(o.jsx)("div",{className:"col-12 ".concat(this.props.enableCartRegaloBestPromotions&&"pmr-footer"," ").concat(x()(t&&t.socialNetworking)||0!==t.socialNetworking.length?"col-lg-4":"col-lg-6"," text-center order-2 pb-4 pb-lg-0"),children:!x()(t)&&!x()(t.horizontalLink2)&&w()(t.horizontalLink2.links,(function(e,a){var r=t.horizontalLink2.links.length;return Object(o.jsxs)(b.a.Fragment,{children:[Object(o.jsx)(y.a,{className:"a-footer__disclaimers",href:e.url,target:"_blank",children:e.text}),r-1!==a&&Object(o.jsx)("span",{className:"a-footer__slash",children:"/"})]},a)}))}),Object(o.jsx)("div",{className:this.props.enableCartRegaloBestPromotions?"col-12 col-lg-4 text-lg-right text-center order-3 pb-4 pb-lg-0 pmr-footer":"col-12 col-lg-4 text-lg-right text-center order-3 pb-4 pb-lg-0",children:!x()(t)&&!x()(t.socialNetworking)&&w()(t.socialNetworking.links,(function(e,t){var a=RegExp.prototype.test.bind(/(<([^>]+)>)/i),r=null!==e.text&&a(e.text);return Object(o.jsxs)(b.a.Fragment,{children:["Profeco"!==e.name&&Object(o.jsx)("a",{className:"a-footer__socialMedia",href:e.url,children:Object(o.jsx)(R.default,{src:"../../../../static/images/socialMediaFooter/".concat(e.name,".svg"),className:"mr-2 i-footer",alt:"icon"})}),r&&e.text&&Object(o.jsx)("span",{className:"profecco_main_container",dangerouslySetInnerHTML:{__html:e.text}})]},t)}))})]})]}),Object(o.jsx)("div",{className:"container-fluid m-footer__misc "+Object(k.getSiteId)(),children:Object(o.jsx)("div",{className:this.props.enableCartRegaloBestPromotions?"col-12 col-lg-12 text-center pmr-footer":"col-12 col-lg-12 text-center",children:!x()(t)&&w()(t.bottomHTML&&t.bottomHTML.links,(function(e,t){return Object(o.jsx)("p",{className:"a-footer__misc",children:e.text},t)}))})})]})}}]),a}(b.a.PureComponent);Object(u.a)(D,"contextType",h.b),D.defaultProps={setFooterData:function(){},footerClassName:""},t.default=D}}]);