import{r as u,R as v,U as w,j as e,V as C}from"./entry.client-CV0PzNS2.js";import{Reviews as R}from"./Reviews-B_P3-ou-.js";import"./Avatar-Cy6PhH03.js";import"./Select-CiUaCRv7.js";import"./isNil-DJ_omAdg.js";import"./trim-BKnRwbL4.js";import"./useFlexiblePrefillValues-CdKhmvNK.js";import"./useFlexibleOptions-BzusANQ_.js";import"./parseQueryParams-Bd6KFXLi.js";import"./NoElementsFound-BYYh6uWM.js";import"./useQuery-_I6Fb0gn.js";import"./Paginator-CdCtQQNK.js";const k=({routables:o,fetch_url:t,per_page:s,paginated:i,page:m,total_items:n,total_pages:r,pagination_url:c,infinite_scroll:l,routable_type:a,routable:d})=>{const x=u.useMemo(()=>({items:o,total_pages:r,total_items:n,per_page:s,page:m}),[m,s,o,n,r]),{render:f}=v(),{components:p}=w(),j=u.useMemo(()=>({...p,"custom-":()=>e.jsx("div",{className:"flex flex-col justify-center items-cente w-full",children:e.jsx("div",{className:"w-full max-w-container py-8 px-4 sm:px-8 xl:py-16",children:e.jsx(R,{paginated:i,name:"x_list_reviews",fetchUrl:t,perPage:s,reviews:x,enableFetch:!1,paginationUrl:c,infiniteScroll:l})})})}),[p,t,l,i,c,s,x]);return e.jsx("div",{className:"w-full",children:e.jsx(C,{initialComponents:j,children:f(a,d)})})};export{k as ReviewIndexRoute};