const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Bottom-B52i6KOx.js","assets/index-Csef3-wA.js","assets/index-CQxAId2n.js","assets/reviews-CoLGA8Lj.js","assets/language-DKIuA-OH.js","assets/Icon-o1TUwOIX.js","assets/hooks-DWQDL114.js","assets/index-C99wF7dD.js"])))=>i.map(i=>d[i]); import{I as o,g as n,ac as w,G as x,w as b,bz as j,b as p,j as t,r as d,_ as f,O as S,cN as k,au as u,A as v,V as C,m as y,bn as m,bp as T,a8 as W,cu as M,c4 as P,cD as q,c5 as z}from"./index-Csef3-wA.js";import{Q as B}from"./QrBanner-DcNQ_pNC.js";import{u as I}from"./hooks-JrbTEY8F.js";import"./twitter_nocolor-CZZvV2f4.js";import"./reducer-BHSoP-ii.js";import"./Menu-BepZ_SI4.js";import"./alergeno_pescado-CXFncakG.js";import"./Icon-o1TUwOIX.js";o("h2")(({theme:e})=>({fontSize:40,fontWeight:700,lineHeight:"48px",[e.breakpoints.down("md")]:{fontSize:20,lineHeight:"24px"}}),"QrTypes-Title");const D=o("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",width:"100%",maxWidth:1030,margin:"0 auto",[e.breakpoints.down("md")]:{maxWidth:"calc(100% - 40px)"}}),"QrTypes-Center"),c={Container:o("div")(({theme:e})=>({textAlign:"center",paddingTop:72,paddingBottom:60,position:"relative",[e.breakpoints.down("md")]:{paddingBottom:8}}),"Top-Container"),Center:D,Title:o("h1")(({theme:e})=>({fontSize:56,lineHeight:"64px",fontWeight:800,maxWidth:898,padding:"4px 0",[e.breakpoints.down("md")]:{fontSize:28,lineHeight:"38px"}}),"Top-Title"),Description:o("p")(({theme:e})=>({fontSize:18,lineHeight:"28px",marginTop:12,maxWidth:846,color:n.gray.darkest,[e.breakpoints.down("md")]:{fontSize:18,marginTop:16}}),"Top-Description"),Blue:o("span")({color:n.primary.blue},"Top-Blue")},$=o(w("button",["selected"]))(({selected:e})=>({border:`2px solid ${e?n.primary.blue:"#E4E4E4"}`,borderRadius:8,height:120,width:100,display:"inline-flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:n.white,outline:0,padding:0,paddingBottom:6,cursor:"pointer",marginLeft:11,opacity:1,color:n.black,transition:x.transition(),"&:first-child":{marginLeft:0},"&:hover":{backgroundColor:n.white,opacity:1,borderColor:n.primary.blue}}),"Types-Type"),h={Type:$,TypeIconWrapper:o("div")({width:"auto",height:"auto",borderRadius:0,backgroundColor:n.transparent,marginBottom:-7,transition:x.transition(),lineHeight:1,fontSize:0,position:"relative","& img":{width:80,height:80,position:"relative",top:-8,zIndex:1}},"Types-TypeIconWrapper"),TypeTitle:o("h5")({fontSize:15,lineHeight:"22px",fontWeight:700,marginLeft:0,height:22,whiteSpace:"normal",display:"flex",alignItems:"center",wordBreak:"break-word",padding:"0 6px"},"Types-TypeTitle")},g={Container:o("section")({position:"relative"}),Center:b(e=>({root:{paddingTop:20,paddingBottom:0,position:"relative",zIndex:1,[e.breakpoints.up("md")]:{paddingTop:88,paddingBottom:0},[e.breakpoints.down("md")]:{width:"100%",paddingLeft:20}}}),"TypesSelector-Center")(j),TypesWrapper:o("div")({width:"100%",marginBottom:0,height:132,"& .container":{lineHeight:1,fontSize:0,whiteSpace:"nowrap"}},"TypesSelector-TypesWrapper")};function H({item:e,selected:s=!1,handleClick:i=()=>{}}){const a=p();return t.jsxs(h.Type,{selected:s,onClick:i,children:[t.jsx(h.TypeIconWrapper,{selected:s,children:t.jsx("img",{src:`${e.image}#${e.name}`,alt:`${a.formatMessage({id:"home.types.alt"})} ${e.title}`,width:80,height:80,loading:"lazy"})}),t.jsx(h.TypeTitle,{itemProp:"category",children:e.title})]})}const L=d.lazy(()=>f(()=>import("./index-Csef3-wA.js").then(e=>e.gm),[]));function N({children:e,selectedIdx:s=0}){var r;const i=d.useRef(null),a=v("xs");return d.useEffect(()=>{var l;(l=i==null?void 0:i.current)!=null&&l.container&&i.current.scrollLeft(s*127)},[s,(r=i==null?void 0:i.current)==null?void 0:r.container]),a?t.jsx(g.TypesWrapper,{children:t.jsx("div",{style:{width:"100%",overflow:"auto",paddingBottom:15},children:t.jsx("div",{className:"container",children:e})})}):t.jsx(g.TypesWrapper,{children:t.jsx(d.Suspense,{fallback:t.jsx("div",{style:{width:"100%",overflow:"hidden"},children:t.jsx("div",{className:"container",children:e})}),children:t.jsx(L,{style:{width:"100%"},forceScroll:!0,scrollType:"x",autoHide:!1,ref:i,handle:!0,children:t.jsx("div",{className:"container",children:e})})})})}function E(){const[e,s]=d.useState(null),i=S(),a=k(!1,["barcode","product","social"]);return t.jsx(g.Container,{children:t.jsx(g.Center,{maxWidth:1030,children:t.jsx(N,{selectedIdx:e,children:a.map((r,l)=>t.jsx(H,{selected:l===e,handleClick:()=>{s(l),i.push(u("qrInternal").replace(":type",r.name))},item:r},`mockup-type--${r.name}-${l.toString()}`))})})})}function _(){const s=p().formatMessage({id:"qrsPage.top.title"},{highlighted:(...i)=>t.jsx(c.Blue,{children:i})});return t.jsxs(c.Container,{children:[t.jsxs(c.Center,{children:[t.jsx(c.Title,{children:s}),t.jsx(c.Description,{children:t.jsx(C,{id:"qrsPage.top.description"})})]}),t.jsx(E,{})]})}const A=y(e=>({root:{padding:"40px 28px 28px",borderRadius:8,background:n.white,boxShadow:"0px 4px 6px 0px #CDD1E0",display:"flex",flexDirection:"column",[e.breakpoints.down("md")]:{background:n.gray.light,boxShadow:"none",padding:"30px 20px"}},container:{display:"flex",flexDirection:"column",alignItems:"flex-start",flex:1},name:{color:n.black,fontSize:28,fontWeight:900,[e.breakpoints.down("md")]:{fontSize:16}},description:{color:"#5A5B70",fontSize:16,fontWeight:400,lineHeight:"24px",marginTop:21,flex:1,[e.breakpoints.down("md")]:{width:195,fontSize:14,marginTop:9}},button:{marginTop:40}}),"StaticQrs-Item"),Q=y(e=>({root:{background:n.gray.light,padding:"104px 0 90px",[e.breakpoints.down("md")]:{background:n.white,padding:"40px 0"}},container:{width:"calc(100% - 40px)",maxWidth:1030,margin:"auto",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-start",[e.breakpoints.down("md")]:{width:"100%",paddingLeft:20}},title:{color:n.black,textAlign:"center",fontSize:40,fontWeight:700,[e.breakpoints.down("md")]:{fontSize:20}},itemsWrapper:{marginTop:78,display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(330px, 1fr))",gap:20,width:"100%",[e.breakpoints.down("md")]:{display:"flex",marginTop:17}},button:{margin:"0 auto",marginTop:30,minWidth:280}}),"StaticQrs");function R({name:e="",description:s=""}){const i=A();return e?t.jsx("div",{className:i.root,children:t.jsxs("div",{className:i.container,children:[e&&t.jsx("h2",{className:i.name,children:e}),s&&t.jsx("div",{className:i.description,children:s}),t.jsx(m,{mdDown:!0,children:t.jsx(T,{className:i.button,hasArrow:!1,homeRedirect:!0})})]})}):null}function O(){const e=p();return[{id:0,name:e.formatMessage({id:"qrsPage.static.url.name"}),description:e.formatMessage({id:"qrsPage.static.url.description"})},{id:1,name:e.formatMessage({id:"qrsPage.static.wifi.name"}),description:e.formatMessage({id:"qrsPage.static.wifi.description"})},{id:2,name:e.formatMessage({id:"qrsPage.static.vCard.name"}),description:e.formatMessage({id:"qrsPage.static.vCard.description"})},{id:3,name:e.formatMessage({id:"qrsPage.static.whatsApp.name"}),description:e.formatMessage({id:"qrsPage.static.whatsApp.description"})},{id:4,name:e.formatMessage({id:"qrsPage.static.text.name"}),description:e.formatMessage({id:"qrsPage.static.text.description"})},{id:5,name:e.formatMessage({id:"qrsPage.static.email.name"}),description:e.formatMessage({id:"qrsPage.static.email.description"})},{id:6,name:e.formatMessage({id:"qrsPage.static.sms.name"}),description:e.formatMessage({id:"qrsPage.static.sms.description"})}]}function V(){const e=Q(),s=p(),i=O(),a=t.jsx("div",{className:e.itemsWrapper,children:!!(i!=null&&i.length)&&i.map(r=>t.jsx(R,{...r},r.id))});return t.jsx("div",{className:e.root,children:t.jsxs("div",{className:e.container,children:[t.jsx("h2",{className:e.title,children:s.formatMessage({id:"qrsPage.static.title"})}),t.jsx(m,{mdDown:!0,children:a}),t.jsx(m,{mdUp:!0,children:t.jsx(W,{autoHeight:!0,autoHeightMin:270,style:{width:"100%"},children:a})}),t.jsx(m,{mdUp:!0,children:t.jsx(T,{className:e.button,hasArrow:!1,homeRedirect:!0})})]})})}const F=d.lazy(()=>f(()=>import("./Bottom-B52i6KOx.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])));function se(){const e=I(),s=p();M();const i=P("BreadcrumbList",{itemListElement:[{"@type":"ListItem",position:1,name:s.formatMessage({id:"qrInternal.breadcrumbs.home"}),item:`${window.location.origin}${u("home")}`},{"@type":"ListItem",position:2,name:s.formatMessage({id:"qrInternal.breadcrumbs.qrCodes"}),item:`${window.location.origin}${u("qrTypes")}`}]});return t.jsxs(q,{withAccountModal:!0,title:s.formatMessage({id:"qrsPage.title"}),children:[t.jsx(z,{data:i}),t.jsx(_,{}),!!(e!=null&&e.length)&&e.map(a=>t.jsx(B,{...a},a.id)),t.jsx(V,{}),t.jsx(d.Suspense,{fallback:null,children:t.jsx(F,{})})]})}export{se as default};