PageSourceSearch

https://uranus-invest.co.il/wp-content/plugins/cryptocurrency-pric…/react-widget/build/366393e906b88eb252d8.js

js uranus-invest.co.il collected 2026-10-04 22:21:35 UTC 5,129 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkreact_widget=self.webpackChunkreact_widget||[]).push([[941],{90868:(e,t,a)=>{a.d(t,{KA:()=>o,Lm:()=>l});var c=a(71083),n=a(46530),r=a(25594);const l=async()=>{var e=(new Date).getTime();let t=n.s.getObject("ccpw_crypto_calculator_data"),a=ccpw_react_data.cacheTime;if(null!=t&&0!=t.length&&e-t.exptime>Number(a)&&(n.s.remove("ccpw_crypto_calculator_data"),t="",console.log("Removed local Storage")),0!==Object.keys(t).length)return t;{const e={_wpnonce:ccpw_react_data.nonce};return c.A.defaults.headers.common["X-WP-Nonce"]=ccpw_react_data.nonce,await c.A.post(`${ccpw_react_data.restUrl}crypto-widget-pro/calculatorData`,e).then((e=>{let t=(new Date).getTime();return n.s.setObject("ccpw_crypto_calculator_data",{all:e.data,exptime:t}),{all:e.data,exptime:t}}))}},o=async(e,t,a,n,l,o)=>{try{if(t){const i={_wpnonce:ccpw_react_data.nonce,amount:t,hash:e.transactionHash,from:e.from,to:o,symbol:n,chain:l};c.A.defaults.headers.common["X-WP-Nonce"]=ccpw_react_data.nonce;const s=`${ccpw_react_data.restUrl}crypto-widget-pro/saveTransaction`,u=await c.A.post(s,i);return u.data.status&&(0,r.Bi)(a,ccpw_react_data.translations.metamask.success_payment,ccpw_react_data.translations.metamask),u.data}}catch(e){console.error(e)}}},84313:(e,t,a)=>{function c(e){let t="";return t=e<1e6?n(e):e<1e9?n(e/1e6)+"M":n(e/1e9)+"B",t}a.d(t,{G:()=>n,k:()=>c});const n=(e,t=!0)=>{const a=Math.abs(e)>=1?2:-Math.floor(Math.log10(Math.abs(e)));let c=a>2?a+3:a;const n=Number(e).toFixed(18);return"0"===parseFloat(n).toString().replace(/(\.[0-9]*[1-9])0+$/,"$1").replace(/\.$/,"")?"0.00":Number(e).toLocaleString("en-US",{minimumFractionDigits:c?Math.max(2,c):2,maximumFractionDigits:c?Math.max(2,c):4,useGrouping:t})}},91322:(e,t,a)=>{a.r(t),a.d(t,{default:()=>d});var c=a(51609),n=a(97909),r=a(84313),l=a(65789),o=a(13221),i=a(90868);let s=document.querySelector(".ccpw_react_widget.ccpw_calculator").getAttribute("data-attribute"),u=JSON.parse(s),p=u.background,m=u.fontColor;function d(e){const[t,a]=(0,c.useState)(1),[s,u]=(0,c.useState)(1),[d,f]=(0,c.useState)({coin_id:"bitcoin",name:"Bitcoin",symbol:"BTC",price:145454}),[y,b]=(0,c.useState)({coin_id:"USD",name:"USD",symbol:"USD",price:1}),[_,g]=(0,c.useState)(Array()),[h,w]=(0,c.useState)([]),[v,S]=(0,c.useState)([]),[E,C]=(0,c.useState)("none"),[N,O]=(0,c.useState)("none"),[k,q]=(0,c.useState)({quantity:1,base:"bitcoin",target:"USD"}),x=e=>new Promise((t=>{setTimeout((()=>{t((e=>h.filter((t=>t.label.toLowerCase().includes(e.toLowerCase()))))(e))}),100)}));function A(e,t){return t.find((t=>t.value===e))}function L(){let e=A(k.target,v),t=A(k.base,v);if(null!=t&&null!=e){f(t),b(e);let a=""!=k.quantity?k.quantity:1,c="";c=1==e.fiat&&1==t.fiat?a*(e.price/t.price):0==e.fiat&&0==t.fiat?a*(t.price/e.price):1==e.fiat?a*t.price*e.price:a/t.price/e.price,u(c)}}return(0,c.useEffect)((()=>{(0,i.Lm)().then((function(t){var c;(async function(e){let t=[];if(0!=e.all.fiat)return Object.entries(e.all.fiat).forEach((function(e,a){let c={value:e[0],label:e[0],price:e[1],symbol:e[0],fiat:!0};t.push(c)})),t})(c=t).then((function(t){let n=[];if(0!=c){a(k.quantity),Object.entries(c.all.crypto).forEach((function(e,t){let a={value:e[1].coin_id,label:e[1].name+" ("+e[1].symbol+")",price:e[1].price,symbol:e[1].symbol,fiat:!1};n.push(a)})),S((e=>{let a=[...t,...n];return w(a),[...t,...n]}));let r=[{label:"Fiat Currency",options:t},{label:"Cryptocurrency",options:n.slice(0,400)}];g(r),O(e.applocalize.appLocalizer.targetCurrency),C(e.applocalize.appLocalizer.baseCurrency),q((t=>({quantity:1,base:e.applocalize.appLocalizer.baseCurrency,target:e.applocalize.appLocalizer.targetCurrency}))),L()}}))}))}),[]),(0,c.useEffect)((()=>{0!=v.length&&(a(k.quantity),L())}),[k]),(0,c.createElement)("div",{className:"ccpw-Converter",style:{background:p}},0!=h.length?(0,c.createElement)("div",{className:""},(0,c.createElement)("div",{className:"converter-form"},(0,c.createElement)("input",{type:"number",className:"form-quantity",placeholder:"1",onChange:e=>{q((t=>({...t,quantity:e.target.value})))},name:"quantity",value:k.quantity,min:"1"}),(0,c.createElement)(o.A,{cacheOptions:!0,defaultOptions:_,loadOptions:x,onChange:function(e){C(e.value),q((t=>({...t,base:e.value}))),0!=v.length&&L()},value:v.filter((function(e){return e.value===E})),styles:{control:(e,t)=>({...e,minHeight:"50px"})}}),(0,c.createElement)("button",{className:"btn-swap",onClick:function(){let e=k.target,t=k.base;O(t),C(e),q((a=>({...a,base:e,target:t})))}},(0,c.createElement)(n._52,{size:"30px"})),(0,c.createElement)(o.A,{cacheOptions:!0,defaultOptions:_,loadOptions:x,onChange:function(e){O(e.value),q((t=>({...t,target:e.value}))),0!=v.length&&L()},value:v.filter((function(e){return e.value===N})),styles:{control:(e,t)=>({...e,minHeight:"50px"})}})),(0,c.createElement)("div",{className:"results",style:{color:m}},(0,c.createElement)("p",null,t||1," ",d.label),(0,c.createElement)("p",null,"="),(0,c.createElement)("p",null,(0,c.createElement)("span",{className:"result",dangerouslySetInnerHTML:{__html:(0,r.G)(s)}})," ",y.label))):(0,c.createElement)(l.A,{loader:3,width:1e3}))}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.