trezorxuallet.gitbook.io Open in urlscan Pro
104.18.0.81  Public Scan

URL: https://trezorxuallet.gitbook.io/_next/static/chunks/4037-4d151b686812ceb4.js
Submission: On August 20 via api from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4037],{2467:function(e,n,t){t.d(n,{M:function(){return r}});function r(e,n,{checkForDefaultPrevented:t=!0}={}){return function(r){if(e?.(r),!1===t||!r.defaultPrevented)return n?.(r)}}},4037:function(e,n,t){t.d(n,{z$:function(){return O},fC:function(){return x}});var r=t(7653),u=t(18497),o=t(20379),i=t(2467),l=t(65192),a=t(68288),c=t(72305),s=t(76646),f=t(27573),d="Checkbox",[p,m]=(0,o.b)(d),[v,h]=p(d),b=r.forwardRef((e,n)=>{let{__scopeCheckbox:t,name:o,checked:a,defaultChecked:c,required:d,disabled:p,value:m="on",onCheckedChange:h,...b}=e,[y,N]=r.useState(null),x=(0,u.e)(n,e=>N(e)),O=r.useRef(!1),R=!y||!!y.closest("form"),[C=!1,k]=(0,l.T)({prop:a,defaultProp:c,onChange:h}),M=r.useRef(C);return r.useEffect(()=>{let e=null==y?void 0:y.form;if(e){let n=()=>k(M.current);return e.addEventListener("reset",n),()=>e.removeEventListener("reset",n)}},[y,k]),(0,f.jsxs)(v,{scope:t,state:C,disabled:p,children:[(0,f.jsx)(s.WV.button,{type:"button",role:"checkbox","aria-checked":E(C)?"mixed":C,"aria-required":d,"data-state":w(C),"data-disabled":p?"":void 0,disabled:p,value:m,...b,ref:x,onKeyDown:(0,i.M)(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,i.M)(e.onClick,e=>{k(e=>!!E(e)||!e),R&&(O.current=e.isPropagationStopped(),O.current||e.stopPropagation())})}),R&&(0,f.jsx)(g,{control:y,bubbles:!O.current,name:o,value:m,checked:C,required:d,disabled:p,style:{transform:"translateX(-100%)"}})]})});b.displayName=d;var y="CheckboxIndicator",N=r.forwardRef((e,n)=>{let{__scopeCheckbox:t,forceMount:r,...u}=e,o=h(y,t);return(0,f.jsx)(c.z,{present:r||E(o.state)||!0===o.state,children:(0,f.jsx)(s.WV.span,{"data-state":w(o.state),"data-disabled":o.disabled?"":void 0,...u,ref:n,style:{pointerEvents:"none",...e.style}})})});N.displayName=y;var g=e=>{let{control:n,checked:t,bubbles:u=!0,...o}=e,i=r.useRef(null),l=function(e){let n=r.useRef({value:e,previous:e});return r.useMemo(()=>(n.current.value!==e&&(n.current.previous=n.current.value,n.current.value=e),n.current.previous),[e])}(t),c=(0,a.t)(n);return r.useEffect(()=>{let e=i.current,n=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(l!==t&&n){let r=new Event("click",{bubbles:u});e.indeterminate=E(t),n.call(e,!E(t)&&t),e.dispatchEvent(r)}},[l,t,u]),(0,f.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:!E(t)&&t,...o,tabIndex:-1,ref:i,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function E(e){return"indeterminate"===e}function w(e){return E(e)?"indeterminate":e?"checked":"unchecked"}var x=b,O=N},18497:function(e,n,t){t.d(n,{F:function(){return u},e:function(){return o}});var r=t(7653);function u(...e){return n=>e.forEach(e=>{"function"==typeof e?e(n):null!=e&&(e.current=n)})}function o(...e){return r.useCallback(u(...e),e)}},20379:function(e,n,t){t.d(n,{b:function(){return o}});var r=t(7653),u=t(27573);function o(e,n=[]){let t=[],o=()=>{let n=t.map(e=>r.createContext(e));return function(t){let u=t?.[e]||n;return r.useMemo(()=>({[`__scope${e}`]:{...t,[e]:u}}),[t,u])}};return o.scopeName=e,[function(n,o){let i=r.createContext(o),l=t.length;function a(n){let{scope:t,children:o,...a}=n,c=t?.[e][l]||i,s=r.useMemo(()=>a,Object.values(a));return(0,u.jsx)(c.Provider,{value:s,children:o})}return t=[...t,o],a.displayName=n+"Provider",[a,function(t,u){let a=u?.[e][l]||i,c=r.useContext(a);if(c)return c;if(void 0!==o)return o;throw Error(`\`${t}\` must be used within \`${n}\``)}]},function(...e){let n=e[0];if(1===e.length)return n;let t=()=>{let t=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let u=t.reduce((n,{useScope:t,scopeName:r})=>{let u=t(e)[`__scope${r}`];return{...n,...u}},{});return r.useMemo(()=>({[`__scope${n.scopeName}`]:u}),[u])}};return t.scopeName=n.scopeName,t}(o,...n)]}},72305:function(e,n,t){t.d(n,{z:function(){return l}});var r=t(7653),u=t(3458),o=t(18497),i=t(32316),l=e=>{var n,t;let l,c;let{present:s,children:f}=e,d=function(e){var n,t;let[o,l]=r.useState(),c=r.useRef({}),s=r.useRef(e),f=r.useRef("none"),[d,p]=(n=e?"mounted":"unmounted",t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,n)=>{let r=t[e][n];return null!=r?r:e},n));return r.useEffect(()=>{let e=a(c.current);f.current="mounted"===d?e:"none"},[d]),(0,i.b)(()=>{let n=c.current,t=s.current;if(t!==e){let r=f.current,u=a(n);e?p("MOUNT"):"none"===u||(null==n?void 0:n.display)==="none"?p("UNMOUNT"):t&&r!==u?p("ANIMATION_OUT"):p("UNMOUNT"),s.current=e}},[e,p]),(0,i.b)(()=>{if(o){let e=e=>{let n=a(c.current).includes(e.animationName);e.target===o&&n&&u.flushSync(()=>p("ANIMATION_END"))},n=e=>{e.target===o&&(f.current=a(c.current))};return o.addEventListener("animationstart",n),o.addEventListener("animationcancel",e),o.addEventListener("animationend",e),()=>{o.removeEventListener("animationstart",n),o.removeEventListener("animationcancel",e),o.removeEventListener("animationend",e)}}p("ANIMATION_END")},[o,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{e&&(c.current=getComputedStyle(e)),l(e)},[])}}(s),p="function"==typeof f?f({present:d.isPresent}):r.Children.only(f),m=(0,o.e)(d.ref,(l=null===(n=Object.getOwnPropertyDescriptor(p.props,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in l&&l.isReactWarning?p.ref:(l=null===(t=Object.getOwnPropertyDescriptor(p,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in l&&l.isReactWarning?p.props.ref:p.props.ref||p.ref);return"function"==typeof f||d.isPresent?r.cloneElement(p,{ref:m}):null};function a(e){return(null==e?void 0:e.animationName)||"none"}l.displayName="Presence"},76646:function(e,n,t){t.d(n,{WV:function(){return l},jH:function(){return a}});var r=t(7653),u=t(3458),o=t(92721),i=t(27573),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,n)=>{let t=r.forwardRef((e,t)=>{let{asChild:r,...u}=e,l=r?o.g7:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(l,{...u,ref:t})});return t.displayName=`Primitive.${n}`,{...e,[n]:t}},{});function a(e,n){e&&u.flushSync(()=>e.dispatchEvent(n))}},92721:function(e,n,t){t.d(n,{g7:function(){return i}});var r=t(7653),u=t(18497),o=t(27573),i=r.forwardRef((e,n)=>{let{children:t,...u}=e,i=r.Children.toArray(t),a=i.find(c);if(a){let e=a.props.children,t=i.map(n=>n!==a?n:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,o.jsx)(l,{...u,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,t):null})}return(0,o.jsx)(l,{...u,ref:n,children:t})});i.displayName="Slot";var l=r.forwardRef((e,n)=>{let{children:t,...o}=e;if(r.isValidElement(t)){let e,i;let l=(e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?t.props.ref:t.props.ref||t.ref;return r.cloneElement(t,{...function(e,n){let t={...n};for(let r in n){let u=e[r],o=n[r];/^on[A-Z]/.test(r)?u&&o?t[r]=(...e)=>{o(...e),u(...e)}:u&&(t[r]=u):"style"===r?t[r]={...u,...o}:"className"===r&&(t[r]=[u,o].filter(Boolean).join(" "))}return{...e,...t}}(o,t.props),ref:n?(0,u.F)(n,l):l})}return r.Children.count(t)>1?r.Children.only(null):null});l.displayName="SlotClone";var a=({children:e})=>(0,o.jsx)(o.Fragment,{children:e});function c(e){return r.isValidElement(e)&&e.type===a}},63465:function(e,n,t){t.d(n,{W:function(){return u}});var r=t(7653);function u(e){let n=r.useRef(e);return r.useEffect(()=>{n.current=e}),r.useMemo(()=>(...e)=>n.current?.(...e),[])}},65192:function(e,n,t){t.d(n,{T:function(){return o}});var r=t(7653),u=t(63465);function o({prop:e,defaultProp:n,onChange:t=()=>{}}){let[o,i]=function({defaultProp:e,onChange:n}){let t=r.useState(e),[o]=t,i=r.useRef(o),l=(0,u.W)(n);return r.useEffect(()=>{i.current!==o&&(l(o),i.current=o)},[o,i,l]),t}({defaultProp:n,onChange:t}),l=void 0!==e,a=l?e:o,c=(0,u.W)(t);return[a,r.useCallback(n=>{if(l){let t="function"==typeof n?n(e):n;t!==e&&c(t)}else i(n)},[l,e,i,c])]}},32316:function(e,n,t){t.d(n,{b:function(){return u}});var r=t(7653),u=globalThis?.document?r.useLayoutEffect:()=>{}},68288:function(e,n,t){t.d(n,{t:function(){return o}});var r=t(7653),u=t(32316);function o(e){let[n,t]=r.useState(void 0);return(0,u.b)(()=>{if(e){t({width:e.offsetWidth,height:e.offsetHeight});let n=new ResizeObserver(n=>{let r,u;if(!Array.isArray(n)||!n.length)return;let o=n[0];if("borderBoxSize"in o){let e=o.borderBoxSize,n=Array.isArray(e)?e[0]:e;r=n.inlineSize,u=n.blockSize}else r=e.offsetWidth,u=e.offsetHeight;t({width:r,height:u})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}t(void 0)},[e]),n}}}]);
//# sourceMappingURL=4037-4d151b686812ceb4.js.map