module.exports=[234157,a=>{"use strict";let b=(0,a.i(170106).default)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);a.s(["default",0,b])},533441,a=>{"use strict";var b=a.i(234157);a.s(["Check",()=>b.default])},186647,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(238246),e=a.i(533441);async function f(){try{let a=await fetch("https://asfexp.rsdcglobal.com/api/public/plans",{method:"GET",headers:{"Content-Type":"application/json"}}),b=await a.json();if(!a.ok)return{success:!1,error:b.error||"Failed to fetch plans"};return b}catch(a){return console.error("[PublicAPI] Error fetching plans:",a),{success:!1,error:"Network error. Please try again."}}}var g=a.i(700006);a.s(["default",0,function(){let[a,h]=(0,c.useState)([]),[i,j]=(0,c.useState)(!0);(0,c.useEffect)(()=>{k()},[]);let k=async()=>{try{let a=await f();a.success&&a.data&&h(a.data)}catch(a){console.error("Failed to load plans:",a)}finally{j(!1)}};return i?(0,b.jsx)("div",{className:"min-h-screen bg-gradient-to-br from-blue-50 to-indigo-100 flex items-center justify-center",children:(0,b.jsx)("div",{className:"text-lg",children:"Loading pricing..."})}):(0,b.jsxs)("div",{className:"min-h-screen bg-gradient-to-br from-blue-50 to-indigo-100",children:[(0,b.jsx)("div",{className:"container mx-auto px-4 py-8",children:(0,b.jsxs)("div",{className:"flex justify-between items-center",children:[(0,b.jsx)("h1",{className:"text-2xl font-bold text-gray-900",children:"IMS - Inventory Management System"}),(0,b.jsx)(d.default,{href:"/login",className:"px-4 py-2 text-sm font-medium text-indigo-600 hover:text-indigo-700",children:"Sign In"})]})}),(0,b.jsxs)("div",{className:"container mx-auto px-4 py-12 text-center",children:[(0,b.jsx)("h2",{className:"text-4xl md:text-5xl font-bold text-gray-900 mb-4",children:"Choose Your Plan"}),(0,b.jsx)("p",{className:"text-xl text-gray-600 mb-12 max-w-2xl mx-auto",children:"Start with a free plan and scale as you grow. All plans include core inventory management features."}),(0,b.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 max-w-7xl mx-auto",children:a.map((a,c)=>{let f="PRO"===a.code,h="ULTIMATE"===a.code;return(0,b.jsxs)("div",{className:`relative bg-white rounded-2xl shadow-lg p-8 ${f?"ring-2 ring-indigo-600 transform scale-105":""} ${h?"bg-gradient-to-br from-indigo-900 to-purple-900 text-white":""}`,children:[f&&(0,b.jsx)("div",{className:"absolute top-0 left-1/2 transform -translate-x-1/2 -translate-y-1/2",children:(0,b.jsx)("span",{className:"bg-indigo-600 text-white px-4 py-1 rounded-full text-sm font-semibold",children:"Recommended"})}),(0,b.jsxs)("div",{className:"mb-8",children:[(0,b.jsx)("h3",{className:`text-2xl font-bold mb-2 ${h?"text-white":"text-gray-900"}`,children:a.name}),(0,b.jsx)("p",{className:`text-sm ${h?"text-indigo-200":"text-gray-600"}`,children:a.description})]}),(0,b.jsx)("div",{className:"mb-8",children:(0,b.jsxs)("div",{className:"flex items-baseline justify-center",children:[(0,b.jsx)("span",{className:`text-sm ${h?"text-indigo-300":"text-gray-600"}`,children:g.config.locale.currencySymbol}),(0,b.jsx)("span",{className:`text-5xl font-bold ${h?"text-white":"text-gray-900"}`,children:a.price.toLocaleString()}),(0,b.jsx)("span",{className:`text-sm ml-1 ${h?"text-indigo-300":"text-gray-600"}`,children:"/month"})]})}),(0,b.jsx)(d.default,{href:`/signup?plan=${a.code}`,className:`block w-full py-3 px-4 rounded-lg font-semibold text-center transition-colors ${h?"bg-white text-indigo-900 hover:bg-indigo-50":f?"bg-indigo-600 text-white hover:bg-indigo-700":"bg-indigo-100 text-indigo-700 hover:bg-indigo-200"}`,children:"Get Started"}),(0,b.jsx)("ul",{className:"mt-8 space-y-4",children:a.features.map(a=>{if(!a.enabled&&null===a.limit)return null;let c=/(_limit|Limit)$/.test(a.key)?0===a.limit:!1===a.enabled,d=null!==a.limit?0===a.limit?a.enabled:a.limit:a.enabled,f=null===a.limit&&a.enabled?"Unlimited":c?"Not included":"number"==typeof d?d:d?"Included":"Not included";return(0,b.jsxs)("li",{className:"flex items-start",children:[(0,b.jsx)(e.Check,{className:`w-5 h-5 mt-0.5 mr-3 flex-shrink-0 ${h?"text-indigo-300":"text-indigo-600"}`}),(0,b.jsxs)("div",{className:"flex-1",children:[(0,b.jsx)("span",{className:`text-sm ${h?"text-white":"text-gray-700"}`,children:a.name}),(a.key.includes("limit")||null!==a.limit)&&(0,b.jsx)("span",{className:`ml-2 text-xs font-semibold ${h?"text-indigo-300":"text-indigo-600"}`,children:f})]})]},a.key)})})]},a.id)})}),(0,b.jsx)("div",{className:"mt-16 text-center",children:(0,b.jsxs)("p",{className:"text-gray-600 text-sm",children:["Need a custom plan?"," ",(0,b.jsx)("a",{href:"mailto:support@example.com",className:"text-indigo-600 hover:text-indigo-700 font-semibold",children:"Contact us"})]})})]})]})}],186647)}];

//# sourceMappingURL=_065eqaq._.js.map