@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) • 668 B
JavaScript
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../../api/commons.js"),m=require("../../conf/index.js"),n=process.env.VITE_REACT_APP_API_ROOT||m.Config.REACT_APP_API_ROOT||null,l=o=>{const e=new FormData,{files:a,organization:t,name:r,email:i,message:c,country:p,token:d}=o;return a.forEach(s=>e.append("files",s,s.name)),e.append("organization",t),e.append("name",r),e.append("email",i),e.append("country",p),e.append("message",c),e.append("token",d),fetch((n||"")+"/api/utils/showCaseForm",{mode:"cors",method:"POST",body:e})},b=o=>u.post((n||"")+"/api/utils/subscribe",o);exports.sendShowCase=l;exports.subscribe=b;