/**
 * Skipped minification because the original files appears to be already minified.
 * Original file: /npm/@globusplus/widget@1.0.2/gp-currency-widget.iife.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
(function(Z){"use strict";var F,m,ce,W,se,ue,de,pe,q,X,j,P={},he=[],Re=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,B=Array.isArray;function M(e,t){for(var n in t)e[n]=t[n];return e}function $(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Le(e,t,n){var _,l,o,c={};for(o in t)o=="key"?_=t[o]:o=="ref"?l=t[o]:c[o]=t[o];if(arguments.length>2&&(c.children=arguments.length>3?F.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)c[o]===void 0&&(c[o]=e.defaultProps[o]);return H(e,c,_,l,null)}function H(e,t,n,_,l){var o={type:e,props:t,key:n,ref:_,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:l==null?++ce:l,__i:-1,__u:0};return l==null&&m.vnode!=null&&m.vnode(o),o}function J(e){return e.children}function G(e,t){this.props=e,this.context=t}function E(e,t){if(t==null)return e.__?E(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?E(e):null}function fe(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return fe(e)}}function ge(e){(!e.__d&&(e.__d=!0)&&W.push(e)&&!O.__r++||se!=m.debounceRendering)&&((se=m.debounceRendering)||ue)(O)}function O(){for(var e,t,n,_,l,o,c,s=1;W.length;)W.length>s&&W.sort(de),e=W.shift(),s=W.length,e.__d&&(n=void 0,_=void 0,l=(_=(t=e).__v).__e,o=[],c=[],t.__P&&((n=M({},_)).__v=_.__v+1,m.vnode&&m.vnode(n),ee(t.__P,n,_,t.__n,t.__P.namespaceURI,32&_.__u?[l]:null,o,l==null?E(_):l,!!(32&_.__u),c),n.__v=_.__v,n.__.__k[n.__i]=n,we(o,n,c),_.__e=_.__=null,n.__e!=l&&fe(n)));O.__r=0}function me(e,t,n,_,l,o,c,s,u,a,p){var r,h,d,y,k,b,f,g=_&&_.__k||he,I=t.length;for(u=Fe(n,t,g,u,I),r=0;r<I;r++)(d=n.__k[r])!=null&&(h=d.__i==-1?P:g[d.__i]||P,d.__i=r,b=ee(e,d,h,l,o,c,s,u,a,p),y=d.__e,d.ref&&h.ref!=d.ref&&(h.ref&&ne(h.ref,null,d),p.push(d.ref,d.__c||y,d)),k==null&&y!=null&&(k=y),(f=!!(4&d.__u))||h.__k===d.__k?u=ve(d,u,e,f):typeof d.type=="function"&&b!==void 0?u=b:y&&(u=y.nextSibling),d.__u&=-7);return n.__e=k,u}function Fe(e,t,n,_,l){var o,c,s,u,a,p=n.length,r=p,h=0;for(e.__k=new Array(l),o=0;o<l;o++)(c=t[o])!=null&&typeof c!="boolean"&&typeof c!="function"?(u=o+h,(c=e.__k[o]=typeof c=="string"||typeof c=="number"||typeof c=="bigint"||c.constructor==String?H(null,c,null,null,null):B(c)?H(J,{children:c},null,null,null):c.constructor==null&&c.__b>0?H(c.type,c.props,c.key,c.ref?c.ref:null,c.__v):c).__=e,c.__b=e.__b+1,s=null,(a=c.__i=Be(c,n,u,r))!=-1&&(r--,(s=n[a])&&(s.__u|=2)),s==null||s.__v==null?(a==-1&&(l>p?h--:l<p&&h++),typeof c.type!="function"&&(c.__u|=4)):a!=u&&(a==u-1?h--:a==u+1?h++:(a>u?h--:h++,c.__u|=4))):e.__k[o]=null;if(r)for(o=0;o<p;o++)(s=n[o])!=null&&(2&s.__u)==0&&(s.__e==_&&(_=E(s)),ke(s,s));return _}function ve(e,t,n,_){var l,o;if(typeof e.type=="function"){for(l=e.__k,o=0;l&&o<l.length;o++)l[o]&&(l[o].__=e,t=ve(l[o],t,n,_));return t}e.__e!=t&&(_&&(t&&e.type&&!t.parentNode&&(t=E(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Be(e,t,n,_){var l,o,c,s=e.key,u=e.type,a=t[n],p=a!=null&&(2&a.__u)==0;if(a===null&&e.key==null||p&&s==a.key&&u==a.type)return n;if(_>(p?1:0)){for(l=n-1,o=n+1;l>=0||o<t.length;)if((a=t[c=l>=0?l--:o++])!=null&&(2&a.__u)==0&&s==a.key&&u==a.type)return c}return-1}function ye(e,t,n){t[0]=="-"?e.setProperty(t,n==null?"":n):e[t]=n==null?"":typeof n!="number"||Re.test(t)?n:n+"px"}function V(e,t,n,_,l){var o,c;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof _=="string"&&(e.style.cssText=_=""),_)for(t in _)n&&t in n||ye(e.style,t,"");if(n)for(t in n)_&&n[t]==_[t]||ye(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(pe,"$1")),c=t.toLowerCase(),t=c in e||t=="onFocusOut"||t=="onFocusIn"?c.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?_?n.u=_.u:(n.u=q,e.addEventListener(t,o?j:X,o)):e.removeEventListener(t,o?j:X,o);else{if(l=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n==null?"":n;break e}catch(s){}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function be(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=q++;else if(t.t<n.u)return;return n(m.event?m.event(t):t)}}}function ee(e,t,n,_,l,o,c,s,u,a){var p,r,h,d,y,k,b,f,g,I,x,Y,S,L,C,A,U,N=t.type;if(t.constructor!=null)return null;128&n.__u&&(u=!!(32&n.__u),o=[s=t.__e=n.__e]),(p=m.__b)&&p(t);e:if(typeof N=="function")try{if(f=t.props,g="prototype"in N&&N.prototype.render,I=(p=N.contextType)&&_[p.__c],x=p?I?I.props.value:p.__:_,n.__c?b=(r=t.__c=n.__c).__=r.__E:(g?t.__c=r=new N(f,x):(t.__c=r=new G(f,x),r.constructor=N,r.render=Je),I&&I.sub(r),r.props=f,r.state||(r.state={}),r.context=x,r.__n=_,h=r.__d=!0,r.__h=[],r._sb=[]),g&&r.__s==null&&(r.__s=r.state),g&&N.getDerivedStateFromProps!=null&&(r.__s==r.state&&(r.__s=M({},r.__s)),M(r.__s,N.getDerivedStateFromProps(f,r.__s))),d=r.props,y=r.state,r.__v=t,h)g&&N.getDerivedStateFromProps==null&&r.componentWillMount!=null&&r.componentWillMount(),g&&r.componentDidMount!=null&&r.__h.push(r.componentDidMount);else{if(g&&N.getDerivedStateFromProps==null&&f!==d&&r.componentWillReceiveProps!=null&&r.componentWillReceiveProps(f,x),!r.__e&&r.shouldComponentUpdate!=null&&r.shouldComponentUpdate(f,r.__s,x)===!1||t.__v==n.__v){for(t.__v!=n.__v&&(r.props=f,r.state=r.__s,r.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(T){T&&(T.__=t)}),Y=0;Y<r._sb.length;Y++)r.__h.push(r._sb[Y]);r._sb=[],r.__h.length&&c.push(r);break e}r.componentWillUpdate!=null&&r.componentWillUpdate(f,r.__s,x),g&&r.componentDidUpdate!=null&&r.__h.push(function(){r.componentDidUpdate(d,y,k)})}if(r.context=x,r.props=f,r.__P=e,r.__e=!1,S=m.__r,L=0,g){for(r.state=r.__s,r.__d=!1,S&&S(t),p=r.render(r.props,r.state,r.context),C=0;C<r._sb.length;C++)r.__h.push(r._sb[C]);r._sb=[]}else do r.__d=!1,S&&S(t),p=r.render(r.props,r.state,r.context),r.state=r.__s;while(r.__d&&++L<25);r.state=r.__s,r.getChildContext!=null&&(_=M(M({},_),r.getChildContext())),g&&!h&&r.getSnapshotBeforeUpdate!=null&&(k=r.getSnapshotBeforeUpdate(d,y)),A=p,p!=null&&p.type===J&&p.key==null&&(A=Ae(p.props.children)),s=me(e,B(A)?A:[A],t,n,_,l,o,c,s,u,a),r.base=t.__e,t.__u&=-161,r.__h.length&&c.push(r),b&&(r.__E=r.__=null)}catch(T){if(t.__v=null,u||o!=null)if(T.then){for(t.__u|=u?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,t.__e=s}else{for(U=o.length;U--;)$(o[U]);te(t)}else t.__e=n.__e,t.__k=n.__k,T.then||te(t);m.__e(T,t,n)}else o==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):s=t.__e=He(n.__e,t,n,_,l,o,c,u,a);return(p=m.diffed)&&p(t),128&t.__u?void 0:s}function te(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(te)}function we(e,t,n){for(var _=0;_<n.length;_++)ne(n[_],n[++_],n[++_]);m.__c&&m.__c(t,e),e.some(function(l){try{e=l.__h,l.__h=[],e.some(function(o){o.call(l)})}catch(o){m.__e(o,l.__v)}})}function Ae(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:B(e)?e.map(Ae):M({},e)}function He(e,t,n,_,l,o,c,s,u){var a,p,r,h,d,y,k,b=n.props,f=t.props,g=t.type;if(g=="svg"?l="http://www.w3.org/2000/svg":g=="math"?l="http://www.w3.org/1998/Math/MathML":l||(l="http://www.w3.org/1999/xhtml"),o!=null){for(a=0;a<o.length;a++)if((d=o[a])&&"setAttribute"in d==!!g&&(g?d.localName==g:d.nodeType==3)){e=d,o[a]=null;break}}if(e==null){if(g==null)return document.createTextNode(f);e=document.createElementNS(l,g,f.is&&f),s&&(m.__m&&m.__m(t,o),s=!1),o=null}if(g==null)b===f||s&&e.data==f||(e.data=f);else{if(o=o&&F.call(e.childNodes),b=n.props||P,!s&&o!=null)for(b={},a=0;a<e.attributes.length;a++)b[(d=e.attributes[a]).name]=d.value;for(a in b)if(d=b[a],a!="children"){if(a=="dangerouslySetInnerHTML")r=d;else if(!(a in f)){if(a=="value"&&"defaultValue"in f||a=="checked"&&"defaultChecked"in f)continue;V(e,a,null,d,l)}}for(a in f)d=f[a],a=="children"?h=d:a=="dangerouslySetInnerHTML"?p=d:a=="value"?y=d:a=="checked"?k=d:s&&typeof d!="function"||b[a]===d||V(e,a,d,b[a],l);if(p)s||r&&(p.__html==r.__html||p.__html==e.innerHTML)||(e.innerHTML=p.__html),t.__k=[];else if(r&&(e.innerHTML=""),me(t.type=="template"?e.content:e,B(h)?h:[h],t,n,_,g=="foreignObject"?"http://www.w3.org/1999/xhtml":l,o,c,o?o[0]:n.__k&&E(n,0),s,u),o!=null)for(a=o.length;a--;)$(o[a]);s||(a="value",g=="progress"&&y==null?e.removeAttribute("value"):y!=null&&(y!==e[a]||g=="progress"&&!y||g=="option"&&y!=b[a])&&V(e,a,y,b[a],l),a="checked",k!=null&&k!=e[a]&&V(e,a,k,b[a],l))}return e}function ne(e,t,n){try{if(typeof e=="function"){var _=typeof e.__u=="function";_&&e.__u(),_&&t==null||(e.__u=e(t))}else e.current=t}catch(l){m.__e(l,n)}}function ke(e,t,n){var _,l;if(m.unmount&&m.unmount(e),(_=e.ref)&&(_.current&&_.current!=e.__e||ne(_,null,t)),(_=e.__c)!=null){if(_.componentWillUnmount)try{_.componentWillUnmount()}catch(o){m.__e(o,t)}_.base=_.__P=null}if(_=e.__k)for(l=0;l<_.length;l++)_[l]&&ke(_[l],t,n||typeof e.type!="function");n||$(e.__e),e.__c=e.__=e.__e=void 0}function Je(e,t,n){return this.constructor(e,n)}function Ge(e,t,n){var _,l,o,c;t==document&&(t=document.documentElement),m.__&&m.__(e,t),l=(_=!1)?null:t.__k,o=[],c=[],ee(t,e=t.__k=Le(J,null,[e]),l||P,P,t.namespaceURI,l?null:t.firstChild?F.call(t.childNodes):null,o,l?l.__e:t.firstChild,_,c),we(o,e,c)}F=he.slice,m={__e:function(e,t,n,_){for(var l,o,c;t=t.__;)if((l=t.__c)&&!l.__)try{if((o=l.constructor)&&o.getDerivedStateFromError!=null&&(l.setState(o.getDerivedStateFromError(e)),c=l.__d),l.componentDidCatch!=null&&(l.componentDidCatch(e,_||{}),c=l.__d),c)return l.__E=l}catch(s){e=s}throw e}},ce=0,G.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=M({},this.state),typeof e=="function"&&(e=e(M({},n),this.props)),e&&M(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),ge(this))},G.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ge(this))},G.prototype.render=J,W=[],ue=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,de=function(e,t){return e.__v.__b-t.__v.__b},O.__r=0,pe=/(PointerCapture)$|Capture$/i,q=0,X=be(!1),j=be(!0);var Oe=0;function i(e,t,n,_,l,o){t||(t={});var c,s,u=t;if("ref"in u)for(s in u={},t)s=="ref"?c=t[s]:u[s]=t[s];var a={type:e,props:u,key:n,ref:c,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Oe,__i:-1,__u:0,__source:l,__self:o};if(typeof e=="function"&&(c=e.defaultProps))for(s in c)u[s]===void 0&&(u[s]=c[s]);return m.vnode&&m.vnode(a),a}var D,v,re,Ne,_e=0,Ie=[],w=m,xe=w.__b,Me=w.__r,Ue=w.diffed,Se=w.__c,We=w.unmount,Ye=w.__;function Ce(e,t){w.__h&&w.__h(v,e,_e||t),_e=0;var n=v.__H||(v.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function R(e){return _e=1,Ve(Te,e)}function Ve(e,t,n){var _=Ce(D++,2);if(_.t=e,!_.__c&&(_.__=[Te(void 0,t),function(s){var u=_.__N?_.__N[0]:_.__[0],a=_.t(u,s);u!==a&&(_.__N=[a,_.__[1]],_.__c.setState({}))}],_.__c=v,!v.__f)){var l=function(s,u,a){if(!_.__c.__H)return!0;var p=_.__c.__H.__.filter(function(h){return!!h.__c});if(p.every(function(h){return!h.__N}))return!o||o.call(this,s,u,a);var r=_.__c.props!==s;return p.forEach(function(h){if(h.__N){var d=h.__[0];h.__=h.__N,h.__N=void 0,d!==h.__[0]&&(r=!0)}}),o&&o.call(this,s,u,a)||r};v.__f=!0;var o=v.shouldComponentUpdate,c=v.componentWillUpdate;v.componentWillUpdate=function(s,u,a){if(this.__e){var p=o;o=void 0,l(s,u,a),o=p}c&&c.call(this,s,u,a)},v.shouldComponentUpdate=l}return _.__N||_.__}function De(e,t){var n=Ce(D++,3);!w.__s&&Ke(n.__H,t)&&(n.__=e,n.u=t,v.__H.__h.push(n))}function ze(){for(var e;e=Ie.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(z),e.__H.__h.forEach(oe),e.__H.__h=[]}catch(t){e.__H.__h=[],w.__e(t,e.__v)}}w.__b=function(e){v=null,xe&&xe(e)},w.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ye&&Ye(e,t)},w.__r=function(e){Me&&Me(e),D=0;var t=(v=e.__c).__H;t&&(re===v?(t.__h=[],v.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(z),t.__h.forEach(oe),t.__h=[],D=0)),re=v},w.diffed=function(e){Ue&&Ue(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ie.push(t)!==1&&Ne===w.requestAnimationFrame||((Ne=w.requestAnimationFrame)||Qe)(ze)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),re=v=null},w.__c=function(e,t){t.some(function(n){try{n.__h.forEach(z),n.__h=n.__h.filter(function(_){return!_.__||oe(_)})}catch(_){t.some(function(l){l.__h&&(l.__h=[])}),t=[],w.__e(_,n.__v)}}),Se&&Se(e,t)},w.unmount=function(e){We&&We(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(_){try{z(_)}catch(l){t=l}}),n.__H=void 0,t&&w.__e(t,n.__v))};var Ee=typeof requestAnimationFrame=="function";function Qe(e){var t,n=function(){clearTimeout(_),Ee&&cancelAnimationFrame(t),setTimeout(e)},_=setTimeout(n,35);Ee&&(t=requestAnimationFrame(n))}function z(e){var t=v,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),v=t}function oe(e){var t=v;e.__c=e.__(),v=t}function Ke(e,t){return!e||e.length!==t.length||t.some(function(n,_){return n!==e[_]})}function Te(e,t){return typeof t=="function"?t(e):t}const Q={"currency.title":"Валюта","currency.buy":"Купівля","currency.sell":"Продаж","currency.nbu":"НБУ"},Ze=({children:e})=>i("div",{className:"gp_currency-list",children:[i("div",{className:"gp_list-row gp_currency-list__header",children:[i("div",{className:"gp_list-part--left",children:i("p",{className:"gp_header-title",children:Q["currency.title"]})}),i("div",{className:"gp_list-part--right",children:[i("div",{className:"gp_column",children:i("p",{className:"gp_header-title",children:Q["currency.buy"]})}),i("div",{className:"gp_column",children:i("p",{className:"gp_header-title",children:Q["currency.sell"]})}),i("div",{className:"gp_column gp_nbu--title",children:i("p",{className:"gp_header-title",children:Q["currency.nbu"]})})]})]}),i("div",{className:"gp_items-container",children:e})]}),qe=({children:e})=>i("section",{className:"gp_currency-rate__window",children:e}),Xe={USD:i("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",children:[i("rect",{width:"32",height:"32",fill:"url(#pattern0_4950_28482)"}),i("defs",{children:[i("pattern",{id:"pattern0_4950_28482",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:i("use",{"xlink:href":"#image0_4950_28482",transform:"scale(0.0138889)"})}),i("image",{id:"image0_4950_28482",width:"72",height:"72",preserveAspectRatio:"none","xlink:href":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA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JzoaKPBDpR2lM/t+TSLfWQdCpGXmkSdhBoFhWNqMh0el+dBa6GxiKPgBIIPUogLT3B89zZPm50ulz6AG4MVF0kabpSA0PurC/XjTOlOf+nzRgXoCCN0sxOTkZJFIdtPFHkIDLbexcYADezM6sLU3LYC0nYX4raG0DbVmf2p9J5BgawsomQxyAxAS6TSan7VqBnzM7SJRaSEQHx+f+JqIhIKAQgDpp7b/fCEVdpxbfGsPrsOvtuDJQXCa2zpSXdqLsFqoGnQN3Y8VqXd8nhYYgmCVMKUqFXUv6PNnS5AmtwUwP2c3ueKG2UBmoj2Hc3NLS++kFadmR8FRG3h/tJHWoy4FhUDCU9PmD6TayKNwYJ8mLUcvG6jrq4zrT/L8+QGFSRtASUkFCWWlt6IMU0tDN4tKtR60ZPHnveuePXmY8QqCQ4yNJNfDGcef7eWrApKSVq7ct+/UfrVOnTq/oTzh7Sy9rm2L2o3eFsW58GLJzT28R3TTfiGktsJl18FXl55IqQhxZeW+c+d2tm3brl1LXM1BF/af2ndOz6MLn1r7wIvAFsq2dTUuN9kLeC08zMunBgRoEO26tWrau0/f/p2MjY1NTY07dRrfd3Crlm3bth2pAzW/gC8yogaOK9B7GE0lFXmRBBs5txMYTfv072TazOi7t7lRM+P+vbv11oL6tIRFXkBbPr9BI2SFZhkj+/Y3Nv3N697UVAc2Hj94GsCAdmEnLmQFLKN3307GzYDxBzIyNR7fZ/DgVkh1Vpg2a/CXMjJqhgsWUa961es/1Te/KMQrNAivywAAAABJRU5ErkJggg=="})]})]}),EUR:i("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",children:[i("rect",{width:"32",height:"32",fill:"url(#pattern0_3625_27431)"}),i("defs",{children:[i("pattern",{id:"pattern0_3625_27431",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:i("use",{"xlink:href":"#image0_3625_27431",transform:"scale(0.0138889)"})}),i("image",{id:"image0_3625_27431",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ox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:i("path",{d:"M8 13V3M8 3L3 8M8 3L13 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),$e=()=>i("svg",{className:"w-[16px] h-[16px]",style:{color:"#B91C1C"},viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:i("path",{d:"M8 3V13M8 13L13 8M8 13L3 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),le=({trend:e})=>e?e==="up"?i(je,{}):i($e,{}):null,et=({flag:e,currencyCode:t,currencyName:n,buyRate:_,sellRate:l,nbuRate:o,buyTrend:c,sellTrend:s,nbuTrend:u})=>i("div",{className:"gp_list-row gp_currency-item",children:[i("div",{className:"gp_list-part--left",children:[i("div",{class:"gp_currency-flag",children:Xe[e]}),i("div",{className:"gp_currency-info",children:[i("div",{className:"gp_currency-info__code",children:t}),i("div",{className:"gp_currency-info__name",children:n})]})]}),i("div",{className:"gp_list-part--right",children:[i("div",{className:"gp_column",children:i("div",{className:"gp_rate-value",children:[i("span",{children:_.toFixed(2)}),i("span",{className:`gp_trend-arrow gp_trend-arrow--${c}`,children:i(le,{trend:c})})]})}),i("div",{className:"gp_column",children:i("div",{className:"gp_rate-value",children:[i("span",{children:l.toFixed(2)}),i("span",{className:`gp_trend-arrow gp_trend-arrow--${s}`,children:i(le,{trend:s})})]})}),i("div",{className:"gp_column",children:i("div",{className:"gp_rate-value",children:[i("span",{children:typeof o=="number"?o.toFixed(2):"-"}),i("span",{className:`gp_trend-arrow gp_trend-arrow--${u}`,children:i(le,{trend:u})})]})})]})]}),Pe={"exchange.button":"Обмінний курс","card.button":"Курс за картками"},tt=({activeCardRate:e,toggleCardRate:t})=>{const n=e===!0;return i("div",{className:`gp_switch-button ${n?"gp_right-active":""}`,children:[i("button",{className:`gp_switch-button__item ${n?"":"gp_switch-button__item--active"}`,onClick:t,type:"button",children:Pe["exchange.button"]}),i("button",{className:`gp_switch-button__item ${n?"gp_switch-button__item--active":""}`,onClick:t,type:"button",children:Pe["card.button"]})]})},nt=()=>i("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:i("path",{d:"M10 2V6M10 14V18M18 10H14M6 10H2M15.5 4.5L12.5 7.5M7.5 12.5L4.5 15.5M15.5 15.5L12.5 12.5M7.5 7.5L4.5 4.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),rt="https://widget.globusplus.ua/api",ie={title:"Курси валют","exchange.warning":"Курс валют у застосунку","card.warning":"Курс для операцій з карткою у застосунку","codeName.USD":"Долар США","codeName.EUR":"Євро"},_t=e=>{try{const t=new Date(e),n=String(t.getDate()).padStart(2,"0"),_=String(t.getMonth()+1).padStart(2,"0"),l=t.getFullYear();return`${n}.${_}.${l}`}catch(t){return""}},ot=({isLoading:e,isError:t})=>!e&&!t?null:i("div",{className:"absolute inset-0 bg-white/70 backdrop-blur-sm flex flex-col items-center justify-center rounded-[12px] z-10",children:[e&&i("div",{className:"animate-spin text-gray-500",children:i(nt,{})}),t&&i("p",{className:"text-s font-semibold text-red-700 text-center px-[20px]",children:"Помилка завантаження курсу валют"})]}),lt=()=>{var d,y,k,b,f,g,I,x,Y,S,L,C;const[e,t]=R("exchange"),[n,_]=R(null),[l,o]=R(!0),[c,s]=R(!1),[u,a]=R(""),p=()=>t(A=>A==="exchange"?"card":"exchange");De(()=>{(async()=>{try{const U=await fetch(`${rt}/currency`,{headers:{Accept:"application/json"}});if(!U.ok)throw new Error(`HTTP error! status: ${U.status}`);const N=await U.json();_(N),a(_t(N.timestamp))}catch(U){console.error("Error fetching data:",U),s(!0)}finally{o(!1)}})()},[]);const r=n?e==="exchange"?n.globusExchange:n.globusCard:null,h=n?[{code:"USD",buy:(y=(d=r==null?void 0:r.usd)==null?void 0:d.buy.rate)!=null?y:0,sell:(b=(k=r==null?void 0:r.usd)==null?void 0:k.sell.rate)!=null?b:0,nbu:n.nbu.usd.rate,buyTrend:(f=r==null?void 0:r.usd)==null?void 0:f.buy.trend,sellTrend:(g=r==null?void 0:r.usd)==null?void 0:g.sell.trend,nbuTrend:n.nbu.usd.trend},{code:"EUR",buy:(x=(I=r==null?void 0:r.eur)==null?void 0:I.buy.rate)!=null?x:0,sell:(S=(Y=r==null?void 0:r.eur)==null?void 0:Y.sell.rate)!=null?S:0,nbu:n.nbu.eur.rate,buyTrend:(L=r==null?void 0:r.eur)==null?void 0:L.buy.trend,sellTrend:(C=r==null?void 0:r.eur)==null?void 0:C.sell.trend,nbuTrend:n.nbu.eur.trend}]:[];return i(qe,{children:[i("div",{className:"gp_header",children:[i("p",{className:"gp_header__title",children:ie.title}),u&&i("p",{className:"gp_header__date",children:u})]}),i(tt,{toggleCardRate:p,activeCardRate:e==="card"}),i("div",{className:"relative",children:[i(ot,{isLoading:l,isError:c&&!n}),i(Ze,{children:h.map(A=>i(et,{currencyCode:A.code,buyRate:A.buy,sellRate:A.sell,nbuRate:A.nbu,buyTrend:A.buyTrend,sellTrend:A.sellTrend,nbuTrend:A.nbuTrend,currencyName:ie[`codeName.${A.code}`],flag:A.code},A.code))})]}),i("div",{className:"gp_footer",children:[i("p",{children:[ie[`${e}.warning`]," ",i("a",{href:"https://globusplus.ua/",className:"gp_text-link",target:"_blank",children:["Globus",i("span",{children:"Plus"})]})]}),i("p",{className:"gp_info-text",children:[i("b",{children:"*"}),"Інформація має довідковий характер"]})]})]})};function it(){return i(lt,{})}function K(e){e._gpWidgetInitialized||(Ge(i(it,{}),e),e._gpWidgetInitialized=!0)}function ae(){document.querySelectorAll("[data-gp-currency-widget]").forEach(n=>K(n));const t=document.getElementById("globusPlusCurrencyWidget");t&&K(t)}typeof document!="undefined"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",ae):ae()),typeof window!="undefined"&&(window.GPCurrencyWidget={init:K}),Z.initAllWidgets=ae,Z.initWidget=K,Object.defineProperty(Z,Symbol.toStringTag,{value:"Module"})})(this.GPCurrencyWidget=this.GPCurrencyWidget||{});
