(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[734],{8466:function(e,t,r){"use strict";var n=r(5893),l=r(5675),s=r.n(l),a=r(658),o=r.n(a);t.Z=()=>(0,n.jsx)("div",{className:"py-4 bg-white w-screen",children:(0,n.jsxs)(o(),{width:"150px",duration:40,pauseOnHover:!1,blurBorders:!1,blurBoderColor:"#fff",children:[(0,n.jsx)(o().Slide,{children:(0,n.jsx)("div",{children:(0,n.jsx)(s(),{src:"/duffel.png",alt:"Uber",width:100,height:100,style:{objectFit:"cover"}})})}),(0,n.jsx)(o().Slide,{children:(0,n.jsx)("div",{children:(0,n.jsx)(s(),{src:"/oag2.webp",alt:"Uber",width:100,height:100,style:{objectFit:"cover"}})})}),(0,n.jsx)(o().Slide,{children:(0,n.jsx)("div",{children:(0,n.jsx)(s(),{src:"/widgety.png",alt:"Uber",width:100,height:100,style:{objectFit:"cover"}})})}),(0,n.jsx)(o().Slide,{children:(0,n.jsx)("div",{children:(0,n.jsx)(s(),{src:"/chooose.webp",alt:"Uber",width:100,height:100,style:{objectFit:"cover"}})})}),(0,n.jsx)(o().Slide,{children:(0,n.jsx)("div",{children:(0,n.jsx)(s(),{src:"/jyrney.png",alt:"Uber",width:100,height:100,style:{objectFit:"cover"}})})})]})})},9592:function(e,t,r){"use strict";var n=r(5893),l=r(5675),s=r.n(l),a=r(1664),o=r.n(a);t.Z=()=>(0,n.jsxs)("div",{className:"pt-10 w-screen text-xs pb-10 flex flex-row justify-between items-end border-teal-300 border-t shadow-xl shadow-black px-8",children:[(0,n.jsxs)("div",{className:"flex items-start flex-col",children:[(0,n.jsx)(s(),{src:"/Logo.svg",height:100,width:100,alt:"logo"}),(0,n.jsx)(o(),{className:" mt-4 text-white hover:text-blue-400",href:"/faq",children:"FAQ"}),(0,n.jsx)(o(),{className:" mt-1 text-white hover:text-blue-400",href:"/terms",children:"Terms of Service"}),(0,n.jsx)(o(),{className:" mt-1 text-white hover:text-blue-400",href:"/privacy",children:"Privacy Policy"})]}),(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)("p",{className:"font-bold text-lg",children:"Articles"}),(0,n.jsx)(o(),{href:"/blog/Zi5iKgWvPBlJzlxxpp6H",children:"Integrate with HotelBeds"}),(0,n.jsx)(o(),{href:"/blog/IVnrUgCThTGQCMKdFdww",children:"Integrate with Duffel"}),(0,n.jsx)(o(),{href:"/blog/v72vhGPmrxNbNHkIfeSb",children:"Integrate with Widgety"})]}),(0,n.jsx)("p",{className:"text-xs  text-white text-right",children:"\xa9 2024 TRAPI. All rights reserved."})]})},2019:function(e,t,r){"use strict";var n=r(5893),l=r(7294),s=r(9603),a=r(9417),o=r(5675),i=r.n(o),c=r(9332),d=r(3755),h=r(1259),m=r(5990),u=r(1664),x=r.n(u);t.Z=()=>{let[e,t]=(0,l.useState)(!1),r=(0,c.useRouter)(),[o,u]=(0,l.useState)(!1),[f,g]=(0,l.useState)(!1),b=()=>{g(!f)};(0,l.useEffect)(()=>{let e=(0,h.Aj)(d.I8,e=>{u(!!e)});return()=>e()},[]);let p=()=>{t(!e)},v=()=>{r.push("/signUp")},j=()=>{r.push("/dashboard")};return(0,n.jsxs)("div",{className:"h-16 absolute bg-transparent pt-10 pb-20 flex flex-row justify-between items-center px-4 md:px-10 w-full",children:[(0,n.jsx)(i(),{src:"/Logo.svg",height:50,width:135,alt:"logo",onClick:()=>r.push("/"),style:{cursor:"pointer"}}),(0,n.jsxs)("div",{className:"md:flex hidden gap-4",children:[(0,n.jsxs)("div",{className:"flex mr-4 items-center",children:[(0,n.jsx)(x(),{href:"/blog",className:"gradient-home-link text-sm  hover:border-b hover:border-teal-300 px-4",children:"Articles"}),(0,n.jsx)(x(),{href:"/howItWorks",className:"gradient-home-link text-sm  hover:border-b hover:border-teal-300 px-4",children:"How It Works"}),(0,n.jsx)(x(),{href:"/apiCustomers",className:"gradient-home-link text-sm  hover:border-b hover:border-teal-300 px-4",children:"API Customers"}),(0,n.jsx)(x(),{href:"/apiProvider",className:"gradient-home-link text-sm  hover:border-b hover:border-teal-300 px-4",children:"API Providers"})]}),o?(0,n.jsx)("button",{onClick:j,className:"standard-button text-sm font-semibold text-base cursor-hover gradient-button",children:"Dashboard"}):(0,n.jsx)("button",{onClick:v,className:"standard-button text-sm font-inter font-bold text-base cursor-hover gradient-button",children:"Login"}),(0,n.jsx)("button",{onClick:b,className:"gradient-text2 text-sm rounded-full font-semibold font-inter",children:"Book a Demo"})]}),(0,n.jsx)("div",{className:"md:hidden flex items-center",children:(0,n.jsx)("button",{onClick:p,children:(0,n.jsx)(s.G,{icon:a.xiG})})}),e&&(0,n.jsxs)("div",{className:"absolute inset-y-0 right-0 bg-black text-white px-8 py-6 shadow-lg z-50 flex flex-col items-end gap-5 w-2/3 h-screen shadow-lg shadow-black",children:[(0,n.jsx)("div",{className:"md:hidden flex items-center",children:(0,n.jsx)("button",{onClick:p,children:(0,n.jsx)(s.G,{icon:a.NBC})})}),(0,n.jsx)(i(),{src:"/Logo.svg",height:100,width:100,alt:"logo",style:{width:"auto",height:"auto"}}),(0,n.jsx)(x(),{href:"/blog",className:"gradient-home-link",children:"Articles"}),(0,n.jsx)(x(),{href:"/howItWorks",className:"gradient-home-link",children:"How It Works"}),(0,n.jsx)(x(),{href:"/apiCustomers",className:"gradient-home-link",children:"API Customers"}),(0,n.jsx)(x(),{href:"/apiProvider",className:"gradient-home-link",children:"API Providers"}),o?(0,n.jsx)("button",{onClick:j,className:"gradient-button rounded-full bg-white text-black cursor-hover",children:"Dashboard"}):(0,n.jsx)("button",{onClick:v,className:"gradient-button rounded-full bg-white text-black cursor-hover",children:"Login"})]}),f&&(0,n.jsx)(m.U,{onClose:b})]})}},5990:function(e,t,r){"use strict";r.d(t,{U:function(){return o}});var n=r(5893),l=r(7294);r(9603);var s=r(5675),a=r.n(s);let o=e=>{let{onClose:t}=e,[r,s]=(0,l.useState)(!1),[o,i]=(0,l.useState)(!1),c=async e=>{e.preventDefault(),i(!0);let r=new FormData(e.target),n={firstName:r.get("firstName"),surname:r.get("surname"),email:r.get("email"),companyName:r.get("companyName"),website:r.get("website"),message:r.get("message")};if(!n.email){alert("Email is required"),i(!1);return}try{(await fetch("https://api-ai-product-be-1.onrender.com/contact_us_email",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})).ok?s(!0):console.error("Failed to send email")}catch(e){console.error("Error:",e)}setTimeout(()=>{s(!1),t()},2e3),i(!1)};return(0,n.jsx)("div",{className:"modalBackground text-black flex justify-center items-center",children:r?(0,n.jsxs)("div",{className:"flex bg-white justify-center gap-2 flex-col items-center h-fit w-fit rounded-xl p-12",children:[(0,n.jsx)(a(),{src:"/Logosmall.png",alt:"Uber",width:50,height:50,style:{objectFit:"cover"}}),(0,n.jsx)("p",{className:"text-3xl font-semibold",children:"Sent!"}),(0,n.jsx)("p",{className:"text-sm text-gray-700",children:"We'll get back to you shortly."}),(0,n.jsx)("p",{className:"text-xs text-gray-400 mb-0",children:"This window will close."})]}):o?(0,n.jsxs)("div",{className:"flex bg-white justify-center gap-4 flex-col items-center h-fit w-fit rounded-xl p-12",children:[(0,n.jsx)("div",{className:"spinner"}),(0,n.jsx)("p",{className:"text-xl text-black",children:"Sending message..."})]}):(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"modalContainer w-11/12 relative flex flex-col md:flex-row bg-gray-100 rounded-lg p-4 gap-4",children:[(0,n.jsxs)("form",{className:"flex flex-col gap-2 bg-gray-200 p-4 rounded-lg w-full md:w-1/2",onSubmit:c,children:[(0,n.jsx)(a(),{src:"/Logosmall.png",alt:"Uber",width:25,height:25,style:{objectFit:"cover"}}),(0,n.jsx)("p",{className:"text-3xl text-left mb-1 font-semibold font-montserrat text-gray-800",children:"Book a Demo with us!"}),(0,n.jsx)("p",{className:"text-sm text-left mb-4 text-gray-600",children:"We love showing how Trapi can dramatically accelerate customer activation timelines to your APIs. We’ll get in touch within 24 hours."}),(0,n.jsx)("input",{name:"firstName",placeholder:"First name",className:"border rounded-lg p-2 text-sm"}),(0,n.jsx)("input",{name:"surname",placeholder:"Surname",className:"border rounded-lg p-2 text-sm"}),(0,n.jsx)("input",{name:"email",placeholder:"Email address*",className:"border rounded-lg p-2 text-sm"}),(0,n.jsx)("input",{placeholder:"Company name",name:"companyName",className:"border rounded-lg p-2 text-sm"}),(0,n.jsx)("input",{name:"website",placeholder:"Website",className:"border rounded-lg p-2 text-sm"}),(0,n.jsx)("textarea",{placeholder:"Any other information",className:"border rounded-lg p-2 text-sm",name:"message",rows:"2"}),(0,n.jsx)("button",{className:"rounded-lg shadow-gray-500 hover:bg-gray-800 shadow-sm p-2 bg-black self-end text-white w-full",children:"Send message"}),(0,n.jsx)("button",{onClick:t,className:"rounded-lg  p-2  self-end text-gray-600 w-full",children:"Close"})]}),(0,n.jsx)("div",{className:"w-full md:w-1/2 flex justify-center items-center",children:(0,n.jsx)("div",{className:"bg-gray-300 rounded-lg w-full h-full flex justify-center items-center overflow-hidden",children:(0,n.jsx)(a(),{src:"/contact-form.png",alt:"Contact Form",layout:"responsive",width:500,height:500,objectFit:"cover",className:"rounded-lg hidden md:block lg:block"})})})]})})})}},3755:function(e,t,r){"use strict";r.d(t,{Ap:function(){return d},I8:function(){return i},db:function(){return c}});var n=r(3977),l=r(9828),s=r(1259),a=r(1427);let o=(0,n.ZF)({apiKey:"AIzaSyB7qVi9yI_k64eBblngJ54v-p3RQ7MAY0s",authDomain:"chronos-c2cfd.firebaseapp.com",projectId:"chronos-c2cfd",storageBucket:"chronos-c2cfd.appspot.com",messagingSenderId:"906292532193",appId:"1:906292532193:web:96f166d687d48d2390b8a0",measurementId:"G-C49RWDPHGJ"}),i=(0,s.v0)(o),c=(0,l.ad)(o),d=new s.GH;(0,a.r)(o)},658:function(e,t,r){(()=>{"use strict";var t={n:e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},d:(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>d});let l=r(7294);var s=t.n(l),a=["children","width"];function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var c=function(e){var t,r=e.children,n=e.width,a=void 0===n?"200px":n,o=e.duration,c=e.toRight,d=void 0!==c&&c,h=e.pauseOnHover,m=void 0!==h&&h,u=e.blurBorders,x=e.blurBoderColor,f=void 0===x?"#fff":x,g=function(e){if(Array.isArray(e))return e}(t=(0,l.useState)(""))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,l,s,a,o=[],i=!0,c=!1;try{for(s=(r=r.call(e)).next;!(i=(n=s.call(r)).done)&&(o.push(n.value),2!==o.length);i=!0);}catch(e){c=!0,l=e}finally{try{if(!i&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw l}}return o}}(t,0)||function(e,t){if(e){if("string"==typeof e)return i(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,2):void 0}}(t,0)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),b=g[0],p=g[1];return(0,l.useEffect)(function(){p(function(){for(var e="",t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=0;r<10;r++)e+=t.charAt(Math.floor(Math.random()*t.length));return e}())},[]),(0,l.useEffect)(function(){var e=document.createElement("style");e.type="text/css",e.innerHTML="        @-webkit-keyframes slider_logo_slider {            0% {                transform: translateX(0);            }            100% {                transform: translateX(A_DYNAMIC_VALUE);            }        }        @-moz-keyframes slider_logo_slider {            0% {                transform: translateX(0);            }            100% {                transform: translateX(A_DYNAMIC_VALUE);            }        }".replace(/A_DYNAMIC_VALUE/g,"calc(".concat(d?"":"-").concat(a," * ").concat(null==r?void 0:r.length,")")),document.getElementsByTagName("head")[0].appendChild(e)},[d,a,r]),s().createElement("div",{style:{position:"relative"}},s().createElement("div",{style:{width:"100%",height:"auto",margin:"auto",top:0,overflow:"hidden"},onMouseEnter:function(){return m&&void(document.getElementById("slider_".concat(b)).style.animationPlayState="paused")},onMouseLeave:function(){return m&&void(document.getElementById("slider_".concat(b)).style.animationPlayState="running")},id:"slider_wrapper_".concat(b)},s().createElement("div",{style:{display:"flex",animation:"slider_logo_slider ".concat(void 0===o?40:o,"s linear infinite"),width:"calc(".concat(a," * ").concat(3*(null==r?void 0:r.length),")"),top:0},id:"slider_".concat(b)},null==r?void 0:r.map(function(e,t){return s().createElement(s().Fragment,{key:t},s().cloneElement(e,{width:a}))}),null==r?void 0:r.map(function(e,t){return s().createElement(s().Fragment,{key:t},s().cloneElement(e,{width:a}))}),null==r?void 0:r.map(function(e,t){return s().createElement(s().Fragment,{key:t},s().cloneElement(e,{width:a}))}))),void 0!==u&&u&&s().createElement(s().Fragment,null,s().createElement("div",{style:{position:"absolute",right:0,top:"0px",width:"180px",transform:"rotate(180deg)",zIndex:10,height:"105%",background:"linear-gradient(90deg, ".concat(f," 10%, rgba(255, 255, 255, 0) 80%)")}}),s().createElement("div",{style:{position:"absolute",left:0,top:"0px",width:"180px",zIndex:10,height:"120%",background:"linear-gradient(90deg, ".concat(f," 10%, rgba(255, 255, 255, 0) 80%)")}})))};c.Slide=function(e){var t=e.children,r=e.width,n=function(e,t){if(null==e)return{};var r,n,l=function(e,t){if(null==e)return{};var r,n,l={},s=Object.keys(e);for(n=0;n<s.length;n++)r=s[n],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)r=s[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,a);return s().createElement("div",o({style:{width:void 0===r?"200px":r,alignItems:"center",display:"flex"}},n),t)};let d=c;e.exports=n})()}}]);