PageSourceSearch

https://empathysetapp.com/_next/static/chunks/5342-bd3c65cafe06b03a.js

js empathysetapp.com collected 2026-10-04 06:30:52 UTC 7,592 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5342],{7890:function(e,t,a){"use strict";a.d(t,{JW:function(){return r}});var s=a(8213),n=a(5121);a(129);let r="https://api.empathysetapp.com/api/v2/";t.ZP={services:{loginService:e=>(console.log("my api is getting struck"),console.log("apiUrl=>>>>>>>",r),n.Z.post(r+"/auth/sign_in",null,{params:e})),headerToken(e){let t=localStorage.getItem("token");return n.Z.defaults.headers.common={Authorization:"Bearer ".concat(e||t)}},socialLoginService:e=>n.Z.post(r+"auth/social_sign_in",null,{params:e}),loginFacebookServices:e=>n.Z.post(r+"facebook/sign_in",e),loginAppleServices:e=>n.Z.post(r+"apple/sign_in",e),registerService:e=>new Promise((t,a)=>{n.Z.post(r+"auth",null,{params:e}).then(e=>{t(e)}).catch(e=>{a(e.response)})}),updateFCMToken:e=>new Promise((t,a)=>{n.Z.post(r+"users/add_device_details",null,{params:e}).then(e=>{t(e)}).catch(e=>{a(e.response)})}),getInvitations:()=>n.Z.get(r+"invitations"),getGameCount:()=>n.Z.get(r+"points/available_game_points"),createInvitation:e=>new Promise((t,a)=>{n.Z.post(r+"invitations",null,{params:e}).then(e=>{t(e)}).catch(e=>{a(e.response)})}),async sendInvitation(e){let t="".concat(r,"invitations?name=").concat(null==e?void 0:e.name,"&email=").concat(null==e?void 0:e.email);this.headerToken();try{await n.Z.post(t),(0,s.Q)("Invitation sent.")}catch(e){var a,i;(0,s.I)((null==e?void 0:null===(i=e.response)||void 0===i?void 0:null===(a=i.data)||void 0===a?void 0:a.message)||e.message)}},resendInvitation:e=>new Promise((t,a)=>{n.Z.get("".concat(r,"invitations/resend_invitation?invitation_id=").concat(e)).then(e=>{t(e)}).catch(e=>{a(e.response)})}),sendGift:e=>new Promise((t,a)=>{n.Z.post(r+"free_gifts",null,{params:e}).then(e=>{t(e)}).catch(e=>{a(e.response)})}),getProducts:()=>n.Z.get(r+"points/get_point_products"),getNotifications:()=>n.Z.get(r+"users/user_notification"),generatePDF:e=>n.Z.get("".concat(r,"games/").concat(e,"/generate-pdf")),async paymentIntent(e){try{return(await n.Z.post(r+"points/create_payment_intent",e)).data}catch(e){throw e}},purchasePoints(e){return this.headerToken(),new Promise((t,a)=>{n.Z.post(r+"points/buy_points",null,{params:e}).then(e=>{t(e)}).catch(e=>{a(e.response)})})},redeemGift:e=>new Promise((t,a)=>{n.Z.post(r+"free_gifts/add_gift_card",null,{params:e}).then(e=>{t(e)}).catch(e=>{a(e.response)})}),deleteAccount:e=>new Promise((t,a)=>{n.Z.delete(r+"auth/?id="+e).then(e=>{t(e)}).catch(e=>{a(e.response)})}),getFolders(){return this.headerToken(),n.Z.get(r+"folders")},getGame(e){return this.headerToken(),n.Z.get(r+"games/"+e.id)},getGameSummary(e){return this.headerToken(),n.Z.get(r+"games/"+e)},setDueDate:e=>n.Z.post(r+"users/set_due_date",null,{params:e}),getUserInfo:()=>n.Z.get(r+"users/info"),getCards(e,t,a){return this.headerToken(),n.Z.get(r+"types/"+("feelings"==e?"1":"2")+"?lite_deck="+t+"&default_deck="+a)},async save(e,t){await localStorage.setItem(e,t)},async deleteKey(e){await localStorage.removeItem(e)},async getValueFor(e){let t=await localStorage.getItem(e);if(t)return t},getLocalStorageKey:e=>localStorage.getItem(e),lastGame:async()=>n.Z.get(r+"games/last_game"),createGame:async e=>n.Z.post(r+"games",null,{params:e}),restorePurchases:async e=>n.Z.post(r+"users/restore_purchase",null,{params:e}),createStatement:async(e,t)=>n.Z.post(r+"games/"+e+"/statements",null,{params:t}),deleteStatement:async(e,t)=>n.Z.delete(r+"games/"+e+"/statements/"+t),updateStatement:async(e,t,a)=>n.Z.put(r+"games/"+e+"/statements/"+t,null,{params:a}),updateGame:async(e,t)=>n.Z.put(r+"games/"+e,null,{params:t}),switchToPremium:e=>new Promise((t,a)=>{n.Z.post(r+"games/switch_to_premium",null,{params:e}).then(e=>{t(e)}).catch(e=>{a(e.response)})}),createFolder:async e=>n.Z.post(r+"folders",null,{params:e}),sendPasswordInstructions:async e=>new Promise((t,a)=>{n.Z.post(r+"auth/password",null,{params:e}).then(e=>{t(e)}).catch(e=>{a(e.response)})}),resetPassword:async e=>new Promise((t,a)=>{n.Z.put(r+"auth/reset-password",e).then(e=>{t(e)}).catch(e=>{a(e.response)})}),async changePassword(e){return this.headerToken(),new Promise((t,a)=>{n.Z.post(r+"users/change_password",e).then(e=>{t(e)}).catch(e=>{a(e.response)})})},async secondSelected(e){var t=r+"card_selected_games/getselectionUp2?game_id="+(null==e?void 0:e.game_id)+"&deck_type="+(null==e?void 0:e.deck_type)+"&me="+(null==e?void 0:e.me);return n.Z.get(t)},async thirdSelected(e){var t=r+"card_selected_games/getselectionUp3?game_id="+(null==e?void 0:e.game_id)+"&deck_type="+(null==e?void 0:e.deck_type)+"&me="+(null==e?void 0:e.me);return n.Z.get(t)},firstSelection:async e=>n.Z.post(r+"card_selected_games/firstSelection",null,{params:e}),secondSelection:async e=>n.Z.post(r+"card_selected_games/selectionUp2",null,{params:e}),thirdSelection:async e=>n.Z.post(r+"card_selected_games/selectionUp3",null,{params:e}),deleteGame:async e=>n.Z.delete(r+"games/"+e),deleteFolder:async e=>n.Z.delete(r+"folders/"+e)}}},8213:function(e,t,a){"use strict";a.d(t,{I:function(){return r},Q:function(){return n}});var s=a(2920);let n=e=>{s.Am.success(e,{position:"top-right",autoClose:2e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0})},r=e=>{s.Am.error(e,{position:"top-right",autoClose:2e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0})}},3991:function(e,t,a){"use strict";a.r(t);var s=a(5893),n=a(7294),r=a(5121),i=a(5152),o=a.n(i),l=a(7890),c=a(8213);let m=o()(()=>a.e(4853).then(a.bind(a,4853)),{loadableGenerated:{webpack:()=>[4853]},ssr:!1});t.default=()=>
1{let[e,t]=(0,n.useState)({name:"",email:"",message:""}),[a,i]=(0,n.useState)({}),[o,d]=(0,n.useState)(null),u=(0,n.useRef)(null),p=e=>{let{name:a,value:s}=e.target;t(e=>({...e,[a]:s}))},g=()=>{let t={};return e.name.trim()||(t.name="Name is required"),e.email.trim()?/^\S+@\S+\.\S+$/.test(e.email)||(t.email="Invalid email format"):t.email="Email is required",e.message.trim()||(t.message="Message is required"),e.message.length>255&&(t.message="Max 255 characters"),e.email.length>255&&(t.email="Max 255 characters"),o||(t.captcha="Please complete the captcha"),i(t),0===Object.keys(t).length},h=async a=>{if(a.preventDefault(),g())try{var s;let a="".concat(l.JW,"notifications/user_contact_mail_send"),n=await r.Z.get(a,{params:{...e,"g-recaptcha-response":o,token:o}});console.log(n.data),t({name:"",email:"",message:""}),null===(s=window.grecaptcha)||void 0===s||s.reset(),d(null),(0,c.Q)("Your query has been sent!")}catch(e){console.error("Error submitting form:",e),(0,c.I)(e.message)}};return(0,s.jsxs)("div",{className:"query-form",children:[(0,s.jsx)("h2",{children:"Contact Us"}),(0,s.jsx)("div",{className:"query-form-box",children:(0,s.jsxs)("form",{onSubmit:h,children:[(0,s.jsx)("input",{type:"text",name:"name",placeholder:"Your Name",value:e.name,onChange:p}),a.name&&(0,s.jsx)("div",{className:"text-warning fntSz12",children:a.name}),(0,s.jsx)("input",{type:"email",name:"email",placeholder:"Your Email",value:e.email,onChange:p,maxLength:255}),a.email&&(0,s.jsx)("div",{className:"text-warning fntSz12",children:a.email}),(0,s.jsx)("textarea",{name:"message",placeholder:"Your Message",value:e.message,onChange:p}),a.message&&(0,s.jsx)("div",{className:"text-warning fntSz12",children:a.message}),(0,s.jsxs)("div",{style:{margin:"8px 0"},children:[(0,s.jsx)(m,{ref:u,theme:"dark",sitekey:"6LfPLwgsAAAAALmsb5Y5LkRgiW3a0Gq-CcfxwMHn",onChange:e=>d(e),onExpired:()=>d(null)}),a.captcha&&(0,s.jsx)("div",{className:"text-warning fntSz12",children:a.captcha})]}),(0,s.jsx)("button",{type:"submit",className:"send-bt",children:"Get in Touch"})]})})]})}},4654:function(){}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.