"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[1057],{81451:(n,e,t)=>{t.r(e),t.d(e,{default:()=>jn});var r=t(67294),i=t(63742),o=t(71893),a=t(30305),u=t(46229);function c(n,e){return e||(e=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}}))}function l(){var n=c(["\n display: flex;\n flex-direction: column;\n"]);return l=function(){return n},n}function s(){var n=c(["\n position: absolute;\n bottom: 20px;\n right: 20px;\n cursor: pointer;\n font-size: 1;\n svg {\n margin-left: 5px;\n width: 0.9rem;\n }\n "," {\n position: relative;\n right: 0;\n display: flex;\n align-items: center;\n }\n"]);return s=function(){return n},n}function f(){var n=c(["\n display: flex;\n justify-content: space-between;\n"]);return f=function(){return n},n}function p(){var n=c(["\n border-radius: 50%;\n height: 2.7rem;\n width: 2.7rem;\n"]);return p=function(){return n},n}function d(){var n=c(["\n font-size: ",";\n line-height: ",";\n color: ",";\n margin-left: ",";\n"]);return d=function(){return n},n}function g(){var n=c(["\n justify-content: center;\n align-items: center;\n display: flex;\n"]);return g=function(){return n},n}function m(){var n=c(["\n background-color: ",";\n padding: 4px ",";\n border-radius: ",";\n margin-right: ",";\n margin-bottom: ",";\n font-size: 12px;\n"]);return m=function(){return n},n}function h(){var n=c(["\n display: flex;\n justify-content: space-between;\n margin-top: ",";\n"]);return h=function(){return n},n}function v(){var n=c(["\n display: flex;\n flex-wrap: wrap;\n"]);return v=function(){return n},n}function y(){var n=c(["\n padding: 0 ",";\n align-self: flex-start;\n margin-right: ",";\n :hover {\n border: 1px solid ",";\n }\n"]);return y=function(){return n},n}var b=o.ZP.section(l()),w=o.ZP.span(s(),a.B.tabletPortrait),x=o.ZP.section(f()),P=o.ZP.img(p()),E=o.ZP.h2(d(),(function(n){return n.theme.typography.body1Regular.size}),(function(n){return n.theme.typography.body1Regular.lineHeight}),(function(n){return n.theme.colors.black}),(function(n){return n.theme.spacing.spacing01})),j=o.ZP.div(g()),O=o.ZP.span(m(),(function(n){return n.theme.colors.white}),(function(n){return n.theme.spacing.spacing02}),(function(n){return n.theme.spacing.spacing03}),(function(n){return n.theme.spacing.spacing01}),(function(n){return n.theme.spacing.spacing01})),S=o.ZP.div(h(),(function(n){return n.theme.spacing.spacing01})),k=o.ZP.div(v()),_=(0,o.ZP)(u.z)(y(),(function(n){return n.theme.spacing.spacing01}),(function(n){return n.theme.spacing.spacing02}),(function(n){return n.theme.colors.environment.percent20}));const Z=function(n){var e=n.title,t=n.image,o=n.start,a=n.showBody,u=n.handleReset,c=n.setShowBody,l=n.appliedFilters;return r.createElement(b,null,r.createElement(x,null,r.createElement(j,null,r.createElement(P,{src:t,alt:e}),r.createElement(E,null,e)),a&&r.createElement(w,{onClick:function(){return c(!1)}},r.createElement("span",null,"Minimizar"),r.createElement(i.J,{icon:"chevron_up"})),!a&&!!l.length&&r.createElement(w,{onClick:function(){return c(!0)}},r.createElement("span",null,"Abrir"),r.createElement(i.J,{icon:"chevron_down"}))),r.createElement(S,null,r.createElement(k,null,l.map((function(n){return r.createElement(O,{key:n.label},n.label)})))),!a&&!l.length&&r.createElement(_,{id:"start-assistant",onClick:function(){u(),c(!0)}},o))};function A(n,e){return e||(e=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}}))}function F(){var n=A(["\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n"]);return F=function(){return n},n}function R(){var n=A(["\n display: flex;\n flex-direction: column;\n "," {\n flex-direction: row;\n justify-content: space-between;\n }\n"]);return R=function(){return n},n}function D(){var n=A([""]);return D=function(){return n},n}function z(){var n=A(["\n padding: 0 ",";\n margin-right: ",";\n margin-top: ",";\n :hover {\n border: 1px solid ",";\n }\n"]);return z=function(){return n},n}function C(){var n=A(["\n background-color: ",";\n padding: 0 ",";\n margin-right: ",";\n margin-top: ",";\n "," {\n margin-left: ",";\n margin-right: 0;\n }\n border: 1px solid ",";\n color: ",";\n height: 2rem;\n"]);return C=function(){return n},n}function L(){var n=A(["\n display: flex;\n align-items: end;\n margin-top: ",";\n "," {\n margin-top: 0;\n }\n"]);return L=function(){return n},n}var B=o.ZP.section(F()),q=o.ZP.div(R(),a.B.tabletPortrait),I=o.ZP.div(D()),T=(0,o.ZP)(u.z)(z(),(function(n){return n.theme.spacing.spacing01}),(function(n){return n.theme.spacing.spacing02}),(function(n){return n.theme.spacing.spacing02}),(function(n){return n.theme.colors.environment.percent20})),M=(0,o.ZP)(u.z)(C(),(function(n){return n.theme.colors.white}),(function(n){return n.theme.spacing.spacing01}),(function(n){return n.theme.spacing.spacing02}),(function(n){return n.theme.spacing.spacing02}),a.B.tabletPortrait,(function(n){return n.theme.spacing.spacing02}),(function(n){return n.theme.colors.environment.percent20}),(function(n){return n.theme.colors.black})),N=o.ZP.div(L(),(function(n){return n.theme.spacing.spacing02}),a.B.tabletPortrait);const U=function(n){var e=n.options,t=n.question,i=n.isLoading,o=n.handleReset,a=n.handleFilter,u=n.appliedFilters,c=n.undoLastFilter;return r.createElement(B,null,r.createElement("p",null,t),r.createElement(q,null,r.createElement(I,null,e.map((function(n){return r.createElement(T,{key:n.label,disabled:i,onClick:function(){return a(n)}},n.label)}))),r.createElement(N,null,!!u.length&&r.createElement(r.Fragment,null,r.createElement(M,{onClick:c,disabled:i},"Atrás"),r.createElement(M,{onClick:o,disabled:i},"Resetear")))))};function H(n,e){return e||(e=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}}))}function J(){var n=H(["\n display: flex;\n flex-direction: column;\n background-color: ",";\n padding: ",";\n border-radius: 8px;\n position: relative;\n"]);return J=function(){return n},n}function K(){var n=H(["\n position: absolute;\n bottom: 20px;\n right: 20px;\n "," {\n position: relative;\n right: 0;\n display: flex;\n align-items: center;\n }\n"]);return K=function(){return n},n}function Q(){var n=H(["\n display: flex;\n flex-direction: column;\n"]);return Q=function(){return n},n}function $(){var n=H(["\n display: flex;\n justify-content: space-between;\n"]);return $=function(){return n},n}function V(){var n=H(["\n font-size: ",";\n line-height: ",";\n color: ",";\n margin-left: ",";\n"]);return V=function(){return n},n}function Y(){var n=H(["\n display: flex;\n justify-content: center;\n align-items: center;\n"]);return Y=function(){return n},n}function G(){var n=H(["\n margin-top: ",";\n\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n"]);return G=function(){return n},n}function W(){var n=H(["\n display: flex;\n justify-content: space-between;\n"]);return W=function(){return n},n}function X(){var n=H([""]);return X=function(){return n},n}function nn(){var n=H(["\n padding: 0 ",";\n margin-right: ",";\n :hover {\n border: 1px solid ",";\n }\n"]);return nn=function(){return n},n}function en(){var n=H(["\n background-color: ",";\n padding: 4px ",";\n border-radius: 1.2rem;\n font-size: 12px;\n margin-right: ","; ;\n"]);return en=function(){return n},n}function tn(){var n=H(["\n background-color: ",";\n padding: 0 ",";\n margin-left: ",";\n border: 1px solid ",";\n color: ",";\n"]);return tn=function(){return n},n}function rn(){var n=H(["\n display: flex;\n justify-content: space-between;\n margin-bottom: 15px;\n"]);return rn=function(){return n},n}function on(){var n=H([""]);return on=function(){return n},n}var an,un=o.ZP.div(J(),(function(n){return n.theme.colors.environment.percent05}),(function(n){return n.theme.spacing.spacing03})),cn=(o.ZP.span(K(),a.B.tabletPortrait),o.ZP.section(Q()),o.ZP.section($()),o.ZP.h2(V(),(function(n){return n.theme.typography.body1Regular.size}),(function(n){return n.theme.typography.body1Regular.lineHeight}),(function(n){return n.theme.colors.black}),(function(n){return n.theme.spacing.spacing01})),o.ZP.div(Y()),o.ZP.section(G(),(function(n){return n.theme.spacing.spacing01})),o.ZP.div(W()),o.ZP.div(X()),(0,o.ZP)(u.z)(nn(),(function(n){return n.theme.spacing.spacing01}),(function(n){return n.theme.spacing.spacing02}),(function(n){return n.theme.colors.environment.percent20})),o.ZP.span(en(),(function(n){return n.theme.colors.white}),(function(n){return n.theme.spacing.spacing02}),(function(n){return n.theme.spacing.spacing01})),(0,o.ZP)(u.z)(tn(),(function(n){return n.theme.colors.white}),(function(n){return n.theme.spacing.spacing01}),(function(n){return n.theme.spacing.spacing02}),(function(n){return n.theme.colors.environment.percent20}),(function(n){return n.theme.colors.black})),o.ZP.div(rn()),o.ZP.div(on()),t(16550)),ln=t(28216);!function(n){n.START="search_assistant_start",n.QUESTION="search_assistant_question",n.END="search_assistant_end"}(an||(an={}));var sn=t(77410),fn={options:[],question:"Ya he preparado la selección con tus preferencias. Recuerda que puedes cambiar la selección usando los filtros del listado de productos o iniciando de nuevo este asistente. ¡Espero que te guste!"},pn="offer_promotional_price",dn=t(61434);function gn(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t0,O=(0,r.useCallback)((function(n){var e=n.name,t=n.payload;x.push(hn({event:e},t))}),[x]),S=(0,r.useCallback)((function(){x.push({event:an.START})}),[x]),k=a.title,_=a.questions,Z=void 0===_?[]:_,A=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=d.reduce((function(n,e){return e.filters?bn(n).concat(bn(e.filters)):n}),[]),t=n||h;if(Z[t]){var r=Z[t],i=r.excluded,o=void 0===i?[]:i,a=r.included,u=void 0===a?[]:a;if(null===o||void 0===o?void 0:o.length){var c=o.filter((function(n){return e.indexOf(n)>-1}));if(c.length>0)return v(t+1),A(t+1)}if(null===u||void 0===u?void 0:u.length){var l=e.every((function(n){return u.includes(n)}));return l?Z[t]:(v(t+1),A(t+1))}return Z[t]}return b||E||(O({name:an.END,payload:{total_results:P}}),w(!0)),fn},F=A(),R=F.options,D=F.question,z=function(n,t){var r,o=vn(hn({},n),{index:h});if(!(null===(r=o.filters)||void 0===r?void 0:r.length))return C(o,t);var a=o.filters.filter((function(n){return n.includes("=")}));if(a.length>0&&a.lengthn.length)&&(e=n.length);for(var t=0,r=new Array(e);t