PageSourceSearch

https://www.vmmp.org/_next/static/chunks/30dfed78eb0a9853.js

js vmmp.org collected 2026-10-03 18:55:25 UTC 40,387 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,89037,e=>{"use strict";var t=e.i(43476),r=e.i(71645),a=e.i(65653);let s="/order-summary.html";e.s(["default",0,({cartCount:e,className:o="w-7 h-7"})=>{let l=(0,a.default)(e=>e.isAuthenticated),[n,i]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{i(a.default.persist?.hasHydrated?.()??!0);let e=a.default.persist?.onFinishHydration?.(()=>{i(!0)});return()=>{"function"==typeof e&&e()}},[]),(0,t.jsxs)("a",{href:s,onClick:e=>{if(n&&!l){e.preventDefault();let t=encodeURIComponent(s);window.location.href=`/auth/login.html?redirect=${t}`}},"aria-label":"View cart",className:"relative p-2 text-purple-600 hover:text-purple-800 transition-colors duration-200",children:[(0,t.jsx)("svg",{className:o,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M7 4h-2a1 1 0 100 2h1.2l1.6 8.03A2 2 0 009.78 16h6.44a2 2 0 001.98-1.77L19.8 6H7zM10 18a2 2 0 110 4 2 2 0 010-4zm6 0a2 2 0 110 4 2 2 0 010-4z"})}),e>0&&(0,t.jsx)("span",{className:"absolute -top-1 -right-1 bg-red-600 text-white text-xs rounded-full min-w-[1.25rem] h-5 px-1 flex items-center justify-center font-semibold",role:"status","aria-live":"polite","aria-label":`${e} items in cart`,children:e})]})}])},33525,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return a}});let a=e=>{}},98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={assign:function(){return i},searchParamsToUrlQuery:function(){return o},urlQueryToSearchParams:function(){return n}};for(var s in a)Object.defineProperty(r,s,{enumerable:!0,get:a[s]});function o(e){let t={};for(let[r,a]of e.entries()){let e=t[r];void 0===e?t[r]=a:Array.isArray(e)?e.push(a):t[r]=[e,a]}return t}function l(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function n(e){let t=new URLSearchParams;for(let[r,a]of Object.entries(e))if(Array.isArray(a))for(let e of a)t.append(r,l(e));else t.set(r,l(a));return t}function i(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,a]of r.entries())e.append(t,a)}return e}},95057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={formatUrl:function(){return n},formatWithValidation:function(){return c},urlObjectKeys:function(){return i}};for(var s in a)Object.defineProperty(r,s,{enumerable:!0,get:a[s]});let o=e.r(90809)._(e.r(98183)),l=/https?|ftp|gopher|file/;function n(e){let{auth:t,hostname:r}=e,a=e.protocol||"",s=e.pathname||"",n=e.hash||"",i=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),i&&"object"==typeof i&&(i=String(o.urlQueryToSearchParams(i)));let u=e.search||i&&`?${i}`||"";return a&&!a.endsWith(":")&&(a+=":"),e.slashes||(!a||l.test(a))&&!1!==c?(c="//"+(c||""),s&&"/"!==s[0]&&(s="/"+s)):c||(c=""),n&&"#"!==n[0]&&(n="#"+n),u&&"?"!==u[0]&&(u="?"+u),s=s.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${a}${c}${s}${u}${n}`}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return n(e)}},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return s}});let a=e.r(71645);function s(e,t){let r=(0,a.useRef)(null),s=(0,a.useRef)(null);return(0,a.useCallback)(a=>{if(null===a){let e=r.current;e&&(r.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(r.current=o(e,a)),t&&(s.current=o(t,a))},[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18967,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0});var a={DecodeError:function(){return g},MiddlewareNotFoundError:function(){return j},MissingStaticPage:function(){return v},NormalizeError:function(){return b},PageNotFoundError:function(){return y},SP:function(){return f},ST:function(){return x},WEB_VITALS:function(){return o},execOnce:function(){return l},getDisplayName:function(){return d},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return i},isResSent:function(){return p},loadGetInitialProps:function(){return m},normalizeRepeatedSlashes:function(){return h},stringifyError:function(){return N}};for(var s in a)Object.defineProperty(r,s,{enumerable:!0,get:a[s]});let o=["CLS","FCP","FID","INP","LCP","TTFB"];function l(e){let t,r=!1;return(...a)=>(r||(r=!0,t=e(...a)),t)}let n=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=e=>n.test(e);function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function u(){let{href:e}=window.location,t=c();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function p(e){return e.finished||e.headersSent}function h(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function m(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await m(t.Component,t.ctx)}:{};let a=await e.getInitialProps(t);if(r&&p(r))return a;if(!a)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${a}" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return a}let f="undefined"!=typeof performance,x=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class g extends Error{}class b extends Error{}class y extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class v extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class j extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function N(e){return JSON.stringify({message:e.message,stack:e.stack})}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return o}});let a=e.r(18967),s=e.r(52817);function o(e){if(!(0,a.isAbsoluteUrl)(e))return!0;try{let t=(0,a.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,s.hasBasePath)(r.pathname)}catch(e){return!1}}},84508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return a}});let a=e=>{}},22016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={default:function(){return g},useLinkStatus:function(){return y}};for(var s in a)Object.defineProperty(r,s,{enumerable:!0,get:a[s]});let o=e.r(90809),l=e.r(43476),n=o._(e.r(71645)),i=e.r(95057),c=e.r(8372),u=e.r(18581),d=e.r(18967),p=e.r(5550);e.r(33525);let h=e.r(91949),m=e.r(73668),f=e.r(9396);function x(e){return"string"==typeof e?e:(0,i.formatUrl)(e)}function g(t){var r;let a,s,o,[i,g]=(0,n.useOptimistic)(h.IDLE_LINK_STATUS),y=(0,n.useRef)(null),{href:v,as:j,children:N,prefetch:w=null,passHref:k,replace:_,shallow:C,scroll:P,onClick:A,onMouseEnter:L,onTouchStart:S,legacyBehavior:M=!1,onNavigate:$,ref:E,unstable_dynamicOnHover:O,...T}=t;a=N,M&&("string"==typeof a||"number"==typeof a)&&(a=(0,l.jsx)("a",{children:a}));let F=n.default.useContext(c.AppRouterContext),R=!1!==w,I=!1!==w?null===(r=w)||"auto"===r?f.FetchStrategy.PPR:f.FetchStrategy.Full:f.FetchStrategy.PPR,{href:U,as:B}=n.default.useMemo(()=>{let e=x(v);return{href:e,as:j?x(j):e}},[v,j]);if(M){if(a?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>
1` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});s=n.default.Children.only(a)}let z=M?s&&"object"==typeof s&&s.ref:E,D=n.default.useCallback(e=>(null!==F&&(y.current=(0,h.mountLinkInstance)(e,U,F,I,R,g)),()=>{y.current&&((0,h.unmountLinkForCurrentNavigation)(y.current),y.current=null),(0,h.unmountPrefetchableInstance)(e)}),[R,U,F,I,g]),q={ref:(0,u.useMergedRef)(D,z),onClick(t){M||"function"!=typeof A||A(t),M&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(t),!F||t.defaultPrevented||function(t,r,a,s,o,l,i){if("undefined"!=typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){o&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(99781);n.default.startTransition(()=>{d(a||r,o?"replace":"push",l??!0,s.current)})}}(t,U,B,y,_,P,$)},onMouseEnter(e){M||"function"!=typeof L||L(e),M&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(e),F&&R&&(0,h.onNavigationIntent)(e.currentTarget,!0===O)},onTouchStart:function(e){M||"function"!=typeof S||S(e),M&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(e),F&&R&&(0,h.onNavigationIntent)(e.currentTarget,!0===O)}};return(0,d.isAbsoluteUrl)(B)?q.href=B:M&&!k&&("a"!==s.type||"href"in s.props)||(q.href=(0,p.addBasePath)(B)),o=M?n.default.cloneElement(s,q):(0,l.jsx)("a",{...T,...q,children:a}),(0,l.jsx)(b.Provider,{value:i,children:o})}e.r(84508);let b=(0,n.createContext)(h.IDLE_LINK_STATUS),y=()=>(0,n.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},41666,73384,e=>{"use strict";var t=e.i(68834),r=e.i(79473),a=e.i(47395);let s=(0,t.create)((0,r.persist)((e,t)=>({items:[],subtotal:0,total:0,tax:0,deliveryCharge:40,taxRate:0,addToCart:async(e,r=1,s=!1,o=null)=>{if(!o)return{success:!1,error:"Please sign in to add items to cart"};try{let s=await (0,a.addToCart)(e.book_id,r,o);if(s.success)return await t().fetchCartFromAPI(o),{success:!0,data:s.data};return{success:!1,error:s.error||"Failed to add item to cart"}}catch(e){return{success:!1,error:e.message}}},removeFromCart:async(r,s=null,o=null)=>{if(o&&s)try{let e=await (0,a.removeCartItem)(s,o);if(e.success)return await t().fetchCartFromAPI(o),{success:!0};return{success:!1,error:e.error||"Failed to remove item from cart"}}catch(e){return{success:!1,error:e.message}}let{items:l}=t();return e({items:l.filter(e=>e.book_id!==r)}),t().calculateTotal(),{success:!0}},updateQuantity:async(r,s,o=null,l=null)=>{if(s<=0)return await t().removeFromCart(r,o,l);if(l&&o)try{let e=await (0,a.updateCartItem)(o,s,l);if(e.success)return await t().fetchCartFromAPI(l),{success:!0,data:e.data};return{success:!1,error:e.error||"Failed to update cart item"}}catch(e){return{success:!1,error:e.message}}let{items:n}=t();return e({items:n.map(e=>e.book_id===r?{...e,quantity:s}:e)}),t().calculateTotal(),{success:!0}},calculateTotal:()=>{let{items:r}=t(),a=r.reduce((e,t)=>e+t.price*t.quantity,0);e({subtotal:a,total:a,tax:0})},clearCart:async(t=null)=>{if(t)try{let r=await (0,a.clearCart)(t);if(r.success)return e({items:[],total:0,subtotal:0,tax:0}),{success:!0,message:r.message};return{success:!1,error:r.error||"Failed to clear cart"}}catch(e){return{success:!1,error:e.message}}return e({items:[],total:0,subtotal:0,tax:0}),{success:!0}},getCartItemCount:()=>{let{items:e}=t();return e.reduce((e,t)=>e+t.quantity,0)},getCartItem:e=>{let{items:r}=t();return r.find(t=>t.book_id===e)},fetchCartFromAPI:async t=>{try{let r=await (0,a.fetchCart)(t);if(!r.success)return{success:!1,error:r.message||"Failed to fetch cart"};{let{items:t,summary:a}=r.data,s=(t||[]).map(e=>({cart_item_id:e.cart_item_id,book_id:e.book_id,title:e.book?.title||"Unknown Title",subt
1itle:e.book?.subtitle||"",price:parseFloat(e.book?.price||0),image:e.book?.image_url?{url:e.book.image_url,alt_text:e.book.image_alt}:null,author:e.book?.authors&&e.book.authors.length>0?e.book.authors[0].name:"Unknown Author",publisher:e.book?.publisher||"",book_type:e.book?.book_type||"",preorder:e.book?.preorder||!1,quantity:e.quantity,out_of_stock:e.book?.out_of_stock||!1,weight_grams:e.book?.weight_grams||e.weight_grams||null,line_total:e.line_total||e.book?.price*e.quantity})),o=s.reduce((e,t)=>e+t.price*t.quantity,0);return e({items:s,subtotal:a?.subtotal||o,total:a?.subtotal||o}),{success:!0,data:r.data}}}catch(e){return{success:!1,error:e.message}}},syncCartWithAPI:async e=>{let r=await t().fetchCartFromAPI(e);return r.success&&t().calculateTotal(),r},createCheckout:async(e,r,s,o)=>{try{let{items:l}=t(),n={cart_items:l.map(e=>({cart_item_id:e.cart_item_id,quantity:e.quantity})),shipping_address_id:e,billing_address_id:r||e,...s&&{coupon_code:s}},i=await (0,a.createCheckout)(n,o);if(i.success)return{success:!0,data:i.data,order:i.data};return{success:!1,error:i.error||"Checkout failed"}}catch(e){return{success:!1,error:e.message}}},createRazorpayOrder:async(e,t,r)=>{try{let s=await (0,a.createRazorpayOrder)({order_id:e,amount:Math.round(100*t),currency:"INR"},r);if(s.success)return{success:!0,data:s.data};return{success:!1,error:s.error||"Failed to create Razorpay order"}}catch(e){return{success:!1,error:e.message}}},updatePaymentStatus:async(e,t,r,s,o,l,n,i,c=null)=>{try{let u={order_id:e,status:r,message:s};t&&(u.razorpay_payment_id=t),i&&(u.razorpay_signature=i),o&&(u.payment_method=o),null!=l&&(u.amount=l),c&&
1(u.coupon_code=c);let d=await (0,a.updatePaymentStatus)(u,n);if(d.success)return{success:!0,data:d.data};return{success:!1,error:d.error||"Failed to update payment status"}}catch(e){return{success:!1,error:e.message}}},getPaymentStatus:async(e,t)=>{try{let r=await (0,a.getPaymentStatus)(e,t);if(r.success)return{success:!0,data:r.data};return{success:!1,error:r.error||"Failed to get payment status"}}catch(e){return{success:!1,error:e.message}}}}),{name:"vmmp-cart-storage"}));e.s(["default",0,s],41666);var o=e.i(43476);e.i(71645);var l=e.i(35847);let n={primary:"bg-gradient-to-r from-purple-600 to-pink-600 text-white hover:from-purple-700 hover:to-pink-700 shadow-lg hover:shadow-xl",secondary:"border-2 border-purple-300 text-purple-600 hover:bg-purple-50",outline:"border-2 border-white text-white hover:bg-white/10",compact:"bg-purple-700 text-white hover:bg-purple-600 text-sm",nav:"text-gray-600 hover:text-purple-600 font-medium transition-colors duration-200"};function i({children:e="Donate",variant:t="secondary",className:r="",fullWidth:a=!1,onClick:s,...i}){let{openDonateDialog:c}=(0,l.useDonateDialog)(),u="nav"===t?n.nav:`rounded-xl font-semibold transition-all duration-200 ${n[t]||n.secondary}`;return(0,o.jsx)("button",{type:"button",onClick:e=>{s?.(e),c()},className:`${u} ${"nav"===t?"":"compact"===t?"px-4 py-2":"px-6 py-3"} ${a?"w-full":""} ${r}`,...i,children:e})}e.s(["default",()=>i],73384)},33821,e=>{"use strict";var t=e.i(43476),r=e.i(71645),a=e.i(22016),s=e.i(18566),o=e.i(89037),l=e.i(41666),n=e.i(65653),i=e.i(73384);e.s(["default",0,()=>{let e=(0,s.usePathname)(),c=(0,l.default)(e=>(Array.isArray(e.items)?e.items:[]).reduce((e,t)=>e+(t.quantity||0),0)),{syncCartWithAPI:u}=(0,l.default)(),{user:d,isAuthenticated:p,token:h,logout:m}=(0,n.default)(),[f,x]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let t=["/auth/login","/auth/register","/auth/verify-email","/auth/complete-profile"].some(t=>e?.startsWith(t));p&&h&&!t&&u(h)},[p,h,u,e]);let g=()=>{m(),x(!1)},b=t=>"/"===t?e===t:e.startsWith(t),y=e=>b(e)?"text-purple-600 font-medium transition-colors duration-200":"text-gray-600 hover:text-purple-600 font-medium transition-colors duration-200",v=e=>b(e)?"text-purple-600 font-bold py-2 px-2 bg-purple-100 rounded-lg":"text-gray-600 hover:text-purple-600 font-medium transition-colors duration-200 py-2 px-2 hover:bg-purple-50 rounded-lg",j=()=>{if(!d)return"";let e=d.full_name?.split(" ")[0];return e?e.charAt(0).toUpperCase()+e.slice(1):d.email||""};return(0,t.jsx)("header",{className:"bg-white/80 backdrop-blur-sm shadow-sm border-b border-purple-100 sticky top-0 z-50",children:(0,t.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between h-20",children:[(0,t.jsxs)(a.default,{href:"/",className:"flex items-center space-x-3 group",children:[(0,t.jsx)("div",{className:"w-12 h-12 rounded-xl overflow-hidden p-1 bg-white border border-purple-100",children:(0,t.jsx)("img",{src:"/vmmp-logo.png",alt:"VMMP Logo",className:"w-full h-full object-contain"})}),(0,t.jsxs)("div",{className:"text-left hidden sm:block",children:[(0,t.jsx)("h1",{className:"text-xl font-bold bg-gradient-to-r from-purple-600 to-pink-600 bg-clip-text text-transparent group-hover:text-purple-700 transition-colors",children:"Vishwa Madhwa Maha Parishat"}),(0,t.jsx)("p",{className:"text-sm text-gray-600 font-medium",children:"Founded by Sri Satyatma Tirtha Swamiji"})]}),(0,t.jsx)("div",{className:"text-left sm:hidden",children:(0,t.jsx)("h1",{className:"text-sm font-bold bg-gradient-to-r from-purple-600 to-pink-600 bg-clip-text text-transparent group-hover:text-purple-700 transition-colors",children:"Vishwa Madhwa Maha Parishat"})})]}),(0,t.jsxs)("nav",{className:"hidden md:flex items-center space-x-8 h-full",children:[(0,t.jsx)("a",{href:"/catalog.html",className:y("/catalog.html"),children:"Books"}),(0,t.jsx)(a.default,{href:"/about-us.html",className:y("/about-us.html"),children:"About Us"}),(0,t.jsx)(a.default,{href:"/contact-us.html",className:y("/contact-us.html"),children:"Contact"}),(0,t.jsx)(i.default,{variant:"nav",className:y("/donate.html"),children:"Donate"})]}),(0,t.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,t.jsx)(o.default,{cartCount:c}
1),(0,t.jsx)("div",{className:"hidden md:flex items-center space-x-3",children:p?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"text-gray-600 hidden sm:block text-sm",children:["Welcome, ",j()]}),(0,t.jsx)(a.default,{href:"/profile.html",className:"bg-gradient-to-r from-purple-500 to-pink-500 text-white px-3 py-1.5 rounded-xl font-medium text-sm hover:from-purple-600 hover:to-pink-600 transition-all duration-300",children:"Profile"}),(0,t.jsx)("button",{onClick:g,className:"bg-red-500 text-white px-3 py-1.5 rounded-xl font-medium text-sm hover:bg-red-600 transition-all duration-300",children:"Logout"})]}):(0,t.jsx)(a.default,{href:"/auth/login.html",className:"bg-gradient-to-r from-purple-500 to-pink-500 text-white px-4 py-2 rounded-xl font-medium hover:from-purple-600 hover:to-pink-600 transition-all duration-300",children:"Sign In"})}),(0,t.jsx)("button",{onClick:()=>x(!f),className:"md:hidden p-2 rounded-lg text-gray-600 hover:text-purple-600 hover:bg-purple-50 transition-colors duration-200",children:(0,t.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f?(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"}):(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"})})})]})]}),f&&(0,t.jsxs)("div",{className:"md:hidden mt-4 pb-4 border-t border-purple-100",children:[(0,t.jsx)("div",{className:"pt-4 pb-2",children:p?(0,t.jsxs)("div",{className:"flex flex-col space-y-3",children:[(0,t.jsxs)("span",{className:"text-gray-700 font-semibold px-2",children:["Welcome, ",j()]}),(0,t.jsx)(a.default,{href:"/profile.html",className:"text-white bg-purple-500 hover:bg-purple-600 font-medium py-2 px-4 rounded-lg text-center",onClick:()=>x(!1),children:"View Profile"}),(0,t.jsx)("button",{onClick:g,className:"bg-red-500 text-white font-medium py-2 px-4 rounded-lg text-center hover:bg-red-600",children:"Logout"})]}):(0,t.jsx)(a.default,{href:"/auth/login.html",className:"w-full block text-center bg-gradient-to-r from-purple-500 to-pink-500 text-white py-2 rounded-xl font-medium hover:from-purple-600 hover:to-pink-600 transition-all duration-300",onClick:()=>x(!1),children:"Sign In / Register"})}),(0,t.jsxs)("nav",{className:"flex flex-col space-y-2 pt-4 border-t border-purple-100",children:[(0,t.jsx)("a",{href:"/catalog.html",className:v("/catalog.html"),onClick:()=>x(!1),children:"Books"}),(0,t.jsx)(a.default,{href:"/about-us.html",className:v("/about-us.html"),onClick:()=>x(!1),children:"About Us"}),(0,t.jsx)(a.default,{href:"/contact-us.html",className:v("/contact-us.html"),onClick:()=>x(!1),children:"Contact"}),(0,t.jsx)(i.default,{variant:"nav",className:`w-full text-left ${v("/donate.html")}`,onClick:()=>x(!1),children:"Donate"})]})]})]})})}])},47322,e=>{"use strict";var t=e.i(43476),r=e.i(71645),a=e.i(41666),s=e.i(65653);e.s(["default",0,({product:e,compact:o=!1,extraCompact:l=!1})=>{let{addToCart:n}=(0,a.default)(),{token:i,isAuthenticated:c}=(0,s.default)(),[u,d]=(0,r.useState)(!1),[p,h]=(0,r.useState)(""),m=e&&"object"==typeof e?e:{},f=Number(m.stock??0),x=Array.isArray(m.images)?m.images:[],g=Array.isArray(m.authors)?m.authors:[],b=Array.isArray(m.categories)?m.categories:[],y=f<=0,v=x.length>0?x[0]:null,j=g.length>0&&g[0]&&g[0].name||"Unknown Author",N=b.length>0&&b[0]&&b[0].name||"Uncategorized",w=async e=>{e.stopPropagation(),d(!0),h("");try{if(!c){let e=`${window.location.pathname}${window.location.search}`;window.location.href=`/auth/login.html?redirect=${encodeURIComponent(e)}`;return}let e=await n(m,1,!1,i);e.success?(h("✅ Added to cart!"),setTimeout(()=>h(""),2e3)):(h(`❌ ${e.error||"Failed to add to cart"}`),setTimeout(()=>h(""),3e3))}catch(e){h(`❌ Error: ${e.message}`),setTimeout(()=>h(""),3e3)}finally{d(!1)}};return(0,t.jsxs)("div",{className:`${y?"opacity-60 grayscale":""} relative bg-white rounded-2xl shadow-lg hover:shadow-2xl transition-all duration-300 transform hover:-translate-y-2 overflow-hidden group ${o?"max-w-xs":""} cursor-pointer`,onClick:()=>{m.slug&&(window.location.href=`/product/${m.slug}.html`)},children:[(0,t.jsxs)("div",{className:`relative overflow-hidden bg-gradient-to-br from-purple-100 to-pink-100 ${l?"h-64 sm:h-52":o?"h-64 sm:h-56":"h-72 sm:h-80"}`,children:[v?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("img",{src:v.url||v,alt:"","aria-hidden":"true",className:"absolute inset-0 h-full w-full scale-110 object-cover opacity-25 blur-md"}),(0,t.jsx)("img",{src:v.url||v,alt:v.alt_text||m.title||"Book image",className:"relative z-10 h-full w-full object-contain p-2 transition-transform duration-300 group-hover:scale-105"})]}):(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,t.jsx)("svg",{className:`text-purple-400 ${l?"w-8 h-8":o?"w-12 h-12":"w-16 h-16"}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.746 0 3.332.477 4.5 1.253v13C19.832 18.477 18.246 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"})})}),(0,t.jsxs)("div",{className:`absolute z-20 ${l?"top-2 left-2":"top-3 left-3"} flex flex-col gap-1`,children:[m.highlight&&(0,t.jsx)("span",{className:`bg-gradient-to-r from-purple-500 to-pink-500 text-white ${l?"text-xs px-1.5 py-0.5":"text-xs px-2 py-1"} rounded-full font-medium`,children:m.highlight_note||"Featured"}),m.preorder&&(0,t.jsx)("span",{className:`bg-gradient-to-r from-orange-500 to-red-500 text-white ${l?"text-xs px-1.5 py-0.5":"text-xs px-2 py-1"} rounded-full font-medium`,children:"Pre-order"}),f>0&&f<5&&(0,t.jsx)("span",{className:`${l?"text-[10px] px-1.5 py-0.5":"text-xs px-2 py-1"} bg-yellow-100 text-yellow-800 rounded-full font-semibold`,title:`Only ${f} left`,children:"Only a few left"})]}),y&&(0,t.jsx)("div",{className:`absolute z-20 ${l?"top-2 right-2":"top-3 right-3"}`,children:(0,t.jsx)("span",{className:"bg-gray-200 text-gray-800 text-xs px-2 py-1 rounded-full font-semibold",children:"Out of Stock"})})]}
1),(0,t.jsxs)("div",{className:`${l?"p-3":o?"p-4":"p-6"}`,children:[!l&&(0,t.jsx)("p",{className:`text-purple-600 font-medium mb-1 ${o?"text-xs":"text-sm"}`,children:N}),(0,t.jsx)("h3",{className:`font-bold text-purple-800 mb-1 line-clamp-2 group-hover:text-purple-900 transition-colors duration-300 ${l?"text-sm":o?"text-base":"text-lg"}`,children:m.title||"Untitled Book"}),m.subtitle&&!o&&!l&&(0,t.jsx)("p",{className:"text-gray-600 text-sm mb-2 line-clamp-1",children:m.subtitle}),(0,t.jsxs)("p",{className:`text-gray-600 mb-2 ${l||o?"text-xs":"text-sm"}`,children:["by ",j]}),"string"==typeof m.description&&m.description&&!o&&!l&&(0,t.jsx)("div",{className:"text-gray-600 text-sm mb-3 line-clamp-2",dangerouslySetInnerHTML:{__html:m.description}}),!o&&!l&&(0,t.jsxs)("div",{className:"flex items-center justify-between text-xs text-gray-500 mb-3",children:[(0,t.jsx)("span",{children:m.book_type||"-"}),(0,t.jsxs)("span",{children:[m.number_of_pages||"-"," pages"]}),(0,t.jsx)("span",{children:m.language||"-"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("span",{className:`font-bold text-purple-600 ${l?"text-base":o?"text-lg":"text-2xl"}`,children:["₹",m.price??0]}),m.publisher&&!o&&!l&&(0,t.jsxs)("span",{className:"text-xs text-gray-500",children:["Publisher: ",m.publisher]})]}),!l&&(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("button",{onClick:w,disabled:u||y,className:`${o?"px-3 py-1.5 text-sm":"px-4 py-2"} rounded-lg font-medium transition-all duration-300 bg-gradient-to-r from-purple-500 to-pink-500 text-white hover:from-purple-600 hover:to-pink-600 disabled:opacity-50 disabled:cursor-not-allowed`,children:u?"Adding...":y?"Out of Stock":"Add to Cart"}),(0,t.jsx)("button",{onClick:e=>{e.stopPropagation(),window.location.href=`/order-summary.html?book_id=${m.book_id}&quantity=1`},className:`hidden ${o?"px-3 py-1.5 text-sm":"px-4 py-2"} rounded-lg font-medium transition-all duration-300 bg-gradient-to-r from-green-500 to-blue-500 text-white hover:from-green-600 hover:to-blue-600`,children:"Buy Now"})]}),l&&(0,t.jsx)("button",{className:"px-2 py-1 text-xs rounded-lg font-medium transition-all duration-300 transform hover:scale-105 bg-gradient-to-r from-purple-500 to-pink-500 text-white hover:from-purple-600 hover:to-pink-600 disabled:opacity-50",onClick:w,disabled:u||y,children:u?"Adding...":y?"N/A":"Add to cart"})]}),p&&(0,t.jsx)("div",{className:`mt-2 text-xs text-center px-2 py-1 rounded ${p.includes("✅")?"bg-green-100 text-green-700":"bg-red-100 text-red-700"}`,children:p})]}),(0,t.jsx)("div",{className:"absolute bottom-0 left-0 w-16 h-16 bg-gradient-to-tr from-purple-200 to-pink-200 rounded-tr-3xl opacity-20"})]})}])},5394,e=>{"use strict";var t=e.i(68834);let r={page:1,limit:12,search:"",category_id:"",author_id:"",min_price:"",max_price:"",promoted:"",highlight:"",sort_by:"published_date",sort_order:"desc"},a={created_at:"published_date",published_date:"published_date",title:"title",price:"price"},s=(0,t.create)((t,s)=>({products:[],productsLoading:!1,productsError:null,pagination:null,_productsRequestId:0,categories:[],authors:[],filtersLoading:!1,filtersError:null,filters:{...r},fetchProducts:async(r={})=>{let o={...s().filters,...r},l=s()._productsRequestId+1;t({productsLoading:!0,productsError:null,filters:o,_productsRequestId:l});try{var n,i,c;let r,u,d,{fetchProducts:p}=await e.A(30936),h=await p((r={...o,page:1,limit:500},delete r.sort_by,delete r.sort_order,Object.fromEntries(Object.entries(r).filter(([,e])=>""!==e&&null!=e))));if(s()._productsRequestId!==l)return;let m=(n=h.data||[],i=o.sort_by,c=o.sort_order,u=a[i]||i||"published_date",d="asc"===c?1:-1,[...n].sort((e,t)=>{let r,a;return"price"===u?((r=Number.parseFloat(e?.price)||0)-(a=Number.parseFloat(t?.price)||0))*d:"published_date"===u?((r=Date.parse(e?.published_date||"")||0)-(a=Date.parse(t?.published_date||"")||0))*d:(r=String(e?.[u]||"").toLowerCase(),a=String(t?.[u]||"").toLowerCase(),r.localeCompare(a,void 0,{sensitivity:"base"})*d)})),f=Number(o.page)||1,x=Number(o.limit)||12,g=m.length,b=Math.max(1,Math.ceil(g/x)),y=Math.min(Math.max(f,1),b),v=(y-1)*x,j=m.slice(v,v+x);t({products:j,pagination:{page:y,limit:x,total:g,pages:b},productsLoading:!1,filters:y===f?o:{...o,page:y}})}catch(e){if(s()._productsRequestId!==l)return;t({productsError:e.message,productsLoading:!1})}},fetchFilters:async()=>{t({filtersLoading:!0,filtersError:null});try{let{fetchCategories:r,fetchAuthors:a}=await e.A(30936),[s,o]=await Promise.all([r(),a({limit:50})]);t({categories:s.data||[],authors:o.data||[],filtersLoading:!1})}catch(e){t({filtersError:e.message,filtersLoading:!1})}},updateFilters:e=>{let r={...s().filters,...e,page:void 0!==e.page?e.page:1};t({filters:r}),s().fetchProducts(r)},clearFilters:()=>{let e={...r};t({filters:e}),s().fetchProducts(e)},loadMore:()=>{let{filters:e,pagination:t}=s();if(t&&e.page<t.pages){let t=e.page+1;s().fetchProducts({...e,page:t})}},clearError:()=>t({productsError:null,filtersError:null})}));e.s(["default",0,s])},76706,e=>{"use strict";var t=e.i(43476),r=e.i(71645),a=e.i(18566);e.i(22016);
1var s=e.i(47322),o=e.i(33821),l=e.i(5394),n=e.i(41666),i=e.i(65653);function c(){let e=(0,a.useSearchParams)(),{products:c,productsLoading:u,productsError:d,pagination:p,categories:h,authors:m,filters:f,fetchProducts:x,fetchFilters:g,updateFilters:b,clearFilters:y,loadMore:v,clearError:j}=(0,l.default)();(0,n.default)();let{user:N,isAuthenticated:w}=(0,i.default)(),[k,_]=(0,r.useState)(!1),[C,P]=(0,r.useState)(!1),A=Array.isArray(c)?c:[],L=Array.isArray(h)?h:[],S=Array.isArray(m)?m:[];(0,r.useEffect)(()=>{g()},[g]),(0,r.useEffect)(()=>{if(C)return;let t=e.get("category_id");t?b({category_id:t}):x(),P(!0)},[e,C,b,x]);let M=(e,t)=>{b({[e]:t})};return(0,t.jsxs)("div",{className:"min-h-screen bg-gradient-to-br from-purple-50 via-pink-50 to-purple-50",children:[(0,t.jsx)(o.default,{}),(0,t.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4",children:(0,t.jsxs)("div",{className:"flex flex-col lg:flex-row gap-8",children:[(0,t.jsxs)("div",{className:"lg:w-80 flex-shrink-0",children:[(0,t.jsx)("div",{className:"mb-3",children:(0,t.jsx)("div",{className:"bg-white rounded-xl shadow-md p-3",children:(0,t.jsx)("form",{onSubmit:e=>{e.preventDefault(),x()},children:(0,t.jsxs)("div",{className:"flex",children:[(0,t.jsxs)("div",{className:"flex-1 relative",children:[(0,t.jsx)("input",{type:"text",value:f.search,onChange:e=>M("search",e.target.value),placeholder:"Search books...",className:"w-full px-3 py-2 pr-8 border border-gray-300 rounded-l-lg focus:ring-2 focus:ring-purple-500 focus:border-transparent"}),f.search&&(0,t.jsx)("button",{type:"button",onClick:()=>M("search",""),className:"absolute right-2 top-1/2 transform -translate-y-1/2 text-gray-400 hover:text-gray-600",children:(0,t.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),(0,t.jsx)("button",{type:"submit",className:"px-4 py-2 bg-purple-500 text-white rounded-r-lg hover:bg-purple-600 transition-colors duration-200",children:(0,t.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})})]})})})}),(0,t.jsx)("div",{className:"lg:hidden mb-4",children:(0,t.jsxs)("button",{onClick:()=>{_(!k)},className:"w-full flex items-center justify-center px-4 py-3 bg-white border border-purple-200 rounded-xl shadow-md text-purple-700 font-semibold hover:bg-purple-50 transition-colors",children:[(0,t.jsx)("svg",{className:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:k?"M6 18L18 6M6 6l12 12":"M3 4a1 1 0 011-1h16a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 16a1 1 0 011-1h8a1 1 0 110 2H4a1 1 0 01-1-1z"})}),k?"Hide Filters":"Show Filters"]})}),(0,t.jsxs)("div",{className:`bg-white rounded-2xl shadow-lg p-6 lg:sticky lg:top-8 ${k?"block":"hidden"} lg:block`,children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,t.jsx)("h2",{className:"text-xl font-bold text-purple-800",children:"Filters"}),(0,t.jsx)("button",{onClick:y,className:"text-purple-600 hover:text-purple-800 text-sm font-medium",children:"Clear All"})]}),(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Category"}),(0,t.jsxs)("select",{value:f.category_id,onChange:e=>M("category_id",e.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-transparent",children:[(0,t.jsx)("option",{value:"",children:"All Categories"}),L.map(e=>(0,t.jsx)("option",{value:e.category_id,children:e.name},e.category_id))]})]}),(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Author"}),(0,t.jsxs)("select",{value:f.author_id,onChange:e=>M("author_id",e.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-transparent",children:[(0,t.jsx)("option",{value:"",children:"All Authors"}),S.map(e=>(0,t.jsx)("option",{value:e.author_id,children:e.name},e.author_id))]})]}),(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Price Range"}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,t.jsx)("input",{type:"number",placeholder:"Min",value:f.min_price,onChange:e=>M("min_price",e.target.value),className:"px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-transparent"}),(0,t.jsx)("input",{type:"number",placeholder:"Max",value:f.max_price,onChange:e=>M("max_price",e.target.value),className:"px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-transparent"})]})]}),(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Special"}),(0,t.jsx)("div",{className:"space-y-2",children:(0,t.jsxs)("label",{className:"flex items-center",children:[(0,t.jsx)("input",{type:"checkbox",checked:"true"===f.highlight,onChange:e=>M("highlight",e.target.checked?"true":""),className:"rounded border-gray-300 text-purple-600 focus:ring-purple-500"}),(0,t.jsx)("span",{className:"ml-2 text-sm text-gray-700",children:"Featured Books"})]})})]}),(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Sort By"}),(0,t.jsxs)("select",{value:`${f.sort_by}-${f.sort_order}`,onChange:e=>{let[t,r]=e.target.value.split("-");b({sort_by:t,sort_order:r})},className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-transparent",children:[(0,t.jsx)("option",{value:"published_date-desc",children:"Newest First"}),(0,t.jsx)("option",{value:"published_date-asc",children:"Oldest First"}),(0,t.jsx)("option",{value:"title-asc",children:"Title A-Z"}),(0,t.jsx)("option",{value:"title-desc",children:"Title Z-A"}),(0,t.jsx)("option",{value:"price-asc",children:"Price Low to High"}),(0,t.jsx)("option",{value:"price-desc",children:"Price High to Low"})]})]})]})]}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("div",{className:"flex items-center justify-between mb-6",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-3xl font-bold text-purple-800",children:"Book Catalog"}),p&&(0,t.jsxs)("p",{className:"text-purple-600 mt-1",children:["Showing ",(p.page-1)*p.limit+1,"-",Math.min(p.page*p.limit,p.total)," of ",p.total," books"]})]})}),u&&(0,t.jsxs)("div",{className:"text-center py-12",children:[(0,t.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-purple-600 mx-auto"}),(0,t.jsx)("p",{className:"mt-4 text-purple-600 font-medium",children:"Loading books..."})]}),d&&(0,t.jsxs)("div",{className:"text-center py-12",children:[(0,t.jsxs)("p",{className:"text-red-600 font-medium",children:["Error loading books: ",d]}),(0,t.jsx)("button",{onClick:()=>{j(),x()},className:"mt-4 px-4 py-2 bg-purple-500 text-white rounded-lg hover:bg-purple-600 transition-colors duration-200",children:"Try Again"})]}),!u&&!d&&0===A.length&&(0,t.jsxs)("div",{className:"text-center py-12",children:[(0,t.jsx)("svg",{className:"w-16 h-16 text-purple-400 mx-auto mb-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.746 0 3.332.477 4.5 1.253v13C19.832 18.477 18.246 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"})}),(0,t.jsx)("h3",{className:"text-xl font-bold text-purple-800 mb-2",children:"No books found"}),(0,t.jsx)("p",{className:"text-purple-600 mb-4",children:"Try adjusting your filters or search terms"}),(0,t.jsx)("button",{onClick:y,className:"px-6 py-2 bg-purple-500 text-white rounded-lg hover:bg-purple-600 transition-colors duration-200",children:"Clear Filters"})]}),!u&&!d&&A.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4 mb-8",children:A.map(e=>(0,t.jsx)(s.default,{product:e,extraCompact:!0},e.book_id))}),p&&(0,t.jsxs)("div",{className:"flex items-center justify-center gap-4",children:[(0,t.jsx)("button",{onClick:()=>{let e=Number(f.page)||1;e>1&&(x({...f,page:e-1}),window.scrollTo({top:0,behavior:"smooth"}))},disabled:1>=Number(f.page||1),"aria-label":"Previous page",title:"Previous",className:`p-3 rounded-full transition-all duration-200 flex items-center justify-center ${1>=Number(f.page||1)?"bg-gray-200 text-gray-500 cursor-not-allowed":"bg-white border border-purple-300 text-purple-700 hover:bg-purple-50"}`,children:(0,t.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})})}),(0,t.jsxs)("div",{className:"text-sm text-gray-600",children:["Page ",f.page," of ",p.pages]}),Number(f.page||1)<p.pages?(0,t.jsx)("button",{onClick:()=>{v(),window.scrollTo({top:0,behavior:"smooth"})},"aria-label":"Next page",title:"Next",className:"p-3 rounded-full bg-gradient-to-r from-purple-500 to-pink-500 text-white hover:from-purple-600 hover:to-pink-600 transition-transform duration-200 transform hover:scale-105 flex items-center justify-center",children:(0,t.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})}):(0,t.jsx)("div",{})]})]})]})]})})]})}function u(){return(0,t.jsx)(r.Suspense,{fallback:(0,t.jsx)("div",{className:"min-h-screen bg-gradient-to-br from-purple-50 via-pink-50 to-purple-50 flex items-center justify-center",children:(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-purple-600 mx-auto mb-4"}),(0,t.jsx)("p",{className:"text-purple-600 font-medium",children:"Loading c
1atalog..."})]})}),children:(0,t.jsx)(c,{})})}e.s(["default",()=>u])},30936,e=>{e.v(e=>Promise.resolve().then(()=>e(47395)))}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.