1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4296],{92578:function(e,t,n){n.d(t,{default:function(){return j}});var i=n(11448),l=n(50927),r=n(5673),o=n(68055),a=n(41070),s=n(39553),d=n(23702),u=n(32790),c=n(99786),x=n(95876),p=n(78780),h=n(21961),f=n(1756),g=n(11997),m=n(30392);let v={name:p.S8,value:"true"};var b=function(){let e=(0,c.usePathname)(),{setIsShowAstroAppBanner:t,userAddress:n}=(0,h.default)(e=>e),[i,l]=(0,u.useState)(null),r="true"===(0,c.useSearchParams)().get("webview");return(0,u.useEffect)(()=>{(0,x.St)(v.name)!==v.value&&(l(document.querySelector(".bottom-navigation")?g.$z:0),t(!0))},[e,t]),{bottom:i,isWebview:r,handleToOpen:()=>{let e={eventAction:"click download apps - button",locationId:"".concat(n.location_id)};(0,f.kx)(e);let t=(0,m.B)({linkParams:{c:m.i.banner}});window.open(t,"_blank")},handleToClose:()=>{(0,x.D9)(v.name,v.value),l(null),t(!1)}}},j=()=>{let{bottom:e,isWebview:t,handleToOpen:n,handleToClose:u}=b();return t?null:null===e?e:(0,i.jsxs)(l.Z,{position:"fixed",bottom:e,width:"100%",maxWidth:"430px",zIndex:10,children:[(0,i.jsx)(l.Z,{onClick:u,padding:"2px",mb:"4px",ml:"auto",mr:"8px",borderRadius:"50%",display:"flex",justifyContent:"space-around",width:"20px",height:"20px",bgcolor:"white",style:{boxShadow:"0px 0px 8px 0px rgba(100, 100, 100, 0.2), 0px 2px 2px 0px rgba(55, 55, 55, 0.02)",cursor:"pointer"},children:(0,i.jsx)(a.Close,{size:16})}),(0,i.jsxs)(l.Z,{pr:"8px",display:"flex",justifyContent:"space-between",alignItems:"center",borderRadius:"8px 8px 0 0 ",sx:{background:"linear-gradient(93.7deg, #7BD1FD -9.95%, #D4F1FF 26.38%)"},className:"app-installer-banner",children:[(0,i.jsxs)(l.Z,{display:"flex",justifyContent:"space-between",alignItems:"center",overflow:"hidden",children:[(0,i.jsx)(s.default,{src:"".concat(d.ic,"/img/smart_banner_img_1.png"),alt:"astro",width:90,height:63,style:{marginLeft:"2px",marginBottom:"-3px",background:"none"}}),(0,i.jsxs)(l.Z,{display:"flex",flexDirection:"column",gap:"2px",minWidth:"200px",marginLeft:"-4px",children:[(0,i.jsx)(o.Z,{variant:"body-tinyStrong",fontWeight:600,children:"Dapatkan promo spesial"}),(0,i.jsx)(o.Z,{fontSize:"12px",lineHeight:"16px",fontWeight:800,children:"Voucher s.d 100rb & Gratis Ongkir"}),(0,i.jsx)(o.Z,{variant:"caption-tiny",fontWeight:600,children:"Hanya di Aplikasi Astro!"})]})]}),(0,i.jsx)(l.Z,{children:(0,i.jsx)(r.z,{size:"tiny",onClick:n,children:"Install"})})]})]})}},94296:function(e,t,n){n.r(t),n.d(t,{default:function(){return i.default}});var i=n(92578)},39553:function(e,t,n){n.r(t);var i=n(11448),l=n(32790),r=n(14837),o=n(70435),a=n(50927),s=n(23702);t.default=e=>{let{linkprops:t,src:n,fallbackImageSrc:d,containerProps:u,...c}=e,[x,p]=(0,l.useState)(n),h=()=>{let e={src:x,alt:(null==c?void 0:c.alt)||"",width:(null==c?void 0:c.fill)?"100%":null==c?void 0:c.width,height:(null==c?void 0:c.fill)?"100%":null==c?void 0:c.height,style:{maxWidth:"100%",objectFit:"contain",display:"block",...null==c?void 0:c.style},onError:()=>{d&&p(d)}};return(0,i.jsx)(a.Z,{position:(null==c?void 0:c.fill)?"relative":void 0,...u,children:(0,i.jsx)("img",{...e})})},f=()=>{let e={...c,src:x,style:{maxWidth:"100%",objectFit:"contain",display:"block",height:c.fill?void 0:c.height,...c.style?c.style:{}},onError:()=>{d&&p(d)}};return(0,i.jsx)(a.Z,{position:c.fill?"relative":void 0,...u,children:(0,i.jsx)(r.default,{className:"image",...e})})};return(0,i.jsx)(a.Z,{display:"block",children:t?(0,i.jsx)(o.default,{prefetch:!1,...t,children:s.g5?h():f()}):s.g5?h():f()})}},21961:function(e,t,n){n.r(t),n.d(t,{SessionStoreContext:function(){return a},SessionStoreProvider:function(){return d},useSessionStoreContext:function(){return u}});var i=n(11448),l=n(32790),r=n(97722),o=n(94235);let a=(0,l.createContext)(null),s=null,d=e=>{let{children:t,initState:n}=e,[r]=(0,l.useState)(()=>(s||(s=(0,o.SU)({...o.sT,...n})),s));return(0,o.KJ)()||(0,o.ev)(s),(0,i.jsx)(a.Provider,{value:r,children:t})},u=()=>(0,l.useContext)(a);t.default=e=>{let t=u();if(!t)throw Error("useSessionStore must be use within SessionStoreProvider");return(0,r.oR)(t,e)}}}]); 2//# sourceMappingURL=4296.749849aab94d941b.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.