UNPKG

@devgateway/dvz-ui-react

Version:

A modular, embeddable React component library for data visualization and UI, built with TypeScript. Provides reusable components for charts, maps, dashboards, and more, with built-in support for internationalization and Redux integration.

2 lines (1 loc) 600 B
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../../api/commons.js"),n=process.env.VITE_REACT_APP_API_ROOT,u=s=>{const e=new FormData,{files:a,organization:t,name:r,email:i,message:p,country:c,token:d}=s;return a.forEach(o=>e.append("files",o,o.name)),e.append("organization",t),e.append("name",r),e.append("email",i),e.append("country",c),e.append("message",p),e.append("token",d),fetch((n||"")+"/api/utils/showCaseForm",{mode:"cors",method:"POST",body:e})},b=s=>m.post((n||"")+"/api/utils/subscribe",s);exports.sendShowCase=u;exports.subscribe=b;