(window.webpackJsonpvtex_store_components_3_176_2=window.webpackJsonpvtex_store_components_3_176_2||[]).push([["SanitizedHTML"],{0:function(e,t){e.exports=React},19:function(e,t,l){"use strict";l.d(t,"a",(function(){return r})),l.d(t,"b",(function(){return c}));var a=l(0),s=l.n(a),o=l(35),n=l.n(o),r={allowedAttributes:{"*":["id","title","accesskey","class","style","aria-label","width","height","hidden"],a:["href","name","target"],iframe:["allow","allowfullscreen","frameborder","src"],img:["src","alt"],link:["rel","type","href"],td:["colspan","rowspan","headers"]},allowedClasses:{},allowedSchemes:["http","https","mailto","tel"],allowedTags:["a","abbr","article","b","blockquote","br","caption","code","del","details","div","em","figure","h1","h2","h3","h4","h5","h6","hr","header","footer","i","img","ins","iframe","kbd","li","main","mark","ol","p","picture","pre","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","th","thead","tr","u","ul"]};function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=t.allowedAttributes,a=t.allowedClasses,s=t.allowedTags,o=Object.assign({},r);return s&&(o.allowedTags=s),a&&(o.allowedClasses=a),l&&(o.allowedAttributes=l),n()(e,o)}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:i(e,t)}}var c=function(e){var t=e.content,l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=t.allowedAttributes,s=t.allowedClasses,o=t.allowedTags,n=Object(a.useMemo)((function(){return d(e,{allowedAttributes:l,allowedClasses:s,allowedTags:o})}),[l,s,o,e]);return n}(t,{allowedAttributes:e.allowedAttributes,allowedClasses:e.allowedClasses,allowedTags:e.allowedTags});return t?s.a.createElement("div",{style:{display:"contents"},dangerouslySetInnerHTML:l}):null}},199:function(e,t,l){"use strict";l.r(t),function(e){var t=l(3);l.p=Object(t.getPublicPath)("vtex.store-components@3.176.2");var a=Object(t.register)((function(){return l(200)}),e,"vtex.store-components@3.176.2","vtex.store-components@3.x","SanitizedHTML");a.renderHotReload,a.setupHMR}.call(this,l(15)(e))},200:function(e,t,l){"use strict";l.r(t);var a=l(19);l.d(t,"default",(function(){return a.b}))}},[[199,"common",0]]]);; (window.webpackJsonpvtex_store_components_3_176_2=window.webpackJsonpvtex_store_components_3_176_2||[]).push([[10],{100:function(e,t,n){"use strict";e.exports=n(202)},202:function(e,t,n){"use strict";var o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,r=o?Symbol.for("react.portal"):60106,u=o?Symbol.for("react.fragment"):60107,s=o?Symbol.for("react.strict_mode"):60108,l=o?Symbol.for("react.profiler"):60114,a=o?Symbol.for("react.provider"):60109,d=o?Symbol.for("react.context"):60110,c=o?Symbol.for("react.async_mode"):60111,p=o?Symbol.for("react.concurrent_mode"):60111,h=o?Symbol.for("react.forward_ref"):60112,f=o?Symbol.for("react.suspense"):60113,g=o?Symbol.for("react.suspense_list"):60120,m=o?Symbol.for("react.memo"):60115,v=o?Symbol.for("react.lazy"):60116,I=o?Symbol.for("react.block"):60121,y=o?Symbol.for("react.fundamental"):60117,b=o?Symbol.for("react.responder"):60118,S=o?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case c:case p:case u:case l:case s:case f:return e;default:switch(e=e&&e.$$typeof){case d:case h:case v:case m:case a:return e;default:return t}}case r:return t}}}function x(e){return w(e)===p}t.AsyncMode=c,t.ConcurrentMode=p,t.ContextConsumer=d,t.ContextProvider=a,t.Element=i,t.ForwardRef=h,t.Fragment=u,t.Lazy=v,t.Memo=m,t.Portal=r,t.Profiler=l,t.StrictMode=s,t.Suspense=f,t.isAsyncMode=function(e){return x(e)||w(e)===c},t.isConcurrentMode=x,t.isContextConsumer=function(e){return w(e)===d},t.isContextProvider=function(e){return w(e)===a},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return w(e)===h},t.isFragment=function(e){return w(e)===u},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===r},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===u||e===p||e===l||e===s||e===f||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===a||e.$$typeof===d||e.$$typeof===h||e.$$typeof===y||e.$$typeof===b||e.$$typeof===S||e.$$typeof===I)},t.typeOf=w},56:function(e,t){function n(e,t,n){var o,i,r,u,s;function l(){var a=Date.now()-u;a=0?o=setTimeout(l,t-a):(o=null,n||(s=e.apply(r,i),r=i=null))}null==t&&(t=100);var a=function(){r=this,i=arguments,u=Date.now();var a=n&&!o;return o||(o=setTimeout(l,t)),a&&(s=e.apply(r,i),r=i=null),s};return a.clear=function(){o&&(clearTimeout(o),o=null)},a.flush=function(){o&&(s=e.apply(r,i),r=i=null,clearTimeout(o),o=null)},a}n.debounce=n,e.exports=n},87:function(e,t,n){"use strict";var o=n(40),i=n(13),r=n(99),u=n(32),s=n(2),l=n.n(s),a=n(0);n(100);function d(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function c(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function p(e,t){if(e.clientHeightt||r>e&&u=t&&s>=n?r-e-o:u>t&&sn?u-t+i:0}var f=0;function g(e){return"function"==typeof e?e:m}function m(){}function v(e,t){null!==e&&function(e,t){var n=window,o=t.scrollMode,i=t.block,r=t.inline,u=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof u?u:function(e){return e!==u};if(!d(e))throw new TypeError("Invalid target");for(var a=document.scrollingElement||document.documentElement,c=[],f=e;d(f)&&l(f);){if((f=f.parentNode)===a){c.push(f);break}f===document.body&&p(f)&&!p(document.documentElement)||p(f,s)&&c.push(f)}for(var g=n.visualViewport?n.visualViewport.width:innerWidth,m=n.visualViewport?n.visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,I=window.scrollY||pageYOffset,y=e.getBoundingClientRect(),b=y.height,S=y.width,w=y.top,x=y.right,C=y.bottom,O=y.left,H="start"===i||"nearest"===i?w:"end"===i?C:w+b/2,E="center"===r?O+S/2:"end"===r?x:O,M=[],D=0;D=0&&O>=0&&C<=m&&x<=g&&w>=R&&C<=V&&O>=K&&x<=j)return M;var _=getComputedStyle(P),L=parseInt(_.borderLeftWidth,10),$=parseInt(_.borderTopWidth,10),B=parseInt(_.borderRightWidth,10),W=parseInt(_.borderBottomWidth,10),U=0,N=0,F="offsetWidth"in P?P.offsetWidth-P.clientWidth-L-B:0,z="offsetHeight"in P?P.offsetHeight-P.clientHeight-$-W:0;if(a===P)U="start"===i?H:"end"===i?H-m:"nearest"===i?h(I,I+m,m,$,W,I+H,I+H+b,b):H-m/2,N="start"===r?E:"center"===r?E-g/2:"end"===r?E-g:h(v,v+g,g,L,B,v+E,v+E+S,S),U=Math.max(0,U+I),N=Math.max(0,N+v);else{U="start"===i?H-R-$:"end"===i?H-V+W+z:"nearest"===i?h(R,V,k,$,W+z,H,H+b,b):H-(R+k/2)+z/2,N="start"===r?E-K-L:"center"===r?E-(K+A/2)+F/2:"end"===r?E-j+B+F:h(K,j,A,L,B+F,E,E+S,S);var X=P.scrollLeft,Y=P.scrollTop;H+=Y-(U=Math.max(0,Math.min(Y+U,P.scrollHeight-k+z))),E+=X-(N=Math.max(0,Math.min(X+N,P.scrollWidth-A+F)))}M.push({el:P,top:U,left:N})}return M}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}).forEach((function(e){var t=e.el,n=e.top,o=e.left;t.scrollTop=n,t.scrollLeft=o}))}function I(e,t){return e===t||e.contains&&e.contains(t)}function y(e,t){var n;function o(){n&&clearTimeout(n)}function i(){for(var i=arguments.length,r=new Array(i),u=0;u1?n-1:0),i=1;i=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function D(e,t,n){var o=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:o+1);var i=t+e;return i<0?i=o:i>o&&(i=0),i}var P=y((function(){k().textContent=""}),500);function T(e,t){var n=k(t);e&&(n.textContent=e,P())}function k(e){void 0===e&&(e=document);var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var A=Object.freeze({__proto__:null,unknown:0,mouseUp:1,itemMouseEnter:2,keyDownArrowUp:3,keyDownArrowDown:4,keyDownEscape:5,keyDownEnter:6,keyDownHome:7,keyDownEnd:8,clickItem:9,blurInput:10,changeInput:11,keyDownSpaceButton:12,clickButton:13,blurButton:14,controlledPropUpdatedSelectedItem:15,touchEnd:16}),R=function(){var e=function(e){function t(t){var n=e.call(this,t)||this;n.id=n.props.id||"downshift-"+String(f++),n.menuId=n.props.menuId||n.id+"-menu",n.labelId=n.props.labelId||n.id+"-label",n.inputId=n.props.inputId||n.id+"-input",n.getItemId=n.props.getItemId||function(e){return n.id+"-item-"+e},n.input=null,n.items=[],n.itemCount=null,n.previousResultCount=0,n.timeoutIds=[],n.internalSetTimeout=function(e,t){var o=setTimeout((function(){n.timeoutIds=n.timeoutIds.filter((function(e){return e!==o})),e()}),t);n.timeoutIds.push(o)},n.setItemCount=function(e){n.itemCount=e},n.unsetItemCount=function(){n.itemCount=null},n.setHighlightedIndex=function(e,t){void 0===e&&(e=n.props.defaultHighlightedIndex),void 0===t&&(t={}),t=E(t),n.internalSetState(Object(i.a)({highlightedIndex:e},t))},n.clearSelection=function(e){n.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:n.props.defaultHighlightedIndex,isOpen:n.props.defaultIsOpen},e)},n.selectItem=function(e,t,o){t=E(t),n.internalSetState(Object(i.a)({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,selectedItem:e,inputValue:n.props.itemToString(e)},t),o)},n.selectItemAtIndex=function(e,t,o){var i=n.items[e];null!=i&&n.selectItem(i,t,o)},n.selectHighlightedItem=function(e,t){return n.selectItemAtIndex(n.getState().highlightedIndex,e,t)},n.internalSetState=function(e,t){var o,r,u={},s="function"==typeof e;return!s&&e.hasOwnProperty("inputValue")&&n.props.onInputValueChange(e.inputValue,Object(i.a)({},n.getStateAndHelpers(),{},e)),n.setState((function(t){t=n.getState(t);var l=s?e(t):e;l=n.props.stateReducer(t,l),o=l.hasOwnProperty("selectedItem");var a={},d={};return o&&l.selectedItem!==t.selectedItem&&(r=l.selectedItem),l.type=l.type||0,Object.keys(l).forEach((function(e){t[e]!==l[e]&&(u[e]=l[e]),"type"!==e&&(d[e]=l[e],n.isControlledProp(e)||(a[e]=l[e]))})),s&&l.hasOwnProperty("inputValue")&&n.props.onInputValueChange(l.inputValue,Object(i.a)({},n.getStateAndHelpers(),{},l)),a}),(function(){g(t)(),Object.keys(u).length>1&&n.props.onStateChange(u,n.getStateAndHelpers()),o&&n.props.onSelect(e.selectedItem,n.getStateAndHelpers()),void 0!==r&&n.props.onChange(r,n.getStateAndHelpers()),n.props.onUserAction(u,n.getStateAndHelpers())}))},n.rootRef=function(e){return n._rootNode=e},n.getRootProps=function(e,t){var r,u=void 0===e?{}:e,s=u.refKey,l=void 0===s?"ref":s,a=u.ref,d=Object(o.a)(u,["refKey","ref"]),c=(void 0===t?{}:t).suppressRefError,p=void 0!==c&&c;n.getRootProps.called=!0,n.getRootProps.refKey=l,n.getRootProps.suppressRefError=p;var h=n.getState().isOpen;return Object(i.a)(((r={})[l]=S(a,n.rootRef),r.role="combobox",r["aria-expanded"]=h,r["aria-haspopup"]="listbox",r["aria-owns"]=h?n.menuId:null,r["aria-labelledby"]=n.labelId,r),d)},n.keyDownHandlers={ArrowDown:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?5:1;this.moveHighlightedIndex(n,{type:4})}else this.internalSetState({isOpen:!0,type:4},(function(){var e=t.getItemCount();e>0&&t.setHighlightedIndex(D(1,t.getState().highlightedIndex,e),{type:4})}))},ArrowUp:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?-5:-1;this.moveHighlightedIndex(n,{type:3})}else this.internalSetState({isOpen:!0,type:3},(function(){var e=t.getItemCount();e>0&&t.setHighlightedIndex(D(-1,t.getState().highlightedIndex,e),{type:4})}))},Enter:function(e){var t=this.getState(),n=t.isOpen,o=t.highlightedIndex;if(n&&null!=o){e.preventDefault();var i=this.items[o],r=this.getItemNodeFromIndex(o);if(null==i||r&&r.hasAttribute("disabled"))return;this.selectHighlightedItem({type:6})}},Escape:function(e){e.preventDefault(),this.reset({type:5,selectedItem:null,inputValue:""})}},n.buttonKeyDownHandlers=Object(i.a)({},n.keyDownHandlers,{" ":function(e){e.preventDefault(),this.toggleMenu({type:12})}}),n.inputKeyDownHandlers=Object(i.a)({},n.keyDownHandlers,{Home:function(e){this.highlightFirstOrLastIndex(e,!0,{type:7})},End:function(e){this.highlightFirstOrLastIndex(e,!1,{type:8})}}),n.getToggleButtonProps=function(e){var t=void 0===e?{}:e,r=t.onClick,u=(t.onPress,t.onKeyDown),s=t.onKeyUp,l=t.onBlur,a=Object(o.a)(t,["onClick","onPress","onKeyDown","onKeyUp","onBlur"]),d=n.getState().isOpen,c={onClick:b(r,n.buttonHandleClick),onKeyDown:b(u,n.buttonHandleKeyDown),onKeyUp:b(s,n.buttonHandleKeyUp),onBlur:b(l,n.buttonHandleBlur)},p=a.disabled?{}:c;return Object(i.a)({type:"button",role:"button","aria-label":d?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},p,{},a)},n.buttonHandleKeyUp=function(e){e.preventDefault()},n.buttonHandleKeyDown=function(e){var t=M(e);n.buttonKeyDownHandlers[t]&&n.buttonKeyDownHandlers[t].call(Object(r.a)(n),e)},n.buttonHandleClick=function(e){e.preventDefault(),n.props.environment.document.activeElement===n.props.environment.document.body&&e.target.focus(),n.internalSetTimeout((function(){return n.toggleMenu({type:13})}))},n.buttonHandleBlur=function(e){var t=e.target;n.internalSetTimeout((function(){n.isMouseDown||null!=n.props.environment.document.activeElement&&n.props.environment.document.activeElement.id===n.inputId||n.props.environment.document.activeElement===t||n.reset({type:14})}))},n.getLabelProps=function(e){return Object(i.a)({htmlFor:n.inputId,id:n.labelId},e)},n.getInputProps=function(e){var t=void 0===e?{}:e,r=t.onKeyDown,u=t.onBlur,s=t.onChange,l=t.onInput,a=(t.onChangeText,Object(o.a)(t,["onKeyDown","onBlur","onChange","onInput","onChangeText"])),d={};var c,p=n.getState(),h=p.inputValue,f=p.isOpen,g=p.highlightedIndex;a.disabled||((c={}).onChange=b(s,l,n.inputHandleChange),c.onKeyDown=b(r,n.inputHandleKeyDown),c.onBlur=b(u,n.inputHandleBlur),d=c);return Object(i.a)({"aria-autocomplete":"list","aria-activedescendant":f&&"number"==typeof g&&g>=0?n.getItemId(g):null,"aria-controls":f?n.menuId:null,"aria-labelledby":n.labelId,autoComplete:"off",value:h,id:n.inputId},d,{},a)},n.inputHandleKeyDown=function(e){var t=M(e);t&&n.inputKeyDownHandlers[t]&&n.inputKeyDownHandlers[t].call(Object(r.a)(n),e)},n.inputHandleChange=function(e){n.internalSetState({type:11,isOpen:!0,inputValue:e.target.value,highlightedIndex:n.props.defaultHighlightedIndex})},n.inputHandleBlur=function(){n.internalSetTimeout((function(){var e=n.props.environment.document&&!!n.props.environment.document.activeElement&&!!n.props.environment.document.activeElement.dataset&&n.props.environment.document.activeElement.dataset.toggle&&n._rootNode&&n._rootNode.contains(n.props.environment.document.activeElement);n.isMouseDown||e||n.reset({type:10})}))},n.menuRef=function(e){n._menuNode=e},n.getMenuProps=function(e,t){var r,u=void 0===e?{}:e,s=u.refKey,l=void 0===s?"ref":s,a=u.ref,d=Object(o.a)(u,["refKey","ref"]),c=(void 0===t?{}:t).suppressRefError,p=void 0!==c&&c;return n.getMenuProps.called=!0,n.getMenuProps.refKey=l,n.getMenuProps.suppressRefError=p,Object(i.a)(((r={})[l]=S(a,n.menuRef),r.role="listbox",r["aria-labelledby"]=d&&d["aria-label"]?null:n.labelId,r.id=n.menuId,r),d)},n.getItemProps=function(e){var t,r=void 0===e?{}:e,u=r.onMouseMove,s=r.onMouseDown,l=r.onClick,a=(r.onPress,r.index),d=r.item,c=void 0===d?void 0:d,p=Object(o.a)(r,["onMouseMove","onMouseDown","onClick","onPress","index","item"]);void 0===a?(n.items.push(c),a=n.items.indexOf(c)):n.items[a]=c;var h=l,f=((t={onMouseMove:b(u,(function(){a!==n.getState().highlightedIndex&&(n.setHighlightedIndex(a,{type:2}),n.avoidScrolling=!0,n.internalSetTimeout((function(){return n.avoidScrolling=!1}),250))})),onMouseDown:b(s,(function(e){e.preventDefault()}))}).onClick=b(h,(function(){n.selectItemAtIndex(a,{type:9})})),t),g=p.disabled?{onMouseDown:f.onMouseDown}:f;return Object(i.a)({id:n.getItemId(a),role:"option","aria-selected":n.getState().highlightedIndex===a},g,{},p)},n.clearItems=function(){n.items=[]},n.reset=function(e,t){void 0===e&&(e={}),e=E(e),n.internalSetState((function(t){var o=t.selectedItem;return Object(i.a)({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,inputValue:n.props.itemToString(o)},e)}),t)},n.toggleMenu=function(e,t){void 0===e&&(e={}),e=E(e),n.internalSetState((function(t){var o=t.isOpen;return Object(i.a)({isOpen:!o},o&&{highlightedIndex:n.props.defaultHighlightedIndex},{},e)}),(function(){var o=n.getState(),i=o.isOpen,r=o.highlightedIndex;i&&n.getItemCount()>0&&"number"==typeof r&&n.setHighlightedIndex(r,e),g(t)()}))},n.openMenu=function(e){n.internalSetState({isOpen:!0},e)},n.closeMenu=function(e){n.internalSetState({isOpen:!1},e)},n.updateStatus=y((function(){var e=n.getState(),t=n.items[e.highlightedIndex],o=n.getItemCount(),r=n.props.getA11yStatusMessage(Object(i.a)({itemToString:n.props.itemToString,previousResultCount:n.previousResultCount,resultCount:o,highlightedItem:t},e));n.previousResultCount=o,T(r,n.props.environment.document)}),200);var u=n.props,s=u.defaultHighlightedIndex,l=u.initialHighlightedIndex,a=void 0===l?s:l,d=u.defaultIsOpen,c=u.initialIsOpen,p=void 0===c?d:c,h=u.initialInputValue,m=void 0===h?"":h,v=u.initialSelectedItem,I=void 0===v?null:v,w=n.getState({highlightedIndex:a,isOpen:p,inputValue:m,selectedItem:I});return null!=w.selectedItem&&void 0===n.props.initialInputValue&&(w.inputValue=n.props.itemToString(w.selectedItem)),n.state=w,n}Object(u.a)(t,e);var n=t.prototype;return n.internalClearTimeouts=function(){this.timeoutIds.forEach((function(e){clearTimeout(e)})),this.timeoutIds=[]},n.getState=function(e){var t=this;return void 0===e&&(e=this.state),Object.keys(e).reduce((function(n,o){return n[o]=t.isControlledProp(o)?t.props[o]:e[o],n}),{})},n.isControlledProp=function(e){return void 0!==this.props[e]},n.getItemCount=function(){var e=this.items.length;return null!=this.itemCount?e=this.itemCount:void 0!==this.props.itemCount&&(e=this.props.itemCount),e},n.getItemNodeFromIndex=function(e){return this.props.environment.document.getElementById(this.getItemId(e))},n.scrollHighlightedItemIntoView=function(){var e=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(e,this._menuNode)},n.moveHighlightedIndex=function(e,t){var n=this.getItemCount();if(n>0){var o=D(e,this.getState().highlightedIndex,n);this.setHighlightedIndex(o,t)}},n.highlightFirstOrLastIndex=function(e,t,n){var o=this.getItemCount()-1;o<0||!this.getState().isOpen||(e.preventDefault(),this.setHighlightedIndex(t?0:o,n))},n.getStateAndHelpers=function(){var e=this.getState(),t=e.highlightedIndex,n=e.inputValue,o=e.selectedItem,i=e.isOpen,r=this.props.itemToString,u=this.id,s=this.getRootProps,l=this.getToggleButtonProps,a=this.getLabelProps,d=this.getMenuProps,c=this.getInputProps,p=this.getItemProps,h=this.openMenu,f=this.closeMenu,g=this.toggleMenu,m=this.selectItem,v=this.selectItemAtIndex,I=this.selectHighlightedItem,y=this.setHighlightedIndex,b=this.clearSelection,S=this.clearItems;return{getRootProps:s,getToggleButtonProps:l,getLabelProps:a,getMenuProps:d,getInputProps:c,getItemProps:p,reset:this.reset,openMenu:h,closeMenu:f,toggleMenu:g,selectItem:m,selectItemAtIndex:v,selectHighlightedItem:I,setHighlightedIndex:y,clearSelection:b,clearItems:S,setItemCount:this.setItemCount,unsetItemCount:this.unsetItemCount,setState:this.internalSetState,itemToString:r,id:u,highlightedIndex:t,inputValue:n,isOpen:i,selectedItem:o}},n.componentDidMount=function(){var e=this;var t=function(t,n){void 0===n&&(n=!0);var o=e.props.environment.document;return[e._rootNode,e._menuNode].some((function(e){return e&&(I(e,t)||n&&I(e,o.activeElement))}))},n=function(){e.isMouseDown=!0},o=function(n){e.isMouseDown=!1,!t(n.target)&&e.getState().isOpen&&e.reset({type:1},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},i=function(){e.isTouchMove=!1},r=function(){e.isTouchMove=!0},u=function(n){var o=t(n.target,!1);e.isTouchMove||o||!e.getState().isOpen||e.reset({type:16},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},s=this.props.environment;s.addEventListener("mousedown",n),s.addEventListener("mouseup",o),s.addEventListener("touchstart",i),s.addEventListener("touchmove",r),s.addEventListener("touchend",u),this.cleanup=function(){e.internalClearTimeouts(),e.updateStatus.cancel(),s.removeEventListener("mousedown",n),s.removeEventListener("mouseup",o),s.removeEventListener("touchstart",i),s.removeEventListener("touchmove",r),s.removeEventListener("touchend",u)}},n.shouldScroll=function(e,t){var n=(void 0===this.props.highlightedIndex?this.getState():this.props).highlightedIndex,o=(void 0===t.highlightedIndex?e:t).highlightedIndex;return n&&this.getState().isOpen&&!e.isOpen||n!==o},n.componentDidUpdate=function(e,t){this.isControlledProp("selectedItem")&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)&&this.internalSetState({type:15,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(t,e)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},n.componentWillUnmount=function(){this.cleanup()},n.render=function(){var e=x(this.props.children,m);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var t=x(e(this.getStateAndHelpers()));return t?this.getRootProps.called||this.props.suppressRefError?t:C(t)?Object(a.cloneElement)(t,this.getRootProps(O(t))):void 0:null},t}(a.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:w,itemToString:function(e){return null==e?"":String(e)},onStateChange:m,onInputValueChange:m,onUserAction:m,onChange:m,onSelect:m,onOuterClick:m,selectedItemChanged:function(e,t){return e!==t},environment:"undefined"==typeof window?{}:window,stateReducer:function(e,t){return t},suppressRefError:!1,scrollIntoView:v},e.stateChangeTypes=A,e}();l.a.array.isRequired,l.a.func,l.a.func,l.a.func,l.a.bool,l.a.number,l.a.number,l.a.number,l.a.bool,l.a.bool,l.a.bool,l.a.any,l.a.any,l.a.any,l.a.string,l.a.string,l.a.string,l.a.func,l.a.string,l.a.func,l.a.func,l.a.func,l.a.func,l.a.func,l.a.shape({addEventListener:l.a.func,removeEventListener:l.a.func,document:l.a.shape({getElementById:l.a.func,activeElement:l.a.any,body:l.a.any})});"undefined"==typeof window||window;t.a=R}}]);; (window.webpackJsonpvtex_store_components_3_176_2=window.webpackJsonpvtex_store_components_3_176_2||[]).push([[4],{112:function(e,n){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Autocomplete"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"maxRows"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"inputValue"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sender"},value:{kind:"StringValue",value:"vtex.store-components@3.176.2",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"autocomplete"},arguments:[{kind:"Argument",name:{kind:"Name",value:"maxRows"},value:{kind:"Variable",name:{kind:"Name",value:"maxRows"}}},{kind:"Argument",name:{kind:"Name",value:"searchTerm"},value:{kind:"Variable",name:{kind:"Name",value:"inputValue"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"context"},arguments:[{kind:"Argument",name:{kind:"Name",value:"provider"},value:{kind:"StringValue",value:"vtex.search-graphql",block:!1}}]},{kind:"Directive",name:{kind:"Name",value:"runtimeMeta"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hash"},value:{kind:"StringValue",value:"d17fb658b5559fe5d96324d938f455c3b75256700b3b6b26063a1601e343e547",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"itemsReturned"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"thumb"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"href"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"criteria"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:437}};t.loc.source={body:'query Autocomplete($maxRows: Int, $inputValue: String) @context(sender: "vtex.store-components@3.176.2") {\n autocomplete(maxRows: $maxRows, searchTerm: $inputValue) @context(provider: "vtex.search-graphql") @runtimeMeta(hash: "d17fb658b5559fe5d96324d938f455c3b75256700b3b6b26063a1601e343e547") {\n itemsReturned {\n thumb\n name\n href\n productId\n criteria\n slug\n __typename\n }\n __typename\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,n){for(var t=0;t0;){var m=s;s=new Set,m.forEach((function(e){l.has(e)||(l.add(e),(a[e]||new Set).forEach((function(e){s.add(e)})))}))}return l.forEach((function(n){var a=i(e,n);a&&t.definitions.push(a)})),t}(t,"Autocomplete")},157:function(e,n,t){e.exports={resultsList:"vtex-store-components-3-x-resultsList",resultsItemImage:"vtex-store-components-3-x-resultsItemImage"}},91:function(e,n,t){"use strict";t.r(n);var a=t(11),i=t(9),r=t(0),l=t.n(r),s=t(6),m=t.n(s),o=t(4),c=t(23),u=t(92),d=t.n(u),v=t(8),p=t(7),f=t.n(p),k=(t(157),t(112)),h=t.n(k),g=["resultsItem","resultsList","searchTerm","resultsItemImage","spinnerContainer","spinnerInnerContainer","resultsItemName"],b=function(e){var n,t=null!==(n=e.match(/https?:(.*?)"/g))&&void 0!==n?n:[""];return Object(i.a)(t,1)[0].replace(/https?:/,"").replace(/-25-25/g,"-50-50")};n.default=function(e){var n,t,i=e.parentContainer,s=e.isOpen,u=e.inputValue,p=e.closeMenu,k=e.onClearInput,x=e.getItemProps,N=e.getMenuProps,I=e.highlightedIndex,w=e.attemptPageTypeSearch,y=e.customSearchPageUrl,E=e.classes,S=Object(c.useQuery)(h.a,{skip:!u,variables:{inputValue:u}}),_=S.data,V=S.loading,F=null!==(t=null===(n=null==_?void 0:_.autocomplete)||void 0===n?void 0:n.itemsReturned)&&void 0!==t?t:[],D=Object(v.useRuntime)().hints.mobile,R=f()(g,{classes:E}).handles,j=encodeURIComponent(u),C=Object(r.useMemo)((function(){var e,n;return{width:Math.max(320,null!==(n=null===(e=null==i?void 0:i.current)||void 0===e?void 0:e.offsetWidth)&&void 0!==n?n:0)}}),[i]),O=m()(R.resultsList,"z-max w-100 bl-ns bb br-ns bw1 b--muted-4 bg-base c-on-base t-body left-0 list pv4 ph0 mv0 list overflow-y-auto",D?"fixed":"absolute",(!s||!u)&&"dn"),T=function(){k(),p()};function A(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.itemIndex,t=void 0===n?-1:n,a=e.highlightedIndex,i=e.hasThumb,r=a===t?"bg-muted-5":"";return"pointer pa4 outline-0 ".concat(R.resultsItem," ").concat(r," ").concat(i?"flex justify-start":"db w-100")}var q=function(){return l.a.createElement("div",{className:"w-100 flex justify-center ".concat(R.spinnerContainer)},l.a.createElement("div",{className:"".concat(R.spinnerInnerContainer," w3 ma0")},l.a.createElement(d.a,null)))},L=l.a.createElement(o.FormattedMessage,{id:"store/search.searchFor",values:{term:l.a.createElement("span",{className:R.searchTerm},'"'.concat(u,'"'))}});return l.a.createElement("div",{style:C},l.a.createElement("ul",Object(a.a)({className:O},N()),s?V?l.a.createElement("div",{className:A({})},l.a.createElement(q,null)):l.a.createElement(r.Fragment,null,l.a.createElement("li",x({key:"ft".concat(u),item:{term:j},index:0,onClick:T}),w?l.a.createElement("a",{href:"#",onClick:function(e){return e.preventDefault()},className:A({itemIndex:0,highlightedIndex:I})},L):function(e){return y?l.a.createElement(v.Link,{className:A({itemIndex:0,highlightedIndex:I}),to:y.replace(/\$\{term\}/g,e)},L):l.a.createElement(v.Link,{page:"store.search",params:{term:e},query:"map=ft",className:A({itemIndex:0,highlightedIndex:I})},L)}(j)),F.map((function(e,n){return l.a.createElement("li",x({key:"".concat(e.name).concat(n),index:n+1,item:e,onClick:T}),l.a.createElement(v.Link,Object(a.a)({},function(e){var n=e.slug.split("/");if(e.criteria){var t="&_c=".concat(n[0]);return{page:"store.search",params:{term:n.join("/")},query:"map=c,ft".concat(t)}}return{page:"store.product",params:{slug:e.slug,id:e.productId},query:""}}(e),{className:A({itemIndex:n+1,highlightedIndex:I,hasThumb:!!e.thumb})}),e.thumb&&l.a.createElement("img",{width:50,height:50,alt:e.name,className:"".concat(R.resultsItemImage," mr4"),src:b(e.thumb)}),l.a.createElement("div",{className:"".concat(R.resultsItemName," flex justify-start items-center")},e.name)))}))):null))}}}]);; (window.webpackJsonpvtex_store_components_3_176_2=window.webpackJsonpvtex_store_components_3_176_2||[]).push([["SearchBar"],{0:function(e,t){e.exports=React},139:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.modal-layout@0.x/ModalContext"]},140:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.react-portal@0.x/Overlay"]},141:function(e,t,n){e.exports={searchBarContainer:"vtex-store-components-3-x-searchBarContainer",compactMode:"vtex-store-components-3-x-compactMode",paddingInput:"vtex-store-components-3-x-paddingInput",searchMobile:"vtex-store-components-3-x-searchMobile","vtex-button":"vtex-store-components-3-x-vtex-button"}},142:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/InputSearch"]},143:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-icons@0.x/IconSearch"]},144:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-icons@0.x/IconClose"]},17:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.native-types@0.x/formatIOMessage"]},2:function(e,t){e.exports=PropTypes},201:function(e,t,n){"use strict";n.r(t),function(e){var t=n(3);n.p=Object(t.getPublicPath)("vtex.store-components@3.176.2");var a=Object(t.register)((function(){return n(233)}),e,"vtex.store-components@3.176.2","vtex.store-components@3.x","SearchBar");a.renderHotReload,a.setupHMR}.call(this,n(15)(e))},23:function(e,t){e.exports=ReactApollo},233:function(e,t,n){"use strict";n.r(t),n.d(t,"SEARCH_BAR_CSS_HANDLES",(function(){return $}));var a=n(9),o=n(20),r=n(0),c=n.n(r),s=n(4),l=n(139),i=n.n(l),u=n(8),p=n(7),d=n.n(p),m=n(70),h=n.n(m),f=n(11),b=n(6),v=n.n(b),O=n(87),g=n(56),x=n.n(g),_=n(140),E=n.n(_),C=n(17),M=n.n(C),I=n(141),S=n.n(I),y=n(91),N=n(54),j=n.n(N),P=n(142),T=n.n(P),R=n(143),B=n.n(R),k=n(144),w=n.n(k),A=n(46),D=n.n(A)()($),F=D.CssHandlesProvider,L=D.useContextCssHandles,W=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o0,y="clear-button"===I&&!S||"search-button"===I,N="search-and-clear-buttons"===I,P=("clear-button"===I&&S||"search-and-clear-buttons"===I)&&c.a.createElement("button",{className:"".concat(null!=l?l:""," ").concat(E("searchBarIcon","clear")," flex items-center pointer bn bg-transparent outline-0 pv0 pl0 pr3"),style:{visibility:S?"visible":"hidden"},"aria-label":M.formatMessage({id:"store/search.clear-input"}),onClick:function(){return t()}},c.a.createElement(q,null)),R=y&&c.a.createElement("button",{className:"".concat(null!=l?l:""," ").concat(E("searchBarIcon","search")," flex items-center pointer bn bg-transparent outline-0 pv0 pl0 pr3"),onClick:function(){return S&&u()},"aria-label":M.formatMessage({id:"store/search.submit-search"})},c.a.createElement(U,null)),B=N&&c.a.createElement("div",{className:"".concat(_.externalSearchButtonWrapper," bw1 bl b--muted-4 flex items-center ")},c.a.createElement("button",{className:"".concat(null!=l?l:""," ").concat(E("searchBarIcon","external-search")," flex items-center h-100 pointer pv0 nr5 ph5 bn c-link"),onClick:u,"aria-label":M.formatMessage({id:"store/search.submit-search"})},c.a.createElement(U,null))),k=c.a.createElement("div",{className:"".concat(_.suffixWrapper," flex h-100")},P,R,B),w=c.a.createElement("span",{className:"".concat(l," ").concat(E("searchBarIcon","prefix")," ")},c.a.createElement(U,null)),A=v()("w-100 flex",n&&_.compactMode);return"search"===O?c.a.createElement("form",{action:"#",onSubmit:function(e){e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()},className:_.autoCompleteOuterContainer},c.a.createElement("div",{className:A},c.a.createElement(T.a,Object(f.a)({ref:C,size:"large",value:a},g,{error:Boolean(h),errorMessage:h,onSubmit:u})))):c.a.createElement("div",{className:_.autoCompleteOuterContainer},c.a.createElement("div",{className:A},c.a.createElement(j.a,Object(f.a)({ref:C,size:"large",value:a,prefix:o&&w,suffix:k},g,{error:Boolean(h),errorMessage:h}))))},V=Object(s.defineMessages)({searchTermTooShort:{id:"store/search.search-term-too-short"}});var z=function(e){var t=e.placeholder,n=e.onInputChange,o=e.onGoToSearchPage,l=e.onClearInput,i=e.inputValue,p=e.compactMode,d=e.hasIconLeft,m=e.iconClasses,h=e.iconBlockClass,b=e.autoFocus,g=e.maxWidth,_=e.attemptPageTypeSearch,C=e.customSearchPageUrl,I=e.autocompleteAlignment,N=e.openAutocompleteOnFocus,j=e.blurOnSubmit,P=e.submitOnIconClick,T=e.displayMode,R=e.minSearchTermLength,B=e.autocompleteFullWidth,k=e.inputType,w=e.containerMode,A=void 0===w?"overlay":w,D=e.disableBlurAndTouchEndHandler,F=L().withModifiers,W=Object(s.useIntl)(),H=Object(r.useRef)(null),q=Object(u.useRuntime)().navigate,U=Object(r.useState)(i),z=Object(a.a)(U,2),J=z[0],$=z[1],K=Object(r.useState)(),Q=Object(a.a)(K,2),X=Q[0],Y=Q[1],Z=Object(r.useCallback)(x()((function(e){$(e)}),1e3),[]);Object(r.useEffect)((function(){Z(i)}),[Z,i]);var ee=Object(r.useCallback)((function(e){if(e){if(e.term)return _?void(window.location.href="/".concat(e.term)):C?void q({to:C.replace(/\$\{term\}/g,e.term)}):void q({page:"store.search",params:{term:e.term},query:"map=ft"});var t="store.product",n={slug:e.slug,id:e.productId},a="",o=e.slug.split("/");if(e.criteria){var r="&_c=".concat(o[0]);t="store.search",n={term:o.join("/")},a="map=c,ft".concat(r)}q({page:t,params:n,query:a})}}),[q,_,C]),te=c.a.createElement(G,{placeholder:M()({id:t,intl:W}),onInputChange:n,inputValue:i,hasIconLeft:d,iconClasses:m,iconBlockClass:h,inputErrorMessage:X,onGoToSearchPage:o,onClearInput:l}),ne=Boolean(Object(u.useChildBlock)({id:"autocomplete-result-list"})),ae=Object(r.useMemo)((function(){if(ne){return function(e){return c.a.createElement(u.ExtensionPoint,Object(f.a)({id:"autocomplete-result-list"},e))}}return function(e){return c.a.createElement(y.default,e)}}),[ne]),oe=Object(r.useRef)(null);return c.a.createElement("div",{ref:H,className:v()("w-100 mw7 pv4",S.a.searchBarContainer),style:Object.assign({},g&&{maxWidth:"number"==typeof g?"".concat(g,"px"):g})},c.a.createElement(u.NoSSR,{onSSR:te},c.a.createElement(O.a,{onSelect:ee,stateReducer:function(e,t){var n=t.type;return n!==O.a.stateChangeTypes.blurInput&&n!==O.a.stateChangeTypes.touchEnd||!D?t:Object.assign(Object.assign({},t),{isOpen:e.isOpen})}},(function(e){var a,r=e.getInputProps,s=e.getItemProps,u=e.getMenuProps,h=e.selectedItem,v=e.highlightedIndex,O=e.isOpen,g=e.closeMenu,x=e.openMenu;return c.a.createElement("div",{className:"relative-m w-100 ".concat(F("searchBarInnerContainer",[O?"opened":"",i?"filled":""]))},c.a.createElement(G,Object(f.a)({autoFocus:b,compactMode:p,hasIconLeft:d,iconClasses:m,openAutocompleteOnFocus:N,submitOnIconClick:P,displayMode:T,inputType:k,openMenu:x,inputErrorMessage:X},r({onKeyDown:function(e){if("Enter"===e.key&&null===v){var t=R&&i.length=n.length?{done:!0}:{done:!1,value:n[e++]}},e:function(n){throw n},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,a=!0,c=!1;return{s:function(){r=n[Symbol.iterator]()},n:function(){var n=r.next();return a=n.done,n},e:function(n){c=!0,u=n},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw u}}}}function i(n,t){(null==t||t>n.length)&&(t=n.length);for(var r=0,e=new Array(t);r0?r[0]:null}(n),"-").concat(t,"-").concat(r):n}function g(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"auto";if(n){"number"==typeof t&&(t=Math.min(t,3e3)),"number"==typeof r&&(r=Math.min(r,4e3));var e=m(n,t,r),o=e.includes("?")?"&":"?";return"".concat(e).concat(o,"width=").concat(t,"&height=").concat(r,"&aspect=true")}}function j(n){return void 0===n?7:Math.max(Math.min(11,n),0)}},34:function(n,t,r){"use strict";function e(n){if(n&&0!==n.length){var t=n.find((function(n){return n.sellerDefault}));return t||n[0]}}r.d(t,"a",(function(){return e}))}}]);; (window.webpackJsonpvtex_store_components_3_176_2=window.webpackJsonpvtex_store_components_3_176_2||[]).push([["SKUSelector"],{0:function(e,t){e.exports=React},1:function(e,t){e.exports=R},136:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.responsive-values@0.x/useResponsiveValue"]},137:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.slider-layout@0.x/SliderLayout"]},138:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.styleguide@9.x/Dropdown"]},18:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-context@0.x/useProduct"]},198:function(e,t,a){"use strict";a.r(t),function(e){var t=a(3);a.p=Object(t.getPublicPath)("vtex.store-components@3.176.2");var n=Object(t.register)((function(){return a(225)}),e,"vtex.store-components@3.176.2","vtex.store-components@3.x","SKUSelector");n.renderHotReload,n.setupHMR}.call(this,a(15)(e))},225:function(e,t,a){"use strict";a.r(t);var n=a(9),i=a(20),r=a(0),o=a.n(r),s=a(18),l=a.n(s),c=a(73),u=a.n(c),m=a(1),d=a(69),b=a.n(d),v=a(7),f=a.n(v),p=a(5),g=a(8),h=a(136),S=a.n(h),O=a(37),I=a.n(O),y=a(28),E=a(29),k=a.n(E),x=a(38),j=a.n(x),N=a(137),w=a.n(N),_=a(6),C=a.n(_),M=a(62),V=a(4),A=a(46),L=a.n(A)()(pe),U=L.CssHandlesProvider,R=L.useContextCssHandles;var T=function(){var e=R().handles,t="".concat(e.errorMessage," c-danger");return o.a.createElement(V.FormattedMessage,{id:"store/sku-selector.variation.select-an-option"},(function(e){return o.a.createElement(o.a.Fragment,null," ",o.a.createElement("span",{className:t},e))}))},P=a(138),D=a.n(P),B=Object(V.defineMessages)({selectPlaceholder:{id:"store/sku-selector.select.placeholder"}});function z(e){var t=e.disabled,a=e.impossible,n=e.available;if(t){if(a)return!0;if(!a&&!n)return!0}return!1}var H=Object(V.injectIntl)((function(e){var t=e.intl,a=e.selectedItem,n=e.displayOptions,i=n.map((function(e){return{label:e.label,value:e.label,disabled:z({disabled:e.disabled,impossible:e.impossible,available:e.available})}}));return o.a.createElement("div",{className:I.a.skuSelectorSelectContainer},o.a.createElement(D.a,{name:"product-summary-sku-selector",options:i,value:a,onChange:function(e,t){return n.reduce((function(e,t){return e[t.label]=t,e}),{})[t].onSelectItem()},placeholder:t.formatMessage(B.selectPlaceholder)}))}));function W(e){var t=e.isAvailable,a=void 0===t||t,n=e.isSelected,i=void 0!==n&&n,s=e.maxPrice,l=e.price,c=e.onClick,u=e.isImage,m=e.variationValue,d=e.variationValueOriginalName,b=e.imageUrl,v=e.imageLabel,f=e.isImpossible,p=e.imageHeight,g=e.imageWidth,h=e.showBorders,S=void 0===h||h,O=e.variationLabel,I=e.label,E=function(e,t){var a=0;return e&&t&&(a=1-t/e),a}(s,l),k=R(),x=k.handles,j=k.withModifiers,N=Object(r.useMemo)((function(){return C()("relative di pointer flex items-center outline-0 ma2 valueWrapper",j("skuSelectorItem",[Object(y.g)(d),i?"selected":""]),u&&"".concat(x.skuSelectorItemImage),f&&"o-20",!a&&"".concat(x.unavailable))}),[u,a,i,f,d,j,x.skuSelectorItemImage,x.unavailable]),w=Boolean(p||g),_={};u&&w&&b&&(_={height:p||"auto",width:g||"auto",padding:0},b=Object(y.a)(b,g,p));var M=m;return"itemValue"!==O&&"variationAndItemValue"!==O||(M="".concat(I," ").concat(m)),o.a.createElement("div",{role:"button",tabIndex:0,onClick:c,style:_,className:N,onKeyDown:function(e){return"Enter"===e.key&&c(e)}},o.a.createElement("div",{className:C()(x.frameAround,"absolute b--action-primary br3 bw1",i&&"ba")}),o.a.createElement("div",{className:C()(x.skuSelectorInternalBox,"w-100 h-100 b--muted-4 br2 b z-1 c-muted-5 flex items-center overflow-hidden",!i&&!f&&"hover-b--muted-2",S&&"ba")},o.a.createElement("div",{className:C()("absolute absolute--fill",!a&&x.diagonalCross)}),o.a.createElement("div",{className:C()(j("valueWrapper",a?"":"unavailable"),u?"h-100":"".concat(x.skuSelectorItemTextValue," c-on-base center pl5 pr5 z-1 t-body"))},u&&b?o.a.createElement("img",{className:x.skuSelectorItemImageValue,src:b,alt:v}):M)),E>0&&o.a.createElement("span",{className:"".concat(x.skuSelectorBadge," b")},o.a.createElement(V.FormattedNumber,{value:E,style:"percent"})))}var F=Object(r.memo)(W),Y=function(){},J=function(e){var t=e.mode,a=void 0===t?"default":t,i=e.maxItems,s=e.showLabel,c=e.variation,u=e.imageWidth,d=e.imageHeight,b=e.showBorders,v=e.maxSkuPrice,f=e.seeMoreLabel,p=e.selectedItem,g=e.showErrorMessage,h=e.showValueForVariation,S=e.containerClasses,O=e.sliderArrowSize,E=e.sliderDisplayThreshold,x=e.sliderItemsPerPage,N=c.originalName,_=c.name,V=c.options,A=i-2,L=Object(r.useState)((function(){return function(e){return Object(m.findIndex)(Object(m.propEq)("label",e))}(p)(V)>=A})),U=Object(n.a)(L,2),R=U[0],P=U[1],D=l()().buyButton,B=void 0===D?{clicked:!1}:D,z=Object(y.e)(N),W=!R&&V.length>i,J=V.length-A,K=V.slice(0,W?A:V.length),G=Object(r.useCallback)((function(){return P(!0)}),[P]),Z=C()("flex flex-column ".concat(I.a.skuSelectorSubcontainer,"--").concat(Object(y.g)(N)),S,I.a.skuSelectorSubcontainer),q=K.length>E&&"slider"===a,Q={itemsPerPage:x,infinite:!0,showNavigationArrows:"always",showPaginationDots:"never",arrowSize:O,fullWidth:!1},$="",X="variation"===($="boolean"==typeof s?s?"variation":"none":s)||"variationAndItemValue"===$,ee=K.map((function(e){var t;return o.a.createElement(F,{isSelected:e.label===p,key:"".concat(e.label,"-").concat(_),isAvailable:e.available,maxPrice:v,onClick:e.impossible?Y:e.onSelectItem,isImage:z,variationValue:e.label,variationValueOriginalName:e.originalName,imageHeight:d,imageWidth:u,showBorders:b,imageUrl:e.image&&Object(M.c)(Object(y.h)(e.image.imageUrl),M.b),imageLabel:null===(t=e.image)||void 0===t?void 0:t.imageLabel,isImpossible:e.impossible,variationLabel:$,label:_})}));return o.a.createElement("div",{className:Z},o.a.createElement("div",{className:"".concat(I.a.skuSelectorNameContainer," ma1")},o.a.createElement("div",{className:"".concat(I.a.skuSelectorTextContainer," db mb3")},X&&o.a.createElement("span",{className:"".concat(I.a.skuSelectorName," c-muted-1 t-small overflow-hidden")},_,g&&B.clicked&&!p&&o.a.createElement(T,null)),p&&h&&o.a.createElement(r.Fragment,null,o.a.createElement("span",{className:"".concat(I.a.skuSelectorNameSeparator," c-muted-1 t-small")},":"," "),o.a.createElement("span",{className:"".concat(I.a.skuSelectorSelectorImageValue," c-muted-1 t-small")},p))),o.a.createElement("div",{className:"".concat(I.a.skuSelectorOptionsList," w-100 inline-flex flex-wrap ml2 items-center")},"select"!==a||z?q?o.a.createElement(w.a,Q,ee):ee:o.a.createElement(H,{selectedItem:p,displayOptions:K}),!R&&W&&o.a.createElement("div",{className:I.a.seeMoreButton},o.a.createElement(k.a,{variation:"tertiary",onClick:G,size:"small",collapseLeft:!0},o.a.createElement(j.a,{id:f,values:{quantity:J},"data-testid":"seeMoreLabel"}))))))},K=Object(r.memo)(J),G=function(e,t){var a=Object(r.useRef)(!0);Object(r.useEffect)((function(){if(!a.current)return e();a.current=!1}),t)},Z=a(34);function q(e,t){var a=Object(y.e)(t);return"all"===e||"image"===e&&a}function Q(e){var t;if(!e)return!1;var a=Object(Z.a)(e.sellers);return!!a&&(null===(t=a.commertialOffer)||void 0===t?void 0:t.AvailableQuantity)>0}var $=function(e){var t=e.possibleItems,a=e.selectedVariations,n=e.variationCount,i=e.isSelected,r=Object(m.filter)(Boolean,a);return Object.keys(r).length===n&&i?Q(Object(y.b)(t,a)):t.some(Q)},X=function(e,t){var a=Q(e),n=Q(t);if(a&&!n)return-1;if(!a&&n)return 1;var i=Object(Z.a)(e.sellers),r=Object(Z.a)(t.sellers),o=i?i.commertialOffer.AvailableQuantity:0;return(r?r.commertialOffer.AvailableQuantity:0)-o},ee=function(e){var t=e.variations,a=e.selectedVariations,r=e.skuItems,o=e.onSelectItemMemo,s=e.imagesMap,l=e.variationCount,c=e.hideImpossibleCombinations,u=e.disableUnavailableSelectOptions,d=e.sortVariationsByLabel;return function(e){var b=e,v=t[e],f=v.values,p=v.originalName,g=f.map(function(e){var t=e.selectedVariations,a=e.variationName,i=e.skuItems,r=e.onSelectItemMemo,o=e.imagesMap,s=e.variationCount,l=e.hideImpossibleCombinations,c=e.disableUnavailableSelectOptions;return function(e){var u,d=t[a]===e.name,b=null===(u=null==o?void 0:o[a])||void 0===u?void 0:u[e.name],v=Object(m.clone)(t);v[a]=d?null:e.name;var f=Object(y.c)(i,v);if(f.length>0){var p=f.length>1?f.sort(X):f,g=Object(n.a)(p,1)[0],h=r({name:a,value:e.name,skuId:g.itemId,isMainAndImpossible:!1,possibleItems:p});return{label:e.name,originalName:e.originalName,onSelectItem:h,image:b,available:$({possibleItems:p,selectedVariations:t,variationCount:s,isSelected:d}),impossible:!1,disabled:c}}return l?null:{label:e.name,originalName:e.originalName,onSelectItem:function(){},image:b,available:!0,impossible:!0,disabled:c}}}({selectedVariations:a,variationName:e,skuItems:r,onSelectItemMemo:o,imagesMap:s,variationCount:l,hideImpossibleCombinations:c,disableUnavailableSelectOptions:u})).filter(Boolean);if(d){var h=g.every((function(e){return!Number.isNaN(Number(e.label))}))?function(e){return e.sort((function(e,t){return parseFloat(e.label)-parseFloat(t.label)}))}(Object(i.a)(g)):function(e){return e.sort((function(e,t){return e.labelt.label?1:0}))}(Object(i.a)(g));g=Object(i.a)(h)}return{name:b,originalName:p,options:g}}},te=function(e){var t=e.variations,a=e.selectedVariations,n=e.imagesMap,i=e.onSelectItemMemo,r=e.skuItems,o=e.hideImpossibleCombinations,s=e.disableUnavailableSelectOptions,l=e.sortVariationsByLabel,c=Object.keys(t).length;return Object.keys(t).map(ee({variations:t,selectedVariations:a,skuItems:r,onSelectItemMemo:i,imagesMap:n,variationCount:c,hideImpossibleCombinations:o,disableUnavailableSelectOptions:s,sortVariationsByLabel:l}))};function ae(e){var t=e.seeMoreLabel,a=e.maxItems,i=e.variations,s=e.skuItems,l=e.onSelectItem,c=e.imagesMap,u=e.imageHeight,m=e.imageWidth,d=e.showBorders,b=e.displayMode,v=e.selectedVariations,f=e.showVariationsLabels,p=e.showValueForVariation,g=e.hideImpossibleCombinations,h=e.disableUnavailableSelectOptions,S=e.showVariationsErrorMessage,O=e.variationsSpacing,E=e.sliderDisplayThreshold,k=e.sliderArrowSize,x=e.sliderItemsPerPage,j=e.sortVariationsByLabel,N=void 0!==j&&j,w=R().handles,_=Object(y.d)(O),C=Object(r.useCallback)((function(e){var t=e.name,a=e.value,n=e.skuId,i=e.isMainAndImpossible,r=e.possibleItems;return function(){return l({name:t,value:a,skuId:n,isMainAndImpossible:i,possibleItems:r})}}),[l]),M=Object(r.useMemo)((function(){return{variations:i,selectedVariations:v,imagesMap:c,onSelectItemMemo:C,skuItems:s,hideImpossibleCombinations:g,disableUnavailableSelectOptions:h,sortVariationsByLabel:N}}),[i,v,c,C,s,g,h,N]),V=Object(r.useState)((function(){return te(M)})),A=Object(n.a)(V,2),L=A[0],U=A[1];G((function(){var e,t=!0;return(e=M,new Promise((function(t){t(te(e))}))).then((function(e){t&&U(e)})),function(){t=!1}}),[M]);var T="mb".concat(_);return o.a.createElement("div",{className:"".concat(I.a.skuSelectorContainer," ").concat(w.skuSelectorContainer)},L.map((function(e,n){var i=v[e.name];return o.a.createElement(K,{mode:b,maxItems:a,imageWidth:m,imageHeight:u,showBorders:d,variation:e,selectedItem:i,seeMoreLabel:t,showLabel:f,containerClasses:T,key:"".concat(e.name,"-").concat(n),showErrorMessage:S,showValueForVariation:q(p,e.name),sliderDisplayThreshold:E,sliderArrowSize:k,sliderItemsPerPage:x})})))}var ne=Object(r.memo)(ae);function ie(e,t){var a;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(a=function(e,t){if(!e)return;if("string"==typeof e)return re(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return re(e,t)}(e))||t&&e&&"number"==typeof e.length){a&&(e=a);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,s=!1;return{s:function(){a=e[Symbol.iterator]()},n:function(){var e=a.next();return o=e.done,e},e:function(e){s=!0,r=e},f:function(){try{o||null==a.return||a.return()}finally{if(s)throw r}}}}function re(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,s=!1;return{s:function(){a=e[Symbol.iterator]()},n:function(){var e=a.next();return o=e.done,e},e:function(e){s=!0,r=e},f:function(){try{o||null==a.return||a.return()}finally{if(s)throw r}}}}function fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","‘":"\'","’":"\'","“":"\\"","”":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial"}'),t=JSON.parse('{"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue"},"vi":{"Đ":"D","đ":"d"}}');function a(a,n){if("string"!=typeof a)throw new Error("slugify: string argument expected");var i=t[(n="string"==typeof n?{replacement:n}:n||{}).locale]||{},r=void 0===n.replacement?"-":n.replacement,o=a.split("").reduce((function(t,a){return t+(i[a]||e[a]||a).replace(n.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")}),"").trim().replace(new RegExp("[\\s"+r+"]+","g"),r);return n.lower&&(o=o.toLowerCase()),n.strict&&(o=o.replace(new RegExp("[^a-zA-Z0-9"+r+"]","g"),"").replace(new RegExp("[\\s"+r+"]+","g"),r)),o}return a.extend=function(t){for(var a in t)e[a]=t[a]},a},e.exports=n(),e.exports.default=n()}},[[198,"common",5]]]);; (window.webpackJsonpvtex_store_components_3_176_2=window.webpackJsonpvtex_store_components_3_176_2||[]).push([[8],{10:function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"f",(function(){return n})),i.d(t,"g",(function(){return a})),i.d(t,"d",(function(){return o})),i.d(t,"e",(function(){return l})),i.d(t,"c",(function(){return d})),i.d(t,"a",(function(){return c}));var s=i(12);function r(e){var t=e;Object.keys(t).forEach((function(e){try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}function n(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function a(){return Date.now()}function o(e,t){void 0===t&&(t="x");var i,r,n,a=Object(s.b)(),o=a.getComputedStyle(e,null);return a.WebKitCSSMatrix?((r=o.transform||o.webkitTransform).split(",").length>6&&(r=r.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),n=new a.WebKitCSSMatrix("none"===r?"":r)):i=(n=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(r=a.WebKitCSSMatrix?n.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(r=a.WebKitCSSMatrix?n.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),r||0}function l(e){return"object"==typeof e&&null!==e&&e.constructor&&e.constructor===Object}function d(){for(var e=Object(arguments.length<=0?void 0:arguments[0]),t=1;t0&&r(e[i],t[i])}))}i.d(t,"a",(function(){return a})),i.d(t,"b",(function(){return l}));var n={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function a(){var e="undefined"!=typeof document?document:{};return r(e,n),e}var o={document:n,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function l(){var e="undefined"!=typeof window?window:{};return r(e,o),e}},14:function(e,t,i){"use strict";var s=i(12);function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function n(e,t){return(n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(){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}}function o(e,t,i){return(o=a()?Reflect.construct:function(e,t,i){var s=[null];s.push.apply(s,t);var r=new(Function.bind.apply(e,s));return i&&n(r,i.prototype),r}).apply(null,arguments)}function l(e){var t="function"==typeof Map?new Map:void 0;return(l=function(e){if(null===e||(i=e,-1===Function.toString.call(i).indexOf("[native code]")))return e;var i;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,s)}function s(){return o(e,arguments,r(this).constructor)}return s.prototype=Object.create(e.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),n(s,e)})(e)}var d=function(e){var t,i;function s(t){var i,s,r;return i=e.call.apply(e,[this].concat(t))||this,s=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(i),r=s.__proto__,Object.defineProperty(s,"__proto__",{get:function(){return r},set:function(e){r.__proto__=e}}),i}return i=e,(t=s).prototype=Object.create(i.prototype),t.prototype.constructor=t,t.__proto__=i,s}(l(Array));function c(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,c(e)):t.push(e)})),t}function u(e,t){return Array.prototype.filter.call(e,t)}function h(e,t){var i=Object(s.b)(),r=Object(s.a)(),n=[];if(!t&&e instanceof d)return e;if(!e)return new d(n);if("string"==typeof e){var a=e.trim();if(a.indexOf("<")>=0&&a.indexOf(">")>=0){var o="div";0===a.indexOf("0})).length>0},toggleClass:function(){for(var e=arguments.length,t=new Array(e),i=0;i=0;p-=1){var f=h[p];n&&f.listener===n||n&&f.listener&&f.listener.dom7proxy&&f.listener.dom7proxy===n?(u.removeEventListener(d,f.proxyListener,a),h.splice(p,1)):n||(u.removeEventListener(d,f.proxyListener,a),h.splice(p,1))}}return this},trigger:function(){for(var e=Object(s.b)(),t=arguments.length,i=new Array(t),r=0;r0})),c.dispatchEvent(u),c.dom7EventData=[],delete c.dom7EventData}}return this},transitionEnd:function(e){var t=this;return e&&t.on("transitionend",(function i(s){s.target===this&&(e.call(this,s),t.off("transitionend",i))})),this},outerWidth:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){var e=Object(s.b)();return this[0]?e.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){var e=Object(s.b)(),t=Object(s.a)(),i=this[0],r=i.getBoundingClientRect(),n=t.body,a=i.clientTop||n.clientTop||0,o=i.clientLeft||n.clientLeft||0,l=i===e?e.scrollY:i.scrollTop,d=i===e?e.scrollX:i.scrollLeft;return{top:r.top+l-a,left:r.left+d-o}}return null},css:function(e,t){var i,r=Object(s.b)();if(1===arguments.length){if("string"!=typeof e){for(i=0;it-1)return h([]);if(e<0){var i=t+e;return h(i<0?[]:[this[i]])}return h([this[e]])},append:function(){for(var e,t=Object(s.a)(),i=0;i=0;i-=1)this[t].insertBefore(n.childNodes[i],this[t].childNodes[0])}else if(e instanceof d)for(i=0;i0?e?this[0].nextElementSibling&&h(this[0].nextElementSibling).is(e)?h([this[0].nextElementSibling]):h([]):this[0].nextElementSibling?h([this[0].nextElementSibling]):h([]):h([])},nextAll:function(e){var t=[],i=this[0];if(!i)return h([]);for(;i.nextElementSibling;){var s=i.nextElementSibling;e?h(s).is(e)&&t.push(s):t.push(s),i=s}return h(t)},prev:function(e){if(this.length>0){var t=this[0];return e?t.previousElementSibling&&h(t.previousElementSibling).is(e)?h([t.previousElementSibling]):h([]):t.previousElementSibling?h([t.previousElementSibling]):h([])}return h([])},prevAll:function(e){var t=[],i=this[0];if(!i)return h([]);for(;i.previousElementSibling;){var s=i.previousElementSibling;e?h(s).is(e)&&t.push(s):t.push(s),i=s}return h(t)},parent:function(e){for(var t=[],i=0;i=0||(r[i]=e[i]);return r}(l,["tag","children","className","swiper","zoom"]),g=Object(s.useRef)(null),b=Object(s.useState)("swiper-slide"),w=b[0],C=b[1];function S(e,t,i){t===g.current&&C(i)}Object(a.a)((function(){if(t&&(t.current=g.current),g.current&&f){if(!f.destroyed)return f.on("_slideClass",S),function(){f&&f.off("_slideClass",S)};"swiper-slide"!==w&&C("swiper-slide")}})),"function"==typeof u&&(i={isActive:w.indexOf("swiper-slide-active")>=0||w.indexOf("swiper-slide-duplicate-active")>=0,isVisible:w.indexOf("swiper-slide-visible")>=0,isDuplicate:w.indexOf("swiper-slide-duplicate")>=0,isPrev:w.indexOf("swiper-slide-prev")>=0||w.indexOf("swiper-slide-duplicate-prev")>=0,isNext:w.indexOf("swiper-slide-next")>=0||w.indexOf("swiper-slide-duplicate next")>=0});var y=function(){return"function"==typeof u?u(i):u};return r.a.createElement(c,o({ref:g,className:Object(n.f)(w+(p?" "+p:""))},m),v?r.a.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":"number"==typeof v?v:void 0},y()):y())}));l.displayName="SwiperSlide"},249:function(e,t,i){"use strict";var s=i(10),r=i(14);function n(){return(n=Object.assign||function(e){for(var t=1;tthis.previousIndex?"next":"prev"}else a=(n=this.realIndex)>this.previousIndex?"next":"prev";r&&(n+="next"===a?s:-1*s),t.visibleSlidesIndexes&&t.visibleSlidesIndexes.indexOf(n)<0&&(t.params.centeredSlides?n=n>o?n-Math.floor(i/2)+1:n+Math.floor(i/2)-1:n>o&&(n=n-i+1),t.slideTo(n,e?0:void 0))}var c=1,u=this.params.thumbs.slideThumbActiveClass;if(this.params.slidesPerView>1&&!this.params.centeredSlides&&(c=this.params.slidesPerView),this.params.thumbs.multipleActiveThumbs||(c=1),c=Math.floor(c),t.slides.removeClass(u),t.params.loop||t.params.virtual&&t.params.virtual.enabled)for(var h=0;h0&&(this.isBeginning?s.addClass(e.disabledClass):s.removeClass(e.disabledClass),s[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](e.lockClass)),i&&i.length>0&&(this.isEnd?i.addClass(e.disabledClass):i.removeClass(e.disabledClass),i[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](e.lockClass))}},onPrevClick:function(e){e.preventDefault(),this.isBeginning&&!this.params.loop||this.slidePrev()},onNextClick:function(e){e.preventDefault(),this.isEnd&&!this.params.loop||this.slideNext()},init:function(){var e,t,i=this.params.navigation;(i.nextEl||i.prevEl)&&(i.nextEl&&(e=Object(s.a)(i.nextEl),this.params.uniqueNavElements&&"string"==typeof i.nextEl&&e.length>1&&1===this.$el.find(i.nextEl).length&&(e=this.$el.find(i.nextEl))),i.prevEl&&(t=Object(s.a)(i.prevEl),this.params.uniqueNavElements&&"string"==typeof i.prevEl&&t.length>1&&1===this.$el.find(i.prevEl).length&&(t=this.$el.find(i.prevEl))),e&&e.length>0&&e.on("click",this.navigation.onNextClick),t&&t.length>0&&t.on("click",this.navigation.onPrevClick),Object(r.c)(this.navigation,{$nextEl:e,nextEl:e&&e[0],$prevEl:t,prevEl:t&&t[0]}))},destroy:function(){var e=this.navigation,t=e.$nextEl,i=e.$prevEl;t&&t.length&&(t.off("click",this.navigation.onNextClick),t.removeClass(this.params.navigation.disabledClass)),i&&i.length&&(i.off("click",this.navigation.onPrevClick),i.removeClass(this.params.navigation.disabledClass))}};t.a={name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){Object(r.a)(this,{navigation:n({},a)})},on:{init:function(e){e.navigation.init(),e.navigation.update()},toEdge:function(e){e.navigation.update()},fromEdge:function(e){e.navigation.update()},destroy:function(e){e.navigation.destroy()},click:function(e,t){var i,r=e.navigation,n=r.$nextEl,a=r.$prevEl;!e.params.navigation.hideOnClick||Object(s.a)(t.target).is(a)||Object(s.a)(t.target).is(n)||(n?i=n.hasClass(e.params.navigation.hiddenClass):a&&(i=a.hasClass(e.params.navigation.hiddenClass)),!0===i?e.emit("navigationShow"):e.emit("navigationHide"),n&&n.toggleClass(e.params.navigation.hiddenClass),a&&a.toggleClass(e.params.navigation.hiddenClass))}}}},251:function(e,t,i){"use strict";var s=i(14),r=i(10);function n(){return(n=Object.assign||function(e){for(var t=1;tr-1-2*this.loopedSlides&&(i-=r-2*this.loopedSlides),i>a-1&&(i-=a),i<0&&"bullets"!==this.params.paginationType&&(i=a+i)):i=void 0!==this.snapIndex?this.snapIndex:this.activeIndex||0,"bullets"===t.type&&this.pagination.bullets&&this.pagination.bullets.length>0){var o,l,d,c=this.pagination.bullets;if(t.dynamicBullets&&(this.pagination.bulletSize=c.eq(0)[this.isHorizontal()?"outerWidth":"outerHeight"](!0),n.css(this.isHorizontal()?"width":"height",this.pagination.bulletSize*(t.dynamicMainBullets+4)+"px"),t.dynamicMainBullets>1&&void 0!==this.previousIndex&&(this.pagination.dynamicBulletIndex+=i-this.previousIndex,this.pagination.dynamicBulletIndex>t.dynamicMainBullets-1?this.pagination.dynamicBulletIndex=t.dynamicMainBullets-1:this.pagination.dynamicBulletIndex<0&&(this.pagination.dynamicBulletIndex=0)),o=i-this.pagination.dynamicBulletIndex,d=((l=o+(Math.min(c.length,t.dynamicMainBullets)-1))+o)/2),c.removeClass(t.bulletActiveClass+" "+t.bulletActiveClass+"-next "+t.bulletActiveClass+"-next-next "+t.bulletActiveClass+"-prev "+t.bulletActiveClass+"-prev-prev "+t.bulletActiveClass+"-main"),n.length>1)c.each((function(e){var r=Object(s.a)(e),n=r.index();n===i&&r.addClass(t.bulletActiveClass),t.dynamicBullets&&(n>=o&&n<=l&&r.addClass(t.bulletActiveClass+"-main"),n===o&&r.prev().addClass(t.bulletActiveClass+"-prev").prev().addClass(t.bulletActiveClass+"-prev-prev"),n===l&&r.next().addClass(t.bulletActiveClass+"-next").next().addClass(t.bulletActiveClass+"-next-next"))}));else{var u=c.eq(i),h=u.index();if(u.addClass(t.bulletActiveClass),t.dynamicBullets){for(var p=c.eq(o),f=c.eq(l),v=o;v<=l;v+=1)c.eq(v).addClass(t.bulletActiveClass+"-main");if(this.params.loop)if(h>=c.length-t.dynamicMainBullets){for(var m=t.dynamicMainBullets;m>=0;m-=1)c.eq(c.length-m).addClass(t.bulletActiveClass+"-main");c.eq(c.length-t.dynamicMainBullets-1).addClass(t.bulletActiveClass+"-prev")}else p.prev().addClass(t.bulletActiveClass+"-prev").prev().addClass(t.bulletActiveClass+"-prev-prev"),f.next().addClass(t.bulletActiveClass+"-next").next().addClass(t.bulletActiveClass+"-next-next");else p.prev().addClass(t.bulletActiveClass+"-prev").prev().addClass(t.bulletActiveClass+"-prev-prev"),f.next().addClass(t.bulletActiveClass+"-next").next().addClass(t.bulletActiveClass+"-next-next")}}if(t.dynamicBullets){var g=Math.min(c.length,t.dynamicMainBullets+4),b=(this.pagination.bulletSize*g-this.pagination.bulletSize)/2-d*this.pagination.bulletSize,w=e?"right":"left";c.css(this.isHorizontal()?w:"top",b+"px")}}if("fraction"===t.type&&(n.find("."+t.currentClass).text(t.formatFractionCurrent(i+1)),n.find("."+t.totalClass).text(t.formatFractionTotal(a))),"progressbar"===t.type){var C;C=t.progressbarOpposite?this.isHorizontal()?"vertical":"horizontal":this.isHorizontal()?"horizontal":"vertical";var S=(i+1)/a,y=1,T=1;"horizontal"===C?y=S:T=S,n.find("."+t.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+y+") scaleY("+T+")").transition(this.params.speed)}"custom"===t.type&&t.renderCustom?(n.html(t.renderCustom(this,i+1,a)),this.emit("paginationRender",n[0])):this.emit("paginationUpdate",n[0]),n[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](t.lockClass)}},render:function(){var e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var t=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,i=this.pagination.$el,s="";if("bullets"===e.type){for(var r=this.params.loop?Math.ceil((t-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length,n=0;n";i.html(s),this.pagination.bullets=i.find("."+e.bulletClass)}"fraction"===e.type&&(s=e.renderFraction?e.renderFraction.call(this,e.currentClass,e.totalClass):' / ',i.html(s)),"progressbar"===e.type&&(s=e.renderProgressbar?e.renderProgressbar.call(this,e.progressbarFillClass):'',i.html(s)),"custom"!==e.type&&this.emit("paginationRender",this.pagination.$el[0])}},init:function(){var e=this,t=e.params.pagination;if(t.el){var i=Object(s.a)(t.el);0!==i.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&i.length>1&&(i=e.$el.find(t.el)),"bullets"===t.type&&t.clickable&&i.addClass(t.clickableClass),i.addClass(t.modifierClass+t.type),"bullets"===t.type&&t.dynamicBullets&&(i.addClass(""+t.modifierClass+t.type+"-dynamic"),e.pagination.dynamicBulletIndex=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&i.addClass(t.progressbarOppositeClass),t.clickable&&i.on("click","."+t.bulletClass,(function(t){t.preventDefault();var i=Object(s.a)(this).index()*e.params.slidesPerGroup;e.params.loop&&(i+=e.loopedSlides),e.slideTo(i)})),Object(r.c)(e.pagination,{$el:i,el:i[0]}))}},destroy:function(){var e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var t=this.pagination.$el;t.removeClass(e.hiddenClass),t.removeClass(e.modifierClass+e.type),this.pagination.bullets&&this.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&t.off("click","."+e.bulletClass)}}};t.a={name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(e){return e},formatFractionTotal:function(e){return e},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){Object(r.a)(this,{pagination:n({dynamicBulletIndex:0},a)})},on:{init:function(e){e.pagination.init(),e.pagination.render(),e.pagination.update()},activeIndexChange:function(e){(e.params.loop||void 0===e.snapIndex)&&e.pagination.update()},snapIndexChange:function(e){e.params.loop||e.pagination.update()},slidesLengthChange:function(e){e.params.loop&&(e.pagination.render(),e.pagination.update())},snapGridLengthChange:function(e){e.params.loop||(e.pagination.render(),e.pagination.update())},destroy:function(e){e.pagination.destroy()},click:function(e,t){e.params.pagination.el&&e.params.pagination.hideOnClick&&e.pagination.$el.length>0&&!Object(s.a)(t.target).hasClass(e.params.pagination.bulletClass)&&(!0===e.pagination.$el.hasClass(e.params.pagination.hiddenClass)?e.emit("paginationShow"):e.emit("paginationHide"),e.pagination.$el.toggleClass(e.params.pagination.hiddenClass))}}}},264:function(e,t,i){"use strict";var s,r,n,a=i(14),o=i(10),l=i(12);function d(){return s||(s=function(){var e=Object(l.b)(),t=Object(l.a)();return{touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),pointerEvents:!!e.PointerEvent&&"maxTouchPoints"in e.navigator&&e.navigator.maxTouchPoints>=0,observer:"MutationObserver"in e||"WebkitMutationObserver"in e,passiveListener:function(){var t=!1;try{var i=Object.defineProperty({},"passive",{get:function(){t=!0}});e.addEventListener("testPassiveListener",null,i)}catch(e){}return t}(),gestures:"ongesturestart"in e}}()),s}function c(e){return void 0===e&&(e={}),r||(r=function(e){var t=(void 0===e?{}:e).userAgent,i=d(),s=Object(l.b)(),r=s.navigator.platform,n=t||s.navigator.userAgent,a={ios:!1,android:!1},o=s.screen.width,c=s.screen.height,u=n.match(/(Android);?[\s\/]+([\d.]+)?/),h=n.match(/(iPad).*OS\s([\d_]+)/),p=n.match(/(iPod)(.*OS\s([\d_]+))?/),f=!h&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),v="Win32"===r,m="MacIntel"===r;return!h&&m&&i.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768"].indexOf(o+"x"+c)>=0&&((h=n.match(/(Version)\/([\d.]+)/))||(h=[0,1,"13_0_0"]),m=!1),u&&!v&&(a.os="android",a.android=!0),(h||f||p)&&(a.os="ios",a.ios=!0),a}(e)),r}function u(){return n||(n=function(){var e,t=Object(l.b)();return{isEdge:!!t.navigator.userAgent.match(/Edge/g),isSafari:(e=t.navigator.userAgent.toLowerCase(),e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}()),n}var h={name:"resize",create:function(){var e=this;Object(o.c)(e,{resize:{resizeHandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(e){var t=Object(l.b)();t.addEventListener("resize",e.resize.resizeHandler),t.addEventListener("orientationchange",e.resize.orientationChangeHandler)},destroy:function(e){var t=Object(l.b)();t.removeEventListener("resize",e.resize.resizeHandler),t.removeEventListener("orientationchange",e.resize.orientationChangeHandler)}}};function p(){return(p=Object.assign||function(e){for(var t=1;t0||s.isTouched&&s.isMoved)))if(r.noSwiping&&c.closest(r.noSwipingSelector?r.noSwipingSelector:"."+r.noSwipingClass)[0])this.allowClick=!0;else if(!r.swipeHandler||c.closest(r.swipeHandler)[0]){n.currentX="touchstart"===d.type?d.targetTouches[0].pageX:d.pageX,n.currentY="touchstart"===d.type?d.targetTouches[0].pageY:d.pageY;var u=n.currentX,h=n.currentY,p=r.edgeSwipeDetection||r.iOSEdgeSwipeDetection,f=r.edgeSwipeThreshold||r.iOSEdgeSwipeThreshold;if(!p||!(u<=f||u>=i.screen.width-f)){if(Object(o.c)(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),n.startX=u,n.startY=h,s.touchStartTime=Object(o.g)(),this.allowClick=!0,this.updateSize(),this.swipeDirection=void 0,r.threshold>0&&(s.allowThresholdMove=!1),"touchstart"!==d.type){var v=!0;c.is(s.formElements)&&(v=!1),t.activeElement&&Object(a.a)(t.activeElement).is(s.formElements)&&t.activeElement!==c[0]&&t.activeElement.blur();var m=v&&this.allowTouchMove&&r.touchStartPreventDefault;(r.touchStartForcePreventDefault||m)&&d.preventDefault()}this.emit("touchStart",d)}}}}function g(e){var t=Object(l.a)(),i=this.touchEventsData,s=this.params,r=this.touches,n=this.rtlTranslate,d=e;if(d.originalEvent&&(d=d.originalEvent),i.isTouched){if(!i.isTouchEvent||"touchmove"===d.type){var c="touchmove"===d.type&&d.targetTouches&&(d.targetTouches[0]||d.changedTouches[0]),u="touchmove"===d.type?c.pageX:d.pageX,h="touchmove"===d.type?c.pageY:d.pageY;if(d.preventedByNestedSwiper)return r.startX=u,void(r.startY=h);if(!this.allowTouchMove)return this.allowClick=!1,void(i.isTouched&&(Object(o.c)(r,{startX:u,startY:h,currentX:u,currentY:h}),i.touchStartTime=Object(o.g)()));if(i.isTouchEvent&&s.touchReleaseOnEdges&&!s.loop)if(this.isVertical()){if(hr.startY&&this.translate>=this.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(ur.startX&&this.translate>=this.minTranslate())return;if(i.isTouchEvent&&t.activeElement&&d.target===t.activeElement&&Object(a.a)(d.target).is(i.formElements))return i.isMoved=!0,void(this.allowClick=!1);if(i.allowTouchCallbacks&&this.emit("touchMove",d),!(d.targetTouches&&d.targetTouches.length>1)){r.currentX=u,r.currentY=h;var p=r.currentX-r.startX,f=r.currentY-r.startY;if(!(this.params.threshold&&Math.sqrt(Math.pow(p,2)+Math.pow(f,2))=25&&(v=180*Math.atan2(Math.abs(f),Math.abs(p))/Math.PI,i.isScrolling=this.isHorizontal()?v>s.touchAngle:90-v>s.touchAngle);if(i.isScrolling&&this.emit("touchMoveOpposite",d),void 0===i.startMoving&&(r.currentX===r.startX&&r.currentY===r.startY||(i.startMoving=!0)),i.isScrolling)i.isTouched=!1;else if(i.startMoving){this.allowClick=!1,!s.cssMode&&d.cancelable&&d.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&d.stopPropagation(),i.isMoved||(s.loop&&this.loopFix(),i.startTranslate=this.getTranslate(),this.setTransition(0),this.animating&&this.$wrapperEl.trigger("webkitTransitionEnd transitionend"),i.allowMomentumBounce=!1,!s.grabCursor||!0!==this.allowSlideNext&&!0!==this.allowSlidePrev||this.setGrabCursor(!0),this.emit("sliderFirstMove",d)),this.emit("sliderMove",d),i.isMoved=!0;var m=this.isHorizontal()?p:f;r.diff=m,m*=s.touchRatio,n&&(m=-m),this.swipeDirection=m>0?"prev":"next",i.currentTranslate=m+i.startTranslate;var g=!0,b=s.resistanceRatio;if(s.touchReleaseOnEdges&&(b=0),m>0&&i.currentTranslate>this.minTranslate()?(g=!1,s.resistance&&(i.currentTranslate=this.minTranslate()-1+Math.pow(-this.minTranslate()+i.startTranslate+m,b))):m<0&&i.currentTranslatei.startTranslate&&(i.currentTranslate=i.startTranslate),s.threshold>0){if(!(Math.abs(m)>s.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!i.allowThresholdMove)return i.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,i.currentTranslate=i.startTranslate,void(r.diff=this.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY)}s.followFinger&&!s.cssMode&&((s.freeMode||s.watchSlidesProgress||s.watchSlidesVisibility)&&(this.updateActiveIndex(),this.updateSlidesClasses()),s.freeMode&&(0===i.velocities.length&&i.velocities.push({position:r[this.isHorizontal()?"startX":"startY"],time:i.touchStartTime}),i.velocities.push({position:r[this.isHorizontal()?"currentX":"currentY"],time:Object(o.g)()})),this.updateProgress(i.currentTranslate),this.setTranslate(i.currentTranslate))}}}}}else i.startMoving&&i.isScrolling&&this.emit("touchMoveOpposite",d)}function b(e){var t=this,i=t.touchEventsData,s=t.params,r=t.touches,n=t.rtlTranslate,a=t.$wrapperEl,l=t.slidesGrid,d=t.snapGrid,c=e;if(c.originalEvent&&(c=c.originalEvent),i.allowTouchCallbacks&&t.emit("touchEnd",c),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&s.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);s.grabCursor&&i.isMoved&&i.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var u,h=Object(o.g)(),p=h-i.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(c),t.emit("tap click",c),p<300&&h-i.lastClickTime<300&&t.emit("doubleTap doubleClick",c)),i.lastClickTime=Object(o.g)(),Object(o.f)((function(){t.destroyed||(t.allowClick=!0)})),!i.isTouched||!i.isMoved||!t.swipeDirection||0===r.diff||i.currentTranslate===i.startTranslate)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,u=s.followFinger?n?t.translate:-t.translate:-i.currentTranslate,!s.cssMode)if(s.freeMode){if(u<-t.minTranslate())return void t.slideTo(t.activeIndex);if(u>-t.maxTranslate())return void(t.slides.length1){var f=i.velocities.pop(),v=i.velocities.pop(),m=f.position-v.position,g=f.time-v.time;t.velocity=m/g,t.velocity/=2,Math.abs(t.velocity)150||Object(o.g)()-f.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=s.freeModeMomentumVelocityRatio,i.velocities.length=0;var b=1e3*s.freeModeMomentumRatio,w=t.velocity*b,C=t.translate+w;n&&(C=-C);var S,y,T=!1,x=20*Math.abs(t.velocity)*s.freeModeMomentumBounceRatio;if(Ct.minTranslate())s.freeModeMomentumBounce?(C-t.minTranslate()>x&&(C=t.minTranslate()+x),S=t.minTranslate(),T=!0,i.allowMomentumBounce=!0):C=t.minTranslate(),s.loop&&s.centeredSlides&&(y=!0);else if(s.freeModeSticky){for(var E,O=0;O-C){E=O;break}C=-(C=Math.abs(d[E]-C)=s.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}else{for(var k=0,j=t.slidesSizesGrid[0],L=0;L=l[L]&&u=l[L]&&(k=L,j=l[l.length-1]-l[l.length-2])}var z=(u-l[k])/j,I=ks.longSwipesMs){if(!s.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(z>=s.longSwipesRatio?t.slideTo(k+I):t.slideTo(k)),"prev"===t.swipeDirection&&(z>1-s.longSwipesRatio?t.slideTo(k+I):t.slideTo(k))}else{if(!s.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(c.target===t.navigation.nextEl||c.target===t.navigation.prevEl)?c.target===t.navigation.nextEl?t.slideTo(k+I):t.slideTo(k):("next"===t.swipeDirection&&t.slideTo(k+I),"prev"===t.swipeDirection&&t.slideTo(k))}}}function w(){var e=this.params,t=this.el;if(!t||0!==t.offsetWidth){e.breakpoints&&this.setBreakpoint();var i=this.allowSlideNext,s=this.allowSlidePrev,r=this.snapGrid;this.allowSlideNext=!0,this.allowSlidePrev=!0,this.updateSize(),this.updateSlides(),this.updateSlidesClasses(),("auto"===e.slidesPerView||e.slidesPerView>1)&&this.isEnd&&!this.isBeginning&&!this.params.centeredSlides?this.slideTo(this.slides.length-1,0,!1,!0):this.slideTo(this.activeIndex,0,!1,!0),this.autoplay&&this.autoplay.running&&this.autoplay.paused&&this.autoplay.run(),this.allowSlidePrev=s,this.allowSlideNext=i,this.params.watchOverflow&&r!==this.snapGrid&&this.checkOverflow()}}function C(e){this.allowClick||(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function S(){var e=this.wrapperEl,t=this.rtlTranslate;this.previousTranslate=this.translate,this.isHorizontal()?this.translate=t?e.scrollWidth-e.offsetWidth-e.scrollLeft:-e.scrollLeft:this.translate=-e.scrollTop,-0===this.translate&&(this.translate=0),this.updateActiveIndex(),this.updateSlidesClasses();var i=this.maxTranslate()-this.minTranslate();(0===i?0:(this.translate-this.minTranslate())/i)!==this.progress&&this.updateProgress(t?-this.translate:this.translate),this.emit("setTranslate",this.translate,!1)}var y=!1;function T(){}var x={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,slidesPerGroupSkip:0,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function E(e,t){for(var i=0;i=0&&this.eventsAnyListeners.splice(t,1),this},off:function(e,t){var i=this;return i.eventsListeners?(e.split(" ").forEach((function(e){void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].forEach((function(s,r){(s===t||s.__emitterProxy&&s.__emitterProxy===t)&&i.eventsListeners[e].splice(r,1)}))})),i):i},emit:function(){var e,t,i,s=this;if(!s.eventsListeners)return s;for(var r=arguments.length,n=new Array(r),a=0;a=0&&(C=parseFloat(C.replace("%",""))/100*s),this.virtualSize=-C,r?c.css({marginLeft:"",marginTop:""}):c.css({marginRight:"",marginBottom:""}),t.slidesPerColumn>1&&(x=Math.floor(u/t.slidesPerColumn)===u/this.params.slidesPerColumn?u:Math.ceil(u/t.slidesPerColumn)*t.slidesPerColumn,"auto"!==t.slidesPerView&&"row"===t.slidesPerColumnFill&&(x=Math.max(x,t.slidesPerView*t.slidesPerColumn)));for(var O,M=t.slidesPerColumn,P=x/M,k=Math.floor(u/t.slidesPerColumn),j=0;j1){var A=void 0,z=void 0,I=void 0;if("row"===t.slidesPerColumnFill&&t.slidesPerGroup>1){var _=Math.floor(j/(t.slidesPerGroup*t.slidesPerColumn)),B=j-t.slidesPerColumn*t.slidesPerGroup*_,D=0===_?t.slidesPerGroup:Math.min(Math.ceil((u-_*M*t.slidesPerGroup)/M),t.slidesPerGroup);A=(z=B-(I=Math.floor(B/D))*D+_*t.slidesPerGroup)+I*x/M,L.css({"-webkit-box-ordinal-group":A,"-moz-box-ordinal-group":A,"-ms-flex-order":A,"-webkit-order":A,order:A})}else"column"===t.slidesPerColumnFill?(I=j-(z=Math.floor(j/M))*M,(z>k||z===k&&I===M-1)&&(I+=1)>=M&&(I=0,z+=1)):z=j-(I=Math.floor(j/P))*P;L.css("margin-"+(this.isHorizontal()?"top":"left"),0!==I&&t.spaceBetween&&t.spaceBetween+"px")}if("none"!==L.css("display")){if("auto"===t.slidesPerView){var N=e.getComputedStyle(L[0],null),G=L[0].style.transform,V=L[0].style.webkitTransform;if(G&&(L[0].style.transform="none"),V&&(L[0].style.webkitTransform="none"),t.roundLengths)E=this.isHorizontal()?L.outerWidth(!0):L.outerHeight(!0);else if(this.isHorizontal()){var F=parseFloat(N.getPropertyValue("width")||0),$=parseFloat(N.getPropertyValue("padding-left")||0),H=parseFloat(N.getPropertyValue("padding-right")||0),R=parseFloat(N.getPropertyValue("margin-left")||0),q=parseFloat(N.getPropertyValue("margin-right")||0),W=N.getPropertyValue("box-sizing");E=W&&"border-box"===W?F+R+q:F+$+H+R+q}else{var X=parseFloat(N.getPropertyValue("height")||0),Y=parseFloat(N.getPropertyValue("padding-top")||0),U=parseFloat(N.getPropertyValue("padding-bottom")||0),K=parseFloat(N.getPropertyValue("margin-top")||0),J=parseFloat(N.getPropertyValue("margin-bottom")||0),Z=N.getPropertyValue("box-sizing");E=Z&&"border-box"===Z?X+K+J:X+Y+U+K+J}G&&(L[0].style.transform=G),V&&(L[0].style.webkitTransform=V),t.roundLengths&&(E=Math.floor(E))}else E=(s-(t.slidesPerView-1)*C)/t.slidesPerView,t.roundLengths&&(E=Math.floor(E)),c[j]&&(this.isHorizontal()?c[j].style.width=E+"px":c[j].style.height=E+"px");c[j]&&(c[j].swiperSlideSize=E),f.push(E),t.centeredSlides?(S=S+E/2+y/2+C,0===y&&0!==j&&(S=S-s/2-C),0===j&&(S=S-s/2-C),Math.abs(S)<.001&&(S=0),t.roundLengths&&(S=Math.floor(S)),T%t.slidesPerGroup==0&&h.push(S),p.push(S)):(t.roundLengths&&(S=Math.floor(S)),(T-Math.min(this.params.slidesPerGroupSkip,T))%this.params.slidesPerGroup==0&&h.push(S),p.push(S),S=S+E+C),this.virtualSize+=E+C,y=E,T+=1}}if(this.virtualSize=Math.max(this.virtualSize,s)+g,r&&n&&("slide"===t.effect||"coverflow"===t.effect)&&i.css({width:this.virtualSize+t.spaceBetween+"px"}),t.setWrapperSize&&(this.isHorizontal()?i.css({width:this.virtualSize+t.spaceBetween+"px"}):i.css({height:this.virtualSize+t.spaceBetween+"px"})),t.slidesPerColumn>1&&(this.virtualSize=(E+t.spaceBetween)*x,this.virtualSize=Math.ceil(this.virtualSize/t.slidesPerColumn)-t.spaceBetween,this.isHorizontal()?i.css({width:this.virtualSize+t.spaceBetween+"px"}):i.css({height:this.virtualSize+t.spaceBetween+"px"}),t.centeredSlides)){O=[];for(var Q=0;Q1&&h.push(this.virtualSize-s)}if(0===h.length&&(h=[0]),0!==t.spaceBetween&&(this.isHorizontal()?r?c.filter(v).css({marginLeft:C+"px"}):c.filter(v).css({marginRight:C+"px"}):c.filter(v).css({marginBottom:C+"px"})),t.centeredSlides&&t.centeredSlidesBounds){var se=0;f.forEach((function(e){se+=e+(t.spaceBetween?t.spaceBetween:0)}));var re=(se-=t.spaceBetween)-s;h=h.map((function(e){return e<0?-m:e>re?re+g:e}))}if(t.centerInsufficientSlides){var ne=0;if(f.forEach((function(e){ne+=e+(t.spaceBetween?t.spaceBetween:0)})),(ne-=t.spaceBetween)1)if(this.params.centeredSlides)this.visibleSlides.each((function(e){i.push(e)}));else for(t=0;tthis.slides.length)break;i.push(this.slides.eq(r)[0])}else i.push(this.slides.eq(this.activeIndex)[0]);for(t=0;ts?n:s}s&&this.$wrapperEl.css("height",s+"px")},updateSlidesOffset:function(){for(var e=this.slides,t=0;t=0&&d1&&c<=this.size||d<=0&&c>=this.size)&&(this.visibleSlides.push(o),this.visibleSlidesIndexes.push(n),i.eq(n).addClass(t.slideVisibleClass))}o.progress=s?-l:l}this.visibleSlides=Object(a.a)(this.visibleSlides)}},updateProgress:function(e){if(void 0===e){var t=this.rtlTranslate?-1:1;e=this&&this.translate&&this.translate*t||0}var i=this.params,s=this.maxTranslate()-this.minTranslate(),r=this.progress,n=this.isBeginning,a=this.isEnd,l=n,d=a;0===s?(r=0,n=!0,a=!0):(n=(r=(e-this.minTranslate())/s)<=0,a=r>=1),Object(o.c)(this,{progress:r,isBeginning:n,isEnd:a}),(i.watchSlidesProgress||i.watchSlidesVisibility||i.centeredSlides&&i.autoHeight)&&this.updateSlidesProgress(e),n&&!l&&this.emit("reachBeginning toEdge"),a&&!d&&this.emit("reachEnd toEdge"),(l&&!n||d&&!a)&&this.emit("fromEdge"),this.emit("progress",r)},updateSlidesClasses:function(){var e,t=this.slides,i=this.params,s=this.$wrapperEl,r=this.activeIndex,n=this.realIndex,a=this.virtual&&i.virtual.enabled;t.removeClass(i.slideActiveClass+" "+i.slideNextClass+" "+i.slidePrevClass+" "+i.slideDuplicateActiveClass+" "+i.slideDuplicateNextClass+" "+i.slideDuplicatePrevClass),(e=a?this.$wrapperEl.find("."+i.slideClass+'[data-swiper-slide-index="'+r+'"]'):t.eq(r)).addClass(i.slideActiveClass),i.loop&&(e.hasClass(i.slideDuplicateClass)?s.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+n+'"]').addClass(i.slideDuplicateActiveClass):s.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+n+'"]').addClass(i.slideDuplicateActiveClass));var o=e.nextAll("."+i.slideClass).eq(0).addClass(i.slideNextClass);i.loop&&0===o.length&&(o=t.eq(0)).addClass(i.slideNextClass);var l=e.prevAll("."+i.slideClass).eq(0).addClass(i.slidePrevClass);i.loop&&0===l.length&&(l=t.eq(-1)).addClass(i.slidePrevClass),i.loop&&(o.hasClass(i.slideDuplicateClass)?s.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+o.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass):s.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+o.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass),l.hasClass(i.slideDuplicateClass)?s.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass):s.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass)),this.emitSlidesClasses()},updateActiveIndex:function(e){var t,i=this.rtlTranslate?this.translate:-this.translate,s=this.slidesGrid,r=this.snapGrid,n=this.params,a=this.activeIndex,l=this.realIndex,d=this.snapIndex,c=e;if(void 0===c){for(var u=0;u=s[u]&&i=s[u]&&i=s[u]&&(c=u);n.normalizeSlideIndex&&(c<0||void 0===c)&&(c=0)}if(r.indexOf(i)>=0)t=r.indexOf(i);else{var h=Math.min(n.slidesPerGroupSkip,c);t=h+Math.floor((c-h)/n.slidesPerGroup)}if(t>=r.length&&(t=r.length-1),c!==a){var p=parseInt(this.slides.eq(c).attr("data-swiper-slide-index")||c,10);Object(o.c)(this,{snapIndex:t,realIndex:p,previousIndex:a,activeIndex:c}),this.emit("activeIndexChange"),this.emit("snapIndexChange"),l!==p&&this.emit("realIndexChange"),(this.initialized||this.params.runCallbacksOnInit)&&this.emit("slideChange")}else t!==d&&(this.snapIndex=t,this.emit("snapIndexChange"))},updateClickedSlide:function(e){var t=this.params,i=Object(a.a)(e.target).closest("."+t.slideClass)[0],s=!1;if(i)for(var r=0;rd?d:s&&er?"next":is?"next":i=o.length&&(f=o.length-1),(c||a.initialSlide||0)===(d||0)&&i&&r.emit("beforeSlideChangeStart");var v,m=-o[f];if(r.updateProgress(m),a.normalizeSlideIndex)for(var g=0;g=Math.floor(100*l[g])&&(n=g);if(r.initialized&&n!==c){if(!r.allowSlideNext&&mr.translate&&m>r.maxTranslate()&&(c||0)!==n)return!1}if(v=n>c?"next":n=e&&(h=e)})),void 0!==h&&(d=a.indexOf(h))<0&&(d=this.activeIndex-1),this.slideTo(d,e,t,i)},slideReset:function(e,t,i){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideTo(this.activeIndex,e,t,i)},slideToClosest:function(e,t,i,s){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===s&&(s=.5);var r=this.activeIndex,n=Math.min(this.params.slidesPerGroupSkip,r),a=n+Math.floor((r-n)/this.params.slidesPerGroup),o=this.rtlTranslate?this.translate:-this.translate;if(o>=this.snapGrid[a]){var l=this.snapGrid[a];o-l>(this.snapGrid[a+1]-l)*s&&(r+=this.params.slidesPerGroup)}else{var d=this.snapGrid[a-1];o-d<=(this.snapGrid[a]-d)*s&&(r-=this.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,this.slidesGrid.length-1),this.slideTo(r,e,t,i)},slideToClickedSlide:function(){var e,t=this,i=t.params,s=t.$wrapperEl,r="auto"===i.slidesPerView?t.slidesPerViewDynamic():i.slidesPerView,n=t.clickedIndex;if(i.loop){if(t.animating)return;e=parseInt(Object(a.a)(t.clickedSlide).attr("data-swiper-slide-index"),10),i.centeredSlides?nt.slides.length-t.loopedSlides+r/2?(t.loopFix(),n=s.children("."+i.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+i.slideDuplicateClass+")").eq(0).index(),Object(o.f)((function(){t.slideTo(n)}))):t.slideTo(n):n>t.slides.length-r?(t.loopFix(),n=s.children("."+i.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+i.slideDuplicateClass+")").eq(0).index(),Object(o.f)((function(){t.slideTo(n)}))):t.slideTo(n)}else t.slideTo(n)}},loop:{loopCreate:function(){var e=this,t=Object(l.a)(),i=e.params,s=e.$wrapperEl;s.children("."+i.slideClass+"."+i.slideDuplicateClass).remove();var r=s.children("."+i.slideClass);if(i.loopFillGroupWithBlank){var n=i.slidesPerGroup-r.length%i.slidesPerGroup;if(n!==i.slidesPerGroup){for(var o=0;or.length&&(e.loopedSlides=r.length);var c=[],u=[];r.each((function(t,i){var s=Object(a.a)(t);i=r.length-e.loopedSlides&&c.push(t),s.attr("data-swiper-slide-index",i)}));for(var h=0;h=0;p-=1)s.prepend(Object(a.a)(c[p].cloneNode(!0)).addClass(i.slideDuplicateClass))},loopFix:function(){this.emit("beforeLoopFix");var e,t=this.activeIndex,i=this.slides,s=this.loopedSlides,r=this.allowSlidePrev,n=this.allowSlideNext,a=this.snapGrid,o=this.rtlTranslate;this.allowSlidePrev=!0,this.allowSlideNext=!0;var l=-a[t]-this.getTranslate();if(t=i.length-s){e=-i.length+t+s,e+=s,this.slideTo(e,0,!1,!0)&&0!==l&&this.setTranslate((o?-this.translate:this.translate)-l)}this.allowSlidePrev=r,this.allowSlideNext=n,this.emit("loopFix")},loopDestroy:function(){var e=this.$wrapperEl,t=this.params,i=this.slides;e.children("."+t.slideClass+"."+t.slideDuplicateClass+",."+t.slideClass+"."+t.slideBlankClass).remove(),i.removeAttr("data-swiper-slide-index")}},grabCursor:{setGrabCursor:function(e){if(!(this.support.touch||!this.params.simulateTouch||this.params.watchOverflow&&this.isLocked||this.params.cssMode)){var t=this.el;t.style.cursor="move",t.style.cursor=e?"-webkit-grabbing":"-webkit-grab",t.style.cursor=e?"-moz-grabbin":"-moz-grab",t.style.cursor=e?"grabbing":"grab"}},unsetGrabCursor:function(){this.support.touch||this.params.watchOverflow&&this.isLocked||this.params.cssMode||(this.el.style.cursor="")}},manipulation:{appendSlide:function(e){var t=this.$wrapperEl,i=this.params;if(i.loop&&this.loopDestroy(),"object"==typeof e&&"length"in e)for(var s=0;s=n)this.appendSlide(t);else{for(var a=r>e?r+1:r,o=[],l=n-1;l>=e;l-=1){var d=this.slides.eq(l);d.remove(),o.unshift(d)}if("object"==typeof t&&"length"in t){for(var c=0;ce?r+t.length:r}else i.append(t);for(var u=0;u1,h=c.slidesPerColumn>1;u&&!h?(n.removeClass(r.containerModifierClass+"multirow "+r.containerModifierClass+"multirow-column"),this.emitContainerClasses()):!u&&h&&(n.addClass(r.containerModifierClass+"multirow"),"column"===c.slidesPerColumnFill&&n.addClass(r.containerModifierClass+"multirow-column"),this.emitContainerClasses());var p=c.direction&&c.direction!==r.direction,f=r.loop&&(c.slidesPerView!==r.slidesPerView||p);p&&t&&this.changeDirection(),Object(o.c)(this.params,c),Object(o.c)(this,{allowTouchMove:this.params.allowTouchMove,allowSlideNext:this.params.allowSlideNext,allowSlidePrev:this.params.allowSlidePrev}),this.currentBreakpoint=l,this.emit("_beforeBreakpoint",c),f&&t&&(this.loopDestroy(),this.loopCreate(),this.updateSlides(),this.slideTo(e-s+this.loopedSlides,0,!1)),this.emit("breakpoint",c)}}},getBreakpoint:function(e){var t=Object(l.b)();if(e){var i=!1,s=Object.keys(e).map((function(e){if("string"==typeof e&&0===e.indexOf("@")){var i=parseFloat(e.substr(1));return{value:t.innerHeight*i,point:e}}return{value:e,point:e}}));s.sort((function(e,t){return parseInt(e.value,10)-parseInt(t.value,10)}));for(var r=0;r0&&e.slidesOffsetBefore+e.spaceBetween*(this.slides.length-1)+this.slides[0].offsetWidth*this.slides.length;e.slidesOffsetBefore&&e.slidesOffsetAfter&&i?this.isLocked=i<=this.size:this.isLocked=1===this.snapGrid.length,this.allowSlideNext=!this.isLocked,this.allowSlidePrev=!this.isLocked,t!==this.isLocked&&this.emit(this.isLocked?"lock":"unlock"),t&&t!==this.isLocked&&(this.isEnd=!1,this.navigation&&this.navigation.update())}},classes:{addClasses:function(){var e=this.classNames,t=this.params,i=this.rtl,s=this.$el,r=this.device,n=[];n.push("initialized"),n.push(t.direction),t.freeMode&&n.push("free-mode"),t.autoHeight&&n.push("autoheight"),i&&n.push("rtl"),t.slidesPerColumn>1&&(n.push("multirow"),"column"===t.slidesPerColumnFill&&n.push("multirow-column")),r.android&&n.push("android"),r.ios&&n.push("ios"),t.cssMode&&n.push("css-mode"),n.forEach((function(i){e.push(t.containerModifierClass+i)})),s.addClass(e.join(" ")),this.emitContainerClasses()},removeClasses:function(){var e=this.$el,t=this.classNames;e.removeClass(t.join(" ")),this.emitContainerClasses()}},images:{loadImage:function(e,t,i,s,r,n){var o,d=Object(l.b)();function c(){n&&n()}Object(a.a)(e).parent("picture")[0]||e.complete&&r?c():t?((o=new d.Image).onload=c,o.onerror=c,s&&(o.sizes=s),i&&(o.srcset=i),t&&(o.src=t)):c()},preloadImages:function(){var e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(var i=0;i1){var f=[];return p.each((function(t){var s=Object(o.c)({},i,{el:t});f.push(new e(s))})),f}var v,m,g;return t.swiper=l,t&&t.shadowRoot&&t.shadowRoot.querySelector?(v=Object(a.a)(t.shadowRoot.querySelector("."+l.params.wrapperClass))).children=function(e){return p.children(e)}:v=p.children("."+l.params.wrapperClass),Object(o.c)(l,{$el:p,el:t,$wrapperEl:v,wrapperEl:v[0],classNames:[],slides:Object(a.a)(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===l.params.direction},isVertical:function(){return"vertical"===l.params.direction},rtl:"rtl"===t.dir.toLowerCase()||"rtl"===p.css("direction"),rtlTranslate:"horizontal"===l.params.direction&&("rtl"===t.dir.toLowerCase()||"rtl"===p.css("direction")),wrongRTL:"-webkit-box"===v.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEvents:(m=["touchstart","touchmove","touchend","touchcancel"],g=["mousedown","mousemove","mouseup"],l.support.pointerEvents&&(g=["pointerdown","pointermove","pointerup"]),l.touchEventsTouch={start:m[0],move:m[1],end:m[2],cancel:m[3]},l.touchEventsDesktop={start:g[0],move:g[1],end:g[2]},l.support.touch||!l.params.simulateTouch?l.touchEventsTouch:l.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video, label",lastClickTime:Object(o.g)(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.useModules(),l.emit("_swiper"),l.params.init&&l.init(),l}}var t,i,s,r=e.prototype;return r.emitContainerClasses=function(){var e=this;if(e.params._emitClasses&&e.el){var t=e.el.className.split(" ").filter((function(t){return 0===t.indexOf("swiper-container")||0===t.indexOf(e.params.containerModifierClass)}));e.emit("_containerClasses",t.join(" "))}},r.emitSlidesClasses=function(){var e=this;e.params._emitClasses&&e.el&&e.slides.each((function(t){var i=t.className.split(" ").filter((function(t){return 0===t.indexOf("swiper-slide")||0===t.indexOf(e.params.slideClass)}));e.emit("_slideClass",t,i.join(" "))}))},r.slidesPerViewDynamic=function(){var e=this.params,t=this.slides,i=this.slidesGrid,s=this.size,r=this.activeIndex,n=1;if(e.centeredSlides){for(var a,o=t[r].swiperSlideSize,l=r+1;ls&&(a=!0));for(var d=r-1;d>=0;d-=1)t[d]&&!a&&(n+=1,(o+=t[d].swiperSlideSize)>s&&(a=!0))}else for(var c=r+1;c1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0))||s(),i.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}function s(){var t=e.rtlTranslate?-1*e.translate:e.translate,i=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(i),e.updateActiveIndex(),e.updateSlidesClasses()}},r.changeDirection=function(e,t){void 0===t&&(t=!0);var i=this.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(this.$el.removeClass(""+this.params.containerModifierClass+i).addClass(""+this.params.containerModifierClass+e),this.emitContainerClasses(),this.params.direction=e,this.slides.each((function(t){"vertical"===e?t.style.width="":t.style.height=""})),this.emit("changeDirection"),t&&this.update()),this},r.init=function(){this.initialized||(this.emit("beforeInit"),this.params.breakpoints&&this.setBreakpoint(),this.addClasses(),this.params.loop&&this.loopCreate(),this.updateSize(),this.updateSlides(),this.params.watchOverflow&&this.checkOverflow(),this.params.grabCursor&&this.setGrabCursor(),this.params.preloadImages&&this.preloadImages(),this.params.loop?this.slideTo(this.params.initialSlide+this.loopedSlides,0,this.params.runCallbacksOnInit):this.slideTo(this.params.initialSlide,0,this.params.runCallbacksOnInit),this.attachEvents(),this.initialized=!0,this.emit("init"))},r.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var i=this,s=i.params,r=i.$el,n=i.$wrapperEl,a=i.slides;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),s.loop&&i.loopDestroy(),t&&(i.removeClasses(),r.removeAttr("style"),n.removeAttr("style"),a&&a.length&&a.removeClass([s.slideVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),i.emit("destroy"),Object.keys(i.eventsListeners).forEach((function(e){i.off(e)})),!1!==e&&(i.$el[0].swiper=null,Object(o.b)(i)),i.destroyed=!0),null},e.extendDefaults=function(e){Object(o.c)(M,e)},e.installModule=function(t){e.prototype.modules||(e.prototype.modules={});var i=t.name||Object.keys(e.prototype.modules).length+"_"+Object(o.g)();e.prototype.modules[i]=t},e.use=function(t){return Array.isArray(t)?(t.forEach((function(t){return e.installModule(t)})),e):(e.installModule(t),e)},t=e,s=[{key:"extendedDefaults",get:function(){return M}},{key:"defaults",get:function(){return x}}],(i=null)&&E(t.prototype,i),s&&E(t,s),e}();Object.keys(O).forEach((function(e){Object.keys(O[e]).forEach((function(t){P.prototype[t]=O[e][t]}))})),P.use([h,v]);t.a=P},265:function(e,t,i){"use strict";i.d(t,"a",(function(){return u}));var s=i(0),r=i.n(s),n=i(264),a=i(30),o=["init","_direction","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_freeModeMomentum","_freeModeMomentumRatio","_freeModeMomentumBounce","_freeModeMomentumBounceRatio","_freeModeMomentumVelocityRatio","_freeModeSticky","_freeModeMinimumVelocity","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","_slidesPerColumn","_slidesPerColumnFill","_slidesPerGroup","_slidesPerGroupSkip","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_watchSlidesVisibility","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_preloadImages","updateOnImagesReady","_loop","_loopAdditionalSlides","_loopedSlides","_loopFillGroupWithBlank","loopPreventsSlide","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideBlankClass","slideActiveClass","slideDuplicateActiveClass","slideVisibleClass","slideDuplicateClass","slideNextClass","slideDuplicateNextClass","slidePrevClass","slideDuplicatePrevClass","wrapperClass","runCallbacksOnInit","a11y","autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","hashNavigation","history","keyboard","lazy","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom"];function l(e,t){var i=t.slidesPerView;if(t.breakpoints){var s=n.a.prototype.getBreakpoint(t.breakpoints),r=s in t.breakpoints?t.breakpoints[s]:void 0;r&&r.slidesPerView&&(i=r.slidesPerView)}var a=Math.ceil(parseFloat(t.loopedSlides||i,10));return(a+=t.loopAdditionalSlides)>e.length&&(a=e.length),a}var d=i(66);function c(){return(c=Object.assign||function(e){for(var t=1;t=0||(r[i]=e[i]);return r}(i,["className","tag","wrapperTag","children","onSwiper"]),w=Object(s.useState)("swiper-container"),C=w[0],S=w[1],y=Object(s.useState)(null),T=y[0],x=y[1],E=Object(s.useState)(!1),O=E[0],M=E[1],P=Object(s.useRef)(!1),k=Object(s.useRef)(null),j=Object(s.useRef)(null),L=Object(s.useRef)(null),A=Object(s.useRef)(null),z=Object(s.useRef)(null),I=Object(s.useRef)(null),_=Object(s.useRef)(null),B=Object(s.useRef)(null),D=function(e){void 0===e&&(e={});var t={on:{}},i={};Object(a.a)(t,n.a.defaults),Object(a.a)(t,n.a.extendedDefaults),t._emitClasses=!0;var s={},r=o.map((function(e){return e.replace(/_/,"")}));return Object.keys(e).forEach((function(n){r.indexOf(n)>=0?Object(a.b)(e[n])?(t[n]={},i[n]={},Object(a.a)(t[n],e[n]),Object(a.a)(i[n],e[n])):(t[n]=e[n],i[n]=e[n]):0===n.search(/on[A-Z]/)&&"function"==typeof e[n]?t.on[""+n[2].toLowerCase()+n.substr(3)]=e[n]:s[n]=e[n]})),{params:t,passedParams:i,rest:s}}(b),N=D.params,G=D.passedParams,V=D.rest,F=function(e){var t=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return function e(s){r.a.Children.toArray(s).forEach((function(s){s.type===r.a.Fragment&&s.props.children?e(s.props.children):s.type&&"SwiperSlide"===s.type.displayName?t.push(s):s.props&&s.props.slot&&i[s.props.slot]?i[s.props.slot].push(s):i["container-end"].push(s)}))}(e),{slides:t,slots:i}}(m),$=F.slides,H=F.slots,R=function(e,t,i,s){var r=[];if(!t)return r;var n=s.map((function(e){return e.key})),a=i.map((function(e){return e.key}));return n.join("")!==a.join("")&&r.push("children"),s.length!==i.length&&r.push("children"),o.filter((function(e){return"_"===e[0]})).map((function(e){return e.replace(/_/,"")})).forEach((function(i){i in e&&i in t&&e[i]!==t[i]&&r.push(i)})),r}(G,L.current,$,A.current);L.current=G,A.current=$;var q=function(){M(!O)};return Object.assign(N.on,{_containerClasses:function(e,t){S(t)},_swiper:function(e){e.loopCreate=function(){},e.loopDestroy=function(){},N.loop&&(e.loopedSlides=l($,N)),j.current=e,e.virtual&&e.params.virtual.enabled&&(e.virtual.slides=$,e.params.virtual.cache=!1,e.params.virtual.renderExternal=x,e.params.virtual.renderExternalUpdate=!1)}}),j.current&&j.current.on("_beforeBreakpoint",q),Object(s.useEffect)((function(){return function(){j.current&&j.current.off("_beforeBreakpoint",q)}})),Object(s.useEffect)((function(){!P.current&&j.current&&(j.current.emitSlidesClasses(),P.current=!0)})),Object(d.a)((function(){R.length&&j.current&&!j.current.destroyed&&function(e,t,i,s){var r,n,o,l,d,c=s.filter((function(e){return"children"!==e&&"direction"!==e})),u=e.params,h=e.pagination,p=e.navigation,f=e.scrollbar,v=e.virtual,m=e.thumbs;s.includes("thumbs")&&i.thumbs&&i.thumbs.swiper&&u.thumbs&&!u.thumbs.swiper&&(r=!0),s.includes("controller")&&i.controller&&i.controller.control&&u.controller&&!u.controller.control&&(n=!0),s.includes("pagination")&&i.pagination&&i.pagination.el&&u.pagination&&h&&!h.el&&(o=!0),s.includes("scrollbar")&&i.scrollbar&&i.scrollbar.el&&u.scrollbar&&f&&!f.el&&(l=!0),s.includes("navigation")&&i.navigation&&i.navigation.prevEl&&i.navigation.nextEl&&u.navigation&&p&&!p.prevEl&&!p.nextEl&&(d=!0),c.forEach((function(e){Object(a.b)(u[e])&&Object(a.b)(i[e])?Object(a.a)(u[e],i[e]):u[e]=i[e]})),s.includes("children")&&v&&u.virtual.enabled&&(v.slides=t,v.update(!0)),r&&m.init()&&m.update(!0),n&&(e.controller.control=u.controller.control),o&&(h.init(),h.render(),h.update()),l&&(f.init(),f.updateSize(),f.setTranslate()),d&&(p.init(),p.update()),s.includes("allowSlideNext")&&(e.allowSlideNext=i.allowSlideNext),s.includes("allowSlidePrev")&&(e.allowSlidePrev=i.allowSlidePrev),s.includes("direction")&&e.changeDirection(i.direction,!1),e.update()}(j.current,$,G,R)})),Object(d.a)((function(){var e;(e=j.current)&&!e.destroyed&&(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.lazy&&e.params.lazy.enabled&&e.lazy.load())}),[T]),Object(d.a)((function(){if(t&&(t.current=k.current),k.current)return function(e,t){var i=e.el,s=e.nextEl,r=e.prevEl,o=e.paginationEl,l=e.scrollbarEl;Object(a.c)(t)&&s&&r&&(!0===t.navigation&&(t.navigation={}),t.navigation.nextEl=s,t.navigation.prevEl=r),Object(a.d)(t)&&o&&(!0===t.pagination&&(t.pagination={}),t.pagination.el=o),Object(a.e)(t)&&l&&(!0===t.scrollbar&&(t.scrollbar={}),t.scrollbar.el=l),new n.a(i,t)}({el:k.current,nextEl:z.current,prevEl:I.current,paginationEl:_.current,scrollbarEl:B.current},N),g&&g(j.current),function(){j.current&&!j.current.destroyed&&j.current.destroy()}}),[]),r.a.createElement(p,c({ref:k,className:Object(a.f)(C+(u?" "+u:""))},V),H["container-start"],Object(a.c)(N)&&r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{ref:I,className:"swiper-button-prev"}),r.a.createElement("div",{ref:z,className:"swiper-button-next"})),Object(a.e)(N)&&r.a.createElement("div",{ref:B,className:"swiper-scrollbar"}),Object(a.d)(N)&&r.a.createElement("div",{ref:_,className:"swiper-pagination"}),r.a.createElement(v,{className:"swiper-wrapper"},H["wrapper-start"],N.virtual?function(e,t,i){var s;if(!i)return null;var n=e.isHorizontal()?((s={})[e.rtlTranslate?"right":"left"]=i.offset+"px",s):{top:i.offset+"px"};return t.filter((function(e,t){return t>=i.from&&t<=i.to})).map((function(t){return r.a.cloneElement(t,{swiper:e,style:n})}))}(j.current,$,T):!N.loop||j.current&&j.current.destroyed?$.map((function(e){return r.a.cloneElement(e,{swiper:j.current})})):function(e,t,i){var s=t.map((function(t,i){return r.a.cloneElement(t,{swiper:e,"data-swiper-slide-index":i})}));function n(e,t,s){return r.a.cloneElement(e,{key:e.key+"-duplicate-"+t+"-"+s,className:(e.props.className||"")+" "+i.slideDuplicateClass})}if(i.loopFillGroupWithBlank){var a=i.slidesPerGroup-s.length%i.slidesPerGroup;if(a!==i.slidesPerGroup)for(var o=0;o=s.length-c&&u.push(n(e,t,"append"))})),e&&(e.loopedSlides=c),[].concat(u,s,h)}(j.current,$,N),H["wrapper-end"]),H["container-end"])}));u.displayName="Swiper"},30:function(e,t,i){"use strict";function s(e){return"object"==typeof e&&null!==e&&e.constructor&&e.constructor===Object}function r(e,t){Object.keys(t).forEach((function(i){void 0===e[i]?e[i]=t[i]:s(t[i])&&s(e[i])&&Object.keys(t[i]).length>0?r(e[i],t[i]):e[i]=t[i]}))}function n(e){return void 0===e&&(e={}),e.navigation&&void 0===e.navigation.nextEl&&void 0===e.navigation.prevEl}function a(e){return void 0===e&&(e={}),e.pagination&&void 0===e.pagination.el}function o(e){return void 0===e&&(e={}),e.scrollbar&&void 0===e.scrollbar.el}function l(e){void 0===e&&(e="");var t=e.split(" ").map((function(e){return e.trim()})).filter((function(e){return!!e})),i=[];return t.forEach((function(e){i.indexOf(e)<0&&i.push(e)})),i.join(" ")}i.d(t,"b",(function(){return s})),i.d(t,"a",(function(){return r})),i.d(t,"c",(function(){return n})),i.d(t,"d",(function(){return a})),i.d(t,"e",(function(){return o})),i.d(t,"f",(function(){return l}))},66:function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var s=i(0);function r(e,t){return"undefined"==typeof window?Object(s.useEffect)(e,t):Object(s.useLayoutEffect)(e,t)}}}]);; (window.webpackJsonpvtex_store_components_3_176_2=window.webpackJsonpvtex_store_components_3_176_2||[]).push([[2],{50:function(e,t,n){e.exports={productVideo:"vtex-store-components-3-x-productVideo",productImage:"vtex-store-components-3-x-productImage",highQualityProductImageImgElement:"vtex-store-components-3-x-highQualityProductImageImgElement",figure:"vtex-store-components-3-x-figure",gradientBaseBottom:"vtex-store-components-3-x-gradientBaseBottom",gradientBaseTop:"vtex-store-components-3-x-gradientBaseTop",gradientBaseRight:"vtex-store-components-3-x-gradientBaseRight",gradientBaseLeft:"vtex-store-components-3-x-gradientBaseLeft"}},51:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n(9),r=n(78),c=function(e,t,n,c){var a=t,i="auto";return c&&"auto"!==c?(i=t*(function(e){if(!e)return null;if("string"==typeof e){if("auto"===e)return null;var t=e.split(":");if(2!==t.length)return null;var n=Object(o.a)(t,2),r=n[0],c=n[1],a=parseFloat(c)/parseFloat(r);return"number"!=typeof a||window.isNaN(a)?null:a}return"number"==typeof e?e:null}(c)||1),a>n&&(i/=a/n,a=n),i>n&&(a/=i/n,i=n),a=Math.round(a),i=Math.round(i)):a=Math.min(n,a),Object(r.a)(e,a,i)}},78:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=new RegExp(/.+ids\/(\d+)/);function r(e,t,n){if(!e.includes("/arquivos/ids/"))return e;var r=function(e){var t,n,r,c=o.exec(e),a=(n="v",null===(r=(null==(t=e)?void 0:t.split("".concat(n,"="))[1])||"")||void 0===r?void 0:r.split("&")[0]);return c&&c.length>0?{cleanUrl:c[0],vParam:a}:{cleanUrl:e}}(e),c=r.vParam,a=r.cleanUrl;return c?"".concat(a,"-").concat(t,"-").concat(n,"?v=").concat(c):"".concat(a,"-").concat(t,"-").concat(n)}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"auto";if(e){"number"==typeof t&&(t=Math.min(t,3e3)),"number"==typeof n&&(n=Math.min(n,4e3));var o=r(e,t,n),c=o.includes("?")?"&":"?";return"".concat(o).concat(c,"width=").concat(t,"&height=").concat(n,"&aspect=true")}}},79:function(e,t,n){"use strict";var o=n(0),r=Object(o.createContext)({});t.a=r},80:function(e,t,n){"use strict";var o=n(0),r=n.n(o),c=n(61),a=n.n(c),i=n(9),u=n(1),l=function(e,t){if(!t)return{x:0,y:0};var n=[e.clientX-t.x,e.clientY-t.y],o=n[0],r=n[1],c=o<-20||r<-20||o>t.width+20||r>t.height+20;return{x:Object(u.clamp)(0,t.width,.1*-t.width+1.2*o),y:Object(u.clamp)(0,t.height,.1*-t.height+1.2*r),isOutOfBounds:c}},s=function(e){var t=e.children,n=e.zoomContent,c=e.type,a=e.factor,u=Object(o.useState)(!1),s=Object(i.a)(u,2),d=s[0],m=s[1],f=Object(o.useRef)(null),v=Object(o.useRef)(null),p=Object(o.useRef)(null),h=function(e,t,n){var o=v.current;o&&(o.style.transform="scale(".concat(n,", ").concat(n,") translate3d(").concat(-e/n,"px, ").concat(-t/n,"px, 0)"))},g=function(){var e;return null!==(e=p.current)&&void 0!==e?e:function(e){if(!e)return null;var t=e.getBoundingClientRect();return{x:t.left,y:t.top,width:t.width,height:t.height}}(f.current)};Object(o.useEffect)((function(){d||(h(0,0,1),p.current=null)}),[d]);var x=function(e){var t,n;d&&(f.current&&e.target&&(null===(n=(t=f.current).contains)||void 0===n?void 0:n.call(t,e.target))||m(!1))},b=function(e){if(d){var t=l(e,g());"hover"===c&&t.isOutOfBounds?m(!1):h(t.x,t.y,a)}};return Object(o.useEffect)((function(){return document&&(document.addEventListener("mousemove",b),"click"===c&&document.addEventListener("click",x)),function(){document&&(document.removeEventListener("mousemove",b),"click"===c&&document.removeEventListener("click",x))}})),r.a.createElement("div",{ref:f,onMouseOver:"hover"===c?function(){m(!0)}:void 0,onClick:"click"===c?function(e){if(m(!d),!d){var t=l(e,g());h(t.x,t.y,a)}}:void 0,className:"relative"},r.a.createElement("div",{ref:v,style:{transformOrigin:"0 0",fontSize:0}},t,n&&d&&r.a.createElement("div",{className:"absolute top-0 left-0 right-0 bottom-0",style:{transformOrigin:"0 0",transform:"scale(".concat(1/a,")"),fontSize:0}},n)))},d=n(93),m=n.n(d);var f=function(e){var t=e.children,n=e.ModalZoomElement;return r.a.createElement(m.a,null,t,r.a.createElement(n,null))};t.a=function(e){var t=e.children,n=e.factor,o=void 0===n?2:n,c=e.zoomContent,i=e.ModalZoomElement,u=e.mode,l=void 0===u?"in-place-click":u;if(a()().isMobile&&"disabled"!==l&&"open-modal"!==l)return r.a.createElement(s,{type:"click",factor:o,zoomContent:c},t);switch(l){case"in-place-hover":return r.a.createElement(s,{type:"hover",factor:o,zoomContent:c},t);case"in-place-click":return r.a.createElement(s,{type:"click",factor:o,zoomContent:c},t);case"open-modal":if(i)return r.a.createElement(f,{ModalZoomElement:i},t);case"disabled":default:return r.a.createElement(r.a.Fragment,null,t)}}}}]);; (window.webpackJsonpvtex_store_components_3_176_2=window.webpackJsonpvtex_store_components_3_176_2||[]).push([["ProductImages"],{0:function(e,t){e.exports=React},1:function(e,t){e.exports=R},18:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-context@0.x/useProduct"]},187:function(e,t,a){"use strict";a.r(t),function(e){var t=a(3);a.p=Object(t.getPublicPath)("vtex.store-components@3.176.2");var r=Object(t.register)((function(){return a(224)}),e,"vtex.store-components@3.176.2","vtex.store-components@3.x","ProductImages");r.renderHotReload,r.setupHMR}.call(this,a(15)(e))},188:function(e,t,a){},189:function(e,t,a){},2:function(e,t){e.exports=PropTypes},224:function(e,t,a){"use strict";a.r(t);var r=a(5),i=a(0),o=a.n(i),n=a(18),s=a.n(n),c=a(69),l=a.n(c),u=a(1),m=a(20),d=a(7),p=a.n(d),h=a(11),b=a(48),f=a.n(b),g=a(59),v=a(24),y=a(25),w=a(31),O=a(26),x=a(27),j=a(16),E=a(6),C=a.n(E),R=a(64),P=a.n(R),N=a(68),T=a.n(N),_=a(264),S=a(249),I=a(250),M=a(251),z=a(265),k=a(248),D=a(2),A=a.n(D),V=a(8),H=a(9);function U(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,r=Object(j.a)(e);if(t){var i=Object(j.a)(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return Object(x.a)(this,a)}}var L=function(e){Object(O.a)(a,e);var t=U(a);function a(e){var i;Object(v.a)(this,a),i=t.call(this,e),Object(r.a)(Object(w.a)(i),"executeCommand",(function(e){return function(){if(i.frameReady){var t=JSON.stringify({method:e});i.iframeRef.contentWindow.postMessage(t,"https://player.vimeo.com")}}})),i.state={iframe:{}};var n=i.props,s=n.loop,c=n.autoplay,l=n.width,u=n.height,m=n.showTitle,d=n.url,p="autoplay=".concat(c,"&loop=").concat(s,"&title=").concat(m,"&width=").concat(l,"&height=").concat(u),h="https://vimeo.com/api/oembed.json?url=".concat(d,"&").concat(p);return i.iframeRef=o.a.createRef(),fetch(h).then((function(e){return e.json()})).then((function(t){var r=t.height,o=t.width,n=t.html,s=t.title,c=a.thumbUrlFromResp(t,e.thumbWidth);e.setThumb&&e.setThumb(c,s);var l=n.match(/src= *" *([^"]*) *"/),u=Object(H.a)(l,2)[1];i.setState({iframe:{divStyle:{padding:"".concat(100*r/o,"% 0 0 0")},src:u}})})),i}return Object(y.a)(a,[{key:"render",value:function(){var e=this.state.iframe,t=this.props,a=t.className,r=t.id,i=t.cssHandles;return this.props.playing?this.executeCommand("play")():this.executeCommand("pause")(),o.a.createElement("div",{style:e.divStyle,className:"relative ".concat(a," ").concat(i.videoContainer)},o.a.createElement("iframe",{ref:this.iframeRef,title:r,className:"".concat(i.video," absolute top-0 left-0 w-100 h-100"),src:e.src,frameBorder:"0",allowFullScreen:!0,allow:"autoplay"}))}}],[{key:"thumbUrlFromResp",value:function(e,t){var a=e.height,r=e.width,i=e.thumbnail_url_with_play_button;t=t||e.thumbnail_width;var o=Math.ceil(t*a/r);return i.replace(/_[0123456789]*x[0123456789]*./,"_".concat(t,"x").concat(o,"."))}}]),a}(i.Component);Object(r.a)(L,"getThumbUrl",(function(e){var t="https://vimeo.com/api/oembed.json?url=".concat(e);return fetch(t).then((function(e){return e.json()})).then((function(e){return e.thumbnail_url}))})),L.defaultProps={loop:!0,autoplay:!1,width:null,height:null,showTitle:!1,className:""};var B=L;function F(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,r=Object(j.a)(e);if(t){var i=Object(j.a)(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return Object(x.a)(this,a)}}var G=function(e){Object(O.a)(a,e);var t=F(a);function a(e){var i;Object(v.a)(this,a),i=t.call(this,e),Object(r.a)(Object(w.a)(i),"executeCommand",(function(e){return function(){if(i.frameReady){var t=JSON.stringify({event:"command",func:e});i.iframeRef.contentWindow.postMessage(t,"https://www.youtube.com")}}}));var n=i.props,s=n.loop,c=n.autoplay,l=n.title,u=n.url,m="autoplay=".concat(c,"&loop=").concat(s,"&title=").concat(l,"&enablejsapi=1&iv_load_policy=3&modestbranding=1"),d=a.extractVideoID(u);return i.iframeRef=o.a.createRef(),i.state={iframe:{src:"https://www.youtube.com/embed/".concat(d,"?").concat(m)}},i}return Object(y.a)(a,[{key:"render",value:function(){var e=this.state.iframe,t=this.props,a=t.className,r=t.id,i=t.cssHandles;return this.props.playing?this.executeCommand("playVideo")():this.executeCommand("pauseVideo")(),o.a.createElement("div",{className:"relative ".concat(a," ").concat(i.videoContainer),style:{padding:"30%"}},o.a.createElement("iframe",{ref:this.iframeRef,title:r,className:"".concat(i.video," absolute top-0 left-0 w-100 h-100"),src:e.src,frameBorder:"0",allowFullScreen:!0,allow:"autoplay"}))}}]),a}(i.Component);Object(r.a)(G,"getThumbUrl",(function(e){var t=G.extractVideoID(e);return Promise.resolve("https://img.youtube.com/vi/".concat(t,"/default.jpg"))})),Object(r.a)(G,"extractVideoID",(function(e){var t=e.match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/);return t&&11===t[7].length?t[7]:null})),G.defaultProps={loop:!0,autoplay:!1,width:null,height:null,title:!1,className:""};var W=G,Z=Object(u.complement)(u.isEmpty),J=Object(u.compose)(Z,Object(u.match)(/vimeo/)),q=Object(u.compose)(Z,Object(u.match)(/youtube|youtu.be/)),K=["productVideo","videoContainer","video"];function Q(e){var t=e.url,a=p()(K).handles;return o.a.createElement("div",{className:a.productVideo},J(t)&&o.a.createElement(V.NoSSR,null,o.a.createElement(B,Object(h.a)({key:t},e,{cssHandles:a}))),q(t)&&o.a.createElement(W,Object(h.a)({key:t},e,{cssHandles:a})))}Q.propsTypes={url:A.a.string.isRequired,id:A.a.number.isRequired,setThumb:A.a.func,thumbWidth:A.a.number,className:A.a.string,play:A.a.bool};var X=Q,Y=a(65),$=a.n(Y),ee=a(80),te=a(51),ae=a(79),re=[600,800,1200],ie=["productImage","productImageTag","productImageLabel"],oe=function(e){var t=e.index,a=e.src,r=e.alt,n=e.imageLabel,s=e.zoomFactor,c=void 0===s?2:s,l=e.maxHeight,u=void 0===l?600:l,m=e.ModalZoomElement,d=e.aspectRatio,h=void 0===d?"auto":d,b=e.zoomMode,f=void 0===b?"in-place-click":b,g=Object(i.useMemo)((function(){return re.map((function(e){return"".concat(Object(te.a)(a,e,2048,h)," ").concat(e,"w")})).join(",")}),[a,h]),v=p()(ie).handles,y=Object(i.useRef)(null),w=Object(i.useMemo)((function(){return{src:a,alt:r}}),[r,a]);return o.a.createElement(ae.a.Provider,{value:w},o.a.createElement("div",{className:v.productImage},n&&o.a.createElement("div",{className:"tc ".concat(v.productImageLabel)},n),o.a.createElement(ee.a,{mode:f,factor:c,ModalZoomElement:m,zoomContent:o.a.createElement("img",{role:"presentation",src:Object(te.a)(a,800*c,2048,h),className:"".concat($()(v.productImageTag,"zoom")),style:{maxWidth:"unset",width:"".concat(100*c,"%"),height:"".concat(100*c,"%"),objectFit:"contain"},sizes:"(max-width: 64.1rem) 100vw, 50vw"})},o.a.createElement("img",{ref:y,"data-vtex-preload":0===t?"true":"false",className:"".concat($()(v.productImageTag,"main")),style:{width:"100%",height:"100%",maxHeight:u||"unset",objectFit:"contain"},src:Object(te.a)(a,800,2048,h),srcSet:g,alt:r,title:r,loading:0===t?"eager":"lazy",sizes:"(max-width: 64.1rem) 100vw, 50vw"}))))},ne=a(57),se=a(62),ce="left",le="right",ue="vertical",me="horizontal",de="carousel",pe="list",he="first-image",be="visible",fe=a(50),ge=a.n(fe),ve=["figure","thumbImg","thumbVid","productImagesThumb","carouselThumbBorder","carouselGaleryThumbs","productImagesThumbCaret"],ye=function(e){var t=e.alt,a=e.isVideo,r=e.thumbUrl,i=e.handles,n=e.aspectRatio,s=void 0===n?"auto":n;return o.a.createElement(o.a.Fragment,null,o.a.createElement("figure",{className:"".concat($()(i.figure,a?"video":"")),itemProp:"associatedMedia",itemScope:!0,itemType:"http://schema.org/ImageObject"},o.a.createElement("img",{className:"".concat($()(i.thumbImg,a?"video":"")," w-100 h-auto db"),itemProp:"thumbnail",alt:t,src:Object(te.a)(r,se.a,256,s)})),o.a.createElement("div",{className:"absolute absolute--fill b--solid b--muted-2 bw0 ".concat(i.carouselThumbBorder)}))},we={prevEl:".swiper-thumbnails-caret-prev",nextEl:".swiper-thumbnails-caret-next",disabledClass:"c-disabled o-0 pointer-events-none ".concat(ge.a.carouselCursorDefault),hiddenClass:"dn"},Oe=function(e){var t=p()(ve).handles,a=e.isThumbsVertical,r=e.slides,n=e.thumbUrls,s=e.position,c=e.thumbnailAspectRatio,l=e.thumbnailMaxHeight,u=e.displayThumbnailsArrows,m=Object(ne.a)(e,["isThumbsVertical","slides","thumbUrls","position","thumbnailAspectRatio","thumbnailMaxHeight","displayThumbnailsArrows"]),d=r.length>1,b=C()("".concat(t.carouselGaleryThumbs," dn h-auto"),a?["w-20 bottom-0 top-0 absolute",s===ce&&"left-0",s===le&&"right-0"]:"mt3",d&&"db-ns"),f=C()(t.productImagesThumb,"mb5 pointer",a?"w-100":"w-20"),g=Object(i.useMemo)((function(){if(!u)return null;var e="".concat(t.productImagesThumbCaret," absolute z-2 pointer c-action-primary flex pv2"),r={transition:"opacity 0.2s"},n=C()("swiper-thumbnails-caret-next",e,a?"bottom-0 pt7 left-0 justify-center w-100 ".concat(ge.a.gradientBaseBottom):"right-0 top-0 items-center h-100 pl6 ".concat(ge.a.gradientBaseRight)),s=C()("swiper-thumbnails-caret-prev top-0 left-0",e,a?"pb7 justify-center w-100 ".concat(ge.a.gradientBaseTop):"items-center h-100 pr6 ".concat(ge.a.gradientBaseLeft));return o.a.createElement(i.Fragment,{key:"navigation-arrows"},o.a.createElement("span",{className:n,style:r},o.a.createElement(P.a,{orientation:a?"down":"right",size:24})),o.a.createElement("span",{className:s,style:r},o.a.createElement(P.a,{orientation:a?"up":"left",size:24})))}),[u,t.productImagesThumbCaret,a]);return o.a.createElement("div",{className:b,"data-testid":"thumbnail-swiper"},o.a.createElement(z.a,Object(h.a)({className:"h-100 ".concat(t.productImagesThumbsSwiperContainer),slidesPerView:"auto",touchRatio:1,threshold:8,navigation:we,slidesPerGroup:u?4:1,freeMode:!1,mousewheel:!1,zoom:!1,watchSlidesVisibility:!0,watchSlidesProgress:!0,preloadImages:!0,updateOnWindowResize:!0,direction:a?"vertical":"horizontal"},m),r.map((function(e,r){return o.a.createElement(k.a,{key:"".concat(r,"-").concat(e.alt),className:f,style:{height:a?"auto":"115px",maxHeight:l||"unset",position:"relative"}},o.a.createElement(ye,{isVideo:"video"===e.type,index:r,handles:t,alt:e.alt,thumbUrl:e.thumbUrl||n[r],aspectRatio:c}))})),g))},xe=function(){return o.a.createElement("div",{className:"relative","data-testid":"default-image-placeholder"},o.a.createElement("div",{className:"".concat(ge.a.carouselImagePlaceholder," absolute w-100 contain bg-center")}),o.a.createElement("svg",{width:"100%",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.a.createElement("rect",{width:"512",height:"512",fill:"#F2F2F2"}),o.a.createElement("rect",{x:"183.857",y:"180.2",width:"144.286",height:"150.474",stroke:"#CACBCC",strokeWidth:"2"}),o.a.createElement("path",{d:"M183.78 303.688H328.214",stroke:"#CACBCC",strokeWidth:"2"}),o.a.createElement("path",{d:"M205.082 279.563L223.599 240.507L242.116 260.035L269.892 220.979L306.926 279.563H205.082Z",stroke:"#CACBCC",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),o.a.createElement("path",{d:"M252.225 213.939C252.225 219.822 247.66 224.52 242.114 224.52C236.569 224.52 232.004 219.822 232.004 213.939C232.004 208.057 236.569 203.359 242.114 203.359C247.66 203.359 252.225 208.057 252.225 213.939Z",stroke:"#CACBCC",strokeWidth:"2"})))},je=a(52),Ee=a.n(je);a(188),a(189);function Ce(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function Re(e){for(var t=1;t0,E=p===ue,R=u&&u.length>1,N={"in-page":Ee.a.carouselGaleryCursor,"no-zoom":""},T=C()("w-100 border-box",N[j?b:"no-zoom"],E&&[s===ce&&(R&&w===be||!j)&&"ml-20-ns w-80-ns pl5-ns",s===le&&(R&&w===be||!j)&&"mr-20-ns w-80-ns pr5-ns"]);if(!j)return o.a.createElement("div",{className:T},n?o.a.createElement(oe,{src:n,alt:"Product image placeholder",maxHeight:i,aspectRatio:r,zoomMode:"disabled"}):o.a.createElement(xe,null));var _=C()(c.carouselContainer,"relative overflow-hidden w-100",E&&R&&w===be&&[s===ce&&"flex-ns justify-end-ns",s===le&&"flex-ns justify-start-ns"]),S=o.a.createElement(Oe,{onSwiper:function(e){return t.setState({thumbSwiper:e})},isThumbsVertical:E,thumbnailAspectRatio:d,thumbnailMaxHeight:m,thumbUrls:this.state.thumbUrl,displayThumbnailsArrows:x,slides:u,position:s});return o.a.createElement("div",{className:_,"aria-hidden":"true"},E&&w===be&&S,o.a.createElement("div",{className:T},!(null===(e=this.state.thumbSwiper)||void 0===e?void 0:e.destroyed)&&o.a.createElement(z.a,Object(h.a)({onSwiper:function(e){return t.setState({gallerySwiper:e})},className:c.productImagesGallerySwiperContainer,threshold:10,resistanceRatio:u.length>1?.85:0,onSlideChange:this.handleSlideChange,updateOnWindowResize:!0},this.galleryParams),u.map((function(e,a){return o.a.createElement(k.a,{key:"slider-".concat(a),className:"".concat(c.productImagesGallerySlide," swiper-slide center-all")},t.renderSlide(e,a))})),o.a.createElement("div",{key:"pagination",className:C()(Ee.a["swiper-pagination"],(1===u.length||!g)&&"dn")}),o.a.createElement("div",{className:1!==u.length&&y?"":"dn"},o.a.createElement("span",{key:"caret-next",className:"swiper-caret-next pl7 pr2 right-0 ".concat(Ne," ").concat(c.swiperCaret," ").concat(c.swiperCaretNext)},o.a.createElement(P.a,{orientation:"right",size:24,className:Ee.a.carouselIconCaretRight})),o.a.createElement("span",{key:"caret-prev",className:"swiper-caret-prev pr7 pl2 left-0 ".concat(Ne," ").concat(c.swiperCaret," ").concat(c.swiperCaretPrev)},o.a.createElement(P.a,{orientation:"left",size:24,className:Ee.a.carouselIconCaretLeft})))),!E&&w===be&&S))}},{key:"hasGallerySwiper",get:function(){return Boolean(this.state.gallerySwiper)}},{key:"hasThumbSwiper",get:function(){return Boolean(this.state.thumbSwiper)}},{key:"galleryParams",get:function(){var e=this.props,t=e.handles,a=e.slides,r=void 0===a?[]:a,i=e.showPaginationDots,o=void 0===i||i,n={};return r.length>1&&o&&(n.pagination={el:".".concat(Ee.a["swiper-pagination"]),clickable:!0,clickableClass:Ee.a.swiperPaginationClickable,bulletClass:Ee.a.swiperBullet,bulletActiveClass:Ee.a["swiperBullet--active"],renderBullet:function(e,t){return'')}}),r.length>1&&(n.navigation={prevEl:".swiper-caret-prev",nextEl:".swiper-caret-next",disabledClass:"c-disabled ".concat(Ee.a.carouselCursorDefault)}),n.thumbs={swiper:this.state.thumbSwiper,multipleActiveThumbs:!1,slideThumbActiveClass:t.productImagesThumbActive},n}}]),a}(i.Component),Se=T()(["carouselContainer","productImagesThumbsSwiperContainer","productImagesThumbActive","productImagesGallerySwiperContainer","productImagesGallerySlide","swiperCaret","swiperCaretNext","swiperCaretPrev"])(_e);function Ie(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}var Me=["content","productImagesContainer"],ze=function(e){var t=e.position,a=e.displayThumbnailsArrows,n=e.hiddenImages,s=e.placeholder,c=e.images,l=e.videos,u=e.thumbnailsOrientation,d=e.aspectRatio,h=e.maxHeight,b=e.thumbnailAspectRatio,f=e.thumbnailMaxHeight,g=e.showNavigationArrows,v=e.showPaginationDots,y=e.showImageLabel,w=void 0!==y&&y,O=e.thumbnailVisibility,x=e.contentOrder,j=void 0===x?"images-first":x,E=e.zoomMode,C=e.zoomFactor,R=e.ModalZoomElement,P=e.contentType,N=void 0===P?"all":P,T=e.zoomProps,_=e.displayMode;n&&!Array.isArray(n)&&(n=[n]);var S=n&&n.map((function(e){return new RegExp(e,"i")})),I=p()(Me),M=I.handles,z=(0,I.withModifiers)("productImagesContainer",_),k=Object(i.useMemo)((function(){return"videos"!==N?c.filter((function(e){return!e.imageLabel||!S.some((function(t){return t.test(e.imageLabel)}))})).map((function(e){return function(e){for(var t=1;tt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0;){var g=l.splice(0,2);o.push(g)}var M=c.concat(function(e){var a=e.listSetup,t=m()(u).handles;return a.map((function(e,a){return i.a.createElement("ul",{key:a,className:t.BiMarca__listContainer},e.map((function(e,a){return i.a.createElement("li",{key:a,className:t.BiMarca__Item},i.a.createElement(p.Link,{className:t.BiMarca__ItemLink,to:e.slug},i.a.createElement("img",{alt:"icono marca",src:e.imagen,className:t.BiMarca__ItemImage})))})))}))}({listSetup:o}));return i.a.createElement(_.a,{list:M},r)}g.schema={title:"Slider Multiple Marcas",description:"Configuracion de slider multiple de marcas",type:"object",properties:{marcas:{title:"Lista Marcas",type:"array",items:{properties:{imagen:{title:"Icono",type:"string",default:"",widget:{"ui:widget":"image-uploader"}},slug:{title:"Slug",type:"string",default:"",widget:{"ui:widget":"textarea"}}}}}}};a.default=g},5:function(e,a){e.exports=__RENDER_8_RUNTIME__},75:function(e,a,t){"use strict";t.r(a),function(e){var a=t(2);t.p=Object(a.getPublicPath)("panamericana.store-general-components@0.4.16");var n=Object(a.register)((function(){return t(103)}),e,"panamericana.store-general-components@0.4.16","panamericana.store-general-components@0.x","SliderMultipleMarcas");n.renderHotReload,n.setupHMR}.call(this,t(8)(e))},76:function(e,a,t){e.exports={BiMarca__listContainer:"panamericana-store-general-components-0-x-BiMarca__listContainer",BiMarca__Item:"panamericana-store-general-components-0-x-BiMarca__Item",BiMarca__ItemLink:"panamericana-store-general-components-0-x-BiMarca__ItemLink",BiMarca__ItemImage:"panamericana-store-general-components-0-x-BiMarca__ItemImage"}},9:function(e,a){e.exports=__RENDER_8_COMPONENTS__["vtex.list-context@0.x/useListContext"]}},[[75,"common"]]]);; (window.webpackJsonppanamericana_store_general_components_0_4_16=window.webpackJsonppanamericana_store_general_components_0_4_16||[]).push([["ChangeShowcaseColor"],{0:function(e,t){e.exports=React},1:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@1.x/useCssHandles"]},12:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(3),o=n(4),a=n.n(o),c=n(7);function i(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,i=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return c=e.done,e},e:function(e){i=!0,a=e},f:function(){try{c||null==n.return||n.return()}finally{if(i)throw a}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==d[1]?d[1]:{},c=new AbortController,i=null!==(r=n.timeout)&&void 0!==r?r:8e3,u=setTimeout((function(){return c.abort()}),i),e.prev=4,e.next=7,fetch(t,Object.assign(Object.assign({},n),{headers:Object.assign(Object.assign({},l),null!==(o=n.headers)&&void 0!==o?o:{}),signal:c.signal}));case 7:return s=e.sent,e.abrupt("return",s);case 11:if(e.prev=11,e.t0=e.catch(4),!(e.t0 instanceof DOMException&&"AbortError"===e.t0.name)){e.next=15;break}throw new Error("La petición ha superado el tiempo de espera (timeout)");case 15:throw e.t0;case 16:return e.prev=16,clearTimeout(u),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[4,11,16,19]])})));return function(t){return e.apply(this,arguments)}}(),f=function(){var e=Object(c.a)(a.a.mark((function e(t){var n,r,o,i,u,l,f=arguments;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=f.length>1&&void 0!==f[1]?f[1]:{},r=f.length>2&&void 0!==f[2]?f[2]:3e5,o=d(t,n),i=Date.now(),!s.has(o)){e.next=11;break}if(u=s.get(o),!(i=o[1].expiry&&s.delete(a)}}catch(e){n.e(e)}finally{n.f()}}),3e5);var b=function(){var e=Object(c.a)(a.a.mark((function e(t){var n,r,o=arguments;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:{},e.prev=1,e.next=4,f(t,n);case 4:return r=e.sent,e.abrupt("return",r);case 8:throw e.prev=8,e.t0=e.catch(1),e.t0 instanceof Error?console.error("Fetch error: ".concat(e.t0.message)):console.error("Fetch error: ocurrió un error desconocido"),e.t0;case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}()},13:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-context@0.x/useProduct"]},19:function(e,t){e.exports=regeneratorRuntime},48:function(e,t,n){"use strict";n.r(t),function(e){var t=n(2);n.p=Object(t.getPublicPath)("panamericana.store-general-components@0.4.16");var r=Object(t.register)((function(){return n(86)}),e,"panamericana.store-general-components@0.4.16","panamericana.store-general-components@0.x","ChangeShowcaseColor");r.renderHotReload,r.setupHMR}.call(this,n(8)(e))},6:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.device-detector@0.x/useDevice"]},86:function(e,t,n){"use strict";n.r(t);var r=n(1),o=n.n(r),a=n(15),c=n(3),i=n(0),u={PRICES:{SAVINGS:'span[class*="savings"]',LIST_PRICE:'span[class*="listPriceRange"],span[class*="listPriceValue"]',SELLING_PRICE:'span[class*="sellingPriceRange"],span[class*="sellingPriceValue"]'},BUTTONS:{CHECKOUT:'div[class*="active--checkout"] button',ADD_TO_CART:'div[class*="active--add"] button',QUANTITY_SELECTOR:{ADD_TO_CART:'div[class*="flexColChild--addToCart-and-quantitySelector__buttons"]:first-child button',BUY_NOW:'div[class*="flexColChild--addToCart-and-quantitySelector__buttons"]:last-child button'},QUiCK_VIEW:{ADD_TO_CART:'div[class*="flexColChild--addToCartBtn"]:first-child button',BUY_NOW:'div[class*="flexColChild--addToCartBtn"]:last-child button'}}},l=function(e,t){return Object.entries(t).map((function(t){var n=Object(c.a)(t,2),r=n[0],o=n[1];return{selector:e,prop:r,value:o}}))},s=function(e){var t=e.styles,n=e.isValid,r=e.children,o=Object(i.useRef)(null);return Object(i.useEffect)((function(){var e,r,c,i,s,d,v,f,b,p,h,g,_,O,T,C,m,w,y,E;if(o.current){if(n)[{selector:u.PRICES.SAVINGS,prop:"background-color",value:null===(e=t.productSavingsElement)||void 0===e?void 0:e.color},{selector:u.PRICES.LIST_PRICE,prop:"color",value:null===(r=t.productListPrice)||void 0===r?void 0:r.color},{selector:u.PRICES.SELLING_PRICE,prop:"color",value:null===(c=t.productSellingPrice)||void 0===c?void 0:c.color}].concat(Object(a.a)(l(u.BUTTONS.CHECKOUT,{"background-color":null===(i=t.buttonBuyNow)||void 0===i?void 0:i.background,border:null===(s=t.buttonBuyNow)||void 0===s?void 0:s.border,color:null===(d=t.buttonBuyNow)||void 0===d?void 0:d.color})),Object(a.a)(l(u.BUTTONS.ADD_TO_CART,{"background-color":null===(v=t.buttonAddToCart)||void 0===v?void 0:v.background,border:null===(f=t.buttonAddToCart)||void 0===f?void 0:f.border})),Object(a.a)(l(u.BUTTONS.QUANTITY_SELECTOR.ADD_TO_CART,{border:null===(b=t.buttonAddToCart)||void 0===b?void 0:b.border,color:null===(p=t.buttonAddToCart)||void 0===p?void 0:p.color,"background-color":null===(h=t.buttonAddToCart)||void 0===h?void 0:h.background})),Object(a.a)(l(u.BUTTONS.QUANTITY_SELECTOR.BUY_NOW,{"background-color":null===(g=t.buttonBuyNow)||void 0===g?void 0:g.background,border:null===(_=t.buttonBuyNow)||void 0===_?void 0:_.border,color:null===(O=t.buttonBuyNow)||void 0===O?void 0:O.color})),Object(a.a)(l(u.BUTTONS.QUiCK_VIEW.ADD_TO_CART,{"background-color":null===(T=t.buttonAddToCart)||void 0===T?void 0:T.background,border:null===(C=t.buttonAddToCart)||void 0===C?void 0:C.border,color:null===(m=t.buttonAddToCart)||void 0===m?void 0:m.color})),Object(a.a)(l(u.BUTTONS.QUiCK_VIEW.BUY_NOW,{"background-color":null===(w=t.buttonBuyNow)||void 0===w?void 0:w.background,border:null===(y=t.buttonBuyNow)||void 0===y?void 0:y.border,color:null===(E=t.buttonBuyNow)||void 0===E?void 0:E.color}))).filter((function(e){return void 0!==e.value})).forEach((function(e){e.value&&function(e,t,n){var r,a=null===(r=o.current)||void 0===r?void 0:r.querySelector(e);a&&a.style.setProperty(t,n,"important")}(e.selector,e.prop,e.value)}))}}),[t,n]),React.createElement("div",{className:"changeShowColor__container",ref:o},r)},d=n(4),v=n.n(d),f=n(7),b=n(12),p=n(6),h=n.n(p),g=n(13),_=n.n(g),O=function(e,t){var n=_()().product,r=h()().isMobile,o=Object(i.useState)({}),a=Object(c.a)(o,2),u=a[0],l=a[1],s=Object(i.useState)(!1),d=Object(c.a)(s,2),v=d[0],f=d[1],b=function(e){return e.toLowerCase().trim().replace(/^\/+/,"").replace(/\/+$/,"").replace(/\/+/g,"/")};return Object(i.useEffect)((function(){if(n&&!t&&0!==e.length){var o=n.categories,a=n.productClusters,c=e.find((function(e){if(r&&!1===e.isActiveOnMobile)return!1;var t,n,c,i,u,l=e.categories.length>0&&(t=o,n=e.categories,!(!(null==t?void 0:t.length)||!(null==n?void 0:n.length))&&n.some((function(e){var n=b(e);return t.some((function(e){return b(e).includes(n)}))}))),s=null==a?void 0:a.some((function(t){return e.collections.includes(t.id)}));return!(!l&&!s)&&("dates"===e.activationType?e.activationDateRange&&(c=e.activationDateRange.start,i=e.activationDateRange.end,(u=new Date)>=new Date(c)&&u<=new Date(i)):"manual"===e.activationType&&e.manualActivation)}));l(c||{}),f(!!c)}}),[n,e,t,r]),{styles:u,isValid:v}},T=["changeShowColor__container"],C=function(e){var t=e.children,n=o()(T).handles,r=function(){var e=Object(i.useState)([]),t=Object(c.a)(e,2),n=t[0],r=t[1],o=Object(i.useState)(!0),a=Object(c.a)(o,2),u=a[0],l=a[1];return Object(i.useEffect)((function(){(function(){var e=Object(f.a)(v.a.mark((function e(){var t;return v.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(b.a)("/_v/showcase-color");case 3:t=e.sent,r(t.showcaseColor),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.error("Error fetching showcase color configs:",e.t0);case 10:return e.prev=10,l(!1),e.finish(10);case 13:case"end":return e.stop()}}),e,null,[[0,7,10,13]])})));return function(){return e.apply(this,arguments)}})()()}),[]),{conditions:n,isLoading:u}}(),a=r.conditions,u=r.isLoading,l=O(a,u),d=l.styles,p=l.isValid;return u?React.createElement("div",{className:n.changeShowColor__container},t):React.createElement(s,{styles:d,isValid:p},t)};t.default=C}},[[48,"common"]]]);; (window.webpackJsonppanamericana_store_general_components_0_4_16=window.webpackJsonppanamericana_store_general_components_0_4_16||[]).push([["ElementsWrapper"],{0:function(e,n){e.exports=React},112:function(e,n,a){"use strict";a.r(n);var r=a(0),t=a.n(r);n.default=function(e){var n=e.children;return t.a.createElement(t.a.Fragment,null,n)}},55:function(e,n,a){"use strict";a.r(n),function(e){var n=a(2);a.p=Object(n.getPublicPath)("panamericana.store-general-components@0.4.16");var r=Object(n.register)((function(){return a(112)}),e,"panamericana.store-general-components@0.4.16","panamericana.store-general-components@0.x","ElementsWrapper");r.renderHotReload,r.setupHMR}.call(this,a(8)(e))}},[[55,"common"]]]);; (window.webpackJsonppanamericana_store_general_components_0_4_16=window.webpackJsonppanamericana_store_general_components_0_4_16||[]).push([["SpecialPrice"],{0:function(e,t){e.exports=React},1:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.css-handles@1.x/useCssHandles"]},105:function(e,t,n){"use strict";n.r(t);var r=n(4),a=n.n(r),c=n(7),o=n(3),i=n(0),l=n.n(i),s=n(1),u=n.n(s),m=n(24),p=n.n(m),d=n(22),_=n.n(d),f=n(13),v=n.n(f),x=n(14),E=n.n(x),h=n(12),b=n(34),g=n.n(b),y=n(21),P=n.n(y),w=n(35),N=n.n(w),O=n(36),R=n.n(O),j=n(5),C=n(11),M=n.n(C),S=["specialPrice__modal--container","specialPrice__modal--content","specialPrice__modal--title","specialPrice__modal--content","specialPrice__modal--image","specialPrice__modal--link","specialPrice__modal--closeButton","specialPrice__modal--footer"],T=function(e){var t=e.modalContent,n=e.modalImageUrl,r=e.modalLink,a=e.modalTitle,c=e.modalStyle,o=e.buttonClose,i=e.buttonViewMore,s=u()(S).handles;return l.a.createElement(P.a,null,l.a.createElement("div",{className:"".concat(s["specialPrice__modal--container"]),style:c.styles||void 0},l.a.createElement(R.a,null),l.a.createElement(N.a,null,l.a.createElement("div",{className:"".concat(s["specialPrice__modal--title"]," flex justify-center items-center")},l.a.createElement(M.a,{text:a.content})),l.a.createElement("div",{className:"".concat(s["specialPrice__modal--image"]," flex justify-center items-center")},l.a.createElement(E.a,{src:n.content})),l.a.createElement("div",{className:"".concat(s["specialPrice__modal--content"]," flex justify-center items-start overflow-y-auto"),style:{maxHeight:"250px"}},l.a.createElement(M.a,{text:t.content})),l.a.createElement("div",{className:"".concat(s["specialPrice__modal--footer"]," flex flex-row flex-wrap justify-center items-center")},l.a.createElement("div",{className:"".concat(s["specialPrice__modal--link"])},l.a.createElement(j.Link,{to:r},i.content)),l.a.createElement("div",{className:"".concat(s["specialPrice__modal--closeButton"])},l.a.createElement(g.a,{label:o.content}))))))},D=["specialPrice__container","specialPrice__image","specialPrice__image--bank","specialPrice__image--info","specialPrice__price"],k=function(){var e,t,n,r,s,m=u()(D).handles,d=v()(),f=d.product,x=d.selectedItem,b=Object(i.useState)([]),g=Object(o.a)(b,2),y=g[0],P=g[1],w=null!==(e=null==f?void 0:f.productClusters)&&void 0!==e?e:[],N=null===(t=null==x?void 0:x.sellers[0])||void 0===t?void 0:t.commertialOffer,O=Number(null===(r=null===(n=null==x?void 0:x.sellers[0])||void 0===n?void 0:n.commertialOffer)||void 0===r?void 0:r.AvailableQuantity)>0,R=new Date;Object(i.useEffect)((function(){(function(){var e=Object(c.a)(a.a.mark((function e(){var t;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(h.a)("/_v/price-configs");case 3:t=e.sent,P(t.priceConfigs),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),console.error("Fetch error: ".concat(e.t0.message)),P([]);case 11:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}})()()}),[]);var j=null==y?void 0:y.find((function(e){if(!w.some((function(t){return t.id===e.collectionId})))return!1;var t=e.activationConfig;if("manual"===t.activationType)return!0===t.manualActivation;var n=t.startDate?new Date(t.startDate):null,r=t.endDate?new Date(t.endDate):null;return(!n||R>=n)&&(!r||R<=r)}));if(!j||!O)return l.a.createElement(l.a.Fragment,null);var C=null!==(s=j?"sellingPrice"===j.whereApply?null==N?void 0:N.Price:null==N?void 0:N.ListPrice:null==N?void 0:N.Price)&&void 0!==s?s:0,M=Math.floor(C*(1-j.percentage/100));return l.a.createElement(_.a,null,l.a.createElement("div",{className:"".concat(m.specialPrice__container," flex flex-row items-center justify-start mv3 pl3 relative z-2 pointer")},l.a.createElement("div",{className:"".concat(m.specialPrice__image," ").concat(m["specialPrice__image--bank"])},l.a.createElement(E.a,{src:j.cardImage,width:"2.5rem",minWidth:"2.5rem"})),l.a.createElement("div",{className:"".concat(m.specialPrice__image," ").concat(m["specialPrice__image--info"])},l.a.createElement(E.a,{src:"https://panamericana.vteximg.com.br/arquivos/icon-informacion-tercer-precio-panamericana-08.svg",width:"1.5rem",minWidth:"1.5rem"})),l.a.createElement("div",{className:"".concat(m.specialPrice__price)},l.a.createElement(p.a,{value:M})),l.a.createElement(T,{modalStyle:j.modalStyle,modalContent:j.modalContent,modalImageUrl:j.modalImageUrl,modalLink:j.modalUrl,modalTitle:j.modalTitle,buttonClose:j.buttonClose,buttonViewMore:j.buttonViewMore})))};t.default=k},11:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.rich-text@0.x/index"]},12:function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var r=n(3),a=n(4),c=n.n(a),o=n(7);function i(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,o=!0,i=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){i=!0,c=e},f:function(){try{o||null==n.return||n.return()}finally{if(i)throw c}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==m[1]?m[1]:{},o=new AbortController,i=null!==(r=n.timeout)&&void 0!==r?r:8e3,l=setTimeout((function(){return o.abort()}),i),e.prev=4,e.next=7,fetch(t,Object.assign(Object.assign({},n),{headers:Object.assign(Object.assign({},s),null!==(a=n.headers)&&void 0!==a?a:{}),signal:o.signal}));case 7:return u=e.sent,e.abrupt("return",u);case 11:if(e.prev=11,e.t0=e.catch(4),!(e.t0 instanceof DOMException&&"AbortError"===e.t0.name)){e.next=15;break}throw new Error("La petición ha superado el tiempo de espera (timeout)");case 15:throw e.t0;case 16:return e.prev=16,clearTimeout(l),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[4,11,16,19]])})));return function(t){return e.apply(this,arguments)}}(),d=function(){var e=Object(o.a)(c.a.mark((function e(t){var n,r,a,i,l,s,d=arguments;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=d.length>1&&void 0!==d[1]?d[1]:{},r=d.length>2&&void 0!==d[2]?d[2]:3e5,a=m(t,n),i=Date.now(),!u.has(a)){e.next=11;break}if(l=u.get(a),!(i=a[1].expiry&&u.delete(c)}}catch(e){n.e(e)}finally{n.f()}}),3e5);var _=function(){var e=Object(o.a)(c.a.mark((function e(t){var n,r,a=arguments;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},e.prev=1,e.next=4,d(t,n);case 4:return r=e.sent,e.abrupt("return",r);case 8:throw e.prev=8,e.t0=e.catch(1),e.t0 instanceof Error?console.error("Fetch error: ".concat(e.t0.message)):console.error("Fetch error: ocurrió un error desconocido"),e.t0;case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}()},13:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-context@0.x/useProduct"]},14:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.store-image@0.x/Image"]},19:function(e,t){e.exports=regeneratorRuntime},21:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.modal-layout@0.x/Modal"]},22:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.modal-layout@0.x/ModalTrigger"]},24:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.formatted-price@0.x/FormattedPrice"]},34:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.modal-layout@0.x/CloseButton"]},35:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.modal-layout@0.x/ModalContent"]},36:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.modal-layout@0.x/ModalHeader"]},5:function(e,t){e.exports=__RENDER_8_RUNTIME__},78:function(e,t,n){"use strict";n.r(t),function(e){var t=n(2);n.p=Object(t.getPublicPath)("panamericana.store-general-components@0.4.16");var r=Object(t.register)((function(){return n(105)}),e,"panamericana.store-general-components@0.4.16","panamericana.store-general-components@0.x","SpecialPrice");r.renderHotReload,r.setupHMR}.call(this,n(8)(e))}},[[78,"common"]]]);; (window.webpackJsonppanamericana_store_general_components_0_4_16=window.webpackJsonppanamericana_store_general_components_0_4_16||[]).push([["HidePercentages"],{0:function(e,t){e.exports=React},113:function(e,t,r){"use strict";r.r(t);var n=r(4),a=r.n(n),o=r(7),c=r(3),i=r(0),u=r.n(i),s=r(13),l=r.n(s),f=r(12),p=function(e){var t=e.children,r=l()().selectedItem,n=Object(i.useState)({minimumPercentage:0,maximumPercentage:0,startDate:"",endDate:""}),s=Object(c.a)(n,2),p=s[0],m=s[1];Object(i.useEffect)((function(){(function(){var e=Object(o.a)(a.a.mark((function e(){var t;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(f.a)("/_v/percentage-configuration");case 3:t=e.sent,m(t.percentageConfiguration),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),console.error("Error fetching percentage configuration",e.t0.message),m({minimumPercentage:0,maximumPercentage:0,startDate:"",endDate:""});case 11:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}})()()}),[]);var v=null==r?void 0:r.sellers[0].commertialOffer,d=Math.floor((Number(null==v?void 0:v.ListPrice)-Number(null==v?void 0:v.Price))/Number(null==v?void 0:v.ListPrice)*100),h=new Date,b=new Date(p.startDate),g=new Date(p.endDate),w=h>=b&&h<=g;return(d<=p.minimumPercentage||d>=p.maximumPercentage)&&w?u.a.createElement(u.a.Fragment,null):u.a.createElement("div",null,t)};t.default=p},12:function(e,t,r){"use strict";r.d(t,"a",(function(){return v}));var n=r(3),a=r(4),o=r.n(a),c=r(7);function i(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,i=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return c=e.done,e},e:function(e){i=!0,o=e},f:function(){try{c||null==r.return||r.return()}finally{if(i)throw o}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==f[1]?f[1]:{},c=new AbortController,i=null!==(n=r.timeout)&&void 0!==n?n:8e3,u=setTimeout((function(){return c.abort()}),i),e.prev=4,e.next=7,fetch(t,Object.assign(Object.assign({},r),{headers:Object.assign(Object.assign({},s),null!==(a=r.headers)&&void 0!==a?a:{}),signal:c.signal}));case 7:return l=e.sent,e.abrupt("return",l);case 11:if(e.prev=11,e.t0=e.catch(4),!(e.t0 instanceof DOMException&&"AbortError"===e.t0.name)){e.next=15;break}throw new Error("La petición ha superado el tiempo de espera (timeout)");case 15:throw e.t0;case 16:return e.prev=16,clearTimeout(u),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[4,11,16,19]])})));return function(t){return e.apply(this,arguments)}}(),m=function(){var e=Object(c.a)(o.a.mark((function e(t){var r,n,a,i,u,s,m=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=m.length>1&&void 0!==m[1]?m[1]:{},n=m.length>2&&void 0!==m[2]?m[2]:3e5,a=f(t,r),i=Date.now(),!l.has(a)){e.next=11;break}if(u=l.get(a),!(i=a[1].expiry&&l.delete(o)}}catch(e){r.e(e)}finally{r.f()}}),3e5);var v=function(){var e=Object(c.a)(o.a.mark((function e(t){var r,n,a=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:{},e.prev=1,e.next=4,m(t,r);case 4:return n=e.sent,e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e.catch(1),e.t0 instanceof Error?console.error("Fetch error: ".concat(e.t0.message)):console.error("Fetch error: ocurrió un error desconocido"),e.t0;case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}()},13:function(e,t){e.exports=__RENDER_8_COMPONENTS__["vtex.product-context@0.x/useProduct"]},19:function(e,t){e.exports=regeneratorRuntime},60:function(e,t,r){"use strict";r.r(t),function(e){var t=r(2);r.p=Object(t.getPublicPath)("panamericana.store-general-components@0.4.16");var n=Object(t.register)((function(){return r(113)}),e,"panamericana.store-general-components@0.4.16","panamericana.store-general-components@0.x","HidePercentages");n.renderHotReload,n.setupHMR}.call(this,r(8)(e))}},[[60,"common"]]]);; !function(e){function t(t){for(var n,o,u=t[0],c=t[1],l=t[2],s=0,d=[];s=0||(o[r]=e[r]);return o}},32:function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},33:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},6:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))},7:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r