(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[2929,3583],{28077:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},30361:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var o=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==o||"symbol"!=o&&t.test(e))&&e>-1&&e%1==0&&e{var o=n(76001),s=n(38816)((function(e,t){return null==e?{}:o(e,t)}));e.exports=s},49326:(e,t,n)=>{var o=n(31769),s=n(72428),i=n(56449),a=n(30361),l=n(30294),r=n(77797);e.exports=function(e,t,n){for(var c=-1,d=(t=o(t,e)).length,u=!1;++c{"use strict";n.d(t,{A:()=>K,a:()=>K});var o=n(58168),s=n(73620),i=n(89379),a=n(96540),l=n(32485),r=n.n(l),c=n(27592),d=n(1246),u=n(95997),h=n(80045),p=n(28596),f=n(43055),m=n(85652),v=n(3959),b=n(69523),_=n(93225),y=n(81023),g=n(83611);const A=e=>window.location.href===e,E=["innerRef","type"];var w=e=>{class t extends a.Component{constructor(e){super(e);const{isOpen:t,open:n}=this.props;this.state={isVisible:n||t||!1,isClosing:!1},this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.closeModal=this.closeModal.bind(this),this.navigation=this.navigation.bind(this),this.hideTopbar=this.hideTopbar.bind(this),this.showTopbar=this.showTopbar.bind(this)}componentDidMount(){const{url:e=""}=this.props;var t;e&&(t=this.navigation,"function"==typeof window.history.pushState&&window.addEventListener("popstate",t)),this.handleOpen()}UNSAFE_componentWillReceiveProps(e){let{open:t,isOpen:n,onOpen:o}=e;const{isVisible:s}=this.state,i=t||n||!1;s!==i&&(i?("function"==typeof o&&o(),this.setState({isVisible:!0},this.handleOpen)):this.handleClose())}componentWillUnmount(){const{url:e=""}=this.props;var t;e&&(t=this.navigation,"function"==typeof window.history.pushState&&window.removeEventListener("popstate",t)),this.backEventSubscriptionId&&this.showTopbar({subscriptionIds:this.backEventSubscriptionId})}handleOpen(){const{isVisible:e}=this.state,{url:t="",title:n}=this.props;e?(this.backEventSubscriptionId=this.hideTopbar({onBack:this.handleClose}),t&&((e,t)=>{A(e)||("function"==typeof window.history.pushState?window.history.pushState(void 0,t,e):window.location=e)})(t,n)):t&&(this.showTopbar({subscriptionIds:this.backEventSubscriptionId}),(e=>{A(e)&&window.history.back()})(t))}handleClose(e){const{onClose:t}=this.props;e&&(e.preventDefault(),e.persist&&e.persist()),this.closeModal((()=>{"function"==typeof t&&t(e),this.handleOpen()}))}closeModal(e){this.setState({isClosing:!0}),this.showTopbar({subscriptionIds:this.backEventSubscriptionId}),setTimeout((()=>{this.setState({isVisible:!1,isClosing:!1},e)}),180)}navigation(){const{url:e=""}=this.props,{isVisible:t}=this.state;A(e)?this.handleOpen():t&&this.handleClose()}hideTopbar(e){const{type:t}=this.props;return"full"===t?(0,f.Gm)(e):(0,f.un)(e)}showTopbar(e){const{type:t}=this.props;return"full"===t?(0,f.xF)(e):(0,f.Z2)(e)}render(){const{isVisible:t,isClosing:n}=this.state,s=this.props,{innerRef:i,type:l="small"}=s,r=(0,h.A)(s,E);return(t||n)&&a.createElement(e,(0,o.A)({ref:i,handleClose:this.handleClose},this.state,{type:l},r))}}return a.forwardRef(((e,n)=>{const s=(0,p.Bi)(e.id);return a.createElement(t,(0,o.A)({},e,{id:s,innerRef:n}))}))};const C="andes-modal",S={small:40,large:48,full:56,card:40},x={small:{initial:16,final:32},large:{initial:16,final:48},card:{initial:16,final:24},full:{initial:16,final:24}},R=(e,t,n)=>{e&&null!=t&&t.classList&&n&&t.classList[e](n)},L=e=>e.scrollHeight>e.clientHeight,N="".concat(C,"__actions");var O=a.forwardRef(((e,t)=>{let{children:n,fixed:o=!1}=e;const s=r()(N,{["".concat(N,"--fixed")]:o});return a.createElement("div",{className:s,ref:t},n)})),B={module:"@andes/modal",locale:"en-US",translations:{"andes-modalCerrar":[null,"Close"]}},T={module:"@andes/modal",locale:"es-AR",translations:{"andes-modalCerrar":[null,"Cerrar"]}},H={module:"@andes/modal",locale:"pt-BR",translations:{"andes-modalCerrar":[null,"Fechar"]}};const D="".concat(C,"__close-button");var U=e=>{let{closeButtonSrLabel:t,onClose:n,color:o="rgba(0,0,0,0.55)",closeUrl:i=""}=e;const a=(0,p.UO)(p.Ri,B,T,H),l=e=>{"function"==typeof n&&n(e)},r=i?"a":"button";return(0,s.A)(r,{className:D,"aria-label":t||a.pgettext(C,"Cerrar"),onClick:l,onKeyDown:e=>{switch(e.code){case y.Fm:case y.t6:e.preventDefault(),l(e)}},href:i,type:i?void 0:"button"},void 0,(0,s.A)(g.A,{color:o}))};const k="".concat(C,"__header");var I=a.forwardRef(((e,t)=>{let{children:n,onClose:o,centered:i=!1,showCloseButton:l=!0,closeButtonSrLabel:c,className:d,closeUrl:u}=e;const h=r()(k,d),p=r()("".concat(k,"__contents"),{["".concat(k,"__contents--centered")]:i});return a.createElement("div",{className:h,ref:t},(0,s.A)("div",{className:p},void 0,n),l&&(0,s.A)(U,{onClose:o,closeButtonSrLabel:c,closeUrl:u}))}));const F="".concat(C,"__title");var M=e=>{let{children:t,id:n}=e;return(0,s.A)("span",{id:"".concat(n,"-title"),role:"heading","aria-level":1,className:F},void 0,t)};const V="".concat(C,"__content");var q=a.forwardRef(((e,t)=>{let{children:n}=e;return a.createElement("div",{className:V,ref:t},n)}));var K=w(function(){const e=(0,a.forwardRef)(((e,t)=>{var n,l;const{"aria-label":h,actions:f,children:y,className:g,closable:A=!0,closeButtonLabel:E,closeButtonSrLabel:w,closeUrl:N="",container:B,dialog:T,focusScope:H=!0,handleClose:D,id:k,isClosing:F,isVisible:V,maxHeight:K,maxWidth:P,media:W,srLabel:Z,title:j,type:G="small"}=e,Y=(0,a.useRef)(null),$=(0,a.useRef)(null),z=(0,a.useRef)(null),J=(0,a.useRef)(null),Q=(0,a.useRef)(null),{device:X}=(0,a.useContext)(p.Ri),ee=(0,c.A)(X),te=A&&!T;(0,d.A)();const ne=(0,a.useCallback)((()=>{const e=null==Q?void 0:Q.current;null!=f&&f.fixed&&e&&null!=J&&J.current&&L(null==J?void 0:J.current)&&R("add",e,"".concat(C,"__actions--border"))}),[f]);(0,a.useEffect)((()=>{setTimeout(ne,0)}),[ne]);const{overlayProps:oe}=(0,_.e)({onClose:D,isOpen:V||F,isKeyboardDismissDisabled:!te,isDismissable:te},Y),{dialogProps:se}=(0,b.s)((0,i.A)((0,i.A)({},e),{},{"aria-label":Z||h,"aria-labelledby":Z||h||"string"!=typeof j?void 0:"".concat(k,"-title")}),Y);(0,u.Ay)({isOpen:V&&!F,portalSelector:".".concat(C,"__portal"),portalContainer:B});const ie="card"!==G&&te,ae="card"===G&&te,le=r()(C,g,{["".concat(C,"--").concat(G)]:G,["".concat(C,"--asset")]:null==W?void 0:W.asset,["".concat(C,"--fixed-actions")]:null==f?void 0:f.fixed,["".concat(C,"--closing")]:F}),re=r()("".concat(C,"__overlay"),{["".concat(C,"__overlay--").concat(G)]:G,["".concat(C,"__overlay--closing")]:F,["".concat(C,"__overlay--full-webview-ios")]:"full"===G&&ee}),ce={maxHeight:K?"min(100%, ".concat(K,"px)"):"100%",maxWidth:P?"min(100%, ".concat(P,"px)"):"100%"},de={onClose:D,closeButtonSrLabel:w||E,closeUrl:N};return(0,s.A)(v.ZL,{className:"".concat(C,"__portal"),container:B},void 0,a.createElement("div",{className:re,ref:t},a.createElement(m.n1,(0,o.A)({},H?{contain:!0}:{},{restoreFocus:!0,autoFocus:!0}),a.createElement("div",(0,o.A)({},oe,se,{className:le,style:ce,"data-ismodal":!0,"aria-modal":!0,ref:Y}),(0,s.A)("div",{tabIndex:0,className:"".concat(C,"__focus-retainer")}),ae&&(0,s.A)(U,{onClose:D,closeButtonSrLabel:w||E,color:"white",closeUrl:N}),(null==W?void 0:W.asset)?a.createElement(I,(0,o.A)({className:"".concat(C,"__header--secondary"),ref:$,showCloseButton:ie},de),j&&(n||(n=(0,s.A)(M,{id:k},void 0,j)))):null,a.createElement("div",{className:"".concat(C,"__scroll"),onScroll:()=>{((e,t,n,o)=>{let{secondaryHeaderRef:s,headerRef:i,contentRef:a,actionsRef:l}=e;const r=null==s?void 0:s.current,c=null==i?void 0:i.current,d=null==a?void 0:a.current,u=null==l?void 0:l.current;if(d&&L(d)){const{scrollTop:e}=d;if(r&&S[t]){const o=S[t];R(n?e<35?"remove":"add":c&&es&&u.classList.contains("padding");n?(requestAnimationFrame((()=>{u.style.paddingBottom="".concat(s,"px")})),setTimeout((()=>R("add",u,"padding")),80)):i&&(requestAnimationFrame((()=>{u.style.paddingBottom="".concat(o,"px")})),setTimeout((()=>R("remove",u,"padding")),80))}}}})({secondaryHeaderRef:$,headerRef:z,contentRef:J,actionsRef:Q},G,ie,f)},ref:J},(()=>{const e=null==W?void 0:W.asset;return j||e?a.createElement(I,(0,o.A)({ref:z,centered:!!e||"card"===G,showCloseButton:!e&&ie},de),e,j&&(l||(l=(0,s.A)(M,{id:k},void 0,j)))):null})(),y&&(0,s.A)(q,{},void 0,y),f&&a.createElement(O,{fixed:f.fixed,ref:Q},f.primary,f.secondary))))))}));return e.displayName="Modal",e}())},73170:(e,t,n)=>{var o=n(16547),s=n(31769),i=n(30361),a=n(23805),l=n(77797);e.exports=function(e,t,n,r){if(!a(e))return e;for(var c=-1,d=(t=s(t,e)).length,u=d-1,h=e;null!=h&&++c{var o=n(97420),s=n(80631);e.exports=function(e,t){return o(e,t,(function(t,n){return s(e,n)}))}},80631:(e,t,n)=>{var o=n(28077),s=n(49326);e.exports=function(e,t){return null!=e&&s(e,t,o)}},95997:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>c,Hv:()=>l,Sv:()=>a,m4:()=>r});var o=n(96540);var s=(e,t)=>-1!==e.indexOf(t);const i=["STYLE","SCRIPT"],a=e=>{var t,n;if("undefined"==typeof window||"undefined"==typeof document)return{bodyElements:[],portalElements:[]};const o=null!==(t=document)&&void 0!==t&&null!==(t=t.body)&&void 0!==t&&t.children?[].slice.call(document.body.children):[],s=null!==(n=document)&&void 0!==n&&n.querySelectorAll(e)?[].slice.call(document.querySelectorAll(e)):[];return{bodyElements:o.filter((e=>"true"!==e.getAttribute("aria-hidden")||!e.getAttribute("aria-hidden"))),portalElements:s}},l=e=>{let{outsideElements:t=[],portalContainer:n,portalElements:o=[]}=e;t.forEach((e=>{e&&(s(i,e.tagName)||o.length&&o.some((t=>t.isEqualNode(e)))||n&&e.contains(n)||e.setAttribute("aria-hidden","true"))}))},r=e=>{let{outsideElements:t=[]}=e;t.forEach((e=>{e&&(s(i,e.tagName)||e.getAttribute("aria-hidden")&&e.removeAttribute("aria-hidden"))}))},c=e=>{let{isOpen:t,portalSelector:n,portalContainer:s}=e;const[i,c]=(0,o.useState)([]),[d,u]=(0,o.useState)([]);(0,o.useEffect)((()=>{const{bodyElements:e,portalElements:t}=a(n);c(e),u(t)}),[n]),(0,o.useEffect)((()=>(t&&l({outsideElements:i,portalContainer:s,portalElements:d}),()=>{r({outsideElements:i})})),[t,s,i,d])}},97420:(e,t,n)=>{var o=n(47422),s=n(73170),i=n(31769);e.exports=function(e,t,n){for(var a=-1,l=t.length,r={};++a