import{u as c,d as o,p as m,dL as p,c as g,j as e,B as t,f7 as d,o as u,cM as l,cO as x,dR as h,dQ as f,ff as j,fg as D}from"./index-gATdONBG.js";import{D as w,a as S,c as T,d as b}from"./dialog-5oGehASR.js";import"./lodash-BosuxZz1.js";const F=()=>{const{t:i}=c("components/welcome-treat"),r=o(m("showWelcomeTreat")),n=o(p("isFromLogin")),s=g(),a=()=>{s(h(!1)),s(f(!1)),sessionStorage.setItem(j,D.Shown)};return e.jsxs(w,{className:"aspect-[4/3] md:max-w-160 rounded md:mx-4",classNameForContainer:"grid overflow-auto py-4",open:r,onClose:a,children:[e.jsx(S,{className:"border-none py-2 px-4",children:e.jsx(t,{variant:"icon",className:"ml-auto p-0","aria-label":"close-icon",onClick:()=>{n&&s(d(!0)),a()},children:e.jsx(u,{})})}),e.jsx(T,{className:"-mx-2",children:e.jsxs("picture",{children:[e.jsx("source",{media:"(min-width: 0px) and (max-width: 767px)",srcSet:l("./images/popup/mobile","320")}),e.jsx("img",{src:l("./images/popup/desktop","640"),alt:"Welcome treat popup banner",width:"817",height:"608"})]})}),e.jsx(b,{className:"-m-1.5 pt-6",children:e.jsx(t,{"aria-label":"guest-button",className:"mx-auto w-full max-w-xs font-semibold",onClick:()=>{a(),s(x(!0))},children:i("register")})})]})};export{F as default};