1"use strict";(self.webpackChunksmart_deals_homepage=self.webpackChunksmart_deals_homepage||[]).push([[66],{9135:(e,t,r)=>{r.d(t,{Z:()=>n});r(2791);const n=r.p+"static/media/close-icon.fc953179d7e33ca9599b020cd7eedd18.svg"},5812:(e,t,r)=>{r.d(t,{F3:()=>w,Ft:()=>u,Mu:()=>y,Nw:()=>d,Pt:()=>Z,Rv:()=>f,Tt:()=>v,UX:()=>c,a0:()=>g,b9:()=>x,dA:()=>h,eO:()=>s,hT:()=>l,j0:()=>j,kG:()=>p,tm:()=>b,xz:()=>m});var n=r(1243),i=r(924),a=r(1073);const{apiHost:o}=(0,a.Z)().secrets;async function s(e){const t=`${o}/api/notFound`,{data:r}=await n.Z.get(t,{params:{region:e}});return r}async function l(e,t,r){const{data:n}=await i.Z.get("/api/customer/fetchPartners_web",{params:{region:e,page:t||null,direction:r||null}});return n}async function d(e,t,r,n){const{data:a}=await i.Z.get("/api/customer/searchPartner_web",{params:{region:e,page:t||null,direction:r||null,keyword:n}});return a}async function c(e){const{data:t}=await i.Z.get("/api/fetchPartnerRating",{params:e});return t}async function p(e){const{data:t}=await i.Z.post("/api/customer/postMailingList",e);return t}async function u(e){const{data:t}=await i.Z.get("/api/customer/getFaq",{params:e});return t}async function m(e){const{data:t}=await i.Z.get("/api/customer/getAboutSmartDeals",{params:e});return t}async function h(e){const{data:t}=await i.Z.post("/api/customer/contactUs",e);return t}async function v(){const{data:e}=await n.Z.get("https://api.ipify.org/?format=json");return e}async function g(e){const{data:t}=await i.Z.get("/api/event/getEventReport",{params:e});return t}async function x(e){const{data:t}=await i.Z.post("/api/customer/send-otp",e);return t}async function f(e){const{data:t}=await i.Z.post("/api/customer/resend-otp",e);return t}async function y(e){const{data:t}=await i.Z.post("/api/customer/verify-otp",e);return t}async function b(e){const{data:t}=await i.Z.post("/api/customer/delete-account",e);return t}async function Z(e){const{data:t}=await i.Z.get("/api/fetchMyReferrals",{params:e});return t}async function w(e){const{data:t}=await i.Z.get("/api/businessSummary",{params:e,timeout:3e5});return t}async function j(e){const{data:t}=await i.Z.post("/api/accountStatement",e);return t}},8485:(e,t,r)=>{r.d(t,{Ku:()=>l,M_:()=>a,Y0:()=>i,fO:()=>s,jD:()=>d,wr:()=>o});var n=r(1270);async function i(e){const{data:t}=await n.Z.post("/api/customer/fetchPartnerDetails",e);return t}async function a(e){const{data:t}=await n.Z.get("/api/customer/getUserDetails",{params:e});return t}async function o(e){const{data:t}=await n.Z.get("/api/customer/getPaymentMethod",{params:e});return t}async function s(e){const{data:t}=await n.Z.post("/api/partner/claimDiscount",e);return t}async function l(e){const{data:t}=await n.Z.get("/api/partner/partnerDiscountHistory",{params:e});return t}async function d(e){const{data:t}=await n.Z.get("/api/agent/agentDiscountHistory",{params:e});return t}},2941:(e,t,r)=>{r.d(t,{Z:()=>m});r(2791);var n=r(5959),i=r(890),a=r(7128),o=r(4294),s=r(4729),l=r(4721),d=r(9135),c=r(3726),p=r(184);const u={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:400,bgcolor:"background.paper",border:"2px solid #000",boxShadow:24,p:4,outline:0,maxHeight:"80vh",overflowY:"auto",borderRadius:"1rem"};function m(e){let{open:t,handleClose:r,ratingData:m}=e;return(0,p.jsx)("div",{children:(0,p.jsx)(a.Z,{open:t,onClose:r,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:(0,p.jsxs)(n.Z,{sx:u,children:[(0,p.jsx)(n.Z,{sx:{display:"flex",justifyContent:"flex-end",maxWidth:"100%"},children:(0,p.jsx)(o.Z,{variant:"text",sx:{height:"2rem",width:"2rem"},onClick:r,endIcon:(0,p.jsx)("img",{src:d.Z,height:"100%",width:"100%",alt:"close modal"})})}),(0,p.jsx)(n.Z,{children:null===m||void 0===m?void 0:m.map((e=>(0,p.jsxs)(n.Z,{children:[(0,p.jsxs)(n.Z,{sx:{p:".5rem 0"},children:[(0,p.jsx)(i.Z,{variant:"body2",sx:{fontWeight:700},children:null===e||void 0===e?void 0:e.username}),(0,p.jsx)(i.Z,{variant:"body2",sx:{fontWeight:300},children:null===e||void 0===e?void 0:e.comment}),(0,p.jsxs)(n.Z,{sx:{display:"flex"},children:[(0,p.jsx)(s.Z,{name:"",value:5,size:"small",readOnly:!0,sx:{mr:"1rem"}}),(0,p.jsx)(i.Z,{variant:"body2",sx:{fontWeight:300},children:(0,c.vh)(null===e||void 0===e?void 0:e.createdDate)})]})]}),(0,p.jsx)(l.Z,{})]},null===e||void 0===e?void 0:e.id)))})]})})})}},4906:(e,t,r)=>{r.r(t),r.d(t,{default:()=>j});var n=r(2791),i=r(4420),a=r(9655),o=r(1933),s=r(7689),l=r(8547),d=r(5959),c=r(890),p=r(4729),u=r(4294),m=r(2133),h=r(8806),v=r(2941),g=r(8485),x=r
1(5812),f=r(184);const y={padding:{md:"2rem",sm:"1rem",xs:0}},b={display:"flex",justifyContent:"center",pb:{md:"3rem",xs:"2rem"}},Z={width:"33rem",boxShadow:"rgba(100, 100, 111, 0.2) 0px 7px 29px 0px",borderRadius:"1rem",maxWidth:"100%"},w={p:".5rem",width:"100%",textAlign:"center",position:"relative"},j=()=>{const[e,t]=(0,n.useState)(!1),[r,l]=(0,n.useState)([]),{user:j,region:S}=(0,i.v9)((e=>e.userAuth)),C=(0,s.s0)(),{isLoading:A,data:D={},isError:R,error:I}=(0,o.useQuery)(["fetch-partner-details",null===j||void 0===j?void 0:j.partnerID,null===j||void 0===j?void 0:j.username],(()=>(0,g.Y0)({region:null===S||void 0===S?void 0:S.region,partnerID:null===j||void 0===j?void 0:j.partnerID,username:null===j||void 0===j?void 0:j.username})),{select:e=>null===e||void 0===e?void 0:e.data,staleTime:1/0,enabled:!(null===j||void 0===j||!j.partnerID)&&!(null===j||void 0===j||!j.username),cacheTime:144e5});return(0,n.useEffect)((()=>{let e=!0;return null!==D&&void 0!==D&&D.partnerID&&(async()=>{try{const{data:t}=await(0,x.UX)({partnerID:null===D||void 0===D?void 0:D.partnerID,region:null===S||void 0===S?void 0:S.region});e&&l(t)}catch(t){t.response?a.Am.error(t.response.data.message):t.request?a.Am.error("Network Error"):a.Am.error("Error",t.message)}})(),()=>{e=!1}}),[null===D||void 0===D?void 0:D.partnerID,null===S||void 0===S?void 0:S.region]),(0,n.useEffect)((()=>{var e;R&&(I.response?a.Am.error(null===(e=I.response.data)||void 0===e?void 0:e.message):I.request?a.Am.error("Network Error"):a.Am.error("Error",I.message))}),[R,I]),A?(0,f.jsx)(h.Z,{}):(0,f.jsxs)(k,{children:[(0,f.jsx)(d.Z,{sx:y,children:(0,f.jsx)(d.Z,{sx:b,children:(0,f.jsx)(d.Z,{sx:Z,children:(0,f.jsxs)(d.Z,{sx:{display:"flex",flexDirection:"column",alignItems:"center",marginBottom:"2rem",p:"1rem"},children:[(0,f.jsx)(d.Z,{sx:{width:"10rem",display:"flex",justifyContent:"center",borderRadius:"50%"},children:(0,f.jsx)("img",{src:null===D||void 0===D?void 0:D.partnerLogo,alt:"",height:"auto",width:"100%",sx:{objectFit:"cover",borderRadius:"50%"}})}),(0,f.jsx)(d.Z,{sx:w,children:(0,f.jsxs)(d.Z,{children:[(0,f.jsxs)(d.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},children:[(0,f.jsxs)(d.Z,{children:[(0,f.jsx)(c.Z,{variant:"body2",sx:{fontWeight:700,textTransform:"capitalize"},children:null===D||void 0===D?void 0:D.partnerName}),(0,f.jsx)(d.Z,{sx:{display:{xs:"block",md:"none"}},children:(0,f.jsx)(c.Z,{variant:"body1",sx:{backgroundColor:"secondary.main",color:"#fff",p:"1.1rem .7rem",border:"2px solid #6699CC",m:0,borderRadius:"9999px",fontWeight:700,display:"inline-block"},children:`-${null===D||void 0===D?void 0:D.discount}%`})}),(0,f.jsx)(c.Z,{variant:"caption",sx:{width:"75%",display:"inline-block"},children:null===D||void 0===D?void 0:D.description}),(0,f.jsxs)(d.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},children:[(0,f.jsx)(p.Z,{name:"",value:null===D||void 0===D?void 0:D.rating,readOnly:!0}),(0,f.jsx)(u.Z,{variant:"text",color:"secondary",sx:{textDecoration:"underline",textTransform:"none","&:hover":{textDecoration:"underline"}},onClick:()=>{0!==((null===D||void 0===D?void 0:D.review)||0)?t(!0):a.Am.error("There are no reviews for this partner yet")},children:`From ${(null===D||void 0===D?void 0:D.review)||0} ${Number((null===D||void 0===D?void 0:D.review)||0)>0?"reviews":"review"}`})]}),(0,f.jsxs)(d.Z,{children:[(0,f.jsx)(c.Z,{variant:"body2",sx:{fontWeight:600,textTransform:"none",textAlign:"center",mt:"1rem"},children:"Terms and Conditions"}),(0,f.jsx)(c.Z,{variant:"body2",sx:{textAlign:"center",lineHeight:1,mb:1,whiteSpace:"pre-line"},children:null===D||void 0===D?void 0:D.terms})]})]}),(0,f.jsx)(c.Z,{variant:"body1",sx:{backgroundColor:"secondary.main",color:"#fff",p:"1.1rem .7rem",border:"2px solid #6699CC",m:0,borderRadius:"9999px",fontWeight:700,ml:"1rem",position:"absolute",right:0,top:0,display:{xs:"none",md:"block"}},children:`-${null===D||void 0===D?void 0:D.discount}%`})]}),(0,f.jsxs)(d.Z,{children:[(0,f.jsx)(c.Z,{variant:"body1",sx:{fontWeight:600,textTransform:"none",textAlign:"center",my:"1rem"},children:`Partner Code: ${null===D||void 0===D?void 0:D.partnerCode}`}),(0,f.jsx)(u.Z,{variant:"contained",sx:{width:"100%",py:"1rem"},onClick:()=>{C("/partner/claim-discount")},children:"proceed"}),(0,f.jsx)(m.Z,{direction:"row",justifyContent:"center",alignItems:"center",spacing:2,children:(0,f.jsx)(u.Z,{variant:"text",sx:{textTransform:"capitalize",color:"#000",py:"1rem"},onClick:()=>C(-1),children:"go back"})})]})]})})]})})})}),(0,f.jsx)(v.Z,{open:e,handleClose:()=>{t(!1)},ratingData:r})]})},k=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`},4721:(e,t,r)=>{r.d(t,{Z:()=>v});var n=r(2791),i=r(3733),a=r(4419),o=r(3432),s=r(6934),l=r(8016),d=r(1020),c=r(133),p=r(184);const u=(0,s.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((0,l.Z)((e=>{let{theme:t}=e;return{margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:t.vars?`rgba(${t.vars.palette.dividerChannel} / 0.08)`:(0,o.Fq)(t.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:t.spacing(2),marginRight:t.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:t.spacing(1),marginBottom:t.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:e=>{let{ownerState:t}=e;return!!t.children},style:{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:e=>{let{ownerState:t}=e;return t.children&&"vertical"!==t.orientation},style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(t.vars||t).palette.divider}`,borderTopStyle:"inherit"}}},{props:e=>{let{ownerState:t}=e;return"vertical"===t.orientation&&t.children},style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(t.vars||t).palette.divider}`,borderLeftStyle:"inherit"}}},{props:e=>{let{ownerState:t}=e;return"right"===t.textAlign&&"vertical"!==t.orientation},style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:e=>{let{ownerState:t}=e;return"left"===t.textAlign&&"vertical"!==t.orientation},style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}}))),m=(0,s.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((0,l.Z)((e=>{let{theme:t}=e;return{display:"inline-block",paddingLeft:`calc(${t.spacing(1)} * 1.2)`,paddingRight:`calc(${t.spacing(1)} * 1.2)`,variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${t.spacing(1)} * 1.2)`,paddingBottom:`calc(${t.spacing(1)} * 1.2)`}}]}}))),h=n.forwardRef((function(e,t){const r=(0,d.i)({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:s,orientation:l="horizontal",component:h=(o||"vertical"===l?"div":"hr"),flexItem:v=!1,light:g=!1,role:x=("hr"!==h?"separator":void 0),textAlign:f="center",variant:y="fullWidth",...b}=r,Z={...r,absolute:n,component:h,flexItem:v,light:g,orientation:l,role:x,textAlign:f,variant:y},w=(e=>{const{absolute:t,children:r,classes:n,flexItem:i,light:o,orientation:s,textAlign:l,variant:d}=e,p={root:["root",t&&"absolute",d,o&&"light","vertical"===s&&"vertical",i&&"flexItem",r&&"withChildren",r&&"vertical"===s&&"withChildrenVertical","right"===l&&"vertical"!==s&&"textAlignRight","left"===l&&"vertical"!==s&&"textAlignLeft"],wrapper:["wrapper","vertical"===s&&"wrapperVertical"]};return(0,a.Z)(p,c.V,n)})(Z);return(0,p.jsx)(u,{as:h,className:(0,i.Z)(w.root,s),role:x,ref:t,ownerState:Z,"aria-orientation":"separator"!==x||"hr"===h&&"vertical"!==l?void 0:l,...b,children:o?(0,p.jsx)(m,{className:w.wrapper,ownerState:Z,children:o}):null})}));h&&(h.muiSkipListHighlight=!0);const v=h},2133:(e,t,r)=>{r.d(t,{Z:()=>j});var n=r(2791),i=r(3733),a=r(7093),o=r(1217),s=r(4419);const l=(0,r(2663).ZP)();var d=r(3264),c=r(3789),p=r(4423),u=r(6093),m=r(3327),h=r(184);const v=(0,p.Z)(),g=l("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function x(e){return(0,d.Z)({props:e,name:"MuiStack",defaultTheme:v})}
9function f(e,t){const r=n.Children.toArray(e).filter(Boolean);return r.reduce(((e,i,a)=>(e.push(i),a<r.length-1&&e.push(n.cloneElement(t,{key:`separator-${a}`})),e)),[])}const y=e=>{let{ownerState:t,theme:r}=e,n={display:"flex",flexDirection:"column",...(0,u.k9)({theme:r},(0,u.P$)({values:t.direction,breakpoints:r.breakpoints.values}),(e=>({flexDirection:e})))};if(t.spacing){const e=(0,m.hB)(r),i=Object.keys(r.breakpoints.values).reduce(((e,r)=>(("object"===typeof t.spacing&&null!=t.spacing[r]||"object"===typeof t.direction&&null!=t.direction[r])&&(e[r]=!0),e)),{}),o=(0,u.P$)({values:t.direction,base:i}),s=(0,u.P$)({values:t.spacing,base:i});"object"===typeof o&&Object.keys(o).forEach(((e,t,r)=>{if(!o[e]){const n=t>0?o[r[t-1]]:"column";o[e]=n}}));const l=(r,n)=>{return t.useFlexGap?{gap:(0,m.NA)(e,r)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${i=n?o[n]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[i]}`]:(0,m.NA)(e,r)}};var i};n=(0,a.Z)(n,(0,u.k9)({theme:r},s,l))}return n=(0,u.dt)(r.breakpoints,n),n};var b=r(6934),Z=r(1402);const w=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createStyledComponent:t=g,useThemeProps:r=x,componentName:a="MuiStack"}=e,l=t(y),d=n.forwardRef((function(e,t){const n=r(e),d=(0,c.Z)(n),{component:p="div",direction:u="column",spacing:m=0,divider:v,children:g,className:x,useFlexGap:y=!1,...b}=d,Z={direction:u,spacing:m,useFlexGap:y},w=(0,s.Z)({root:["root"]},(e=>(0,o.ZP)(a,e)),{});return(0,h.jsx)(l,{as:p,ownerState:Z,ref:t,className:(0,i.Z)(w.root,x),...b,children:v?f(g,v):g})}));return d}({createStyledComponent:(0,b.ZP)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,Z.Z)({props:e,name:"MuiStack"})}),j=w},5158:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(2791);const i=function(e){let{controlled:t,default:r,name:i,state:a="value"}=e;const{current:o}=n.useRef(void 0!==t),[s,l]=n.useState(r);return[o?t:s,n.useCallback((e=>{o||l(e)}),[])]}},7384:(e,t,r)=>{r.d(t,{Z:()=>n});const n=r(8252).Z}}]); 10//# sourceMappingURL=66.74727573.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.