(window.webpackJsonpAPI=window.webpackJsonpAPI||[]).push([[0],{170:function(e,t){},261:function(e,t,a){e.exports=a(500)},266:function(e,t,a){},289:function(e,t){},290:function(e,t){},291:function(e,t){},292:function(e,t){},293:function(e,t){},491:function(e,t,a){},500:function(e,t,a){"use strict";a.r(t);var n=a(1),l=a.n(n),r=a(56),o=a.n(r),s=(a(266),a(8)),i=a(7),c=a(10),u=a(9),m=a(11),d=a(27),h=a(65),p=a(20),g=a.n(p),E=a(17),b=a.n(E);var f=function(){var e=document.createElement("link");e.href="/css/geocoder.css",e.rel="stylesheet",e.async=!0,document.head.appendChild(e)},y=a(14),v=a(208),S=a(118),O=a(13),A=a(78),I=(a(97),a(179),a(211)),C=a(212),k=a(213),P=a(122),T=a(214),j=a(216),N=a(235),_=a(219),w=a(218),M=a(217),x=a(251),R=a(225),U=a(226),L=a(209),W=a(210),G=a(229),B=a(121),K=a(227),D=a(16),H=a(503),F=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(c.a)(this,Object(u.a)(t).call(this,e))).state={modal:!1,nestedModal:!1,closeAll:!1,signupEmail:"",signupPassword:"",loading:!1,loadingSSO:!1,success:!1,isSignup:!0,isSsoLogin:!0,errorMessage:"",baseWebUrl:"https://ip2loc.com",baseApiUrl:"https://api.ip2loc.com"},a.toggle=a.toggle.bind(Object(y.a)(a)),a.handleEmailPasswordSubmit=a.handleEmailPasswordSubmit.bind(Object(y.a)(a)),a.handleValidSubmit=a.handleValidSubmit.bind(Object(y.a)(a)),a.handleSSOSubmit=a.handleSSOSubmit.bind(Object(y.a)(a)),a.handleInvalidSubmit=a.handleInvalidSubmit.bind(Object(y.a)(a)),a.updateSignupEmail=a.updateSignupEmail.bind(Object(y.a)(a)),a.updateSignupPassword=a.updateSignupPassword.bind(Object(y.a)(a)),a}return Object(m.a)(t,e),Object(i.a)(t,[{key:"toggle",value:function(e){}},{key:"componentDidMount",value:function(){var e=this;this.props.onMounted&&this.props.onMounted({toggle:function(t){return e.toggle(t)}})}},{key:"updateSignupEmail",value:function(e){this.setState({signupEmail:e.target.value})}},{key:"updateSignupPassword",value:function(e){this.setState({signupPassword:e.target.value})}},{key:"handleInvalidSubmit",value:function(e,t,a){this.setState({email:a.email,error:!0})}},{key:"handleEmailPasswordSubmit",value:function(){console.log("handleEmailPasswordSubmit: "+this.state.baseWebUrl),this.setState({isSsoLogin:!1}),this.form.submit()}},{key:"handleSSOSubmit",value:function(){console.log("handleSSOSubmit: "+this.state.baseWebUrl),this.setState({isSsoLogin:!0}),this.form.submit()}},{key:"handleValidSubmit",value:function(){var e=this;console.log("Your input email is: "+this.state.signupEmail),console.log("baseWebUrl: "+this.state.baseWebUrl);var t=this.state.baseWebUrl+"/user/";this.state.isSsoLogin?t+="requestsso":t+=this.state.isSignup?"signup":"login",this.setState({loading:!0}),fetch(t,{method:"post",headers:{Accept:"application/json"},body:JSON.stringify({email:this.state.signupEmail})}).then((function(e){return e.json()})).then((function(t){if(console.log("response success = "+t.success+", error = "+t.error),t.success)e.setState({errorMessage:"",success:!0});else switch(console.log("success: false"+t.error),t.error){case 208:e.setState({errorMessage:"Email already exists!"});break;case 403:e.setState({errorMessage:"Invalid Email!"});break;case 404:e.setState({errorMessage:"Email not exists!"});break;case 429:e.setState({errorMessage:"Too many requests, try again later."});break;default:e.setState({errorMessage:"Server Error: "+t.error})}})).catch((function(t){console.error(t),console.log("success: false catch!"),e.setState({errorMessage:"can't reach server"})})).finally((function(){e.setState({loading:!1})}))}},{key:"render",value:function(){var e=this;return l.a.createElement(x.a,{isOpen:this.state.modal,toggle:this.toggle,className:this.props.className},l.a.createElement(R.a,{toggle:this.toggle},this.state.isSignup?"Sign up":"Login"),l.a.createElement(U.a,null,this.state.success?l.a.createElement(D.AvForm,null,l.a.createElement(L.a,{form:!0},l.a.createElement(W.a,{md:12},l.a.createElement(G.a,null))),l.a.createElement(D.AvGroup,null,this.state.errorMessage?l.a.createElement(B.a,{color:"danger"},this.state.errorMessage):l.a.createElement(B.a,{color:"success"},"Successful! Check your Email. ",l.a.createElement(O.a,{icon:"check"}))),l.a.createElement(S.a,{color:"primary",className:"float-left",id:"buttonOk",onClick:this.handleValidSubmit},l.a.createElement("span",null,"Resend "),l.a.createElement(H.a,null))):l.a.createElement(D.AvForm,{ref:function(t){return e.form=t},onValidSubmit:this.handleValidSubmit,onInvalidSubmit:this.handleInvalidSubmit},l.a.createElement(L.a,{form:!0},l.a.createElement(W.a,{md:12},l.a.createElement(G.a,null,l.a.createElement(D.AvField,{onChange:this.updateSignupEmail,name:"email",label:"Email Address",type:"email",id:"useremail",required:!0})))),this.state.isSignup?l.a.createElement(D.AvGroup,{check:!0},l.a.createElement("small",null,"By signing up, you agree to our terms of service and privacy policy.")):"",this.state.errorMessage?l.a.createElement(B.a,{color:"danger"},this.state.errorMessage):"",l.a.createElement("br",null),l.a.createElement("div",{className:"col-md-12 text-center"},l.a.createElement(S.a,{color:"primary",block:!0,id:"buttonsso",onClick:this.handleSSOSubmit,disabled:this.state.loading&&this.state.isSsoLogin},this.state.loading&&this.state.isSsoLogin?l.a.createElement("span",null,l.a.createElement(O.a,{icon:"spinner",spin:!0})," "):l.a.createElement("span",null,"Submit"))))),l.a.createElement(K.a,null))}}]),t}(l.a.Component),z=Object(h.f)(F),Y=a(26),q=function(e){function t(e){var a;Object(s.a)(this,t),a=Object(c.a)(this,Object(u.a)(t).call(this,e)),console.log("REACT_APP_ENVIRONMENT is => ",Object({NODE_ENV:"production",PUBLIC_URL:".",REACT_APP_FLAVOR:"geocoder",REACT_APP_TITLE:"Ip2Loc",REACT_APP_HOME_TITLE:"IP 2 Location API, detect Language, Currency and more from Ip Address",REACT_APP_HOME_TITLE_2_LINE:"Ready to Save Time and Money?",REACT_APP_HOME_TITLE_3_LINE:"",REACT_APP_HOME_H1:"[ACCENT]IP 2 Location API[/ACCENT], detect Language, Currency and more from Ip Address",REACT_APP_HOME_H2:"",REACT_APP_HOME_HERO_SHOT_H2:"[ACCENT]Benefit[/ACCENT] from Ip2Loc\u2019s [ACCENT]reliable[/ACCENT] and [ACCENT]developer-friendly[/ACCENT] tools.",REACT_APP_HOME_HERO_WHY_0:"The Power of Geolocation: Use it for Targeted Advertising, Fraud Prevention, Website Localization, Content Personalization, Geotargeting and much more.",REACT_APP_HOME_HERO_WHY_1:"Targeted Advertising: Tailoring ads based on geographic location of website visitors.",REACT_APP_HOME_HERO_WHY_2:"Fraud Prevention: Detecting fraudulent activities by comparing IP location with user's billing or shipping address.",REACT_APP_HOME_HERO_WHY_3:"Website Localization: Automatically presenting website in appropriate language and currency based on visitor's location.",REACT_APP_HOME_HERO_WHY_4:"Content Personalization: Personalizing website content based on visitor's location.",REACT_APP_HOME_HERO_WHY_5:"Targeting regions or countries with marketing campaigns.",REACT_APP_HOME_TITLE_FREE:"Free contingent: 15.000 Requests per month!",REACT_APP_HOME_TEST_IT:"Geolocation is a powerful tool that businesses can use to target their advertising, prevent fraud, localize their website, personalize content, and target specific locations for their products or services. IP 2 Location API is a popular geolocation service that can detect a user's location, language, currency, and other details from their IP address.",REACT_APP_KEYWORDS:"ip api, ip to location api, geoip api, ip to country api",REACT_APP_DESCRIPTION:"IP to location REST API using JSON, XML and Yaml supporting PHP, JavaScript, Node, Java, and more.",REACT_APP_HOME_CALL2ACTION:"Get your [LIGHT]API Key[/LIGHT] now",REACT_APP_DEV_BASE_WEB_URL:"http://localhost:8080",REACT_APP_DEV_BASE_API_URL:"http://0.0.0.0:8080",REACT_APP_BASE_WEB_URL:"https://ip2loc.com",REACT_APP_BASE_API_URL:"https://api.ip2loc.com",REACT_APP_COLOR:"#355691",REACT_APP_BACKGROUND_COLOR:"#00a8ff",REACT_APP_BACKGROUND_IMAGE:"/img/world.svg"})),console.log("REACT_APP_ENVIRONMENT flavor => ","geocoder"),console.log("REACT_APP_ENVIRONMENT flavor => ","geocoder"),a.toggleNav=a.toggleNav.bind(Object(y.a)(a)),a.logout=a.logout.bind(Object(y.a)(a)),a.goToPageAccount=a.goToPageAccount.bind(Object(y.a)(a));var n=e.cookies;return a.state={isOpen:!1,session:void 0!==n.get("session"),baseWebUrl:"https://ip2loc.com"},console.log("cookies has session : "+a.state.session),console.log("cookies session: "+n.get("session")),console.log("loggedInOnly: "+a.props.loggedInOnly),a.props.loggedInOnly&&!a.state.session&&a.props.history.push("/login"),a}return Object(m.a)(t,e),Object(i.a)(t,[{key:"toggleNav",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"toggleModalMounted",value:function(e){this.modalSignup=e}},{key:"toggleSignup",value:function(){this.modalSignup.toggle(!0)}},{key:"toggleLogin",value:function(){this.modalSignup.toggle(!1)}},{key:"goToPageAccount",value:function(){this.props.history.push("/dashboard"),console.log("goToPageAccount: /dashboard")}},{key:"logout",value:function(){var e=this;console.log("logout now... ");var t=this.state.baseWebUrl+"/user/logout";this.setState({loading:!0}),fetch(t,{method:"post",headers:{Accept:"application/json"}}).then((function(e){return e.json()})).then((function(t){console.log("response success = "+t.success+", error = "+t.error),t.success?(console.log("logout: true"),e.setState({session:!1}),e.props.history.push("/#")):console.log("logout: false"+t.error)})).catch((function(t){console.error(t),console.log("success: false catch!"),e.setState({errorMessage:"can't reach server"})})).finally((function(){e.setState({loading:!1})}))}},{key:"render",value:function(){return l.a.createElement(I.a,{light:!0,expand:"md",className:"navbar navbar-default navbar-fixed-top navbar-custom"},l.a.createElement(z,{onMounted:this.toggleModalMounted.bind(this)}),l.a.createElement(C.a,{href:"/"},l.a.createElement("img",{src:"/img/ip2loc-icon.svg",height:"40",width:"40"})," ","Ip2Loc",""),l.a.createElement(k.a,{onClick:this.toggleNav}),l.a.createElement(P.a,{isOpen:this.state.isOpen,navbar:!0},l.a.createElement(T.a,{className:"ml-auto d-flex justify-content-center"},l.a.createElement(j.a,{id:"btn_pricing",href:"/pricing"},"Pricing"),l.a.createElement(j.a,{id:"btn_pricing",href:"/documentation"},"Documentation"),this.state.session?"":l.a.createElement(j.a,{id:"btn_register",href:"/login",onClick:this.toggleSignup.bind(this)},"Try for Free \u2794"),this.state.session?l.a.createElement(N.a,{nav:!0,inNavbar:!0},l.a.createElement(_.a,{id:"nav_item_account",nav:!0,caret:!0},"Account"),l.a.createElement(w.a,{right:!0},l.a.createElement(M.a,{id:"nav_item_dashboard",onClick:this.goToPageAccount.bind(this)},"Dashboard"),l.a.createElement(M.a,{divider:!0}),l.a.createElement(M.a,{id:"nav_item_logout",onClick:this.logout.bind(this)},"Logout"))):l.a.createElement(j.a,{href:"/login",onClick:this.toggleLogin.bind(this),id:"nav_item_login"},"Login"))))}}]),t}(n.Component),V=Object(h.f)(Object(Y.b)(q));function J(e){return e.toUpperCase()}function Z(e){return e.replace(/\[ACCENT\]/g,'').replace(/\[\/ACCENT\]/g,"").replace(/\[LIGHT\]/g,'').replace(/\[\/LIGHT\]/g,"")}function Q(e){return e.replace(/\[ACCENT\]/g,"").replace(/\[\/ACCENT\]/g,"").replace(/\[LIGHT\]/g,"").replace(/\[\/LIGHT\]/g,"")}var $=a(74),X=function(e){function t(e){return Object(s.a)(this,t),Object(c.a)(this,Object(u.a)(t).call(this,e))}return Object(m.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){return l.a.createElement("div",null,l.a.createElement("table",{className:"col-md-6",class:"table"},l.a.createElement("tbody",null,l.a.createElement("tr",null,l.a.createElement("td",null,l.a.createElement(O.a,{icon:"phone",color:"#00a8ff"})," calling codes"),l.a.createElement("td",null,l.a.createElement(O.a,{icon:"map-signs",color:"#00a8ff"})," capital"),l.a.createElement("td",null,l.a.createElement(O.a,{icon:"atlas",color:"#00a8ff"})," continent code")),l.a.createElement("tr",null,l.a.createElement("td",null,l.a.createElement(O.a,{icon:"globe-americas",color:"#00a8ff"})," continent name"),l.a.createElement("td",null,l.a.createElement(O.a,{icon:"flag",color:"#00a8ff"})," country"),l.a.createElement("td",null,l.a.createElement(O.a,{icon:"flag-usa",color:"#00a8ff"})," country emoji")),l.a.createElement("tr",null,l.a.createElement("td",null,l.a.createElement(O.a,{icon:"globe-europe",color:"#00a8ff"})," eu membership"),l.a.createElement("td",null,l.a.createElement(O.a,{icon:"signature",color:"#00a8ff"})," country name"),l.a.createElement("td",null,l.a.createElement(O.a,{icon:"coins",color:"#00a8ff"})," currencies")),l.a.createElement("tr",null,l.a.createElement("td",null,l.a.createElement(O.a,{icon:"ethernet",color:"#00a8ff"})," ipVersion"),l.a.createElement("td",null,l.a.createElement(O.a,{icon:"globe",rotation:90,color:"#00a8ff"})," latitude"),l.a.createElement("td",null,l.a.createElement(O.a,{icon:"globe",color:"#00a8ff"})," longitude")),l.a.createElement("tr",null,l.a.createElement("td",null,l.a.createElement(O.a,{icon:"map",color:"#00a8ff"})," subdivision"),l.a.createElement("td",null,l.a.createElement(O.a,{icon:"map-marked-alt",color:"#00a8ff"})," subdivision id"),l.a.createElement("td",null,l.a.createElement(O.a,{icon:"clock",color:"#00a8ff"})," time zone")),l.a.createElement("tr",null,l.a.createElement("td",null,l.a.createElement(O.a,{icon:"route",color:"#00a8ff"})," zip"),l.a.createElement("td",null,l.a.createElement(O.a,{icon:"border-all",color:"#00a8ff"})," proxy"),l.a.createElement("td",null,l.a.createElement(O.a,{icon:"dumpster-fire",color:"#00a8ff"})," tor")))),l.a.createElement("br",null),l.a.createElement("br",null))}}]),t}(n.Component),ee=Object(h.f)(X),te=function(e){function t(){return Object(s.a)(this,t),Object(c.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(m.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){var e=this;return l.a.createElement("div",null,l.a.createElement("h4",{className:"subsubheading"},"ProducePDF provides"),l.a.createElement("table",{className:"col-md-6",class:"table list-group"},l.a.createElement("tbody",null,l.a.createElement("tr",null,l.a.createElement("td",null,l.a.createElement(O.a,{icon:"file-pdf",color:"#00a8ff"})," tailored pdf documents in seconds")),l.a.createElement("tr",null,l.a.createElement("td",null,l.a.createElement(O.a,{icon:"file-code",color:"#00a8ff"})," produce beautiful pdf from html files")),l.a.createElement("tr",null,l.a.createElement("td",null,l.a.createElement(O.a,{icon:"file-contract",color:"#00a8ff"})," transform online available html to pdf")),l.a.createElement("tr",null,l.a.createElement("td",null,l.a.createElement(O.a,{icon:"globe",color:"#00a8ff"})," real browser based PDF engine")))),l.a.createElement("br",null),l.a.createElement(S.a,{color:"primary",onClick:function(){return e.props.history.push("/documentation")}},"Example API Response"),l.a.createElement("br",null))}}]),t}(n.Component),ae=Object(h.f)(te),ne=a(124),le=a.n(ne),re=(a(250),a(4)),oe=a.n(re),se=function(e){function t(){return Object(s.a)(this,t),Object(c.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(m.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){return le.a.highlightAll(),l.a.createElement("pre",null,l.a.createElement("code",{className:re(this.props.language,"w-50 mx-auto")},this.props.code))}}]),t}(n.Component),ie=a(223),ce=a(231),ue=a(230),me=function(e){function t(){return Object(s.a)(this,t),Object(c.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(m.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){return le.a.highlightAll(),l.a.createElement("pre",null,l.a.createElement("code",{className:re(this.props.language,"myStyle.cardTextStyle")},this.props.code))}}]),t}(n.Component),de={cardsize:{position:"relative",width:"480px",height:"360px"},cardcenter:{float:"none",margin:"0 auto"}},he=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(c.a)(this,Object(u.a)(t).call(this,e))).state={activeTab:"1",address:"66.249.90.77",result:"",baseApiUrl:"https://api.ip2loc.com"},a.toggle=a.toggle.bind(Object(y.a)(a)),a.input=l.a.createRef(),a.updateIp=a.updateIp.bind(Object(y.a)(a)),a.handleSubmit=a.handleSubmit.bind(Object(y.a)(a)),a}return Object(m.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){var e=this.state.baseApiUrl+"/t8wiiODrLK9j0nYkAQWIgr7pvRMWFf3L/detect";this.fetch(e)}},{key:"fetch",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){var a=this;fetch(e).then((function(e){return e.json()})).then((function(e){if(e.success){var n=t.responseToState(e);a.setState({result:JSON.stringify(n,null,2)}),a.setState({address:n.ip})}})).catch((function(e){return console.error(e)})).finally((function(){return a.setState({loading:!1})}))}))},{key:"updateIp",value:function(e){this.setState({address:e.target.value})}},{key:"handleSubmit",value:function(){var e=this;console.log("Your input ip is: "+this.state.address);var a=this.state.baseApiUrl+"/t8wiiODrLK9j0nYkAQWIgr7pvRMWFf3L/"+this.state.address;fetch(a,{method:"get",headers:{Accept:"application/json"}}).then((function(e){return e.json()})).then((function(a){if(a.success){var n=t.responseToState(a);console.log("response: "+n),e.setState({address:n.ip}),e.setState({result:JSON.stringify(n,null,2)})}else console.log(a.body)})).catch((function(e){return console.error(e)})).finally((function(){return e.setState({loading:!1})}))}},{key:"toggle",value:function(e){this.state.activeTab!==e&&this.setState({activeTab:e})}},{key:"render",value:function(){var e=this;return l.a.createElement("div",{style:de.cardsize},l.a.createElement(ce.a,null,l.a.createElement(ue.a,{type:"text",onChange:this.updateIp,onKeyPress:function(t){"Enter"===t.key&&e.handleSubmit()},id:"ipSearch",ref:this.input,placeholder:"supports Ipv4 and Ipv6 addresses",value:this.state.address}),l.a.createElement(S.a,{onClick:this.handleSubmit},l.a.createElement(O.a,{icon:"search"}))),l.a.createElement(me,{language:"language-javascript",code:this.state.result}))}}],[{key:"responseToState",value:function(e){return{ip:e.connection.ip,city:e.location.city,country:e.location.country.alpha_2,country_emoji:e.location.country.emoji,country_eu_member:e.location.country.eu_member,country_name:e.location.country.name,dialing_code:e.location.country.dialing_code[0],latitude:e.location.latitude,longitude:e.location.longitude,time_zone:e.time.zone,zip_code:e.location.country.zip_code}}}]),t}(n.Component),pe=function(e){function t(){return Object(s.a)(this,t),Object(c.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(m.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){return l.a.createElement($.a,{query:"(max-width: 500px)",align:"center"},(function(e){return e?l.a.createElement(ie.a,{className:oe()("cardrotatedScaled")},l.a.createElement(he,null)):l.a.createElement(ie.a,{className:"cardrotated"},l.a.createElement(he,null))}))}}]),t}(n.Component),ge=function(e){function t(){return Object(s.a)(this,t),Object(c.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(m.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){return l.a.createElement($.a,{query:"(max-width: 500px)"},(function(e){return e?l.a.createElement("figure",{className:"figurerotatedScaled"},l.a.createElement(pe,null)):l.a.createElement("figure",{className:"figurerotated"},l.a.createElement(pe,null))}))}}]),t}(n.Component),Ee={cardsize:{position:"relative",width:"364px",height:"550px",background:'url("/img/file-conversion.svg")',backgroundSize:"364px 570px",backgroundRepeat:"no-repeat",borderRadius:"5px",padding:"2px"},cardcenter:{float:"none",margin:"0 auto"}},be={cMapUrl:"cmaps/",cMapPacked:!0,standardFontDataUrl:"standard_fonts/"},fe=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(c.a)(this,Object(u.a)(t).call(this,e))).goToPrevPage=function(){a.state.pageNumber>1&&a.setState((function(e){return{pageNumber:e.pageNumber-1}}))},a.goToNextPage=function(){a.state.pageNumber response.json())\n .then(response => {\n if (response.success) {\n if (response.country_eu_member) {\n showGdpr()\n }\n }\n });',exampleAjax1:'$.getJSON("',exampleAjax2:'/detect?include=country_eu_member,ip", function(result){\n if(result.country_eu_member){\n $("div").append(result.ip);\n }\n});',examplePhp1:"$ch = curl_init('",examplePhp2:"/detect?include=country_eu_member');\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n$result = curl_exec($ch);\ncurl_close($ch);\n$response = json_decode($result, true);\necho $response['country_eu_member'];",exampleCurl1:"curl ",exampleCurl2:"/detect?include=country_eu_member",exampleSelected:'{\n country_emoji: "\ud83c\uddfa\ud83c\uddf8",\n country_eu_member: true,\n}',exampleResponse:'{\n connection: {\n ip: "161.185.160.93",\n ip_version: "4"\n },\n currency: {\n code: [\n "USD",\n "USN",\n "USS"\n ]\n },\n location: {\n capital: "Washington D.C.",\n city: "New York",\n continent: {\n code: "NA",\n name: "North America"\n },\n country: {\n alpha_2: "US",\n alpha_3: "USA",\n dialing_code: [\n "1"\n ],\n emoji: "\ud83c\uddfa\ud83c\uddf8",\n eu_member: false,\n name: "United States",\n subdivision: "New York",\n subdivision_id: "NY",\n zip_code: "10003"\n },\n latitude: 40.7359,\n longitude: -73.9904\n },\n security: {\n is_proxy: false,\n is_tor: false,\n proxy_type: null\n },\n success: true,\n time: {\n zone: "America/New_York"\n }\n}'},a.state.gtmId&&E.initialize({gtmId:a.state.gtmId}),a}return Object(m.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){var e=this.state.baseWebUrl+"/user/apiKey";this.fetch(e),document.title="Documentation"}},{key:"fetch",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){var t=this;this.setState({loading:!0}),fetch(e).then((function(e){return e.json()})).then((function(e){e.success&&(console.log("apiKey: "+e.apiKey),t.setState({apiKey:e.apiKey}))})).catch((function(e){console.error(e)})).finally((function(){return t.setState({loading:!1})}))}))},{key:"render",value:function(){return l.a.createElement("div",{className:"d-flex flex-column min-vh-100"},l.a.createElement(V,null),l.a.createElement("main",{className:"flex-fill"},l.a.createElement(Pe.a,null,l.a.createElement("h1",null,"API USAGE GUIDE")),l.a.createElement(v.a,{className:"myStyle.cardTextStyle"},l.a.createElement(L.a,null,l.a.createElement(W.a,null,l.a.createElement("h3",null,"Basic"),l.a.createElement("p",null,"The API offers precise and current geolocation data along with security information, accomplished through the detection or resolution of a targeted IP address. You can access this functionality through the following endpoints: ",l.a.createElement("br",null)),l.a.createElement(me,{style:Me,language:"language-javascript",code:this.state.baseApiUrl+"/"+this.state.apiKey+"/detect?include=city"}),l.a.createElement(me,{style:Me,language:"language-javascript",code:this.state.baseApiUrl+"/"+this.state.apiKey+"/161.185.160.93?include=city"}))),l.a.createElement("br",null),l.a.createElement(L.a,null,l.a.createElement(W.a,null,l.a.createElement("h3",null,"Example API Response (default format is Json)"),l.a.createElement("p",null,"The API response is in ",l.a.createElement(d.b,{to:{pathname:"https://en.wikipedia.org/wiki/JSON"},target:"_blank"}," JSON")," format by default and contains information about the target IP address. In this example, the requested data includes whether the country associated with the IP is a member of the European Union, as well as the country's flag emoji. The response returns the corresponding data in a JSON object, including the country's flag emoji represented as Unicode, and a boolean value indicating whether the country is an EU member."),l.a.createElement(me,{style:Me,language:"language-javascript",code:this.state.baseApiUrl+"/"+this.state.apiKey+"/161.185.160.93?include=country_eu_member,country_emoji"}),l.a.createElement(me,{language:"language-javascript",code:this.state.exampleSelected}))),l.a.createElement(L.a,null,l.a.createElement(W.a,null,l.a.createElement("h3",null,"Available data via include parameter"),l.a.createElement("p",null,'The available data that can be retrieved from the API by using the "include" parameter are as follows:'),l.a.createElement("table",{style:we},l.a.createElement("tr",null,l.a.createElement("div",null,"Parameter & Example")),l.a.createElement("tr",null,l.a.createElement("td",null))),l.a.createElement(me,{style:Me,language:"language-javascript",code:'capital: "Washington D.C." (string)\ncity: "Brooklyn" (string)\ncontinent_code: "NA" (string)\ncontinent_name: "North America" (string)\ncountry_alpha_2: "US" (string)\ncountry_alpha_3: "USA" (string)\ncountry_dialing_code: ["1"] (string[])\ncountry_emoji: "\ud83c\uddfa\ud83c\uddf8" (string)\ncountry_eu_member: false (bool)\ncountry_name: "United States" (string)\ncountry_subdivision: "New York" (string)\ncountry_subdivision_id: "NY" (string)\ncountry_zip_code: "11205" (string)\ncurrency_code: ["USD","USN","USS"] (string[])\nip: "161.185.160.93" (string)\nip_version: 4 (int)\nis_proxy: false (bool)\nis_tor: false (bool)\nlocation_latitude: 40.6955 (float)\nlocation_longitude: -73.9667 (float)\nproxy_type: null (string|null)\nsuccess: true (bool)//successful or failed\ntime_zone: "America/New_York" (string)'}))),l.a.createElement("br",null),l.a.createElement("h3",null,"Code Snippets"),l.a.createElement(L.a,null,l.a.createElement(W.a,null,l.a.createElement("div",null,"React example"),l.a.createElement(me,{language:"language-javascript",code:this.state.exampleReact1+this.state.baseApiUrl+"/"+this.state.apiKey+this.state.exampleReact2}))),l.a.createElement("br",null),l.a.createElement(L.a,null,l.a.createElement(W.a,null,l.a.createElement("div",null,"Ajax example"),l.a.createElement(me,{language:"language-javascript",code:this.state.exampleAjax1+this.state.baseApiUrl+"/"+this.state.apiKey+this.state.exampleAjax2}))),l.a.createElement("br",null),l.a.createElement(L.a,null,l.a.createElement(W.a,null,l.a.createElement("div",null,"PHP example"),l.a.createElement(me,{language:"language-javascript",code:this.state.examplePhp1+this.state.baseApiUrl+"/"+this.state.apiKey+this.state.examplePhp2}))),l.a.createElement("br",null),l.a.createElement(L.a,null,l.a.createElement(W.a,null,l.a.createElement("div",null,"curl example"),l.a.createElement(me,{language:"language-javascript",code:this.state.exampleCurl1+this.state.baseApiUrl+"/"+this.state.apiKey+this.state.exampleCurl2}))),l.a.createElement(L.a,null,l.a.createElement(W.a,null,l.a.createElement("h3",null,"Example full Response"),l.a.createElement(me,{style:Me,language:"language-javascript",code:this.state.baseApiUrl+"/"+this.state.apiKey+"/161.185.160.93"}),l.a.createElement(me,{language:"language-javascript",code:this.state.exampleResponse}))),l.a.createElement("br",null))),l.a.createElement(ve,null))}}]),t}(n.Component),Re=Object(h.f)(xe),Ue=function(e){function t(e){var a;return Object(s.a)(this,t),a=Object(c.a)(this,Object(u.a)(t).call(this,e)),f(),a.state={loading:!1,message:"Signin",messageColor:"light",baseWebUrl:"https://ip2loc.com"},a}return Object(m.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){var e=this;console.log("--\x3e");var t=g.a.parse(this.props.location.search);console.log(t.token);var a=this.state.baseWebUrl+"/user/signin";this.setState({loading:!0}),fetch(a,{method:"post",headers:{Accept:"application/json"},body:JSON.stringify({token:t.token})}).then((function(e){return e.json()})).then((function(t){if(t.success)console.log("success: true"),e.setState({message:"Sign in successful!",messageColor:"success"});else switch(console.log("error="+t.error),t.error){case 208:e.setState({message:"Already activated",messageColor:"warning"});break;case 498:e.setState({message:"Token not valid, request new on!",messageColor:"warning"});break;default:e.setState({message:"Unknown Error: "+t.error,messageColor:"danger"})}})).catch((function(e){return console.error(e)})).finally((function(){return e.setState({loading:!1})}))}},{key:"render",value:function(){return l.a.createElement("div",null,l.a.createElement(V,null),l.a.createElement(Pe.a,{className:"jumbotron"},l.a.createElement(B.a,{color:this.state.messageColor},this.state.message)))}}]),t}(n.Component);function Le(e,t){return console.log("getTargetSite:",e.type?e.type:"empty",t||"empty"),t?"/changeplan?plan="+e.key:"v2"===e.type?"checkout?plan="+e.key:"/changeplan?plan="+e.key}var We=function(e){function t(e){var a;Object(s.a)(this,t),a=Object(c.a)(this,Object(u.a)(t).call(this,e)),f();var n=e.cookies;return a.state={gtmId:"GTM-PNZNW4R",loading:!1,apiKey:"YOUR_API_KEY",baseWebUrl:"https://ip2loc.com",baseApiUrl:"https://api.ip2loc.com",exampleReact1:'fetch("',exampleReact2:'/detect")\n .then(response => response.json())\n .then(response => {\n if (response.success) {\n if (response.country_in_eu) {\n showGdpr()\n }\n }\n });',exampleAjax1:'$.getJSON("',exampleAjax2:'/detect", function(result){\n if(result.country_in_eu){\n $("div").append(result.ip);\n }\n});',exampleCurl1:"curl ",exampleCurl2:"/detect",plans:[],current_plan:"",session:void 0!==n.get("session")},a.state.gtmId&&E.initialize({gtmId:a.state.gtmId}),a}return Object(m.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.fetchPlans()}},{key:"fetchPlans",value:function(){var e=this;console.log("--fetch--"+this.state.baseWebUrl+"/plans"),fetch(this.state.baseWebUrl+"/plans",{method:"POST"}).then((function(e){return e.json()})).then((function(t){t.success?(e.setState({plans:t.plans}),e.setState({current_plan:t.current_plan})):console.log("--error--")}))}}]),Object(i.a)(t,[{key:"render",value:function(){var e=this;return l.a.createElement("div",{className:"d-flex flex-column min-vh-100"},l.a.createElement(V,{loggedInOnly:this.props.loggedInOnly}),l.a.createElement("main",{className:"flex-fill"},l.a.createElement("div",{className:"container"},l.a.createElement("div",{className:"text-center"},this.props.loggedInOnly?l.a.createElement("h1",null,"Select Plan"):"",l.a.createElement("h2",null,"\ud83e\udd1d Try for Free"),l.a.createElement("p",null,"You're almost ready to detect user details based on \ud83c\udf0d location with Ip2Loc API!"),l.a.createElement("p",null,"You prevent fraud, evaluate users an save money more effectively."),l.a.createElement("br",null)),l.a.createElement("div",{className:re("row","dbPaddingBtm","dbAttached")},this.state.plans.map((function(t,a){return l.a.createElement("div",{className:"calcol-xs-12 col-sm col-md col-lg"},l.a.createElement("div",{className:"dbWrapper"},l.a.createElement("div",{className:re("dbPricingEleven "+(0===a?"dbBkColorOne":""))+(1===a?"dbKColorTwo popular":"")+(2===a?"dbBkColorThree":"")},l.a.createElement("div",{className:"price"},l.a.createElement("sup",null,t.symbol)," ",e.props.loggedInOnly||"0"==t.trial?t.amount:0,l.a.createElement("small",null,e.props.loggedInOnly?"":"then "+t.symbol+t.amount," per ",t.time)),l.a.createElement("div",{className:"type"},t.title," PLAN"),l.a.createElement("ul",null,l.a.createElement("li",null,t.description),l.a.createElement("li",null,"HTTPS"),l.a.createElement("li",null,"LOCATION"),l.a.createElement("li",null,"CURRENCY")),l.a.createElement("div",{className:"pricingFooter"},l.a.createElement("a",{href:Le(t,e.props.current_plan),id:"plan-"+t.key,className:re("btn","dbButtonColorSquare","btn-lg")},"0"!=t.trial?"Start "+t.trial+"-Day Free Trial":"Buy Now \u2794")))))}))))),l.a.createElement(ve,null))}}]),t}(n.Component),Ge=Object(Y.b)(We),Be=function(e){function t(){return Object(s.a)(this,t),Object(c.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(m.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){document.title="Pricing"}},{key:"render",value:function(){return l.a.createElement(Ge,{loggedInOnly:!1})}}]),t}(n.Component),Ke=a(232),De=a(46),He=(n.Component,a(224)),Fe=function(e){function t(e){var a;return Object(s.a)(this,t),a=Object(c.a)(this,Object(u.a)(t).call(this,e)),f(),a.state={gtmId:"GTM-PNZNW4R",url:"https://ip2loc.com"},a.state.gtmId&&E.initialize({gtmId:a.state.gtmId}),a}return Object(m.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){document.title="Terms And Conditions"}},{key:"render",value:function(){return l.a.createElement("div",{className:"d-flex flex-column min-vh-100"},l.a.createElement(V,null),l.a.createElement("main",{className:"flex-fill"},l.a.createElement(Pe.a,null,l.a.createElement("h1",null,"Terms And Conditions")),l.a.createElement(ie.a,null,l.a.createElement(He.a,null,l.a.createElement("div",null,l.a.createElement("div",null,l.a.createElement("p",null,"These terms and conditions outline the rules and regulations for the use of ","Ip2Loc","'s Website."),l.a.createElement("p",null,"By accessing this website we assume you accept these terms and conditions in full. Do not continue to use ","Ip2Loc","'s website if you do not accept all of the terms and conditions stated on this page."),l.a.createElement("p",null,"The following terminology applies to these Terms and Conditions, Privacy Statement and Disclaimer Notice and any or all Agreements: \u201cClient\u201d, \u201cYou\u201d and \u201cYour\u201d refers to you, the person accessing this website and accepting the Company\u2019s terms and conditions. \u201cThe Company\u201d, \u201cOurselves\u201d, \u201cWe\u201d, \u201cOur\u201d and \u201cUs\u201d, refers to our Company. \u201cParty\u201d, \u201cParties\u201d, or \u201cUs\u201d, refers to both the Client and ourselves, or either the Client or ourselves. All terms refer to the offer, acceptance and consideration of payment necessary to undertake the process of our assistance to the Client in the most appropriate manner, whether by formal meetings of a fixed duration, or any other means, for the express purpose of meeting the Client\u2019s needs in respect of provision of the Company\u2019s stated services/products, in accordance with and subject to, prevailing law of . Any use of the above terminology or other words in the singular, plural, capitalisation and/or he/she or they, are taken as interchangeable and therefore as referring to same."),l.a.createElement("h2",null,"Cookies"),l.a.createElement("p",null,"We employ the use of cookies. By using ","Ip2Loc","'s website you consent to the use of cookies in accordance with ","Ip2Loc","\u2019s privacy policy."),l.a.createElement("p",null,"Most of the modern day interactive web sites use cookies to enable us to retrieve user details for each visit. Cookies are used in some areas of our site to enable the functionality of this area and ease of use for those people visiting. Some of our affiliate / advertising partners may also use cookies."),l.a.createElement("h2",null,"License"),l.a.createElement("p",null,"Unless otherwise stated, ","Ip2Loc"," and/or it\u2019s licensors own the intellectual property rights for all material on ","Ip2Loc",". All intellectual property rights are reserved. You may view and/or print pages from ","Ip2Loc",".com for your own personal use subject to restrictions set in these terms and conditions."),l.a.createElement("p",null,"You must not:"),l.a.createElement("ol",null,l.a.createElement("li",null,"Republish material from ",l.a.createElement("a",{href:this.state.url},"https://","Ip2Loc",".com")),l.a.createElement("li",null,"Sell, rent or sub-license material from ",l.a.createElement("a",{href:this.state.url},"https://","Ip2Loc",".com")),l.a.createElement("li",null,"Reproduce, duplicate or copy material from ",l.a.createElement("a",{href:this.state.url},"https://","Ip2Loc",".com"))),l.a.createElement("p",null,"Redistribute content from ","Ip2Loc"," (unless content is specifically made for redistribution)."),l.a.createElement("h2",null,"Hyperlinking to our Content"),l.a.createElement("ol",null,l.a.createElement("li",null,"The following organizations may link to our Web site without prior written approval:",l.a.createElement("ol",null,l.a.createElement("li",null,"Government agencies;"),l.a.createElement("li",null,"Search engines;"),l.a.createElement("li",null,"News organizations;"),l.a.createElement("li",null,"Online directory distributors when they list us in the directory may link to our Web site in the same manner as they hyperlink to the Web sites of other listed businesses; and"),l.a.createElement("li",null,"Systemwide Accredited Businesses except soliciting non-profit organizations, charity shopping malls, and charity fundraising groups which may not hyperlink to our Web site.")))),l.a.createElement("ol",{start:"2"},l.a.createElement("li",null,"These organizations may link to our home page, to publications or to other Web site information so long as the link: (a) is not in any way misleading; (b) does not falsely imply sponsorship, endorsement or approval of the linking party and its products or services; and (c) fits within the context of the linking party's site."),l.a.createElement("li",null,"We may consider and approve in our sole discretion other link requests from the following types of organizations:",l.a.createElement("ol",null,l.a.createElement("li",null,"commonly-known consumer and/or business information sources such as Chambers of Commerce, American Automobile Association, AARP and Consumers Union;"),l.a.createElement("li",null,"dot.com community sites;"),l.a.createElement("li",null,"associations or other groups representing charities, including charity giving sites,"),l.a.createElement("li",null,"online directory distributors;"),l.a.createElement("li",null,"internet portals;"),l.a.createElement("li",null,"accounting, law and consulting firms whose primary clients are businesses; and"),l.a.createElement("li",null,"educational institutions and trade associations.")))),l.a.createElement("p",null,"We will approve link requests from these organizations if we determine that: (a) the link would not reflect unfavorably on us or our accredited businesses (for example, trade associations or other organizations representing inherently suspect types of business, such as work-at-home opportunities, shall not be allowed to link); (b)the organization does not have an unsatisfactory record with us; (c) the benefit to us from the visibility associated with the hyperlink outweighs the absence of ","Ip2Loc"," and (d) where the link is in the context of general resource information or is otherwise consistent with editorial content in a newsletter or similar product furthering the mission of the organization."),l.a.createElement("p",null,"These organizations may link to our home page, to publications or to other Web site information so long as the link: (a) is not in any way misleading; (b) does not falsely imply sponsorship, endorsement or approval of the linking party and it products or services; and (c) fits within the context of the linking party's site."),l.a.createElement("p",null,"Approved organizations may hyperlink to our Web site as follows:"),l.a.createElement("ol",null,l.a.createElement("li",null,"By use of our corporate name; or"),l.a.createElement("li",null,"By use of the uniform resource locator (Web address) being linked to; or"),l.a.createElement("li",null,"By use of any other description of our Web site or material being linked to that makes sense within the context and format of content on the linking party's site.")),l.a.createElement("p",null,"No use of ","Ip2Loc","\u2019s logo or other artwork will be allowed for linking absent a trademark license agreement."),l.a.createElement("h2",null,"Iframes"),l.a.createElement("p",null,"Without prior approval and express written permission, you may not create frames around our Web pages or use other techniques that alter in any way the visual presentation or appearance of our Web site."),l.a.createElement("h2",null,"Reservation of Rights"),l.a.createElement("p",null,"We reserve the right at any time and in its sole discretion to request that you remove all links or any particular link to our Web site. You agree to immediately remove all links to our Web site upon such request. We also reserve the right to amend these terms and conditions and its linking policy at any time. By continuing to link to our Web site, you agree to be bound to and abide by these linking terms and conditions."),l.a.createElement("h2",null,"Removal of links from our website"),l.a.createElement("p",null,"If you find any link on our Web site or any linked web site objectionable for any reason, you may contact us about this. We will consider requests to remove links but will have no obligation to do so or to respond directly to you."),l.a.createElement("p",null,"Whilst we endeavour to ensure that the information on this website is correct, we do not warrant its completeness or accuracy; nor do we commit to ensuring that the website remains available or that the material on the website is kept up to date."),l.a.createElement("h2",null,"Content Liability"),l.a.createElement("p",null,"We shall have no responsibility or liability for any content appearing on your Web site. You agree to indemnify and defend us against all claims arising out of or based upon your Website. No link(s) may appear on any page on your Web site or within any context containing content or materials that may be interpreted as libelous, obscene or criminal, or which infringes, otherwise violates, or advocates the infringement or other violation of, any third party rights."),l.a.createElement("h2",null,"Disclaimer"),l.a.createElement("p",null,"To the maximum extent permitted by applicable law, we exclude all representations, warranties and conditions relating to our website and the use of this website (including, without limitation, any warranties implied by law in respect of satisfactory quality, fitness for purpose and/or the use of reasonable care and skill). Nothing in this disclaimer will:"),l.a.createElement("ol",null,l.a.createElement("li",null,"limit or exclude our or your liability for death or personal injury resulting from negligence;"),l.a.createElement("li",null,"limit or exclude our or your liability for fraud or fraudulent misrepresentation;"),l.a.createElement("li",null,"limit any of our or your liabilities in any way that is not permitted under applicable law; or"),l.a.createElement("li",null,"exclude any of our or your liabilities that may not be excluded under applicable law.")),l.a.createElement("p",null,"The limitations and exclusions of liability set out in this Section and elsewhere in this disclaimer: (a) are subject to the preceding paragraph; and (b) govern all liabilities arising under the disclaimer or in relation to the subject matter of this disclaimer, including liabilities arising in contract, in tort (including negligence) and for breach of statutory duty."),l.a.createElement("p",null,"To the extent that the website and the information and services on the website are provided free of charge, we will not be liable for any loss or damage of any nature.")))))),l.a.createElement(ve,null))}}]),t}(n.Component),ze=function(e){function t(e){return Object(s.a)(this,t),Object(c.a)(this,Object(u.a)(t).call(this,e))}return Object(m.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){return l.a.createElement("div",{className:"d-flex flex-column min-vh-100"},l.a.createElement(V,null),l.a.createElement("main",{className:"flex-fill"},l.a.createElement(Pe.a,null,l.a.createElement("h1",null,"Use Cases")),l.a.createElement(ie.a,null,l.a.createElement(He.a,null,l.a.createElement("div",null,l.a.createElement("div",null,l.a.createElement("h2",null,"The Power of Geolocation:"),l.a.createElement("p",null,"In today's digital age, geolocation technology has become a powerful tool for businesses to better understand their customers and target them more effectively. From targeted advertising to fraud prevention and geotargeting, businesses can use geolocation to enhance their marketing strategies and provide better customer experiences. In this article, we will discuss the various ways in which geolocation can be used for targeted advertising, fraud prevention, website localization, content personalization, and geotargeting."),l.a.createElement("h2",null,"Introduction:"),l.a.createElement("p",null,"Geolocation technology is the process of identifying the real-world location of an object or person using digital information. This technology has become increasingly important in recent years, as businesses have sought to better understand their customers and provide them with more personalized experiences. With geolocation data, businesses can gain insights into where their customers are located, what their preferences are, and how they behave."),l.a.createElement("h2",null,"Targeted Advertising:"),l.a.createElement("p",null,"One of the most significant uses of geolocation is targeted advertising. By using geolocation data, businesses can target their advertising to specific geographic regions, such as cities, states, or even neighborhoods. This allows them to tailor their advertising to the interests and needs of their local customers, which can increase the effectiveness of their campaigns."),l.a.createElement("h2",null,"Fraud Prevention:"),l.a.createElement("p",null,"Geolocation can also be used for fraud prevention. By tracking the location of a customer's device, businesses can detect if a transaction is being made from a location that is different from the customer's usual location. This can help prevent fraudulent transactions and protect businesses from financial losses."),l.a.createElement("h2",null,"Website Localization:"),l.a.createElement("p",null,"Geolocation can also be used to localize websites. By detecting the location of a user's device, businesses can automatically display their website in the user's preferred language and currency. This can help businesses to better serve their international customers and provide them with a better user experience."),l.a.createElement("h2",null,"Content Personalization:"),l.a.createElement("p",null,"Another way that geolocation can be used is for content personalization. By tracking a user's location, businesses can provide them with more relevant content based on their interests and preferences. For example, a retail website might show different products to customers in different regions based on their preferences and purchasing habits."),l.a.createElement("h2",null,"Geotargeting:"),l.a.createElement("p",null,"Finally, geolocation can be used for geotargeting. This involves targeting customers based on their location and providing them with customized offers and promotions. For example, a restaurant might send a promotion to customers in a particular neighborhood, or a retail store might offer a discount to customers who visit their store in person."),l.a.createElement("h2",null,"Conclusion:"),l.a.createElement("p",null,"In conclusion, geolocation technology has become an essential tool for businesses looking to enhance their marketing strategies and provide better customer experiences. By using geolocation data, businesses can target their advertising more effectively, prevent fraud, localize their websites, personalize their content, and geotarget their customers. As technology continues to evolve, it is likely that geolocation will become even more critical to businesses in the years ahead.")))))),l.a.createElement(ve,null))}}]),t}(n.Component),Ye=Object(h.f)(ze),qe=function(e){function t(e){var a;return Object(s.a)(this,t),a=Object(c.a)(this,Object(u.a)(t).call(this,e)),f(),a.state={gtmId:"GTM-PNZNW4R"},a.state.gtmId&&E.initialize({gtmId:a.state.gtmId}),a}return Object(m.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){document.title="Frequently Asked Questions"}}]),Object(i.a)(t,[{key:"render",value:function(){return l.a.createElement("div",{className:"d-flex flex-column min-vh-100"},l.a.createElement(V,null),l.a.createElement("main",{className:"flex-fill"},l.a.createElement(Pe.a,null,l.a.createElement("h1",null,"Frequently Asked Questions")),l.a.createElement(ie.a,null,l.a.createElement(He.a,null,l.a.createElement("div",null,l.a.createElement("div",null,l.a.createElement("h3",null,l.a.createElement("li",null,"What happens if my volume exceeded?")),l.a.createElement("div",null,l.a.createElement("p",null,"An email will be sent to alert you when you reach 75% of the soft limit and when you reach 100% of the hard limit."),l.a.createElement("br",null)),l.a.createElement("h3",null,l.a.createElement("li",null,"How many API requests can ","Ip2Loc"," handle?")),l.a.createElement("div",null,l.a.createElement("p",null,"A: billions per day"),l.a.createElement("br",null)),l.a.createElement("h3",null,l.a.createElement("li",null,"Can I cancel anytime?")),l.a.createElement("div",null,l.a.createElement("p",null,"A: Yes. You can upgrade, downgrade or cancel at any time."),l.a.createElement("br",null)),l.a.createElement("h3",null,l.a.createElement("li",null,"What can I do if I require a larger volume?")),l.a.createElement("div",null,l.a.createElement("p",null,"A: Contact support and we will assist you in finding a suitable offer."),l.a.createElement("br",null)),l.a.createElement("div",null,l.a.createElement("h3",null,l.a.createElement("li",null,"How does geolocation technology work?")),l.a.createElement("div",null,l.a.createElement("p",null,"A: Geolocation technology works by using digital information to identify the real-world location of an object or person."),l.a.createElement("br",null)),l.a.createElement("h3",null,l.a.createElement("li",null,"How does geolocation technology work?")),l.a.createElement("div",null,l.a.createElement("p",null,"A: Geolocation technology works by using digital information to identify the real-world location of an object or person."),l.a.createElement("br",null)),l.a.createElement("h3",null,l.a.createElement("li",null,"How can businesses use geolocation for targeted advertising?")),l.a.createElement("div",null,l.a.createElement("p",null,"A: Businesses can use geolocation to target their advertising to specific geographic regions, such as cities, states, or even neighborhoods."),l.a.createElement("br",null)),l.a.createElement("h3",null,l.a.createElement("li",null,"What is geotargeting?")),l.a.createElement("div",null,l.a.createElement("p",null,"A: Geotargeting involves targeting customers based on their location and providing them with customized offers and promotions."),l.a.createElement("br",null)),l.a.createElement("h3",null,l.a.createElement("li",null," How can geolocation be used for fraud prevention?")),l.a.createElement("div",null,l.a.createElement("p",null,"A: By tracking the location of a customer's device, businesses can detect if a transaction is being made from a location that is different from the customer's usual location, which can help prevent fraudulent transactions."),l.a.createElement("br",null)),l.a.createElement("h3",null,l.a.createElement("li",null,"What are some of the benefits of using geolocation for businesses?")),l.a.createElement("div",null,l.a.createElement("p",null,"A: Some of the benefits of using geolocation for businesses include enhanced targeting capabilities, increased effectiveness of advertising campaigns, improved fraud prevention measures, better localization of websites, personalized content for users, and the ability to provide customized offers and promotions based on a user's location. Overall, geolocation technology has become an essential tool for businesses looking to better understand their customers and provide them with more personalized experiences. As technology continues to advance, it is likely that geolocation will become even more critical to the success of businesses in the future."),l.a.createElement("br",null)))))))),l.a.createElement(ve,null))}}]),t}(n.Component),Ve=a(82),Je=a(83),Ze=a.n(Je),Qe=a(126),$e=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(c.a)(this,Object(u.a)(t).call(this,e))).state={baseApiUrl:"https://ip2loc.com",errorMessage:"",loading:!1,redirect:!1},a.submit=a.submit.bind(Object(y.a)(a)),a}return Object(m.a)(t,e),Object(i.a)(t,[{key:"submit",value:function(){var e=Object(Qe.a)(Ze.a.mark((function e(t){var a,n,l=this;return Ze.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.setState({errorMessage:""}),e.next=3,this.props.stripe.createToken({name:"Name"});case 3:if(a=e.sent,null==(n=a.token)){e.next=9;break}return this.setState({loading:!0}),e.next=9,fetch(this.state.baseApiUrl+"/user/charge",{method:"POST",headers:{"Content-Type":"text/plain"},body:JSON.stringify({token:n.id,paymentId:this.props.paymentId})}).then((function(e){return e.json()})).then((function(e){e.success?(console.log("success: "+e.success),console.log("redirect_to_url: "+e.redirect_to_url),e.redirect_to_url?(l.setState({redirect:!0}),window.location.href=e.redirect_to_url):e.plan_changed?l.props.history.push("/planchangedsuccess?plan="+e.planKey):l.props.history.push("/registrationsuccess?plan="+e.planKey)):l.setState({errorMessage:e.detail})})).catch((function(e){return console.error(e)})).finally((function(){l.setState({loading:l.state.redirect})}));case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"render",value:function(){return l.a.createElement("div",{className:"checkout"},l.a.createElement(Ve.CardElement,{id:"cardElement",style:{base:{fontSize:"18px"}},className:oe()("cardCss.StripeElement")}),this.state.errorMessage?l.a.createElement(B.a,{color:"danger"},this.state.errorMessage):"",l.a.createElement(S.a,{color:"primary",block:!0,className:"float-lg-left float-left",disabled:this.state.loading,id:"buttonSubmit",onClick:this.submit},l.a.createElement("span",null,this.state.loading?l.a.createElement(O.a,{icon:"spinner",spin:!0}):"Continue \xbb")))}}]),t}(n.Component),Xe=Object(h.f)(Object(Ve.injectStripe)($e)),et=function(e){function t(e){var a;return Object(s.a)(this,t),a=Object(c.a)(this,Object(u.a)(t).call(this,e)),f(),a.state={baseApiUrl:"https://api.ip2loc.com",baseWebUrl:"https://ip2loc.com",apiKey:"pk_live_2JJ2KOurc4CFf56BUcc5pdDl00eDMqRrm4",tax:0,amountTax:0,amountTotal:0,processing:!1,errorMessage:""},a}return Object(m.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){return l.a.createElement("div",null,l.a.createElement(Ve.StripeProvider,{apiKey:this.state.apiKey},l.a.createElement("div",{className:"addCardDetails"},l.a.createElement("h2",{id:"addCardDetails"},void 0===this.state.signupWithPlanSelected?"Update":"Add"," Your Card Details"),l.a.createElement("small",null,"We use Stripe's secure and encrypted platform for all transactions."),l.a.createElement("br",null),l.a.createElement("br",null),l.a.createElement("img",{src:"../img/powered_by_stripe.svg",alt:"Logo",align:"left"}),l.a.createElement("br",null),l.a.createElement(Ve.Elements,null,l.a.createElement(Xe,{paymentId:this.props.paymentId})))),l.a.createElement("br",null),l.a.createElement("div",{className:"text-center"},l.a.createElement("small",null,"This ordering process is carried out by our payment service provider Stripe.")),l.a.createElement("div",{className:"text-center additional"},l.a.createElement("a",{href:"https://stripe.com/legal/ssa",target:"_blank"},l.a.createElement("small",null,"Services Agreement")),l.a.createElement("span",null," | "),l.a.createElement("a",{href:"https://stripe.com/privacy",target:"_blank"},l.a.createElement("small",null,"Privacy Policy"))))}}]),t}(n.Component),tt=[["Afghanistan","AF"],["\xc5land Islands","AX"],["Albania","AL"],["Algeria","DZ"],["American Samoa","AS"],["Andorra","AD"],["Angola","AO"],["Anguilla","AI"],["Antarctica","AQ"],["Antigua and Barbuda","AG"],["Argentina","AR"],["Armenia","AM"],["Aruba","AW"],["Australia","AU"],["Austria","AT"],["Azerbaijan","AZ"],["Bahamas","BS"],["Bahrain","BH"],["Bangladesh","BD"],["Barbados","BB"],["Belarus","BY"],["Belgium","BE"],["Belize","BZ"],["Benin","BJ"],["Bermuda","BM"],["Bhutan","BT"],["Bolivia, Plurinational State of","BO"],["Bonaire, Sint Eustatius and Saba","BQ"],["Bosnia and Herzegovina","BA"],["Botswana","BW"],["Bouvet Island","BV"],["Brazil","BR"],["British Indian Ocean Territory","IO"],["Brunei Darussalam","BN"],["Bulgaria","BG"],["Burkina Faso","BF"],["Burundi","BI"],["Cambodia","KH"],["Cameroon","CM"],["Canada","CA"],["Cape Verde","CV"],["Cayman Islands","KY"],["Central African Republic","CF"],["Chad","TD"],["Chile","CL"],["China","CN"],["Christmas Island","CX"],["Cocos (Keeling) Islands","CC"],["Colombia","CO"],["Comoros","KM"],["Congo","CG"],["Congo, the Democratic Republic of the","CD"],["Cook Islands","CK"],["Costa Rica","CR"],["C\xf4te d'Ivoire","CI"],["Croatia","HR"],["Cuba","CU"],["Cura\xe7ao","CW"],["Cyprus","CY"],["Czech Republic","CZ"],["Denmark","DK"],["Djibouti","DJ"],["Dominica","DM"],["Dominican Republic","DO"],["Ecuador","EC"],["Egypt","EG"],["El Salvador","SV"],["Equatorial Guinea","GQ"],["Eritrea","ER"],["Estonia","EE"],["Ethiopia","ET"],["Falkland Islands (Malvinas)","FK"],["Faroe Islands","FO"],["Fiji","FJ"],["Finland","FI"],["France","FR"],["French Guiana","GF"],["French Polynesia","PF"],["French Southern Territories","TF"],["Gabon","GA"],["Gambia","GM"],["Georgia","GE"],["Germany","DE"],["Ghana","GH"],["Gibraltar","GI"],["Greece","GR"],["Greenland","GL"],["Grenada","GD"],["Guadeloupe","GP"],["Guam","GU"],["Guatemala","GT"],["Guernsey","GG"],["Guinea","GN"],["Guinea-Bissau","GW"],["Guyana","GY"],["Haiti","HT"],["Heard Island and McDonald Islands","HM"],["Holy See (Vatican City State)","VA"],["Honduras","HN"],["Hong Kong","HK"],["Hungary","HU"],["Iceland","IS"],["India","IN"],["Indonesia","ID"],["Iran, Islamic Republic of","IR"],["Iraq","IQ"],["Ireland","IE"],["Isle of Man","IM"],["Israel","IL"],["Italy","IT"],["Jamaica","JM"],["Japan","JP"],["Jersey","JE"],["Jordan","JO"],["Kazakhstan","KZ"],["Kenya","KE"],["Kiribati","KI"],["Korea, Democratic People's Republic of","KP"],["Korea, Republic of","KR"],["Kuwait","KW"],["Kyrgyzstan","KG"],["Lao People's Democratic Republic","LA"],["Latvia","LV"],["Lebanon","LB"],["Lesotho","LS"],["Liberia","LR"],["Libya","LY"],["Liechtenstein","LI"],["Lithuania","LT"],["Luxembourg","LU"],["Macao","MO"],["Macedonia, the Former Yugoslav Republic of","MK"],["Madagascar","MG"],["Malawi","MW"],["Malaysia","MY"],["Maldives","MV"],["Mali","ML"],["Malta","MT"],["Marshall Islands","MH"],["Martinique","MQ"],["Mauritania","MR"],["Mauritius","MU"],["Mayotte","YT"],["Mexico","MX"],["Micronesia, Federated States of","FM"],["Moldova, Republic of","MD"],["Monaco","MC"],["Mongolia","MN"],["Montenegro","ME"],["Montserrat","MS"],["Morocco","MA"],["Mozambique","MZ"],["Myanmar","MM"],["Namibia","NA"],["Nauru","NR"],["Nepal","NP"],["Netherlands","NL"],["New Caledonia","NC"],["New Zealand","NZ"],["Nicaragua","NI"],["Niger","NE"],["Nigeria","NG"],["Niue","NU"],["Norfolk Island","NF"],["Northern Mariana Islands","MP"],["Norway","NO"],["Oman","OM"],["Pakistan","PK"],["Palau","PW"],["Palestine, State of","PS"],["Panama","PA"],["Papua New Guinea","PG"],["Paraguay","PY"],["Peru","PE"],["Philippines","PH"],["Pitcairn","PN"],["Poland","PL"],["Portugal","PT"],["Puerto Rico","PR"],["Qatar","QA"],["R\xe9union","RE"],["Romania","RO"],["Russian Federation","RU"],["Rwanda","RW"],["Saint Barth\xe9lemy","BL"],["Saint Helena, Ascension and Tristan da Cunha","SH"],["Saint Kitts and Nevis","KN"],["Saint Lucia","LC"],["Saint Martin (French part)","MF"],["Saint Pierre and Miquelon","PM"],["Saint Vincent and the Grenadines","VC"],["Samoa","WS"],["San Marino","SM"],["Sao Tome and Principe","ST"],["Saudi Arabia","SA"],["Senegal","SN"],["Serbia","RS"],["Seychelles","SC"],["Sierra Leone","SL"],["Singapore","SG"],["Sint Maarten (Dutch part)","SX"],["Slovakia","SK"],["Slovenia","SI"],["Solomon Islands","SB"],["Somalia","SO"],["South Africa","ZA"],["South Georgia and the South Sandwich Islands","GS"],["South Sudan","SS"],["Spain","ES"],["Sri Lanka","LK"],["Sudan","SD"],["Suriname","SR"],["Svalbard and Jan Mayen","SJ"],["Swaziland","SZ"],["Sweden","SE"],["Switzerland","CH"],["Syrian Arab Republic","SY"],["Taiwan, Province of China","TW"],["Tajikistan","TJ"],["Tanzania, United Republic of","TZ"],["Thailand","TH"],["Timor-Leste","TL"],["Togo","TG"],["Tokelau","TK"],["Tonga","TO"],["Trinidad and Tobago","TT"],["Tunisia","TN"],["Turkey","TR"],["Turkmenistan","TM"],["Turks and Caicos Islands","TC"],["Tuvalu","TV"],["Uganda","UG"],["Ukraine","UA"],["United Arab Emirates","AE"],["United Kingdom","GB"],["United States","US"],["United States Minor Outlying Islands","UM"],["Uruguay","UY"],["Uzbekistan","UZ"],["Vanuatu","VU"],["Venezuela, Bolivarian Republic of","VE"],["Viet Nam","VN"],["Virgin Islands, British","VG"],["Virgin Islands, U.S.","VI"],["Wallis and Futuna","WF"],["Western Sahara","EH"],["Yemen","YE"],["Zambia","ZM"],["Zimbabwe","ZW"]],at=function(e){function t(e){var a;return Object(s.a)(this,t),a=Object(c.a)(this,Object(u.a)(t).call(this,e)),f(),a.state={baseApiUrl:"https://api.ip2loc.com",baseWebUrl:"https://ip2loc.com",tax:0,amountTax:0,amountTotal:0,processing:!1,errorMessage:"",countries:tt,countryPreSelected:""},a.handleValidSubmit=a.handleValidSubmit.bind(Object(y.a)(a)),a}return Object(m.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){document.title="Choose Plan";var e=this.state.baseApiUrl+"/t8wiiODrLK9j0nYkAQWIgr7pvRMWFf3L/detect";this.fetchCountry(e)}},{key:"fetchCountry",value:function(e){var t=this;fetch(e).then((function(e){return e.json()})).then((function(e){e.success&&(console.log("response.country: "+e.location.country.alpha_2),t.setState({countryPreSelected:e.location.country.alpha_2}))})).catch((function(e){return console.error(e)}))}},{key:"handleCheckout",value:function(){console.log("handleCheckout: "+this.state.baseWebUrl),this.setState({processing:!0}),this.form.submit()}}]),Object(i.a)(t,[{key:"handleValidSubmit",value:function(e,t){var a=this;console.log("handleValidSubmit"),console.log("event = "+JSON.stringify(e,null,2)),console.log("values = "+JSON.stringify(t,null,2)),console.log("Your plan is: "+this.props.planSelected),console.log("Your input email is: "+this.props.email);var n=this.state.baseWebUrl+"/user/createPaymentLink";console.log("baseWebUrl: "+n),this.setState({loading:!0}),this.setState({errorMessage:""}),fetch(n,{method:"post",headers:{Accept:"application/json"},body:JSON.stringify(t,null,2)}).then((function(e){return e.json()})).then((function(e){if(console.log("response success = "+e.success+", error = "+e.error),e.success)console.log("success: "+e.success),console.log("redirect_to_url: "+e.redirect_to_url),e.redirect_to_url&&(a.setState({redirect:!0}),window.location.href=e.redirect_to_url);else switch(console.log("success: false"+e.error),e.error){case 422:console.log("422: "+e.field+" / "+e.detail),console.log("422: touchedInputs:"+JSON.stringify(a.form.state.touchedInputs,null,2)),a.form.state.invalidInputs[e.field]=e.detail,a.setState({errorMessage:e.detail});break;case 500:a.setState({errorMessage:e.detail});break;case 429:a.setState({errorMessage:"Too many requests, try again later."});break;default:a.setState({errorMessage:"Server Error: "+e.error})}})).catch((function(e){console.error(e),console.log("success: false catch!"),a.setState({errorMessage:"can't reach server"})})).finally((function(){a.setState({loading:!1})}))}},{key:"render",value:function(){var e=this;return l.a.createElement("div",null,l.a.createElement(D.AvForm,{ref:function(t){return e.form=t},onValidSubmit:this.handleValidSubmit,onInvalidSubmit:this.handleInvalidSubmit},l.a.createElement(D.AvField,{type:"hidden",name:"plan",value:this.props.planSelected}),l.a.createElement(L.a,{form:!0},l.a.createElement("h2",null,"Provide Your Details"),l.a.createElement("small",null,"Your details assist in protecting your payments and combating fraud effectively."),l.a.createElement("br",null),l.a.createElement("br",null)),l.a.createElement(L.a,{form:!0},l.a.createElement(W.a,{md:12},l.a.createElement(G.a,null,l.a.createElement(D.AvField,{onChange:this.updateSignupEmail,name:"email",label:"Email Address",type:"email",id:"useremail",required:!0,value:this.props.email,readOnly:!0}))),l.a.createElement(W.a,{md:12},l.a.createElement(D.AvField,{value:this.state.countryPreSelected,type:"select",name:"country",label:this.state.paymentRequired?"Select your Country *":"Select your Country",required:this.state.paymentRequired},l.a.createElement("option",{value:"",disabled:!0,selected:!0},"Select your Country"),this.state.countries.map((function(e){return l.a.createElement("option",{value:e[1]},e[0])})))),l.a.createElement(W.a,null,l.a.createElement(D.AvGroup,{check:!0},l.a.createElement(D.AvInput,{type:"checkbox",name:"updatesCheckbox"}),l.a.createElement(Ke.a,{check:!0,for:"updatesCheckbox"},"Send me product updates and offers via email. It is possible to opt-out at any time.")),l.a.createElement("br",null),l.a.createElement(S.a,{color:"primary",block:!0,id:"checkout",disabled:this.state.loading&&this.state.processing},this.state.loading&&this.state.processing?l.a.createElement("span",null,l.a.createElement(O.a,{icon:"spinner",spin:!0})," "):l.a.createElement("span",null,"Continue \xbb")))),this.state.isSignup?l.a.createElement(D.AvGroup,{check:!0},l.a.createElement("small",null,"By signing up, you agree to our terms of service and privacy policy.")):"",this.state.errorMessage?l.a.createElement(B.a,{color:"danger"},this.state.errorMessage):""),l.a.createElement("br",null),l.a.createElement("div",{className:"text-center"},l.a.createElement("small",null,"This ordering process is carried out by our payment service provider Stripe.")),l.a.createElement("div",{className:"text-center additional"},l.a.createElement("a",{href:"https://stripe.com/legal/ssa",target:"_blank"},l.a.createElement("small",null,"Services Agreement")),l.a.createElement("span",null," | "),l.a.createElement("a",{href:"https://stripe.com/privacy",target:"_blank"},l.a.createElement("small",null,"Privacy Policy"))))}}]),t}(n.Component),nt=function(e){function t(e){var a;Object(s.a)(this,t),a=Object(c.a)(this,Object(u.a)(t).call(this,e)),f();var n=g.a.parse(a.props.location.search),l=n.paymentId;return a.state={baseApiUrl:"https://api.ip2loc.com",baseWebUrl:"https://ip2loc.com",paymentId:l,signupWithPlanSelected:n.plan,plan:[],email:"",tax:0,amountTax:0,amountTotal:0,processing:!1,errorMessage:"",gtmId:"GTM-PNZNW4R",validationPayment:!1},a.checkPaymentIntent=a.checkPaymentIntent.bind(Object(y.a)(a)),n.payment_intent?(a.state.validationPayment=!0,a.checkPaymentIntent(n.payment_intent,l,n.action)):n.setup_intent_client_secret?(a.state.validationPayment=!0,a.checkSetupIntent(n.setup_intent_client_secret,l,n.action)):n.checkout_session_id&&(a.state.validationPayment=!0,a.checkCheckoutSession(n.checkout_session_id,l,n.action)),console.log(l),a.state.gtmId&&E.initialize({gtmId:a.state.gtmId}),a}return Object(m.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){document.title="CheckoutVerification",this.fetchPlan()}},{key:"fetchPlan",value:function(){var e=this,t=g.a.parse(this.props.location.search);if(void 0!==t.plan){var a=this.state.baseWebUrl+"/user/plans/"+t.plan+"?paymentId="+t.paymentId;console.log("--fetch--"+a),fetch(a,{method:"POST"}).then((function(e){return e.json()})).then((function(t){t.success?(console.log("--ok-- "+t.plan.title),e.setState({plan:t.plan,email:t.email,tax:t.tax,amountTax:t.amountTax,amountTotal:t.amountTotal})):console.log("--error--")}))}}}]),Object(i.a)(t,[{key:"checkPaymentIntent",value:function(e,t,a){var n=this;if(null!=e&&null!=t){console.log("paymentIntent: "+e),console.log("paymentId: "+t),console.log("baseApiUrl: "+this.state.baseApiUrl),console.log("validationPayment: "+this.state.validationPayment),this.setState({loading:!0});fetch(this.state.baseWebUrl+"/user/paymentIntent",{method:"POST",headers:{"Content-Type":"text/plain"},body:JSON.stringify({paymentId:t,paymentIntent:e})}).then((function(e){return e.json()})).then((function(e){console.log("response success"+e.success),e.success?(console.log("strong payment success: "+e.success+" plan: "+e.plan),"card_update"==a?n.props.history.push("/planchangedsuccess?plan="+e.planKey):n.props.history.push("/registrationsuccess?plan="+e.planKey)):n.setState({errorMessage:e.detail})})).catch((function(e){return console.error(e)})).finally((function(){n.setState({loading:n.state.redirect})}))}}},{key:"checkSetupIntent",value:function(e,t,a){var n=this;if(null!=e&&null!=t){console.log("paymentIntent: "+e),console.log("paymentId: "+t),console.log("baseApiUrl: "+this.state.baseApiUrl),console.log("validationPayment: "+this.state.validationPayment),this.setState({loading:!0});fetch(this.state.baseWebUrl+"/user/setupIntent",{method:"POST",headers:{"Content-Type":"text/plain"},body:JSON.stringify({paymentId:t,setupIntent:e})}).then((function(e){return e.json()})).then((function(e){console.log("response success"+e.success),e.success?(console.log("strong payment success: "+e.success+" plan: "+e.plan),"card_update"==a?n.props.history.push("/planchangedsuccess?plan="+e.planKey):n.props.history.push("/registrationsuccess?plan="+e.planKey)):n.setState({errorMessage:e.detail})})).catch((function(e){return console.error(e)})).finally((function(){n.setState({loading:n.state.redirect})}))}}},{key:"checkCheckoutSession",value:function(e,t,a){var n=this;if(null!=e&&null!=t){console.log("checkoutSession: "+e),console.log("paymentId: "+t),console.log("baseApiUrl: "+this.state.baseApiUrl),console.log("validationPayment: "+this.state.validationPayment),this.setState({loading:!0});fetch(this.state.baseWebUrl+"/user/checkoutSession",{method:"POST",headers:{"Content-Type":"text/plain"},body:JSON.stringify({paymentId:t,checkoutSession:e})}).then((function(e){return e.json()})).then((function(e){console.log("response success"+e.success),e.success?(console.log("strong payment success: "+e.success+" plan: "+e.plan),"card_update"==a?n.props.history.push("/planchangedsuccess?plan="+e.planKey):n.props.history.push("/registrationsuccess?plan="+e.planKey)):n.setState({errorMessage:e.detail})})).catch((function(e){return console.error(e)})).finally((function(){n.setState({loading:n.state.redirect})}))}}},{key:"render",value:function(){return l.a.createElement("div",null,l.a.createElement(V,null),l.a.createElement(Pe.a,null),l.a.createElement(ie.a,null,l.a.createElement(He.a,null,l.a.createElement(v.a,{className:"justify-content-center"},l.a.createElement("div",null,this.state.errorMessage?l.a.createElement(B.a,{color:"danger"},"Error:",this.state.errorMessage):l.a.createElement("div",null,l.a.createElement(O.a,{icon:"spinner",spin:!0})," one moment... validating checkout"))))))}}]),t}(n.Component),lt=function(e){function t(e){var a;Object(s.a)(this,t),a=Object(c.a)(this,Object(u.a)(t).call(this,e)),f();var n=g.a.parse(a.props.location.search),l=n.paymentId;return a.state={baseApiUrl:"https://api.ip2loc.com",baseWebUrl:"https://ip2loc.com",paymentId:l,signupWithPlanSelected:n.plan,plan:[],email:"",tax:0,amountTax:0,amountTotal:0,processing:!1,errorMessage:"",gtmId:"GTM-PNZNW4R",validationPayment:!1},a.checkPaymentIntent=a.checkPaymentIntent.bind(Object(y.a)(a)),console.log(l),a.state.gtmId&&E.initialize({gtmId:a.state.gtmId}),a}return Object(m.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){document.title="Checkout",this.fetchPlan()}},{key:"fetchPlan",value:function(){var e=this,t=g.a.parse(this.props.location.search);if(void 0!==t.plan){var a=this.state.baseWebUrl+"/user/plans/"+t.plan+"?paymentId="+t.paymentId;console.log("--fetch--"+a),fetch(a,{method:"POST"}).then((function(e){return e.json()})).then((function(t){t.success?(console.log("--ok-- "+t.plan.title),e.setState({plan:t.plan,tax:t.tax,amountTax:t.amountTax,amountTotal:t.amountTotal,email:t.email})):console.log("--error--")}))}}}]),Object(i.a)(t,[{key:"checkPaymentIntent",value:function(e,t){var a=this;if(null!=e&&null!=t){console.log("paymentIntent: "+e),console.log("paymentId: "+t),console.log("baseApiUrl: "+this.state.baseApiUrl),console.log("validationPayment: "+this.state.validationPayment),this.setState({loading:!0});fetch(this.state.baseWebUrl+"/user/paymentIntent",{method:"POST",headers:{"Content-Type":"text/plain"},body:JSON.stringify({paymentId:t,paymentIntent:e})}).then((function(e){return e.json()})).then((function(e){console.log("response success"+e.success),e.success?(console.log("strong payment success: "+e.success+" plan: "+e.plan),a.props.history.push("/registrationsuccess?plan="+e.planKey)):a.setState({errorMessage:e.detail})})).catch((function(e){return console.error(e)})).finally((function(){a.setState({loading:a.state.redirect})}))}}},{key:"checkSetupIntent",value:function(e,t){var a=this;if(null!=e&&null!=t){console.log("paymentIntent: "+e),console.log("paymentId: "+t),console.log("baseApiUrl: "+this.state.baseApiUrl),console.log("validationPayment: "+this.state.validationPayment),this.setState({loading:!0});fetch(this.state.baseWebUrl+"/user/setupIntent",{method:"POST",headers:{"Content-Type":"text/plain"},body:JSON.stringify({paymentId:t,setupIntent:e})}).then((function(e){return e.json()})).then((function(e){console.log("response success"+e.success),e.success?(console.log("strong payment success: "+e.success+" plan: "+e.plan),a.props.history.push("/registrationsuccess?plan="+e.planKey)):a.setState({errorMessage:e.detail})})).catch((function(e){return console.error(e)})).finally((function(){a.setState({loading:a.state.redirect})}))}}},{key:"render",value:function(){return l.a.createElement("div",null,l.a.createElement(V,{loggedInOnly:!0}),l.a.createElement(Pe.a,null),this.state.validationPayment?l.a.createElement(ie.a,null,l.a.createElement(He.a,null,l.a.createElement(v.a,{className:"justify-content-center"},l.a.createElement("div",null,this.state.errorMessage?l.a.createElement(B.a,{color:"danger"},"Error:",this.state.errorMessage):l.a.createElement("div",null,l.a.createElement(O.a,{icon:"spinner",spin:!0})," one moment... validating payment"))))):l.a.createElement("div",null,l.a.createElement("div",{className:"container"},l.a.createElement("div",{className:"row justify-content-center"},void 0===this.state.signupWithPlanSelected?l.a.createElement("div",null):l.a.createElement("div",{className:"col-md main-content"},this.PlanDetails()),l.a.createElement("div",{className:"col-md extra-div"},this.CheckoutBasedOnType(this.state.plan.type))))))}},{key:"PlanDetails",value:function(){return l.a.createElement("div",null,l.a.createElement("h2",{id:"planTitle"},this.state.plan.title," Plan"),"0"===this.state.plan.trial?"":l.a.createElement("b",{className:"ulListFeatures"},this.state.plan.trial,"-Day Free Trial"),this.state.plan.quantity<1e5?l.a.createElement("p",null,"For beginner and small projects."):l.a.createElement("p",null,this.state.plan.quantity<1e6?l.a.createElement("p",null,"Our most popular plan for medium projects."):l.a.createElement("p",null,"Extensive API usage for large projects.")),l.a.createElement("ul",{className:"ulListFeatures"},l.a.createElement("li",null,l.a.createElement(O.a,{icon:"check",color:"#00a8ff"}),l.a.createElement("span",null,this.state.plan.description,"/",this.state.plan.time)),l.a.createElement("li",null,l.a.createElement(O.a,{icon:"check",color:"#00a8ff"}),l.a.createElement("span",null,"HTTPS")),l.a.createElement("li",null,l.a.createElement(O.a,{icon:"check",color:"#00a8ff"}),l.a.createElement("span",null,"LOCATION")),l.a.createElement("li",null,l.a.createElement(O.a,{icon:"check",color:"#00a8ff"}),l.a.createElement("span",null,"CURRENCY")),l.a.createElement("li",null,l.a.createElement(O.a,{icon:"check",color:"#00a8ff"}),l.a.createElement("span",null,"Cancel at any time"))),l.a.createElement("hr",null),l.a.createElement("table",{className:"table borderless costtable"},l.a.createElement("tbody",null,l.a.createElement("tr",null,l.a.createElement("td",null,"Subtotal"),l.a.createElement("td",null,"0"===this.state.plan.trial?l.a.createElement("p",null,this.state.plan.symbol,this.state.plan.amount):"$0.00")),l.a.createElement("tr",null,l.a.createElement("td",null,"Tax"),l.a.createElement("td",null,"0"===this.state.plan.trial?l.a.createElement("p",null,this.state.plan.symbol,this.state.amountTax):"$0.00")),l.a.createElement("tr",null,l.a.createElement("td",null,"Total"),l.a.createElement("td",null,"0"===this.state.plan.trial?l.a.createElement("p",null,this.state.plan.symbol,this.state.amountTotal):"$0.00")),l.a.createElement("tr",null,l.a.createElement("td",null),l.a.createElement("td",null,"Then ",this.state.plan.symbol,"0"===this.state.plan.trial?this.state.amountTotal:this.state.plan.amount," per ",this.state.plan.time,".")))),l.a.createElement("hr",null))}},{key:"CheckoutBasedOnType",value:function(e){return"v1"===e?l.a.createElement(et,{paymentId:this.state.paymentId}):"v2"===e?l.a.createElement(at,{email:this.state.email,plan:this.state.plan,planSelected:this.state.signupWithPlanSelected}):void 0}}]),t}(n.Component),rt=a(228),ot=a(234),st=a(215),it=function(e){function t(){return Object(s.a)(this,t),Object(c.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(m.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){return l.a.createElement("div",{className:oe()("sidebar","is-open")},l.a.createElement("div",{className:"side-menu"},l.a.createElement(T.a,{vertical:!0,className:"list-unstyled pb-3"},l.a.createElement("p",null,"Control Menu"),l.a.createElement(st.a,null,l.a.createElement(j.a,{href:"/dashboard",disabled:"dashboard"===this.props.selected},l.a.createElement(O.a,{icon:"dashboard"===this.props.selected?"dot-circle":"circle",className:"mr-2"}),"Dashboard")),l.a.createElement(st.a,null,l.a.createElement(j.a,{href:"/subscription",disabled:"subscription"===this.props.selected},l.a.createElement(O.a,{icon:"subscription"===this.props.selected?"dot-circle":"circle",className:"mr-2"}),"Subscription")),l.a.createElement(st.a,null,l.a.createElement(j.a,{href:"/payment",disabled:"payment"===this.props.selected},l.a.createElement(O.a,{icon:"payment"===this.props.selected?"dot-circle":"circle",className:"mr-2"}),"Payment")))))}}]),t}(n.Component),ct=function(e){function t(e){var a;Object(s.a)(this,t),a=Object(c.a)(this,Object(u.a)(t).call(this,e)),f();var n=e.cookies;return a.state={gtmId:"GTM-PNZNW4R",loading:!1,name:"",apiKey:"",planKey:"",planTitle:"",usage:"1/2",email:"",period:"",invoices:null,baseWebUrl:"https://ip2loc.com",baseApiUrl:"https://api.ip2loc.com",session:void 0!==n.get("session")},a.state.gtmId&&E.initialize({gtmId:a.state.gtmId}),a.state.session||a.props.history.push("/"),a}return Object(m.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){document.title="Dashboard";var e=this.state.baseWebUrl+"/user/dashboard";this.fetch(e)}},{key:"fetch",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){var t=this;console.log("Fetching URL:",e),this.setState({loading:!0}),fetch(e).then((function(e){return console.log("Response received"),e.json()})).then((function(e){console.log("Processed JSON response"),e.success?(console.log("Response is successful"),""==e.planKey&&t.props.history.push("/plans"),t.setState({apiKey:e.apiKey}),t.setState({name:e.name}),t.setState({planKey:e.planKey}),t.setState({planTitle:e.planTitle}),t.setState({usage:e.usage}),t.setState({email:e.email}),t.setState({period:e.period}),t.setState({invoices:e.invoices}),console.log("name: "+e.invoices)):console.log("Response is not successful")})).catch((function(e){console.error(e)})).finally((function(){return t.setState({loading:!1})}))}))}]),Object(i.a)(t,[{key:"render",value:function(){return l.a.createElement("div",{className:"d-flex flex-column min-vh-100"},l.a.createElement(V,{loggedInOnly:!0}),l.a.createElement("main",{className:"flex-fill"},l.a.createElement(Pe.a,null,l.a.createElement("h1",null,"Overview of your Account"),"You are logged in as ",l.a.createElement("div",{id:"name"},this.state.name,"\xa0")),l.a.createElement(v.a,null,l.a.createElement(L.a,null,l.a.createElement(W.a,{xs:"12",sm:"3"}," ",l.a.createElement(it,{selected:"dashboard"})),l.a.createElement(W.a,{xs:"12",sm:"8"}," ",l.a.createElement(rt.a,null,l.a.createElement(ot.a,null,l.a.createElement(L.a,null,l.a.createElement(W.a,null,l.a.createElement("h5",null,"Your API Key")),l.a.createElement(W.a,{id:"apiKey"},this.state.apiKey))),l.a.createElement(ot.a,null,l.a.createElement(L.a,null,l.a.createElement(W.a,null,l.a.createElement("h5",null,"Your Plan")),l.a.createElement(W.a,null)),l.a.createElement(L.a,null,l.a.createElement(W.a,null,"Subscription",l.a.createElement("br",null),"Usage"),l.a.createElement(W.a,null,l.a.createElement("a",{id:"planTitle"},this.state.planTitle),l.a.createElement("br",null),this.state.usage))),l.a.createElement(ot.a,null,l.a.createElement(L.a,null,l.a.createElement(W.a,null,l.a.createElement("h5",null,"Your Account")),l.a.createElement(W.a,null)),l.a.createElement(L.a,null,l.a.createElement(W.a,null,"Email",l.a.createElement("br",null),"Name"),l.a.createElement(W.a,null,this.state.email,l.a.createElement("br",null),this.state.name))),l.a.createElement(ot.a,null,l.a.createElement(L.a,null,l.a.createElement(W.a,null,l.a.createElement("h5",null,"Your Payments")),l.a.createElement(W.a,null,this.state.planTitle))," ",l.a.createElement(L.a,null,l.a.createElement(W.a,null,"Current"),l.a.createElement(W.a,null,this.state.period))),l.a.createElement("br",null),l.a.createElement("br",null),l.a.createElement("br",null),this.state.invoices?l.a.createElement(ot.a,null,l.a.createElement(L.a,null,l.a.createElement(W.a,null,l.a.createElement("h5",null,"Your Invoices")),l.a.createElement(W.a,null,this.state.invoices?this.state.invoices.map((function(e){return l.a.createElement("div",null,l.a.createElement("a",{href:e.link},e.name))})):""))):""))))),l.a.createElement(ve,null))}}]),t}(n.Component),ut=Object(h.f)(Object(Y.b)(ct)),mt=function(e){function t(e){var a;Object(s.a)(this,t),a=Object(c.a)(this,Object(u.a)(t).call(this,e)),f();var n=g.a.parse(a.props.location.search);return console.log(n.sessionId),a.state={gtmId:"GTM-PNZNW4R"},a.state.gtmId&&E.initialize({gtmId:a.state.gtmId}),a}return Object(m.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){return l.a.createElement("div",null,l.a.createElement(V,null),l.a.createElement(Pe.a,null,l.a.createElement("h1",null,"CheckoutSuccess")),l.a.createElement(ie.a,null,l.a.createElement(He.a,null,l.a.createElement("div",null))))}}]),t}(n.Component),dt=function(e){function t(e){var a;Object(s.a)(this,t),a=Object(c.a)(this,Object(u.a)(t).call(this,e)),f();var n=g.a.parse(a.props.location.search);return console.log(n.sessionId),a.state={gtmId:"GTM-PNZNW4R"},a.state.gtmId&&E.initialize({gtmId:a.state.gtmId}),a}return Object(m.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){return l.a.createElement("div",null,l.a.createElement(V,null),l.a.createElement(Pe.a,null,l.a.createElement("h1",null,"CheckoutCancel")),l.a.createElement(ie.a,null,l.a.createElement(He.a,null,l.a.createElement("div",null))))}}]),t}(n.Component),ht=function(e){function t(e){var a;Object(s.a)(this,t),(a=Object(c.a)(this,Object(u.a)(t).call(this,e))).setReCaptchaToken=function(e){console.log("got recaptcha token"),a.setState({recaptcha:e})},f(),console.log("--\x3e");var n=g.a.parse(a.props.location.search);return console.log(n.plan),a.state={gtmId:"GTM-PNZNW4R",subjects:[[1,"General Inquiry"],[2,"Billing Inquiry"],[3,"Technical Inquiry"],[4,"Other"]],message:"",baseWebUrl:"https://ip2loc.com",baseApiUrl:"https://api.ip2loc.com",reCaptchaPublicKey:"6Lcz0p4UAAAAAIbrEtIKFEmGTln-bckdW2mzFuU-",recaptcha:"",loading:!1,success:!1},a.state.gtmId&&E.initialize({gtmId:a.state.gtmId}),a.handleOnChange=a.handleOnChange.bind(Object(y.a)(a)),a.setReCaptchaToken=a.setReCaptchaToken.bind(Object(y.a)(a)),a.handleInvalidSubmit=a.handleInvalidSubmit.bind(Object(y.a)(a)),a.handleValidSubmit=a.handleValidSubmit.bind(Object(y.a)(a)),a.recaptcha=l.a.createRef(),a.recaptchaProvider=l.a.createRef(),a}return Object(m.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){document.title="Contact"}}]),Object(i.a)(t,[{key:"handleInvalidSubmit",value:function(e,t,a){console.log("handleInvalidSubmit"),console.log("event = "+JSON.stringify(e,null,2)),console.log("values = "+JSON.stringify(a,null,2)),console.log("errors = "+JSON.stringify(t,null,2))}},{key:"handleValidSubmit",value:function(e,t){var a=this;console.log("handleValidSubmit"),t.recaptcha=this.state.recaptcha,t.message=this.state.message,console.log("event = "+JSON.stringify(e,null,2)),console.log("values = "+JSON.stringify(t,null,2)),console.log("Your plan is: "+this.state.planSelected),console.log("Your input email is: "+this.state.email);var n=this.state.baseWebUrl+"/user/contact";console.log("baseWebUrl: "+n),this.setState({loading:!0}),this.setState({errorMessage:""}),fetch(n,{method:"post",headers:{Accept:"application/json"},body:JSON.stringify(t,null,2)}).then((function(e){return e.json()})).then((function(e){if(console.log("response success = "+e.success+", error = "+e.error),e.success)a.setState({errorMessage:"",success:!0});else switch(console.log("success: false"+e.error),a.recaptchaProvider.current.executeRecaptcha("contact").then((function(e){return a.setReCaptchaToken(e)})),e.error){case 422:console.log("422: "+e.field+" / "+e.detail),console.log("422: touchedInputs:"+JSON.stringify(a.form.state.touchedInputs,null,2)),a.form.state.invalidInputs[e.field]=e.detail,a.setState({errorMessage:e.detail});break;case 500:a.setState({errorMessage:e.detail});break;case 429:a.setState({errorMessage:"Too many requests, try again later."});break;default:a.setState({errorMessage:"Server Error: "+e.error})}})).catch((function(e){console.error(e),console.log("success: false catch!"),a.setState({errorMessage:"can't reach server"})})).finally((function(){a.setState({loading:!1})}))}},{key:"handleOnChange",value:function(e){this.setState({message:e.target.value})}},{key:"render",value:function(){var e=this;return l.a.createElement(De.b,{reCaptchaKey:this.state.reCaptchaPublicKey,ref:this.recaptchaProvider},l.a.createElement("div",{className:"d-flex flex-column min-vh-100"},l.a.createElement(V,null),l.a.createElement("main",{className:"flex-fill"},l.a.createElement(Pe.a,null,l.a.createElement("h1",null,"Contact us!")),l.a.createElement(v.a,null,l.a.createElement(L.a,{className:"justify-content-center"},l.a.createElement(W.a,{md:8},l.a.createElement("div",null,l.a.createElement("div",null,this.state.success?l.a.createElement(D.AvForm,null,l.a.createElement(L.a,{form:!0},l.a.createElement(W.a,{md:12},l.a.createElement(G.a,null))),l.a.createElement(D.AvGroup,{check:!0},l.a.createElement(B.a,{color:"success"},"Successfully!",l.a.createElement("br",null),"We will take care of your request as soon as possible",l.a.createElement(O.a,{icon:"check"})))):l.a.createElement(D.AvForm,{ref:function(t){return e.form=t},onValidSubmit:this.handleValidSubmit,onInvalidSubmit:this.handleInvalidSubmit},l.a.createElement(G.a,null,l.a.createElement("h4",{className:"mb-3"},"Send us a message"),l.a.createElement(D.AvField,{value:"General Inquiry",type:"select",name:"subject",label:"Please select a subject"},this.state.subjects.map((function(e){return l.a.createElement("option",{key:e[0],value:e[1]},e[1])}))),l.a.createElement(D.AvField,{name:"email",label:"Email Address *",type:"email",id:"useremail",required:!0}),l.a.createElement(Ke.a,{for:"exampleText"},"Message (Max. 2000 characters) *"),l.a.createElement(ue.a,{type:"textarea",minLength:"1",maxLength:"2000",rows:4,style:{height:200},onChange:function(t){return e.handleOnChange(t)},name:"text",id:"message"})),l.a.createElement(De.a,{onVerify:function(t){return e.setReCaptchaToken(t)},forwardRef:this.recaptcha}),this.state.errorMessage?l.a.createElement(B.a,{color:"danger"},this.state.errorMessage):"",l.a.createElement(S.a,{color:"primary",className:"float-lg-right float-left",id:"buttonprimary",disabled:this.state.loading},this.state.loading?l.a.createElement("span",null,l.a.createElement(O.a,{icon:"spinner",spin:!0})," "):l.a.createElement("span",null," Submit"))))))))),l.a.createElement(ve,null)))}}]),t}(n.Component),pt=function(e){function t(e){var a;return Object(s.a)(this,t),a=Object(c.a)(this,Object(u.a)(t).call(this,e)),f(),a.state={gtmId:"GTM-PNZNW4R",officeEmail:"office@ip2loc.com"},a.state.gtmId&&E.initialize({gtmId:a.state.gtmId}),a}return Object(m.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){document.title="Imprint"}},{key:"render",value:function(){return l.a.createElement("div",{class:"d-flex flex-column min-vh-100"},l.a.createElement(V,null),l.a.createElement("main",{className:"flex-fill"},l.a.createElement(Pe.a,null,l.a.createElement("h1",null,"Imprint")),l.a.createElement(ie.a,null,l.a.createElement(He.a,null,l.a.createElement("div",null,l.a.createElement("div",null,l.a.createElement("p",null,"Information obligation according to \xa75 E-Commerce Law, \xa714 Corporate Code, \xa763 Trade Regulations and Disclosure Obligation according to \xa725 Media Act."),l.a.createElement("br",null),l.a.createElement("span",null,"Ip2Loc")," is located at:",l.a.createElement("br",null),l.a.createElement("address",null,"Gartenstra\xdfe 21 ",l.a.createElement("br",null),"3300 Amstetten ",l.a.createElement("br",null),"Austria"),l.a.createElement("span",null,"Mail:")," ",l.a.createElement("a",{href:"mailto:"+this.state.officeEmail},this.state.officeEmail),l.a.createElement("br",null),l.a.createElement("span",null,"Member of:")," ",l.a.createElement("a",null,"WKO, UBIT"),l.a.createElement("br",null),l.a.createElement("span",null,"Professional Law: Trade Regulations:")," ",l.a.createElement("a",null,"www.ris.bka.gv.at"),l.a.createElement("br",null),l.a.createElement("br",null),l.a.createElement("p",null,"We are constantly developing the contents of this website and strive to provide correct and up-to-date information.",l.a.createElement("br",null),"Unfortunately, we can not assume any liability for the correctness of all content on this website, especially for those provided by third parties.",l.a.createElement("br",null),"If you notice any problematic or illegal content, please contact us immediately, you will find the contact details in the imprint.")))))),l.a.createElement(ve,null))}}]),t}(n.Component),gt=function(e){function t(e){var a;return Object(s.a)(this,t),a=Object(c.a)(this,Object(u.a)(t).call(this,e)),f(),a.state={gtmId:"GTM-PNZNW4R"},a.state.gtmId&&E.initialize({gtmId:a.state.gtmId}),a}return Object(m.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){document.title="Declaration on information obligation"}},{key:"render",value:function(){return l.a.createElement("div",{className:"d-flex flex-column min-vh-100"},l.a.createElement(V,null),l.a.createElement("main",{className:"flex-fill"},l.a.createElement(Pe.a,null,l.a.createElement("h1",null,"Declaration on information obligation")),l.a.createElement(ie.a,null,l.a.createElement(He.a,null,l.a.createElement("div",null,l.a.createElement("div",null,l.a.createElement("p",null,"The protection of your personal data is very important to us!",l.a.createElement("br",null),"We process yours Data therefore exclusively on the basis of the legal regulations (DSGVO, TKG 2003).",l.a.createElement("br",null),"In this privacy policy we inform you about the most important aspects the data processing within our website."),l.a.createElement("br",null),l.a.createElement("h2",null,"Contact us"),l.a.createElement("p",null,"If you contact us by ",l.a.createElement("a",{href:"/contact"},"form")," on the website or by e-mail Your specified data for processing the request and in the case of Follow-up questions stored with us for six months.",l.a.createElement("br",null),"We do not give this data without yours Consent continues."),l.a.createElement("h2",null,"Data Storage"),l.a.createElement("p",null,"We point out that for the purpose of easier shopping and later Contract handling by the web shop operator in the context of cookies the IP data of the Holder, as well as name, address and address Credit card number, VAT of the buyer."),l.a.createElement("p",null,"The data provided by you are for Contract fulfillment or to carry out pre-contractual measures required.",l.a.createElement("br",null),"Without We can not conclude this data with you.",l.a.createElement("br",null),"A data transfer to Third parties are not, with the exception of the transmission of credit card data to the Banks / payment service providers for the purpose of debiting the Purchase price, to the transport company / shipping company commissioned by us for the delivery of the goods as well as to our tax advisor for the fulfillment of our tax obligations."),l.a.createElement("p",null,"In the case of a contract, all data from the contractual relationship are stored until the expiry of the tax retention period (7 years).",l.a.createElement("br",null),"The data name, Address, purchased goods and date of purchase are also stored until the end of product liability (10 years).",l.a.createElement("br",null),"The data processing takes place on the basis of the legal regulations of \xa7 96 Abs. 3 TKG as well as of Art. 6 Abs# 1 lit a (Consent) and / or lit b (necessary for fulfillment of the contract) of the DSGVO."),l.a.createElement("h2",null,"cookies"),l.a.createElement("p",null,"Our website uses so-called cookies. These are small text files that are stored on your device using the browser.",l.a.createElement("br",null),"They do no harm. We use cookies to make our offer user-friendly.",l.a.createElement("br",null),"Some cookies remain stored on your device until you delete them. They allow us to recognize your browser on your next visit.",l.a.createElement("br",null),"If you do not want this, you can set up your browser so that it informs you about the setting of cookies and you allow this only in individual cases.",l.a.createElement("br",null),"The deactivation of cookies may limit the functionality of our website."),l.a.createElement("h2",null,"Web analytics"),l.a.createElement("p",null,"Our website uses functions of the web analytics service Google Analytics. Cookies are used for this purpose allows an analysis of the use of the website by your users. The information generated thereby is transmitted to the server of the provider and stored there. You can prevent this by setting up your browser so that no cookies are stored. We have concluded a corresponding contract data processing contract with the provider."),l.a.createElement("p",null,"Your IP address is recorded but immediately pseudonymized. As a result, only a rough localization is possible."),l.a.createElement("p",null,"Data processing is based on the statutory provisions of \xa7 96 (3) TKG and Art. 6 para 1 lit a (consent) and / or f (legitimate interest) of the GDPR. Our concern within the meaning of the DSGVO (legitimate interest) is the improvement of our offer and our website. Since the privacy of our users is important to us, the user data is pseudonymized."),l.a.createElement("h2",null,"Your rights"),l.a.createElement("p",null,"In principle, you have the right to information, correction, deletion, restriction, data portability, revocation and objection regarding your stored data. If you believe that the processing of your data violates the data protection law or otherwise your data protection claims have been violated in a way, you can complain to ",l.a.createElement("a",{href:"/contact"},"us")," or the data protection authority."),l.a.createElement("p",null,"You can reach us under the following contact details, look at ",l.a.createElement("a",{href:"/imprint"},"Imprint"),".")))))),l.a.createElement(ve,null))}}]),t}(n.Component),Et=a(95),bt=function(e){function t(e){var a;Object(s.a)(this,t),a=Object(c.a)(this,Object(u.a)(t).call(this,e)),f(),console.log("--\x3e");var n=g.a.parse(a.props.location.search);console.log(n.plan);var l="undefined"!==typeof n.plan&&null!=n.plan?n.plan:"";return console.log("--\x3e selectedPlan= "+l),a.state={gtmId:"GTM-PNZNW4R",recaptcha:"",planTitle:"",baseWebUrl:"https://ip2loc.com"},a.state.gtmId&&b.a.initialize({gtmId:a.state.gtmId}),a}return Object(m.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){document.title="Registration Success",this.fetchPlan()}},{key:"fetchPlan",value:function(){var e=Object(Qe.a)(Ze.a.mark((function e(){var t,a,n,l;return Ze.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=g.a.parse(this.props.location.search),a="".concat(this.state.baseWebUrl,"/user/plans/").concat(t.plan),console.log("--fetching--",a),e.prev=3,e.next=6,fetch(a,{method:"POST",headers:{"Content-Type":"application/json"}});case 6:if((n=e.sent).ok){e.next=10;break}return console.error("--error--",n.statusText),e.abrupt("return");case 10:return e.next=12,n.json();case 12:(l=e.sent).success?(console.log("--ok--",l.plan.title),this.setState({planTitle:l.plan.title})):console.log("--error--"),e.next=19;break;case 16:e.prev=16,e.t0=e.catch(3),console.error("--fetch error--",e.t0);case 19:case"end":return e.stop()}}),e,this,[[3,16]])})));return function(){return e.apply(this,arguments)}}()}]),Object(i.a)(t,[{key:"render",value:function(){return l.a.createElement("div",null,l.a.createElement(V,null),l.a.createElement(Pe.a,{className:"jumbotron"}),l.a.createElement("div",{id:"registrationSuccess"},l.a.createElement(B.a,{color:"success"},"Successfully signed up for the plan ",this.state.planTitle," ",l.a.createElement("br",null),"if you have not receive the activation email within 5 minutes ",l.a.createElement("a",{href:this.state.baseWebUrl+"/contact"},"contact us")," to help you out ")))}}]),t}(n.Component),ft=function(e){function t(e){var a;Object(s.a)(this,t),a=Object(c.a)(this,Object(u.a)(t).call(this,e)),f();var n=e.cookies;return a.state={gtmId:"GTM-PNZNW4R",loading:!1,name:"",apiKey:"",planKey:"",planTitle:"",quantity:0,period:"",renews_at:"",baseWebUrl:"https://ip2loc.com",baseApiUrl:"https://api.ip2loc.com",session:void 0!==n.get("session"),plans:[]},a.handleChangePlan=a.handleChangePlan.bind(Object(y.a)(a)),a.state.gtmId&&E.initialize({gtmId:a.state.gtmId}),a.state.session||a.props.history.push("/"),a}return Object(m.a)(t,e),Object(i.a)(t,[{key:"handleChangePlan",value:function(e){this.props.history.push("/changeplan?plan="+e)}},{key:"componentDidMount",value:function(){document.title="Subscription";var e=this.state.baseWebUrl+"/user/subscription";this.fetch(e)}},{key:"fetch",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){var t=this;this.setState({loading:!0}),fetch(e).then((function(e){return e.json()})).then((function(e){e.success&&(t.setState({name:e.name}),t.setState({planKey:e.planKey}),t.setState({planTitle:e.planTitle}),t.setState({quantity:e.limit}),t.setState({renews_at:e.renews_at}),t.setState({plans:e.plans}))})).catch((function(e){console.error(e)})).finally((function(){return t.setState({loading:!1})}))}))}]),Object(i.a)(t,[{key:"render",value:function(){var e=this;return l.a.createElement("div",{className:"d-flex flex-column min-vh-100"},l.a.createElement(V,null),l.a.createElement("main",{className:"flex-fill"},l.a.createElement(Pe.a,null,l.a.createElement("h1",null,"Overview of your Account"),"You are logged in as ",l.a.createElement("div",{id:"name"},this.state.name,"\xa0")),l.a.createElement("div",{className:"container"},l.a.createElement(L.a,null,l.a.createElement(W.a,{xs:"12",sm:"3"}," ",l.a.createElement(it,{selected:"subscription"})),l.a.createElement(W.a,{xs:"12",sm:"8"}," ",l.a.createElement(rt.a,null,l.a.createElement(ot.a,null,l.a.createElement(L.a,null,l.a.createElement(W.a,null,l.a.createElement("h5",null,"Your subscription: ",this.state.planTitle))),l.a.createElement(L.a,null,l.a.createElement(W.a,null,"Subscription"),l.a.createElement(W.a,null,this.state.planTitle,l.a.createElement("br",null)))),l.a.createElement("br",null),l.a.createElement(L.a,{className:"dbPricingSubscription"},this.state.plans.map((function(t,a){return l.a.createElement(W.a,null,l.a.createElement(ot.a,{className:t.key===e.state.planKey?"subscriptionSelected":""},l.a.createElement("h5",{className:"text-center"},t.title),l.a.createElement("h6",{className:"text-center"},l.a.createElement("sup",null,t.symbol),t.amount,l.a.createElement("br",null),l.a.createElement("small",null,t.amount<1?"renews at":"per "+t.time)),l.a.createElement(S.a,{disabled:e.state.planKey===t.key,onClick:function(){return e.handleChangePlan(t.key)},className:"ol-12",color:a>=1?"primary":"secondary",id:"button"+t.key},e.state.planKey===t.key?e.state.renews_at:Number(e.state.quantity) response.json())\n .then(response => {\n if (response.success) {\n if (response.country_in_eu) {\n showGdpr()\n }\n }\n });',exampleAjax1:'$.getJSON("',exampleAjax2:'/detect", function(result){\n if(result.country_in_eu){\n $("div").append(result.ip);\n }\n});',exampleCurl1:"curl ",exampleCurl2:"/detect",firstname:"",lastname:"",address:"",postalcode:"",city:"",state:"",country:"",companyname:"",companywebsite:"",taxid:""},a.state.gtmId&&E.initialize({gtmId:a.state.gtmId}),a.state.plans.forEach((function(e){console.log("value = "+e[0]),e[0]===r&&(a.state.planSelected=e[0],console.log("value == hash"))})),console.log("planSelected --\x3e "+a.state.planSelected),console.log("selectedPlan --\x3e "+r),console.log("paymentRequired --\x3e "+a.state.paymentRequired),a.planSelectDropdown=a.planSelectDropdown.bind(Object(y.a)(a)),a.setReCaptchaToken=a.setReCaptchaToken.bind(Object(y.a)(a)),a.handleInvalidSubmit=a.handleInvalidSubmit.bind(Object(y.a)(a)),a.handleValidSubmit=a.handleValidSubmit.bind(Object(y.a)(a)),a.recaptcha=l.a.createRef(),a.recaptchaProvider=l.a.createRef(),a}return Object(m.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){document.title="ChangePlan",this.fetchPlans(),this.fetchPrepareChangeSubscription(this.state.baseWebUrl+"/user/preparechangesubscription")}},{key:"fetchPrepareChangeSubscription",value:function(e){var t=this;fetch(e).then((function(e){return e.json()})).then((function(e){e.success&&(console.log("response.country: "+e.firstname),t.setState({firstname:e.firstname,lastname:e.lastname,address:e.address,postalcode:e.postalcode,city:e.city,state:e.state,companyname:e.companyname,companywebsite:e.companywebsite,taxid:e.taxid}),e.country&&t.setState({countryPreSelected:e.country}))})).catch((function(e){return console.error(e)}))}},{key:"fetchPlans",value:function(){var e=this,t=this.state.baseWebUrl+"/user/plans";console.log("--fetch-- userplans: "+t),fetch(t,{method:"POST"}).then((function(e){return e.json()})).then((function(t){t.success?(e.setState({plans:t.plans}),e.state.plans.find((function(t){return t.key===e.state.planSelected}))||e.setState({planSelected:e.state.plans[1].key}),e.setState({paymentRequired:e.state.plans.some((function(t){return t.key==e.state.planSelected&&t.amount>0}))}),console.log(t.plans),console.log("--ok--")):console.log("--error--")}))}}]),Object(i.a)(t,[{key:"planSelectDropdown",value:function(e){this.setState({paymentRequired:this.state.plans.some((function(t){return t.key==e.target.value&&t.amount>0}))})}},{key:"handleInvalidSubmit",value:function(e,t,a){console.log("handleInvalidSubmit"),console.log("event = "+JSON.stringify(e,null,2)),console.log("values = "+JSON.stringify(a,null,2)),console.log("errors = "+JSON.stringify(t,null,2))}},{key:"handleValidSubmit",value:function(e,t){var a=this;console.log("handleValidSubmit"),t.recaptcha=this.state.recaptcha,console.log("event = "+JSON.stringify(e,null,2)),console.log("values = "+JSON.stringify(t,null,2)),console.log("Your plan is: "+this.state.planSelected),console.log("Your input email is: "+this.state.email),console.log("baseWebUrl: "+this.state.baseWebUrl);var n=this.state.baseWebUrl+"/user/changeplan";this.setState({loading:!0}),this.setState({errorMessage:""}),fetch(n,{method:"post",headers:{Accept:"application/json"},body:JSON.stringify(t,null,2)}).then((function(e){return e.json()})).then((function(e){if(console.log("response success = "+e.success+", error = "+e.error),e.success)if(void 0!==e.paymentId){console.log("paymentId: "+e.paymentId);var t="/checkout?plan="+e.planKey+"&paymentId="+e.paymentId;a.props.history.push(t)}else a.props.history.push("/registrationsuccess?plan="+e.planKey);else switch(console.log("success: false"+e.error),a.recaptchaProvider.current.executeRecaptcha("register").then((function(e){return a.setReCaptchaToken(e)})),e.error){case 422:console.log("422: "+e.field+" / "+e.detail),console.log("422: touchedInputs:"+JSON.stringify(a.form.state.touchedInputs,null,2)),a.form.state.invalidInputs[e.field]=e.detail,a.setState({errorMessage:e.detail});break;case 500:a.setState({errorMessage:e.detail});break;case 429:a.setState({errorMessage:"Too many requests, try again later."});break;default:a.setState({errorMessage:"Server Error: "+e.error})}})).catch((function(e){console.error(e),console.log("success: false catch!"),a.setState({errorMessage:"can't reach server"})})).finally((function(){a.setState({loading:!1})}))}},{key:"fetch",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){var t=this;this.setState({loading:!0}),fetch(e).then((function(e){return e.json()})).then((function(e){e.success&&(console.log("apiKey: "+e.apiKey),t.setState({apiKey:e.apiKey}))})).catch((function(e){console.error(e),t.props.history.push("/#")})).finally((function(){return t.setState({loading:!1})}))}))},{key:"render",value:function(){var e=this;return l.a.createElement(De.b,{reCaptchaKey:this.state.reCaptchaPublicKey,ref:this.recaptchaProvider},l.a.createElement("div",null,l.a.createElement(V,{loggedInOnly:!0}),l.a.createElement(Pe.a,null,l.a.createElement("h1",null,"Change Plan")),l.a.createElement(v.a,null,l.a.createElement(L.a,{className:"justify-content-center"},l.a.createElement(W.a,{md:8},l.a.createElement("div",null,l.a.createElement("div",null,this.state.success?l.a.createElement(D.AvForm,{className:"form-data"},l.a.createElement(L.a,{form:!0},l.a.createElement(W.a,{md:12},l.a.createElement(G.a,null))),l.a.createElement(D.AvGroup,{check:!0},l.a.createElement(B.a,{color:"success"},"Successful! Check your Email. ",l.a.createElement(O.a,{icon:"check"}))),l.a.createElement(S.a,{color:"primary",className:"float-right",id:"buttonOk",onClick:this.toggle},l.a.createElement("span",null,"Ok"))):l.a.createElement(D.AvForm,{className:"form-data",ref:function(t){return e.form=t},onValidSubmit:this.handleValidSubmit,onInvalidSubmit:this.handleInvalidSubmit},l.a.createElement("div",null,l.a.createElement("h4",{className:"mb-3"},"Your new Plan"),l.a.createElement(D.AvField,{value:this.state.planSelected,type:"select",name:"planKey",disabled:!0,onChange:this.planSelectDropdown},this.state.plans.map((function(e){return l.a.createElement("option",{value:e.key,key:e.key},"0"==e.trial?e.title+" "+e.description+" "+e.symbol+e.amount:"Try "+e.trial+" days for Free - "+e.title+" "+e.description)})))),this.state.paymentRequired?l.a.createElement("div",null,l.a.createElement("h4",{className:"mb-3"},"Update Billing data"),l.a.createElement(G.a,null,l.a.createElement(L.a,null,l.a.createElement(W.a,{xs:"12",sm:"6"},l.a.createElement(D.AvField,{name:"firstname",label:this.state.paymentRequired?"First Name *":"First Name",type:"text",id:"firstname",required:this.state.paymentRequired,value:this.state.firstname})),l.a.createElement(W.a,{xs:"12",sm:"6"},l.a.createElement(D.AvField,{name:"lastname",label:this.state.paymentRequired?"Last Name *":"Last Name",type:"text",id:"lastname",required:this.state.paymentRequired,value:this.state.lastname}))),l.a.createElement(D.AvField,{name:"address",label:this.state.paymentRequired?"Address *":"Address",type:"text",id:"address",required:this.state.paymentRequired,value:this.state.address}),l.a.createElement(D.AvField,{name:"postalcode",label:this.state.paymentRequired?"Postal Code *":"Postal Code",type:"text",id:"postalcode",required:this.state.paymentRequired,value:this.state.postalcode}),l.a.createElement(L.a,null,l.a.createElement(W.a,{xs:"12",sm:"6"},l.a.createElement(D.AvField,{name:"city",label:this.state.paymentRequired?"City *":"City",type:"text",id:"city",required:this.state.paymentRequired,value:this.state.city})),l.a.createElement(W.a,{xs:"12",sm:"6"},l.a.createElement(D.AvField,{name:"state",label:"State",type:"text",id:"state",value:this.state.state}))),l.a.createElement(D.AvField,{value:this.state.countryPreSelected,type:"select",name:"country",label:this.state.paymentRequired?"Select your Country *":"Select your Country",required:this.state.paymentRequired},l.a.createElement("option",{value:"",disabled:!0,selected:!0},"Select your Country"),this.state.countries.map((function(e){return l.a.createElement("option",{value:e[1]},e[0])})))),l.a.createElement("h4",{className:"mb-3"},"Company"),l.a.createElement(G.a,null,l.a.createElement(D.AvField,{name:"companyname",label:"Company Name",type:"text",id:"companyname",value:this.state.companyname}),l.a.createElement(D.AvField,{name:"companywebsite",label:"Company Website",type:"text",id:"website",value:this.state.companywebsite}),l.a.createElement(D.AvField,{name:"taxid",label:"Tax ID / VAT Number (required for reverse charge business user)",type:"text",id:"taxid",value:this.state.taxid}))):"",l.a.createElement(G.a,null,l.a.createElement(De.a,{onVerify:function(t){return e.setReCaptchaToken(t)},ref:this.recaptcha}),this.state.errorMessage?l.a.createElement(B.a,{color:"danger"},this.state.errorMessage):"",l.a.createElement(S.a,{color:"primary",block:!0,className:"float-lg-right float-left",id:"buttonprimary",disabled:this.state.loading},this.state.loading?l.a.createElement("span",null,l.a.createElement(O.a,{icon:"spinner",spin:!0})," "):l.a.createElement("span",null,"Continue \xbb")),l.a.createElement("br",null),l.a.createElement("br",null))))))))))}}]),t}(n.Component),It=function(e){function t(e){var a;Object(s.a)(this,t),a=Object(c.a)(this,Object(u.a)(t).call(this,e)),f(),console.log("--\x3e");var n=g.a.parse(a.props.location.search);console.log(n.plan);var l="undefined"!==typeof n.plan&&null!=n.plan?n.plan:"";return console.log("--\x3e selectedPlan= "+l),a.state={gtmId:"GTM-PNZNW4R",recaptcha:"",planTitle:"",baseWebUrl:"https://ip2loc.com"},a.state.gtmId&&E.initialize({gtmId:a.state.gtmId}),a}return Object(m.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){document.title="Plan Changed Success",this.fetchPlan()}},{key:"fetchPlan",value:function(){var e=this,t=g.a.parse(this.props.location.search);console.log("fetch fetch fetch"),console.log("fetch = "+this.state.baseWebUrl+"/user/plans"+t.plan),fetch(this.state.baseWebUrl+"/user/plans/"+t.plan).then((function(e){return e.json()})).then((function(t){t.success?(console.log("fetch --ok-- "+t.plan.title),e.setState({planTitle:t.plan.title})):console.log("fetch --error--")}))}}]),Object(i.a)(t,[{key:"render",value:function(){return l.a.createElement("div",null,l.a.createElement(V,null),l.a.createElement(Pe.a,{className:"jumbotron"}),l.a.createElement(B.a,{color:"success"},"Successfully changed to plan ",this.state.planTitle," !"))}}]),t}(n.Component),Ct=function(e){function t(e){var a;return Object(s.a)(this,t),a=Object(c.a)(this,Object(u.a)(t).call(this,e)),f(),a.state={baseWebUrl:"https://ip2loc.com"},a}return Object(m.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){document.title="SSO Login Success"}}]),Object(i.a)(t,[{key:"render",value:function(){return l.a.createElement("div",null,l.a.createElement(V,null),l.a.createElement(Pe.a,null),l.a.createElement("div",{id:"registrationSuccess"},l.a.createElement(B.a,{color:"success"},"Successfully requested SSO Login ",l.a.createElement("br",null),"if you have not receive the SSO email within 5 minutes ",l.a.createElement("a",{href:this.state.baseWebUrl+"/contact"},"contact us")," to help you out ")))}}]),t}(n.Component),kt=function(e){function t(e){var a;Object(s.a)(this,t),a=Object(c.a)(this,Object(u.a)(t).call(this,e)),f();var n=e.cookies;return a.state={gtmId:"GTM-PNZNW4R",loading:!1,name:"",apiKey:"",planKey:"",planTitle:"",usage:"1/2",email:"",period:"",invoices:null,baseWebUrl:"https://ip2loc.com",baseApiUrl:"https://api.ip2loc.com",session:void 0!==n.get("session")},a.state.gtmId&&E.initialize({gtmId:a.state.gtmId}),a.state.session||a.props.history.push("/"),a}return Object(m.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){document.title="Settings";var e=this.state.baseWebUrl+"/user/dashboard";this.fetch(e)}},{key:"fetch",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){var t=this;this.setState({loading:!0}),fetch(e).then((function(e){return e.json()})).then((function(e){e.success&&(t.setState({apiKey:e.apiKey}),t.setState({name:e.name}),t.setState({planKey:e.planKey}),t.setState({planTitle:e.planTitle}),t.setState({usage:e.usage}),t.setState({email:e.email}),t.setState({period:e.period}),t.setState({invoices:e.invoices}),console.log("name: "+e.invoices))})).catch((function(e){console.error(e)})).finally((function(){return t.setState({loading:!1})}))}))}]),Object(i.a)(t,[{key:"render",value:function(){return l.a.createElement("div",{className:"d-flex flex-column min-vh-100"},l.a.createElement(V,null),l.a.createElement("main",{className:"flex-fill"},l.a.createElement(Pe.a,null,l.a.createElement("h1",null,"Overview of your Account"),"You are logged in as ",l.a.createElement("div",{id:"name"},this.state.name,"\xa0")),l.a.createElement(v.a,null,l.a.createElement(L.a,null,l.a.createElement(W.a,{xs:"12",sm:"3"}," ",l.a.createElement(it,{selected:"settings"})),l.a.createElement(W.a,{xs:"12",sm:"8"}," ",l.a.createElement(rt.a,null,l.a.createElement(ot.a,null,l.a.createElement(L.a,null,l.a.createElement(W.a,null,l.a.createElement("h5",null,"Your API Key")),l.a.createElement(W.a,{id:"apiKey"},this.state.apiKey))),l.a.createElement(ot.a,null,l.a.createElement(L.a,null,l.a.createElement(W.a,null,l.a.createElement("h5",null,"Your Plan")),l.a.createElement(W.a,null)),l.a.createElement(L.a,null,l.a.createElement(W.a,null,"Subscription",l.a.createElement("br",null),"Usage"),l.a.createElement(W.a,null,l.a.createElement("a",{id:"planTitle"},this.state.planTitle),l.a.createElement("br",null),this.state.usage))),l.a.createElement(ot.a,null,l.a.createElement(L.a,null,l.a.createElement(W.a,null,l.a.createElement("h5",null,"Your Account")),l.a.createElement(W.a,null)),l.a.createElement(L.a,null,l.a.createElement(W.a,null,"Email",l.a.createElement("br",null),"Name"),l.a.createElement(W.a,null,this.state.email,l.a.createElement("br",null),this.state.name))),l.a.createElement(ot.a,null,l.a.createElement(L.a,null,l.a.createElement(W.a,null,l.a.createElement("h5",null,"Your Payments")),l.a.createElement(W.a,null,this.state.planTitle))," ",l.a.createElement(L.a,null,l.a.createElement(W.a,null,"Current"),l.a.createElement(W.a,null,this.state.period))),l.a.createElement("br",null),l.a.createElement("br",null),l.a.createElement("br",null),this.state.invoices?l.a.createElement(ot.a,null,l.a.createElement(L.a,null,l.a.createElement(W.a,null,l.a.createElement("h5",null,"Your Invoices")),l.a.createElement(W.a,null,this.state.invoices?this.state.invoices.map((function(e){return l.a.createElement("div",null,l.a.createElement("a",{href:e.link},e.name))})):""))):""))))),l.a.createElement(ve,null))}}]),t}(n.Component),Pt=Object(h.f)(Object(Y.b)(kt)),Tt=a(128),jt=function(e){function t(e){var a;Object(s.a)(this,t),a=Object(c.a)(this,Object(u.a)(t).call(this,e)),f(),console.log("--\x3e");var n=g.a.parse(a.props.location.search);console.log(n.plan);var l="undefined"!==typeof n.plan&&null!=n.plan?n.plan:"";return console.log('selectedPlan = "'+l+'" typeof(message.plan) = '+typeof n.plan),a.state={gtmId:"GTM-PNZNW4R",baseWebUrl:"https://ip2loc.com",baseApiUrl:"https://api.ip2loc.com",email:"",errorMessage:"",loading:!1,success:!1},a.state.gtmId&&E.initialize({gtmId:a.state.gtmId}),a.handleSSOSubmit=a.handleSSOSubmit.bind(Object(y.a)(a)),a.updateSignupEmail=a.updateSignupEmail.bind(Object(y.a)(a)),a.handleValidSubmit=a.handleValidSubmit.bind(Object(y.a)(a)),a}return Object(m.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){document.title="Login"}}]),Object(i.a)(t,[{key:"updateSignupEmail",value:function(e){this.setState({signupEmail:e.target.value})}},{key:"handleSSOSubmit",value:function(){console.log("handleSSOSubmit: "+this.state.baseWebUrl),this.setState({isSsoLogin:!0}),this.form.submit()}},{key:"handleInvalidSubmit",value:function(e,t,a){console.log("handleInvalidSubmit event: "+e),console.log("handleInvalidSubmit errors: "+t),console.log("handleInvalidSubmit values: "+a)}},{key:"handleValidSubmit",value:function(){var e=this;console.log("Your input email is: "+this.state.signupEmail),console.log("baseWebUrl: "+this.state.baseWebUrl);var t=this.state.baseWebUrl+"/user/requestsso";this.setState({loading:!0}),fetch(t,{method:"post",headers:{Accept:"application/json"},body:JSON.stringify({email:this.state.signupEmail})}).then((function(e){return e.json()})).then((function(t){if(console.log("response success = "+t.success+", error = "+t.error),t.success)e.setState({errorMessage:"",success:!0});else switch(console.log("success: false"+t.error),t.error){case 208:e.setState({errorMessage:"Email already exists!"});break;case 403:e.setState({errorMessage:"Invalid Email!"});break;case 404:e.setState({errorMessage:"Email not exists!"});break;case 429:e.setState({errorMessage:"Too many requests, try again later."});break;default:e.setState({errorMessage:"Server Error: "+t.error})}})).catch((function(t){console.error(t),console.log("success: false catch!"),e.setState({errorMessage:"can't reach server"})})).finally((function(){e.setState({loading:!1})}))}},{key:"render",value:function(){var e,t=this;return l.a.createElement(De.b,{reCaptchaKey:this.state.reCaptchaPublicKey,ref:this.recaptchaProvider},l.a.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"}},l.a.createElement(D.AvForm,{ref:function(e){return t.form=e},onValidSubmit:this.handleValidSubmit,onInvalidSubmit:this.handleInvalidSubmit,className:"form-login text-center"},l.a.createElement("p",{className:"h1"},"Ip2Loc"),l.a.createElement("img",{className:"mb-4",src:"/img/ip2loc-icon.svg",alt:"",width:"72",height:"72"}),this.state.success?l.a.createElement("div",null,l.a.createElement(D.AvForm,null,l.a.createElement(L.a,{form:!0},l.a.createElement(W.a,{md:12},l.a.createElement(G.a,null))),l.a.createElement(D.AvGroup,null,this.state.errorMessage?l.a.createElement(B.a,{color:"danger"},this.state.errorMessage):l.a.createElement(B.a,{color:"success"},"We sent you a link to log in to ",this.state.signupEmail,". ",l.a.createElement(O.a,{icon:"check"}))),l.a.createElement(S.a,{color:"primary",className:"mx-auto",id:"buttonResend",onClick:this.handleValidSubmit},l.a.createElement("span",null,"Resend "),l.a.createElement(H.a,null)))):l.a.createElement("div",null,l.a.createElement("h1",{className:"h4 mb-4 font-weight-normal"},"Enter your email to sign in or create an account"),l.a.createElement(D.AvField,(e={onChange:this.updateSignupEmail,className:"form-control",placeholder:"your@email.com",name:"email",id:"inputEmail",label:"Email Address",type:"email"},Object(Tt.a)(e,"id","useremail"),Object(Tt.a)(e,"equired",!0),Object(Tt.a)(e,"autoFocus",!0),e)),l.a.createElement("br",null),l.a.createElement("p",{className:"form-login-small"},"By signing up, you agree to our ",l.a.createElement("a",{href:"termsandconditions",className:"form-login-small",target:"_blank"},"terms of service and privacy policy"),"."),l.a.createElement("br",null),l.a.createElement(S.a,{color:"primary",block:!0,id:"buttonsso",onClick:this.handleSSOSubmit,disabled:this.state.loading},this.state.loading?l.a.createElement("span",null,l.a.createElement(O.a,{icon:"spinner",spin:!0})," "):l.a.createElement("span",null,"Submit")),this.state.errorMessage?l.a.createElement(B.a,{color:"danger"},this.state.errorMessage):""))))}}]),t}(n.Component),Nt=function(e){function t(){return Object(s.a)(this,t),Object(c.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(m.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){document.title="Plans"}},{key:"render",value:function(){return l.a.createElement(Ge,{loggedInOnly:!0})}}]),t}(n.Component),_t=function(e){function t(e){var a;Object(s.a)(this,t),a=Object(c.a)(this,Object(u.a)(t).call(this,e)),f();var n=g.a.parse(a.props.location.search),l=n.paymentId;return a.state={baseApiUrl:"https://api.ip2loc.com",baseWebUrl:"https://ip2loc.com",paymentId:l,signupWithPlanSelected:n.plan,plan:[],email:"",tax:0,amountTax:0,amountTotal:0,processing:!1,errorMessage:"",gtmId:"GTM-PNZNW4R",validationPayment:!1},console.log(l),a.state.gtmId&&E.initialize({gtmId:a.state.gtmId}),a}return Object(m.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){document.title="UpdatePaymentDetails"}}]),Object(i.a)(t,[{key:"render",value:function(){return l.a.createElement("div",null,l.a.createElement(V,null),l.a.createElement(Pe.a,null),this.state.validationPayment?l.a.createElement(ie.a,null,l.a.createElement(He.a,null,l.a.createElement(v.a,{className:"justify-content-center"},l.a.createElement("div",null,this.state.errorMessage?l.a.createElement(B.a,{color:"danger"},"Error:",this.state.errorMessage):l.a.createElement("div",null,l.a.createElement(O.a,{icon:"spinner",spin:!0})," one moment... validating payment"))))):l.a.createElement("div",null,l.a.createElement("div",{className:"container"},l.a.createElement("div",{className:"row justify-content-center"},l.a.createElement("div",{className:"col-md main-content"},void 0===this.state.signupWithPlanSelected?l.a.createElement("div",null):this.PlanDetails()),l.a.createElement("div",{className:"col-md extra-div"},this.CheckoutBasedOnType(this.state.plan.type))))))}},{key:"PlanDetails",value:function(){return l.a.createElement("div",null,l.a.createElement("h2",{id:"planTitle"},this.state.plan.title," Plan"),"0"===this.state.plan.trial?"":l.a.createElement("b",{className:"ulListFeatures"},this.state.plan.trial,"-Day Free Trial"),this.state.plan.quantity<1e5?l.a.createElement("p",null,"For beginner and small projects."):l.a.createElement("p",null,this.state.plan.quantity<1e6?l.a.createElement("p",null,"Our most popular plan for medium projects."):l.a.createElement("p",null,"Extensive API usage for large projects.")),l.a.createElement("ul",{className:"ulListFeatures"},l.a.createElement("li",null,l.a.createElement(O.a,{icon:"check",color:"#00a8ff"}),l.a.createElement("span",null,this.state.plan.description,"/",this.state.plan.time)),l.a.createElement("li",null,l.a.createElement(O.a,{icon:"check",color:"#00a8ff"}),l.a.createElement("span",null,"HTTPS")),l.a.createElement("li",null,l.a.createElement(O.a,{icon:"check",color:"#00a8ff"}),l.a.createElement("span",null,"LOCATION")),l.a.createElement("li",null,l.a.createElement(O.a,{icon:"check",color:"#00a8ff"}),l.a.createElement("span",null,"CURRENCY")),l.a.createElement("li",null,l.a.createElement(O.a,{icon:"check",color:"#00a8ff"}),l.a.createElement("span",null,"Cancel at any time"))),l.a.createElement("hr",null),l.a.createElement("table",{className:"table borderless costtable"},l.a.createElement("tbody",null,l.a.createElement("tr",null,l.a.createElement("td",null,"Subtotal"),l.a.createElement("td",null,"0"===this.state.plan.trial?l.a.createElement("p",null,this.state.plan.symbol,this.state.plan.amount):"$0.00")),l.a.createElement("tr",null,l.a.createElement("td",null,"Tax"),l.a.createElement("td",null,"0"===this.state.plan.trial?l.a.createElement("p",null,this.state.plan.symbol,this.state.amountTax):"$0.00")),l.a.createElement("tr",null,l.a.createElement("td",null,"Total"),l.a.createElement("td",null,"0"===this.state.plan.trial?l.a.createElement("p",null,this.state.plan.symbol,this.state.amountTotal):"$0.00")),l.a.createElement("tr",null,l.a.createElement("td",null),l.a.createElement("td",null,"Then ",this.state.plan.symbol,"0"===this.state.plan.trial?this.state.amountTotal:this.state.plan.amount," per ",this.state.plan.time,".")))),l.a.createElement("hr",null))}},{key:"CheckoutBasedOnType",value:function(e){return l.a.createElement(et,{paymentId:this.state.paymentId})}}]),t}(n.Component);Et.b.add(ke.a);var wt=function(e){function t(){return Object(s.a)(this,t),Object(c.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(m.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){return console.log("REACT_APP_ENVIRONMENT flavor => ","geocoder"),l.a.createElement(d.a,null,l.a.createElement(h.c,null,l.a.createElement(h.a,{exact:!0,path:"/",component:Ce}),l.a.createElement(h.a,{exact:!0,path:"/activation",component:Te}),l.a.createElement(h.a,{exact:!0,path:"/signin",component:je}),l.a.createElement(h.a,{exact:!0,path:"/contact",component:ht}),l.a.createElement(h.a,{exact:!0,path:"/status",component:Ue}),l.a.createElement(h.a,{exact:!0,path:"/documentation",component:Re}),l.a.createElement(h.a,{exact:!0,path:"/useCases",component:Ye}),l.a.createElement(h.a,{exact:!0,path:"/pricing",component:Be}),l.a.createElement(h.a,{exact:!0,path:"/plans",component:Nt}),l.a.createElement(h.a,{exact:!0,path:"/login",component:jt}),l.a.createElement(h.a,{exact:!0,path:"/changeplan",component:At}),l.a.createElement(h.a,{exact:!0,path:"/registrationsuccess",component:bt}),l.a.createElement(h.a,{exact:!0,path:"/checkemailsso",component:Ct}),l.a.createElement(h.a,{exact:!0,path:"/planchangedsuccess",component:It}),l.a.createElement(h.a,{exact:!0,path:"/faq",component:qe}),l.a.createElement(h.a,{exact:!0,path:"/termsandconditions",component:Fe}),l.a.createElement(h.a,{exact:!0,path:"/imprint",component:pt}),l.a.createElement(h.a,{exact:!0,path:"/dataprotection",component:gt}),l.a.createElement(h.a,{exact:!0,path:"/dashboard",component:ut}),l.a.createElement(h.a,{exact:!0,path:"/subscription",component:yt}),l.a.createElement(h.a,{exact:!0,path:"/payment",component:Ot}),l.a.createElement(h.a,{exact:!0,path:"/settings",component:Pt}),l.a.createElement(h.a,{exact:!0,path:"/checkout",component:lt}),l.a.createElement(h.a,{exact:!0,path:"/updatePaymentDetails",component:_t}),l.a.createElement(h.a,{exact:!0,path:"/checkoutVerification",component:nt}),l.a.createElement(h.a,{exact:!0,path:"/checkoutSuccess",component:mt}),l.a.createElement(h.a,{exact:!0,path:"/checkoutCancel",component:dt}),l.a.createElement(h.a,{exact:!0,component:Error})))}}]),t}(n.Component),Mt=Object(Y.b)(wt);Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));o.a.render(l.a.createElement(Y.a,null,l.a.createElement(Mt,null)),document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()}))}},[[261,152,153]]]);