PageSourceSearch

https://magicpin.in/webnext//_next/static/chunks/8347.3d7244298939836e.js

js magicpin.in collected 2026-10-01 11:53:23 UTC 12,224 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8347],{86010:function(a,b,c){"use strict";function d(a){var b,c,e="";if("string"==typeof a||"number"==typeof a)e+=a;else if("object"==typeof a)if(Array.isArray(a))for(b=0;b<a.length;b++)a[b]&&(c=d(a[b]))&&(e&&(e+=" "),e+=c);else for(b in a)a[b]&&(e&&(e+=" "),e+=b);return e}function e(){for(var a,b,c=0,e="";c<arguments.length;)(a=arguments[c++])&&(b=d(a))&&(e&&(e+=" "),e+=b);return e}c.d(b,{W:function(){return e}}),b.Z=e},12e3:function(a,b,c){"use strict";c.r(b),c.d(b,{PermissionPopup:function(){return k},LocationPermissionPopup:function(){return l},ConfirmLocationPopup:function(){return m},ConfirmationPopup:function(){return n}});var d=c(85893);c(67294);var e=c(4766),f=c(14361),g=c(6572),h=c(39268),i=c(56108),j=c.n(i),k=function(a){var b=a.open,c=a.onRequestClose,f=a.onClickHandler,h=a.heading,i=a.subHeading,j=void 0===i?"":i,k=a.buttonText,l=a.secondaryButtonText;return(0,d.jsx)(e.Vq,{open:b,onOpenChange:function(a){a||c()},children:(0,d.jsxs)(e.cZ,{style:{borderRadius:"12px",width:"300px",padding:"24px"},children:[(0,d.jsx)(e.$N,{asChild:!0,children:(0,d.jsx)("span",{className:"sr-only",children:(0,g.xb)(h
1)?"Notice":h})}),(0,d.jsxs)("div",{className:"locationPromptContainer",children:[!(0,g.xb)(h)&&(0,d.jsx)("p",{className:"infoHead",children:(0,d.jsx)("span",{className:"title",children:h})}),!(0,g.xb)(j)&&(0,d.jsx)("p",{className:"infoBody",children:j}),(0,d.jsx)("button",{onClick:f,className:"allow",children:k}),(0,d.jsx)("p",{onClick:c,className:"cancel",children:l})]})]})})},l=function(a){var b=a.open,c=a.autoDetect,f=a.manuallySelect,h=a.onClose,i=a.showManualSelection;return(0,d.jsx)(e.Vq,{open:b,onOpenChange:function(a){a||h(!0,!0)},children:(0,d.jsx)(e.cZ,{align:(0,g.s2)()?"bottom":"center",style:(0,g.s2)()?{borderRadius:"12px",width:"90%",padding:"20px",marginBottom:"20px",border:"5px double #ef1c74",overflow:"visible"}:{borderRadius:"12px",width:"350px",padding:"24px",border:"5px double #ef1c74",overflow:"visible"},children:(0,d.jsxs)("div",{className:"".concat(j().locationPromptContainer," ").concat(j().aligned),children:[(0,d.jsx)(e.$N,{asChild:!0,children:(0,d.jsx)("p",{className:j().heading,children:"Hi!"})}),(0,d.jsx)("img",{alt:"close icon",onClick:function(){return h(!0,!1)},className:j().closeIcon,src:g.vc.resourcepath+"images/close-pink.svg"}),(0,d.jsx)("img",{alt:"favorite",className:j().branding,src:g.vc.resourcepath+"images/home/magicpin-favicon.png"}),(0,d.jsx)("p",{className:j().infoBody,children:"We need to know your location to serve better. Please allow us to auto detect your location or enter location manually."}),i&&(0,d.jsx)("button",{onClick:f,className:j().manualEntry,children:"Enter Manually"}),(0,d.jsx)("p",{onClick:c,className:j().autoDetect,children:"Allow Auto Detect"})]})})})},m=function(a){var b=a.open,c=a.location,i=a.close,k=a.selectLocation,l=a.manuallySelect;return(0,d.jsx)(e.Vq,{open:b,onOpenChange:function(a){a||i()},children:(0,d.jsxs)(e.cZ,{align:(0,g.s2)()?"bottom":"center",style:(0,g.s2)()?{borderRadius:"12px",width:"90%",padding:"20px",marginBottom:"20px",border:"5px double #ef1c74",overflow:"visible"}:{borderRadius:"12px",width:"350px",padding:"24px",border:"5px double #ef1c74",overflow:"visible"},children:[(0,d.jsx)(e.$N,{asChild:!0,children:(0,d.jsx)("span",{className:"sr-only",children:"Confirm your location"})}),(0,d.jsxs)("div",{className:"".concat(j().locationPromptContainer," ").concat(j().aligned),children:[(0,d.jsx)("img",{alt:"close",onClick:i,className:j().closeIcon,src:g.vc.resourcepath+"images/close-pink.svg"}),(0,d.jsx)("img",{alt:"favorite",className:j().branding,src:g.vc.resourcepath+"images/home/magicpin-favicon.png"}),(0,d.jsxs)("div",{className:j().infoBody,children:["Your Location is found to be",(0,d.jsxs)("div",{className:j().heading,children:[c.localityName,", ",c.city]})]}),(0,d.jsx)("button",{onClick:function(){i(),l()},className:j().manualEntry,children:"Update location manually"}),(0,d.jsx)("p",{onClick:function(){(0,h.Hl)(c),k(c),i(),window.location=(0,f.YM)(c)},className:j().autoDetect,children:"Accept Location"})]})]})})};function n(a){var b=a.open,c=a.onReject,f=a.onAccept,g=a.confirmationText,h=a.popupImage;return(0,d.jsx)(e.Vq,{open:b,onOpenChange:function(a){a||c()},children:(0,d.jsxs)(e.cZ,{style:{maxWidth:"400px",width:"100%",borderRadius:"8px",padding:"16px"},children:[(0,d.jsx)(e.$N,{asChild:!0,children:(0,d.jsx)("span",{className:"sr-only",children:g})}),(0,d.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"20px"},children:[h&&(0,d.jsx)("picture",{style:{display:"flex",maxHeight:"200px",justifyContent:"center"},children:(0,d.jsx)("img",{style:{minWidth:"70px",maxWidth:"100%",objectFit:"contain"},src:h,alt:"popup-icon"})}),(0,d.jsx)("p",{style:{textAlign:"center",fontSize:"16px",lineHeight:"20px",color:"rgba(0, 0, 0, 0.87)",fontWeight:"500",margin:"0px 16px"},children:g}),(0,d.jsxs)("div",{style:{display:"flex",justifyContent:"space-around",padding:"2px 30px"},children:[(0,d.jsx)("button",{style:{padding:"4px",fontSize:"16px",lineHeight:"20px",color:"rgba(0, 0, 0, 0.87)",fontWeight:"600",border:"none",cursor:"pointer",background:"white"},onClick:function(a){a.preventDefault(),c()},children:"No"}),(0,d.jsx)("button",{style:{padding:"4px",fontSize:"16px",lineHeight:"20px",color:"#821dff",fontWeight:"600",border:"none",cursor:"pointer",background:"white"},onClick:function(a){a.preventDefault(),f()},children:"Yes"})]})]})]})})}},4766:function(a,b,c){"use strict";"use client";c.d(b,{Vq:function(){return $},cZ:function(){return _},"$N":function(){return aa}});var d=c(85893),e=c(67294),f=c(36206),g=c(28771),h=c(25360),i=c(91276),j=c(77342),k=c(31571),l=c(95420),m=c(42651),n=c(29115),o=c(75320),p=c(27552),q=c(81170),r=c(23541),s=c(88426),t="Dialog",[u,v]=(0,h.b)(t),[w,x]=u(t),y=a=>{const{__scopeDialog:b,children:c,open:f,defaultOpen:g,onOpenChange:h,modal:k=!0}=a,l=e.useRef(null),m=e.useRef(null),[n,o]=(0,j.T)({prop:f,defaultProp:g?? !1,onChange:h,caller:t});return(0,d.jsx)(w,{scope:b,triggerRef:l,contentRef:m,contentId:(0,i.M)(),titleId:(0,i.M)(),descriptionId:(0,i.M)(),open:n,onOpenChange:o,onOpenToggle:e.useCallback(()=>o(a=>!a),[o]),modal:k,children:c})};y.displayName=t;var z="DialogTrigger",A=e.forwardRef((a,b)=>{const{__scopeDialog:c,...e}=a,h=x(z,c),i=(0,g.e)(b,h.triggerRef);return(0,d.jsx)(o.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":h.open,"aria-controls":h.open?h.contentId:void 0,"data-state":U(h.open),...e,ref:i,onClick:(0,f.Mj)(a.onClick,h.onOpenToggle)})});A.displayName=z;var B="DialogPortal",[C,D]=u(B,{forceMount:void 0}),E=a=>{const{__scopeDialog:b,forceMount:c,children:f,container:g}=a,h=x(B,b);return(0,d.jsx)(C,{scope:b,forceMount:c,children:e.Children.map(f,a=>
1(0,d.jsx)(n.z,{present:c||h.open,children:(0,d.jsx)(m.h,{asChild:!0,container:g,children:a})}))})};E.displayName=B;var F="DialogOverlay",G=e.forwardRef((a,b)=>{const c=D(F,a.__scopeDialog),{forceMount:e=c.forceMount,...f}=a,g=x(F,a.__scopeDialog);return g.modal?(0,d.jsx)(n.z,{present:e||g.open,children:(0,d.jsx)(I,{...f,ref:b})}):null});G.displayName=F;var H=(0,s.Z8)("DialogOverlay.RemoveScroll"),I=e.forwardRef((a,b)=>{const{__scopeDialog:c,...e}=a,f=x(F,c),h=(0,k.WL)(),i=(0,g.e)(b,h);return(0,d.jsx)(q.Z,{as:H,allowPinchZoom:!0,shards:[f.contentRef],children:(0,d.jsx)(o.WV.div,{"data-state":U(f.open),...e,ref:i,style:{pointerEvents:"auto",...e.style}})})}),J="DialogContent",K=e.forwardRef((a,b)=>{const c=D(J,a.__scopeDialog),{forceMount:e=c.forceMount,...f}=a,g=x(J,a.__scopeDialog);return(0,d.jsx)(n.z,{present:e||g.open,children:g.modal?(0,d.jsx)(L,{...f,ref:b}):(0,d.jsx)(M,{...f,ref:b})})});K.displayName=J;var L=e.forwardRef((a,b)=>{const c=x(J,a.__scopeDialog),h=e.useRef(null),i=(0,g.e)(b,c.contentRef,h);return e.useEffect(()=>{const a=h.current;if(a)return(0,r.Ry)(a)},[]),(0,d.jsx)(N,{...a,ref:i,trapFocus:c.open,disableOutsidePointerEvents:c.open,onCloseAutoFocus:(0,f.Mj)(a.onCloseAutoFocus,a=>{a.preventDefault(),c.triggerRef.current?.focus()}),onPointerDownOutside:(0,f.Mj)(a.onPointerDownOutside,a=>{const b=a.detail.originalEvent,c=0===b.button&& !0===b.ctrlKey,d=2===b.button||c;d&&a.preventDefault()}),onFocusOutside:(0,f.Mj)(a.onFocusOutside,a=>a.preventDefault())})}),M=e.forwardRef((a,b)=>{const c=x(J,a.__scopeDialog),f=e.useRef(!1),g=e.useRef(!1);return(0,d.jsx)(N,{...a,ref:b,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:b=>{a.onCloseAutoFocus?.(b),b.defaultPrevented||(f.current||c.triggerRef.current?.focus(),b.preventDefault()),f.current=!1,g.current=!1},onInteractOutside:b=>{a.onInteractOutside?.(b),b.defaultPrevented||(f.current=!0,"pointerdown"!==b.detail.originalEvent.type||(g.current=!0));const d=b.target,e=c.triggerRef.current?.contains(d);e&&b.preventDefault(),"focusin"===b.detail.originalEvent.type&&g.current&&b.preventDefault()}})}),N=e.forwardRef((a,b)=>{const{__scopeDialog:c,trapFocus:e,onOpenAutoFocus:f,onCloseAutoFocus:g,...h}=a,i=x(J,c);return(0,p.EW)(),(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(l.M,{asChild:!0,loop:!0,trapped:e,onMountAutoFocus:f,onUnmountAutoFocus:g,children:(0,d.jsx)(k.XB,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":U(i.open),...h,ref:b,deferPointerDownOutside:!0,onDismiss:()=>i.onOpenChange(!1)})})})}),O="DialogTitle",P=e.forwardRef((a,b)=>{const{__scopeDialog:c,...e}=a,f=x(O,c);return(0,d.jsx)(o.WV.h2,{id:f.titleId,...e,ref:b})});P.displayName=O;var Q="DialogDescription",R=e.forwardRef((a,b)=>{const{__scopeDialog:c,...e}=a,f=x(Q,c);return(0,d.jsx)(o.WV.p,{id:f.descriptionId,...e,ref:b})});R.displayName=Q;var S="DialogClose",T=e.forwardRef((a,b)=>{const{__scopeDialog:c,...e}=a,g=x(S,c);return(0,d.jsx)(o.WV.button,{type:"button",...e,ref:b,onClick:(0,f.Mj)(a.onClick,()=>g.onOpenChange(!1))})});function U(a){return a?"open":"closed"}T.displayName=S,a=>a.children;var V=c(92150);function W(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function X(a){for(var b=1;b<arguments.length;b++){var c=null!=arguments[b]?arguments[b]:{},d=Object.keys(c);"function"==typeof Object.getOwnPropertySymbols&&(d=d.concat(Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable}))),d.forEach(function(b){W(a,b,c[b])})}return a}function Y(a,b){if(null==a)return{};var c,d,e=Z(a,b);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);for(d=0;d<f.length;d++)c=f[d],b.indexOf(c)>=0||Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e}function Z(a,b){if(null==a)return{};var c,d,e={},f=Object.keys(a);for(d=0;d<f.length;d++)c=f[d],b.indexOf(c)>=0||(e[c]=a[c]);return e}var $=y;function _(a){var b=a.className,c=a.overlayClassName,e=a.align,f=a.children,g=Y(a,["className","overlayClassName","align","children"]);return(0,d.jsxs)(E,{children:[(0,d.jsx)(G,{className:(0,V.cn)("fixed inset-0 z-[1300] bg-black/50",c)}),(0,d.jsx)(K,X({className:(0,V.cn)("fixed z-[1301] max-h-[80vh] w-[calc(100%-24px)] max-w-lg overflow-y-auto bg-white outline-none","bottom"===(void 0===e?"center":e)?"left-1/2 top-auto bottom-0 w-full max-w-full -translate-x-1/2 translate-y-0 rounded-b-none rounded-t-card":"left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 roun
1ded-card",b)},g,{children:f}))]})}function aa(a){var b=a.className,c=Y(a,["className"]);return(0,d.jsx)(P,X({className:b},c))}},56108:function(a){a.exports={locationPromptContainer:"locationPermissionPrompt_locationPromptContainer__LtnRU",aligned:"locationPermissionPrompt_aligned__zy6Y5",logo:"locationPermissionPrompt_logo__1vUsL",loading:"locationPermissionPrompt_loading__TK0yP",infoHead:"locationPermissionPrompt_infoHead__W9CNG",title:"locationPermissionPrompt_title__Ypb87",infoBody:"locationPermissionPrompt_infoBody__OlA_k",allow:"locationPermissionPrompt_allow__JJbZ3",cancel:"locationPermissionPrompt_cancel__iBKnu",heading:"locationPermissionPrompt_heading__8L15W",closeIcon:"locationPermissionPrompt_closeIcon__44n4l",branding:"locationPermissionPrompt_branding__pigit",manualEntry:"locationPermissionPrompt_manualEntry__f56_W",autoDetect:"locationPermissionPrompt_autoDetect__Z68Bv"}}}])

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.