1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[73981],{4125:(e,t,A)=>{A.d(t,{A:()=>a});let a={src:"/_next/static/media/Share.58c74a49.png",height:30,width:29,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAJ1BMVEVMaXGUBQWXBQWUBQWWBgaVBgaXBQWWAACRBASUBgaUAACUBwedBgaFkHHnAAAADXRSTlMAqsa2eZrfDThzG0F7YDXi7QAAAAlwSFlzAAALEwAACxMBAJqcGAAAADJJREFUeJwdiMkNADAMwkyS3t1/3or6gS0AJD6t92aPWWuOf9XybrhlBZwD4TCBUplKPRdpAKNESNIsAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},35552:(e,t,A)=>{A.d(t,{A:()=>I});var a=A(95155),r=A(4125),o=A(76778),n=A(58200),s=A(31860),i=A(87521),l=A(8987),d=A(10690),c=A(29936),h=A(12562),x=A(32029),u=A(71190),g=A(13847),C=A(15239),b=A(95888),w=A(59751),p=A(94040),m=A(71974),M=A(23765),B=A(32438),j=A.n(B),S=A(22993),D=A(12115),R=A(6982),f=A(38973),k=A(58421);let U=e=>{let{children:t,header:A,footer:r,...o}=e,s=(0,M.yj)("m02v2").qrCodeModalStyles.customModalQRComponent;return(0,a.jsx)(R.A,{id:"custom-modal",...o,sx:m.v0?{...f.tR,"&::-webkit-scrollbar":{display:"none"},msOverflowStyle:"none",scrollbarWidth:"none",padding:{xs:"12px",sm:"unset"}}:{...s.customModalQRModal,padding:{xs:"12px",sm:"unset"}},children:(0,a.jsxs)(l.A,{className:"card-brand",sx:m.v0?{...k.qE,overflowY:"auto","&::-webkit-scrollbar":{display:"none"},msOverflowStyle:"none",scrollbarWidth:"none"}:{...s.customModalQRModalWrapper},children:[(0,a.jsx)(l.A,{sx:m.v0?k.jm:s.customModalQRModalHeaderContainer,children:A||(0,a.jsx)(l.A,{sx:m.v0?f.NX:{...s.customModalQRModalHeaderIconButtonContainer},children:(0,a.jsx)(d.A,{sx:m.v0?{color:"main.white"}:{...s.customModalQRModalHeaderIconButton},onClick:()=>{var e;return null==(e=o.onClose)?void 0:e.call(o,{},"backdropClick")},children:(0,a.jsx)(n.A,{sx:m.v0?{}:{...s.customModalQRModalHeaderCloseIcon}})})})}),t,r&&(0,a.jsx)(l.A,{sx:m.v0?k.L1:{...s.customModalQRModalFooterContainer},children:r})]})})};var y=A(44780),F=A(72402),E=A(81131),q=A(20063);let I=e=>{let{isOpen:t,onClose:A,onShareToFriends:B,onQrCodeGenerated:R,shouldAutoOpen:f,onAutoOpenComplete:k}=e,[I,Q]=(0,D.useState)(!1),[v,z]=(0,D.useState)({code:"",redirect_url:""}),[J,N]=(0,D.useState)(!0),[T,W]=(0,D.useState)(!1),L=(0,D.useRef)(!1),V=(0,D.useRef)(!1),H=(0,u.A)(),X=(0,i.A)(H.breakpoints.down("sm")),O=(0,q.useParams)().lng,_=(0,g.useTranslations)("profile"),K=(0,g.useTranslations)("common"),[P,G]=(0,D.useState)(null),Y=(0,F.A)(e=>e.siteName)||(0,E.c0)(),Z=m.vr?r.A:o.A,$=(0,M.yj)("m02v2").qrCodeModalStyles;(0,D.useEffect)(()=>{let e=async()=>{if(!V.current){V.current=!0,N(!0);try{let e=await (0,p.xi)("".concat(w.x9,"?action=").concat(b.To));if(e&&e.data&&e.data.data){let t="".concat(window.location.origin,"/").concat(O,"/register?code=").concat(e.data.data.data.code);z({...e.data.data.data,redirect_url:t}),R(t)}else console.error("No data found in the response")}catch(e){console.error("Error fetching QR code:",e)}finally{N(!1)}}};f&&!L.current?(L.current=!0,e().then(()=>{W(!0),k&&k()})):t&&!V.current?(W(!0),e()):t&&!T?W(!0):t||!T||f||W(!1)},[t,f]),(0,D.useEffect)(()=>{t||T||(L.current=!1,V.current=!1)},[t,T]);let ee=e=>{navigator.clipboard.writeText(e),Q(!0),setTimeout(()=>Q(!1),2e3)};return(0,D.useEffect)(()=>{G(new(j())({width:X?270:330,height:X?270:330,data:v.redirect_url,dotsOptions:{color:"#30AB6E",type:"rounded"},cornersSquareOptions:{type:"extra-rounded"},imageOptions:{imageSize:.6,margin:10,crossOrigin:"anonymous",hideBackgroundDots:!0},backgroundOptions:{color:"#FFFFFF"},image:y.default.src}))},[v.redirect_url,t,X]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(U,{open:T,onClose:()=>{W(!1),A()},"aria-labelledby":"qr-code-modal","aria-describedby":"qr-code-description",sx:{...$.customModalQr},header:(0,a.jsx)(l.A,{sx:{...$.customModalQrHeaderContainer},children:(0,a.jsx)(d.A,{id:"close-modal-button",sx:{...$.customModalQrHeaderIconButton},onClick:A,children:(0,a.jsx)(n.A,{sx:{...$.customModalQrHeaderCloseIcon}})})}),children:(0,a.jsx)(l.A,{sx:{...$.qrCodeModalContentWrapper},children:J?(0,a.jsx)(c.A,{sx:{...$.qrCodeModalCircularProgress}}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(l.A,{sx:{...$.qrCodeModalQrCodeSVGContainer},children:[m.Yc&&(0,a.jsx)("div",{className:"bg-transparent",ref:e=>{e&&P&&P.append(e)}}),!m.Yc&&(0,a.jsx)(S.h,{value:v.redirect_url,size:X?200:260})]}),(0,a.jsxs)(l.A,{className:"w-100",onClick:()=>ee(v.code),sx:{...$.qrCodeModalContentTextContainer,gap:1},children:[(0,a.jsx)(h.A,{sx:{...$.qrCodeModalCodeContentText,fontWeight:"bold",letterSpacing:"8px",fontSize:"16px"},children:v.code}),(0,a.jsx)(h.A,{sx:{color:"#808080",fontSize:"12px"},children:_("copy_to_clipboard")})]}),m.Yc&&(0,a.jsx)(h.A,{sx:{...$.qrCodeModalContentText,mb:"12px"},children:K("share_qr_code_desc_india01",{clientName:Y})}),(0,a.jsxs)(l.A,{className:"w-100",sx:{...$.qrCodeModalContentContainer},children:[(0,a.jsxs)(l.A,{className:"button-brand",id:"copy-link-button",sx:{...$.qrCodeModalContentCopyLinkButton},onClick:()=>ee(v.redirect_url),children:[(0,a.jsx)(h.A,{sx:{...$.qrCodeModalContentCopyLinkButtonText},children:_("copy_link")}),(0,a.jsx)(s.A,{sx:{...$.qrCodeModalContentCopyIcon}})]}),(0,a.jsxs)(l.A,{className:"button-brand-outlined",id:"share-qr-button",sx:{...$.qrCodeModalContentShareQRButton},onClick:B,children:[(0,a.jsx)(h.A,{sx:{...$.qrCodeModalContentShareQRButtonText},children:_("share_qr")}),(0,a.jsx)(C.default,{id:"share-qr-button-icon",src:Z.src,alt:"share",width:20,height:20,style:{...$.qrCodeModalContentShareQRButtonIcon}})]})]})]})})}),(0,a.jsx)(x.A,{id:"copy-snackbar",open:I,autoHideDuration:2e3,message:_("copied"),anchorOrigin:{vertical:"bottom",horizontal:"center"},sx:{...$.qrCodeModalSnackbar}})]})}},44780:(e,t,A)=>{A.r(t),A.d(t,{default:()=>a});let a={src:"/_next/static/media/favicon.2f76f5ef.ico",height:150,width:150,blurWidth:0,blurHeight:0}},76778:(e,t,A)=>{A.d(t,{A:()=>a});let a={src:"/_next/static/media/ShareIcon.1ba2e2f9.png",height:30,width:29,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAHlBMVEVMaXH/xwD/xAD/xAD/yQD/wwD/yAD/xAD/xQD/zQChqlN+AAAACnRSTlMAebWMD6rtUE7KaCP+MQAAAAlwSFlzAAALEwAACxMBAJqcGAAAADBJREFUeJwli0EKAEAIhGyqrf7/4YXyJIIA7iz+3lq0WcUmsw0ngaAaxNwxSJmZ0gcPeQB/bXpxBwAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8}},89526:(e,t,A)=>{A.d(t,{A:()=>b});var a=A(95155);let r={src:"/_next/static/media/Line.670c0588.png",height:91,width:91,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAP1BMVEU5zgI70gI4zAHf9tw3ygA3ywAsygAyygAvygA3zAFn2D1+3VpS1CPQ89L+//1F0Bia5X3J8LiF4IVO006P45QrMGe1AAAACnRSTlP3////rsX//vi66G+xLAAAAAlwSFlzAAALEgAACxIB0t1+/AAAAD5JREFUeJwFwQcCgDAIALGDKtBBh/r/t5pwi5u5VMRX78vBR5mzjMB2Pu+3A2slM1ug3s7sBqK2hglUhUCvH0z9Af7TJx1uAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8},o={src:"/_next/static/media/Facebook.60074a09.png",height:91,width:91,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAALVBMVEX9/v49To1EVJFzf6xJWJNHV5Nda59HV5NMXJd9ibOOl7zM0OFreKjp6vLu7/WqaG16AAAAB3RSTlP+/ff9tMP7Tt4a+QAAAAlwSFlzAAALEgAACxIB0t1+/AAAADlJREFUeJwlylEOgCAMBNEtVGcL6P2PS9C/l8noMkSQMlCzmgC/c33oKg78SCP+MtzObK2wknarR245dQF7EIRjtQAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8},n={src:"/_next/static/media/Telegram.774ca1ee.png",height:91,width:91,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAANlBMVEUcidqp0vD5+/0bitkbidk8mt8bjeF4uei22fIRhNgbidqSx+zq8/ocitoThdkcjuAskt1cq+Q3wzV5AAAADXRSTlP3/f7Fuv74/v34rvz+mJqqPgAAAAlwSFlzAAALEgAACxIB0t1+/AAAADpJREFUeJxFykESgCAMBMEFwQR1Evj
1/Zy1OnLt1JUA2JUTALSL6chuK7l7qGmLaW7+pTWYFndyQJJ4fYA8CdYL8qFIAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8},s={src:"/_next/static/media/X_Twitter.45d6ed81.png",height:91,width:91,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAMFBMVEXKysqfn5////9zc3OUlJTQ0NCpqam3t7f8/Pzl5eW5ubn///+AgID////19fXo6Oi8TyAcAAAAD3RSTlP+/dj8/f79/f7+/dD9//5YnNrRAAAACXBIWXMAAAsSAAALEgHS3X78AAAAOklEQVR4nBXKSRLAIAwEsbHBMFna/P+3qegspds2KdYothBnxh0goxgNgmssYdGzYh70x3oXSmw3zwdJQgIbvt0KYQAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8},i={src:"/_next/static/media/Whatsapp.6b59c24e.png",height:91,width:91,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAOVBMVEV5yHCW05Cv3qoqrB0ioxUnpRp9yXVXuUyGzX4aoAwaoQyg2Jsnphplv1sfoxFAsTUoqht0xmwAkgCBRFKpAAAADnRSTlP+/fzw8bH9/v738PzD/aHIixkAAAAJcEhZcwAACxIAAAsSAdLdfvwAAAA9SURBVHicFcpJEoAgDATACZINdRL8/2Mtzt14miRb0ayI4gXWeH3UBCHxeSzQ3MSwQNwuh9qBfbIyM2frD1oNAkiYlkRmAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8};var l=A(35560),d=A(51998),c=A(12562),h=A(8987),x=A(10690),u=A(13847),g=A(23765);A(12115);var C=A(15239);let b=e=>{let{isOpen:t,onClose:A,onShareToFacebook:b,onShareToWhatsApp:w,onShareToLine:p,onShareToTelegram:m,onShareToX:M,onShareToEmail:B}=e,j=(0,u.useTranslations)("profile"),S=(0,g.yj)("m02v2").shareDrawerStyles;return(0,a.jsxs)(d.Ay,{anchor:"bottom",open:t,onClose:A,children:[(0,a.jsx)(c.A,{className:"share-drawer-title",sx:{textAlign:"center",fontSize:{xs:"14px",md:"16px"},pt:2},children:j("share_to")}),(0,a.jsxs)(h.A,{sx:{...S.shareDrawerWrapper},children:[p&&(0,a.jsx)(h.A,{sx:{...S.shareDrawerButtonContainer},children:(0,a.jsx)(x.A,{id:"share-line-button",onClick:()=>{p(),A()},sx:{...S.shareDrawerFacebookIconButton},children:(0,a.jsx)(C.default,{src:r,alt:"Line",style:{width:"85%",height:"85%",objectFit:"contain"}})})}),b&&(0,a.jsx)(h.A,{sx:{...S.shareDrawerButtonContainer},children:(0,a.jsx)(x.A,{id:"share-facebook-button",onClick:()=>
1{b(),A()},sx:{...S.shareDrawerFacebookIconButton},children:(0,a.jsx)(C.default,{src:o,alt:"Facebook",style:{width:"85%",height:"85%",objectFit:"contain"}})})}),m&&(0,a.jsx)(h.A,{sx:{...S.shareDrawerButtonContainer},children:(0,a.jsx)(x.A,{id:"share-telegram-button",onClick:()=>{m(),A()},sx:{...S.shareDrawerFacebookIconButton},children:(0,a.jsx)(C.default,{src:n,alt:"Telegram",style:{width:"85%",height:"85%",objectFit:"contain"}})})}),M&&(0,a.jsx)(h.A,{sx:{...S.shareDrawerButtonContainer},children:(0,a.jsx)(x.A,{id:"share-x-button",onClick:()=>{M(),A()},sx:{...S.shareDrawerFacebookIconButton},children:(0,a.jsx)(C.default,{src:s,alt:"X",style:{width:"85%",height:"85%",objectFit:"contain"}})})}),B&&(0,a.jsx)(h.A,{sx:{...S.shareDrawerButtonContainer},children:(0,a.jsx)(x.A,{id:"share-email-button",onClick:()=>{B(),A()},sx:{...S.shareDrawerFacebookIconButton},children:(0,a.jsx)(l.A,{sx:{...S.shareDrawerFacebookIcon}})})}),w&&(0,a.jsx)(h.A,{sx:{...S.shareDrawerButtonContainer},children:(0,a.jsx)(x.A,{id:"share-whatsapp-button",onClick:()=>{w(),A()},sx:{...S.shareDrawerWhatsAppIconButton},children:(0,a.jsx)(C.default,{src:i,alt:"WhatsApp",style:{width:"85%",height:"85%",objectFit:"contain"}})})})]})]})}}}]);
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.