@jolibox/ui 1.0.0 → 1.2.5-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/close.d.ts +1 -0
- package/dist/assets/coin.d.ts +3 -0
- package/dist/assets/correct.d.ts +1 -0
- package/dist/assets/error.d.ts +1 -0
- package/dist/assets/success.d.ts +1 -0
- package/dist/assets/tips.d.ts +8 -0
- package/dist/bridge/coin/components/charge-grid.d.ts +15 -0
- package/dist/bridge/coin/components/coin-status.d.ts +22 -0
- package/dist/bridge/coin/components/fixed-image.d.ts +11 -0
- package/dist/bridge/coin/components/index.d.ts +45 -0
- package/dist/bridge/coin/components/toggle.d.ts +4 -0
- package/dist/bridge/coin/components/unlogin-modal.d.ts +13 -0
- package/dist/bridge/coin/index.d.ts +73 -0
- package/dist/bridge/index.d.ts +1 -0
- package/dist/bridge/recommend/components/grid/index.d.ts +2 -1
- package/dist/bridge/recommend/index.d.ts +1 -1
- package/dist/bridge/report/index.d.ts +9 -0
- package/dist/components/create-loading.d.ts +18 -0
- package/dist/components/create-modal.d.ts +4 -2
- package/dist/components/create-toast.d.ts +18 -0
- package/dist/components/drawer/index.d.ts +2 -1
- package/dist/components/i18n/index.d.ts +8 -0
- package/dist/components/pattern-processer/index.d.ts +20 -0
- package/dist/components/pattern-processer/patterns/coin.d.ts +1 -0
- package/dist/components/pattern-processer/patterns/correct.d.ts +1 -0
- package/dist/components/pattern-processer/patterns/error.d.ts +1 -0
- package/dist/components/pattern-processer/patterns/i18n-text.d.ts +1 -0
- package/dist/components/pattern-processer/patterns/i18n-trans.d.ts +1 -0
- package/dist/components/pattern-processer/patterns/index.d.ts +2 -0
- package/dist/components/pattern-processer/patterns/mark.d.ts +1 -0
- package/dist/components/pattern-processer/patterns/success.d.ts +1 -0
- package/dist/components/utils/detect-language.d.ts +10 -0
- package/dist/components/utils/singleton-iframe.d.ts +21 -0
- package/dist/hooks/useOrientation.d.ts +7 -0
- package/dist/hooks/useTransition.d.ts +5 -0
- package/dist/index.cjs.js +566 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.es.js +4791 -980
- package/dist/index.es.js.map +1 -1
- package/dist/lib/i18n/i18n-context.d.ts +7 -0
- package/dist/lib/i18n/i18n-provider.d.ts +8 -0
- package/dist/lib/i18n/index.d.ts +1034 -0
- package/package.json +15 -9
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var J,d,De,H,fe,Me,Oe,Ue,ie,ne,re,W={},We=[],tt=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,I=Array.isArray;function N(e,t){for(var n in t)e[n]=t[n];return e}function le(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function R(e,t,n){var r,o,_,i={};for(_ in t)_=="key"?r=t[_]:_=="ref"?o=t[_]:i[_]=t[_];if(arguments.length>2&&(i.children=arguments.length>3?J.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(_ in e.defaultProps)i[_]===void 0&&(i[_]=e.defaultProps[_]);return G(e,i,r,o,null)}function G(e,t,n,r,o){var _={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++De,__i:-1,__u:0};return o==null&&d.vnode!=null&&d.vnode(_),_}function A(e){return e.children}function E(e,t){this.props=e,this.context=t}function M(e,t){if(t==null)return e.__?M(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"?M(e):null}function Le(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 Le(e)}}function pe(e){(!e.__d&&(e.__d=!0)&&H.push(e)&&!Q.__r++||fe!==d.debounceRendering)&&((fe=d.debounceRendering)||Me)(Q)}function Q(){for(var e,t,n,r,o,_,i,a=1;H.length;)H.length>a&&H.sort(Oe),e=H.shift(),a=H.length,e.__d&&(n=void 0,o=(r=(t=e).__v).__e,_=[],i=[],t.__P&&((n=N({},r)).__v=r.__v+1,d.vnode&&d.vnode(n),ae(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,_,o??M(r),!!(32&r.__u),i),n.__v=r.__v,n.__.__k[n.__i]=n,je(_,n,i),n.__e!=o&&Le(n)));Q.__r=0}function Fe(e,t,n,r,o,_,i,a,s,u,p){var l,c,f,x,k,y,v=r&&r.__k||We,m=t.length;for(s=nt(n,t,v,s,m),l=0;l<m;l++)(f=n.__k[l])!=null&&(c=f.__i===-1?W:v[f.__i]||W,f.__i=l,y=ae(e,f,c,o,_,i,a,s,u,p),x=f.__e,f.ref&&c.ref!=f.ref&&(c.ref&&ue(c.ref,null,f),p.push(f.ref,f.__c||x,f)),k==null&&x!=null&&(k=x),4&f.__u||c.__k===f.__k?s=Ie(f,s,e):typeof f.type=="function"&&y!==void 0?s=y:x&&(s=x.nextSibling),f.__u&=-7);return n.__e=k,s}function nt(e,t,n,r,o){var _,i,a,s,u,p=n.length,l=p,c=0;for(e.__k=new Array(o),_=0;_<o;_++)(i=t[_])!=null&&typeof i!="boolean"&&typeof i!="function"?(s=_+c,(i=e.__k[_]=typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?G(null,i,null,null,null):I(i)?G(A,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?G(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,a=null,(u=i.__i=rt(i,n,s,l))!==-1&&(l--,(a=n[u])&&(a.__u|=2)),a==null||a.__v===null?(u==-1&&(o>p?c--:o<p&&c++),typeof i.type!="function"&&(i.__u|=4)):u!=s&&(u==s-1?c--:u==s+1?c++:(u>s?c--:c++,i.__u|=4))):e.__k[_]=null;if(l)for(_=0;_<p;_++)(a=n[_])!=null&&!(2&a.__u)&&(a.__e==r&&(r=M(a)),ze(a,a));return r}function Ie(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=Ie(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=M(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Y(e,t){return t=t||[],e==null||typeof e=="boolean"||(I(e)?e.some(function(n){Y(n,t)}):t.push(e)),t}function rt(e,t,n,r){var o,_,i=e.key,a=e.type,s=t[n];if(s===null&&e.key==null||s&&i==s.key&&a===s.type&&!(2&s.__u))return n;if(r>(s!=null&&!(2&s.__u)?1:0))for(o=n-1,_=n+1;o>=0||_<t.length;){if(o>=0){if((s=t[o])&&!(2&s.__u)&&i==s.key&&a===s.type)return o;o--}if(_<t.length){if((s=t[_])&&!(2&s.__u)&&i==s.key&&a===s.type)return _;_++}}return-1}function de(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||tt.test(t)?n:n+"px"}function B(e,t,n,r,o){var _;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||de(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||de(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")_=t!=(t=t.replace(Ue,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+_]=n,n?r?n.t=r.t:(n.t=ie,e.addEventListener(t,_?re:ne,_)):e.removeEventListener(t,_?re:ne,_);else{if(o=="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??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function he(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.u==null)t.u=ie++;else if(t.u<n.t)return;return n(d.event?d.event(t):t)}}}function ae(e,t,n,r,o,_,i,a,s,u){var p,l,c,f,x,k,y,v,m,P,C,T,b,ce,j,O,K,$=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(s=!!(32&n.__u),_=[a=t.__e=n.__e]),(p=d.__b)&&p(t);e:if(typeof $=="function")try{if(v=t.props,m="prototype"in $&&$.prototype.render,P=(p=$.contextType)&&r[p.__c],C=p?P?P.props.value:p.__:r,n.__c?y=(l=t.__c=n.__c).__=l.__E:(m?t.__c=l=new $(v,C):(t.__c=l=new E(v,C),l.constructor=$,l.render=_t),P&&P.sub(l),l.props=v,l.state||(l.state={}),l.context=C,l.__n=r,c=l.__d=!0,l.__h=[],l._sb=[]),m&&l.__s==null&&(l.__s=l.state),m&&$.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=N({},l.__s)),N(l.__s,$.getDerivedStateFromProps(v,l.__s))),f=l.props,x=l.state,l.__v=t,c)m&&$.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),m&&l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(m&&$.getDerivedStateFromProps==null&&v!==f&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(v,C),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(v,l.__s,C)===!1||t.__v==n.__v)){for(t.__v!=n.__v&&(l.props=v,l.state=l.__s,l.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(U){U&&(U.__=t)}),T=0;T<l._sb.length;T++)l.__h.push(l._sb[T]);l._sb=[],l.__h.length&&i.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(v,l.__s,C),m&&l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(f,x,k)})}if(l.context=C,l.props=v,l.__P=e,l.__e=!1,b=d.__r,ce=0,m){for(l.state=l.__s,l.__d=!1,b&&b(t),p=l.render(l.props,l.state,l.context),j=0;j<l._sb.length;j++)l.__h.push(l._sb[j]);l._sb=[]}else do l.__d=!1,b&&b(t),p=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++ce<25);l.state=l.__s,l.getChildContext!=null&&(r=N(N({},r),l.getChildContext())),m&&!c&&l.getSnapshotBeforeUpdate!=null&&(k=l.getSnapshotBeforeUpdate(f,x)),O=p,p!=null&&p.type===A&&p.key==null&&(O=Be(p.props.children)),a=Fe(e,I(O)?O:[O],t,n,r,o,_,i,a,s,u),l.base=t.__e,t.__u&=-161,l.__h.length&&i.push(l),y&&(l.__E=l.__=null)}catch(U){if(t.__v=null,s||_!=null)if(U.then){for(t.__u|=s?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;_[_.indexOf(a)]=null,t.__e=a}else for(K=_.length;K--;)le(_[K]);else t.__e=n.__e,t.__k=n.__k;d.__e(U,t,n)}else _==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):a=t.__e=ot(n.__e,t,n,r,o,_,i,s,u);return(p=d.diffed)&&p(t),128&t.__u?void 0:a}function je(e,t,n){for(var r=0;r<n.length;r++)ue(n[r],n[++r],n[++r]);d.__c&&d.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(_){_.call(o)})}catch(_){d.__e(_,o.__v)}})}function Be(e){return typeof e!="object"||e==null?e:I(e)?e.map(Be):N({},e)}function ot(e,t,n,r,o,_,i,a,s){var u,p,l,c,f,x,k,y=n.props,v=t.props,m=t.type;if(m=="svg"?o="http://www.w3.org/2000/svg":m=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),_!=null){for(u=0;u<_.length;u++)if((f=_[u])&&"setAttribute"in f==!!m&&(m?f.localName==m:f.nodeType==3)){e=f,_[u]=null;break}}if(e==null){if(m==null)return document.createTextNode(v);e=document.createElementNS(o,m,v.is&&v),a&&(d.__m&&d.__m(t,_),a=!1),_=null}if(m===null)y===v||a&&e.data===v||(e.data=v);else{if(_=_&&J.call(e.childNodes),y=n.props||W,!a&&_!=null)for(y={},u=0;u<e.attributes.length;u++)y[(f=e.attributes[u]).name]=f.value;for(u in y)if(f=y[u],u!="children"){if(u=="dangerouslySetInnerHTML")l=f;else if(!(u in v)){if(u=="value"&&"defaultValue"in v||u=="checked"&&"defaultChecked"in v)continue;B(e,u,null,f,o)}}for(u in v)f=v[u],u=="children"?c=f:u=="dangerouslySetInnerHTML"?p=f:u=="value"?x=f:u=="checked"?k=f:a&&typeof f!="function"||y[u]===f||B(e,u,f,y[u],o);if(p)a||l&&(p.__html===l.__html||p.__html===e.innerHTML)||(e.innerHTML=p.__html),t.__k=[];else if(l&&(e.innerHTML=""),Fe(t.type==="template"?e.content:e,I(c)?c:[c],t,n,r,m=="foreignObject"?"http://www.w3.org/1999/xhtml":o,_,i,_?_[0]:n.__k&&M(n,0),a,s),_!=null)for(u=_.length;u--;)le(_[u]);a||(u="value",m=="progress"&&x==null?e.removeAttribute("value"):x!==void 0&&(x!==e[u]||m=="progress"&&!x||m=="option"&&x!==y[u])&&B(e,u,x,y[u],o),u="checked",k!==void 0&&k!==e[u]&&B(e,u,k,y[u],o))}return e}function ue(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){d.__e(o,n)}}function ze(e,t,n){var r,o;if(d.unmount&&d.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||ue(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(_){d.__e(_,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&ze(r[o],t,n||typeof e.type!="function");n||le(e.__e),e.__c=e.__=e.__e=void 0}function _t(e,t,n){return this.constructor(e,n)}function ve(e,t,n){var r,o,_,i;t==document&&(t=document.documentElement),d.__&&d.__(e,t),o=(r=!1)?null:t.__k,_=[],i=[],ae(t,e=t.__k=R(A,null,[e]),o||W,W,t.namespaceURI,o?null:t.firstChild?J.call(t.childNodes):null,_,o?o.__e:t.firstChild,r,i),je(_,e,i)}J=We.slice,d={__e:function(e,t,n,r){for(var o,_,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((_=o.constructor)&&_.getDerivedStateFromError!=null&&(o.setState(_.getDerivedStateFromError(e)),i=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(a){e=a}throw e}},De=0,E.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=N({},this.state),typeof e=="function"&&(e=e(N({},n),this.props)),e&&N(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),pe(this))},E.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),pe(this))},E.prototype.render=A,H=[],Me=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Oe=function(e,t){return e.__v.__b-t.__v.__b},Q.__r=0,Ue=/(PointerCapture)$|Capture$/i,ie=0,ne=he(!1),re=he(!0);var L,g,X,me,F=0,Ge=[],w=d,ye=w.__b,ge=w.__r,xe=w.diffed,be=w.__c,we=w.unmount,ke=w.__;function se(e,t){w.__h&&w.__h(g,e,F||t),F=0;var n=g.__H||(g.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Ce(e){return F=1,it(Qe,e)}function it(e,t,n){var r=se(L++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Qe(void 0,t),function(a){var s=r.__N?r.__N[0]:r.__[0],u=r.t(s,a);s!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=g,!g.__f)){var o=function(a,s,u){if(!r.__c.__H)return!0;var p=r.__c.__H.__.filter(function(c){return!!c.__c});if(p.every(function(c){return!c.__N}))return!_||_.call(this,a,s,u);var l=r.__c.props!==a;return p.forEach(function(c){if(c.__N){var f=c.__[0];c.__=c.__N,c.__N=void 0,f!==c.__[0]&&(l=!0)}}),_&&_.call(this,a,s,u)||l};g.__f=!0;var _=g.shouldComponentUpdate,i=g.componentWillUpdate;g.componentWillUpdate=function(a,s,u){if(this.__e){var p=_;_=void 0,o(a,s,u),_=p}i&&i.call(this,a,s,u)},g.shouldComponentUpdate=o}return r.__N||r.__}function q(e,t){var n=se(L++,3);!w.__s&&Ve(n.__H,t)&&(n.__=e,n.u=t,g.__H.__h.push(n))}function Z(e){return F=5,qe(function(){return{current:e}},[])}function qe(e,t){var n=se(L++,7);return Ve(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function S(e,t){return F=8,qe(function(){return e},t)}function lt(){for(var e;e=Ge.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(V),e.__H.__h.forEach(oe),e.__H.__h=[]}catch(t){e.__H.__h=[],w.__e(t,e.__v)}}w.__b=function(e){g=null,ye&&ye(e)},w.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ke&&ke(e,t)},w.__r=function(e){ge&&ge(e),L=0;var t=(g=e.__c).__H;t&&(X===g?(t.__h=[],g.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(V),t.__h.forEach(oe),t.__h=[],L=0)),X=g},w.diffed=function(e){xe&&xe(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ge.push(t)!==1&&me===w.requestAnimationFrame||((me=w.requestAnimationFrame)||at)(lt)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),X=g=null},w.__c=function(e,t){t.some(function(n){try{n.__h.forEach(V),n.__h=n.__h.filter(function(r){return!r.__||oe(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],w.__e(r,n.__v)}}),be&&be(e,t)},w.unmount=function(e){we&&we(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{V(r)}catch(o){t=o}}),n.__H=void 0,t&&w.__e(t,n.__v))};var $e=typeof requestAnimationFrame=="function";function at(e){var t,n=function(){clearTimeout(r),$e&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);$e&&(t=requestAnimationFrame(n))}function V(e){var t=g,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),g=t}function oe(e){var t=g;e.__c=e.__(),g=t}function Ve(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Qe(e,t){return typeof t=="function"?t(e):t}function Ye(e,t){for(var n in t)e[n]=t[n];return e}function _e(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function Se(e,t){this.props=e,this.context=t}function ut(e,t){function n(o){var _=this.props.ref,i=_==o.ref;return!i&&_&&(_.call?_(null):_.current=null),t?!t(this.props,o)||!i:_e(this.props,o)}function r(o){return this.shouldComponentUpdate=n,R(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Se.prototype=new E).isPureReactComponent=!0,Se.prototype.shouldComponentUpdate=function(e,t){return _e(this.props,e)||_e(this.state,t)};var Ne=d.__b;d.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ne&&Ne(e)};var st=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ct(e){function t(n){var r=Ye({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=st,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ft=d.__e;d.__e=function(e,t,n,r){if(e.then){for(var o,_=t;_=_.__;)if((o=_.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}ft(e,t,n,r)};var Ee=d.unmount;function Ze(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=Ye({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Ze(r,t,n)})),e}function Je(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Je(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function ee(){this.__u=0,this.o=null,this.__b=null}function Ke(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function z(){this.i=null,this.l=null}d.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Ee&&Ee(e)},(ee.prototype=new E).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=Ke(r.__v),_=!1,i=function(){_||(_=!0,n.__R=null,o?o(a):a())};n.__R=i;var a=function(){if(!--r.__u){if(r.state.__a){var s=r.state.__a;r.__v.__k[0]=Je(s,s.__c.__P,s.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.o.pop();)u.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},ee.prototype.componentWillUnmount=function(){this.o=[]},ee.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Ze(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&R(A,null,e.fallback);return o&&(o.__u&=-33),[R(A,null,t.__a?null:e.children),o]};var Pe=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};(z.prototype=new E).__a=function(e){var t=this,n=Ke(t.__v),r=t.l.get(e);return r[0]++,function(o){var _=function(){t.props.revealOrder?(r.push(o),Pe(t,e,r)):o()};n?n(_):_()}},z.prototype.render=function(e){this.i=null,this.l=new Map;var t=Y(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},z.prototype.componentDidUpdate=z.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){Pe(e,n,t)})};var pt=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,dt=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,ht=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,vt=/[A-Z0-9]/g,mt=typeof document<"u",yt=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};E.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(E.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var He=d.event;function gt(){}function xt(){return this.cancelBubble}function bt(){return this.defaultPrevented}d.event=function(e){return He&&(e=He(e)),e.persist=gt,e.isPropagationStopped=xt,e.isDefaultPrevented=bt,e.nativeEvent=e};var wt={enumerable:!1,configurable:!0,get:function(){return this.class}},Re=d.vnode;d.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},_=r.indexOf("-")===-1;for(var i in n){var a=n[i];if(!(i==="value"&&"defaultValue"in n&&a==null||mt&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var s=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&a===!0?a="":s==="translate"&&a==="no"?a=!1:s[0]==="o"&&s[1]==="n"?s==="ondoubleclick"?i="ondblclick":s!=="onchange"||r!=="input"&&r!=="textarea"||yt(n.type)?s==="onfocus"?i="onfocusin":s==="onblur"?i="onfocusout":ht.test(i)&&(i=s):s=i="oninput":_&&dt.test(i)?i=i.replace(vt,"-$&").toLowerCase():a===null&&(a=void 0),s==="oninput"&&o[i=s]&&(i="oninputCapture"),o[i]=a}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Y(n.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=Y(n.children).forEach(function(u){u.props.selected=o.multiple?o.defaultValue.indexOf(u.props.value)!=-1:o.defaultValue==u.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",wt)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=pt,Re&&Re(e)};var Ae=d.__r;d.__r=function(e){Ae&&Ae(e),e.__c};var Te=d.diffed;d.diffed=function(e){Te&&Te(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value)};var kt=0;function h(e,t,n,r,o,_){t||(t={});var i,a,s=t;if("ref"in s)for(a in s={},t)a=="ref"?i=t[a]:s[a]=t[a];var u={type:e,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--kt,__i:-1,__u:0,__source:o,__self:_};if(typeof e=="function"&&(i=e.defaultProps))for(a in i)s[a]===void 0&&(s[a]=i[a]);return d.vnode&&d.vnode(u),u}const te={drawerBackdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",justifyContent:"center",alignItems:"flex-end",zIndex:1e3,overflow:"hidden",touchAction:"none"},drawer:{backgroundColor:"white",borderRadius:"16px 16px 0 0",width:"100%",maxWidth:"100%",overflowY:"auto",position:"relative",boxShadow:"0 -2px 10px rgba(0, 0, 0, 0.1)",display:"flex",flexDirection:"column",margin:"0 auto"},drawerContent:{flex:1,width:"100%",height:"100%",overflow:"auto",margin:"0 auto"}},Ct=`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("preact"),jt=require("@babel/runtime-corejs3/core-js-stable/instance/filter"),Di=require("@babel/runtime-corejs3/core-js-stable/instance/every"),$=require("@babel/runtime-corejs3/core-js-stable/instance/for-each"),Dn=require("@babel/runtime-corejs3/core-js-stable/instance/concat"),xn=require("@babel/runtime-corejs3/core-js-stable/instance/some"),re=require("@babel/runtime-corejs3/core-js-stable/set-timeout"),J=require("preact/compat"),vn=require("@babel/runtime-corejs3/core-js/global-this"),Ke=require("@babel/runtime-corejs3/core-js-stable/array/is-array"),Gt=require("@babel/runtime-corejs3/core-js-stable/weak-map"),fe=require("@babel/runtime-corejs3/core-js-stable/instance/index-of"),Xe=require("@babel/runtime-corejs3/core-js-stable/instance/map"),ji=require("@babel/runtime-corejs3/core-js-stable/object/create"),Gi=require("@babel/runtime-corejs3/core-js-stable/set"),$t=require("@babel/runtime-corejs3/core-js-stable/object/assign"),Lt=require("@babel/runtime-corejs3/core-js-stable/instance/trim"),zt=require("@babel/runtime-corejs3/core-js-stable/instance/slice");require("@babel/runtime/helpers/esm/extends");require("@babel/runtime/helpers/extends");require("@babel/runtime-corejs3/core-js-stable/instance/starts-with");const Zn=require("@babel/runtime-corejs3/core-js-stable/instance/bind");function $i(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const wn=$i(J);var be,P,mn,Yn,Te=0,Ot=[],F=O.options,Kn=F.__b,Xn=F.__r,et=F.diffed,nt=F.__c,tt=F.unmount,it=F.__;function tn(e,n){F.__h&&F.__h(P,e,Te||n),Te=0;var t=P.__H||(P.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function te(e){return Te=1,Li(Rt,e)}function Li(e,n,t){var i=tn(be++,2);if(i.t=e,!i.__c&&(i.__=[Rt(void 0,n),function(a){var l=i.__N?i.__N[0]:i.__[0],u=i.t(l,a);l!==u&&(i.__N=[u,i.__[1]],i.__c.setState({}))}],i.__c=P,!P.__f)){var o=function(a,l,u){var d;if(!i.__c.__H)return!0;var f=jt(d=i.__c.__H.__).call(d,function(k){return!!k.__c});if(Di(f).call(f,function(k){return!k.__N}))return!r||r.call(this,a,l,u);var h=i.__c.props!==a;return $(f).call(f,function(k){if(k.__N){var b=k.__[0];k.__=k.__N,k.__N=void 0,b!==k.__[0]&&(h=!0)}}),r&&r.call(this,a,l,u)||h};P.__f=!0;var r=P.shouldComponentUpdate,c=P.componentWillUpdate;P.componentWillUpdate=function(a,l,u){if(this.__e){var d=r;r=void 0,o(a,l,u),r=d}c&&c.call(this,a,l,u)},P.shouldComponentUpdate=o}return i.__N||i.__}function ge(e,n){var t=tn(be++,3);!F.__s&&Wt(t.__H,n)&&(t.__=e,t.u=n,P.__H.__h.push(t))}function Ce(e){return Te=5,ce(function(){return{current:e}},[])}function ce(e,n){var t=tn(be++,7);return Wt(t.__H,n)&&(t.__=e(),t.__H=n,t.__h=e),t.__}function Q(e,n){return Te=8,ce(function(){return e},n)}function zi(e){var n=P.context[e.__c],t=tn(be++,9);return t.c=e,n?(t.__==null&&(t.__=!0,n.sub(P)),n.props.value):e.__}function Oi(){for(var e;e=Ot.shift();)if(e.__P&&e.__H)try{var n,t;$(n=e.__H.__h).call(n,Ue),$(t=e.__H.__h).call(t,In),e.__H.__h=[]}catch(i){e.__H.__h=[],F.__e(i,e.__v)}}F.__b=function(e){P=null,Kn&&Kn(e)},F.__=function(e,n){e&&n.__k&&n.__k.__m&&(e.__m=n.__k.__m),it&&it(e,n)},F.__r=function(e){var n,t,i;Xn&&Xn(e),be=0;var o=(P=e.__c).__H;o&&(mn===P?(o.__h=[],P.__h=[],$(n=o.__).call(n,function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):($(t=o.__h).call(t,Ue),$(i=o.__h).call(i,In),o.__h=[],be=0)),mn=P},F.diffed=function(e){var n;et&&et(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ot.push(t)!==1&&Yn===F.requestAnimationFrame||((Yn=F.requestAnimationFrame)||Wi)(Oi)),$(n=t.__H.__).call(n,function(i){i.u&&(i.__H=i.u),i.u=void 0})),mn=P=null},F.__c=function(e,n){xn(n).call(n,function(t){try{var i,o;$(i=t.__h).call(i,Ue),t.__h=jt(o=t.__h).call(o,function(r){return!r.__||In(r)})}catch(r){xn(n).call(n,function(c){c.__h&&(c.__h=[])}),n=[],F.__e(r,t.__v)}}),nt&&nt(e,n)},F.unmount=function(e){var n;tt&&tt(e);var t,i=e.__c;i&&i.__H&&($(n=i.__H.__).call(n,function(o){try{Ue(o)}catch(r){t=r}}),i.__H=void 0,t&&F.__e(t,i.__v))};var ot=typeof requestAnimationFrame=="function";function Wi(e){var n,t=function(){clearTimeout(i),ot&&cancelAnimationFrame(n),re(e)},i=re(t,100);ot&&(n=requestAnimationFrame(t))}function Ue(e){var n=P,t=e.__c;typeof t=="function"&&(e.__c=void 0,t()),P=n}function In(e){var n=P;e.__c=e.__(),P=n}function Wt(e,n){return!e||e.length!==n.length||xn(n).call(n,function(t,i){return t!==e[i]})}function Rt(e,n){return typeof n=="function"?n(e):n}function Ri(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ut={exports:{}},_=Ut.exports={},Y,K;function Nn(){throw new Error("setTimeout has not been defined")}function En(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof re=="function"?Y=re:Y=Nn}catch{Y=Nn}try{typeof clearTimeout=="function"?K=clearTimeout:K=En}catch{K=En}})();function Bt(e){if(Y===re)return re(e,0);if((Y===Nn||!Y)&&re)return Y=re,re(e,0);try{return Y(e,0)}catch{try{return Y.call(null,e,0)}catch{return Y.call(this,e,0)}}}function Ui(e){if(K===clearTimeout)return clearTimeout(e);if((K===En||!K)&&clearTimeout)return K=clearTimeout,clearTimeout(e);try{return K(e)}catch{try{return K.call(null,e)}catch{return K.call(this,e)}}}var ae=[],me=!1,ue,Be=-1;function Bi(){!me||!ue||(me=!1,ue.length?ae=Dn(ue).call(ue,ae):Be=-1,ae.length&&Vt())}function Vt(){if(!me){var e=Bt(Bi);me=!0;for(var n=ae.length;n;){for(ue=ae,ae=[];++Be<n;)ue&&ue[Be].run();Be=-1,n=ae.length}ue=null,me=!1,Ui(e)}}_.nextTick=function(e){var n=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)n[t-1]=arguments[t];ae.push(new qt(e,n)),ae.length===1&&!me&&Bt(Vt)};function qt(e,n){this.fun=e,this.array=n}qt.prototype.run=function(){this.fun.apply(null,this.array)};_.title="browser";_.browser=!0;_.env={};_.argv=[];_.version="";_.versions={};function se(){}_.on=se;_.addListener=se;_.once=se;_.off=se;_.removeListener=se;_.removeAllListeners=se;_.emit=se;_.prependListener=se;_.prependOnceListener=se;_.listeners=function(e){return[]};_.binding=function(e){throw new Error("process.binding is not supported")};_.cwd=function(){return"/"};_.chdir=function(e){throw new Error("process.chdir is not supported")};_.umask=function(){return 0};var Vi=Ut.exports;const G=Ri(Vi),qi=vn||void 0||self;function Hi(e){if(e.sheet)return e.sheet;for(var n=0;n<document.styleSheets.length;n++)if(document.styleSheets[n].ownerNode===e)return document.styleSheets[n]}function Qi(e){var n=document.createElement("style");return n.setAttribute("data-emotion",e.key),e.nonce!==void 0&&n.setAttribute("nonce",e.nonce),n.appendChild(document.createTextNode("")),n.setAttribute("data-s",""),n}var Ht=function(){function e(t){var i=this;this._insertTag=function(o){var r;i.tags.length===0?i.insertionPoint?r=i.insertionPoint.nextSibling:i.prepend?r=i.container.firstChild:r=i.before:r=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(o,r),i.tags.push(o)},this.isSpeedy=t.speedy===void 0?!0:t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var n=e.prototype;return n.hydrate=function(i){$(i).call(i,this._insertTag)},n.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Qi(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var r=Hi(o);try{r.insertRule(i,r.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(i));this.ctr++},n.flush=function(){var i;$(i=this.tags).call(i,function(o){var r;return(r=o.parentNode)==null?void 0:r.removeChild(o)}),this.tags=[],this.ctr=0},e}(),R="-ms-",en="-moz-",I="-webkit-",jn="comm",Gn="rule",$n="decl",Zi="@import",Qt="@keyframes",Yi=Math.abs,on=String.fromCharCode,Ki=$t;function Xi(e,n){return L(e,0)^45?(((n<<2^L(e,0))<<2^L(e,1))<<2^L(e,2))<<2^L(e,3):0}function Zt(e){return Lt(e).call(e)}function eo(e,n){return(e=n.exec(e))?e[0]:e}function A(e,n,t){return e.replace(n,t)}function An(e,n){return fe(e).call(e,n)}function L(e,n){return e.charCodeAt(n)|0}function Pe(e,n,t){return zt(e).call(e,n,t)}function X(e){return e.length}function Ln(e){return e.length}function ze(e,n){return n.push(e),e}function no(e,n){return Xe(e).call(e,n).join("")}var rn=1,xe=1,Yt=0,B=0,D=0,we="";function an(e,n,t,i,o,r,c){return{value:e,root:n,parent:t,type:i,props:o,children:r,line:rn,column:xe,length:c,return:""}}function Ee(e,n){return Ki(an("",null,null,"",null,null,0),e,{length:-e.length},n)}function to(){return D}function io(){return D=B>0?L(we,--B):0,xe--,D===10&&(xe=1,rn--),D}function q(){return D=B<Yt?L(we,B++):0,xe++,D===10&&(xe=1,rn++),D}function ie(){return L(we,B)}function Ve(){return B}function je(e,n){return Pe(we,e,n)}function Se(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Kt(e){return rn=xe=1,Yt=X(we=e),B=0,[]}function Xt(e){return we="",e}function qe(e){return Zt(je(B-1,Cn(e===91?e+2:e===40?e+1:e)))}function oo(e){for(;(D=ie())&&D<33;)q();return Se(e)>2||Se(D)>3?"":" "}function ro(e,n){for(;--n&&q()&&!(D<48||D>102||D>57&&D<65||D>70&&D<97););return je(e,Ve()+(n<6&&ie()==32&&q()==32))}function Cn(e){for(;q();)switch(D){case e:return B;case 34:case 39:e!==34&&e!==39&&Cn(D);break;case 40:e===41&&Cn(e);break;case 92:q();break}return B}function ao(e,n){for(;q()&&e+D!==57;)if(e+D===84&&ie()===47)break;return"/*"+je(n,B-1)+"*"+on(e===47?e:q())}function co(e){for(;!Se(ie());)q();return je(e,B)}function so(e){return Xt(He("",null,null,null,[""],e=Kt(e),0,[0],e))}function He(e,n,t,i,o,r,c,a,l){for(var u=0,d=0,f=c,h=0,k=0,b=0,p=1,v=1,y=1,x=0,C="",W=o,M=r,w=i,g=C;v;)switch(b=x,x=q()){case 40:if(b!=108&&L(g,f-1)==58){An(g+=A(qe(x),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:g+=qe(x);break;case 9:case 10:case 13:case 32:g+=oo(b);break;case 92:g+=ro(Ve()-1,7);continue;case 47:switch(ie()){case 42:case 47:ze(lo(ao(q(),Ve()),n,t),l);break;default:g+="/"}break;case 123*p:a[u++]=X(g)*y;case 125*p:case 59:case 0:switch(x){case 0:case 125:v=0;case 59+d:k>0&&X(g)-f&&ze(k>32?at(g+";",i,t,f-1):at(A(g," ","")+";",i,t,f-2),l);break;case 59:g+=";";default:if(ze(w=rt(g,n,t,u,d,o,a,C,W=[],M=[],f),r),x===123)if(d===0)He(g,n,w,w,W,r,f,a,M);else switch(h===99&&L(g,3)===110?100:h){case 100:case 109:case 115:He(e,w,w,i&&ze(rt(e,w,w,0,0,o,a,C,o,W=[],f),M),o,M,f,a,i?W:M);break;default:He(g,w,w,w,[""],M,0,a,M)}}u=d=k=0,p=y=1,C=g="",f=c;break;case 58:f=1+X(g),k=b;default:if(p<1){if(x==123)--p;else if(x==125&&p++==0&&io()==125)continue}switch(g+=on(x),x*p){case 38:y=d>0?1:(g+="\f",-1);break;case 44:a[u++]=(X(g)-1)*y,y=1;break;case 64:ie()===45&&(g+=qe(q())),h=ie(),d=f=X(C=g+=co(Ve())),x++;break;case 45:b===45&&X(g)==2&&(p=0)}}return r}function rt(e,n,t,i,o,r,c,a,l,u,d){for(var f=o-1,h=o===0?r:[""],k=Ln(h),b=0,p=0,v=0;b<i;++b)for(var y=0,x=Pe(e,f+1,f=Yi(p=c[b])),C=e;y<k;++y)(C=Zt(p>0?h[y]+" "+x:A(x,/&\f/g,h[y])))&&(l[v++]=C);return an(e,n,t,o===0?Gn:a,l,u,d)}function lo(e,n,t){return an(e,n,t,jn,on(to()),Pe(e,2,-2),0)}function at(e,n,t,i){return an(e,n,t,$n,Pe(e,0,i),Pe(e,i+1,-1),i)}function ye(e,n){for(var t="",i=Ln(e),o=0;o<i;o++)t+=n(e[o],o,e,n)||"";return t}function uo(e,n,t,i){switch(e.type){case Zi:case $n:return e.return=e.return||e.value;case jn:return"";case Qt:return e.return=e.value+"{"+ye(e.children,i)+"}";case Gn:e.value=e.props.join(",")}return X(t=ye(e.children,i))?e.return=e.value+"{"+t+"}":""}function fo(e){var n=Ln(e);return function(t,i,o,r){for(var c="",a=0;a<n;a++)c+=e[a](t,i,o,r)||"";return c}}function ho(e){return function(n){n.root||(n=n.return)&&e(n)}}var po=function(n,t,i){for(var o=0,r=0;o=r,r=ie(),o===38&&r===12&&(t[i]=1),!Se(r);)q();return je(n,B)},go=function(n,t){var i=-1,o=44;do switch(Se(o)){case 0:o===38&&ie()===12&&(t[i]=1),n[i]+=po(B-1,t,i);break;case 2:n[i]+=qe(o);break;case 4:if(o===44){n[++i]=ie()===58?"&\f":"",t[i]=n[i].length;break}default:n[i]+=on(o)}while(o=q());return n},mo=function(n,t){return Xt(go(Kt(n),t))},ct=new Gt,yo=function(n){if(!(n.type!=="rule"||!n.parent||n.length<1)){for(var t=n.value,i=n.parent,o=n.column===i.column&&n.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(n.props.length===1&&t.charCodeAt(0)!==58&&!ct.get(i))&&!o){ct.set(n,!0);for(var r=[],c=mo(t,r),a=i.props,l=0,u=0;l<c.length;l++)for(var d=0;d<a.length;d++,u++)n.props[u]=r[l]?c[l].replace(/&\f/g,a[d]):a[d]+" "+c[l]}}},ko=function(n){if(n.type==="decl"){var t=n.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(n.return="",n.value="")}},bo="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",xo=function(n){var t;return n.type==="comm"&&fe(t=n.children).call(t,bo)>-1},vo=function(n){return function(t,i,o){if(!(t.type!=="rule"||n.compat)){var r=t.value.match(/(:first|:nth|:nth-last)-child/g);if(r){for(var c=t.parent===o[0],a=c?o[0].children:o,l=a.length-1;l>=0;l--){var u=a[l];if(u.line<t.line)break;if(u.column<t.column){if(xo(u))return;break}}$(r).call(r,function(d){console.error('The pseudo class "'+d+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+d.split("-child")[0]+'-of-type".')})}}}},ei=function(n){return n.type.charCodeAt(1)===105&&n.type.charCodeAt(0)===64},wo=function(n,t){for(var i=n-1;i>=0;i--)if(!ei(t[i]))return!0;return!1},st=function(n){n.type="",n.value="",n.return="",n.children="",n.props=""},Io=function(n,t,i){ei(n)&&(n.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),st(n)):wo(t,i)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),st(n)))};function ni(e,n){switch(Xi(e,n)){case 5103:return I+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return I+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return I+e+en+e+R+e+e;case 6828:case 4268:return I+e+R+e+e;case 6165:return I+e+R+"flex-"+e+e;case 5187:return I+e+A(e,/(\w+).+(:[^]+)/,I+"box-$1$2"+R+"flex-$1$2")+e;case 5443:return I+e+R+"flex-item-"+A(e,/flex-|-self/,"")+e;case 4675:return I+e+R+"flex-line-pack"+A(e,/align-content|flex-|-self/,"")+e;case 5548:return I+e+R+A(e,"shrink","negative")+e;case 5292:return I+e+R+A(e,"basis","preferred-size")+e;case 6060:return I+"box-"+A(e,"-grow","")+I+e+R+A(e,"grow","positive")+e;case 4554:return I+A(e,/([^-])(transform)/g,"$1"+I+"$2")+e;case 6187:return A(A(A(e,/(zoom-|grab)/,I+"$1"),/(image-set)/,I+"$1"),e,"")+e;case 5495:case 3959:return A(e,/(image-set\([^]*)/,I+"$1$`$1");case 4968:return A(A(e,/(.+:)(flex-)?(.*)/,I+"box-pack:$3"+R+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+I+e+e;case 4095:case 3583:case 4068:case 2532:return A(e,/(.+)-inline(.+)/,I+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(X(e)-1-n>6)switch(L(e,n+1)){case 109:if(L(e,n+4)!==45)break;case 102:return A(e,/(.+:)(.+)-([^]+)/,"$1"+I+"$2-$3$1"+en+(L(e,n+3)==108?"$3":"$2-$3"))+e;case 115:return~An(e,"stretch")?ni(A(e,"stretch","fill-available"),n)+e:e}break;case 4949:if(L(e,n+1)!==115)break;case 6444:switch(L(e,X(e)-3-(~An(e,"!important")&&10))){case 107:return A(e,":",":"+I)+e;case 101:return A(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+I+(L(e,14)===45?"inline-":"")+"box$3$1"+I+"$2$3$1"+R+"$2box$3")+e}break;case 5936:switch(L(e,n+11)){case 114:return I+e+R+A(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return I+e+R+A(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return I+e+R+A(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return I+e+R+e+e}return e}var No=function(n,t,i,o){if(n.length>-1&&!n.return)switch(n.type){case $n:n.return=ni(n.value,n.length);break;case Qt:return ye([Ee(n,{value:A(n.value,"@","@"+I)})],o);case Gn:if(n.length)return no(n.props,function(r){switch(eo(r,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ye([Ee(n,{props:[A(r,/:(read-\w+)/,":"+en+"$1")]})],o);case"::placeholder":return ye([Ee(n,{props:[A(r,/:(plac\w+)/,":"+I+"input-$1")]}),Ee(n,{props:[A(r,/:(plac\w+)/,":"+en+"$1")]}),Ee(n,{props:[A(r,/:(plac\w+)/,R+"input-$1")]})],o)}return""})}},Eo=[No],ti=function(n){var t=n.key;if(G.env.NODE_ENV!=="production"&&!t)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
|
2
|
+
If multiple caches share the same key they might "fight" for each other's style elements.`);if(t==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");$(Array.prototype).call(i,function(p){var v=p.getAttribute("data-emotion");fe(v).call(v," ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var o=n.stylisPlugins||Eo;if(G.env.NODE_ENV!=="production"&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var r={},c,a=[];c=n.container||document.head,$(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(p){for(var v=p.getAttribute("data-emotion").split(" "),y=1;y<v.length;y++)r[v[y]]=!0;a.push(p)});var l,u=[yo,ko];G.env.NODE_ENV!=="production"&&u.push(vo({get compat(){return b.compat}}),Io);{var d,f=[uo,G.env.NODE_ENV!=="production"?function(p){p.root||(p.return?d.insert(p.return):p.value&&p.type!==jn&&d.insert(p.value+"{}"))}:ho(function(p){d.insert(p)})],h=fo(Dn(u).call(u,o,f)),k=function(v){return ye(so(v),h)};l=function(v,y,x,C){d=x,G.env.NODE_ENV!=="production"&&Xe(y)!==void 0&&(d={insert:function(M){x.insert(M+Xe(y))}}),k(v?v+"{"+y.styles+"}":y.styles),C&&(b.inserted[y.name]=!0)}}var b={key:t,sheet:new Ht({key:t,container:c,nonce:n.nonce,speedy:n.speedy,prepend:n.prepend,insertionPoint:n.insertionPoint}),nonce:n.nonce,inserted:r,registered:{},insert:l};return b.sheet.hydrate(a),b},Oe={exports:{}},lt;function ii(){if(lt)return Oe.exports;lt=1;const e=ii();return Oe.exports={default:e},Oe.exports.default=e,Oe.exports}ii();var Ao=!0;function Je(e,n,t){var i,o="";return $(i=t.split(" ")).call(i,function(r){e[r]!==void 0?n.push(e[r]+";"):r&&(o+=r+" ")}),o}var zn=function(n,t,i){var o=n.key+"-"+t.name;(i===!1||Ao===!1)&&n.registered[o]===void 0&&(n.registered[o]=t.styles)},cn=function(n,t,i){zn(n,t,i);var o=n.key+"-"+t.name;if(n.inserted[t.name]===void 0){var r=t;do n.insert(t===r?"."+o:"",r,n.sheet,!0),r=r.next;while(r!==void 0)}};function Co(e){for(var n=0,t,i=0,o=e.length;o>=4;++i,o-=4)t=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(t&65535)*1540483477+((t>>>16)*59797<<16)^(n&65535)*1540483477+((n>>>16)*59797<<16);switch(o){case 3:n^=(e.charCodeAt(i+2)&255)<<16;case 2:n^=(e.charCodeAt(i+1)&255)<<8;case 1:n^=e.charCodeAt(i)&255,n=(n&65535)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,n=(n&65535)*1540483477+((n>>>16)*59797<<16),((n^n>>>15)>>>0).toString(36)}var Mo={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function To(e){var n=ji(null);return function(t){return n[t]===void 0&&(n[t]=e(t)),n[t]}}var Po=/[A-Z]|^ms/g,So=/_EMO_([^_]+?)_([^]*?)_EMO_/g,oi=function(n){return n.charCodeAt(1)===45},ut=function(n){return n!=null&&typeof n!="boolean"},yn=To(function(e){return oi(e)?e:e.replace(Po,"-$&").toLowerCase()}),dt=function(n,t){switch(n){case"animation":case"animationName":if(typeof t=="string")return t.replace(So,function(i,o,r){return ee={name:o,styles:r,next:ee},o})}return Mo[n]!==1&&!oi(n)&&typeof t=="number"&&t!==0?t+"px":t};function _e(e,n,t){if(t==null)return"";var i=t;if(i.__emotion_styles!==void 0)return i;switch(typeof t){case"boolean":return"";case"object":{var o=t;if(o.anim===1)return ee={name:o.name,styles:o.styles,next:ee},o.name;var r=t;if(r.styles!==void 0){var c=r.next;if(c!==void 0)for(;c!==void 0;)ee={name:c.name,styles:c.styles,next:ee},c=c.next;var a=r.styles+";";return a}return Jo(e,n,t)}case"function":{if(e!==void 0){var l=ee,u=t(e);return ee=l,_e(e,n,u)}break}}var d=t;if(n==null)return d;var f=n[d];return f!==void 0?f:d}function Jo(e,n,t){var i="";if(Ke(t))for(var o=0;o<t.length;o++)i+=_e(e,n,t[o])+";";else for(var r in t){var c=t[r];if(typeof c!="object"){var a=c;n!=null&&n[a]!==void 0?i+=r+"{"+n[a]+"}":ut(a)&&(i+=yn(r)+":"+dt(r,a)+";")}else if(Ke(c)&&typeof c[0]=="string"&&(n==null||n[c[0]]===void 0))for(var l=0;l<c.length;l++)ut(c[l])&&(i+=yn(r)+":"+dt(r,c[l])+";");else{var u=_e(e,n,c);switch(r){case"animation":case"animationName":{i+=yn(r)+":"+u+";";break}default:i+=r+"{"+u+"}"}}}return i}var ft=/label:\s*([^\s;{]+)\s*(;|$)/g,ee;function de(e,n,t){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,o="";ee=void 0;var r=e[0];if(r==null||r.raw===void 0)i=!1,o+=_e(t,n,r);else{var c=r;o+=c[0]}for(var a=1;a<e.length;a++)if(o+=_e(t,n,e[a]),i){var l=r;o+=l[a]}ft.lastIndex=0;for(var u="",d;(d=ft.exec(o))!==null;)u+="-"+d[1];var f=Co(o)+u;return{name:f,styles:o,next:ee}}var _o=function(n){return n()},ri=wn.useInsertionEffect?wn.useInsertionEffect:!1,ai=ri||_o,ht=ri||wn.useLayoutEffect,sn={}.hasOwnProperty,On=J.createContext(typeof HTMLElement<"u"?ti({key:"css"}):null);G.env.NODE_ENV!=="production"&&(On.displayName="EmotionCacheContext");var ci=On.Provider,Wn=function(n){return J.forwardRef(function(t,i){var o=J.useContext(On);return n(t,o,i)})},ln=J.createContext({});G.env.NODE_ENV!=="production"&&(ln.displayName="EmotionThemeContext");var pt=function(n){var t=n.split(".");return t[t.length-1]},Fo=function(n){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(n);if(t||(t=/^([A-Za-z0-9$.]+)@/.exec(n),t))return pt(t[1])},Do=new Gi(["renderWithHooks","processChild","finishClassComponent","renderToString"]),jo=function(n){return n.replace(/\$/g,"-")},Go=function(n){if(n)for(var t=n.split(`
|
|
3
|
+
`),i=0;i<t.length;i++){var o=Fo(t[i]);if(o){if(Do.has(o))break;if(/^[A-Z]/.test(o))return jo(o)}}},Mn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Tn="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",si=function(n,t){var i,o;if(G.env.NODE_ENV!=="production"&&typeof t.css=="string"&&fe(i=t.css).call(i,":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var r={};for(var c in t)sn.call(t,c)&&(r[c]=t[c]);if(r[Mn]=n,G.env.NODE_ENV!=="production"&&t.css&&(typeof t.css!="object"||typeof t.css.name!="string"||fe(o=t.css.name).call(o,"-")===-1)){var a=Go(new Error().stack);a&&(r[Tn]=a)}return r},$o=function(n){var t=n.cache,i=n.serialized,o=n.isStringTag;return zn(t,i,o),ai(function(){return cn(t,i,o)}),null},Rn=Wn(function(e,n,t){var i,o=e.css;typeof o=="string"&&n.registered[o]!==void 0&&(o=n.registered[o]);var r=e[Mn],c=[o],a="";typeof e.className=="string"?a=Je(n.registered,c,e.className):e.className!=null&&(a=e.className+" ");var l=de(c,void 0,J.useContext(ln));if(G.env.NODE_ENV!=="production"&&fe(i=l.name).call(i,"-")===-1){var u=e[Tn];u&&(l=de([l,"label:"+u+";"]))}a+=n.key+"-"+l.name;var d={};for(var f in e)sn.call(e,f)&&f!=="css"&&f!==Mn&&(G.env.NODE_ENV==="production"||f!==Tn)&&(d[f]=e[f]);return d.ref=t,d.className=a,J.createElement(J.Fragment,null,J.createElement($o,{cache:n,serialized:l,isStringTag:typeof r=="string"}),J.createElement(r,d))});G.env.NODE_ENV!=="production"&&(Rn.displayName="EmotionCssPropInternal");var Lo={version:"11.10.5"},gt=!1,zo=Wn(function(e,n){G.env.NODE_ENV!=="production"&&!gt&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),gt=!0);var t=e.styles,i=de([t],void 0,J.useContext(ln)),o=J.useRef();return ht(function(){var r=n.key+"-global",c=new n.sheet.constructor({key:r,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy}),a=!1,l=document.querySelector('style[data-emotion="'+r+" "+i.name+'"]');return n.sheet.tags.length&&(c.before=n.sheet.tags[0]),l!==null&&(a=!0,l.setAttribute("data-emotion",r),c.hydrate([l])),o.current=[c,a],function(){c.flush()}},[n]),ht(function(){var r=o.current,c=r[0],a=r[1];if(a){r[1]=!1;return}if(i.next!==void 0&&cn(n,i.next,!0),c.tags.length){var l=c.tags[c.tags.length-1].nextElementSibling;c.before=l,c.flush()}n.insert("",i,c,!1)},[n,i.name]),null});G.env.NODE_ENV!=="production"&&(zo.displayName="EmotionGlobal");function m(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return de(n)}var Oo=function e(n){for(var t=n.length,i=0,o="";i<t;i++){var r=n[i];if(r!=null){var c=void 0;switch(typeof r){case"boolean":break;case"object":{if(Ke(r))c=e(r);else{G.env.NODE_ENV!=="production"&&r.styles!==void 0&&r.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),c="";for(var a in r)r[a]&&a&&(c&&(c+=" "),c+=a)}break}default:c=r}c&&(o&&(o+=" "),o+=c)}}return o};function Wo(e,n,t){var i=[],o=Je(e,i,t);return i.length<2?t:o+n(i)}var Ro=function(n){var t=n.cache,i=n.serializedArr;return ai(function(){for(var o=0;o<i.length;o++)cn(t,i[o],!1)}),null},Uo=Wn(function(e,n){var t=!1,i=[],o=function(){if(t&&G.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var u=arguments.length,d=new Array(u),f=0;f<u;f++)d[f]=arguments[f];var h=de(d,n.registered);return i.push(h),zn(n,h,!1),n.key+"-"+h.name},r=function(){if(t&&G.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var u=arguments.length,d=new Array(u),f=0;f<u;f++)d[f]=arguments[f];return Wo(n.registered,o,Oo(d))},c={css:o,cx:r,theme:J.useContext(ln)},a=e.children(c);return t=!0,J.createElement(J.Fragment,null,J.createElement(Ro,{cache:n,serializedArr:i}),a)});G.env.NODE_ENV!=="production"&&(Uo.displayName="EmotionClassNames");if(G.env.NODE_ENV!=="production"){var mt=!0,Bo=typeof jest<"u"||typeof vi<"u";if(mt&&!Bo){var yt=typeof vn<"u"?vn:mt?window:qi,kt="__EMOTION_REACT_"+Lo.version.split(".")[0]+"__";yt[kt]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),yt[kt]=!0}}var Vo=0;function s(e,n,t,i,o,r){n||(n={});var c,a,l=n;if("ref"in l)for(a in l={},n)a=="ref"?c=n[a]:l[a]=n[a];var u={type:e,props:l,key:t,ref:c,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Vo,__i:-1,__u:0,__source:o,__self:r};if(typeof e=="function"&&(c=e.defaultProps))for(a in c)l[a]===void 0&&(l[a]=c[a]);return O.options.vnode&&O.options.vnode(u),u}const kn={drawerBackdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"transparent",display:"flex",justifyContent:"center",alignItems:"flex-end",zIndex:1e3,overflow:"hidden",touchAction:"none"},drawer:{backgroundColor:"rgb(26, 26, 26)",borderRadius:"16px 16px 0 0",width:"100%",maxWidth:"100%",overflowY:"auto",position:"relative",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.1)",display:"block",margin:"0 auto"},centerDrawer:{backgroundColor:"transparent",minWidth:"320px",maxWidth:"90vw",maxHeight:"90vh",width:"auto",position:"relative",display:"block",margin:"0 auto",overflowY:"auto"}},qo=m`
|
|
4
|
+
width: 100%;
|
|
5
|
+
overflow: auto;
|
|
6
|
+
margin: 0 auto;
|
|
7
|
+
`,Ho=`
|
|
2
8
|
@keyframes fadeIn {
|
|
3
9
|
from { opacity: 0; }
|
|
4
10
|
to { opacity: 1; }
|
|
@@ -34,5 +40,563 @@
|
|
|
34
40
|
.drawer-leave {
|
|
35
41
|
animation: slideDown 0.3s ease forwards;
|
|
36
42
|
}
|
|
37
|
-
|
|
43
|
+
|
|
44
|
+
.fadeOut {
|
|
45
|
+
animation: fadeOut 0.3s ease forwards;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.fadeIn {
|
|
49
|
+
animation: fadeIn 0.3s ease forwards;
|
|
50
|
+
}
|
|
51
|
+
`,Qo=({children:e,isOpen:n=!1,preventCloseOnBackdropClick:t=!1,onClose:i,className:o="",placement:r="bottom"},c)=>{const[a,l]=te(!1),[u,d]=te(null),[f,h]=te(!1),k=Ce(null),b=Ce(null),p=Ce(!1);ge(()=>{if(a&&k.current){const T=k.current.ownerDocument,Le=T.createElement("style");Le.innerHTML=Ho,T.head.appendChild(Le);const gn={overflow:T.body.style.overflow,position:T.body.style.position,width:T.body.style.width};return T.body.style.overflow="hidden",T.body.style.position="fixed",T.body.style.width="100%",()=>{T.head.contains(Le)&&T.head.removeChild(Le),T.body.style.overflow=gn.overflow,T.body.style.position=gn.position,T.body.style.width=gn.width}}},[a]),ge(()=>{n?!a&&!p.current&&(l(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)})):a&&(p.current=!0,d("leave"),h(!1))},[n]);const v=Q(T=>{T.target===b.current&&(u==="leave"?(d(null),l(!1),p.current=!1,i&&i()):u==="enter"&&(d(null),h(!0)))},[u,i]),y=Q(()=>{a&&!p.current&&(p.current=!0,d("leave"),h(!1))},[a]),x=Q(T=>{t||(T.preventDefault(),T.stopPropagation(),y())},[y]),C=Q(()=>{!p.current&&!a&&(l(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)}))},[a]),W=Q(()=>a&&!p.current,[a]);if(ge(()=>{if(c){const T={show:C,hide:y,isOpen:W};typeof c=="function"?c(T):c&&(c.current=T)}},[C,y,W,c]),!a)return null;const M=r==="center",w={...kn.drawerBackdrop,alignItems:M?"center":"flex-end",justifyContent:"center",backgroundColor:"transparent",pointerEvents:"none"},g={position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.6)",pointerEvents:"auto",opacity:u==="enter"||f?1:0,transition:"opacity 0.3s"},Qn=M?{...kn.centerDrawer,pointerEvents:"auto"}:{...kn.drawer,height:"auto",pointerEvents:"auto"};a&&!f&&!u&&!M&&(Qn.transform="translateY(100%)");const _i=u?M?u==="leave"?"fadeOut":u==="enter"?"fadeIn":"":`drawer-${u}`:"",Fi=u?`backdrop-${u}`:"";return s("div",{ref:k,style:w,children:[s("div",{style:g,className:Fi,onClick:x}),s("div",{ref:b,style:{...Qn,opacity:M&&u===null&&!f?0:1},className:`${M&&u==="leave"?"fadeOut":_i} ${o}`,onAnimationEnd:v,onClick:T=>T.stopPropagation(),children:s("div",{style:qo.styles,children:e})})]})},Zo=J.forwardRef(Qo);function Ge(){const e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[n,t]=te(e());return ge(()=>{const i=()=>{t(e())};return window.addEventListener("resize",i),"onorientationchange"in window&&window.addEventListener("orientationchange",i),i(),()=>{window.removeEventListener("resize",i),"onorientationchange"in window&&window.removeEventListener("orientationchange",i)}},[]),n}const Yo={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with Jolicoin for a better experience",unlockWithJolicoinDescription:"Unlock with Jolicoin automatically",useJolicoin:"Use Jolicoin",payAndUnlock:"Pay and unlock",noWatchAds:"No, watch ads",noThanks:"No thanks",balance:"Balance",coinUsed:"Jolicoin used",unlockSuccess:"Unlock successful",unlockFailed:"Unlock failed",unlockFailedNotLogin:"Please log in to continue",unlockFailedPaying:"Payment is already in progress. Please do not retry",unlockFailedProductIdNotFound:"Product has expired. Please choose another product",unlockFailedProductInvalid:"Failed to retrieve product info. Please retry or choose another product",unlockFailedLaunch:"Unable to start payment. Please try again later",unlockFailedTransaction:"Payment failed. Please try again",unlockFaileVerify:"Order verification failed. If you’ve been charged, please contact support",transactionPending:"Payment confirmation failed. Please contact your payment provider for support"},Ko={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with GEM for a better experience",unlockWithJolicoinDescription:"Unlock with GEM automatically",useJolicoin:"Use GEM",balance:"GEM Balance"},Xo={instead:"Instead of watching ads",introduct:"Use {{coin}}Jolicoin to unlock for better experience",tips:"Get {{coin}} for free",login:"Register & Unlock with Jolicoin",noWatchAds:"No, watch ads",noThanks:"No thanks",rewardTips:"Congrats! You have received {{coin}} Jolicoin! Start unlocking now!"},bt={jolicoin:Yo,joligem:Ko,loginGuide:Xo},er={unlockNeeds:"解锁需求",price:"价格",unlockWithJolicoin:"使用 Jolicoin 解锁",unlockWithJolicoinDescription:"自动使用 Jolicoin 解锁",useJolicoin:"使用 Jolicoin",payAndUnlock:"支付并解锁",noWatchAds:"不用了,观看广告",noThanks:"不用了",balance:"余额",coinUsed:"已使用的 Jolicoin",unlockSuccess:"解锁成功",unlockFailed:"解锁失败",unlockFailedNotLogin:"请登录后完成解锁",unlockFailedPaying:"支付正在进行中,请勿重复操作",unlockFailedProductIdNotFound:"商品已过期,请选择其他商品",unlockFailedProductInvalid:"获取商品信息失败,请重试或选择其他商品",unlockFailedLaunch:"无法启动支付,请稍后重试",unlockFailedTransaction:"支付失败,请重试",unlockFaileVerify:"订单验证失败,如已扣费请联系客服",transactionPending:"支付确认失败,请联系支付服务商获取支持"},nr={unlockNeeds:"解锁需求",price:"价格",unlockWithJolicoin:"使用 GEM 解锁",unlockWithJolicoinDescription:"自动使用 GEM 解锁",useJolicoin:"使用 GEM",balance:"GEM 余额"},tr={instead:"观看广告",introduct:"使用 {{coin}} Jolicoin 解锁以获得更好的体验",tips:"免费获取 {{coin}}",login:"注册并解锁",noWatchAds:"不用了,观看广告",noThanks:"不用了",rewardTips:"恭喜!您获得了 {{coin}} Jolicoin!开始解锁吧!"},xt={jolicoin:er,joligem:nr,loginGuide:tr},ir={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai Jolicoin untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Otomatis mengurangi Jolicoin untuk item digital",useJolicoin:"Gunakan Jolicoin",payAndUnlock:"Bayar dan buka",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",balance:"Saldo",coinUsed:"Jolicoin yang digunakan",unlockSuccess:"Berhasil dibuka",unlockFailed:"Gagal membuka",unlockFailedNotLogin:"Silakan masuk untuk menyelesaikan pembukaan",unlockFailedPaying:"Pembayaran sedang diproses. Mohon jangan ulangi operasi",unlockFailedProductIdNotFound:"Produk telah kedaluwarsa. Silakan pilih produk lain",unlockFailedProductInvalid:"Gagal mendapatkan informasi produk. Silakan coba lagi atau pilih produk lain",unlockFailedLaunch:"Tidak dapat memulai pembayaran. Silakan coba lagi nanti",unlockFailedTransaction:"Pembayaran gagal. Silakan coba lagi",unlockFaileVerify:"Verifikasi pesanan gagal. Jika Anda telah dikenakan biaya, silakan hubungi dukungan",transactionPending:"Konfirmasi pembayaran gagal. Silakan hubungi penyedia pembayaran Anda untuk dukungan"},or={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai GEM untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Otomatis mengurangi GEM untuk item digital",useJolicoin:"Gunakan GEM",balance:"GEM Saldo"},rr={instead:"Alihkan dari menonton iklan",introduct:"Gunakan {{coin}} Jolicoin untuk membuka untuk pengalaman yang lebih baik",tips:"Dapatkan {{coin}} gratis",login:"Daftar dan buka dengan Jolicoin",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",rewardTips:"Selamat! Anda telah menerima {{coin}} Jolicoin. Mulai membuka sekarang!"},vt={jolicoin:ir,joligem:or,loginGuide:rr},ar={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai Jolicoin untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Potongan automatik Jolicoin untuk item digital",useJolicoin:"Gunakan Jolicoin",payAndUnlock:"Bayar dan buka",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",balance:"Baki",coinUsed:"Jolicoin yang digunakan",unlockSuccess:"Berjaya dibuka",unlockFailed:"Gagal membuka",unlockFailedNotLogin:"Sila log masuk untuk meneruskan",unlockFailedPaying:"Pembayaran sedang diproses. Sila jangan cuba lagi",unlockFailedProductIdNotFound:"Produk telah tamat tempoh. Sila pilih produk lain",unlockFailedProductInvalid:"Gagal mendapatkan maklumat produk. Sila cuba lagi atau pilih produk lain",unlockFailedLaunch:"Tidak dapat memulakan pembayaran. Sila cuba lagi kemudian",unlockFailedTransaction:"Pembayaran gagal. Sila cuba lagi",unlockFaileVerify:"Pengesahan pesanan gagal. Jika anda telah dikenakan caj, sila hubungi sokongan",transactionPending:"Pengesahan pembayaran gagal. Sila hubungi pembekal pembayaran anda untuk sokongan"},cr={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai GEM untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Otomatis mengurangi GEM untuk item digital",useJolicoin:"Gunakan GEM",balance:"GEM Saldo"},sr={instead:"Alihkan dari menonton iklan",introduct:"Gunakan {{coin}} Jolicoin untuk membuka untuk pengalaman yang lebih baik",tips:"Dapatkan {{coin}} gratis",login:"Daftar dan buka dengan Jolicoin",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",rewardTips:"Selamat! Anda telah menerima {{coin}} Jolicoin. Mulai membuka sekarang!"},wt={jolicoin:ar,joligem:cr,loginGuide:sr},lr={unlockNeeds:"ต้องการปลดล็อค",price:"ราคา",unlockWithJolicoin:"ปลดล็อคด้วย Jolicoin",unlockWithJolicoinDescription:"ปลดล็อคอัตโนมัติด้วย Jolicoin",useJolicoin:"ใช้ Jolicoin",payAndUnlock:"ชำระเงินและปลดล็อค",noWatchAds:"ไม่ ดูโฆษณา",noThanks:"ไม่ ขอบคุณ",balance:"ยอดคงเหลือ",coinUsed:"Jolicoin ที่ใช้แล้ว",unlockSuccess:"ปลดล็อคสำเร็จ",unlockFailed:"ปลดล็อคไม่สำเร็จ",unlockFailedNotLogin:"กรุณาเข้าสู่ระบบเพื่อเสร็จสิ้นการปลดล็อค",unlockFailedPaying:"การชำระเงินกำลังดำเนินการอยู่ กรุณาอย่าทำซ้ำการดำเนินการ",unlockFailedProductIdNotFound:"สินค้าหมดอายุแล้ว กรุณาเลือกสินค้าอื่น",unlockFailedProductInvalid:"ไม่สามารถดึงข้อมูลสินค้าได้ กรุณาลองใหม่อีกครั้งหรือเลือกสินค้าอื่น",unlockFailedLaunch:"ไม่สามารถเริ่มการชำระเงินได้ กรุณาลองใหม่อีกครั้งในภายหลัง",unlockFailedTransaction:"การชำระเงินล้มเหลว กรุณาลองใหม่อีกครั้ง",unlockFaileVerify:"การตรวจสอบคำสั่งซื้อล้มเหลว หากคุณถูกเรียกเก็บเงินแล้ว กรุณาติดต่อฝ่ายสนับสนุน",transactionPending:"การยืนยันการชำระเงินล้มเหลว กรุณาติดต่อผู้ให้บริการชำระเงินของคุณเพื่อขอความช่วยเหลือ"},ur={unlockNeeds:"ต้องการปลดล็อค",price:"ราคา",unlockWithJolicoin:"ปลดล็อคด้วย GEM",unlockWithJolicoinDescription:"ปลดล็อคอัตโนมัติด้วย GEM",useJolicoin:"ใช้ GEM",balance:"GEM ยอดคงเหลือ"},dr={instead:"แทนที่ดูโฆษณา",introduct:"ใช้ {{coin}} Jolicoin เพื่อปลดล็อคสำหรับประสบการณ์ที่ดีขึ้น",tips:"รับ {{coin}} ฟรี",login:"ลงทะเบียนและปลดล็อคด้วย Jolicoin",noWatchAds:"ไม่ ดูโฆษณา",noThanks:"ไม่ ขอบคุณ",rewardTips:"ยินดีด้วย! คุณได้รับ {{coin}} Jolicoin. เริ่มปลดล็อคตอนนี้!"},fr={jolicoin:lr,joligem:ur,loginGuide:dr},hr={unlockNeeds:"Yêu cầu mở khóa",price:"Giá",unlockWithJolicoin:"Mở khóa bằng Jolicoin",unlockWithJolicoinDescription:"Tự động mở khóa bằng Jolicoin",useJolicoin:"Sử dụng Jolicoin",payAndUnlock:"Thanh toán và mở khóa",noWatchAds:"Không, xem quảng cáo",noThanks:"Không, cảm ơn",balance:"Số dư",coinUsed:"Jolicoin đã sử dụng",unlockSuccess:"Mở khóa thành công",unlockFailed:"Mở khóa thất bại",unlockFailedNotLogin:"Vui lòng đăng nhập để hoàn thành việc mở khóa",unlockFailedPaying:"Thanh toán đang được xử lý. Vui lòng không lặp lại thao tác",unlockFailedProductIdNotFound:"Sản phẩm đã hết hạn. Vui lòng chọn sản phẩm khác",unlockFailedProductInvalid:"Không thể lấy thông tin sản phẩm. Vui lòng thử lại hoặc chọn sản phẩm khác",unlockFailedLaunch:"Không thể bắt đầu thanh toán. Vui lòng thử lại sau",unlockFailedTransaction:"Thanh toán thất bại. Vui lòng thử lại",unlockFaileVerify:"Xác minh đơn hàng thất bại. Nếu bạn đã bị tính phí, vui lòng liên hệ hỗ trợ",transactionPending:"Xác nhận thanh toán thất bại. Vui lòng liên hệ nhà cung cấp thanh toán của bạn để được hỗ trợ"},pr={unlockNeeds:"Yêu cầu mở khóa",price:"Giá",unlockWithJolicoin:"Mở khóa bằng GEM",unlockWithJolicoinDescription:"Tự động mở khóa bằng GEM",useJolicoin:"Sử dụng GEM",balance:"GEM Số dư"},gr={instead:"Thay thế bằng xem quảng cáo",introduct:"Sử dụng {{coin}} Jolicoin để mở khóa cho trải nghiệm tốt hơn",tips:"Nhận {{coin}} miễn phí",login:"Đăng ký và mở khóa với Jolicoin",noWatchAds:"Không, xem quảng cáo",noThanks:"Không, cảm ơn",rewardTips:"Chúc mừng! Bạn đã nhận được {{coin}} Jolicoin. Mở khóa ngay!"},mr={jolicoin:hr,joligem:pr,loginGuide:gr},yr={unlockNeeds:"Kailangan i-unlock",price:"Presyo",unlockWithJolicoin:"I-unlock gamit ang Jolicoin",unlockWithJolicoinDescription:"Awtomatikong i-unlock gamit ang Jolicoin",useJolicoin:"Gamitin ang Jolicoin",payAndUnlock:"Magbayad at i-unlock",noWatchAds:"Hindi, manood ng ads",noThanks:"Hindi na, salamat",balance:"Balanse",coinUsed:"Ginamit na Jolicoin",unlockSuccess:"Matagumpay na na-unlock",unlockFailed:"Hindi matagumpay ang pag-unlock",unlockFailedNotLogin:"Mangyaring mag-login para makumpleto ang pag-unlock",unlockFailedPaying:"Ang pagbabayad ay nasa proseso na. Huwag ulitin ang operasyon",unlockFailedProductIdNotFound:"Ang produkto ay nag-expire na. Mangyaring pumili ng ibang produkto",unlockFailedProductInvalid:"Hindi makuha ang impormasyon ng produkto. Subukang muli o pumili ng ibang produkto",unlockFailedLaunch:"Hindi maumpisahan ang pagbabayad. Subukang muli sa ibang pagkakataon",unlockFailedTransaction:"Hindi matagumpay ang pagbabayad. Subukang muli",unlockFaileVerify:"Hindi matagumpay ang pag-verify ng order. Kung na-charge ka na, mangyaring makipag-ugnayan sa suporta",transactionPending:"Hindi matagumpay ang kumpirmasyon ng pagbabayad. Mangyaring makipag-ugnayan sa iyong payment provider para sa suporta"},kr={unlockNeeds:"Kailangan i-unlock",price:"Presyo",unlockWithJolicoin:"I-unlock gamit ang GEM",unlockWithJolicoinDescription:"Awtomatikong i-unlock gamit ang GEM",useJolicoin:"Gamitin ang GEM",balance:"GEM Balanse"},br={instead:"Kung hindi mo na gusto ang mga ad",introduct:"Gamitin ang {{coin}} Jolicoin para i-unlock para sa mas mahusay na karanasan",tips:"Kunin ang {{coin}} para sa libreng",login:"Mag-register at i-unlock gamit ang Jolicoin",noWatchAds:"Hindi, manood ng ads",noThanks:"Hindi na, salamat",rewardTips:"Maligayang pagdating! Nakatanggap ka ng {{coin}} Jolicoin. Simulan ang pag-unlock!"},It={jolicoin:yr,joligem:kr,loginGuide:br},xr={unlockNeeds:"Necesario desbloquear",price:"Precio",unlockWithJolicoin:"Desbloquea con Jolicoin",unlockWithJolicoinDescription:"Desbloquea automáticamente con Jolicoin",useJolicoin:"Usar Jolicoin",payAndUnlock:"Pagar y desbloquear",noWatchAds:"No, ver anuncios",noThanks:"No, gracias",balance:"Saldo",coinUsed:"Jolicoin usado",unlockSuccess:"Desbloqueo exitoso",unlockFailed:"Error al desbloquear",unlockFailedNotLogin:"Inicia sesión para completar el desbloqueo",unlockFailedPaying:"El pago ya está en proceso. Por favor, no repita la operación",unlockFailedProductIdNotFound:"El producto ha expirado. Por favor, elija otro producto",unlockFailedProductInvalid:"Error al obtener información del producto. Inténtelo de nuevo o elija otro producto",unlockFailedLaunch:"No se puede iniciar el pago. Inténtelo de nuevo más tarde",unlockFailedTransaction:"Error en el pago. Inténtelo de nuevo",unlockFaileVerify:"Error en la verificación del pedido. Si se le ha cobrado, contacte con soporte",transactionPending:"Error en la confirmación del pago. Contacte con su proveedor de pago para obtener ayuda"},vr={unlockNeeds:"Necesario desbloquear",price:"Precio",unlockWithJolicoin:"Desbloquea con GEM",unlockWithJolicoinDescription:"Desbloquea automáticamente con GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},wr={instead:"En lugar de ver anuncios",introduct:"Usa {{coin}} Jolicoin para desbloquear para una mejor experiencia",tips:"Obtén {{coin}} gratis",login:"Regístrate y desbloquea con Jolicoin",noWatchAds:"No, ver anuncios",noThanks:"No, gracias",rewardTips:"¡Felicidades! Has recibido {{coin}} Jolicoin. ¡Empieza a desbloquear!"},Ir={jolicoin:xr,joligem:vr,loginGuide:wr},Nr={unlockNeeds:"アンロック必要",price:"価格",unlockWithJolicoin:"Jolicoinでアンロック",unlockWithJolicoinDescription:"Jolicoinで自動的にアンロック",useJolicoin:"Jolicoinを使用",payAndUnlock:"支払いとアンロック",noWatchAds:"いいえ、広告を見る",noThanks:"いいえ、結構です",balance:"残高",coinUsed:"使用済みJolicoin",unlockSuccess:"アンロック成功",unlockFailed:"アンロック失敗",unlockFailedNotLogin:"アンロックを完了するにはログインしてください",unlockFailedPaying:"支払い処理中です。操作を繰り返さないでください",unlockFailedProductIdNotFound:"商品の有効期限が切れています。他の商品を選択してください",unlockFailedProductInvalid:"商品情報の取得に失敗しました。再試行するか、他の商品を選択してください",unlockFailedLaunch:"支払いを開始できません。後でもう一度お試しください",unlockFailedTransaction:"支払いに失敗しました。再試行してください",unlockFaileVerify:"注文の確認に失敗しました。料金が請求された場合は、サポートにお問い合わせください",transactionPending:"支払いの確認に失敗しました。支払いプロバイダーにお問い合わせください"},Er={unlockNeeds:"アンロック必要",price:"価格",unlockWithJolicoin:"GEMでアンロック",unlockWithJolicoinDescription:"GEMで自動的にアンロック",useJolicoin:"GEMを使用",balance:"GEM残高"},Ar={instead:"広告を見る代わりに",introduct:"{{coin}} Jolicoinを使用して、より良い体験のためにアンロックします",tips:"{{coin}}を無料で取得",login:"Jolicoinで登録してアンロック",noWatchAds:"いいえ、広告を見る",noThanks:"いいえ、結構です",rewardTips:"おめでとうございます!{{coin}} Jolicoinを受け取りました!アンロックを開始します!"},Cr={jolicoin:Nr,joligem:Er,loginGuide:Ar},Mr={unlockNeeds:"Necessário desbloquear",price:"Preço",unlockWithJolicoin:"Desbloqueie com Jolicoin",unlockWithJolicoinDescription:"Deduz Jolicoin automaticamente para itens digitais",useJolicoin:"Usar Jolicoin",payAndUnlock:"Pagar e desbloquear",noWatchAds:"Não, assistir anúncios",noThanks:"Não, obrigado",balance:"Saldo",coinUsed:"Jolicoin usado",unlockSuccess:"Desbloqueio bem-sucedido",unlockFailed:"Falha no desbloqueio",unlockFailedNotLogin:"Faça login para completar o desbloqueio",unlockFailedPaying:"O pagamento já está em andamento. Por favor, não repita a operação",unlockFailedProductIdNotFound:"O produto expirou. Por favor, escolha outro produto",unlockFailedProductInvalid:"Falha ao recuperar informações do produto. Tente novamente ou escolha outro produto",unlockFailedLaunch:"Não foi possível iniciar o pagamento. Tente novamente mais tarde",unlockFailedTransaction:"Falha no pagamento. Tente novamente",unlockFaileVerify:"Falha na verificação do pedido. Se você foi cobrado, entre em contato com o suporte",transactionPending:"Falha na confirmação do pagamento. Entre em contato com seu provedor de pagamento para suporte"},Tr={unlockNeeds:"Necessário desbloquear",price:"Preço",unlockWithJolicoin:"Desbloqueie com GEM",unlockWithJolicoinDescription:"Desbloqueie automaticamente com GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},Pr={instead:"Em vez de assistir anúncios",introduct:"Use {{coin}} Jolicoin para desbloquear para uma melhor experiência",tips:"Obtenha {{coin}} gratuitamente",login:"Registre-se e desbloqueie com Jolicoin",noWatchAds:"Não, assistir anúncios",noThanks:"Não, obrigado",rewardTips:"Parabéns! Você recebeu {{coin}} Jolicoin. Comece a desbloquear agora!"},Nt={jolicoin:Mr,joligem:Tr,loginGuide:Pr},Sr={unlockNeeds:"잠금 해제 필요",price:"가격",unlockWithJolicoin:"Jolicoin으로 잠금 해제",unlockWithJolicoinDescription:"Jolicoin으로 자동 잠금 해제",useJolicoin:"Jolicoin 사용",payAndUnlock:"결제 및 잠금 해제",noWatchAds:"아니요, 광고 시청",noThanks:"괜찮습니다",balance:"잔액",coinUsed:"사용된 Jolicoin",unlockSuccess:"잠금 해제 성공",unlockFailed:"잠금 해제 실패",unlockFailedNotLogin:"잠금 해제를 완료하려면 로그인하세요",unlockFailedPaying:"결제가 진행 중입니다. 작업을 반복하지 마세요",unlockFailedProductIdNotFound:"상품이 만료되었습니다. 다른 상품을 선택해주세요",unlockFailedProductInvalid:"상품 정보를 가져오는데 실패했습니다. 다시 시도하거나 다른 상품을 선택해주세요",unlockFailedLaunch:"결제를 시작할 수 없습니다. 나중에 다시 시도해주세요",unlockFailedTransaction:"결제에 실패했습니다. 다시 시도해주세요",unlockFaileVerify:"주문 확인에 실패했습니다. 요금이 청구된 경우 고객 지원팀에 문의해주세요",transactionPending:"결제 확인에 실패했습니다. 결제 서비스 제공업체에 문의해주세요"},Jr={unlockNeeds:"잠금 해제 필요",price:"가격",unlockWithJolicoin:"GEM으로 잠금 해제",unlockWithJolicoinDescription:"GEM으로 자동 잠금 해제",useJolicoin:"GEM 사용",balance:"GEM 잔액"},_r={instead:"광고 시청 대신",introduct:"{{coin}} Jolicoin을 사용하여 더 나은 경험을 위해 잠금 해제",tips:"{{coin}}을 무료로 받으세요",login:"Jolicoin으로 등록 및 잠금 해제",noWatchAds:"아니요, 광고 시청",noThanks:"아니요, 감사합니다",rewardTips:"축하합니다! {{coin}} Jolicoin을 받았습니다! 잠금 해제를 시작하세요!"},Fr={jolicoin:Sr,joligem:Jr,loginGuide:_r},Dr={unlockNeeds:"解鎖需求",price:"價格",unlockWithJolicoin:"使用 Jolicoin 解鎖",unlockWithJolicoinDescription:"自動使用 Jolicoin 解鎖",useJolicoin:"使用 Jolicoin",payAndUnlock:"支付並解鎖",noWatchAds:"不,觀看廣告",noThanks:"不用了",balance:"餘額",coinUsed:"已使用的 Jolicoin",unlockSuccess:"解鎖成功",unlockFailed:"解鎖失敗",unlockFailedNotLogin:"請登入後完成解鎖",unlockFailedPaying:"支付正在進行中,請勿重複操作",unlockFailedProductIdNotFound:"商品已過期,請選擇其他商品",unlockFailedProductInvalid:"獲取商品信息失敗,請重試或選擇其他商品",unlockFailedLaunch:"無法啟動支付,請稍後重試",unlockFailedTransaction:"支付失敗,請重試",unlockFaileVerify:"訂單驗證失敗,如已扣費請聯繫客服",transactionPending:"支付確認失敗,請聯繫支付服務商獲取支持"},jr={unlockNeeds:"解鎖需求",price:"價格",unlockWithJolicoin:"使用 GEM 解鎖",unlockWithJolicoinDescription:"自動使用 GEM 解鎖",useJolicoin:"使用 GEM",balance:"GEM 餘額"},Gr={instead:"觀看廣告",introduct:"使用 {{coin}} Jolicoin 解鎖以獲得更好的體驗",tips:"免費獲取 {{coin}}",login:"註冊並解鎖",noWatchAds:"不用了,觀看廣告",noThanks:"不用了",rewardTips:"恭喜!您獲得了 {{coin}} Jolicoin!開始解鎖吧!"},$r={jolicoin:Dr,joligem:jr,loginGuide:Gr},Lr={unlockNeeds:"Entsperren erforderlich",price:"Preis",unlockWithJolicoin:"Mit Jolicoin entsperren",unlockWithJolicoinDescription:"Automatisch mit Jolicoin entsperren",useJolicoin:"Jolicoin verwenden",payAndUnlock:"Bezahlen und entsperren",noWatchAds:"Nein, Werbung ansehen",noThanks:"Nein danke",balance:"Guthaben",coinUsed:"Verwendete Jolicoin",unlockSuccess:"Erfolgreich entsperrt",unlockFailed:"Entsperren fehlgeschlagen",unlockFailedNotLogin:"Bitte melden Sie sich an, um die Entsperrung abzuschließen",unlockFailedPaying:"Zahlung läuft bereits. Bitte nicht wiederholen",unlockFailedProductIdNotFound:"Produkt ist abgelaufen. Bitte wählen Sie ein anderes Produkt",unlockFailedProductInvalid:"Produktinformationen konnten nicht abgerufen werden. Bitte versuchen Sie es erneut oder wählen Sie ein anderes Produkt",unlockFailedLaunch:"Zahlung konnte nicht gestartet werden. Bitte versuchen Sie es später erneut",unlockFailedTransaction:"Zahlung fehlgeschlagen. Bitte versuchen Sie es erneut",unlockFaileVerify:"Bestellbestätigung fehlgeschlagen. Falls Ihnen bereits etwas berechnet wurde, kontaktieren Sie bitte den Support",transactionPending:"Zahlungsbestätigung fehlgeschlagen. Bitte kontaktieren Sie Ihren Zahlungsanbieter für Unterstützung"},zr={unlockNeeds:"Entsperren erforderlich",price:"Preis",unlockWithJolicoin:"Mit GEM entsperren",unlockWithJolicoinDescription:"Automatisch mit GEM entsperren",useJolicoin:"GEM verwenden",balance:"GEM Guthaben"},Or={instead:"Anstatt Werbung anzusehen",introduct:"Verwenden Sie {{coin}} Jolicoin für eine bessere Erfahrung",tips:"Holen Sie sich {{coin}} kostenlos",login:"Registrieren und entsperren mit Jolicoin",noWatchAds:"Nein, Werbung ansehen",noThanks:"Nein danke",rewardTips:"Glückwunsch! Sie haben {{coin}} Jolicoin erhalten! Beginnen Sie mit der Entsperrung!"},Wr={jolicoin:Lr,joligem:zr,loginGuide:Or},Rr={unlockNeeds:"Déverrouillage nécessaire",price:"Prix",unlockWithJolicoin:"Déverrouillez avec Jolicoin",unlockWithJolicoinDescription:"Déverrouillez automatiquement avec Jolicoin",useJolicoin:"Utiliser Jolicoin",payAndUnlock:"Payer et déverrouiller",noWatchAds:"Non, regarder des publicités",noThanks:"Non merci",balance:"Solde",coinUsed:"Jolicoin utilisé",unlockSuccess:"Déverrouillage réussi",unlockFailed:"Échec du déverrouillage",unlockFailedNotLogin:"Connectez-vous pour terminer le déverrouillage",unlockFailedPaying:"Le paiement est déjà en cours. Veuillez ne pas répéter l'opération",unlockFailedProductIdNotFound:"Le produit a expiré. Veuillez choisir un autre produit",unlockFailedProductInvalid:"Échec de la récupération des informations du produit. Veuillez réessayer ou choisir un autre produit",unlockFailedLaunch:"Impossible de lancer le paiement. Veuillez réessayer plus tard",unlockFailedTransaction:"Échec du paiement. Veuillez réessayer",unlockFaileVerify:"Échec de la vérification de la commande. Si vous avez été facturé, veuillez contacter le support",transactionPending:"Échec de la confirmation du paiement. Veuillez contacter votre fournisseur de paiement pour obtenir de l'aide"},Ur={unlockNeeds:"Déverrouillage nécessaire",price:"Prix",unlockWithJolicoin:"Déverrouillez avec GEM",unlockWithJolicoinDescription:"Déverrouillez automatiquement avec GEM",useJolicoin:"Utiliser GEM",balance:"GEM Solde"},Br={instead:"Au lieu de regarder des publicités",introduct:"Utilisez {{coin}} Jolicoin pour débloquer pour une meilleure expérience",tips:"Obtenez {{coin}} gratuitement",login:"S'inscrire et débloquer avec Jolicoin",noWatchAds:"Non, regarder des publicités",noThanks:"Non merci",rewardTips:"Félicitations ! Vous avez reçu {{coin}} Jolicoin. Commencez à déverrouiller !"},Vr={jolicoin:Rr,joligem:Ur,loginGuide:Br},qr={unlockNeeds:"अनलॉक आवश्यक",price:"मूल्य",unlockWithJolicoin:"Jolicoin से अनलॉक करें",unlockWithJolicoinDescription:"स्वचालित रूप से Jolicoin से अनलॉक करें",useJolicoin:"Jolicoin का उपयोग करें",payAndUnlock:"भुगतान और अनलॉक",noWatchAds:"नहीं, विज्ञापन देखें",noThanks:"नहीं, धन्यवाद",balance:"शेष राशि",coinUsed:"उपयोग किया गया Jolicoin",unlockSuccess:"अनलॉक सफल",unlockFailed:"अनलॉक विफल",unlockFailedNotLogin:"अनलॉक पूरा करने के लिए लॉगिन करें",unlockFailedPaying:"भुगतान पहले से ही प्रगति पर है। कृपया ऑपरेशन दोहराएं नहीं",unlockFailedProductIdNotFound:"उत्पाद की समय सीमा समाप्त हो गई है। कृपया दूसरा उत्पाद चुनें",unlockFailedProductInvalid:"उत्पाद जानकारी प्राप्त करने में विफल। कृपया पुनः प्रयास करें या दूसरा उत्पाद चुनें",unlockFailedLaunch:"भुगतान शुरू नहीं किया जा सकता। कृपया बाद में पुनः प्रयास करें",unlockFailedTransaction:"भुगतान विफल। कृपया पुनः प्रयास करें",unlockFaileVerify:"ऑर्डर सत्यापन विफल। यदि आपसे शुल्क लिया गया है, तो कृपया सहायता से संपर्क करें",transactionPending:"भुगतान पुष्टिकरण विफल। कृपया सहायता के लिए अपने भुगतान प्रदाता से संपर्क करें"},Hr={unlockNeeds:"अनलॉक आवश्यक",price:"मूल्य",unlockWithJolicoin:"GEM से अनलॉक करें",unlockWithJolicoinDescription:"स्वचालित रूप से GEM से अनलॉक करें",useJolicoin:"GEM का उपयोग करें",balance:"GEM शेष राशि"},Qr={instead:"विज्ञापन देखने के बजाय",introduct:"{{coin}} Jolicoin का उपयोग करके बेहतर अनुभव के लिए अनलॉक करें",tips:"{{coin}} मुफ्त में प्राप्त करें",login:"Jolicoin के साथ रजिस्टर और अनलॉक करें",noWatchAds:"नहीं, विज्ञापन देखें",noThanks:"नहीं, धन्यवाद",rewardTips:"अभिनंदन! आपको {{coin}} Jolicoin मिला है! अनलॉक शुरू करें!"},Zr={jolicoin:qr,joligem:Hr,loginGuide:Qr},Yr={unlockNeeds:"Требуется разблокировка",price:"Цена",unlockWithJolicoin:"Разблокируйте с помощью Jolicoin",unlockWithJolicoinDescription:"Автоматически разблокируйте с помощью Jolicoin",useJolicoin:"Использовать Jolicoin",payAndUnlock:"Оплатить и разблокировать",noWatchAds:"Нет, смотреть рекламу",noThanks:"Нет, спасибо",balance:"Баланс",coinUsed:"Использовано Jolicoin",unlockSuccess:"Разблокировка успешна",unlockFailed:"Ошибка разблокировки",unlockFailedNotLogin:"Пожалуйста, войдите, чтобы завершить разблокировку",unlockFailedPaying:"Оплата уже выполняется. Пожалуйста, не повторяйте операцию",unlockFailedProductIdNotFound:"Срок действия товара истек. Пожалуйста, выберите другой товар",unlockFailedProductInvalid:"Не удалось получить информацию о товаре. Пожалуйста, повторите попытку или выберите другой товар",unlockFailedLaunch:"Не удалось начать оплату. Пожалуйста, повторите попытку позже",unlockFailedTransaction:"Ошибка оплаты. Пожалуйста, повторите попытку",unlockFaileVerify:"Ошибка проверки заказа. Если с вас была списана плата, пожалуйста, обратитесь в службу поддержки",transactionPending:"Ошибка подтверждения оплаты. Пожалуйста, обратитесь к вашему платежному провайдеру за поддержкой"},Kr={unlockNeeds:"Требуется разблокировка",price:"Цена",unlockWithJolicoin:"Разблокируйте с помощью GEM",unlockWithJolicoinDescription:"Разблокируйте автоматически с помощью GEM",useJolicoin:"Использовать GEM",balance:"GEM Баланс"},Xr={instead:"Вместо просмотра рекламы",introduct:"Используйте {{coin}} Jolicoin для разблокировки для лучшего опыта",tips:"Получите {{coin}} бесплатно",login:"Зарегистрируйтесь и разблокируйте с помощью Jolicoin",noWatchAds:"Нет, смотреть рекламу",noThanks:"Нет, спасибо",rewardTips:"Поздравляем! Вы получили {{coin}} Jolicoin. Начните разблокировку!"},ea={jolicoin:Yr,joligem:Kr,loginGuide:Xr},na={unlockNeeds:"আনলক প্রয়োজন",price:"মূল্য",unlockWithJolicoin:"Jolicoin দিয়ে আনলক করুন",unlockWithJolicoinDescription:"স্বয়ংক্রিয়ভাবে Jolicoin দিয়ে আনলক করুন",useJolicoin:"Jolicoin ব্যবহার করুন",payAndUnlock:"পেমেন্ট এবং আনলক",noWatchAds:"না, বিজ্ঞাপন দেখুন",noThanks:"না, ধন্যবাদ",balance:"ব্যালেন্স",coinUsed:"ব্যবহৃত Jolicoin",unlockSuccess:"আনলক সফল",unlockFailed:"আনলক ব্যর্থ",unlockFailedNotLogin:"আনলক সম্পূর্ণ করতে লগইন করুন",unlockFailedPaying:"পেমেন্ট ইতিমধ্যে চলছে। অনুগ্রহ করে পুনরাবৃত্তি করবেন না",unlockFailedProductIdNotFound:"পণ্যের মেয়াদ শেষ হয়ে গেছে। অনুগ্রহ করে অন্য পণ্য বেছে নিন",unlockFailedProductInvalid:"পণ্যের তথ্য পুনরুদ্ধার করতে ব্যর্থ। অনুগ্রহ করে আবার চেষ্টা করুন বা অন্য পণ্য বেছে নিন",unlockFailedLaunch:"পেমেন্ট শুরু করতে অক্ষম। অনুগ্রহ করে পরে আবার চেষ্টা করুন",unlockFailedTransaction:"পেমেন্ট ব্যর্থ। অনুগ্রহ করে আবার চেষ্টা করুন",unlockFaileVerify:"অর্ডার যাচাই ব্যর্থ। যদি আপনাকে চার্জ করা হয়ে থাকে, অনুগ্রহ করে সহায়তার সাথে যোগাযোগ করুন",transactionPending:"পেমেন্ট নিশ্চিতকরণ ব্যর্থ। অনুগ্রহ করে সহায়তার জন্য আপনার পেমেন্ট প্রদানকারীর সাথে যোগাযোগ করুন"},ta={unlockNeeds:"আনলক প্রয়োজন",price:"মূল্য",unlockWithJolicoin:"GEM দিয়ে আনলক করুন",unlockWithJolicoinDescription:"স্বয়ংক্রিয়ভাবে GEM দিয়ে আনলক করুন",useJolicoin:"GEM ব্যবহার করুন",balance:"GEM ব্যালেন্স"},ia={instead:"বিজ্ঞাপন দেখতে",introduct:"আপনার ভাল অভিজ্ঞতার জন্য {{coin}}Jolicoin ব্যবহার করুন",tips:"ফ্রি {{coin}} পেতে",login:"Jolicoin সাথে রেজিস্টার এবং আনলক করুন",noWatchAds:"না, বিজ্ঞাপন দেখতে",noThanks:"না, ধন্যবাদ",rewardTips:"অভিনন্দন! আপনি {{coin}} Jolicoin পেয়েছেন! আনলক শুরু করুন!"},oa={jolicoin:na,joligem:ta,loginGuide:ia},ra={unlockNeeds:"Kilidi açmak gerekli",price:"Fiyat",unlockWithJolicoin:"Jolicoin ile kilidi açın",unlockWithJolicoinDescription:"Jolicoin ile otomatik olarak kilidi açın",useJolicoin:"Jolicoin kullan",payAndUnlock:"Öde ve kilidi aç",noWatchAds:"Hayır, reklamları izle",noThanks:"Hayır, teşekkürler",balance:"Bakiye",coinUsed:"Kullanılan Jolicoin",unlockSuccess:"Kilidi açma başarılı",unlockFailed:"Kilidi açma başarısız",unlockFailedNotLogin:"Kilidi açmayı tamamlamak için lütfen giriş yapın",unlockFailedPaying:"Ödeme zaten devam ediyor. Lütfen işlemi tekrarlamayın",unlockFailedProductIdNotFound:"Ürünün süresi dolmuş. Lütfen başka bir ürün seçin",unlockFailedProductInvalid:"Ürün bilgileri alınamadı. Lütfen tekrar deneyin veya başka bir ürün seçin",unlockFailedLaunch:"Ödeme başlatılamadı. Lütfen daha sonra tekrar deneyin",unlockFailedTransaction:"Ödeme başarısız. Lütfen tekrar deneyin",unlockFaileVerify:"Sipariş doğrulaması başarısız. Ücretlendirildiyseniz, lütfen destek ile iletişime geçin",transactionPending:"Ödeme onayı başarısız. Lütfen destek için ödeme sağlayıcınızla iletişime geçin"},aa={unlockNeeds:"Kilidi açmak gerekli",price:"Fiyat",unlockWithJolicoin:"GEM ile kilidi açın",unlockWithJolicoinDescription:"GEM ile otomatik olarak kilidi açın",useJolicoin:"GEM kullan",balance:"GEM Bakiye"},ca={instead:"Reklam izleme yerine",introduct:"{{coin}} Jolicoin kullanarak daha iyi deneyim için kilidi açın",tips:"{{coin}} almak için ücretsiz",login:"Jolicoin ile kayıt ve kilidi açın",noWatchAds:"Hayır, reklamları izle",noThanks:"Hayır, teşekkürler",rewardTips:"Tebrikler! {{coin}} Jolicoin aldınız. Kilidi açmaya başlayın!"},sa={jolicoin:ra,joligem:aa,loginGuide:ca},li={en:{translations:bt},en_GB:{translations:bt},zh:{translations:xt},"zh-Hans":{translations:xt},"zh-Hant":{translations:$r},id:{translations:vt},in:{translations:vt},ms:{translations:wt},my:{translations:wt},th:{translations:fr},vi:{translations:mr},fil:{translations:It},tl:{translations:It},es:{translations:Ir},ja:{translations:Cr},pt:{translations:Nt},pt_PT:{translations:Nt},ko:{translations:Fr},de:{translations:Wr},fr:{translations:Vr},hi:{translations:Zr},ru:{translations:ea},bn:{translations:oa},tr:{translations:sa}},ui=O.createContext(void 0),di=({definition:e,children:n})=>{const t={translations:e};return s(ui.Provider,{value:t,children:n})};let Pn=null;const la={zh:"zh","zh-CN":"zh","zh-TW":"zh-Hant","zh-Hans":"zh",zh_Hans:"zh","zh-Hant":"zh-Hant",zh_Hant:"zh-Hant",id:"id",in:"id",ms:"ms",my:"ms",th:"th",vi:"vi",fil:"tl",tl:"tl",es:"es",ja:"ja",pt:"pt",pt_PT:"pt","pt-PT":"pt",ko:"ko",de:"de",fr:"fr",hi:"hi",ru:"ru",ar:"ar",tr:"tr"},ua=e=>{Pn=e},fi=()=>{if(typeof Pn!="function")return console.warn("Language handler is not registered or is not a function. Defaulting to 'en'."),"en";try{const e=Pn();return la[e]??"en"}catch(e){return console.error("Error executing registered language handler:",e),"en"}};function da(e){if(!e||e==="none")return"";const n=e.match(/^matrix\(([^)]+)\)$/);if(!n)return"";const t=n[1].split(",").map(Number);if(t.length<6)return"";const[i,o]=t,c=-Math.atan2(o,i)*(180/Math.PI),a=Math.round(c);return a===90?"rotateZ(90deg) translateY(-100vw)":a===-90||a===270?"rotateZ(-90deg) translateX(-100vh)":a===180||a===-180?"rotateZ(180deg) translate(-100vw, -100vh)":`rotateZ(${a}deg)`}function hi(e){const n=window.getComputedStyle(document.body).transform;let t="";n&&n!=="none"&&(t=da(n)),e.style.transform=t,e.style.transformOrigin="0 0"}function fa(e){const n=()=>hi(e);return window.addEventListener("resize",n),window.addEventListener("orientationchange",n),n(),()=>{window.removeEventListener("resize",n),window.removeEventListener("orientationchange",n)}}class pi{constructor(n,t){this.zIndex=n,this.pointerEvents=t,this.persistentIframe=null,this.iframeEmotionCache=null,this.iframeLoadPromise=null,this.iframeLoadResolver=null,this.removeGlobalTransformSync=null,this.referenceCount=0}create(){typeof window>"u"||this.persistentIframe&&document.body.contains(this.persistentIframe)||(this.persistentIframe=document.createElement("iframe"),this.persistentIframe.style.position="fixed",this.persistentIframe.style.left="0",this.persistentIframe.style.top="0",this.persistentIframe.style.width="100vw",this.persistentIframe.style.height="100vh",this.persistentIframe.style.zIndex=String(this.zIndex),this.persistentIframe.style.pointerEvents=this.pointerEvents,this.persistentIframe.style.border="none",this.persistentIframe.style.background="transparent",this.persistentIframe.setAttribute("allowtransparency","true"),this.persistentIframe.style.display="none",document.body.appendChild(this.persistentIframe),this.iframeLoadPromise=new Promise(n=>{this.iframeLoadResolver=n}),this.persistentIframe.onload=()=>{if(!this.persistentIframe?.contentDocument?.head){console.error("[SingletonIframe] Iframe loaded, but document or head is not available.");return}console.log("[SingletonIframe] Iframe content loaded."),this.iframeEmotionCache=ti({key:"iframe-css",container:this.persistentIframe.contentDocument.head,prepend:!0}),this.removeGlobalTransformSync&&this.removeGlobalTransformSync(),this.removeGlobalTransformSync=fa(this.persistentIframe);const n=this.persistentIframe.contentDocument;n&&["--status-bar-height","--navigation-bar-height"].forEach(i=>{const o=document.documentElement.style.getPropertyValue(i);o&&n.body.style.setProperty(i,o)}),this.iframeLoadResolver?.(),this.iframeLoadResolver=null},this.persistentIframe.onerror=()=>{console.error("[SingletonIframe] Iframe failed to load.")},this.persistentIframe.src="about:blank")}async acquire(){if(this.create(),await this.iframeLoadPromise,!this.persistentIframe||!this.iframeEmotionCache)throw new Error("[SingletonIframe] Iframe or cache not available after load.");return this.referenceCount++,this.persistentIframe.style.display==="none"&&(hi(this.persistentIframe),this.persistentIframe.style.display="block"),{iframe:this.persistentIframe,emotionCache:this.iframeEmotionCache}}release(){this.referenceCount--,this.referenceCount<=0&&(this.referenceCount=0,this.persistentIframe&&(this.persistentIframe.style.display="none"))}}const Me=new pi(99999998,"auto"),Et=new pi(99999999,"none"),ha=({title:e,content:n,noHeader:t,height:i,padding:o="16px",footerButtons:r,onClose:c})=>{const a=Ge(),l={container:m`
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: column;
|
|
54
|
+
height: 100%;
|
|
55
|
+
width: 100%;
|
|
56
|
+
max-width: ${a==="portrait"?"440px":"75%"};
|
|
57
|
+
margin: 0 auto;
|
|
58
|
+
`,header:m`
|
|
59
|
+
padding: 16px;
|
|
60
|
+
border-bottom: 1px solid #eee;
|
|
61
|
+
display: flex;
|
|
62
|
+
justify-content: space-between;
|
|
63
|
+
align-items: center;
|
|
64
|
+
`,content:m`
|
|
65
|
+
padding: ${o};
|
|
66
|
+
flex: 1;
|
|
67
|
+
overflow: auto;
|
|
68
|
+
`,footer:m`
|
|
69
|
+
padding: 16px;
|
|
70
|
+
border-top: 1px solid #eee;
|
|
71
|
+
display: flex;
|
|
72
|
+
justify-content: flex-end;
|
|
73
|
+
gap: 8px;
|
|
74
|
+
`,closeButton:m`
|
|
75
|
+
background: none;
|
|
76
|
+
border: none;
|
|
77
|
+
cursor: pointer;
|
|
78
|
+
font-size: 20px;
|
|
79
|
+
`,button:m`
|
|
80
|
+
padding: 8px 16px;
|
|
81
|
+
border-radius: 4px;
|
|
82
|
+
border: 1px solid #ddd;
|
|
83
|
+
cursor: pointer;
|
|
84
|
+
`};return s("div",{className:l.container.name,children:[!t&&s("div",{className:l.header.name,children:[s("h3",{children:e}),s("button",{className:l.closeButton.name,onClick:c,children:"×"})]}),s("div",{className:l.content.name,children:n}),r&&r.length>0&&s("div",{className:l.footer.name,children:r.map((u,d)=>s("button",{className:m`
|
|
85
|
+
${l.button}
|
|
86
|
+
background-color: ${u.variant==="primary"?"#1677ff":"#fff"};
|
|
87
|
+
color: ${u.variant==="primary"?"#fff":"#333"};
|
|
88
|
+
`.name,onClick:f=>u.onClick?.(f,{hide:c}),children:u.text},d))})]})},un=e=>{let n=!1;const t=fi(),i=li[t].translations,o=`drawer-container-${Math.random().toString(36).slice(2,10)}`;let r=null,c=null,a=null;function l(h){if(!r||!c){console.error("[Modal] Iframe or emotion cache not ready for rendering Drawer.");return}a=r.contentDocument.getElementById(o),a||(a=r.contentDocument.createElement("div"),a.id=o,r.contentDocument.body.appendChild(a)),O.render(s(ci,{value:c,children:s(di,{definition:i,children:s(Zo,{ref:k=>{},placement:e.placement??"bottom",isOpen:h,onClose:u,preventCloseOnBackdropClick:e.preventCloseOnBackdropClick??!1,backdropColor:e.backdropColor,children:s(ha,{...e,onClose:f})})})}),a)}function u(){if(n){if(n=!1,r?.contentDocument){const h=r.contentDocument.getElementById(o);h&&h.parentNode?.removeChild(h)}Me.release(),e.onClose?.()}}async function d(){const h=await Me.acquire();r=h.iframe,c=h.emotionCache,n=!0,l(!0),setTimeout(()=>{e.onOpen?.()},50)}function f(){n&&l(!1)}return{show:()=>{n||d()},hide:()=>{n&&f()},isOpen:()=>n,destroy:()=>{n&&f(),r=null,c=null,a=null,console.log("[Modal] Instance destroyed.")}}},pa=(e,n={threshold:.6})=>{const t=Ce(null),i=Ce(!1),o=Q(r=>{const[c]=r;c.isIntersecting&&!i.current?(i.current=!0,e()):c.isIntersecting||(i.current=!1)},[e]);return ge(()=>{if(t.current){const r=new IntersectionObserver(o,n);return r.observe(t.current),()=>{t.current&&r.unobserve(t.current)}}},[o,n]),t};function ga({elementTag:e="Image",src:n="",children:t,handleExposure:i,className:o,imgStyle:r,...c}){const a=pa(()=>{n&&i()});return e==="Image"?s("div",{className:o,style:{borderRadius:"8px"},children:O.h("img",{...c,ref:a,src:n??"",style:{display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px",...r||{}}})}):s("div",{...c,ref:a,className:o,children:t})}const gi=({children:e,fluid:n=!1,className:t="",style:i={},...o})=>{const r={width:"100%",marginLeft:"auto",marginRight:"auto",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box",maxWidth:n?"100%":void 0,...i};return s("div",{className:t,style:r,...o,children:e})},mi=({children:e,gutter:n=0,justify:t="start",align:i="top",className:o="",style:r={},...c})=>{const a={start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"},l={top:"flex-start",middle:"center",bottom:"flex-end"},u={display:"flex",flexWrap:"wrap",boxSizing:"border-box",justifyContent:a[t],alignItems:l[i],...r};if(n){const f=Array.isArray(n)?n[0]:n,h=Array.isArray(n)?n[1]:0;f>0&&(u.marginLeft=`-${f/2}px`,u.marginRight=`-${f/2}px`),h>0&&(u.marginTop=`-${h/2}px`,u.marginBottom=`-${h/2}px`)}const d=n?ma(e,n):e;return s("div",{className:o,style:u,...c,children:d})};function ma(e,n){if(!e)return null;const t=Array.isArray(n)?n[0]:n,i=Array.isArray(n)?n[1]:0;return Array.isArray(e)?e.map((o,r)=>o&&typeof o=="object"&&"type"in o?O.h(o.type,{...o.props,style:{...o.props.style||{},paddingLeft:t>0?`${t/2}px`:void 0,paddingRight:t>0?`${t/2}px`:void 0,paddingTop:i>0?`${i/2}px`:void 0,paddingBottom:i>0?`${i/2}px`:void 0},key:o.key||r}):o):e&&typeof e=="object"&&"type"in e?O.h(e.type,{...e.props,style:{...e.props.style||{},paddingLeft:t>0?`${t/2}px`:void 0,paddingRight:t>0?`${t/2}px`:void 0,paddingTop:i>0?`${i/2}px`:void 0,paddingBottom:i>0?`${i/2}px`:void 0}}):e}const yi=({children:e,span:n,offset:t,xs:i,sm:o,md:r,lg:c,xl:a,className:l="",style:u={},...d})=>{const f={position:"relative",width:"100%",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box",...u};if(n!==void 0){const h=n/24*100;f.flex=`0 0 ${h}%`,f.maxWidth=`${h}%`}return t!==void 0&&(f.marginLeft=`${t/24*100}%`),s("div",{className:l,style:f,...d,children:e})},ya=({game:e,layerName:n,orientation:t,routeMode:i,onGameClick:o})=>{const r=J.useCallback(l=>{l.preventDefault(),o?.(e)},[o,e]),c=J.useCallback(()=>{},[e,n]);return s(yi,{span:t==="landscape"?4:8,className:"relative px-[4px] box-border mb-[8px]",style:{marginBottom:t==="landscape"?"8px":"16px",paddingLeft:"8px",paddingRight:"8px"},onClick:r,role:"button",tabIndex:0,children:[s("div",{className:"relative w-full mb-[2px] ion-no-margin",children:s(ga,{src:e.logo??e.cover??"",className:"w-full h-full absolute top-0 left-0 aspect-square rounded-[8px] object-cover",style:{display:"block",objectFit:"cover"},handleExposure:c})}),s("div",{className:"block text-white max-w-full text-[15px] leading-[1.2] overflow-hidden whitespace-nowrap text-ellipsis font-normal break-words",style:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordBreak:"break-word",color:"white",maxWidth:"100%",fontSize:t==="landscape"?"13px":"15px",lineHeight:1.2,fontWeight:"normal",marginTop:"6px",fontFamily:"PingFangSC-Regular"},children:e.name})]},e.gameId)},ka=({list:e,routeMode:n,layerName:t,onGameClick:i,orientation:o,...r})=>s(gi,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{maxWidth:o==="landscape"?"100%":"440px",minHeight:"1px"},children:s(mi,{gutter:8,style:{display:"flex",flexWrap:o==="landscape"?"nowrap":"wrap",overflowX:o==="landscape"?"auto":"visible",paddingBottom:o==="landscape"?"10px":"0",justifyContent:o==="landscape"?"flex-start":"center"},children:e?.map(c=>s(ya,{orientation:o,game:c,routeMode:n,layerName:t,onGameClick:i},c.gameId))})}),ba=J.memo(ka);var Sn=(e=>(e.Dismiss="DISMISS",e.Quit="QUIT",e))(Sn||{});const xa=e=>{const{games:n,title:t,buttons:i,onClose:o}=e,[r,c]=te(null),a=Q(f=>{o?.({type:f.type===Sn.Quit?"quit":"dismiss"})},[o]),l=Q(f=>{o?.({type:"navigate",data:{game:f}})},[o]),u=Ge();if(!n.length)return s(O.Fragment,{});const d=Q(f=>{if(f!==null&&!f.shadowRoot){const h=f.attachShadow({mode:"open"}),k=document.createElement("style");k.textContent=`
|
|
89
|
+
.recommend-panel {
|
|
90
|
+
display: flex;
|
|
91
|
+
flex-direction: column;
|
|
92
|
+
background-color: #1a1a1a;
|
|
93
|
+
width: 100%;
|
|
94
|
+
// height: 100%;
|
|
95
|
+
}
|
|
96
|
+
.container {
|
|
97
|
+
// height: 100%;
|
|
98
|
+
display: flex;
|
|
99
|
+
flex-direction: column;
|
|
100
|
+
position: relative;
|
|
101
|
+
}
|
|
102
|
+
.title {
|
|
103
|
+
color: #ffffff;
|
|
104
|
+
font-size: 18px;
|
|
105
|
+
font-weight: 600;
|
|
106
|
+
line-height: 24px;
|
|
107
|
+
text-align: center;
|
|
108
|
+
padding: 20px 10px;
|
|
109
|
+
margin-block-end: 0px;
|
|
110
|
+
position: absolute;
|
|
111
|
+
top: 0;
|
|
112
|
+
left: 0;
|
|
113
|
+
right: 0;
|
|
114
|
+
width: 100%;
|
|
115
|
+
max-width: ${u==="portrait"?"440px":"75%"};
|
|
116
|
+
margin: 0 auto;
|
|
117
|
+
background-color: #1a1a1a;
|
|
118
|
+
z-index: 1;
|
|
119
|
+
font-family: PingFangSC-Regular;
|
|
120
|
+
}
|
|
121
|
+
.games-container {
|
|
122
|
+
width: 100%;
|
|
123
|
+
display: flex;
|
|
124
|
+
// flex: 1;
|
|
125
|
+
min-height: 120px;
|
|
126
|
+
overflow: auto;
|
|
127
|
+
margin-bottom: 88px;
|
|
128
|
+
margin-top: 64px;
|
|
129
|
+
|
|
130
|
+
@media (orientation: landscape) {
|
|
131
|
+
width: 80%;
|
|
132
|
+
margin-bottom: 75px;
|
|
133
|
+
margin-left: auto;
|
|
134
|
+
margin-right: auto;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
.buttons-container {
|
|
138
|
+
position: absolute;
|
|
139
|
+
left: 0;
|
|
140
|
+
right: 0;
|
|
141
|
+
width: calc(100% - 32px);
|
|
142
|
+
max-width: 440px;
|
|
143
|
+
margin: 0 auto;
|
|
144
|
+
background: inherit;
|
|
145
|
+
padding-top: 16px;
|
|
146
|
+
padding-bottom: 16px;
|
|
147
|
+
padding-left: 16px;
|
|
148
|
+
padding-right: 16px;
|
|
149
|
+
display: flex;
|
|
150
|
+
flex-direction: row;
|
|
151
|
+
justify-content: space-between;
|
|
152
|
+
align-items: center;
|
|
153
|
+
}
|
|
154
|
+
@media (orientation: portrait) {
|
|
155
|
+
.buttons-container {
|
|
156
|
+
bottom: 28px;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
@media (orientation: landscape) {
|
|
160
|
+
.buttons-container {
|
|
161
|
+
bottom: 0;
|
|
162
|
+
width: 80%;
|
|
163
|
+
margin-left: auto;
|
|
164
|
+
margin-right: auto;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
.button-wrapper {
|
|
168
|
+
flex: 0 0 50%;
|
|
169
|
+
box-sizing: border-box;
|
|
170
|
+
display: flex;
|
|
171
|
+
justify-content: center;
|
|
172
|
+
align-items: center;
|
|
173
|
+
}
|
|
174
|
+
.button {
|
|
175
|
+
width: 100%;
|
|
176
|
+
max-width: 160px;
|
|
177
|
+
height: 40px;
|
|
178
|
+
border-radius: 21px;
|
|
179
|
+
white-space: nowrap;
|
|
180
|
+
line-height: 40px;
|
|
181
|
+
padding-left: 8px;
|
|
182
|
+
padding-right: 8px;
|
|
183
|
+
border: 1px solid;
|
|
184
|
+
cursor: pointer;
|
|
185
|
+
flex: 1;
|
|
186
|
+
text-align: center;
|
|
187
|
+
font-size: 16px;
|
|
188
|
+
font-weight: normal;
|
|
189
|
+
outline: none;
|
|
190
|
+
overflow: hidden;
|
|
191
|
+
text-overflow: ellipsis;
|
|
192
|
+
}
|
|
193
|
+
.button-text-ellipsis {
|
|
194
|
+
display: block;
|
|
195
|
+
white-space: nowrap;
|
|
196
|
+
overflow: hidden;
|
|
197
|
+
text-overflow: ellipsis;
|
|
198
|
+
max-width: 100%; /* 确保文本不会超出按钮边界 */
|
|
199
|
+
}
|
|
200
|
+
.quit-button {
|
|
201
|
+
border-color: #ffffff30;
|
|
202
|
+
background-color: #ffffff2c;
|
|
203
|
+
color: #fff;
|
|
204
|
+
}
|
|
205
|
+
.action-button {
|
|
206
|
+
border-color: #7817FF;
|
|
207
|
+
background-color: #7817FF;
|
|
208
|
+
color: #fff;
|
|
209
|
+
}
|
|
210
|
+
`;const b=document.createElement("div");b.id="recommend-panel-content",h.appendChild(k),h.appendChild(b),c(h)}},[]);return ge(()=>{if(r){const f=r.getElementById("recommend-panel-content");f&&O.render(s("div",{className:"recommend-panel",children:s("div",{className:"container",children:[s("p",{className:"title",children:t}),s("div",{className:"games-container",children:s(ba,{list:n||[],routeMode:"REDIRECT",layerName:"RecommendedGuide",onGameClick:l,orientation:u})}),s("div",{className:"buttons-container",children:(i??[]).map((h,k)=>s("div",{className:"button-wrapper",children:s("button",{className:`button ${h.type===Sn.Quit?"quit-button":"action-button"}`,onClick:()=>a(h),children:s("span",{className:"button-text-ellipsis",children:h.text})})},k))})]})}),f)}},[r,n,t,i,a,l]),s("div",{ref:d})},va=e=>{const n=un({title:e.title,content:s(xa,{games:e.games,title:e.title,buttons:e.buttons,onClose:e.onClose}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"450px",onClose:()=>{e.onClose?.({type:"back"})},onOpen:e.onOpen});return n.show(),n},ki="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAC+lBMVEUAAABQTlBrQeL6+vufkPrEp/RcV2Pv6e23t7ehnqZVSIOZmaDy6vWRfPWDdvq6neHc29e5trzh4+DHyM2BUeHMteDIp+G2pd50SZV/aqmQkI1jWGyeYLz4+vTMh96RS8Lh2+XIwuGek6NEJn9RSF9QO8fBr+Xl1e2gh7e8e8FvUN1jO8dtbdDIzrr4zPzzxfv2yfrotPyzg/usgPrtufzBjfzyw/vjrvv80vy2hvv7z/zUnvvMl/zyv/vGkfuwgfn+9f7z1/7ep/z53Prtu/fvvf29keD///3u0vzkqfz91vv56vnorf27ifnbu/L54/3ttP3+7/zvt/q8jO+1gOzny/66gv757/zZovyjfvvy5Pr61vqjc/XlvfB0Ru+YZu68f+3+4P/+5/7bnvy6ePvgovr20fnQmvfq0/bImvafaPWDW/XNr/N7ZPPjxPHSj/DLl+7Lnu13WN9WMqHJqf/96/74x/3UtPutefjxy/Ttw/TZqe+re+/Ike2PYeStfd2NWsSVb77Ghv3+2vy8jfvcxfrntPTGhvKkbe7Qo+zSsuqdZdushdq4idl1S7zSmv3ssPvz2Pbu1fGvivCLYu2gdOuWcuqVY9KAVsXyuP7v3v3syP3bvf3Xkv2+oPy7mvzto/vnlvjgsfS7nvPEf/KSU/LbxO9xVu/Vne69l+6FWuyObuvbs+h9TOegfuacWuaoi+XPoeGic9+rct9qP7WrbfzYm/vPi/uTZ/rQiPS4f/TPwPPkpvOrlfOwc++8du2ugemIUunHpei1duGnbuGTa+DGm9+0jNGpcc9UKc20fctXI7rkvv+8sfrlw/nRpvjal/Xv3/TAzvTam/GAkfCsdejdvuSVedyYctxtNtP++f733f7ViP3Ld/rf0PT2vfPhgfNnafLjzezHuunFf+OPRN55P9WkZdKQRdBfMrFBIaxaQ/OExvLq1+pXJ+WBNuCkSdjBmtWGadKkf8mFM8eJT7dpRacnC5bA/Ph9rvOI5vFWXuzCUOJNLJZJYFROAAAALnRSTlMADP78/v4r63ZXPzH+/v37wKB6SP7x4MyhcW5K8evq4NjYi2YZ/e3a1c7IyMWtdH+scgAABvdJREFUSMeFlmVQG1EURrdQqLu7exsChYQSQkOcJI2QEBqXQoQEIi2uxb24lkJx97q7u7u7u890N6nreftr5zv3vju7O2+B3+gyakD/bvxjj64PmT58VBfgP3TpPsYzkM1m19Wxs9nqYsHBoSP/Ge+PSTLwSb1v9EtN7Zec6U8Pm09WL5/z1/xATLiKFHrrSYs0wSVB2nL7wIFIJ6EEt4vf/c/lLWtVmJVXqAK8dPtuQ1Ly9euZsM0HCmzFpfTcbn/ID8IYSBuvYixV6sv8Yltbe1uaqjyUnrnmQCRXzLIgWf+2HVJv/6uKEJHovGjRiVBlXZBWlVSbzFLSd0vvIcV8C0yPX/Ok4JUB8SEiZi06JvTOnY69dzrCCbZ6IouThT1wWFzUZPmTMciSdKXsikhVXq5g7N/byPCXy2WK3VFROlu2NqV9/blijec5S+sf5vXvjVfg/DxFCNb+PZ4yioDi6OjkBHeUpb2iSbbnlyeeO9iHP5j0XbBMzrqqC/XM0p0eTZXFUASOFDAPg8HgNrKo8LX0fAM7P/ZQ9pDx3wbgkD7q9aKsyrb9GEFMDAWs/0WA2yiIO7Z37GGHR+Z47jv9dQzG5bswfZtyS9szOSVGYIo7QnlIsIGnbaanNqbsDm4q2lVkzveXHGshrslKrN0vp1Di4d/LwyHBBra05HQVXr/0iMfgtBEmgVV9uzDhkZj1ikVxjGlLgzuBeZAAcx6BkN1zZ9M5WcGb+bf8oXz3MNITZXiFR1QmzMkxhojZsxEPER8AxiHBBu0XKfIjIHcHYhKfjgKFMbkV0dXhaxv3xoBlHYkXLvA9QajUPe4IBBoBCjaCKEpI/LoQRjH95lDwGTC0WV6q6tz9wQFwGMyJ6Eomu5qQ72GiCQQ0GoFANPopqMEyXPz5mysBoOcRVXlCEZG8lwK3gQdAgt9SMy9eF+LtCXjQgIkEOBZOEEJyv2QNTJxfvOWw0E9/GgFtOCDNldGJcIdgunOe0fD2eAK4r0x/HEkgyzwf/HIE0D9IWbl3XtKJYAIaJCCNTM5H20MwCTv8X9Bsmfb2aESIXI7DyaksasZwoFsYZ11kc4LOxp4AYhLsbSEymDtcGQUEk4GXKXACfyoDc3ccQA3amcLJq0xA2EJl0ake5Cgmkoak0WgZHWTX9EJkhi04CAWOg+HkDOrGsQA1LD+6pXq9FGEqW5jq4RGFRLpB0DrI5HQmEgl+fu4wPBwdjMNhno4D+ML8yCP16yMJSAhmZNzhKDesN4TbTg+PdCbWDYnMiHfPCNkoV7hST4wFVMKUFOez7Zx4LAQtdfnyKOzqRRDeO+M80mkLsVgkbWPZ0RA4DO/K2DEaGCLkFLho2x3aUAtBsOn0wIKFKNTq1ajVi1KWH0x3A++5uYWWXXI6WhjqGqybAQzjOS92CCOq05xREG734gpWLwNRLgOF5elYFFgIeaJElbHOW49DvhwOTJwb+wkZpt+VinU2ge2MNCTR/UShSbXEJYGdi5SggfLeUuu27igHl3JrEmAdyHutJS6IUKc6uJhAdWpXrChdAVJaqk13dlYuQ4WX6BKi3byFh+9WWQNdPPtUFOQ1520djHIws2yx1RIzVoudXcCmKF2JtGSzTlnK2fYYAIBufQPf5GTbSYTt8xaYce5cbKbTBerqfPNipWGNdJ3Eo2nfLFDoEbipQNxw9kb9NoPdPDOxYB8X8IqNdQAN/RqpYUfiIm/NkX3ingAIxtfjftOmy62ac+r5dtCCMLlQSwdlZTQ7Ub9emhjYlCMGIAYs2fQ8wmhsPbP2tjpo/lzTMluQod7C3Ry2fadXWQ1ds28SlDe32PSgtVWcZ1HHm2sCVOZDAjd8CzdoK9GHuyYnruq+BjDTnewb+GatRWuzOLfqbCzviwEp6g6vIGFebAR3lY5n0DiAE5jpVlrRb19NRHPzmXq7qna2Hc8kxYaf8omOSM6ZF8H1Wel7TDJlJvANTJ8N2y3EDbuyjcJdQT4tuae2bj21s2UVVxIhWRuUA+Wp21oPAt/pxeirra7X1D8/Y+QJIxK9QLhS9bZtYbk5Pj52YJ5v2ICZ/NMBUdQnm9Eu1GgPWRjPWlXkNTRESDintmo0ErugVTpfPifJv9cvR5zrpgbXZGJ0VXIcr8loNJ4hEuPq6n24c1ddzPUtWm+F+TkP7eqCla+2OLntaKUUfFn9fCRhiV7RXqsuJtR09cs28v70SzAttOtJeoCosTHenUkrLCuJ9rpUxq65Ftds0XUY8Ed6OIYcf3g8DsfqfSxToYCX1zU86Luh4rGxb0/gb3SXUS3fvn/47uTJk9c+XOt66EbXGt+uI4B/0Ws8icWqPn58wwar7Lwa3qHZPYH/Yj1ywLCh/aZOmDBg5GTgNz4D2CYAK8x+JcUAAAAASUVORK5CYII=",dn="https://fe-oss.jolibox.com/static/coin/jolicoin.png",Un="https://fe-oss.jolibox.com/static/coin/gem.png";function wa(e,n){const t=n.split(".");let i=e;for(const o of t){if(typeof i!="object"||i===null||!Object.prototype.hasOwnProperty.call(i,o))return;i=i[o]}return i}const Ie=()=>{const e=zi(ui);if(!e)throw new Error("useTranslations must be used within a LightIntlProvider");const{translations:n}=e;return{t:(i,o)=>{const r=wa(n,i);if(typeof r=="string"){let c=r;if(o)for(const a in o)c=c.replace(new RegExp(`{{${a}}}`,"g"),String(o[a]));return c}return console.warn(`Translation key "${i}" not found or not a string.`),`[${i}]`},translations:n}},At=({text:e,initialFontSize:n,styles:t})=>s("span",{style:t,children:s("span",{style:{fontSize:`${n}px`,display:"-webkit-box",textAlign:"left",WebkitBoxOrient:"vertical",WebkitLineClamp:2,width:"auto",whiteSpace:"normal",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},children:e})}),le={coinInfo:m`
|
|
211
|
+
display: flex;
|
|
212
|
+
width: calc(100% - 40px);
|
|
213
|
+
max-width: 720px;
|
|
214
|
+
justify-content: space-between;
|
|
215
|
+
`,coinAmount:m`
|
|
216
|
+
display: flex;
|
|
217
|
+
flex-direction: row;
|
|
218
|
+
gap: 4px;
|
|
219
|
+
align-items: center;
|
|
220
|
+
flex: 1;
|
|
221
|
+
min-width: 0;
|
|
222
|
+
`,coinAmountBalance:m`
|
|
223
|
+
display: flex;
|
|
224
|
+
flex-direction: row;
|
|
225
|
+
gap: 4px;
|
|
226
|
+
align-items: center;
|
|
227
|
+
justify-content: flex-end;
|
|
228
|
+
flex: 1;
|
|
229
|
+
min-width: 0;
|
|
230
|
+
`,coinLabelContainer:m`
|
|
231
|
+
font-weight: 600;
|
|
232
|
+
text-align: center;
|
|
233
|
+
flex-shrink: 1;
|
|
234
|
+
flex-grow: 0;
|
|
235
|
+
min-width: 30px;
|
|
236
|
+
overflow: hidden;
|
|
237
|
+
color: #fff;
|
|
238
|
+
`,coinValue:m`
|
|
239
|
+
display: flex;
|
|
240
|
+
align-items: center;
|
|
241
|
+
gap: 3px;
|
|
242
|
+
font-size: 22px;
|
|
243
|
+
font-weight: 900;
|
|
244
|
+
color: #fdde9d;
|
|
245
|
+
`,coinIcon:m`
|
|
246
|
+
width: 16px;
|
|
247
|
+
height: 16px;
|
|
248
|
+
`,gemIcon:m`
|
|
249
|
+
width: 25px;
|
|
250
|
+
height: 25px;
|
|
251
|
+
`,autoExpandLabel:m`
|
|
252
|
+
font-weight: 700;
|
|
253
|
+
text-align: center;
|
|
254
|
+
flex-shrink: 1;
|
|
255
|
+
flex-grow: 0;
|
|
256
|
+
min-width: 30px;
|
|
257
|
+
overflow: hidden;
|
|
258
|
+
width: auto;
|
|
259
|
+
max-width: 70vw;
|
|
260
|
+
display: inline-block;
|
|
261
|
+
vertical-align: middle;
|
|
262
|
+
`,coinValueText:m`
|
|
263
|
+
font-weight: 600;
|
|
264
|
+
text-align: center;
|
|
265
|
+
flex-shrink: 1;
|
|
266
|
+
flex-grow: 0;
|
|
267
|
+
font-size: 16px;
|
|
268
|
+
font-weight: 600;
|
|
269
|
+
color: #d9d9d9;
|
|
270
|
+
`},bi=({unlockNeedsAmount:e=0,balanceAmount:n=0,coinImage:t=dn,formatter:i=a=>a>999?"999+":`${a}`,hideNeeds:o=!1,hideBalance:r=!1,currency:c="JOLI_COIN"})=>{const a=i(n),{t:l}=Ie(),u=14,d=ce(()=>c==="JOLI_GEM"?"joligem.balance":"jolicoin.balance",[c]);return s("div",{style:le.coinInfo.styles,children:[!o&&s("div",{style:le.coinAmount.styles,children:[s(At,{text:l("jolicoin.price"),initialFontSize:u,styles:le.coinLabelContainer.styles}),s("div",{style:le.coinValue.styles,children:[s("img",{src:t,alt:"Jolicoin",style:c==="JOLI_GEM"?le.gemIcon.styles:le.coinIcon.styles}),s("span",{children:e})]})]}),!r&&s("div",{style:le.coinAmountBalance.styles,children:s(At,{text:l(d)+": "+a,initialFontSize:u,styles:le.coinValueText.styles})})]})},pe={card:m`
|
|
271
|
+
display: flex;
|
|
272
|
+
flex-direction: column;
|
|
273
|
+
align-items: center;
|
|
274
|
+
justify-content: center;
|
|
275
|
+
background-color: #222222;
|
|
276
|
+
border-radius: 8px;
|
|
277
|
+
padding: 24px 16px;
|
|
278
|
+
cursor: pointer;
|
|
279
|
+
transition: all 0.2s ease;
|
|
280
|
+
border: 1px solid transparent;
|
|
281
|
+
-webkit-tap-highlight-color: transparent;
|
|
282
|
+
`,selectedCard:m`
|
|
283
|
+
background: -webkit-linear-gradient(39.03deg, rgba(255, 255, 255, 0.24) 15.04%, rgba(192, 147, 255, 0.3) 73.25%) !important;
|
|
284
|
+
border-color: #7e41ff !important;
|
|
285
|
+
-webkit-tap-highlight-color: transparent;
|
|
286
|
+
`,coinContainer:m`
|
|
287
|
+
display: flex;
|
|
288
|
+
align-items: center;
|
|
289
|
+
margin-bottom: 8px;
|
|
290
|
+
`,coinIcon:m`
|
|
291
|
+
width: 21px;
|
|
292
|
+
height: 21px;
|
|
293
|
+
margin-right: 4px;
|
|
294
|
+
`,gemIcon:m`
|
|
295
|
+
width: 25px;
|
|
296
|
+
height: 25px;
|
|
297
|
+
margin-right: 4px;
|
|
298
|
+
`,coinValue:m`
|
|
299
|
+
font-size: 20px;
|
|
300
|
+
font-weight: bold;
|
|
301
|
+
color: white;
|
|
302
|
+
`,price:m`
|
|
303
|
+
font-size: 16px;
|
|
304
|
+
color: #C093FF;
|
|
305
|
+
font-weight: bold;
|
|
306
|
+
`},Ia=m`
|
|
307
|
+
box-sizing: border-box;
|
|
308
|
+
width: 100%;
|
|
309
|
+
aspect-ratio: 1/1;
|
|
310
|
+
`,Na=m`
|
|
311
|
+
aspect-ratio: 1/1; // 强制 1:1 的宽高比
|
|
312
|
+
display: flex;
|
|
313
|
+
flex-direction: column;
|
|
314
|
+
justify-content: center;
|
|
315
|
+
-webkit-tap-highlight-color: transparent;
|
|
316
|
+
`,Ea=e=>s("div",{style:Ia.styles,children:s("div",{style:Na.styles,children:s("div",{style:`${pe.card.styles} ${e.option.id===e.selectedId?pe.selectedCard.styles:""}`,onClick:()=>e.handleSelect(e.option),children:[s("div",{style:pe.coinContainer.styles,children:[s("img",{src:e.coinImageSrc,alt:"Coin",style:e.currency==="JOLI_GEM"?pe.gemIcon.styles:pe.coinIcon.styles}),s("span",{style:pe.coinValue.styles,children:e.option.coins.toLocaleString()})]}),s("div",{style:pe.price.styles,children:e.option.price})]})})}),Aa=({options:e,selectedId:n,onSelect:t,currency:i,coinImageSrc:o=dn})=>{const r=Ge(),c=a=>{t?.(a)};return s(gi,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{padding:"0px"},children:s(mi,{gutter:[10,10],style:{display:"flex","flex-wrap":"wrap"},children:e.map(a=>s(yi,{span:r==="landscape"?4:8,children:s(Ea,{currency:i,option:a,selectedId:n,coinImageSrc:o,handleSelect:c})},a.id))})})},Ca=J.memo(Aa);function Ct(e,n,t){return sn.call(n,"css")?s(Rn,si(e,n),t):s(e,n,t)}function Ma(e,n,t){return sn.call(n,"css")?s(Rn,si(e,n),t):s(e,n,t)}const We={toggleSwitch:m`
|
|
317
|
+
position: relative;
|
|
318
|
+
display: inline-block;
|
|
319
|
+
width: 33px;
|
|
320
|
+
height: 18px;
|
|
321
|
+
`,toggleInput:m`
|
|
322
|
+
opacity: 0;
|
|
323
|
+
width: 15px;
|
|
324
|
+
height: 15px;
|
|
325
|
+
`,toggleSlider:m`
|
|
326
|
+
position: absolute;
|
|
327
|
+
cursor: pointer;
|
|
328
|
+
top: 0;
|
|
329
|
+
left: 0;
|
|
330
|
+
right: 0;
|
|
331
|
+
bottom: 0;
|
|
332
|
+
background-color: #3b3b3b;
|
|
333
|
+
transition: 0.4s;
|
|
334
|
+
border-radius: 34px;
|
|
335
|
+
|
|
336
|
+
&:before {
|
|
337
|
+
position: absolute;
|
|
338
|
+
content: '';
|
|
339
|
+
height: 15px;
|
|
340
|
+
width: 15px;
|
|
341
|
+
left: 0px;
|
|
342
|
+
bottom: 2px;
|
|
343
|
+
background-color: white;
|
|
344
|
+
transition: 0.4s;
|
|
345
|
+
border-radius: 50%;
|
|
346
|
+
}
|
|
347
|
+
`,toggleSliderActive:m`
|
|
348
|
+
background-color: #6a3de8;
|
|
349
|
+
|
|
350
|
+
&:before {
|
|
351
|
+
transform: translateX(18px);
|
|
352
|
+
}
|
|
353
|
+
`},xi=({enableAutoDeduct:e,toggleEnableAutoDeduct:n})=>Ma("label",{css:We.toggleSwitch,children:[Ct("input",{css:We.toggleInput,type:"checkbox",checked:e,onChange:n}),Ct("span",{css:[We.toggleSlider,e&&We.toggleSliderActive]})]}),Bn=()=>s("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s("g",{"clip-path":"url(#clip0_2716_2719)",children:s("path",{d:"M18.3 6.20997C17.91 5.81997 17.28 5.81997 16.89 6.20997L12 11.09L7.10997 6.19997C6.71997 5.80997 6.08997 5.80997 5.69997 6.19997C5.30997 6.58997 5.30997 7.21997 5.69997 7.60997L10.59 12.5L5.69997 17.39C5.30997 17.78 5.30997 18.41 5.69997 18.8C6.08997 19.19 6.71997 19.19 7.10997 18.8L12 13.91L16.89 18.8C17.28 19.19 17.91 19.19 18.3 18.8C18.69 18.41 18.69 17.78 18.3 17.39L13.41 12.5L18.3 7.60997C18.68 7.22997 18.68 6.58997 18.3 6.20997Z",fill:"#979797"})}),s("defs",{children:s("clipPath",{id:"clip0_2716_2719",children:s("rect",{width:"24",height:"24",fill:"white",transform:"translate(0 0.5)"})})})]}),S={modal:m`
|
|
354
|
+
font-family: PingFangSC-Regular;
|
|
355
|
+
background-color: #1a1a1a;
|
|
356
|
+
color: white;
|
|
357
|
+
border-radius: 16px 16px 0 0;
|
|
358
|
+
padding: 16px;
|
|
359
|
+
padding-right: 10px;
|
|
360
|
+
width: calc(100% - 32px);
|
|
361
|
+
max-width: 720px;
|
|
362
|
+
margin: 0 auto;
|
|
363
|
+
display: flex;
|
|
364
|
+
flex-direction: column;
|
|
365
|
+
`,header:m`
|
|
366
|
+
display: flex;
|
|
367
|
+
justify-content: space-between;
|
|
368
|
+
align-items: center;
|
|
369
|
+
`,closeButton:m`
|
|
370
|
+
background: none;
|
|
371
|
+
border: none;
|
|
372
|
+
cursor: pointer;
|
|
373
|
+
color: white;
|
|
374
|
+
padding: 0px;
|
|
375
|
+
`,content:m`
|
|
376
|
+
display: flex;
|
|
377
|
+
flex-direction: column;
|
|
378
|
+
gap: 8px;
|
|
379
|
+
padding-right: 8px;
|
|
380
|
+
`,title:m`
|
|
381
|
+
font-size: 14px;
|
|
382
|
+
font-weight: 600;
|
|
383
|
+
line-height: 24px;
|
|
384
|
+
margin: 0;
|
|
385
|
+
color: #fff;
|
|
386
|
+
padding: 8px 0;
|
|
387
|
+
text-align: center;
|
|
388
|
+
`,autoDeductOption:m`
|
|
389
|
+
display: flex;
|
|
390
|
+
justify-content: space-between;
|
|
391
|
+
align-items: center;
|
|
392
|
+
-webkit-tap-highlight-color: transparent;
|
|
393
|
+
`,buttonContainer:m`
|
|
394
|
+
display: flex;
|
|
395
|
+
width: 100%;
|
|
396
|
+
gap: 16px;
|
|
397
|
+
padding-top: 0px;
|
|
398
|
+
padding-bottom: max(var(--navigation-bar-height), 12px);
|
|
399
|
+
|
|
400
|
+
@media (orientation: landscape) {
|
|
401
|
+
flex-direction: row;
|
|
402
|
+
gap: 16px;
|
|
403
|
+
}
|
|
404
|
+
`,buttonFlex:m`
|
|
405
|
+
width: 100%;
|
|
406
|
+
flex: 1 1 100%;
|
|
407
|
+
|
|
408
|
+
@media (orientation: landscape) {
|
|
409
|
+
width: 50%;
|
|
410
|
+
flex: 1 1 50%;
|
|
411
|
+
}
|
|
412
|
+
`,confirmButton:m`
|
|
413
|
+
background-color: #6a3de8;
|
|
414
|
+
color: white;
|
|
415
|
+
border: none;
|
|
416
|
+
border-radius: 40px;
|
|
417
|
+
padding: 12px;
|
|
418
|
+
font-size: 16px;
|
|
419
|
+
font-weight: 600;
|
|
420
|
+
cursor: pointer;
|
|
421
|
+
transition: background-color 0.3s;
|
|
422
|
+
-webkit-tap-highlight-color: transparent;
|
|
423
|
+
`,cancelButton:m`
|
|
424
|
+
background-color: transparent;
|
|
425
|
+
color: #d9d9d9;
|
|
426
|
+
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
427
|
+
border-radius: 40px;
|
|
428
|
+
padding: 12px;
|
|
429
|
+
font-size: 16px;
|
|
430
|
+
font-weight: 600;
|
|
431
|
+
cursor: pointer;
|
|
432
|
+
transition: background-color 0.3s;
|
|
433
|
+
-webkit-tap-highlight-color: transparent;
|
|
434
|
+
`,bottomIndicator:m`
|
|
435
|
+
width: 40px;
|
|
436
|
+
height: 4px;
|
|
437
|
+
background-color: rgba(255, 255, 255, 0.3);
|
|
438
|
+
border-radius: 2px;
|
|
439
|
+
margin: 0 auto;
|
|
440
|
+
-webkit-tap-highlight-color: transparent;
|
|
441
|
+
`},Ta=({unlockNeedsAmount:e=10,balanceAmount:n=999,defaultEnableAutoDeduct:t=!1,currency:i="JOLI_COIN",onConfirm:o,onClose:r,onEnableDeductChanged:c,confirmButtonKey:a,cancelButtonKey:l})=>{const[u,d]=te(t),f=Ge(),{t:h}=Ie(),k=()=>{o(u)},b=ce(()=>i==="JOLI_GEM"?Un:dn,[i]),p=ce(()=>i==="JOLI_GEM"?"joligem.unlockWithJolicoin":"jolicoin.unlockWithJolicoin",[i]),v=ce(()=>i==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[i]),y=Q(()=>{d(!u),c(!u)},[u]);return s("div",{style:`${S.modal.styles} ${f==="portrait"?"max-width: 440px":"max-width: 75%"}`,children:[s("div",{style:S.header.styles,children:[s(bi,{unlockNeedsAmount:e,balanceAmount:n,coinImage:b,currency:i}),s("button",{style:S.closeButton.styles,onClick:r.bind(null,{type:"CANCEL"}),children:s(Bn,{})})]}),s("div",{style:S.content.styles,children:[s("h2",{style:S.title.styles,children:h(p)}),!t&&s("div",{style:S.autoDeductOption.styles,children:[s("span",{style:m`
|
|
442
|
+
font-size: 12px;
|
|
443
|
+
font-weight: 400;
|
|
444
|
+
line-height: 1.2;
|
|
445
|
+
color: #979797;
|
|
446
|
+
`.styles,children:h(v)}),s(xi,{enableAutoDeduct:u,toggleEnableAutoDeduct:y})]}),s("section",{style:`${S.buttonContainer.styles} ${f==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[s("button",{style:`${S.confirmButton.styles} ${S.buttonFlex.styles}`,onClick:k,children:h(a)}),s("button",{style:`${S.cancelButton.styles} ${S.buttonFlex.styles}`,onClick:r.bind(null,{type:"FAILED"}),children:h(l)})]})]})]})},Pa=({unlockNeedsAmount:e=1,balanceAmount:n=0,defaultEnableAutoDeduct:t=!1,paymentChoices:i=[],currency:o="JOLI_COIN",onConfirm:r,onClose:c,onEnableDeductChanged:a,onSelect:l,confirmButtonKey:u,cancelButtonKey:d})=>{const[f,h]=te(t),{t:k}=Ie(),[b,p]=te(()=>i.find(g=>g.defaultSelected)?.productId||i?.[0]?.productId),v=Ge(),y=()=>{r(b)},x=Q(w=>{console.log(w),p(w),l(w)},[]),C=Q(()=>{h(!f),a(!f)},[f]),W=ce(()=>o==="JOLI_GEM"?Un:dn,[o]),M=ce(()=>o==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[o]);return console.log("defaultEnableAutoDeduct",t),s("div",{style:S.modal.styles,children:[s("div",{style:S.header.styles,children:[s(bi,{unlockNeedsAmount:e,balanceAmount:n,coinImage:W,currency:o}),s("button",{style:S.closeButton.styles,onClick:c.bind(null,{type:"CANCEL"}),children:s(Bn,{})})]}),s("div",{style:S.content.styles,children:[s("div",{style:m`
|
|
447
|
+
padding: 16px 0px;
|
|
448
|
+
`.styles,children:s(Ca,{options:i.map(w=>({id:w.productId,coins:w.quantity,price:w.totalAmountStr})),coinImageSrc:W,selectedId:b,currency:o,onSelect:w=>x(w.id)})}),!t&&s("div",{style:S.autoDeductOption.styles,children:[s("span",{style:m`
|
|
449
|
+
font-size: 12px;
|
|
450
|
+
font-weight: 400;
|
|
451
|
+
line-height: 1.2;
|
|
452
|
+
color: #979797;
|
|
453
|
+
`.styles,children:k(M)}),s(xi,{enableAutoDeduct:f,toggleEnableAutoDeduct:C})]}),s("section",{style:`${S.buttonContainer.styles} ${v==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[s("button",{style:`${S.confirmButton.styles} ${S.buttonFlex.styles}`,onClick:y,children:k(u)}),s("button",{style:`${S.cancelButton.styles} ${S.buttonFlex.styles}`,onClick:c.bind(null,{type:"FAILED"}),children:k(d)})]})]})]})};function Jn({children:e,values:n={},style:t}){const i=e.split(/({{\s*\w+\s*}})/g);return s("div",{style:t,children:i.map((o,r)=>{const c=o.match(/^{{\s*(\w+)\s*}}$/);if(c){const a=c[1];return n[a]!==void 0?s(O.Fragment,{children:n[a]},r):null}return s(O.Fragment,{children:o},r)})})}function Sa({src:e,alt:n="",width:t=120,height:i=120,top:o="-60px",style:r={}}){const[c,a]=te(!1);return c?null:s("div",{style:{position:"absolute",top:o,left:"50%",transform:"translateX(-50%)",zIndex:10,width:t,height:i,...r},children:s("img",{src:e,alt:n,width:t,height:i,style:{display:"block",width:"100%",height:"100%",objectFit:"contain"},onError:()=>a(!0)})})}const Ja=m`
|
|
454
|
+
display: inline-flex;
|
|
455
|
+
align-items: center;
|
|
456
|
+
justify-content: center;
|
|
457
|
+
background: #4f396d;
|
|
458
|
+
color: #fff;
|
|
459
|
+
font-size: 13px;
|
|
460
|
+
font-weight: 500;
|
|
461
|
+
border-radius: 20px;
|
|
462
|
+
padding: 0 16px;
|
|
463
|
+
min-height: 32px;
|
|
464
|
+
min-width: 40px;
|
|
465
|
+
position: relative;
|
|
466
|
+
box-sizing: border-box;
|
|
467
|
+
white-space: nowrap;
|
|
468
|
+
text-overflow: ellipsis;
|
|
469
|
+
border: 1px solid rgba(255, 255, 255, 0.52);
|
|
470
|
+
`,_a=m`
|
|
471
|
+
position: absolute;
|
|
472
|
+
left: 20%;
|
|
473
|
+
bottom: -9px;
|
|
474
|
+
transform: translateX(-50%);
|
|
475
|
+
z-index: 2;
|
|
476
|
+
pointer-events: none;
|
|
477
|
+
`;function Fa({children:e,style:n}){return s("div",{style:`${Ja.styles} ${n}`,children:[e,s("svg",{style:`${_a.styles} `,width:"18",height:"10",viewBox:"0 0 18 10",children:[s("polygon",{points:"9,10 0,1 18,1",fill:"#ffffff52"}),s("polygon",{points:"9,9 2,1 16,1",fill:"#4F396D"})]})]})}const Z={...S,header:m`
|
|
478
|
+
display: flex;
|
|
479
|
+
justify-content: flex-end;
|
|
480
|
+
align-items: center;
|
|
481
|
+
`,introduct:m`
|
|
482
|
+
display: flex;
|
|
483
|
+
flex-direction: column;
|
|
484
|
+
align-items: center;
|
|
485
|
+
justify-content: center;
|
|
486
|
+
margin-top: 24px;
|
|
487
|
+
gap: 8px;
|
|
488
|
+
padding: 0 20px;
|
|
489
|
+
`,introductSubTitle:m`
|
|
490
|
+
font-size: 14px;
|
|
491
|
+
color: rgb(255, 255, 255);
|
|
492
|
+
opacity: 0.5;
|
|
493
|
+
line-height: 21px;
|
|
494
|
+
text-align: center;
|
|
495
|
+
font-weight: 600;
|
|
496
|
+
`,introductTitle:m`
|
|
497
|
+
font-size: 16px;
|
|
498
|
+
color: #ffffff;
|
|
499
|
+
line-height: 24px;
|
|
500
|
+
text-align: center;
|
|
501
|
+
font-weight: 600;
|
|
502
|
+
`,tipsBubble:m`
|
|
503
|
+
display: inline-flex;
|
|
504
|
+
align-items: center;
|
|
505
|
+
justify-content: center;
|
|
506
|
+
background: #4f396d;
|
|
507
|
+
color: #fff;
|
|
508
|
+
font-size: 13px;
|
|
509
|
+
font-weight: 500;
|
|
510
|
+
border-radius: 20px;
|
|
511
|
+
padding: 0 16px;
|
|
512
|
+
height: 32px;
|
|
513
|
+
position: relative;
|
|
514
|
+
box-sizing: border-box;
|
|
515
|
+
white-space: nowrap;
|
|
516
|
+
text-overflow: ellipsis;
|
|
517
|
+
border: 1px solid #ffffff52;
|
|
518
|
+
z-index: 1;
|
|
519
|
+
|
|
520
|
+
&::after {
|
|
521
|
+
content: '';
|
|
522
|
+
position: absolute;
|
|
523
|
+
left: 50%;
|
|
524
|
+
bottom: -8px;
|
|
525
|
+
transform: translateX(-50%);
|
|
526
|
+
border-left: 8px solid transparent;
|
|
527
|
+
border-right: 8px solid transparent;
|
|
528
|
+
border-top: 8px solid #4f396d;
|
|
529
|
+
z-index: 2;
|
|
530
|
+
}
|
|
531
|
+
`},Da={JOLI_COIN:"https://fe-oss.jolibox.com/static/rewards/jolicoin-light.png?timestamp="+Date.now(),"ADS-JOLI_COIN":"https://fe-oss.jolibox.com/static/rewards/ads-jolicoin-light.png?timestamp="+Date.now(),JOLI_GEM:"https://fe-oss.jolibox.com/static/rewards/jolicoin-light.png?timestamp="+Date.now(),"ADS-JOLI_GEM":"https://fe-oss.jolibox.com/static/rewards/ads-jolicoin-light.png?timestamp="+Date.now()},ja=({currency:e,rewardType:n,rewardValue:t,confirmButtonKey:i,cancelButtonKey:o,onClose:r,onConfirm:c})=>{const a=n==="ADS-JOLI_COIN",{t:l}=Ie(),u=Da[n];return s("div",{style:{paddingTop:"80px"},children:s("section",{style:`${Z.modal.styles} width:calc(100% - 40px); position: relative; border-radius: 16px; padding: 0;`,children:[s(Sa,{src:u,alt:"🪙",width:213,height:125,top:"-80px"}),s("div",{style:Z.header.styles,children:s("button",{style:`${Z.closeButton.styles} padding-top: 10px; padding-right: 10px;`,onClick:r.bind(null,{type:"CANCEL"}),children:s(Bn,{})})}),s("div",{style:Z.introduct.styles,children:[a?s("span",{style:Z.introductSubTitle.styles,children:l("loginGuide.instead")}):null,s("span",{style:Z.introductTitle.styles,children:s(Jn,{children:l("loginGuide.introduct"),values:{coin:s("img",{src:u,alt:"🪙",style:{height:"20px",verticalAlign:"text-top",marginRight:"2px"}})}})})]}),s("div",{style:{width:"calc(100% - 40px)",paddingBottom:"16px"},children:s("section",{style:`${Z.buttonContainer.styles} flex-direction: column; margin-top: 48px; padding: 0 20px;`,children:[s("div",{style:{position:"relative",display:"inline-block",width:"100%",height:"100%"},children:[s("div",{style:{position:"absolute",top:"-32px",right:"-5px",width:"auto",zIndex:1},children:s(Fa,{children:s(Jn,{style:{fontSize:"12px",color:"#FFFFFF",fontWeight:600,lineHeight:"16px",textAlign:"center"},children:l("loginGuide.tips"),values:{coin:s(O.Fragment,{children:[s("img",{src:u,alt:"🪙",style:{height:"16px",verticalAlign:"text-top",marginRight:"2px"}}),t]})}})})}),s("button",{style:`${Z.confirmButton.styles} ${Z.buttonFlex.styles} padding: 0; line-height: 24px; display: flex; align-items: center; justify-content: center; overflow: hidden;`,onClick:c,children:s("span",{style:"display: flex; align-items: center; justify-content: center; width: 100%; word-break: break-word; height: 48px;",children:l(i)})})]}),s("button",{style:`${Z.cancelButton.styles} ${Z.buttonFlex.styles} line-height: 24px;`,onClick:r.bind(null,{type:"FAILED"}),children:l(o)})]})})]})})},Ga=e=>{const n=un({title:"",content:s(Ta,{currency:e.data.currency,balanceAmount:e.data.userCurrency.balance,unlockNeedsAmount:e.data.quantity,defaultEnableAutoDeduct:e.data.enableAutoDeduct,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress,onEnableDeductChanged:e.buttons.onEnableDeductChanged}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"316px",onClose:e.buttons.cancel.onPress.bind(null,{type:"CANCEL"})});return n.show(),n},$a=e=>{const n=un({title:"",content:s(Pa,{currency:e.data.currency,balanceAmount:e.data.userCurrency.balance,unlockNeedsAmount:e.data.quantity,defaultEnableAutoDeduct:e.data.enableAutoDeduct,paymentChoices:e.data.paymentChoices,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress,onEnableDeductChanged:e.buttons.onEnableDeductChanged,onSelect:e.onSelect}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"520px",onClose:e.buttons.cancel.onPress.bind(null,{type:"CANCEL"})});return n.show(),n},La=e=>{const n=un({title:"",content:s(ja,{currency:e.data.currency,rewardType:e.data.rewardType,rewardValue:e.data.rewardValue,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress}),backdropColor:"#1a1a1a",placement:"center",noHeader:!0,padding:"0px",preventCloseOnBackdropClick:!0});return n.show(),n},wi=new Map,he=(e,n)=>{wi.set(e,n)};he(/^\{slot-checkmark\}/,(e,n)=>{const t=n?.customStyle?.mark??{};return s("div",{style:t,children:s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",style:{height:"24px",verticalAlign:"middle"},children:[s("g",{clipPath:"url(#clip0_2247_16523)",children:s("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM9.29 16.29L5.7 12.7C5.31 12.31 5.31 11.68 5.7 11.29C6.09 10.9 6.72 10.9 7.11 11.29L10 14.17L16.88 7.29C17.27 6.9 17.9 6.9 18.29 7.29C18.68 7.68 18.68 8.31 18.29 8.7L10.7 16.29C10.32 16.68 9.68 16.68 9.29 16.29Z",fill:"white"})}),s("defs",{children:s("clipPath",{id:"clip0_2247_16523",children:s("rect",{width:"24",height:"24",fill:"white"})})})]})})});he(/^\{slot-coin\}/,(e,n)=>{const t=n?.coinImage??ki;return s("img",{src:t,alt:"🪙",style:{height:"1em",verticalAlign:"middle"}})});he(/^\{slot-gem\}/,(e,n)=>{const t=n?.gemImage??Un,i=n?.customStyle?.gem??{width:"28px",height:"28px"};return s("img",{src:t,alt:"🪙",style:{...i,verticalAlign:"middle"}})});const za=/^\{slot-i18n-(.+?)\}/,Oa=({i18nKey:e,i18nParams:n,fallbackText:t})=>{const{t:i}=Ie(),o=i(e,n);return s("span",{style:{width:"auto",padding:"0 2px"},children:o||t})};he(za,(e,n)=>{const t=e[1];return t?s(Oa,{i18nKey:t,i18nParams:n?.i18nParams,fallbackText:`[${t}]`}):(console.warn("No i18n key extracted from slot pattern:",e[0]),s("span",{children:n?.text??""}))});const Wa=/^\{slot-i18ntran-(.+?)\}/,Ra=({i18nKey:e,i18nParams:n,imgMap:t={},fallbackText:i})=>{const{t:o}=Ie(),r=o(e),c=Object.entries(t).reduce((a,[l,u])=>(a[l]=u(n[l]),a),{});return s(Jn,{children:r||i,values:{...n,...c}})},Ua={coin:e=>s(O.Fragment,{children:[s("img",{src:ki,alt:"coin",style:{width:16,height:16,marginRight:2,textAlign:"center"}})," ",e," Jolicoin"]})};he(Wa,(e,n)=>{const t=e[1];return t?s(Ra,{i18nKey:t,i18nParams:n?.i18nParams,imgMap:n?.imgMap??Ua,fallbackText:`[${t}]`}):s("span",{children:n?.text??""})});const Ba="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yMjk0XzQwODkpIi8+CjxwYXRoIGQ9Ik0xNC4yOTUgMjUuOTIyN0MxNC4yOTUgMjUuOTIyNyAxNy45MTI1IDIxLjY0MzYgMjEuNzc1OSAxOC4wOTg0QzI0Ljc1NzQgMTUuMzYyMSAyOC4yMTUxIDEzLjE0NzQgMjguMjE1MSAxMy4xNDc0TDI3Ljk2OTUgMTEuNDEzOEMyNy45Njk1IDExLjQxMzggMjQuMDk4NyAxMi45NzYzIDIwLjc1NzUgMTUuMTk0N0MxNy4zNjUzIDE3LjQ0NTQgMTQuNTAzMyAyMC4zNTc3IDE0LjUwMzMgMjAuMzU3N0wxMS4xMzkgMTUuNjQyOEw5LjAzOTk2IDE3LjA1MjJMMTQuMjk1IDI1LjkyMjdMMTQuMjk1IDI1LjkyMjdaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzIyOTRfNDA4OSIgeDE9IjExLjczNDEiIHkxPSIzLjE3NTQxIiB4Mj0iMTgiIHkyPSIzNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjOTc1QkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzc4MTdGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=";he(/^\{slot-success\}/,(e,n)=>s("img",{src:Ba,alt:"🪙",style:{height:"1em",verticalAlign:"middle"}}));const Va="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4xNDIxIDIwQzE1LjY2NSAyMCAyMC4xNDIxIDE1LjUyMjggMjAuMTQyMSAxMEMyMC4xNDIxIDQuNDc3MTUgMTUuNjY1IDEuNzM2OThlLTA3IDEwLjE0MjEgMS43MzY5OGUtMDdDNC42MTkyOSAxLjczNjk4ZS0wNyAwLjE0MjEzNiA0LjQ3NzE1IDAuMTQyMTM1IDEwQzAuMTQyMTM2IDE1LjUyMjggNC42MTkyOSAyMCAxMC4xNDIxIDIwWk02LjUwNTk4IDUuMDQ5OTdDNi4xMTU0NiA0LjY1OTQ1IDUuNDgyMjkgNC42NTk0NSA1LjA5MTc3IDUuMDQ5OTdDNC43MDEyNCA1LjQ0MDUgNC43MDEyNCA2LjA3MzY2IDUuMDkxNzcgNi40NjQxOUw4LjYyNzMgOS45OTk3Mkw1LjA5MTc3IDEzLjUzNTNDNC43MDEyNCAxMy45MjU4IDQuNzAxMjQgMTQuNTU4OSA1LjA5MTc3IDE0Ljk0OTVDNS40ODIyOSAxNS4zNCA2LjExNTQ2IDE1LjM0IDYuNTA1OTggMTQuOTQ5NUwxMC4wNDE1IDExLjQxMzlMMTMuNTc3IDE0Ljk0OTVDMTMuOTY3NiAxNS4zNCAxNC42MDA3IDE1LjM0IDE0Ljk5MTMgMTQuOTQ5NUMxNS4zODE4IDE0LjU1ODkgMTUuMzgxOCAxMy45MjU4IDE0Ljk5MTMgMTMuNTM1M0wxMS40NTU3IDkuOTk5NzJMMTQuOTkxMyA2LjQ2NDE5QzE1LjM4MTggNi4wNzM2NiAxNS4zODE4IDUuNDQwNSAxNC45OTEzIDUuMDQ5OTdDMTQuNjAwNyA0LjY1OTQ1IDEzLjk2NzYgNC42NTk0NSAxMy41NzcgNS4wNDk5N0wxMC4wNDE1IDguNTg1NTFMNi41MDU5OCA1LjA0OTk3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";he(/^\{slot-error\}/,(e,n)=>s("img",{src:Va,alt:"🪙",style:{height:"1em",verticalAlign:"middle"}}));const qa="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADEAAAAwCAYAAAC4wJK5AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMYSURBVHgB7ZfPi1JRFMfvjNO22VbQZlrVbpr+AIPqDxgYiJjVLGYimPUsZpHrFkIuQmoTriLElYggKhGRIgniwoUkSiphimaZv5+dc7jXOZg2My9tnnC/8PA933n3ns+955x7rxBaWlpaWlpaWlogG1wreLO1tXVJ/rcmlkjktM/nu28Yxg+4hsVi8Y18ZxNLIAJIJBIHI1Cv1+sPQQAyisfjDmFxYehQuJTLZQ8CdLvd3khKzkZGWFhjgEql8g6dhsHvcwD8hZl4JSwqBKA4HwwGXzBsAGCgAPAerlGz2UxLe8slNwKsHh0drYPzrX6/b6DfCgCgKJyq1WpI2lsOgEbf4XBsoKMAMDBwGk5mgADy+fwLaW85AKpAsVjsgapAIyaV0Nls9gm3t5LIoWQy+VgC9DgAzgj++v3+e9zejFaFXC1nPJsVhQSUytczAGhGPB7PTWlvemFDh4XL5dqEhPqUy+U+7uzsXOHvTGhcQuv1+geZtLyEGvCMCT3Y399fF6ximdXK4eHhDdmRgasl3gcCgU1hDmTsUKfTyWNz6DNLYOzDgHclu92+Jts3O1gngoTySt9VotGohcPh2+cEoTCEQbkMn/+aUkKp3Xa7rVbiNTGfsBUCVsZnstoZkyBut/uW7Og0EBp9p9O5weLdmFwDoIT6GMDctAo5YAOnv0O/Q96xSry9vb1rp4BQRQkGg3f5d0oqoUul0nNuP29RbELfP2eByGSfBkIOwWwe8BmcnNFIJPKI2y9KCqR1DhByqFAovOQjPvldNBq1sz4WLko0SPKZINvb21clCAHUarX3U0LIUM/Hx8fXZdv/9XBDIJCIM0F2d3cRRLRarc9Y1Ya8tIE9lmrc4OFGT5ytKCwM5G+hBVWy/VWewMYAuB4gD5iUZDu2iwIQEyB/JDsfdXWjDjWNRiPBvp/PGvCPOgsIjjwlNOyR3rLvLAGgNDO0eEXKZDIOaW+5bbTS1GRX54JUKvVQ2lkWQIlAAOKbzAGaCa/Xe4e9XwqRo6FQ6Gk6nXbD4jeXbfRFiDs8r8OTlpaWlpaWltJvJhoeBvCfSkcAAAAASUVORK5CYII=";he(/^\{slot-correct\}/,(e,n)=>{const t=qa,i=n.customStyle?.correct??{width:"24px",height:"24px"};return s("img",{src:t,alt:"🪙",style:{...i,verticalAlign:"middle"}})});var U="-ms-",nn="-moz-",N="-webkit-",Ii="comm",Vn="rule",qn="decl",Ha="@import",Ni="@keyframes",Qa="@layer",Za=Math.abs,fn=String.fromCharCode,Ya=$t;function Ka(e,n){return z(e,0)^45?(((n<<2^z(e,0))<<2^z(e,1))<<2^z(e,2))<<2^z(e,3):0}function Ei(e){return Lt(e).call(e)}function Xa(e,n){return(e=n.exec(e))?e[0]:e}function E(e,n,t){return e.replace(n,t)}function _n(e,n){return fe(e).call(e,n)}function z(e,n){return e.charCodeAt(n)|0}function Fe(e,n,t){return zt(e).call(e,n,t)}function ne(e){return e.length}function Hn(e){return e.length}function Re(e,n){return n.push(e),e}function ec(e,n){return Xe(e).call(e,n).join("")}var hn=1,ve=1,Ai=0,V=0,j=0,Ne="";function pn(e,n,t,i,o,r,c){return{value:e,root:n,parent:t,type:i,props:o,children:r,line:hn,column:ve,length:c,return:""}}function Ae(e,n){return Ya(pn("",null,null,"",null,null,0),e,{length:-e.length},n)}function nc(){return j}function tc(){return j=V>0?z(Ne,--V):0,ve--,j===10&&(ve=1,hn--),j}function H(){return j=V<Ai?z(Ne,V++):0,ve++,j===10&&(ve=1,hn++),j}function oe(){return z(Ne,V)}function Qe(){return V}function $e(e,n){return Fe(Ne,e,n)}function De(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ci(e){return hn=ve=1,Ai=ne(Ne=e),V=0,[]}function Mi(e){return Ne="",e}function Ze(e){return Ei($e(V-1,Fn(e===91?e+2:e===40?e+1:e)))}function ic(e){for(;(j=oe())&&j<33;)H();return De(e)>2||De(j)>3?"":" "}function oc(e,n){for(;--n&&H()&&!(j<48||j>102||j>57&&j<65||j>70&&j<97););return $e(e,Qe()+(n<6&&oe()==32&&H()==32))}function Fn(e){for(;H();)switch(j){case e:return V;case 34:case 39:e!==34&&e!==39&&Fn(j);break;case 40:e===41&&Fn(e);break;case 92:H();break}return V}function rc(e,n){for(;H()&&e+j!==57;)if(e+j===84&&oe()===47)break;return"/*"+$e(n,V-1)+"*"+fn(e===47?e:H())}function ac(e){for(;!De(oe());)H();return $e(e,V)}function cc(e){return Mi(Ye("",null,null,null,[""],e=Ci(e),0,[0],e))}function Ye(e,n,t,i,o,r,c,a,l){for(var u=0,d=0,f=c,h=0,k=0,b=0,p=1,v=1,y=1,x=0,C="",W=o,M=r,w=i,g=C;v;)switch(b=x,x=H()){case 40:if(b!=108&&z(g,f-1)==58){_n(g+=E(Ze(x),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:g+=Ze(x);break;case 9:case 10:case 13:case 32:g+=ic(b);break;case 92:g+=oc(Qe()-1,7);continue;case 47:switch(oe()){case 42:case 47:Re(sc(rc(H(),Qe()),n,t),l);break;default:g+="/"}break;case 123*p:a[u++]=ne(g)*y;case 125*p:case 59:case 0:switch(x){case 0:case 125:v=0;case 59+d:y==-1&&(g=E(g,/\f/g,"")),k>0&&ne(g)-f&&Re(k>32?Tt(g+";",i,t,f-1):Tt(E(g," ","")+";",i,t,f-2),l);break;case 59:g+=";";default:if(Re(w=Mt(g,n,t,u,d,o,a,C,W=[],M=[],f),r),x===123)if(d===0)Ye(g,n,w,w,W,r,f,a,M);else switch(h===99&&z(g,3)===110?100:h){case 100:case 108:case 109:case 115:Ye(e,w,w,i&&Re(Mt(e,w,w,0,0,o,a,C,o,W=[],f),M),o,M,f,a,i?W:M);break;default:Ye(g,w,w,w,[""],M,0,a,M)}}u=d=k=0,p=y=1,C=g="",f=c;break;case 58:f=1+ne(g),k=b;default:if(p<1){if(x==123)--p;else if(x==125&&p++==0&&tc()==125)continue}switch(g+=fn(x),x*p){case 38:y=d>0?1:(g+="\f",-1);break;case 44:a[u++]=(ne(g)-1)*y,y=1;break;case 64:oe()===45&&(g+=Ze(H())),h=oe(),d=f=ne(C=g+=ac(Qe())),x++;break;case 45:b===45&&ne(g)==2&&(p=0)}}return r}function Mt(e,n,t,i,o,r,c,a,l,u,d){for(var f=o-1,h=o===0?r:[""],k=Hn(h),b=0,p=0,v=0;b<i;++b)for(var y=0,x=Fe(e,f+1,f=Za(p=c[b])),C=e;y<k;++y)(C=Ei(p>0?h[y]+" "+x:E(x,/&\f/g,h[y])))&&(l[v++]=C);return pn(e,n,t,o===0?Vn:a,l,u,d)}function sc(e,n,t){return pn(e,n,t,Ii,fn(nc()),Fe(e,2,-2),0)}function Tt(e,n,t,i){return pn(e,n,t,qn,Fe(e,0,i),Fe(e,i+1,-1),i)}function ke(e,n){for(var t="",i=Hn(e),o=0;o<i;o++)t+=n(e[o],o,e,n)||"";return t}function lc(e,n,t,i){switch(e.type){case Qa:if(e.children.length)break;case Ha:case qn:return e.return=e.return||e.value;case Ii:return"";case Ni:return e.return=e.value+"{"+ke(e.children,i)+"}";case Vn:e.value=e.props.join(",")}return ne(t=ke(e.children,i))?e.return=e.value+"{"+t+"}":""}function uc(e){var n=Hn(e);return function(t,i,o,r){for(var c="",a=0;a<n;a++)c+=e[a](t,i,o,r)||"";return c}}function dc(e){return function(n){n.root||(n=n.return)&&e(n)}}var fc=function(n,t,i){for(var o=0,r=0;o=r,r=oe(),o===38&&r===12&&(t[i]=1),!De(r);)H();return $e(n,V)},hc=function(n,t){var i=-1,o=44;do switch(De(o)){case 0:o===38&&oe()===12&&(t[i]=1),n[i]+=fc(V-1,t,i);break;case 2:n[i]+=Ze(o);break;case 4:if(o===44){n[++i]=oe()===58?"&\f":"",t[i]=n[i].length;break}default:n[i]+=fn(o)}while(o=H());return n},pc=function(n,t){return Mi(hc(Ci(n),t))},Pt=new Gt,gc=function(n){if(!(n.type!=="rule"||!n.parent||n.length<1)){for(var t=n.value,i=n.parent,o=n.column===i.column&&n.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(n.props.length===1&&t.charCodeAt(0)!==58&&!Pt.get(i))&&!o){Pt.set(n,!0);for(var r=[],c=pc(t,r),a=i.props,l=0,u=0;l<c.length;l++)for(var d=0;d<a.length;d++,u++)n.props[u]=r[l]?c[l].replace(/&\f/g,a[d]):a[d]+" "+c[l]}}},mc=function(n){if(n.type==="decl"){var t=n.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(n.return="",n.value="")}};function Ti(e,n){switch(Ka(e,n)){case 5103:return N+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return N+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return N+e+nn+e+U+e+e;case 6828:case 4268:return N+e+U+e+e;case 6165:return N+e+U+"flex-"+e+e;case 5187:return N+e+E(e,/(\w+).+(:[^]+)/,N+"box-$1$2"+U+"flex-$1$2")+e;case 5443:return N+e+U+"flex-item-"+E(e,/flex-|-self/,"")+e;case 4675:return N+e+U+"flex-line-pack"+E(e,/align-content|flex-|-self/,"")+e;case 5548:return N+e+U+E(e,"shrink","negative")+e;case 5292:return N+e+U+E(e,"basis","preferred-size")+e;case 6060:return N+"box-"+E(e,"-grow","")+N+e+U+E(e,"grow","positive")+e;case 4554:return N+E(e,/([^-])(transform)/g,"$1"+N+"$2")+e;case 6187:return E(E(E(e,/(zoom-|grab)/,N+"$1"),/(image-set)/,N+"$1"),e,"")+e;case 5495:case 3959:return E(e,/(image-set\([^]*)/,N+"$1$`$1");case 4968:return E(E(e,/(.+:)(flex-)?(.*)/,N+"box-pack:$3"+U+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+N+e+e;case 4095:case 3583:case 4068:case 2532:return E(e,/(.+)-inline(.+)/,N+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ne(e)-1-n>6)switch(z(e,n+1)){case 109:if(z(e,n+4)!==45)break;case 102:return E(e,/(.+:)(.+)-([^]+)/,"$1"+N+"$2-$3$1"+nn+(z(e,n+3)==108?"$3":"$2-$3"))+e;case 115:return~_n(e,"stretch")?Ti(E(e,"stretch","fill-available"),n)+e:e}break;case 4949:if(z(e,n+1)!==115)break;case 6444:switch(z(e,ne(e)-3-(~_n(e,"!important")&&10))){case 107:return E(e,":",":"+N)+e;case 101:return E(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+N+(z(e,14)===45?"inline-":"")+"box$3$1"+N+"$2$3$1"+U+"$2box$3")+e}break;case 5936:switch(z(e,n+11)){case 114:return N+e+U+E(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return N+e+U+E(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return N+e+U+E(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return N+e+U+e+e}return e}var yc=function(n,t,i,o){if(n.length>-1&&!n.return)switch(n.type){case qn:n.return=Ti(n.value,n.length);break;case Ni:return ke([Ae(n,{value:E(n.value,"@","@"+N)})],o);case Vn:if(n.length)return ec(n.props,function(r){switch(Xa(r,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ke([Ae(n,{props:[E(r,/:(read-\w+)/,":"+nn+"$1")]})],o);case"::placeholder":return ke([Ae(n,{props:[E(r,/:(plac\w+)/,":"+N+"input-$1")]}),Ae(n,{props:[E(r,/:(plac\w+)/,":"+nn+"$1")]}),Ae(n,{props:[E(r,/:(plac\w+)/,U+"input-$1")]})],o)}return""})}},kc=[yc],bc=function(n){var t=n.key;if(t==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");$(Array.prototype).call(i,function(p){var v=p.getAttribute("data-emotion");fe(v).call(v," ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var o=n.stylisPlugins||kc,r={},c,a=[];c=n.container||document.head,$(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(p){for(var v=p.getAttribute("data-emotion").split(" "),y=1;y<v.length;y++)r[v[y]]=!0;a.push(p)});var l,u=[gc,mc];{var d,f=[lc,dc(function(p){d.insert(p)})],h=uc(Dn(u).call(u,o,f)),k=function(v){return ke(cc(v),h)};l=function(v,y,x,C){d=x,k(v?v+"{"+y.styles+"}":y.styles),C&&(b.inserted[y.name]=!0)}}var b={key:t,sheet:new Ht({key:t,container:c,nonce:n.nonce,speedy:n.speedy,prepend:n.prepend,insertionPoint:n.insertionPoint}),nonce:n.nonce,inserted:r,registered:{},insert:l};return b.sheet.hydrate(a),b};function St(e,n){if(e.inserted[n.name]===void 0)return e.insert("",n,e.sheet,!0)}function bn(e,n,t){var i=[],o=Je(e,i,t);return i.length<2?t:o+n(i)}var xc=function(n){var t=bc(n);t.sheet.speedy=function(a){this.isSpeedy=a},t.compat=!0;var i=function(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];var f=de(u,t.registered,void 0);return cn(t,f,!1),t.key+"-"+f.name},o=function(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];var f=de(u,t.registered),h="animation-"+f.name;return St(t,{name:f.name,styles:"@keyframes "+h+"{"+f.styles+"}"}),h},r=function(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];var f=de(u,t.registered);St(t,f)},c=function(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];return bn(t.registered,i,vc(u))};return{css:i,cx:c,injectGlobal:r,keyframes:o,hydrate:function(l){$(l).call(l,function(u){t.inserted[u]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:Zn(Je).call(Je,null,t.registered),merge:Zn(bn).call(bn,null,t.registered,i)}},vc=function e(n){for(var t="",i=0;i<n.length;i++){var o=n[i];if(o!=null){var r=void 0;switch(typeof o){case"boolean":break;case"object":{if(Ke(o))r=e(o);else{r="";for(var c in o)o[c]&&c&&(r&&(r+=" "),r+=c)}break}default:r=o}r&&(t&&(t+=" "),t+=r)}}return t},wc=xc({key:"css"}),Ic=wc.css;const Nc=(e,n)=>{const i={...{color:"#FFF",display:"inline-block",width:"auto",minWidth:"fit-content",whiteSpace:"nowrap"},...n?.customStyle?.span};if(!e.includes("{slot-"))return s("span",{style:i,children:e});const o=[];let r=0;for(;r<e.length;){let a=null,l=1/0,u=null;for(const[d,f]of wi.entries()){const h=d.source.startsWith("^")?d.source.slice(1):d.source,k=new RegExp(h,"g");k.lastIndex=r;const b=k.exec(e);b&&b.index<l&&(a=b,l=b.index,u=f)}if(a&&u){if(l>r){const d=e.substring(r,l);o.push(s("span",{style:i,children:d}))}o.push(u(a,n)),r=l+a[0].length}else{const d=e.substring(r);o.push(s("span",{style:i,children:d}));break}}const c=Ic`
|
|
532
|
+
display: 'flex',
|
|
533
|
+
alignItems: 'flex-start',
|
|
534
|
+
gap: '4px',
|
|
535
|
+
color: '#FFF',
|
|
536
|
+
fontFamily: 'PingFangSC-Regular',
|
|
537
|
+
fontSize: '16px',
|
|
538
|
+
fontStyle: 'normal',
|
|
539
|
+
fontWeight: 600,
|
|
540
|
+
lineHeight: '18px',
|
|
541
|
+
width: 'max-content'
|
|
542
|
+
`;return o.length===1?o[0]:s("div",{className:c,children:o})},Ec=({message:e,type:n="info",duration:t=3e3,onClose:i,position:o="top",customStyle:r})=>{const[c,a]=te(!0);ge(()=>{const d=setTimeout(()=>{a(!1),setTimeout(()=>{i?.()},300)},t);return()=>clearTimeout(d)},[t,i]);const l=ce(()=>{const d=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10);return Math.max(20,d)},[]),u=m`
|
|
543
|
+
position: fixed;
|
|
544
|
+
left: 50%;
|
|
545
|
+
padding: 10px 16px;
|
|
546
|
+
max-width: min(85vw, 400px);
|
|
547
|
+
// min-width: 200px;
|
|
548
|
+
width: auto;
|
|
549
|
+
font-family: PingFangSC-Regular;
|
|
550
|
+
background: ${n==="success"?"#4caf50":n==="error"?"#f44336":n==="warning"?"#ff9800":"#2F2F3B"};
|
|
551
|
+
color: white;
|
|
552
|
+
border-radius: 8px;
|
|
553
|
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
|
|
554
|
+
z-index: 9999;
|
|
555
|
+
transition: opacity 0.3s, transform 0.3s;
|
|
556
|
+
text-align: center;
|
|
557
|
+
word-wrap: break-word;
|
|
558
|
+
display: flex;
|
|
559
|
+
align-items: center;
|
|
560
|
+
justify-content: center;
|
|
561
|
+
|
|
562
|
+
/* Base styles for hidden state */
|
|
563
|
+
opacity: 0;
|
|
564
|
+
|
|
565
|
+
/* Top position styles */
|
|
566
|
+
${o==="top"&&`
|
|
567
|
+
top: max(${l}px, env(safe-area-inset-top));
|
|
568
|
+
transform: translate(-50%, -20px);
|
|
569
|
+
`}
|
|
570
|
+
|
|
571
|
+
/* Center position styles */
|
|
572
|
+
${o==="center"&&`
|
|
573
|
+
top: 50%;
|
|
574
|
+
transform: translate(-50%, -50%) scale(0.9);
|
|
575
|
+
`}
|
|
576
|
+
|
|
577
|
+
/* Visible state styles */
|
|
578
|
+
${c&&o==="top"&&`
|
|
579
|
+
opacity: 1;
|
|
580
|
+
transform: translate(-50%, 0);
|
|
581
|
+
`}
|
|
582
|
+
|
|
583
|
+
${c&&o==="center"&&`
|
|
584
|
+
opacity: 1;
|
|
585
|
+
transform: translate(-50%, -50%) scale(1);
|
|
586
|
+
`}
|
|
587
|
+
|
|
588
|
+
${r&&`
|
|
589
|
+
${Object.entries(r).map(([d,f])=>`${d}: ${f};`).join(`
|
|
590
|
+
`)}
|
|
591
|
+
`}
|
|
592
|
+
`;return s("div",{className:`toast toast-${n}`,style:u.styles,children:e})},Ac=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10),Jt=Math.max(20,Ac),_t=12,Pi=[],Si=[];function Ft(e){if(e==="top"){let n=0;Pi.forEach((t,i)=>{const o=t.querySelector(".toast");o&&(i===0?o.style.top=`max(${Jt}px, env(safe-area-inset-top))`:o.style.top=`calc(max(${Jt}px, env(safe-area-inset-top)) + ${n}px)`,n+=o.offsetHeight+_t)})}else if(e==="center"){let n=0;Si.forEach(t=>{const i=t.querySelector(".toast");i&&(i.style.top=`calc(50% + ${n}px)`,n+=i.offsetHeight+_t)})}}const Cc=async(e,n)=>{const{iframe:t,emotionCache:i}=await Et.acquire(),o=t.contentDocument;if(!o)return;const r=o.createElement("div");o.body.appendChild(r);const c=n?.position||"top",a=c==="top"?Pi:Si;a.push(r);const l=Nc(e,n),u=fi(),d=li[u].translations;function f(){o?.body.removeChild(r);const h=a.indexOf(r);h!==-1&&a.splice(h,1),Ft(c),Et.release()}setTimeout(()=>Ft(c),0),O.render(s(ci,{value:i,children:s(di,{definition:d,children:s(Ec,{message:l,type:n?.type,position:c,duration:n?.duration,onClose:f,customStyle:n?.customStyle?.base})})}),r)},Dt={container:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"transparent",zIndex:"10000"},spinner:{width:"36px",height:"36px",border:"3px solid transparent",borderTopColor:"#A86FF7",borderLeftColor:"#A86FF7",borderRadius:"50%",animation:"spin 1s linear infinite"}},Mc=`
|
|
593
|
+
@keyframes spin {
|
|
594
|
+
0% {
|
|
595
|
+
transform: rotate(0deg);
|
|
596
|
+
}
|
|
597
|
+
100% {
|
|
598
|
+
transform: rotate(360deg);
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
`,Tc=()=>s("div",{style:Dt.container,children:[s("style",{children:Mc}),s("div",{style:Dt.spinner})]});function Ji(){let e=!1,n=null,t=0;const i=new Set,o=async c=>{const a=e;if(t++,e=!0,!a)try{const{iframe:l}=await Me.acquire(),u=l.contentDocument;if(u)n=u.createElement("div"),n.id="loading-root",u.body.appendChild(n),O.render(s(Tc,{}),n);else throw new Error("Iframe document is not available.")}catch(l){console.error("[LoadingManager] Failed to show loading:",l),t=0,e=!1,Me.release();return}if(c?.duration&&typeof c.duration=="number"){const l=setTimeout(()=>{r(),i.delete(l)},c.duration);i.add(l)}},r=()=>{e&&(t--,t<=0&&(t=0,e=!1,i.forEach(c=>clearTimeout(c)),i.clear(),n&&(O.render(null,n),n.parentNode?.removeChild(n),n=null),Me.release()))};return{show:o,hide:r,get isLoading(){return e}}}const Pc=Ji();exports.createConfirmJolicoinModal=Ga;exports.createLoading=Ji;exports.createPaymentJolicoinModal=$a;exports.createRecommendModal=va;exports.createToast=Cc;exports.createUnloginJolicoinModal=La;exports.loadingManager=Pc;exports.registerLanguageHandler=ua;
|
|
38
602
|
//# sourceMappingURL=index.cjs.js.map
|