{"version":3,"file":"Skeleton_Components.Dhl9G9Bo.mjs","names":[],"sources":["https:/framerusercontent.com/modules/c528ilI8iCkwBznpD2Yy/WEI1m0UjaHNsO6hJAo3A/Skeleton_Components.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";// ============================================================================\n// SKELETON COMPONENTS - Reusable Loading States\n// ============================================================================\n/**\n * Base skeleton with shimmer animation\n * Use this as the foundation for all skeleton components\n */export function SkeletonBase({width=\"100%\",height=\"16px\",borderRadius=\"12px\",style={}}){return /*#__PURE__*/_jsxs(\"div\",{style:{width,height,borderRadius,backgroundColor:\"#F5F5F5\",position:\"relative\",overflow:\"hidden\",...style},children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,left:\"-100%\",width:\"100%\",height:\"100%\",background:\"linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent)\",animation:\"shimmer 1.5s infinite\"}}),/*#__PURE__*/_jsx(\"style\",{children:`\n                @keyframes shimmer {\n                    0% {\n                        left: -100%;\n                    }\n                    100% {\n                        left: 100%;\n                    }\n                }\n            `})]});}/**\n * Skeleton for text elements\n * Use for loading revenue numbers, names, dates, etc.\n */export function SkeletonText({width=\"100%\",fontSize=\"16px\"}){// Calculate height based on font size (1.2x for better visibility)\nconst height=`${parseFloat(fontSize)*1}px`;return /*#__PURE__*/_jsx(SkeletonBase,{width:width,height:height,borderRadius:\"12px\"});}/**\n * Skeleton for stat cards (revenue, bills count, etc.)\n * Use for dashboard metric cards\n */export function SkeletonStatCard(){return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",display:\"flex\",flexDirection:\"column\",gap:\"8px\"},children:[/*#__PURE__*/_jsx(SkeletonText,{width:\"60%\",fontSize:\"14px\"}),/*#__PURE__*/_jsx(SkeletonText,{width:\"80%\",fontSize:\"18px\"})]});}/**\n * Skeleton for list items (bills, orders, etc.)\n * Use for pending bills list, recent orders, etc.\n */export function SkeletonListItem(){return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",padding:\"14px 14px\",borderBottom:\"1px solid #e5e5e5\",gap:\"16px\"},children:[/*#__PURE__*/_jsx(SkeletonText,{width:\"150px\",fontSize:\"16px\"}),/*#__PURE__*/_jsx(SkeletonText,{width:\"80px\",fontSize:\"16px\"}),/*#__PURE__*/_jsx(SkeletonText,{width:\"100px\",fontSize:\"16px\"})]});}/**\n * Skeleton for payout cards\n * Use for processed payouts carousel\n */export function SkeletonPayoutCard(){return /*#__PURE__*/_jsxs(\"div\",{style:{minWidth:\"320px\",maxWidth:\"320px\",height:\"100%\",backgroundColor:\"#fff\",border:\"1px solid #e5e5e5\",borderRadius:\"12px\",display:\"flex\",flexDirection:\"column\",overflow:\"hidden\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{flex:1,padding:\"24px\",display:\"flex\",flexDirection:\"column\",gap:\"12px\"},children:[/*#__PURE__*/_jsx(SkeletonListItem,{}),/*#__PURE__*/_jsx(SkeletonListItem,{}),/*#__PURE__*/_jsx(SkeletonListItem,{})]}),/*#__PURE__*/_jsxs(\"div\",{style:{padding:\"16px\",borderTop:\"1px solid #e5e5e5\",backgroundColor:\"#f9f9f9\",display:\"flex\",flexDirection:\"column\",gap:\"8px\"},children:[/*#__PURE__*/_jsx(SkeletonText,{width:\"120px\",fontSize:\"16px\"}),/*#__PURE__*/_jsx(SkeletonText,{width:\"100px\",fontSize:\"16px\"}),/*#__PURE__*/_jsx(SkeletonText,{width:\"140px\",fontSize:\"18px\"})]})]});}/**\n * Skeleton for multiple payout cards (horizontal scroll)\n */export function SkeletonPayoutCarousel({count=3}){return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",gap:\"16px\",padding:\"14px\"},children:Array.from({length:count}).map((_,i)=>/*#__PURE__*/_jsx(SkeletonPayoutCard,{},i))});}/**\n * Skeleton for greeting text\n */export function SkeletonGreeting(){return /*#__PURE__*/_jsx(SkeletonText,{width:\"150px\",fontSize:\"16px\"});}/**\n * Skeleton for restaurant name\n */export function SkeletonRestaurantName(){return /*#__PURE__*/_jsx(SkeletonText,{width:\"200px\",fontSize:\"24px\"});}\nexport const __FramerMetadata__ = {\"exports\":{\"SkeletonPayoutCarousel\":{\"type\":\"reactComponent\",\"name\":\"SkeletonPayoutCarousel\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"SkeletonRestaurantName\":{\"type\":\"reactComponent\",\"name\":\"SkeletonRestaurantName\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"SkeletonPayoutCard\":{\"type\":\"reactComponent\",\"name\":\"SkeletonPayoutCard\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"SkeletonStatCard\":{\"type\":\"reactComponent\",\"name\":\"SkeletonStatCard\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"SkeletonGreeting\":{\"type\":\"reactComponent\",\"name\":\"SkeletonGreeting\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"SkeletonBase\":{\"type\":\"reactComponent\",\"name\":\"SkeletonBase\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"SkeletonListItem\":{\"type\":\"reactComponent\",\"name\":\"SkeletonListItem\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"SkeletonText\":{\"type\":\"reactComponent\",\"name\":\"SkeletonText\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Skeleton_Components.map"],"mappings":"2GAMG,SAAgB,EAAa,CAAC,QAAM,OAAO,SAAO,OAAO,eAAa,OAAO,QAAM,EAAE,EAAE,CAAC,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,QAAM,SAAO,eAAa,gBAAgB,UAAU,SAAS,WAAW,SAAS,SAAS,GAAG,EAAM,CAAC,SAAS,CAAc,EAAK,MAAM,CAAC,MA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