"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[3161],{43161:(e,t,o)=>{o.d(t,{Hc:()=>k,aV:()=>D,h8:()=>p});var i,n=o(96540),a=o(33829),c=o(46942),l=o.n(c),r=o(48911),s=o(35421);if(!/^(3092|7828)$/.test(o.j))var d=o(37808);function m(e,t,o,n){i||(i="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var a=e&&e.defaultProps,c=arguments.length-3;if(t||0===c||(t={children:void 0}),1===c)t.children=n;else if(c>1){for(var l=Array(c),r=0;r{},categories:[],action:{target:"",label:""}},e}();function b(e,t,o,i){f||(f="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var n=e&&e.defaultProps,a=arguments.length-3;if(t||0===a||(t={children:void 0}),1===a)t.children=i;else if(a>1){for(var c=Array(a),l=0;l{let{color:t="rgba(0, 0, 0, 0.9)",i18n:o,srLabel:i}=e;return b("svg",{"aria-hidden":i?void 0:!i,"aria-label":i||void 0,role:i?"img":void 0,width:"16",height:"16",viewBox:"0 0 16 16",fill:t},void 0,i&&b("title",{},void 0,i),b("path",{d:"M12.428 7.40562L7.54559 2.54246L8.39244 1.69226L14.7251 7.99995L8.39244 14.3076L7.54559 13.4574L12.4166 8.60562H1.2749V7.40562H12.428Z",fill:t}))},N=e=>{let{color:t="rgba(0, 0, 0, 0.9)",i18n:o,srLabel:i}=e;return b("svg",{"aria-hidden":i?void 0:!i,"aria-label":i||void 0,role:i?"img":void 0,width:"16",height:"16",viewBox:"0 0 16 16",fill:t},void 0,i&&b("title",{},void 0,i),b("path",{d:"M5.95028 4.40041L9.54667 7.9968L5.94653 11.5969L6.79506 12.4455L11.2437 7.9968L6.79881 3.55188L5.95028 4.40041Z",fill:t}))};var S,L,w,x="standard",E="modern",A="dynamic",C="standard",$=/^(3092|7828)$/.test(o.j)?null:function(e){var t=e.design,o=void 0===t?"":t;return o===E?S||(S=m(N,{})):o===A?L||(L=m(h,{})):w||(w=n.createElement(n.Fragment,null))},k=/^(3092|7828)$/.test(o.j)?null:function(e){var t,o,i,a,c=e.cta,s=e.hasButtonAction,u=void 0===s||s,_=e.hasPriceCategory,g=void 0===_||_,y=e.hasTitleCategory,f=void 0===y||y,p=e.price,b=e.subtitle,h=e.title,N=e.isPriceInvalid,S=void 0!==N&&N,L=e.design,w=e.isEshops,x=e.isMobile,E=e.buttonDesign,k=e.isCustomHtml,D=w||k,H=l()("section-category-item__title font-secondary-text",v({},"section-category-item__title--".concat(L),!D)),P=l()("section-category-item__price-container",v({},"section-category-item__price-container--".concat(L),!D)),B=l()("section-category-item__price font-secondary-text",v({},"section-category-item__price--".concat(L),!D)),M=l()("section-category-item__button-container",v({},"section-category-item__button-container--".concat(L),!D)),j=l()(v({},"section-category-item__price-color",A)),z=x?"small":"medium",F=w||L===A?"#000":"#fff",I=E===C&&L===A?"primary":"neutral",O=f&&(D?m("p",{className:H},void 0,h):m(r.o5,{className:H,type:"subtitle",weight:"semibold",size:"medium",color:F},void 0,h)),T=g&&!S&&m("div",{className:P},void 0,D?n.createElement(n.Fragment,null,m("p",{className:"section-category-item__subtitle font-secondary-text"},void 0,b),m("span",{"aria-label":"category-price",className:B},void 0,p)):n.createElement(n.Fragment,null,m(r.o5,{className:j,type:"body",weight:"regular",size:"small",color:F},void 0,"".concat(b," ").concat(p)))),Z=u&&m("div",{className:M},void 0,k?n.createElement(n.Fragment,null,m("button",{className:"section-category-item__button font-secondary-text"},void 0,c),m($,{design:L})):n.createElement(n.Fragment,null,E===C?w?t||(t=m(d.$n,{hierarchy:"quiet",size:"small"},void 0,c)):o||(o=m(r.$n,{size:z,cta:c,variant:I,href:"",isSpan:!0})):w?i||(i=m("div",{className:"section-category-item__foot-link"},void 0,m("span",{},void 0,c))):a||(a=m(r.N_,{href:"",size:z,text:c,color:F,isSpan:!0}))));return n.createElement(n.Fragment,null,O,T,Z)},D=/^(3092|7828)$/.test(o.j)?null:function(e){var t=e.customStyles,o=e.shopModel,i=e.isEshops,n=e.styles,a=e.content,c=e.i18n,d=void 0===c?{gettext:function(e){return e}}:c,u=e.isMobile,_=e.elementsAlignment,g=e.isCustomHtml,y=((null==o?void 0:o.shop)||(null==o?void 0:o.storefront)||{}).domain,f=void 0===y?"":y,p=t.design,b=t.button_design,h=t.background,N=p===E||p===x,S=i||g,L=a.behavior,w=a.label,A=a.link.url,C=a.price_from,$=C.whole,D=C.currency_symbol,H=a.show_title_category,P=a.show_base_price,B=a.show_category_button,M=a.category_button_text,j=n.background_image,z=n.is_default_image,F=d.gettext("desde"),I=d.gettext("Desde"),O=Boolean(H&&w),T=Boolean(P&&$),Z=Boolean(B&&M),K=$&&"0"===$&&i,U=l()("section-category-item__header",v(v(v({"section-category-item__title--hidden":!O,"section-category-item__price--hidden":!T,"section-category-item__button--hidden":!Z,"section-category-item__price--hidden-eshops":K},"section-category-item__header--".concat(p),!S),"section-category-item__header--".concat(_),!S),"section-category-item__header--".concat(h),h&&N&&!S)),V=l()("section-category-item",v(v({},"section-category-item--".concat(L),L),"section-category-item--".concat(p),!S)),q=T?"".concat(D).concat($):"",G=T?"".concat(D," ").concat($):"",J=i?{price:G,subtitle:I}:{price:q,subtitle:F},Q=l()("section-category-item__container",v(v({},"section-category-item__container--".concat(p),!S),"section-category-item__container--".concat(h),h&&N&&!S)),R=l()("section-category-item__image-container",v({"section-category-item__image-default":z||i,"section-category-item__image-custom":!z||!i},"section-category-item__image-container--".concat(p),!S));return m(r.rc,{className:V,target:A,isSelf:i,domain:f},void 0,m("div",{className:Q},void 0,m("div",{className:R},void 0,m(s.Image,{className:"section-category-item__image",src:j,onload:"on",alt:w})),m("div",{className:U},void 0,m(k,{cta:M,price:J.price,subtitle:J.subtitle,title:w,hasButtonAction:Z,hasPriceCategory:T,hasTitleCategory:O,isPriceInvalid:K,design:p,isEshops:i,isMobile:u,buttonDesign:b,isCustomHtml:g}))))}}}]); //# sourceMappingURL=3161.e6da455a.js.map