PageSourceSearch

https://smartdeals.com.ng/static/js/415.11e01b08.chunk.js

js smartdeals.com.ng collected 2026-10-02 01:05:44 UTC 11,550 bytes, 37 lines download raw bytes

1"use strict";(self.webpackChunksmart_deals_homepage=self.webpackChunksmart_deals_homepage||[]).push([[415],{5812:(e,r,a)=>{a.d(r,{F3:()=>j,Ft:()=>u,Mu:()=>b,Nw:()=>c,Pt:()=>Z,Rv:()=>v,Tt:()=>g,UX:()=>d,a0:()=>f,b9:()=>x,dA:()=>h,eO:()=>o,hT:()=>l,j0:()=>w,kG:()=>m,tm:()=>y,xz:()=>p});var t=a(1243),s=a(924),n=a(1073);const{apiHost:i}=(0,n.Z)().secrets;async function o(e){const r=`${i}/api/notFound`,{data:a}=await t.Z.get(r,{params:{region:e}});return a}async function l(e,r,a){const{data:t}=await s.Z.get("/api/customer/fetchPartners_web",{params:{region:e,page:r||null,direction:a||null}});return t}async function c(e,r,a,t){const{data:n}=await s.Z.get("/api/customer/searchPartner_web",{params:{region:e,page:r||null,direction:a||null,keyword:t}});return n}async function d(e){const{data:r}=await s.Z.get("/api/fetchPartnerRating",{params:e});return r}async function m(e){const{data:r}=await s.Z.post("/api/customer/postMailingList",e);return r}async function u(e){const{data:r}=await s.Z.get("/api/customer/getFaq",{params:e});return r}async function p(e){const{data:r}=await s.Z.get("/api/customer/getAboutSmartDeals",{params:e});return r}async function h(e){const{data:r}=await s.Z.post("/api/customer/contactUs",e);return r}async function g(){const{data:e}=await t.Z.get("https://api.ipify.org/?format=json");return e}async function f(e){const{data:r}=await s.Z.get("/api/event/getEventReport",{params:e});return r}async function x(e){const{data:r}=await s.Z.post("/api/customer/send-otp",e);return r}async function v(e){const{data:r}=await s.Z.post("/api/customer/resend-otp",e);return r}async function b(e){const{data:r}=await s.Z.post("/api/customer/verify-otp",e);return r}async function y(e){const{data:r}=await s.Z.post("/api/customer/delete-account",e);return r}async function Z(e){const{data:r}=await s.Z.get("/api/fetchMyReferrals",{params:e});return r}async function j(e){const{data:r}=await s.Z.get("/api/businessSummary",{params:e,timeout:3e5});return r}async function w(e){const{data:r}=await s.Z.post("/api/accountStatement",e);return r}},8373:(e,r,a)=>{a.d(r,{Z:()=>n});var t=a(6293),s=a(184);const n=()=>(0,s.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,s.jsx)(t.Ll,{type:"Bars",color:"#e41f26",height:50,width:50,visible:!0})})},9415:(e,r,a)=>{a.r(r),a.d(r,{default:()=>N});var t=a(2791),s=a(1933),n=a(7993),i=a(5705),o=a(8007),l=a(8547),c=a(9655),d=a(1889),m=a(890),u=a(8550),p=a(5959),h=a(4294),g=a(3239),f=a(8373),x=a(184);const v={height:"60vh",width:"100%"},b={lat:6.4589814518399375,lng:3.4722094582606133},y={disableDefaultUI:!0,zoomControl:!0},Z={latitude:b.lat,longitude:b.lng},j=()=>{const[e,r]=(0,t.useState)(Z),a=(0,t.useRef)(),s=(0,t.useCallback)((e=>{a.current=e}),[]);return(0,x.jsx)("div",{children:(0,x.jsxs)(n.b6,{id:"map",mapContainerStyle:v,zoom:14,center:b,options:y,onLoad:s,children:[(0,x.jsx)(n.jC,{position:{lat:Number(b.lat),lng:Number(b.lng)},onClick:()=>r(Z)}),e?(0,x.jsx)(n.kp,{position:{lat:Number(b.lat)+.0032,lng:Number(b.lng)},onCloseClick:()=>{r(null)},style:{zIndex:10,top:"10px !important"},children:(0,x.jsxs)("div",{style:{fontWeight:"bold"},children:["Plot 2b, Fatai Arobieke Street. off Admiralty Road. Lekki. Lagos",(0,x.jsx)("br",{}),(0,x.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:`https://www.google.com/maps/dir/?api=1&destination=${b.lat},${b.lng}`,children:"Get Directions"})]})}):null]})})},w=(0,t.memo)(j);var k=a(5812),P=a(1073);const{googleMapsApiKey:S}=(0,P.Z)().secrets,C=["places"],A={textAlign:"center",marginBottom:{md:"2rem",xs:"1rem"},textTransform:"capitalize"},M={boxShadow:"rgba(100, 100, 111, 0.2) 0px 7px 29px 0px",borderRadius:"1.5rem",padding:{xs:"1rem",md:"2rem"},marginBottom:{xs:"1rem",md:"2rem"}},R={textTransform:"capitalize",pt:".8rem",pb:".8rem",mt:"1.5rem",fontSize:"1rem"},q=o.Ry({name:o.Z_("Please enter your name").min(3,"Name should be of minimum 3 characters length").required("Name is required"),email:o.Z_("Please enter your email").email("Please enter a valid email").required("Email is required"),phone:o.Rx("Please enter your password").min(11,"Password should be of minimum 11 characters length").required("Password is required"),address:o.Z_("Please enter your address").min(3,"Address should be of minimum 3 characters length").required("Address is required"),subject:o.Z_("Please enter your subject").min(3,"Subject should be of minimum 3 characters length").required("Subject is required"),message:o.Z_("Please enter your message").min(3,"Message should be of minimum 3 characters length").max(500,"Message should be of maximum 500 characters length").required("Message is required")}
1),T={name:"",email:"",phone:"",address:"",subject:"",message:""},N=()=>{const{isLoaded:e}=(0,n.Db)({googleMapsApiKey:S,libraries:C}),{data:r="",isError:a,error:o}=(0,s.useQuery)("get-user-ip",(async()=>(0,k.Tt)()),{staleTime:1/0,select:e=>null===e||void 0===e?void 0:e.ip});(0,t.useEffect)((()=>{var e;a&&(o.response?c.Am.error(null===(e=o.response.data)||void 0===e?void 0:e.message):o.request?c.Am.error("Internal Server Error"):c.Am.error("Error",o.message))}),[a,o]);const l=(0,i.TA)({initialValues:T,validationSchema:q,onSubmit:e=>{v(e,(()=>l.setSubmitting(!1)),(()=>l.resetForm()))}}),v=async(e,a,t)=>{try{const s={fullName:e.name,emailAddress:e.email,phone:e.phone,address:e.address,subject:e.subject,message:e.message,ipAddress:r},n=await(0,k.dA)(s);a(),t(),c.Am.success(n.message)}catch(n){var s;if(a(),n)if(n.response)c.Am.error(null===(s=n.response.data)||void 0===s?void 0:s.message);else n.request?c.Am.error("Internal Server Error"):c.Am.error("Error",n.message)}};return(0,x.jsxs)(D,{children:[(0,x.jsxs)(d.ZP,{container:!0,sx:M,children:[(0,x.jsxs)(d.ZP,{item:!0,xs:12,md:6,children:[(0,x.jsx)(m.Z,{variant:"h3",component:"h2",sx:A,children:"contact us"}),(0,x.jsx)(m.Z,{variant:"body1",component:"p",sx:A,children:"Plot 2b, Fatai Arobieke Street. off Admiralty Road. Lekki. Lagos"}),(0,x.jsx)(m.Z,{variant:"body1",component:"p",sx:A,children:"[email protected]"})]}),(0,x.jsxs)(d.ZP,{item:!0,xs:12,md:6,component:"form",noValidate:!0,autoComplete:"off",onSubmit:l.handleSubmit,children:[(0,x.jsxs)(d.ZP,{container:!0,spacing:2,children:[(0,x.jsx)(d.ZP,{item:!0,xs:6,children:(0,x.jsx)(u.Z,{name:"name",label:"Name",variant:"outlined",fullWidth:!0,value:l.values.name,onChange:l.handleChange,error:l.touched.name&&Boolean(l.errors.name),helperText:l.touched.name&&l.errors.name})}),(0,x.jsx)(d.ZP,{item:!0,xs:6,children:(0,x.jsx)(u.Z,{name:"email",label:"Email",variant:"outlined",fullWidth:!0,value:l.values.email,onChange:l.handleChange,error:l.touched.email&&Boolean(l.errors.email),helperText:l.touched.email&&l.errors.email})}),(0,x.jsx)(d.ZP,{item:!0,xs:6,children:(0,x.jsx)(u.Z,{name:"phone",label:"Phone",variant:"outlined",fullWidth:!0,value:l.values.phone,onChange:l.handleChange,error:l.touched.phone&&Boolean(l.errors.phone),helperText:l.touched.phone&&l.errors.phone,type:"number",inputProps:{inputMode:"numeric",pattern:"[0-9]*"}})}),(0,x.jsx)(d.ZP,{item:!0,xs:6,children:(0,x.jsx)(u.Z,{name:"address",label:"Address",variant:"outlined",fullWidth:!0,value:l.values.address,onChange:l.handleChange,error:l.touched.address&&Boolean(l.errors.address),helperText:l.touched.address&&l.errors.address})})]}),(0,x.jsx)(p.Z,{sx:{m:"1rem 0"},children:(0,x.jsx)(u.Z,{name:"subject",label:"Subject",variant:"outlined",fullWidth:!0,value:l.values.subject,onChange:l.handleChange,error:l.touched.subject&&Boolean(l.errors.subject),helperText:l.touched.subject&&l.errors.subject})}),(0,x.jsx)(p.Z,{sx:{m:"1rem 0"},children:(0,x.jsx)(u.Z,{name:"message",label:"Type your message here...",variant:"outlined",fullWidth:!0,value:l.values.message,onChange:l.handleChange,error:l.touched.message&&Boolean(l.errors.message),helperText:l.touched.message&&l.errors.message,multiline:!0,rows:5})}),(0,x.jsx)(p.Z,{children:(0,x.jsx)(h.Z,{type:"submit",variant:"contained",color:"primary",sx:R,fullWidth:!0,disabled:l.isSubmitting,children:l.isSubmitting?(0,x.jsx)(g.Z,{size:"1.5rem"}):"submit"})})]})]}),(0,x.jsxs)(p.Z,{sx:{borderRadius:"1rem"},children:[!e&&(0,x.jsx)(f.Z,{}),e&&(0,x.jsx)(w,{})]})]})},D=l.ZP.div`
2	padding: 2rem 4rem;
3    padding-top: 9rem;
4    
5	@media (max-width: 768px) {
6        padding: 1rem;
7        padding-top: 6rem;
8	}
9`},3239:(e,r,a)=>{a.d(r,{Z:()=>k});var t=a(2791),s=a(3733),n=a(4419),i=a(2554),o=a(6934),l=a(8016),c=a(1020),d=a(4036),m=a(2036),u=a(5878),p=a(1217);function h(e){return(0,p.ZP)("MuiCircularProgress",e)}(0,u.Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var g=a(184);const f=44,x=i.F4`
10  0% {
11    transform: rotate(0deg);
12  }
13
14  100% {
15    transform: rotate(360deg);
16  }
17`,v=i.F4`
18  0% {
19    stroke-dasharray: 1px, 200px;
20    stroke-dashoffset: 0;
21  }
22
23  50% {
24    stroke-dasharray: 100px, 200px;
25    stroke-dashoffset: -15px;
26  }
27
28  100% {
29    stroke-dasharray: 100px, 200px;
30    stroke-dashoffset: -125px;
31  }
32`,b="string"!==typeof x?i.iv`
33        animation: ${x} 1.4s linear infinite;
34      `:null,y="string"!==typeof v?i.iv`
35        animation: ${v} 1.4s ease-in-out infinite;
36      `:null,Z=(0,o.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:a}=e;return[r.root,r[a.variant],r[`color${(0,d.Z)(a.color)}`]]}})((0,l.Z)((e=>{let{theme:r}=e;return{display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:r.transitions.create("transform")}},{props:{variant:"indeterminate"},style:b||{animation:`${x} 1.4s linear infinite`}},...Object.entries(r.palette).filter((0,m.Z)()).map((e=>{let[a]=e;return{props:{color:a},style:{color:(r.vars||r).palette[a].main}}}))]}}))),j=(0,o.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,r)=>r.svg})({display:"block"}),w=(0,o.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,r)=>{const{ownerState:a}=e;return[r.circle,r[`circle${(0,d.Z)(a.variant)}`],a.disableShrink&&r.circleDisableShrink]}})((0,l.Z)((e=>{let{theme:r}=e;return{stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:r.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:e=>{let{ownerState:r}=e;return"indeterminate"===r.variant&&!r.disableShrink},style:y||{animation:`${v} 1.4s ease-in-out infinite`}}]}}))),k=t.forwardRef((function(e,r){const a=(0,c.i)({props:e,name:"MuiCircularProgress"}),{className:t,color:i="primary",disableShrink:o=!1,size:l=40,style:m,thickness:u=3.6,value:p=0,variant:x="indeterminate",...v}=a,b={...a,color:i,disableShrink:o,size:l,thickness:u,value:p,variant:x},y=(e=>
36{const{classes:r,variant:a,color:t,disableShrink:s}=e,i={root:["root",a,`color${(0,d.Z)(t)}`],svg:["svg"],circle:["circle",`circle${(0,d.Z)(a)}`,s&&"circleDisableShrink"]};return(0,n.Z)(i,h,r)})(b),k={},P={},S={};if("determinate"===x){const e=2*Math.PI*((f-u)/2);k.strokeDasharray=e.toFixed(3),S["aria-valuenow"]=Math.round(p),k.strokeDashoffset=`${((100-p)/100*e).toFixed(3)}px`,P.transform="rotate(-90deg)"}return(0,g.jsx)(Z,{className:(0,s.Z)(y.root,t),style:{width:l,height:l,...P,...m},ownerState:b,ref:r,role:"progressbar",...S,...v,children:(0,g.jsx)(j,{className:y.svg,ownerState:b,viewBox:"22 22 44 44",children:(0,g.jsx)(w,{className:y.circle,style:k,ownerState:b,cx:f,cy:f,r:(f-u)/2,fill:"none",strokeWidth:u})})})}))}}]);
37//# sourceMappingURL=415.11e01b08.chunk.js.map

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.