PageSourceSearch

https://www.coupongini.com/_next/static/chunks/6658-e60e712b1b110532.js

js coupongini.com collected 2026-10-01 23:42:41 UTC 9,281 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6658],{3689:function(e,t,a){"use strict";var o=a(5893),n=a(7294);a(3502);var l=a(5518);t.Z=e=>{let t=n.createRef();var a=0;function i(e){0===e?(document.querySelector(".rating-color").style.width="20%",document.querySelector(".rating-color").style.background="red",document.querySelector(".rating-number").textContent="1/5",a=1):1===e?(document.querySelector(".rating-color").style.width="40%",document.querySelector(".rating-color").style.background="rgb(252, 114, 50)",document.querySelector(".rating-number").textContent="2/5",a=2):2===e?(document.querySelector(".rating-color").style.width="60%",document.querySelector(".rating-number").textContent="3/5",document.querySelector(".rating-color").style.background="#8ea4ff",a=3):3===e?(document.querySelector(".rating-color").style.width="80%",document.querySelector(".rating-color").style.background="#5776F6",document.querySelector(".rating-number").textContent="4/5",a=4):(document.querySelector(".rating-color").style.width="100%",document.querySelector(".rating-color").style.background="#56BA2E",document.querySelector(".rating-number").textContent="5/5",a=5)}return e.ratingNew&&(a=e.ratingNew),(0,n.useEffect)(()=>{e.closePopUp&&e.closePopUp()}),(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("div",{className:"modal d-block feedbackmodal",children:(0,o.jsx)("div",{className:"modal-dialog modal-lg modal-dialog-centered",children:(0,o.jsx)("div",{className:"modal-content",children:(0,o.jsxs)("div",{className:"modal-body text-center",children:[(0,o.jsx)("h4",{children:"Give Feedback"}),(0,o.jsx)("p",{children:"What do you think of this Store?"}),(0,o.jsxs)("div",{className:"ratingWrapper",children:[(0,o.jsxs)("div",{className:"rating-group",children:[(0,o.jsx)("input",{onClick:()=>{i(0)},id:"one",className:"rating-button",type:"radio",name:"rating",value:"1"}),(0,o.jsx)("label",{for:"one",className:"rating-label","data-caption":"That's the worst."})]}),(0,o.jsxs)("div",{className:"rating-group",children:[(0,o.jsx)("input",{onClick:()=>{i(1)},id:"two",className:"rating-button",type:"radio",name:"rating",value:"2"}),(0,o.jsx)("label",{for:"two",className:"rating-label","data-caption":"Nah, it's not for me."})]}),(0,o.jsxs)("div",{className:"rating-group",children:[(0,o.jsx)("input",{onClick:()=>{i(2)},id:"three",className:"rating-button",type:"radio",name:"rating",value:"3"}),(0,o.jsx)("label",{for:"three",className:"rating-label","data-caption":"I don't know."})]}),(0,o.jsxs)("div",{className:"rating-group",children:[(0,o.jsx)("input",{onClick:()=>{i(3)},id:"four",className:"rating-button",type:"radio",name:"rating",value:"4"}),(0,o.jsx)("label",{for:"four",className:"rating-label","data-caption":"It's pretty cool."})]}),(0,o.jsxs)("div",{className:"rating-group",children:[(0,o.jsx)("input",{onClick:()=>{i(4)},id:"five",className:"rating-button",type:"radio",name:"rating",value:"5"}),(0,o.jsx)("label",{for:"five",className:"rating-label","data-caption":"I love it!"})]})]}),(0,o.jsxs)("div",{className:"rating-bar-value",children:[(0,o.jsx)("div",{className:"rating-value",children:(0,o.jsx)("div",{className:"rating-color"})}),(0,o.jsx)("p",{className:"rating-number",children:"4/5"})]}),(0,o.jsxs)("div",{className:"mt-3 feedback-message",children:[(0,o.jsx)("p",{children:"Do you have any thoughts you'd like to share?"}),(0,o.jsx)("textarea",{ref:t,placeholder:"Your Message"})]}),(0,o.jsx)("br",{}),(0,o.jsx)("button",{onClick:function(){var o={};window?o.url=window.location.href:o.url="Sds",l.tq?(o.device="mobile",l.gn?o.platform="ios":l.Dt?o.platform="android":o.platform="other"):l.nI?(o.device="desktop",l.ED?o.platform="windows":l.Q5?o.platform="macos":o.platform="other"):(o.device="other",o.platform="other"),o.browser=l.KC;var n="[email protected]";localStorage.getItem("useremail")&&(n=localStorage.getItem("useremail")),o.email=n,o.storeName=e.nameOfStore,o.comment=t.current.value,o.rating=a;var i=JSON.stringify(o);fetch("".concat("http://localhost:4000","/v1/feedback"),{method:"post",headers:{"Content-Type":"application/json"},body:i}).then(t=>{201===t.status?(document.getElementsByClassName("modal-body")[0].innerHTML='\n                    \n                <div style="padding-top:3rem;padding-bottom:3rem">\n                <img style="margin-bottom:1.5rem" src="/images/check.png"/>\n                <h5 style="font-weight:600">Thank You!</h5>\n                <p>Your feedback has been submitted Successfully</p>\n\n                </div>\n            ',setTimeout(e.onHide,2e3)):setTimeout(function(){document.getElementsByClassName("modal-body")[0].innerHTML='\n                    \n                    <div style="padding-top:3rem;padding-bottom:3rem">\n                    <img style="margin-bottom:1.5rem" src="/images/cancel.png"/>\n                    <h5 style="font-weight:600">Sorry :(</h5>\n                    <p>Please try Again</p>\n    \n                    </div>\n                '},2e3)})},className:"submit-feedback",children:"Submit"}),(0,o.jsx)("button",{onClick:e.onHide,className:"cancel-feedback",children:"Cancel"})]})})})})})}},6658:function(e,t,a){"use strict";a.r(t);var o=a(5893),n=a(7294),l=a(3935),i=a(4126),s=a.n(i);a(3689);let r=e=>
1{let[t,a]=(0,n.useState)(!1),[i,r]=(0,n.useState)(""),[c,d]=(0,n.useState)(),[m,u]=(0,n.useState)(!1),g=(0,n.useRef)(),p=n.createRef(),_=n.createRef();async function h(t){var a;t.preventDefault();let o=(a=p.current.value,/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(a)),n=_.current.value;o?o=p.current.value:r("Enter a valid mail");try{let t=await fetch("".concat("http://localhost:4000","/v1/users"),{method:"POST",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"},body:JSON.stringify({email:o,password:n})});if(201===t.status||200===t.status){var l,i,s=await t.json();p.current.value="",r("Sign Up Successfully!!"),localStorage.setItem("useremail",s.findUser.email),l=s.token,i=new Date(new Date().getTime()+864e5),document.cookie="token_data="+decodeURIComponent(l)+"; path=/; expires="+i.toGMTString(),("star"==c||"feedbackbtn"==c)&&localStorage.setItem("feedbackon",c),window.location.reload(),e.close()}else 400===t.status||500===t.status?r("Either Email or Password is Wrong"):r("Enter a valid Email")}catch(e){console.log(e)}}(0,n.useEffect)(()=>{d(e.clicktext)}),(0,n.useEffect)(()=>{g.current=document.querySelector(".modal-hook"),a(!0)},[]);let x=(0,o.jsx)(o.Fragment,{children:e.open&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{onClick:e.close,className:"".concat(s().overlay," ").concat(e.open?s().show:s().hide)}),(0,o.jsx)("div",{className:"".concat(s().login_modal,"  "),children:(0,o.jsxs)("div",{className:s().inner_modal,children:[(0,o.jsxs)("div",{className:s().modal_header,children:[(0,o.jsxs)("p",{className:s().modal_title,children:["Join ",(0,o.jsx)("span",{className:"org-txt",children:"Coupongini"})]}),(0,o.jsx)("p",{className:s().modal_sub_title,children:"Get hand-picked deals directly to your inbox weekly and earn rewards on top of deal savings."})]}),(0,o.jsxs)("form",{className:s().form,children:[(0,o.jsxs)("div",{className:s().input_name,children:[(0,o.jsx)("input",{placeholder:"Enter Your user name / Email",type:"text",ref:p}),(0,o.jsx)("img",{className:s().input_icon,src:"/images/icon-person.svg",alt:"icon-person",title:"user icon"})]}),(0,o.jsxs)("div",{className:s().input_password,children:[(0,o.jsx)("input",{placeholder:"Enter Your password",type:"password",ref:_}),(0,o.jsx)("img",{className:s().input_icon,src:"/images/icon-lock.svg",alt:"lock icon",title:"Lock icon"})]}),(0,o.jsxs)("div",{className:s().input_checkbox,children:[(0,o.jsx)("input",{id:"checkbox",type:"checkbox"}),(0,o.jsxs)("label",{children:["By signing in, you accept the ",(0,o.jsx)("a",{href:"#",children:"Terms Of Services"})," and our ",(0,o.jsx)("a",{href:"/privacy-policy",children:"Privacy Policy."})]})]}),(0,o.jsx)("button",{className:s().btn_cta,type:"submit",onClick:h,children:"Log In / Sign Up"}),i?(0,o.jsx)("p",{className:" ".concat("Subscribed Successfully!!"==i||"Login Successfully"==i?"text-success":"text-danger "," fw-bold loginMsg"),children:i}):""]}),(0,o.jsx)("div",{onClick:e.close,className:s().btn_cancel,children:(0,o.jsx)("img",{src:"/images/icon-cancel.svg",alt:"cross icon",title:"cross icon"})})]})})]})});return t?(0,l.createPortal)(x,g.current):null};t.default=e=>(0,o.jsx)(r,{...e})},4126:function(e){e.exports={login_modal:"LoginModal_login_modal__njKZ4",overlay:"LoginModal_overlay__GxXb2",inner_modal:"LoginModal_inner_modal__032LK",modal_header:"LoginModal_modal_header__JFS5B",modal_title:"LoginModal_modal_title__ZfDG4",modal_sub_title:"LoginModal_modal_sub_title__1bIUt",form:"LoginModal_form__HuWk_",overflow_hidden:"LoginModal_overflow_hidden__1XvrJ",input_name:"LoginModal_input_name__j8049",input_password:"LoginModal_input_password__E3NDg",input_checkbox:"LoginModal_input_checkbox__4qjH3",input_icon:"LoginModal_input_icon__rJp3h",btn_cancel:"LoginModal_btn_cancel__s0RvL",btn_cta:"LoginModal_btn_cta__T4gKl",more__options:"LoginModal_more__options__w1dy5",icons:"LoginModal_icons__Un4J8",icon:"LoginModal_icon__WK8p_",login_txt:"LoginModal_login_txt__3nGZP",show:"LoginModal_show__yJQPD",hide:"LoginModal_hide__JMZQZ"}}}]);

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.