PageSourceSearch

https://zapdata.co/_releases/admin/assets/ZapdataConverter-CZhuiF-F.js

js zapdata.co collected 2026-10-02 01:22:37 UTC 5,668 bytes, 4 lines download raw bytes

1import{r,j as e}from"./react-vendor-CQjOo-Vj.js";import{a as z,E as R,ax as l,B as y,D,aB as B}from"./App-B-9YH1AD.js";import{R as E}from"./refresh-cw-ClHeqbQi.js";import"./supabase-zVFFtMAE.js";import"./zernioPopup-BqWuxn6F.js";import"./index-DdOu1uvL.js";const x=[{code:"BRL",flag:"🇧🇷",symbol:"R$",locale:"pt-BR"},{code:"USD",flag:"🇺🇸",symbol:"$",locale:"en-US"},{code:"EUR",flag:"🇪🇺",symbol:"€",locale:"de-DE"},{code:"GBP",flag:"🇬🇧",symbol:"£",locale:"en-GB"},{code:"COP",flag:"🇨🇴",symbol:"COP$",locale:"es-CO"},{code:"MXN",flag:"🇲🇽",symbol:"MX$",locale:"es-MX"},{code:"PEN",flag:"🇵🇪",symbol:"S/",locale:"es-PE"},{code:"ARS",flag:"🇦🇷",symbol:"AR$",locale:"es-AR"},{code:"PYG",flag:"🇵🇾",symbol:"₲",locale:"es-PY"}],G=()=>{var j;const{t}=z(["tools","common"]),[a,d]=r.useState("BRL"),[g,C]=r.useState({BRL:5.12,EUR:.92,GBP:.79,COP:4150,MXN:17.2,PEN:3.72,ARS:870,PYG:7280}),[P,u]=r.useState(""),[f,b]=r.useState(!1),n={dailyCost:293,totalSpend:8789.06,avgCpc:.46,cpm:2.44},h=async()=>{b(!0);try{const o=await(await B("https://api.exchangerate-api.com/v4/latest/USD")).json();C(o.rates),u(new Date().toLocaleTimeString("pt-BR"))}catch(s){console.error("Error fetching exchange rate:",s),u(new Date().toLocaleTimeString("pt-BR"))}finally{b(!1)}};r.useEffect(()=>{h()},[]);const i=(s,o)=>{if(o==="USD")return`$ ${s.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`;
1const v=x.find(w=>w.code===o),S=s*(g[o]||1);return`${v.symbol} ${S.toLocaleString(v.locale,{minimumFractionDigits:2,maximumFractionDigits:2})}`},N=()=>{window.open("/extensions/zapdata-converter-ads.zip","_blank")},m=a!=="USD"?g[a]:1;return e.jsx(R,{children:e.jsx("div",{className:"min-h-screen bg-background",children:e.jsxs("div",{className:"container mx-auto max-w-4xl px-4 py-12",children:[e.jsxs(l.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.jsxs("h1",{className:"text-4xl md:text-5xl font-bold mb-4",children:[e.jsx("span",{className:"bg-gradient-to-r from-accent via-orange-400 to-accent bg-clip-text text-transparent",children:"Zapdata Converter ADS"}),e.jsx("br",{}),e.jsx("span",{className:"text-foreground",children:t("zapdataConverter.subtitle")})]}),e.jsxs("p",{className:"text-muted-foreground text-lg max-w-2xl mx-auto mb-8",children:[t("zapdataConverter.description1"),e.jsx("br",{}),t("zapdataConverter.description2")]}),e.jsxs(y,{onClick:N,size:"lg",className:"bg-accent hover:bg-accent/90 text-accent-foreground gap-2",children:[e.jsx(D,{className:"w-5 h-5"}),t("zapdataConverter.downloadFree")]})]}),e.jsx(l.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{delay:.2},className:"max-w-2xl mx-auto",children:e.jsxs("div",{className:"bg-card border border-border rounded-2xl p-6 md:p-8",children:[e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsx("span",{className:"text-muted-foreground",children:t("zapdataConverter.interactiveDemo")}),e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[a!=="USD"&&e.jsxs("span",{children:["1 USD = ",(j=x.find(s=>s.code===a))==null?void 0:j.symbol," ",m==null?void 0:m.toFixed(2)]}),e.jsx(y,{variant:"ghost",size:"icon",onClick:h,disabled:f,className:"h-7 w-7",children:e.jsx(E,{className:`w-4 h-4 ${f?"animate-spin":""}`})})]})]}),e.jsx("div",{className:"flex justify-center mb-8",children:e.jsx("div",{className:"flex flex-wrap items-center justify-center gap-1 bg-secondary/50 rounded-2xl p-1.5 border border-border",children:x.map(s=>e.jsxs("button",{onClick:()=>d(s.code),className:`
2                        flex items-center gap-1.5 px-3 py-2 rounded-xl text-xs font-medium transition-all
3                        ${a===s.code?"bg-accent text-accent-foreground shadow-lg":"text-muted-foreground hover:text-foreground"}
4                      `,children:[e.jsx("span",{className:"text-base",children:s.flag}),s.code]},s.code))})}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsx(c,{label:t("zapdataConverter.dailyCost"),value:i(n.dailyCost,a)}),e.jsx(c,{label:t("zapdataConverter.totalSpend"),value:i(n.totalSpend,a)}),e.jsx(c,{label:t("zapdataConverter.avgCpc"),value:i(n.avgCpc,a)}),e.jsx(c,{label:"CPM",value:i(n.cpm,a)})]}),e.jsx("p",{className:"text-center text-muted-foreground text-sm mt-8",children:t("zapdataConverter.clickHint")})]})}),e.jsxs(l.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{delay:.4},className:"mt-16 grid grid-cols-1 md:grid-cols-3 gap-6",children:[e.jsx(p,{emoji:"💱",title:t("zapdataConverter.features.instant.title"),description:t("zapdataConverter.features.instant.description")}),e.jsx(p,{emoji:"📊",title:t("zapdataConverter.features.liveRate.title"),description:t("zapdataConverter.features.liveRate.description")}),e.jsx(p,{emoji:"🎯",title:t("zapdataConverter.features.native.title"),description:t("zapdataConverter.features.native.description")})]})]})})})},c=({label:t,value:a})=>e.jsxs(l.div,{initial:{scale:.95,opacity:0},animate:{scale:1,opacity:1},transition:{duration:.2},className:"bg-secondary/30 rounded-xl p-4 border border-border/50",children:[e.jsx("p",{className:"text-muted-foreground text-sm mb-1",children:t}),e.jsx("p",{className:"text-xl md:text-2xl font-bold text-foreground",children:a})]},a),p=({emoji:t,title:a,description:d})=>e.jsxs("div",{className:"bg-card/50 border border-border rounded-xl p-6 text-center",children:[e.jsx("div",{className:"text-3xl mb-3",children:t}),e.jsx("h3",{className:"font-semibold mb-2",children:a}),e.jsx("p",{className:"text-muted-foreground text-sm",children:d})]});
4export{G as default};

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.