(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[9219,7113],{81023:(e,t,n)=>{"use strict";n.d(t,{Fm:()=>l,Jd:()=>a,RJ:()=>r,_f:()=>s,eR:()=>o,il:()=>i,t6:()=>c,wn:()=>d});const o="ArrowLeft",i="ArrowUp",r="ArrowRight",a="ArrowDown",l="Enter",s="Escape",c="Space",d="Tab"},33540:(e,t,n)=>{"use strict";n.d(t,{Bv:()=>J,yQ:()=>Y});var o=n(58168),i=n(80045),r=n(89379),a=n(96540),l=n(46942),s=n.n(l),c=n(69247),d=n(33734),u=n(81023),p=n(97987),f=n(1246),v=n(73620),m=n(8494),h=n(85690),b=n(86306),y=n(98746),g=n(42206),T=n(83611),w=n(82071),A=n(7267),_=n(81003),E=n(44896),C=n(23444),S={module:"@andes/floating-menu",locale:"en-US",translations:{"andes-floating-menuNo hay resultados":[null,"No results"],"andes-floating-menuAbrir buscador":[null,"Open search tool"],"andes-floating-menuBuscar":[null,"Search"],"andes-floating-menuBorrar":[null,"Delete search"]}},N={module:"@andes/floating-menu",locale:"es-AR",translations:{"andes-floating-menuNo hay resultados":[null,"No hay resultados"],"andes-floating-menuAbrir buscador":[null,"Abrir buscador"],"andes-floating-menuBuscar":[null,"Buscar"],"andes-floating-menuBorrar":[null,"Borrar"]}},L={module:"@andes/floating-menu",locale:"pt-BR",translations:{"andes-floating-menuNo hay resultados":[null,"Sem resultados"],"andes-floating-menuAbrir buscador":[null,"Abrir mecanismo de busca"],"andes-floating-menuBuscar":[null,"Procurar"],"andes-floating-menuBorrar":[null,"Excluir"]}};const P="FloatingMenuGroup",x=["FloatingMenuGroup","DropdownGroup"],R="menu",O="andes-floating-menu-item-hover";var M=(e,t,n,o)=>{const{allowUnselect:i,children:l,defaultOpen:s,defaultValue:c,listId:d,menuMaxHeight:v,multiple:m,offset:h,onChange:b,onClose:y,onOpen:g,open:T,popperOptions:w,searchConfig:A,style:_,type:E,value:C,width:S}=o,N=(0,a.useMemo)((()=>{var e;if(!l)return!1;const t=a.Children.toArray(l)[0];return(0,p.A)(x,null==t||null===(e=t.type)||void 0===e?void 0:e.displayName)}),[l]),[L,P]=(0,a.useState)(C||c),[M,I]=(0,a.useState)(!1),[k,D]=(0,a.useState)(void 0),[F,B]=(0,a.useState)("object"==typeof A&&(null==A?void 0:A.defaultValue));(0,f.A)({isDisabled:E===R||"select"===E&&!M});const V=(0,a.useMemo)((()=>void 0===C),[]);(0,a.useEffect)((()=>{V||P(C)}),[C,V]);const j=(0,a.useMemo)((()=>void 0===T),[]),z=(e,t)=>{if(!(i||m||void 0!==t&&null!=t&&t.length||void 0===L))return;V&&P(t);let n=t;!m&&Array.isArray(t)&&([n]=t),A&&D((e=>Array.isArray(n)?e:n)),"function"==typeof b&&b(e,n)},U=()=>{if(A){var e;const t=null==n||null===(e=n.current)||void 0===e?void 0:e.querySelector("label");return void setTimeout((()=>null==t?void 0:t.focus()),0)}const o=t.current;if(o){const e=(e=>{const t=Array.prototype.slice.call(e.querySelectorAll(".andes-list__item"));if(t.length){let e;return E===R&&(e=t[0].querySelector(".andes-list__item-action")||t[0].querySelector(".andes-list__item-anchor"),e)||(e=t.find((e=>0===e.tabIndex)),e||(e=t.find((e=>-1!==e.className.indexOf("andes-list__item--selected")))),e||([e]=t)),e}return null})(o);e&&(e.focus(),o.scrollTop=e.offsetTop-48)}},G=(0,a.useCallback)((e=>{if(!F)return!0;const t=e.props.primary||e.props.title;return"object"==typeof A&&"function"==typeof A.filterCondition?A.filterCondition(F,t,e):t&&(0,p.A)(t.toLowerCase(),F.toLowerCase())}),[F,"object"==typeof A&&(null==A?void 0:A.filterCondition)]),H=(0,a.useMemo)((()=>{if(!l)return null;if(N){let e=0;const t=[];return a.Children.forEach(l,((n,o)=>{const i=[];a.Children.forEach(null==n?void 0:n.props.children,(t=>{G(t)&&i.push((0,a.cloneElement)(t,{index:e,groupIndex:o})),e+=1})),i.length>0&&t.push((0,a.cloneElement)(n,{children:i}))})),t}const e=[];return a.Children.forEach(l,((t,n)=>{G(t)&&e.push((0,a.cloneElement)(t,{index:n}))})),e}),[l,N,G]);(0,a.useEffect)((()=>{if(M&&A&&void 0!==k){const n=t.current;if(n){var e;const t=null===(e=document)||void 0===e?void 0:e.getElementById("".concat(d,"-option-").concat(k));if(t&&v){const e=v-52,o=Math.floor(e/48)-1;n.scrollTop=t.offsetTop-48*o}}}}),[A,t,k,d,M]);const W=e=>{I(!0),setTimeout(U,0),"function"==typeof g&&g(e)},X=(t,o)=>{const i=e.current;I(!1),A&&(()=>{var e;const t=null==n||null===(e=n.current)||void 0===e?void 0:e.querySelector("label");null!=t&&t.control&&(t.control.value="");B(""),"object"==typeof A&&"function"==typeof A.onChange&&A.onChange("")})(),i&&!o&&setTimeout((()=>i.focus()),0),"function"==typeof y&&y()};(0,a.useEffect)((()=>{s&&setTimeout(W,0)}),[]),(0,a.useEffect)((()=>{j||(T?setTimeout(W,0):M&&X())}),[T]);return{menuProps:{visible:M,onSelectionChange:z,options:H,selectedKeys:Array.isArray(L)?L:"string"==typeof L||"number"==typeof L?[L]:[],style:(0,r.A)((0,r.A)({},v?{maxHeight:v,overflowY:"auto"}:{}),{},{width:S},_),popperOptions:w,offset:h,onClickOutside:j?e=>{X(0,!0)}:y,closeMenu:j?X:y,onSearchFocus:A?e=>{setTimeout((()=>{var e;return null===(e=n.current)||void 0===e?void 0:e.focus()}),0);const o=N?null==H?void 0:H.reduce(((e,t)=>[...e,...t.props.children]),[]):H||[];if(!o)return;const i=o.length;D((n=>{var r,a;let l=o.findIndex((e=>{let{props:t}=e;return t.value===n}));switch(null==e?void 0:e.code){case u.Jd:l+=1;break;case u.il:if(-1===l||0===l){l=i-1;break}l-=1;break;default:l=0}const s=l%i;return((e,t)=>{const n=(e,n,o)=>{e[n].classList.contains(O)&&e[n].classList.remove(O),t===(void 0===o?n:o)&&e[n].classList.add(O)};if(N){let t=0;for(let o=0;o{k&&((m||i)&&Array.isArray(L)&&(L||[]).indexOf(k)>-1?z(e,L.filter((e=>e!==k))):z(e,m?[...L||[],k]:[k]))}:void 0,onSearchChangeText:A?e=>B(e):void 0,getFocusedItem:A?()=>k:void 0,onMount:A?o.onMount:void 0},triggerProps:{"aria-expanded":M,"aria-haspopup":A||"menu"===E&&!m?"dialog":"listbox",onClick:e=>{j?M?X():W(e):T?"function"==typeof y&&y():"function"==typeof g&&g(e)},onKeyDown:e=>{switch(e.code){case u._f:if(j){X();break}"function"==typeof y&&y();break;case u.Jd:case u.il:case u.Fm:case u.t6:if(e.preventDefault(),j){W(e);break}"function"==typeof g&&g(e)}}}}};const I="andes-floating-menu",k="".concat(I,"--multiple"),D="andes-form-control",F="".concat(I,"--search");var B,V,j,z;var U=function(){const e=(0,a.forwardRef)(((e,t)=>{let{className:n,defaultValue:i,inputProps:r={},onChange:l,onClear:d,onKeyDown:u,placeholder:p,size:f="small",srLabel:h,value:A}=e;const _=(0,c.UO)(c.Ri,S,N,L),E=(0,a.useRef)(null),C=(0,a.useMemo)((()=>void 0!==A),[]),[P,x]=(0,a.useState)(!1),[R,O]=(0,a.useState)(!1),M=(0,a.useRef)(!0),{device:k}=(0,a.useContext)(c.Ri),U="ios"===(null==k?void 0:k.osName);(0,a.useEffect)((()=>{!C&&i&&O(!0),M.current=!1}),[]),(0,a.useEffect)((()=>{if(C){const e=!!A&&(null==A?void 0:A.length)>0;O(e)}}),[C,A,O]),(0,a.useEffect)((()=>{var e;P&&(null===(e=E.current)||void 0===e||e.focus())}),[P]);const G=()=>"small"===f?B||(B=(0,v.A)(g.A,{})):V||(V=(0,v.A)(w.A,{})),H=()=>"small"===f?j||(j=(0,v.A)(y.A,{})):z||(z=(0,v.A)(T.A,{})),W=e=>{var t;e.preventDefault(),!C&&E.current&&(E.current.value=""),e.target.value="",O(!1),"function"==typeof d&&d(e),"function"==typeof l&&l(e),null===(t=E.current)||void 0===t||t.focus()},X=s()("".concat(D,"__close-icon"),{["".concat(D,"__close-icon-visible")]:R}),K=s()(F,"".concat(F,"--size-").concat(f),n,{["".concat(F,"--web-mobile-ios")]:U,["".concat(F,"--focused")]:P,["".concat(F,"--disabled")]:r.disabled});return a.createElement("div",{ref:t},(0,v.A)(m.v,{within:!0,isTextInput:!0,focusRingClass:"focus-visible"},void 0,(0,v.A)("div",{className:K},void 0,(0,v.A)("label",{},void 0,(0,v.A)(b.s6,{},void 0,h||_.pgettext(I,"Buscar")),a.createElement("input",(0,o.A)({},r,{className:"".concat(D,"__field"),value:A,defaultValue:i,placeholder:p||"".concat(_.pgettext(I,"Buscar")),onChange:e=>{var t,n;const o=!(null==E||null===(t=E.current)||void 0===t||!t.value)&&(null==E||null===(n=E.current)||void 0===n?void 0:n.value.length)>0;O(o),"function"==typeof l&&l(e)},onBlur:e=>{const{onBlur:t}=r;x(!1),"function"==typeof t&&t(e)},onFocus:e=>{const{onFocus:t}=r;x(!0),"function"==typeof t&&t(e)},ref:E,onKeyDown:u}))),(0,v.A)("button",{className:X,onClick:W,onMouseDown:W,"aria-label":"".concat(_.pgettext(I,"Borrar")),type:"button"},void 0,(0,v.A)(H,{})),(0,v.A)("div",{className:"".concat(D,"__search-icon")},void 0,(0,v.A)(G,{})))))}));return e.displayName="SearchBox",e}();var G,H=function(){const e=(0,a.forwardRef)(((e,t)=>{let{defaultValue:n,getFocusedItem:o,handleKeyDown:i,list:r,listId:l,onChange:s,placeholder:c,visible:d}=e;const u={role:"combobox","aria-label":c,"aria-autocomplete":"list","aria-controls":l,"aria-activedescendant":o()?"".concat(l,"-option-").concat(o()):void 0,"aria-expanded":!0};return(0,v.A)("div",{role:"dialog","aria-modal":"true"},void 0,(0,v.A)(h.n1,{contain:d,restoreFocus:!0,autoFocus:!0},void 0,(0,v.A)("div",{className:"".concat(I,"__search-box")},void 0,a.createElement(U,{ref:t,defaultValue:n,onChange:s,placeholder:c,onKeyDown:i,inputProps:u})),r))}));return e.displayName="FloatingMenuSearch",e}();const W=["children","className","defaultValue","onSelect","value"];var X=function(){const e=(0,a.forwardRef)(((e,t)=>{let{children:n,className:r,defaultValue:l,onSelect:c,value:d}=e,u=(0,i.A)(e,W);const[p,f]=(0,a.useState)(d||l),m=(0,a.useMemo)((()=>void 0===d),[]);(0,a.useEffect)((()=>{m||f(d)}),[d]);const h=()=>Array.isArray(p)?p:[],b={};m?l&&(b.defaultSelectedKeys=h()):b.selectedKeys=h();const y=s()(k,r);return a.createElement(_.q,(0,o.A)({className:y,selectionComponent:G||(G=(0,v.A)(A.A,{srHidden:!0})),selectionMode:"multiple",ref:t,onSelect:(e,t,n)=>{m&&f(t),"function"==typeof c&&c(e,t,n)}},u,b),n)}));return e.displayName="FloatingMenuMultiple",e}();var K=function(){const e=(0,a.forwardRef)(((e,t)=>{let{i18n:n,id:i,multiple:r=!1,onKeyDown:l,onSelect:s,options:c,search:d=!1,selectedKeys:u,srLabel:p,type:f="menu",visible:m}=e;if(!c||!c.length)return(0,v.A)("div",{className:"".concat(I,"__no-results")},void 0,n.pgettext(I,"No hay resultados"));const b={id:i,ref:t,className:I,onKeyDown:l,srLabel:p};if(r)return a.createElement(X,(0,o.A)({},b,{onSelect:s,value:u,shouldUseVirtualFocus:!!d}),c);if("select"===f||d)return a.createElement(_.q,(0,o.A)({},b,{onSelect:s,selectionMode:r?"multiple":"single",selectedKeys:u,shouldUseVirtualFocus:!!d}),c);const y=e=>(0,a.cloneElement)(e,{onClick:(t,n)=>((e,t,n)=>{"function"==typeof e&&e(t,n),"function"==typeof s&&s(t,n)})(e.props.onClick,t,n),tabIndex:void 0});return(0,v.A)("div",{role:"dialog","aria-modal":"true"},void 0,(0,v.A)(h.n1,{contain:m,restoreFocus:!0,autoFocus:!0},void 0,a.createElement(E.B8,b,a.Children.map(c,(e=>{var t;if((null==e||null===(t=e.type)||void 0===t?void 0:t.displayName)===P){const t=a.Children.map(e.props.children,y);return(0,a.cloneElement)(e,{children:t})}return y(e)})))))}));return e.displayName="FloatingMenuList",e}();var $=e=>{let{search:t,defaultSearchValue:n,filterCondition:o,onSearchChange:i,searchPlaceholder:r}=e;if(!t)return;if("boolean"==typeof t)return{defaultValue:n,placeholder:r,onChange:i,filterCondition:o,search:!0};const{defaultValue:a,filterCondition:l,onChange:s,placeholder:c}=t;return{defaultValue:a||n,placeholder:c||r,onChange:s||i,filterCondition:l||o,search:!0}};const q=["closeMenu","getFocusedItem","onSearchChangeText","onSearchFocus","onSearchSelectionChange","onSelectionChange","options","selectedKeys"];var Y=function(){const e=(0,a.forwardRef)(((e,t)=>{const{allowUnselect:n=!1,appendTo:l,"aria-label":p,className:f,closable:v,defaultOpen:m=!1,defaultSearchValue:h,filterCondition:b,id:y,menuMaxHeight:g,multiple:T=!1,onSearchChange:w,placement:A="bottom",search:_=!1,searchPlaceholder:E,srLabel:C,trigger:P,type:x="menu",width:R=280}=e,O=(0,c.Bi)(y),k=$({search:_,defaultSearchValue:h,onSearchChange:w,searchPlaceholder:E,filterCondition:b}),D=(0,c.UO)(c.Ri,S,N,L),F="".concat(O,"-list"),B=(0,a.useRef)(null),V=(0,a.useRef)(null),j=(0,a.useRef)(null),{menuProps:z,triggerProps:U}=M(B,V,j,(0,r.A)((0,r.A)({},e),{},{allowUnselect:n,defaultOpen:m,multiple:T,placement:A,search:_,type:x,width:R,listId:F,id:O,searchConfig:k})),{closeMenu:G,getFocusedItem:W,onSearchChangeText:X,onSearchFocus:Y,onSearchSelectionChange:Z,onSelectionChange:J,options:Q,selectedKeys:ee}=z,te=(0,i.A)(z,q);(0,a.useEffect)((()=>{const e=V.current;e&&k&&requestAnimationFrame((()=>{e.style.maxHeight=g?"".concat(g-52,"px"):"",e.style.overflowY="auto"}))}),[V.current,g,k]);const ne=(e,t)=>{t?J(e,t):Z(e),T||!1===v||"function"!=typeof G||G()},oe=e=>{switch(e.code){case u.wn:"menu"!==x&&e.preventDefault();break;case u._f:"function"==typeof G&&G();break;case u.il:case u.Jd:k&&Y(e);break;case u.Fm:k&&ne(e)}},ie=e=>{const{value:t}=e.target;"function"==typeof Y&&Y(),"function"==typeof X&&X(t),"function"==typeof(null==k?void 0:k.onChange)&&k.onChange(t)},re=s()(I,f,{["".concat(I,"--multiple")]:T});return a.createElement("div",{className:re,ref:t},a.createElement(d.N,(0,o.A)({appendTo:l,content:(()=>{const e=a.createElement(K,{id:F,multiple:T,onKeyDown:oe,onSelect:ne,options:Q,ref:V,selectedKeys:ee,type:x,search:null==k?void 0:k.search,srLabel:C||p,visible:z.visible,i18n:D});return k?a.createElement(H,(0,o.A)({getFocusedItem:W,handleKeyDown:oe,list:e,listId:F,ref:j,visible:z.visible},k,{onChange:ie})):e})(),interactive:!0,placement:A,id:"".concat(O,"-popper"),focusScope:!0},te),(0,a.cloneElement)(P,(0,r.A)({ref:B},U))))}));return e.displayName="FloatingMenu",e}();const Z=["description","disabled","groupIndex","index","onSelect","primary","rightContent","secondary","selected","tertiary","title","value"];var J=function(){const e=e=>{let{description:t,disabled:n=!1,groupIndex:l,index:s,onSelect:c,primary:d,rightContent:u,secondary:p,selected:f=!1,tertiary:v,title:m,value:h}=e,b=(0,i.A)(e,Z);const y=(0,r.A)({index:s,groupIndex:l,disabled:n,title:m||d,description:t||p,rightContent:u||v,value:h,selected:f},b);return a.createElement(E.ck,(0,o.A)({},y,{onClick:e=>{var t;n||("function"==typeof y.onClick&&y.onClick(e,h),"function"==typeof c&&c(e,"object"!=typeof(t={value:h})?t:null==t?void 0:t.value))}}))};return e.getCollectionNode=C.A,e.displayName="FloatingMenuItem",e}()},44896:(e,t,n)=>{"use strict";n.d(t,{B8:()=>C,be:()=>k,ck:()=>j,yq:()=>O});var o=n(73620),i=n(58168),r=n(80045),a=n(96540),l=n(46942),s=n.n(l),c=n(69247),d=n(88460),u=n(32217),p=n(89379),f=n(95382),v=n(46956),m=n(86306),h=n(97987);const b="andes-list",y="andes-list__group",g="andes-list__item",T='A with size="small" does not allow Buttons or Switches as\nrightContent. Please, use a bigger instead',w=(0,a.createContext)(!1);function A(){return(0,a.useContext)(w)}function _(e){let{children:t}=e;return(0,o.A)(w.Provider,{value:{}},void 0,t)}const E=["children","className","id","type","selectable","withDividers","component","srLabel","aria-label"];var C=function(){const e=(0,a.forwardRef)(((e,t)=>{const{children:n,className:l,id:u,type:p="default",selectable:f=!0,withDividers:v=!1,component:m="ul",srLabel:h,"aria-label":y}=e,g=(0,r.A)(e,E);(0,d.A)(h," needs some text contents for accessibility reasons. Please add an `srLabel` prop.");const T=(0,c.Bi)(u),w=h||y,A=s()(b,l,"".concat(b,"--").concat(p),{["".concat(b,"--selectable")]:f,["".concat(b,"-with-dividers")]:v});return(0,o.A)(_,{},void 0,a.createElement(m,(0,i.A)({className:A,id:T,ref:t},g,{"aria-label":w}),a.Children.map(n,((t,n)=>{let o;if("listbox"!==e.role){var i;const e=null==t||null===(i=t.props)||void 0===i?void 0:i.id;e?o=e:T&&(o="".concat(T,"-").concat(n))}return t&&a.cloneElement(t,{id:o})}))))}));return e.displayName="List",e}();const S=e=>{let{label:t,children:n}=e;return t&&a.Children.count(n)>0};var N=function*(e){const{children:t,label:n,"aria-label":o}=e,i=n||t,r=("string"==typeof i?i:"")||o||"";(0,d.A)(r," needs some plain text contents for accessibility reasons. Please add a `label` or `aria-label` prop."),yield{type:"section",props:e,rendered:i,textValue:r,"aria-label":o||n,hasChildNodes:S,*childNodes(){if(n){const e=[];a.Children.forEach(t,(t=>{e.push({type:"item",element:t})})),yield*e}}}};const L="medium",P="top",x={small:18,medium:20,large:22},R=["children","className","id","label","paddingSize","size","component","itemProps","headingProps","groupProps"];var O=function(){const e=e=>{const{children:t,className:n,id:o,label:l,paddingSize:c,size:p=L,component:f="ul",itemProps:v,headingProps:m,groupProps:h}=e,b=(0,r.A)(e,R),g=A(),T=s()(y,n,"".concat(y,"--size-").concat(p),{["".concat(y,"--padding-").concat(c)]:c});return(0,a.useEffect)((()=>{(0,d.A)(!!g," needs to be wrapped in a '' for accessibility reasons. \nAdd the '' component.")}),[]),a.createElement("li",(0,i.A)({className:T},(0,u.v)(v,b)),a.createElement("span",(0,i.A)({className:"".concat(y,"--header"),id:o},m),l),a.createElement(f,(0,i.A)({className:"".concat(y,"--sublist"),"aria-labelledby":o},h),a.Children.map(t,((e,t)=>{var n;let i;const r=null===(n=e.props)||void 0===n?void 0:n.id;return r?i=r:o&&(i="".concat(o,"-").concat(t)),(0,a.cloneElement)(e,{id:i})}))))};return e.getCollectionNode=N,e.displayName="ListGroup",e}();var M,I=(e,t)=>{if((0,a.isValidElement)(e)){var n,o,i,r;if("Button"===(null===(n=e.type)||void 0===n?void 0:n.displayName)){var l;if("small"===t)return void(0,d.A)(!1,T);if("medium"!==(null===(l=e.props)||void 0===l?void 0:l.size))return(0,d.A)(!1,' only supports Buttons with size="medium"'),(0,a.cloneElement)(e,{size:"medium"})}if((0,h.A)(["Notification","Pill"],null===(o=e.type)||void 0===o?void 0:o.displayName)&&"small"!==(null==e||null===(i=e.props)||void 0===i?void 0:i.size))return(0,d.A)(!1,' only supports Badges with size="small"'),(0,a.cloneElement)(e,{size:"small"});if("Switch"===(null===(r=e.type)||void 0===r?void 0:r.displayName)&&"small"===t)return void(0,d.A)(!1,T)}return e};var k=function(){const e=e=>{var t;const{children:n,baseList:r=!1,title:l="",description:c="",rightContent:d="",leftContent:u,maxLines:p,value:f,size:h=L,rightContentPosition:b="top",chevron:y=!1,id:T,addPrimaryLabel:w=!1}=e,A=(0,a.isValidElement)(u)&&"Thumbnail"===(null==u||null===(t=u.type)||void 0===t?void 0:t.displayName),_=(null==u?void 0:u.src)&&"string"==typeof u.src,E=c&&"small"!==h,C="string"==typeof d,S=_||A,N=(0,a.useRef)(null),[P,R]=(0,a.useState)();(0,a.useEffect)((()=>{var e;S||R(null===(e=N.current)||void 0===e?void 0:e.clientHeight)}),[]);const O=w,k=s()("".concat(g,"-primary"),{["".concat(g,"-primary--max-lines-").concat(p)]:p}),D=s()("".concat(g,"-second-column"),{["".concat(g,"-second-column-with-centered-text")]:S&&C}),F=s()("".concat(g,"-tertiary"),"".concat(g,"-tertiary--").concat(S?"centered":b)),B=s()("".concat(g,"-asset"),{["".concat(g,"-asset--icon")]:!S,["".concat(g,"-asset--icon-one-line")]:!E&&P&&P<=x[h]}),V=s()("".concat(g,"-chevron"),"".concat(g,"-chevron--").concat(S?"centered":b));return a.createElement(a.Fragment,null,(l||c)&&(0,o.A)("div",{className:"".concat(g,"-first-column")},void 0,u&&(0,o.A)("div",{className:B,"aria-hidden":!0},void 0,_?a.createElement(m._V,(0,i.A)({className:"".concat(g,"-image")},u,{"aria-hidden":!0})):u),(0,o.A)("div",{className:"".concat(g,"-text")},void 0,l&&(O?a.createElement("label",{onClick:e=>e.stopPropagation(),htmlFor:"".concat(T,"-selection-component-").concat(f),className:k,ref:N},l):a.createElement("span",{className:k,ref:N},l)),E&&(0,o.A)("span",{className:"".concat(g,"-secondary")},void 0,c))),!r&&(d||y)&&(0,o.A)("div",{className:D},void 0,d&&(0,o.A)("span",{className:F},void 0,I(d,h)),y&&(0,o.A)("div",{className:V,"aria-hidden":!0},void 0,M||(M=(0,o.A)(v.A,{color:"rgba(0, 0, 0, 0.55)","aria-hidden":!0})))),n)};return e.displayName="ListItemContent",e}();var D=e=>{let{rightContent:t,_willdeprecate$tertiary:n,rightContentPosition:o,_willdeprecate$tertiaryPosition:i}=e;if(!t&&!n)return{position:P};const r={position:o||i||P};var a,l;return void 0!==(null==(l=t)?void 0:l.content)?(0,p.A)((0,p.A)({},r),{},{content:null==t?void 0:t.content,description:null!==(a=null==t?void 0:t.description)&&void 0!==a?a:void 0}):(0,p.A)((0,p.A)({},r),{},{content:t||n||null,position:o||i||P})};var F,B=e=>{var t;const{className:n,size:o=L,selected:i,paddingSize:r,disabled:l,leftContent:c,description:d}=e,u=(0,a.isValidElement)(c)&&"Thumbnail"===(null==c||null===(t=c.type)||void 0===t?void 0:t.displayName),p=(null==c?void 0:c.src)&&"string"==typeof c.src;return s()(g,n,"".concat(g,"--size-").concat(o),{["".concat(g,"--selected-padding-0")]:i&&"0"===r,["".concat(g,"--padding-").concat(r)]:r,["".concat(g,"--disabled")]:l,["".concat(g,"--selected")]:i,["".concat(g,"-with-image")]:p||u,["".concat(g,"-with-secondary")]:d&&"small"!==o})};const V=["children","className","disabled","primary","secondary","tertiary","selected","onClick","onSelect","href","image","groupIndex","value","size","maxLines","tertiaryPosition","chevron","paddingSize","id","target","component","title","description","rightContent","leftContent","rightContentPosition"];var j=function(){const e=(0,a.forwardRef)(((e,t)=>{var n;const{children:l,className:c,disabled:u=!1,primary:m,secondary:h,tertiary:b,selected:y=!1,onClick:T,onSelect:w,href:_,image:E,groupIndex:C,value:S,size:N=L,maxLines:P,tertiaryPosition:x,chevron:R=!1,paddingSize:O,id:M,target:j,component:z="li",title:U,description:G,rightContent:H,leftContent:W,rightContentPosition:X="top"}=e,K=(0,r.A)(e,V),$=A(),q=U||m,Y=G||h,Z=D({rightContent:H,_willdeprecate$tertiary:b,rightContentPosition:X,_willdeprecate$tertiaryPosition:x}),J=W||E,Q=(0,a.isValidElement)(J)&&"Thumbnail"===(null==J||null===(n=J.type)||void 0===n?void 0:n.displayName),ee=(null==J?void 0:J.src)&&"string"==typeof J.src,te="string"==typeof(null==Z?void 0:Z.content),ne=ee||Q,{focusProps:oe,isFocusVisible:ie}=(0,f.o)({within:!0}),{focusProps:re,isFocusVisible:ae}=(0,f.o)({within:!0}),le=B((0,p.A)((0,p.A)({},e),{},{className:c,selected:y,title:q,description:Y,rightContent:null==Z?void 0:Z.content,leftContent:J,rightContentPosition:null==Z?void 0:Z.position})),se=s()(le,{["".concat(g,"--visible-focused")]:ie&&!ae}),ce=s()("".concat(g,"-second-column"),{["".concat(g,"-second-column-with-centered-text")]:ne&&te}),de=s()("".concat(g,"-tertiary-container"),"".concat(g,"-tertiary-container--").concat(ne?"centered":null==Z?void 0:Z.position)),ue=s()("".concat(g,"-tertiary"),"".concat(g,"-tertiary--").concat(ne?"centered":null==Z?void 0:Z.position)),pe=s()("".concat(g,"-chevron"),"".concat(g,"-chevron--").concat(ne?"centered":null==Z?void 0:Z.position)),{ActionWrapper:fe,actionWrapperProps:ve}=(()=>{let e=a.Fragment,t={};return _?(e="a",t=(0,p.A)((0,p.A)({className:"".concat(g,"-anchor"),target:j},u?{role:"link","aria-disabled":!0}:{href:_}),{},{onClick:T})):T&&(e="button",t={className:"".concat(g,"-action"),disabled:u,onClick:T}),{ActionWrapper:e,actionWrapperProps:t}})();return(0,a.useEffect)((()=>{(0,d.A)(!!$," needs to be wrapped in a '' for accessibility reasons. \nAdd the '' component.")}),[]),a.createElement(z,(0,i.A)({className:se,ref:t,id:M},K,oe),a.createElement(a.Fragment,null,a.createElement(fe,ve,a.createElement(k,(0,i.A)({},e,{baseList:!0,title:q,description:Y,rightContent:null==Z?void 0:Z.content,leftContent:J,rightContentPosition:null==Z?void 0:Z.position}))),((null==Z?void 0:Z.content)||R)&&(0,o.A)("div",{className:ce},void 0,(null==Z?void 0:Z.content)&&(0,o.A)("div",{className:de},void 0,a.createElement("span",(0,i.A)({className:ue},re),I(null==Z?void 0:Z.content,N)),te&&(null==Z?void 0:Z.description)&&"small"!==N&&(0,o.A)("span",{className:"".concat(g,"-tertiary-description")},void 0,null==Z?void 0:Z.description)),R&&(0,o.A)("div",{className:pe,"aria-hidden":!0},void 0,F||(F=(0,o.A)(v.A,{color:"rgba(0, 0, 0, 0.55)","aria-hidden":!0}))))))}));return e.displayName="ListItem",e}()},57051:(e,t,n)=>{"use strict";n.d(t,{A:()=>V});var o=n(58168),i=n(73620),r=n(96540),a=n(46942),l=n.n(a),s=n(86306),c=n(69247),d=n(25925),u=n(89379),p=n(92275),f=n(33734),v=n(81023),m=n(3411),h=n(85690),b=n(60510),y=n(92278);const g="fill",T="andes-progress-indicator-linear";var w={module:"@andes/tooltip",locale:"en-US",translations:{"andes-tooltipcerrar":[null,"Close"]}},A={module:"@andes/tooltip",locale:"es-AR",translations:{"andes-tooltipcerrar":[null,"Cerrar"]}},_={module:"@andes/tooltip",locale:"pt-BR",translations:{"andes-tooltipcerrar":[null,"Fechar"]}};const E="andes-tooltip",C="bottom",S="left",N="right",L="top";var P,x;const R=e=>"pill"===(null==e?void 0:e.badge)?(0,i.A)(b.ab,{},void 0,e.pillContent):"notification"===(null==e?void 0:e.badge)?P||(P=(0,i.A)(b.ab,{contentType:"icon"})):"pill-icon"===(null==e?void 0:e.badge)?x||(x=(0,i.A)(b.ab,{contentType:"icon"})):void 0;var O=e=>{let{actions:t,closable:n=!1,closeIconLabel:a,closeTooltip:d,content:u,focusScope:p=!1,icons:f,id:v,image:m,onMouseEnter:b,onMouseLeave:g,open:T,placement:C=L,thumbnail:S,title:N}=e;const P=(0,c.UO)(c.Ri,w,A,_),x=l()("".concat(E,"-data"),{["".concat(E,"-data-image")]:m||f}),O=l()("".concat(E,"-data__arrow"),{["".concat(E,"-data__arrow--").concat(C)]:C});return(0,i.A)("div",{onMouseEnter:b,onMouseLeave:g},void 0,(0,i.A)(h.n1,{contain:T&&p,restoreFocus:!0,autoFocus:!0},void 0,(0,i.A)("div",{className:x,tabIndex:-1},void 0,p&&(0,i.A)("div",{tabIndex:0,className:"".concat(E,"__focus-retainer")}),n&&(0,i.A)("button",{className:"".concat(E,"-button-close"),onClick:e=>{e.preventDefault(),e.stopPropagation(),d(e)},"aria-label":a||P.pgettext(E,"close")}),S&&(0,i.A)("div",{className:"".concat(E,"__image-container")},void 0,((e,t,n)=>{const i={badge:R(e),className:"".concat(E,"__image")};return"image"===(null==e?void 0:e.type)?r.createElement(y.Vz,(0,o.A)({},i,{srLabel:null==t?void 0:t.title}),r.createElement(s._V,t)):"icons"===(null==e?void 0:e.type)&&n?r.createElement(y.Vz,(0,o.A)({hierarchy:e.hierarchy,disabled:e.disabled},i),n):void 0})(S,m,f)),(0,i.A)("div",{className:"".concat(E,"__content")},void 0,N&&(0,i.A)("span",{id:v?"".concat(v,"-title"):void 0,className:"".concat(E,"__title")},void 0,N),u&&(0,i.A)("div",{className:"".concat(E,"__text")},void 0,u),t&&(0,i.A)("div",{className:"".concat(E,"__actions")},void 0,t)),(0,i.A)("div",{className:O,"data-popper-arrow":!0}))))},M={top:[0,16],topLeft:[-10,16],topRight:[10,16],bottom:[0,16],bottomLeft:[-10,16],bottomRight:[10,16],left:[0,16],leftTop:[-10,16],right:[0,16],rightTop:[-10,16]};const I="hover",k="light",D={topLeft:"top-start",top:L,topRight:"top-end",bottomLeft:"bottom-start",bottom:C,bottomRight:"bottom-end",leftTop:"left-start",left:S,rightTop:"right-start",right:N},F=function(){const e=(0,r.forwardRef)(((e,t)=>{let{actions:n,afterVisibleChange:o,autoHideDelay:a,children:p,className:h,closable:b=!1,closeIconLabel:y,content:g,defaultOpen:T,disableClickOutside:w=!1,focusScope:A=!0,icons:_,id:P,image:x,mouseEnterDelay:R=0,mouseLeaveDelay:F=.1,offsetX:B=0,offsetY:V=0,onClickOutside:j,onClose:z,onCloseTooltip:U,onOpen:G,onVisibleChange:H,open:W,showCloseButton:X,side:K=L,thumbnail:$,title:q,trigger:Y=I,type:Z=k,visible:J}=e;const Q=(0,c.Bi)(P),ee=(0,d.A)(),{device:te}=(0,r.useContext)(c.Ri),ne=null==te?void 0:te.mobile,oe=l()(h,E,{["".concat(E,"--").concat(Z)]:Z}),ie=X||b,re="click"===Y,ae=Y===I,le=!!n||re||ie,se=le?"dialog":"tooltip",ce="dialog"===se,[de,ue]=(0,r.useState)(!1),[pe,fe]=(0,r.useState)(""),ve=(0,r.useMemo)((()=>void 0!==W),[]),me=(0,r.useRef)(),he=(0,r.useRef)(),be=(0,r.useRef)(),ye=(0,r.useRef)(),ge=(0,r.useRef)(!0),Te=(0,r.useRef)(),we=()=>{"function"==typeof G&&G(),ve||(he.current=setTimeout((()=>ue(!0)),1e3*R),clearTimeout(be.current))},Ae=e=>{"function"==typeof z&&z(e),ve||(be.current=setTimeout((()=>ue(!1)),1e3*F),clearTimeout(he.current))};(0,r.useEffect)((()=>{var e;ge.current?ge.current=!1:((e=de)&&a&&(me.current=setTimeout((()=>ue(!1)),a)),e||clearTimeout(me.current),"function"!=typeof U||e||U(),"function"==typeof H&&H(e),"function"==typeof o&&o(e))}),[de]),(0,r.useEffect)((()=>{void 0!==J&&ue(J)}),[J]),(0,r.useEffect)((()=>{T&&(he.current=setTimeout((()=>ue(!0)),1e3*R),clearTimeout(be.current))}),[]),(0,r.useEffect)((()=>{ve&&(W?(he.current=setTimeout((()=>ue(!0)),1e3*R),clearTimeout(be.current)):(be.current=setTimeout((()=>ue(!1)),1e3*F),clearTimeout(he.current)))}),[W]);const _e=()=>{clearTimeout(ye.current),clearTimeout(be.current)},Ee=le?()=>{ye.current=setTimeout((e=>Ae(e)),300),de||(clearTimeout(ye.current),clearTimeout(he.current))}:Ae,Ce=de?Ae:we,Se=e=>{e.code===v._f&&Ae(e)},Ne=0!==B&&0!==V?(0,m.A)(K,C)?[B,V]:(0,m.A)(K,S)?[V,-B]:(0,m.A)(K,N)?[V,B]:[B,-V]:M["".concat(K)],Le=ne?{options:{fallbackPlacements:pe?[pe]:[L,C]}}:{enabled:!1};return r.createElement("div",{ref:t},(0,i.A)(f.N,{placement:pe||D["".concat(K)],className:oe,interactive:le,interactiveDebounce:75,offset:Ne,onClickOutside:(e,t)=>{"function"==typeof j&&j(t),w||Ae(t)},visible:de,popperOptions:{modifiers:[(0,u.A)({name:"flip"},Le)]},role:se,plugins:[{name:"hideOnEsc",defaultValue:!0,fn(e){let{popper:t}=e;function n(e){Se(e)}return{onShow(){t.addEventListener("keydown",n)},onHide(){t.removeEventListener("keydown",n)}}}},{name:"hideOnPopperBlur",defaultValue:ae&&le,fn:e=>({onMount(){e.popper.addEventListener("focusout",(t=>{e.props.hideOnPopperBlur&&(t.relatedTarget&&!e.popper.contains(t.relatedTarget)||!t.relatedTarget)&&Ae(t)}))}})}],content:(0,i.A)(O,{title:q,content:g,thumbnail:$,image:x,icons:_,closable:ie||re,actions:n,placement:pe||D["".concat(K)],closeTooltip:Ae,onMouseEnter:ae?_e:void 0,onMouseLeave:ae?Ae:void 0,focusScope:le&&re&&A,open:de,id:Q,closeIconLabel:y}),onMount:e=>{var t;if(e.popper.setAttribute("role",se),fe(null===(t=e.popperInstance)||void 0===t?void 0:t.state.placement),ce){if(e.reference.removeAttribute("aria-expanded"),re||!A){e.popper.setAttribute("aria-modal",A.toString()),e.popper.focus();const t=[].slice.call(e.popper.querySelectorAll(".".concat(E,"__focus-retainer")));t.length&&t[0].focus()}e.popper.setAttribute("aria-labelledby","".concat(Q,"-title"))}e.reference.removeAttribute("aria-describedby")},onHidden:(e,t)=>{let{preventFocus:n}=t;ce&&(e.reference.removeAttribute("aria-expanded"),e.popper.removeAttribute("aria-modal"),e.popper.removeAttribute("aria-label"),e.popper.removeAttribute("aria-labelledby"),re&&e.reference.children[0]instanceof HTMLElement&&!n&&e.reference.children[0].focus()),e.popper.removeAttribute("role")},reference:Te.current,aria:{expanded:void 0},focusScope:A}),r.createElement("div",{ref:e=>{Te.current=e},className:"".concat(E,"__trigger"),onMouseEnter:ae?we:void 0,onMouseLeave:ae?Ee:void 0,onFocus:ae?we:void 0,onBlur:ae&&!le?Ee:void 0,onClick:re?Ce:void 0,onKeyDown:re?Se:void 0},"string"==typeof p?p:r.Children.map(p,(e=>e&&(0,r.isValidElement)(e)?r.cloneElement(e,{"aria-describedby":le?void 0:"informative-".concat(Q),"aria-expanded":re?de:void 0,"aria-haspopup":re||void 0}):null))),!le&&(0,i.A)(s.s6,{id:"informative-".concat(Q),"aria-hidden":!0},void 0,ee&&r.createElement(r.Fragment,null,q," ",g)))}));return e.displayName="Tooltip",e}();delete(0,u.A)({},F.propTypes).children;var B=e=>{let{id:t,size:n="small",srLabel:a,value:c=0,tooltipConfig:d,label:u}=e;const f="".concat(T,"--comparison"),v=l()(f,{["".concat(f,"--").concat(n)]:n}),m={left:"".concat(c,"%")},h=()=>r.createElement(r.Fragment,null,(0,i.A)("span",{className:"".concat(v,"-upper-row")}),(0,i.A)("span",{className:"".concat(v,"-lower-row")}));return(0,i.A)("div",{className:"".concat(T,"--comparison"),style:m},void 0,d?r.createElement(p.m_,(0,o.A)({},d,{className:"".concat(v,"-tooltip")}),(0,i.A)("button",{className:"".concat(v,"-container"),"aria-labelledby":"".concat(t,"-label"),"aria-label":a},void 0,h())):(0,i.A)("div",{className:"".concat(v,"-notooltip-container")},void 0,a&&(0,i.A)(s.s6,{},void 0,a),h()),u&&(0,i.A)("span",{className:"".concat(v,"-value"),id:"".concat(t,"-label")},void 0,u))};var V=function(){const e=(0,r.forwardRef)(((e,t)=>{const{id:n,className:a,size:u="small",color:p,value:f=0,highlight:v=!1,inverted:m=!1,srLabel:h,srAnnouncement:b,"aria-label":y,notificationsLabel:w,comparison:A}=e,_=(0,c.Bi)(n),E=(0,d.A)(),C=(0,r.useRef)(),S=b||w,[N,L]=(0,r.useState)(S);(0,r.useEffect)((()=>{L(S),C.current=setTimeout((()=>L("")),30)}),[S]),(0,r.useEffect)((()=>()=>clearTimeout(C.current)),[]);const P={width:"".concat(f,"%"),backgroundColor:p},x={["".concat(T,"--").concat(u)]:u},R=l()(T,a,x),O=l()(g,{["".concat(g,"--empty")]:0===f,["".concat(g,"--highlighted")]:v,["".concat(g,"--inverted")]:m});return r.createElement("div",{className:R,ref:t},(0,i.A)(s.s6,{role:"status","aria-live":"polite","aria-atomic":"true"},void 0,E&&N),(0,i.A)("div",{id:_,style:P,className:O,role:"progressbar","aria-valuenow":f,"aria-valuemin":0,"aria-valuemax":100,"aria-label":h||y}),A&&r.createElement(B,(0,o.A)({size:u,id:"".concat(_,"-comparison")},A)))}));return e.displayName="ProgressIndicatorLinear",e}()},67113:(e,t,n)=>{"use strict";n.d(t,{UI:()=>w,n0:()=>q,nc:()=>$});var o,i=n(96540),r=n(37808),a=n(46942),l=n.n(a),s=n(48911),c=n(33829),d=n(99215),u=n(63846);function p(e,t,n,i){o||(o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var r=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 l=Array(a),s=0;se.length)&&(t=e.length);for(var n=0,o=Array(t);n1){for(var a=Array(r),l=0;l{let{color:t,i18n:n,srLabel:o}=e;return S("svg",{"aria-hidden":o?void 0:!o,"aria-label":o||void 0,role:o?"img":void 0,width:"20",height:"20",viewBox:"0 0 20 20",fill:t},void 0,o&&S("title",{},void 0,o),S("path",{d:"M8.27686 4.34644L7.42834 5.19496L12.224 9.99059L7.42334 14.7912L8.27187 15.6397L13.921 9.99059L8.27686 4.34644Z",fill:t}))};N.defaultProps={color:"rgba(0, 0, 0, 0.9)",srLabel:void 0};const L=e=>{let{color:t,i18n:n,srLabel:o}=e;return S("svg",{"aria-hidden":o?void 0:!o,"aria-label":o||void 0,role:o?"img":void 0,width:"12",height:"12",viewBox:"0 0 12 12",fill:t},void 0,o&&S("title",{},void 0,o),S("path",{d:"M4.89779 1.85229L4.10229 2.64779L7.45455 6.00004L4.10229 9.35229L4.89779 10.1478L9.04554 6.00004L4.89779 1.85229Z",fill:t}))};L.defaultProps={color:"rgba(0, 0, 0, 0.9)",srLabel:void 0};var P={ENTER:{KEY:"Enter",KEY_CODE:13}},x=function(e){var t=e.tabs,n=e.activeTab,o=e.handleTabs,i=e.layoutTheme,r=function(e){e.key!==P.ENTER.KEY&&e.keyCode!==P.ENTER.KEY_CODE||toggleTabs(e)};return p("ul",{className:"carousel-with-tabs__tabs-list products-gallery-with-tabs__tabs-list"},void 0,null==t?void 0:t.map((function(e){var a=n===e.id&&t.length>1,s=l()("tabs-list__item",{"tabs-list__item--without-underline":1===t.length,"tabs-list__item--active":a,"header--custom-background":a&&"explorer"===i}),d=l()("tab-item-label",{"header--custom-text":a&&"explorer"===i});return 0===e.items.length?null:p("li",{className:s,id:e.id,onClick:function(t){return o(t,e.id)},onKeyDown:r,role:"button",tabIndex:"-1"},(0,c.A)(),p("div",{className:d},void 0,e.label))})))};x.defaultProps={layoutTheme:"",handleTabs:function(){},activeTab:"",tabs:[]};var R=x,O=function(e){var t=e.tabs,n=e.type,o=e.layoutTheme,i=e.handleTabs,r=e.activeTabId;return p(s.wn,{type:n,className:"products-gallery-section"},void 0,p("div",{className:"row container carousel-with-tabs products-gallery-container"},void 0,p("div",{className:"section-header products-gallery-with-tabs"},void 0,(null==t?void 0:t.length)>1&&p(R,{tabs:t,layoutTheme:o,activeTab:r,handleTabs:i}))))};O.defaultProps={layoutTheme:"",handleTabs:function(){},activeTab:"",tabs:[]};var M,I,k,D=O;var F=function(){const e=function(e){var t,n=e.children,o=e.display,r=e.highlight_seeds,a=e.title,c=e.type,d=e.view_more_action,u=e.categories,f=e.updateGrid,m=e.show_title,h=e.eshopType,y=e.deviceType,g=e.withoutTabsCategory,T=e.layoutTheme,w=e.isEshops,_=e.isPolycard,E=e.isEditable,S="products-gallery",P=Boolean(null==u?void 0:u.length),x=b.includes(h),R=v.includes(h),O=x||!P,F=x?null==u||null===(t=u[0])||void 0===t?void 0:t.view_more_action:d,B=C((0,i.useState)(u[0]?u[0].id:null),2),V=B[0],j=B[1],z=u.find((function(e){return e.id===V})),U="explorer"===T,G="legend"===T,H=!U&&!G,W="mobile"===y,X="desktop"===y,K=l()("section-header-products-gallery","section-header section-header__".concat(o),{"section-header__title-container":P}),$=l()("row container ui-ms-products-gallery__container",{"highlight-seeds":r}),q=l()({"section-center":P,"ui-ms-section-eshops":x,"ui-ms-section-eshops--seller":"seller"===h||"brand"===h||"landing"===h,"ui-ms-products-gallery__polycard":_,"ui-ms-products-gallery__polycard--editable":E&&_}),Y=l()("products-gallery-title","section-header__title--base",{"section-header__title":P}),Z=l()("section-eshop__title--layout",{"section-eshop__title":P}),J=function(e){return W&&R?i.createElement(s.rc,A({},e,{label:null,isSelf:!0}),M||(M=p(N,{}))):i.createElement(s.rc,A({},e,{isSelf:!0}))},Q=function(){var e,t,n,o=I||(I=i.createElement(i.Fragment,null)),r=null==z||null===(e=z.view_more_action)||void 0===e?void 0:e.label,a=null==z||null===(t=z.view_more_action)||void 0===t?void 0:t.target;return w||(o=p("div",{className:"".concat(S,"-action")},void 0,p("a",{className:"".concat(S,"-action__label"),alt:r,href:a},void 0,r||"",(n=!1,G&&(n=!0),H&&W&&(n=!0),n&&r&&(k||(k=p(L,{}))))))),o},ee=P&&!g;return p(s.wn,{type:c,className:q,eshopType:h},void 0,p("div",{className:$},void 0,p("div",{className:x?Z:K},void 0,m&&p("h2",{className:Y},void 0,a),w&&O&&F&&i.createElement(J,F)),p("div",{className:"ui-ms-products-gallery__tab-list--container"},void 0,ee&&p(D,{tabs:u,activeTabId:V,handleTabs:function(e,t){var n=e.currentTarget.getAttribute("id");j(n),f(t)},type:"recommendations",layoutTheme:T}),(H&&X||G&&X||U)&&Q()),n,W&&!U&&Q()))};return e.defaultProps={display:"original",highlight_seeds:!1,view_more_action:null,show_title:!0,eshopType:"",type:"",withoutTabsCategory:!1,categories:[],isPolycard:!1,isEditable:!1},e}();function B(e){return B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},B(e)}function V(e){var t=function(e,t){if("object"!=B(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=B(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==B(t)?t:t+""}function j(e,t,n){return(t=V(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function U(e){for(var t=1;t0?1:0)>0?G(Array(p).keys()):[]).map((function(e){return u.slice(e*l,l+e*l)}))},W=function(e,t){return e.find((function(e){return e.id===t}))},X=function(e,t){var n=e.items,o=e.categories;if(e.isPolycard){var i,r=o.length?null===(i=W(o,o[0].id))||void 0===i?void 0:i.polycards:[];return H(r,e,t)}var a=o.length?W(o,o[0].id).items:n;return H(a,e,t)},K=function(e,t){var n=C((0,i.useState)(X(e,t)),2),o=n[0],r=n[1];return{grid:o,newGrid:function(n){var o,i=[];null!=e&&e.isPolycard?i=null===(o=W(e.categories,n))||void 0===o?void 0:o.polycards:i=W(e.categories,n).items;r(H(i,e,t))},reloadGrid:function(e){r(X(e,t))}}};var $=function(){const e=function(e){var t=e.items_per_row,n=e.itemsPerRow,o=e.max_items,r=e.maxItems,a=e.display,s=e.shippingTitle,f=e.categories,v=e.items,y=e.eshopType,g=e.deviceType,T=e.ftNewComponentsV2,w=e.isPolycard,_=e.ComponentCard,E=t||n,C=o||r,S=0!==v.length?v.length:0!==f.length?f[0].items.length:0,N=K(e,g),L=N.grid,P=N.newGrid,x=N.reloadGrid;(0,i.useEffect)((function(){x(e)}),[C,E,f,v]);var R={action_card:!h.includes(y)},O=l()("grid-container",{"grid-container__items-per-row-one":E<2,"ui-ms-grid-container__eshops":b.includes(y),"ui-ms-grid-container__eshops--seller":"seller"===y}),M=l()({"ui-item-grid__six":S>=6&&5===E,"ui-item-grid__five":S>=5&&4===E,"ui-item-grid__four":S>=4&&3===E}),I=m.includes(y);return i.createElement(F,A({},e,{updateGrid:function(e){P(e)}}),L.map((function(e){return p("div",{className:O},(0,c.A)(),e.map((function(e){var t,n=I&&(null==e?void 0:e.isFakeCard);return(I&&!w||n)&&u.A?p(u.A,{item:e,deviceType:g,seeElements:R,eshopType:y},(0,c.A)()):w&&_?p(_,{polycard:e},null==e||null===(t=e.metadata)||void 0===t?void 0:t.id):i.createElement(d.Y,A({},e,{key:(0,c.A)(),display:a,shippingTitle:s,itemsPerRow:E,ftNewComponentsV2:T,className:M,deviceType:g}))})))})))};return e.defaultProps={display:"original",shippingTitle:"",lazyLoad:"on",withoutTabsCategory:!1,eshopType:"",categories:[],ftNewComponentsV2:!1,isPolycard:!1},e}();var q=function(){const e=function(e){var t=e.action_button,n=e.items_per_row_mobile,o=e.itemsPerRowMobile,a=e.max_items_mobile,s=e.maxItemsMobile,f=e.display,v=e.shippingTitle,y=e.categories,g=e.items,T=e.lazyLoad,w=e.eshopType,_=e.deviceType,E=e.ftNewComponentsV2,C=e.isPolycard,S=e.ComponentCard,N=n||o,L=a||s,P=K(e,_),x=P.grid,R=P.newGrid,O=P.reloadGrid,M={action_card:!h.includes(w)};(0,i.useEffect)((function(){O(e)}),[L,N,y,g]);var I=l()("grid-container",{"ui-ms-grid-container__eshops":b.includes(w),"ui-ms-grid-container__eshops--seller":"seller"===w}),k=m.includes(w);return i.createElement(F,A({},e,{updateGrid:function(e){R(e)}}),x.map((function(e){return p("div",{className:I},(0,c.A)(),e.map((function(e){var t,n=k&&(null==e?void 0:e.isFakeCard);return(k&&!C||n)&&u.A?p(u.A,{item:e,deviceType:_,seeElements:M,eshopType:w},(0,c.A)()):C&&S?p(S,{polycard:e},null==e||null===(t=e.metadata)||void 0===t?void 0:t.id):i.createElement(d.W,A({},e,{key:(0,c.A)(),display:f,lazyLoad:T,"data-testid":"item-component",shippingTitle:v,itemsPerRow:N,ftNewComponentsV2:E}))})))})),t&&p(r.$n,{id:t.id,className:"grid-recommendations-button",href:t.target},void 0,t.label))};return e.defaultProps={display:"original",shippingTitle:"",lazyLoad:"on",withoutTabsCategory:!1,eshopType:"",categories:[],ftNewComponentsV2:!1,itemsPerRowMobile:0,items_per_row_mobile:0,maxItemsMobile:0,max_items_mobile:0,isPolycard:!1},e}()},16951:(e,t,n)=>{"use strict";n.d(t,{U:()=>J,e:()=>Ee});var o=n(96540),i=n(58168),r=n(80045),a=n(73620),l=n(64467),s=n(46942),c=n.n(s),d=n(81023),u=n(69247);const p="control-arrow";var f=e=>{let{disabled:t=!1,onClick:n}=e;return(0,a.A)("svg",{className:c()(p,t&&"".concat(p,"--disabled")),onClick:t?void 0:n,width:"20",height:"20",viewBox:"0 0 20 20"},void 0,(0,a.A)("g",{fill:"none",fillRule:"evenodd"},void 0,(0,a.A)("path",{fill:"#000",fillOpacity:t?".25":".9",fillRule:"nonzero",d:"M7.833 9.99l4.796-4.795-.849-.849-5.644 5.645 5.65 5.649.848-.849z"})))};const v="control-arrow";var m=e=>{let{disabled:t=!1,onClick:n}=e;return(0,a.A)("svg",{className:c()(v,t&&"".concat(v,"--disabled")),onClick:t?void 0:n,width:"20",height:"20",viewBox:"0 0 20 20"},void 0,(0,a.A)("g",{fill:"none",fillRule:"evenodd"},void 0,(0,a.A)("path",{fill:"#000",fillOpacity:t?".25":".9",fillRule:"nonzero",d:"M7.428 5.195l.849-.849 5.644 5.645-5.65 5.649-.848-.849 4.801-4.8z"})))};const h="andes-tabs",b="andes-tab",y="".concat(h,"__swipeable-content"),g="".concat(y,"-scroll"),T=300,w=e=>{const{selected:t}=e.state;return e.enabledTabsIndexes.indexOf(t)},A=e=>{var t;"function"==typeof(null==e||null===(t=e.props)||void 0===t?void 0:t.onSelect)&&e.props.onSelect()},_=e=>{requestAnimationFrame((()=>{var t;null===(t=e.swipeContainer)||void 0===t||t.setAttribute("style","")}))},E=e=>{e.avoidTouches=!0,requestAnimationFrame((()=>{var t;const n=e.initialTranslate+e.containerWidth;null===(t=e.swipeContainer)||void 0===t||t.setAttribute("style","transition-duration: ".concat(T,"ms; transform: translateX(calc(").concat(n,"px - 1.5em))"))}));const t=w(e)-1,n=e.tabsContent[t];clearTimeout(e.swipeTimeout),e.swipeTimeout=setTimeout((()=>{e.avoidTouches=!1,e.setSelectedTab(e.enabledTabsIndexes[t],(()=>{_(e),n&&A(n)}))}),T)},C=e=>{e.avoidTouches=!0,requestAnimationFrame((()=>{var t;const n=-e.containerWidth+e.initialTranslate;null===(t=e.swipeContainer)||void 0===t||t.setAttribute("style","transition-duration: ".concat(T,"ms; transform: translateX(calc(").concat(n,"px + 1.5em))"))}));const t=w(e)+1,n=e.tabsContent[t];clearTimeout(e.swipeTimeout),e.swipeTimeout=setTimeout((()=>{e.avoidTouches=!1,e.setSelectedTab(e.enabledTabsIndexes[t],(()=>{_(e),n&&A(n)}))}),T)},S=e=>{e.avoidTouches=!0,requestAnimationFrame((()=>{var t;null===(t=e.swipeContainer)||void 0===t||t.setAttribute("style","transition-duration: ".concat(T,"ms; transform: translateX(").concat(e.initialTranslate,"px)"))})),clearTimeout(e.swipeTimeout),e.swipeTimeout=setTimeout((()=>{e.avoidTouches=!1,_(e)}),T)},N=(e,t)=>{var n;t.avoidTouches||(t.initialX=e.touches[0].clientX,t.initialY=e.touches[0].clientY,t.initialTranslate=(e=>{const t=window.getComputedStyle(e.swipeContainer).transform;let n=0;if("string"==typeof t&&t.includes("matrix")){var o;const e=null===(o=t.match(/matrix.*\((.+)\)/))||void 0===o?void 0:o[1].split(", "),i=null==e?void 0:e[4];n=Number(i)}return n})(t),t.containerWidth=(null===(n=t.swipeContainer)||void 0===n||null===(n=n.parentElement)||void 0===n?void 0:n.clientWidth)||0,t.totalTranslate=0,t.currentTouchTranslate=0,t.avoidTouches=!1,t.approvedTouchAngle=!1,t.touchAngleCalculated=!1)},L=(e,t)=>{if(t.avoidTouches)return;const{clientX:n,clientY:o}=e.changedTouches[0];if(!t.touchAngleCalculated){const e=((e,t,n)=>{const o=Math.abs(t-e.initialX),i=Math.abs(n-e.initialY);return Math.atan2(i,o)*(180/Math.PI)})(t,n,o);t.touchAngleCalculated=!0,t.approvedTouchAngle=Boolean(e<=45)}t.approvedTouchAngle&&e.cancelable&&(e.preventDefault(),t.currentTouchTranslate=t.initialX-n,t.totalTranslate=t.currentTouchTranslate-t.initialTranslate,Math.abs(t.currentTouchTranslate)<=t.containerWidth&&requestAnimationFrame((()=>{var e;null===(e=t.swipeContainer)||void 0===e||e.setAttribute("style","transform: translateX(".concat(-t.totalTranslate,"px)"))})))};var P=e=>{let{behavior:t,centered:n,leftAligned:o,fullWidth:i}=e;return t||(i?"fullWidth":n?"centered":o?"leftAligned":void 0)};class x extends o.Component{constructor(e){super(e),(0,l.A)(this,"handleSubcontainerTouchStart",(e=>N(e,this))),(0,l.A)(this,"handleSubcontainerTouchMove",(e=>L(e,this))),(0,l.A)(this,"handleSubcontainerTouchEnd",(()=>(e=>{if(e.avoidTouches)return;const{selected:t}=e.state;if(Math.abs(e.currentTouchTranslate)>e.containerWidth/2)switch(!0){case t===e.enabledTabsIndexes[0]:e.currentTouchTranslate<0?S(e):C(e);break;case t===e.enabledTabsIndexes[e.enabledTabsIndexes.length-1]:e.currentTouchTranslate<0?E(e):S(e);break;default:e.currentTouchTranslate<0?E(e):C(e)}else S(e)})(this))),this.tabsContent=[],this.approvedTouchAngle=!1,this.avoidTouches=!1,this.containerWidth=0,this.currentTouchTranslate=0,this.enabledTabsIndexes=[],this.initialTranslate=0,this.initialX=0,this.initialY=0,this.swipeContainer=void 0,this.swipeTimeout=void 0,this.totalTranslate=0,this.touchAngleCalculated=!1,this.state={selected:e.selected||e.selectedTab||e.defaultSelectedTab||0,showScrollTool:!1,wrapperScroll:0},this.isControlled=void 0!==e.selectedTab,this.setSelectedTab=this.setSelectedTab.bind(this),this.moveScrollToSelectedTab=this.moveScrollToSelectedTab.bind(this),this.onScroll=this.onScroll.bind(this),this.onTabClick=this.onTabClick.bind(this),this.tabRef=this.tabRef.bind(this),this.getScrollTool=this.getScrollTool.bind(this),this.scrollToNextTab=this.scrollToNextTab.bind(this),this.scrollToPreviousTab=this.scrollToPreviousTab.bind(this),this.onMoveFocusTab=this.onMoveFocusTab.bind(this),this.checkScrollToolDisplay=this.checkScrollToolDisplay.bind(this)}componentDidMount(){(e=>{if("undefined"==typeof document)return;const t=document.querySelector(".".concat(g));t&&(e.swipeContainer=t,e.swipeContainer.addEventListener("touchstart",e.handleSubcontainerTouchStart),e.swipeContainer.addEventListener("touchmove",e.handleSubcontainerTouchMove),e.swipeContainer.addEventListener("touchend",e.handleSubcontainerTouchEnd))})(this),window.addEventListener("resize",this.checkScrollToolDisplay),this.wrapper&&this.wrapper.addEventListener("scroll",this.onScroll),this.checkScrollToolDisplay()}UNSAFE_componentWillReceiveProps(e){const{selected:t,selectedTab:n}=this.props;e.selected!==t?this.setSelectedTab(e.selected):e.selectedTab!==n&&this.setSelectedTab(e.selectedTab)}componentDidUpdate(e,t){const{children:n,selected:i,selectedTab:r}=this.props,{selected:a,showScrollTool:l}=this.state,{selected:s,showScrollTool:c}=t;o.Children.count(n)!==o.Children.count(e.children)&&this.setSelectedTab(i||r);(s!==a&&null!=a||c!==l)&&this.selectedTab&&!this.isElementInScrollViewport(this.selectedTab)&&this.moveScrollToSelectedTab()}componentWillUnmount(){var e;window.removeEventListener("resize",this.checkScrollToolDisplay),this.wrapper&&this.wrapper.removeEventListener("scroll",this.onScroll),(e=this).swipeContainer&&(e.swipeContainer.removeEventListener("touchstart",e.handleSubcontainerTouchStart),e.swipeContainer.removeEventListener("touchmove",e.handleSubcontainerTouchMove),e.swipeContainer.removeEventListener("touchend",e.handleSubcontainerTouchEnd))}onTabClick(e,t,n){const{onChange:o}=this.props;if(this.isControlled||this.setSelectedTab(t),"function"==typeof o){const i=e.target;i.value=t,i.id=n,o(e)}}checkScrollToolDisplay(){const e=this.wrapper&&this.wrapper.scrollWidth>this.wrapper.clientWidth||!1;this.setState({showScrollTool:e})}onScroll(e){const t=e.target;if(t&&null!=t&&t.scrollLeft){const{scrollLeft:e}=t;this.setState({wrapperScroll:e})}}getTabs(e){const{id:t,children:n}=this.props,{selected:i}=this.state;return o.Children.map(n,((r,a)=>{var l,s,d,u,p,f,v;const m=(null==r||null===(l=r.props)||void 0===l?void 0:l.id)||"".concat(t,"-tab-").concat(a),h=null==r||null===(s=r.props)||void 0===s?void 0:s.children;return this.tabsContent[a]=(0,o.isValidElement)(h)?(0,o.cloneElement)(h,{tabId:m,disabled:null==r||null===(d=r.props)||void 0===d?void 0:d.disabled,index:a,onSelect:null==r||null===(u=r.props)||void 0===u?void 0:u.onClick,id:h.props.id||"".concat(t,"-tab-content-").concat(a)}):null,this.enabledTabsIndexes=Object.values(this.tabsContent).filter((e=>{var t;return!(null!=e&&null!==(t=e.props)&&void 0!==t&&t.disabled)})).map((e=>{var t;return null==e||null===(t=e.props)||void 0===t?void 0:t.index})),(0,o.isValidElement)(r)&&(0,o.cloneElement)(r,{id:m,title:null==r||null===(p=r.props)||void 0===p?void 0:p.title,className:c()(null==r||null===(f=r.props)||void 0===f?void 0:f.className,{["andes-tab--".concat(e)]:e},{"andes-tab--first":0===a,"andes-tab--last":a===o.Children.count(n)-1}),onMoveFocusTab:this.onMoveFocusTab,onClick:e=>{var t,n;null!=r&&null!==(t=r.props)&&void 0!==t&&t.href||this.onTabClick(e,a,m),null!=r&&null!==(n=r.props)&&void 0!==n&&n.onClick&&r.props.onClick(e,a,m)},tabIndex:a,tabRef:this.tabRef,selected:a===i,tabContentId:this.tabsContent[a]?(null==h||null===(v=h.props)||void 0===v?void 0:v.id)||"".concat(t,"-tab-content-").concat(a):void 0})}))}onMoveFocusTab(e){var t;e.preventDefault();const{wrapper:n}=this,o=null==n||null===(t=n.firstElementChild)||void 0===t?void 0:t.children;if(o){const t=[...o].filter((e=>e&&"false"===e.getAttribute("aria-disabled"))),n=e.target;let i=t.findIndex((e=>e===n));e.code===d.RJ?(i+=1,i>=t.length&&(i=0)):e.code===d.eR&&(i-=1,i<0&&(i=t.length-1)),t[i].focus()}}setSelectedTab(e,t){this.setState({selected:e},t)}getScrollTool(){const{state:{wrapperScroll:e},wrapper:t}=this,n=0===e,o=!t||t.scrollLeft+t.clientWidth>=t.scrollWidth-5;return(0,a.A)("div",{className:"".concat(h,"__scroll-tool")},void 0,(0,a.A)("div",{className:"".concat(h,"__scroll-tool--fade")}),(0,a.A)("div",{className:"".concat(h,"__scroll-tool--controls")},void 0,(0,a.A)(f,{onClick:this.scrollToPreviousTab,disabled:n}),(0,a.A)(m,{onClick:this.scrollToNextTab,disabled:o})))}scrollToNextTab(){const{wrapper:e,getScrollDifference:t}=this;e&&(e.scrollLeft+=t(e))}scrollToPreviousTab(){const{wrapper:e,getScrollDifference:t}=this;e&&(e.scrollLeft-=t(e))}getScrollDifference(e){return e.clientWidth-80}moveScrollToSelectedTab(){var e;const t=null===(e=this.selectedTab)||void 0===e?void 0:e.offsetLeft;this.wrapper&&t&&(this.wrapper.scrollLeft=t)}isElementInScrollViewport(e){var t,n;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.7;const i=(null===(t=this.wrapper)||void 0===t?void 0:t.clientWidth)||0,r=(null===(n=this.wrapper)||void 0===n?void 0:n.scrollLeft)||0,a=e.clientWidth,l=e.offsetLeft,s=r,c=s+i,d=l,u=l+a;let p;switch(!0){case ds:p=u-s;break;case d>s&&u>s&&u<=c:p=u-d;break;case d<=c&&u>c:p=c-d;break;default:p=0}return!(p&&p<=0)&&(p&&p>=a*o)}getTabsContent(){var e,t;const{swipeable:n=!1}=this.props,{selected:i}=this.state;if(!n)return this.tabsContent[Number(i)];const r=Object.values(this.tabsContent),l=r.filter((e=>{var t;return!(null!=e&&null!==(t=e.props)&&void 0!==t&&t.disabled)})),s=l[0],d=l[l.length-1];let u=0;for(let e=0;e{this.wrapper=e}},(0,a.A)("div",{className:f,role:"tablist","aria-label":d||e},void 0,this.getTabs(p))),u&&this.getScrollTool(),(0,a.A)("div",{className:"".concat(h,"__border")}),this.getTabsContent())}}x.displayName="Tabs";var R=x;const O=["ref"];var M=function(){const e=(0,o.forwardRef)(((e,t)=>{let n=(0,r.A)(e,O);const a=(0,u.Bi)(n.id);return o.createElement(R,(0,i.A)({},n,{innerRef:t,id:a}))}));return e.displayName="TabsContainer",e}();var I=function(){const e=e=>{let{className:t,disabled:n=!1,href:i,id:r,onClick:l,onMoveFocusTab:s,selected:u=!1,tabContentId:p,tabIndex:f,tabRef:v,title:m}=e;const h=e=>{i||e.preventDefault(),u||n||"function"!=typeof l||l(e)},y=c()(b,t,{["".concat(b,"--selected")]:u,["".concat(b,"--disabled")]:n}),g=i&&!n?"a":"button";return o.createElement(g,{"aria-controls":p,"aria-disabled":n,"aria-selected":u,className:y,disabled:n,href:n?void 0:i||"#",id:r,onClick:h,onKeyDown:e=>{switch(e.code){case d.Fm:case d.t6:h(e);break;case d.eR:case d.RJ:"function"==typeof s&&s(e,f)}},ref:e=>{"function"==typeof v&&v(e,f,u)},role:"tab",tabIndex:u&&!n?0:-1},(0,a.A)("div",{className:"".concat(b,"__link")},void 0,"string"==typeof m?(0,a.A)("span",{},void 0,m):m))};return e.displayName="Tab",e}();const k=e=>{let{"aria-hidden":t,children:n,className:o,id:i,srHidden:r,tabId:l}=e;return(0,a.A)("div",{"aria-hidden":r||t,"aria-labelledby":l,className:c()("andes-tab-content",o),id:i,role:"tabpanel",tabIndex:0},void 0,n)};k.displayName="TabContent";var D,F=k,B=n(33829),V=n(27993),j=n(40136),z=n(37808);function U(e){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U(e)}function G(e){var t=function(e,t){if("object"!=U(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=U(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==U(t)?t:t+""}function H(e,t,n){return(t=G(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function X(e,t,n,o){D||(D="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var i=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={children:void 0}),1===r)t.children=o;else if(r>1){for(var a=Array(r),l=0;le.length)&&(t=e.length);for(var n=0,o=Array(t);n=i.length?u(0):void u(d)}),[i]),i.length&&1!==i.length?X("div",{className:t},void 0,X(M,{selectedTab:d,behavior:s},void 0,i.map((function(t,n){return X(I,{onClick:function(){return function(e){u(e),r(e)}(n)},title:t.props.node.properties.label},n,X(F,{},void 0,(0,o.cloneElement)(t,function(e){for(var t=1;t{},isEditable:!1},e}();var Z,J=Y;function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t1){for(var a=Array(r),l=0;l{let{color:t,i18n:n,srLabel:o}=e;return ee("svg",{"aria-hidden":o?void 0:!o,"aria-label":o||void 0,role:o?"img":void 0,width:"16",height:"16",viewBox:"0 0 16 16",fill:t},void 0,o&&ee("title",{},void 0,o),ee("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 ne;te.defaultProps={color:"rgba(0, 0, 0, 0.9)",srLabel:void 0};var oe,ie,re,ae,le,se,ce,de,ue,pe,fe,ve,me,he=function(){return ne||(ne=X("svg",{width:"12",height:"26",viewBox:"0 0 12 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},void 0,X("path",{d:"M1.64092e-06 12.9998L0.510303 13.6064L10.5576 25.5L12 24.2872L2.46296 13L12 1.71278L10.5576 0.500001L0.510303 12.3936L1.64088e-06 13.0002L1.64092e-06 12.9998Z",fill:"#232732"})))},be=function(){return oe||(oe=X("svg",{width:"12",height:"26",viewBox:"0 0 12 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},void 0,X("path",{d:"M12 13.0002L11.4897 12.3936L1.44244 0.5L9.00495e-07 1.71278L9.53704 13L-8.93746e-08 24.2872L1.44244 25.5L11.4897 13.6064L12 12.9998L12 13.0002Z",fill:"#232732"})))},ye=function(){return ie||(ie=X("svg",{width:"18",height:"15",viewBox:"0 0 18 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},void 0,X("path",{d:"M0.260529 8.1173L5.79868 14.47C6.15532 14.9035 6.86015 14.9422 7.2735 14.5648C7.68684 14.1874 7.72865 13.4675 7.34545 13.0584L3.34325 8.47028H16.9615C17.5349 8.47028 18 7.99614 18 7.41144C18 6.82674 17.5352 6.35259 16.9615 6.35259H3.34325L7.34545 1.76448C7.72865 1.35532 7.67698 0.636684 7.26336 0.259304C6.84998 -0.118095 6.15528 -0.0806721 5.79868 0.352855L0.260529 6.70554C-0.101181 7.21908 -0.0722028 7.68019 0.260529 8.11713V8.1173Z",fill:"#737373"}),X("path",{d:"M0.260529 8.1173L5.79868 14.47C6.15532 14.9035 6.86015 14.9422 7.2735 14.5648C7.68684 14.1874 7.72865 13.4675 7.34545 13.0584L3.34325 8.47028H16.9615C17.5349 8.47028 18 7.99614 18 7.41144C18 6.82674 17.5352 6.35259 16.9615 6.35259H3.34325L7.34545 1.76448C7.72865 1.35532 7.67698 0.636684 7.26336 0.259304C6.84998 -0.118095 6.15528 -0.0806721 5.79868 0.352855L0.260529 6.70554C-0.101181 7.21908 -0.0722028 7.68019 0.260529 8.11713V8.1173Z",fill:"#737373"})))},ge=function(){return re||(re=X("svg",{width:"18",height:"15",viewBox:"0 0 18 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},void 0,X("path",{d:"M17.7395 6.8827L12.2013 0.530014C11.8447 0.0964872 11.1399 0.057835 10.7265 0.435234C10.3132 0.812633 10.2713 1.53246 10.6545 1.9416L14.6567 6.52972L1.03853 6.52972C0.465069 6.52972 1.55258e-07 7.00386 1.55258e-07 7.58856C1.55258e-07 8.17326 0.464809 8.64741 1.03853 8.64741L14.6567 8.64741L10.6545 13.2355C10.2713 13.6447 10.323 14.3633 10.7366 14.7407C11.15 15.1181 11.8447 15.0807 12.2013 14.6471L17.7395 8.29446C18.1012 7.78092 18.0722 7.31981 17.7395 6.88287V6.8827Z",fill:"#737373"}),X("path",{d:"M17.7395 6.8827L12.2013 0.530014C11.8447 0.0964872 11.1399 0.057835 10.7265 0.435234C10.3132 0.812633 10.2713 1.53246 10.6545 1.9416L14.6567 6.52972L1.03853 6.52972C0.465069 6.52972 1.55258e-07 7.00386 1.55258e-07 7.58856C1.55258e-07 8.17326 0.464809 8.64741 1.03853 8.64741L14.6567 8.64741L10.6545 13.2355C10.2713 13.6447 10.323 14.3633 10.7366 14.7407C11.15 15.1181 11.8447 15.0807 12.2013 14.6471L17.7395 8.29446C18.1012 7.78092 18.0722 7.31981 17.7395 6.88287V6.8827Z",fill:"#737373"})))},Te=function(){return ae||(ae=X("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},void 0,X("path",{d:"M13.0588 4.9375L10.9375 7.05882L19.8768 15.9982L10.9375 24.9375L13.0588 27.0588L24.1195 15.9982L13.0588 4.9375Z",fill:"#3483FA"})))},we=function(){return le||(le=X("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},void 0,X("path",{d:"M21.0599 24.9395L12.1206 16.0001L21.0599 7.06077L18.9386 4.93945L7.87793 16.0001L18.9386 27.0608L21.0599 24.9395Z",fill:"#3483FA"})))},Ae=function(e){switch(e){case q.EXPLORER_THEME:return{previous:se||(se=X(ye,{})),next:ce||(ce=X(ge,{})),previousOffsetX:-32,nextOffsetX:32};case q.LEGEND_THEME:return{previous:de||(de=X(he,{})),next:ue||(ue=X(be,{})),previousOffsetX:-57,nextOffsetX:57};default:return{previous:pe||(pe=X(we,{})),next:fe||(fe=X(Te,{})),previousOffsetX:0,nextOffsetX:0}}},_e="ProductsCarousel";var Ee=function(){const e=function(e){var t,n=e.layoutTheme,i=e.deviceType,r=e.variation,a=e.children,l=e.view_more_action,s=e.componentType,d=e.itemsPerRowMobile,u=e.itemsPerRow,p="mobile"===i,f="desktop"===i,v=n===q.EXPLORER_THEME,m=n===q.LEGEND_THEME,h=p?d:u,b=c()("ui-ms-gallery-tab__content grid-container",["ui-ms-gallery-tab__content--variation-".concat(h)],{"ui-ms-gallery-tab__content--mobile":p}),y=function(e){return o.createElement(j.i,Q({className:"ui-ms-carousel-pagination"},e))},g=_e===s,T=p&&l&&!v;return X("div",{},void 0,(g?(f||v)&&l:(m&&f||v)&&l)&&X(z.$n,{className:"ui-ms-tab-with-items__view-more-action--".concat(i),hierarchy:"transparent",href:l.target},void 0,l.label,"legend"===n&&(ve||(ve=X(te,{})))),a.length&&(g?o.createElement(V.G,Q({extend:!0,key:(0,B.A)(),variableWidth:!1,srLabel:"products-carousel",pagination:(t=f||"tablet"===i?r:2,!!((null==a?void 0:a.length)>t)&&{custom:{component:y,offsetY:v||m?0:32}}),className:"ui-ms-products-carousel"},function(e,t,n){return{desktop:{slidesPerView:n,thresholdSlide:0,spacing:16,arrows:{previous:{component:e,position:q.POSITION_PREVIOUS_ARROW,offsetX:Ae(t).previousOffsetX},next:{component:e,position:q.POSITION_NEXT_ARROW,offsetX:Ae(t).nextOffsetX}},visibility:t===q.EXPLORER_THEME||t===q.LEGEND_THEME},mobile:{slidesPerView:2,thresholdSlide:t===q.LEGEND_THEME?20:5,spacing:8,arrows:!1}}}((function(e){var t="ui-ms-products-carousel__control",o=e.type,i=e.disabled,r=c()(t,H(H(H({},"".concat(t,"--").concat(o),o),"".concat(t,"--disabled"),i),"".concat(t,"--").concat(n),n));return X(j.Pb,{className:r,type:o},void 0,Ae(n)[o])}),n,r)[i]),null==a?void 0:a.map((function(e){return X(V.j5,{},(0,B.A)(),e)}))):X("div",{className:b},void 0,a)),T&&X(z.$n,{className:"ui-ms-tab-with-items__view-more-action--".concat(i),hierarchy:"transparent",href:l.target},void 0,l.label,"legend"===n&&(me||(me=X(te,{})))))};return e.defaultProps={viewMoreAction:null,componentType:"ProductsCarousel",itemsPerRowMobile:2,itemsPerRow:4},e}()},62290:(e,t,n)=>{const o=n(96540),i=n(5556),r=e=>{let{children:t}=e;return t?o.Children.only(t):null};r.propTypes={section:i.string.isRequired,secure:i.bool,search:i.string,dimensions:i.object,metrics:i.object,pathFromRoot:i.array,business:i.string,pageVertical:i.string,pageLayout:i.string,pageCategoryL1:i.string,privatePage:i.string,isDeferred:i.bool,enableOptimize:i.bool,optimizeId:i.string,preventOptimizeFlickering:i.bool,children:i.any},r.MeliGA=r,e.exports=r},22219:(e,t,n)=>{e.exports=n(62290)},29032:(e,t,n)=>{e.exports=n(21878)},24582:(e,t,n)=>{e.exports=n(28635)},42762:(e,t,n)=>{"use strict";var o=n(46518),i=n(43802).trim;o({target:"String",proto:!0,forced:n(60706)("trim")},{trim:function(){return i(this)}})}}]); //# sourceMappingURL=9219.825544ce.js.map