const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Bottom-Cde6MeLL.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 g,ac as z,g as n,G as w,w as F,bz as M,x as N,b as f,j as t,r as l,O as D,au as y,A as v,aF as E,cB as L,cC as $,m as b,bq as q,_ as H,cu as _,c4 as A,cD as Q,c5 as P}from"./index-Csef3-wA.js";import{u as k}from"./hooks-C0uusQ19.js";const R=g(z("button",["selected"]))(({selected:e})=>({border:`2px solid ${e?n.primary.blue:"#E4E4E4"}`,borderRadius:8,minHeight:173,height:"auto",width:116,display:"inline-flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-start",backgroundColor:n.white,outline:0,padding:8,paddingBottom:6,cursor:"pointer",opacity:1,color:n.black,transition:w.transition(),"&:hover":{backgroundColor:n.white,opacity:1,borderColor:n.primary.blue}}),"Types-Type"),d={Container:g("section")({position:"relative"}),Center:F(e=>({root:{paddingTop:20,paddingBottom:0,position:"relative",zIndex:1,[e.breakpoints.up("md")]:{paddingTop:88,paddingBottom:0},[e.breakpoints.down("md")]:{width:"calc(100% - 40px)",margin:"auto"}}}),"TypesSelector-Center")(M),TypesWrapper:g("div")({width:"100%",marginBottom:0,height:"auto","& .container":{lineHeight:1,fontSize:0,whiteSpace:"nowrap",display:"grid",gridTemplateColumns:"repeat(auto-fill, 116px)",justifyContent:"center",gap:12}},"TypesSelector-TypesWrapper"),Type:R,TypeIconWrapper:g("div")({width:"auto",height:"auto",borderRadius:0,backgroundColor:n.transparent,marginBottom:12,transition:w.transition(),lineHeight:1,fontSize:0,position:"relative","&::after":{position:"absolute",content:"''",top:0,left:-10,borderRadius:8,display:"block",width:100,height:84,background:n.secondary.lightBlue},"& img":{width:80,height:80,position:"relative",top:2,zIndex:1}},"Types-TypeIconWrapper"),TypeTitle:g("div")({fontSize:14,lineHeight:"20px",fontWeight:600,marginLeft:0,whiteSpace:"normal",display:"flex",alignItems:"center",flex:1,letterSpacing:"0.2px"},"Types-TypeTitle"),MoreButton:g(N)({marginTop:24},"Types-MoreButton")};function O({item:e,selected:i=!1,handleClick:s=()=>{}}){const c=f();return t.jsxs(d.Type,{selected:i,onClick:s,children:[t.jsx(d.TypeIconWrapper,{selected:i,children:t.jsx("img",{src:`${e.svgIcon}#${e.name}`,alt:`${c.formatMessage({id:"home.types.alt"})} ${e.name}`,width:80,height:80,loading:"lazy"})}),t.jsx(d.TypeTitle,{itemProp:"category",children:e.name})]})}function G({children:e,selectedIdx:i=0}){var p;const s=l.useRef(null),c=v("xs");return l.useEffect(()=>{var m;(m=s==null?void 0:s.current)!=null&&m.container&&s.current.scrollLeft(i*127)},[i,(p=s==null?void 0:s.current)==null?void 0:p.container]),c?t.jsx(d.TypesWrapper,{children:t.jsx("div",{style:{width:"100%",overflow:"auto",paddingBottom:15},children:t.jsx("div",{className:"container",children:e})})}):t.jsx(d.TypesWrapper,{children:t.jsx(l.Suspense,{fallback:t.jsx("div",{style:{width:"100%",overflow:"hidden"},children:t.jsx("div",{className:"container",children:e})}),children:t.jsx("div",{className:"container",children:e})})})}function U(){const[e,i]=l.useState(null),[s,c]=l.useState(!1),[p,m]=l.useState(8),o=D(),h=f(),a=l.useRef(null),x=k(),T=116,S=12,j=()=>{var r;if(a!=null&&a.current){const u=(r=a==null?void 0:a.current)==null?void 0:r.clientWidth,I=Math.floor(u/T),B=(u-(I-1)*S)/T;B&&m(B)}};l.useEffect(()=>{j();const r=E(j,500);return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[a==null?void 0:a.current]);const W=s?x:x.slice(0,p),C=s?L:$;return t.jsx(d.Container,{children:t.jsx(d.Center,{maxWidth:1030,children:t.jsxs("div",{ref:a,style:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center"},children:[t.jsx(G,{selectedIdx:e,children:W.map((r,u)=>t.jsx(O,{selected:u===e,handleClick:()=>{i(u),o.push(y("qrForBusinessInternal").replace(":category",r.id))},item:r},`businesstype--${r.id}-${u.toString()}`))}),(x==null?void 0:x.length)>p&&t.jsxs(d.MoreButton,{onClick:()=>c(r=>!r),variant:"text",size:"small",children:[s?h.formatMessage({id:"common.less"}):h.formatMessage({id:"common.more"}),t.jsx(C,{size:14,sx:{marginLeft:"7px"}})]})]})})})}const V=b(e=>({root:{},container:{maxWidth:1030,margin:"auto",width:"calc(100% - 40px)",display:"grid",gridTemplateColumns:"repeat(2, 1fr)",paddingTop:118,paddingBottom:103,gap:21,[e.breakpoints.down(950)]:{display:"flex",flexDirection:"column"},[e.breakpoints.down("sm")]:{display:"grid",gridTemplateColumns:"repeat(1, 1fr)"}}}),"QrForBusiness-Categories"),J=b(e=>({root:{paddingTop:72,paddingBottom:60,background:n.gray.light,[e.breakpoints.down("md")]:{paddingBottom:8}},container:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",maxWidth:1030,margin:"0 auto",textAlign:"center"},title:{fontSize:56,lineHeight:"64px",fontWeight:800,maxWidth:815,padding:"4px 0",[e.breakpoints.down("md")]:{fontSize:28,lineHeight:"38px"}},description:{fontSize:18,lineHeight:"28px",marginTop:20,maxWidth:846,color:n.gray.darkest,[e.breakpoints.down("md")]:{fontSize:18,marginTop:16}}}),"QrForBusiness");function K(){const e=J(),i=f();return t.jsxs("div",{className:e.root,children:[t.jsxs("div",{className:e.container,children:[t.jsx("h1",{className:e.title,children:i.formatMessage({id:"qrForBusiness.title"})}),t.jsx("p",{className:e.description,children:i.formatMessage({id:"qrForBusiness.description"})})]}),t.jsx(U,{})]})}const X=b(e=>({root:{display:"flex",background:"#F8F8F9",[e.breakpoints.down("sm")]:{flexDirection:"column"}},imageWrapper:{width:200,height:190,overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",[e.breakpoints.down("sm")]:{width:"100%"}},image:{height:"auto",width:"100%"},info:{padding:"16px 32px",display:"flex",flexDirection:"column",flex:1,[e.breakpoints.down("sm")]:{alignItems:"center",textAlign:"center"}},iconWrapper:{width:56,height:56,background:n.white,borderRadius:8,display:"flex",alignItems:"center",justifyContent:"center",marginBottom:8,[e.breakpoints.down("sm")]:{width:45,height:45}},icon:{},name:{color:n.black,fontSize:22,fontWeight:700,maxWidth:210,flex:1,display:"flex",alignItems:"center",lineHeight:"26px",[e.breakpoints.down("sm")]:{fontSize:18,textAlign:"center"}},moreInfo:{marginTop:12,color:n.primary.blue,fontSize:14,fontWeight:700,lineHeight:"30px",transition:w.transition(),"&:hover":{color:n.primary.darkBlue}}}),"QrForBusiness-CategoryBox");function Y({id:e,svgIcon:i,name:s,image:c,bgGradient:p}){const m=f(),o=X(),h=v("smDown");return t.jsxs("div",{className:o.root,children:[t.jsx("div",{className:o.imageWrapper,style:{background:p||"none"},children:c&&t.jsx("img",{className:o.image,src:c,alt:""})}),t.jsxs("div",{className:o.info,children:[!h&&t.jsx("div",{className:o.iconWrapper,children:t.jsx("img",{src:`${i}#${s}`,alt:"",width:56,height:56,loading:"lazy",className:o.icon})}),s&&t.jsx("h5",{className:o.name,children:s}),t.jsx(q,{className:o.moreInfo,to:y("qrForBusinessInternal").replace(":category",e),children:m.formatMessage({id:"qrTypes.moreInfo"})})]})]})}function Z(){const e=V(),i=k();return t.jsx("div",{className:e.root,children:t.jsx("div",{className:e.container,children:!!(i!=null&&i.length)&&i.map(s=>t.jsx(Y,{...s},s.id))})})}const ee=l.lazy(()=>H(()=>import("./Bottom-Cde6MeLL.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])));function ie(){const e=f();_();const i=A("BreadcrumbList",{itemListElement:[{"@type":"ListItem",position:1,name:e.formatMessage({id:"qrForBusiness.breadcrumbs.home"}),item:`${window.location.origin}${y("home")}`},{"@type":"ListItem",position:2,name:e.formatMessage({id:"qrForBusiness.breadcrumbs.main"}),item:`${window.location.origin}${y("qrForBusiness")}`}]});return t.jsxs(Q,{withAccountModal:!0,title:e.formatMessage({id:"qrForBusiness.title"}),children:[t.jsx(P,{data:i}),t.jsx(K,{}),t.jsx(Z,{}),t.jsx(l.Suspense,{fallback:null,children:t.jsx(ee,{})})]})}export{ie as default};