import{A as z,a2 as I,r as x,j as e,br as b,I as i,g as W,b as H,a5 as M,V as r,bj as R}from"./index-Csef3-wA.js";import{m as c,a as F,l as A,f as L,b as D,t as P}from"./twitter_nocolor-CZZvV2f4.js";import{a as U,b as O,c as $,d as Q}from"./alergeno_pescado-CXFncakG.js";import{I as C}from"./Icon-o1TUwOIX.js";function X({children:n,type:u="",withoutContainer:s=!1,realPreview:o=!1,onLoad:f=()=>{},bgWrapper:a=!0}){const m=z("xlUp"),k=I("@media (min-width: 1795px) and (max-width: 1919px) and (min-height: 920px)"),S=I("@media (min-width: 1920px) and (max-height: 919px)"),[w,y]=x.useState(!1),j=x.useRef(null);x.useEffect(()=>{if(!("IntersectionObserver"in window)||!j.curent)return y(!0);const d=new IntersectionObserver(E=>{E.forEach(T=>{T.isIntersecting&&(y(!0),d.unobserve(T.target))})},{rootMargin:"700px 0px"});return d.observe(j.current),()=>{d.disconnect()}},[]);const v={...k?{marginBottom:-189,transform:"scale(0.7)"}:{},...S?{marginBottom:-10,transform:"scale(1.45)"}:{}};if(!s){const d=e.jsxs(c.Cellphone,{large:1,style:{marginBottom:m?-120:-77,...v},ref:j,children:[e.jsx(c.CellFrame,{className:w?"visible":""}),e.jsx(c.CellContent,{large:1,realpreview:o?1:0,children:n})]});return e.jsx(c.Container,{children:a?e.jsx(c.BgWrapper,{type:u,children:d}):d})}const l=x.useRef(null),B=()=>{l.current&&!l.current.style.backgroundImage&&(l.current.style.backgroundImage=`url("${b}")`,f())};let h;return x.useEffect(()=>{l!=null&&l.current&&!h&&(h=new Image,h.onload=B,h.src=b)},[l.current]),e.jsxs(c.Cellphone,{large:1,children:[e.jsx(c.CellFrame,{ref:l}),e.jsx(c.CellContent,{style:{backgroundColor:"transparent"},large:1,realpreview:o?1:0,children:n})]})}const g=1.45,p="@media (min-width: 1795px) and (min-height: 920px)",t={Container:i("div")({display:"flex",flexDirection:"column",color:W.white},"Website-Container"),HeaderContainer:i("div")({display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:"0 0 16px 0px",backgroundColor:"#fff"}),HeaderImg:i("img")(({large:n})=>({position:"relative",width:"100%",height:"auto",[p]:{...n&&{height:209*g}}})),HeaderText:i("div")(({large:n})=>({textAlign:"center",fontSize:"14",lineHeight:"22px",marginBottom:2,fontFamily:"Lato",fontWeight:700,color:"#000",marginTop:16,[p]:{...n&&{transform:`scale(${g})`,marginBottom:4,marginTop:21}}})),Subtitle:i("p")(({large:n})=>({width:"100%",fontWeight:400,fontSize:9,textAlign:"center",minHeight:"25px",lineHeight:"16px",color:"#5A5B70",[p]:{...n&&{transform:`scale(${g})`}}})),ContentContainer:i("div")(({large:n})=>({width:"100%",position:"relative",backgroundColor:"#fff",borderTop:"1px solid #E5E7EF",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",padding:"16px 16px 0",[p]:{...n&&{transform:`scale(${g})`,padding:"21px 21px 0",marginTop:275}}})),Title:i("p")({width:190,fontWeight:800,fontSize:9,textAlign:"left",lineHeight:"22px",color:"#220E27",textTransform:"uppercase",letterSpacing:"1px",marginBottom:8}),Items:i("div")({display:"flex",flexDirection:"column",marginBottom:20}),Item:i("div")({display:"flex",justifyContent:"space-between",alignItems:"center",width:190,height:36,borderRadius:4,backgroundColor:"#fff",border:"1px solid #E5E7EF",marginBottom:8,"&:hover":{cursor:"pointer"},"&:last-child":{marginBottom:0}}),ItemText:i("p")({color:"#000",paddingLeft:13.5,fontSize:12,fontWeight:700,lineHeight:"22px"}),ItemIcon:i("div")({border:"solid #306C3F",borderWidth:"0 3px 3px 0",display:"inline-block",padding:3,transform:"rotate(-45deg)",WebkitTransform:"rotate(-45deg)",marginRight:13}),TypesContainer:i("div")({width:190,height:172,backgroundColor:"#F3F5FE",borderRadius:4,display:"flex",justifyContent:"center",alignItems:"center",padding:16,flexWrap:"wrap",marginBottom:16}),Type:i("div")({display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"50%"}),TypeText:i("p")({color:"#8B8CA5",fontSize:12,fontWeight:500,lineHeight:"19px"}),Img:i("img")({width:32,height:32,marginBottom:4}),ScheduleContainer:i("div")({width:190,height:"auto",backgroundColor:"#F7F7F7",borderRadius:4,display:"flex",flexDirection:"column",alignItems:"center",padding:"18px 12px 12px",flexWrap:"wrap"}),Section:i("div")({width:"100%",display:"flex",marginBottom:15,"&:last-child":{marginBottom:0}}),IconWrapper:i("div")({display:"flex",justifyContent:"center",alignItems:"center",color:"#000",backgroundColor:"#fff",width:30,height:30,borderRadius:4}),RightText:i("div")({display:"flex",flexDirection:"column",alignItems:"start",paddingTop:1,paddingLeft:12,maxWidth:136}),RightTextTitle:i("p")({fontSize:11,fontWeight:600,lineHeight:"13px",color:"#000"}),RightTextSubtitle:i("p")({marginTop:6,fontSize:9,fontWeight:500,lineHeight:"19px",color:"#31D3B3"}),ScheduleContent:i("div")({display:"flex",flexDirection:"column",width:"100%"}),ScheduleItem:i("div")({display:"flex",justifyContent:"space-between",width:"100%",fontSize:9,fontWeight:500,lineHeight:"19px",color:"#8B8CA5",marginBottom:9,"&:first-child":{color:"#000",fontWeight:600}}),Link:i("a")({marginTop:12,fontSize:9,fontWeight:500,lineHeight:"19px",color:"#1D59F9","&:hover":{cursor:"pointer"}}),PhoneText:i("p")({marginTop:1,fontSize:10,fontWeight:500,lineHeight:"19px",color:"#8B8CA5"}),Contact:i("div")({marginTop:20,display:"flex",flexDirection:"column",borderTop:"solid 1px #E5E7EF",borderBottom:"solid 1px #E5E7EF",padding:"20px 16px"}),ContactSubtitle:i("p")({width:"100%",textAlign:"left",color:"#000",fontSize:9,fontWeight:800,lineHeight:"22px",textTransform:"uppercase"}),Socials:i("div")({marginTop:25,display:"flex",flexDirection:"column",marginBottom:34}),Social:i("div")({display:"flex",width:"100%",marginBottom:19,"&:last-child":{marginBottom:0}}),Logo:i("div")({}),SocialUser:i("p")({paddingLeft:8,color:"#220E27",fontWeight:400,fontSize:13,lineHeight:"16px"}),MapImage:i("img")({marginTop:12,width:189,height:138}),Bottom:i("div")(({large:n})=>({backgroundColor:"#fff",color:"#96949C",height:"63px",fontSize:12,fontWeight:500,lineHeight:"19px",display:"flex",justifyContent:"center",alignItems:"center",textAlign:"center",verticalAlign:"middle",[p]:{...n&&{marginTop:275}}}))},V=[{social:"facebook",icon:L,user:"/corleonepizzas"},{social:"linkedin",icon:D,user:"/corleonepizzas"},{social:"twitter",icon:P,user:"/corleonepizzas"}];function Y({large:n=!1,onLoad:u=()=>{}}){const s=H(),{handleLoad:o}=M(7,u),f=[{day:s.formatMessage({id:"mockups.menu.schedule.day1"}),time:"10:00 am - 12:00 am"},{day:s.formatMessage({id:"mockups.menu.schedule.day2"}),time:"10:00 am - 12:00 am"},{day:s.formatMessage({id:"mockups.menu.schedule.day3"}),time:"10:00 am - 12:00 am"},{day:s.formatMessage({id:"mockups.menu.schedule.day4"}),time:null},{day:s.formatMessage({id:"mockups.menu.schedule.day5"}),time:"10:00 am - 12:00 am"},{day:s.formatMessage({id:"mockups.menu.schedule.day6"}),time:"10:00 am - 12:00 am"},{day:s.formatMessage({id:"mockups.menu.schedule.day7"}),time:"10:00 am - 12:00 am"}];return e.jsxs(t.Container,{children:[e.jsxs(t.HeaderContainer,{children:[e.jsx(t.HeaderImg,{src:F,large:n?1:0,width:"226",height:"212",alt:"Pizza",loading:"lazy",onLoad:o,onError:o}),e.jsx(t.HeaderText,{large:n?1:0,children:e.jsx(r,{id:"mockups.menu.title"})}),e.jsx(t.Subtitle,{large:n?1:0,children:e.jsx(r,{id:"mockups.menu.description"})})]}),e.jsxs(t.ContentContainer,{large:n?1:0,children:[e.jsx(t.Title,{children:e.jsx(r,{id:"mockups.pdf.button"})}),e.jsxs(t.Items,{children:[e.jsxs(t.Item,{children:[e.jsx(t.ItemText,{children:e.jsx(r,{id:"mockups.menu.sections.0"})}),e.jsx(t.ItemIcon,{})]}),e.jsxs(t.Item,{children:[e.jsx(t.ItemText,{children:e.jsx(r,{id:"mockups.menu.sections.1"})}),e.jsx(t.ItemIcon,{})]}),e.jsxs(t.Item,{children:[e.jsx(t.ItemText,{children:e.jsx(r,{id:"mockups.menu.sections.2"})}),e.jsx(t.ItemIcon,{})]}),e.jsxs(t.Item,{children:[e.jsx(t.ItemText,{children:e.jsx(r,{id:"mockups.menu.sections.3"})}),e.jsx(t.ItemIcon,{})]})]}),n&&e.jsxs("div",{children:[e.jsxs(t.TypesContainer,{children:[e.jsxs(t.Type,{children:[e.jsx(t.Img,{src:U,alt:"cereales",onLoad:o,onError:o}),e.jsx(t.TypeText,{children:e.jsx(r,{id:"mockups.menu.allergen1"})})]}),e.jsxs(t.Type,{children:[e.jsx(t.Img,{src:O,alt:"crustaceos",onLoad:o,onError:o}),e.jsx(t.TypeText,{children:e.jsx(r,{id:"mockups.menu.allergen2"})})]}),e.jsxs(t.Type,{children:[e.jsx(t.Img,{src:$,alt:"huevos",onLoad:o,onError:o}),e.jsx(t.TypeText,{children:e.jsx(r,{id:"mockups.menu.allergen3"})})]}),e.jsxs(t.Type,{children:[e.jsx(t.Img,{src:Q,alt:"pescados",onLoad:o,onError:o}),e.jsx(t.TypeText,{children:e.jsx(r,{id:"mockups.menu.allergen4"})})]})]}),e.jsxs(t.ScheduleContainer,{children:[e.jsxs(t.Section,{children:[e.jsx(t.IconWrapper,{children:e.jsx(C,{name:"clock",size:18})}),e.jsxs(t.RightText,{children:[e.jsx(t.RightTextTitle,{children:e.jsx(r,{id:"mockups.menu.schedule.title"})}),e.jsx(t.RightTextSubtitle,{children:e.jsx(r,{id:"mockups.menu.schedule.subtitle"})})]})]}),e.jsxs(t.ScheduleContent,{children:[f.map((a,m)=>e.jsxs(t.ScheduleItem,{children:[e.jsx("p",{children:a.day}),e.jsx("p",{children:a.time?a.time:e.jsx(r,{id:"mockups.menu.schedule.closed"})})]},m)),e.jsxs(t.Section,{style:{marginTop:19},children:[e.jsx(t.IconWrapper,{children:e.jsx(C,{name:"location",size:18})}),e.jsxs(t.RightText,{children:[e.jsx(t.RightTextTitle,{children:"Prta del Sol, 41, 28013 Madrid, Spain"}),e.jsx(t.Link,{href:"https://www.google.com/maps/place/Prta+del+Sol,+41,+28013+Madrid,+Espa%C3%B1a/data=!4m2!3m1!1s0xd42287e116bdf5d:0xe7bf72fdcb3a56da?sa=X&ved=2ahUKEwifu_-A5838AhWOrJUCHZWbAQYQ8gF6BAgTEAI",target:"_blank",children:"Mostrar en el mapa"})]})]}),e.jsxs(t.Section,{style:{marginTop:5},children:[e.jsx(t.IconWrapper,{children:e.jsx(R,{size:18})}),e.jsxs(t.RightText,{children:[e.jsx(t.RightTextTitle,{children:"+54 11 0000 0000"}),e.jsx(t.PhoneText,{children:"Teléfono Celular"})]})]})]})]}),e.jsxs(t.Contact,{children:[e.jsx(t.ContactSubtitle,{children:e.jsx(r,{id:"mockups.menu.contact.socials"})}),e.jsx(t.Socials,{children:V.map((a,m)=>e.jsxs(t.Social,{children:[e.jsx(t.Logo,{children:e.jsx("img",{src:a.icon,alt:a.social,onLoad:o,onError:o})}),e.jsx(t.SocialUser,{children:a.user})]},m))}),e.jsx(t.ContactSubtitle,{children:e.jsx(r,{id:"mockups.menu.contact.location"})}),e.jsx(t.MapImage,{src:A,alt:"map",onLoad:o,onError:o})]})]})]}),e.jsx(t.Bottom,{large:n?1:0,children:"2022 © QRfy, España"})]})}export{X as M,Y as a};