{"version":3,"file":"shared-lib.DAzt3abs.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/4JZeE9Tgncl4bFeAZ0Zc/h4iONcUlXWOeRac9xfrT/Breadcrumbs.js","https:/framerusercontent.com/modules/5TpIOLawiphgxkNMk4hT/viFouVE3zVOBX6XSQS8v/siteMetadata.js"],"sourcesContent":["// Automatic Breadcrumbs component that derives page path and displays it\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{useMemo}from\"react\";/**\n * Automatic Breadcrumbs\n * Component renders breadcrumbs based on window.location.pathname\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function Breadcrumbs(props){const{separator,textColor,font,activeColor,background,radius,widthBehavior=\"fit\",wrap=false,style={},iconColor,activeBackground,itemBackground,separatorColor,separatorStroke,separatorBg,separatorSize,separatorWeight,itemFont,activeFont}=props;// Derive path only on client\nlet pathArray=useMemo(()=>{if(typeof window===\"undefined\")return[];const raw=window.location.pathname;if(!raw||raw===\"/\")return[\"home\"]// Always show home\n;return[\"home\",...raw.split(\"/\").filter(Boolean)];},[]);// Convert segments for title\nfunction format(seg,idx,arr){if(seg.toLowerCase()===\"home\")return\"Home\";if(idx===arr.length-1){const label=decodeURIComponent(seg.replaceAll(\"-\",\" \"));return label.length>35?label.slice(0,32)+\"…\":label;}return seg.replaceAll(\"-\",\" \").replace(/\\b\\w/g,l=>l.toUpperCase());}if(RenderTarget.current()===RenderTarget.thumbnail)return null;if(!pathArray.length)return null;return /*#__PURE__*/_jsx(\"nav\",{\"aria-label\":\"Breadcrumbs\",style:{display:\"inline-flex\",alignItems:\"center\",gap:8,padding:8,background,borderRadius:radius,...style,width:widthBehavior===\"fit\"?undefined:widthBehavior===\"fill\"?\"100%\":widthBehavior===\"fixed\"?style&&typeof style.width!==\"undefined\"?style.width:320:undefined,flexWrap:wrap?\"wrap\":\"nowrap\",minWidth:widthBehavior===\"fit\"?0:undefined,maxWidth:widthBehavior===\"fit\"?undefined:\"100%\"},children:pathArray.map((seg,i,arr)=>{const isLast=i===arr.length-1;// Calculate the path up to this segment\nconst crumbPath=i===0?\"/\":\"/\"+arr.slice(1,i+1).join(\"/\");return /*#__PURE__*/_jsxs(\"span\",{style:{display:\"inline-flex\",alignItems:\"center\",gap:6},children:[isLast?/*#__PURE__*/_jsx(\"span\",{style:{...activeFont||font,color:activeColor,opacity:1,cursor:\"default\",textDecoration:\"none\",userSelect:\"none\",whiteSpace:\"nowrap\",background:activeBackground,borderRadius:8,padding:\"6px 16px 6px 12px\",display:\"inline-flex\",alignItems:\"center\",maxWidth:210,overflow:\"hidden\",textOverflow:\"ellipsis\"},children:i===0?/*#__PURE__*/_jsxs(\"span\",{style:{display:\"inline-flex\",alignItems:\"center\",gap:6},children:[/*#__PURE__*/_jsxs(\"svg\",{viewBox:\"0 0 16 16\",width:16,height:16,style:{marginRight:6,flexShrink:0,display:props.showIcon===false?\"none\":undefined},fill:\"none\",\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M2 7.5L8 3L14 7.5V13C14 13.5523 13.5523 14 13 14H3C2.44772 14 2 13.5523 2 13V7.5Z\",fill:iconColor}),/*#__PURE__*/_jsx(\"rect\",{x:\"6\",y:\"9\",width:\"4\",height:\"5\",rx:\"0.6\",fill:\"#fff\",fillOpacity:\"0.22\"})]}),format(seg,i,arr)]}):format(seg,i,arr)}):/*#__PURE__*/_jsx(\"a\",{href:crumbPath,style:{...itemFont||font,color:textColor,opacity:1,cursor:\"pointer\",textDecoration:\"none\",userSelect:\"none\",whiteSpace:\"nowrap\",background:itemBackground,borderRadius:8,padding:\"6px 16px 6px 12px\",display:\"inline-flex\",alignItems:\"center\",WebkitUserDrag:\"none\",userDrag:\"none\"},draggable:false,tabIndex:0,\"aria-label\":format(seg,i,arr),children:i===0?/*#__PURE__*/_jsxs(\"span\",{style:{display:\"inline-flex\",alignItems:\"center\",gap:6},children:[/*#__PURE__*/_jsxs(\"svg\",{viewBox:\"0 0 16 16\",width:16,height:16,style:{marginRight:6,flexShrink:0,display:props.showIcon===false?\"none\":undefined},fill:\"none\",\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M2 7.5L8 3L14 7.5V13C14 13.5523 13.5523 14 13 14H3C2.44772 14 2 13.5523 2 13V7.5Z\",fill:iconColor}),/*#__PURE__*/_jsx(\"rect\",{x:\"6\",y:\"9\",width:\"4\",height:\"5\",rx:\"0.6\",fill:\"#fff\",fillOpacity:\"0.22\"})]}),format(seg,i,arr)]}):format(seg,i,arr)}),!isLast&&/*#__PURE__*/_jsx(\"span\",{style:{margin:\"0 2px\",color:separatorColor,fontWeight:600,background:separatorBg,borderRadius:2,padding:\"0 2px\",display:\"flex\",alignItems:\"center\"},children:props.showChevron!==false?/*#__PURE__*/_jsx(\"svg\",{width:separatorSize,height:separatorSize,viewBox:`0 0 16 16`,style:{verticalAlign:\"middle\",display:\"inline-block\"},fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M6 3l5 5-5 5\",stroke:separatorStroke,strokeWidth:separatorWeight,strokeLinejoin:\"round\"})}):/*#__PURE__*/_jsx(\"svg\",{width:separatorSize,height:separatorSize,viewBox:`0 0 ${separatorSize} ${separatorSize}`,style:{verticalAlign:\"middle\",display:\"inline-block\"},fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M2 2l10 10\",stroke:separatorStroke,strokeWidth:separatorWeight,strokeLinejoin:\"round\"})})})]},\"breadcrumb-\"+i);})});}addPropertyControls(Breadcrumbs,{separator:{type:ControlType.String,title:\"Separator\",description:\"Symbol or character separating path elements.\",defaultValue:\"/\"},textColor:{type:ControlType.Color,title:\"Text\",description:\"Text color for inactive breadcrumb elements.\",defaultValue:\"#444444\"},activeColor:{type:ControlType.Color,title:\"Active\",description:\"Text color for the active breadcrumb element (current page).\",defaultValue:\"#111111\"},background:{type:ControlType.Color,title:\"Bg\",description:\"Background color of the breadcrumbs container.\",defaultValue:\"#FFFFFF\"},radius:{type:ControlType.Number,title:\"Radius\",description:\"Border radius for the breadcrumbs container.\",defaultValue:8,min:0,max:32},font:{type:ControlType.Font,title:\"Font\",description:\"Font applied to breadcrumb text.\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"}},itemFont:{type:ControlType.Font,title:\"Item Font\",description:\"Font for inactive breadcrumb items.\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"}},activeFont:{type:ControlType.Font,title:\"Active Font\",description:\"Font for the active breadcrumb (current page).\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"}},iconColor:{type:ControlType.Color,title:\"Icon Color\",description:\"Color for the breadcrumb icon.\",defaultValue:\"#b8c8dc\"},itemBackground:{type:ControlType.Color,title:\"Item Bg\",description:\"Background for inactive breadcrumb items.\",defaultValue:\"#dde8f3\"},activeBackground:{type:ControlType.Color,title:\"Active Bg\",description:\"Background for active/current breadcrumb.\",defaultValue:\"#dde8f3\"},separatorColor:{type:ControlType.Color,title:\"Separator Color\",description:\"Color for the separator text/symbol.\",defaultValue:\"#b8c8dc\"},separatorStroke:{type:ControlType.Color,title:\"Separator Stroke\",description:\"Stroke color for the separator arrow.\",defaultValue:\"#b8c8dc\"},separatorBg:{type:ControlType.Color,title:\"Separator Bg\",description:\"Background color for separator container.\",defaultValue:\"#ffffff00\"},separatorSize:{type:ControlType.Number,title:\"Separator Size\",description:\"Size of the separator arrow.\",defaultValue:14,min:7,max:24},separatorWeight:{type:ControlType.Number,title:\"Separator Weight\",description:\"Stroke width of the separator arrow.\",defaultValue:2,min:1,max:5},widthBehavior:{type:ControlType.Enum,title:\"Width\",description:\"Defines the width behavior: fit (content), fill (100%), or fixed.\",options:[\"fit\",\"fill\",\"fixed\"],optionTitles:[\"Fit content\",\"Fill (100%)\",\"Fixed\"],defaultValue:\"fit\"},wrap:{type:ControlType.Boolean,title:\"Allow wrap\",description:\"Allow breadcrumbs to wrap on small screens.\",defaultValue:false},showIcon:{type:ControlType.Boolean,title:\"Show Icon\",description:\"Show the home/start icon on root breadcrumb.\",defaultValue:true},showChevron:{type:ControlType.Boolean,title:\"Chevron Separator\",description:\"Use chevron instead of a diagonal line for separator.\",defaultValue:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Breadcrumbs\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Breadcrumbs.map","// Generated by Framer (5e8f756)\nexport default function metadata(params,activeLocale){return{description:\"Smart breadcrumbs that automatically detect and display your current Framer page hierarchy.\",robots:\"max-image-preview:large\",title:\"Automatic Breadcrumbs  - [Akila Studio™]\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"mUAMG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,YAAU,YAAU,OAAK,cAAY,aAAW,SAAO,gBAAc,MAAM,OAAK,GAAM,QAAM,EAAE,CAAC,YAAU,mBAAiB,iBAAe,iBAAe,kBAAgB,cAAY,gBAAc,kBAAgB,WAAS,cAAY,EACvR,EAAUA,MAAY,CAAC,GAAU,IAAS,OAAY,MAAM,EAAE,CAAC,IAAM,EAAI,EAAO,SAAS,SAC5F,MADwG,CAAC,GAAK,IAAM,IAAU,CAAC,OAAO,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