{"version":3,"file":"AKN_Steps_New.C25WikW5.mjs","names":["React.useRef","React.useState"],"sources":["https:/framerusercontent.com/modules/NUET7KanzEzrH4F5beP3/rJAGHv183pvnuePwujH3/AKN_Steps_New.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function WhatsInside(props){const{items,defaultImage,numberSize,numberGap,numberColor,numberBg,numberBorderColor,titleColor,descriptionColor,arrowColor,highlightBg,highlightTitleColor,highlightDescriptionColor,fontFamily,titleSize,descriptionSize,columnGap,itemGap,rowPaddingX,rowPaddingY,rowRadius,imageRadius,mobileImageMinHeight,transitionMs,mobileBreakpoint}=props;const containerRef=React.useRef(null);const[isMobile,setIsMobile]=React.useState(false);const[activeIndex,setActiveIndex]=React.useState(null);React.useEffect(()=>{const el=containerRef.current;if(!el)return;const observer=new ResizeObserver(entries=>{for(const entry of entries){setIsMobile(entry.contentRect.width<mobileBreakpoint);}});observer.observe(el);return()=>observer.disconnect();},[mobileBreakpoint]);const activeItem=activeIndex!==null?items?.[activeIndex]:undefined;const descriptionIndent=numberSize+numberGap// keeps description aligned under the title rather than the number\n;return /*#__PURE__*/_jsxs(\"div\",{ref:containerRef,style:{display:\"flex\",flexDirection:isMobile?\"column\":\"row\",width:\"100%\",height:\"100%\",gap:columnGap,fontFamily,boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{order:isMobile?2:1,flex:1,minWidth:0,display:\"flex\",flexDirection:\"column\",gap:itemGap},children:items?.map((item,i)=>{const expanded=activeIndex===i;return /*#__PURE__*/_jsxs(\"div\",{onClick:()=>setActiveIndex(current=>current===i?null:i),role:\"button\",\"aria-expanded\":expanded,style:{display:\"flex\",flexDirection:\"column\",padding:`${rowPaddingY}px ${rowPaddingX}px`,borderRadius:rowRadius,backgroundColor:expanded?highlightBg:\"transparent\",transition:`background-color ${transitionMs}ms ease`,cursor:\"pointer\",userSelect:\"none\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:numberGap},children:[/*#__PURE__*/_jsx(\"div\",{style:{flexShrink:0,width:numberSize,height:numberSize,borderRadius:\"50%\",border:`1.5px solid ${numberBorderColor}`,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontSize:Math.round(numberSize*.4),lineHeight:1,color:expanded?highlightTitleColor:numberColor,backgroundColor:numberBg,transition:`color ${transitionMs}ms ease`},children:i+1}),/*#__PURE__*/_jsx(\"div\",{style:{flex:1,minWidth:0,fontSize:titleSize,fontWeight:700,color:expanded?highlightTitleColor:titleColor,transition:`color ${transitionMs}ms ease`},children:item.title}),/*#__PURE__*/_jsx(\"svg\",{width:\"14\",height:\"14\",viewBox:\"0 0 14 14\",style:{flexShrink:0,transform:expanded?\"rotate(180deg)\":\"rotate(0deg)\",transition:`transform ${transitionMs}ms ease, stroke ${transitionMs}ms ease`},children:/*#__PURE__*/_jsx(\"path\",{d:\"M2 4.5L7 9.5L12 4.5\",fill:\"none\",stroke:expanded?highlightTitleColor:arrowColor,strokeWidth:\"1.5\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})})]}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateRows:expanded?\"1fr\":\"0fr\",transition:`grid-template-rows ${transitionMs}ms ease`,marginLeft:descriptionIndent},children:/*#__PURE__*/_jsx(\"div\",{style:{overflow:\"hidden\",minHeight:0},children:/*#__PURE__*/_jsx(\"div\",{style:{paddingTop:6,fontSize:descriptionSize,fontWeight:400,color:highlightDescriptionColor,lineHeight:1.5},children:item.description})})})]},i);})}),/*#__PURE__*/_jsxs(\"div\",{style:{order:isMobile?1:2,flex:1,minWidth:0,position:\"relative\",minHeight:isMobile?mobileImageMinHeight:\"auto\",borderRadius:imageRadius,overflow:\"hidden\",backgroundColor:\"#F4F1EA\"},children:[defaultImage?.src&&/*#__PURE__*/_jsx(\"img\",{src:defaultImage.src,srcSet:defaultImage.srcSet,alt:defaultImage.alt||\"\",style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",objectFit:\"cover\",opacity:!activeItem||!activeItem.image?.src?1:0,transition:`opacity ${transitionMs}ms ease`}}),items?.map((item,i)=>item.image?.src&&/*#__PURE__*/_jsx(\"img\",{src:item.image.src,srcSet:item.image.srcSet,alt:item.image.alt||\"\",style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",objectFit:\"cover\",opacity:activeIndex===i?1:0,transition:`opacity ${transitionMs}ms ease`,pointerEvents:\"none\"}},i))]})]});}WhatsInside.defaultProps={items:[{title:\"Purify Shampoo\",description:\"Clears buildup and daily grime without stripping natural moisture.\"},{title:\"Repair Conditioner\",description:\"Restores moisture and softness after shampooing.\"}],numberSize:32,numberGap:12,numberColor:\"#211F1C\",numberBg:\"transparent\",numberBorderColor:\"#A79A87\",titleColor:\"#211F1C\",descriptionColor:\"#8C867C\",arrowColor:\"#A79A87\",highlightBg:\"#211F1C\",highlightTitleColor:\"#F4F1EA\",highlightDescriptionColor:\"#C9C2B4\",fontFamily:\"Helvetica Neue, Helvetica, Arial, sans-serif\",titleSize:16,descriptionSize:15,columnGap:60,itemGap:4,rowPaddingX:12,rowPaddingY:6,rowRadius:10,imageRadius:8,mobileImageMinHeight:180,transitionMs:250,mobileBreakpoint:810};addPropertyControls(WhatsInside,{items:{type:ControlType.Array,title:\"Items\",control:{type:ControlType.Object,controls:{title:{type:ControlType.String,title:\"Title\",defaultValue:\"Product name\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"One-line purpose or how-to-use.\",displayTextArea:true},image:{type:ControlType.ResponsiveImage,title:\"Image (when expanded)\"}}},defaultValue:[{title:\"Purify Shampoo\",description:\"Clears buildup and daily grime without stripping natural moisture.\"},{title:\"Repair Conditioner\",description:\"Restores moisture and softness after shampooing.\"}]},defaultImage:{type:ControlType.ResponsiveImage,title:\"Default Image\",description:\"Shown when no item is expanded.\"},numberSize:{type:ControlType.Number,title:\"Number Circle Size\",defaultValue:32,min:16,max:80},numberGap:{type:ControlType.Number,title:\"Number-to-Title Gap\",defaultValue:12,min:0,max:60},numberColor:{type:ControlType.Color,title:\"Number Color\",defaultValue:\"#211F1C\"},numberBg:{type:ControlType.Color,title:\"Number Fill\",defaultValue:\"transparent\"},numberBorderColor:{type:ControlType.Color,title:\"Number Stroke\",defaultValue:\"#A79A87\"},titleColor:{type:ControlType.Color,title:\"Title Color\",defaultValue:\"#211F1C\"},descriptionColor:{type:ControlType.Color,title:\"Description Color\",defaultValue:\"#8C867C\"},arrowColor:{type:ControlType.Color,title:\"Arrow Color\",defaultValue:\"#A79A87\"},highlightBg:{type:ControlType.Color,title:\"Highlight Background\",defaultValue:\"#211F1C\"},highlightTitleColor:{type:ControlType.Color,title:\"Highlight Title Color\",defaultValue:\"#F4F1EA\"},highlightDescriptionColor:{type:ControlType.Color,title:\"Highlight Description Color\",defaultValue:\"#C9C2B4\"},fontFamily:{type:ControlType.String,title:\"Font Family\",defaultValue:\"Helvetica Neue, Helvetica, Arial, sans-serif\"},titleSize:{type:ControlType.Number,title:\"Title Size\",defaultValue:16,min:10,max:60},descriptionSize:{type:ControlType.Number,title:\"Description Size\",defaultValue:15,min:8,max:40},columnGap:{type:ControlType.Number,title:\"Column Gap\",defaultValue:60,min:0,max:200},itemGap:{type:ControlType.Number,title:\"Item Gap\",defaultValue:4,min:0,max:200},rowPaddingX:{type:ControlType.Number,title:\"Row Padding X\",defaultValue:12,min:0,max:60,description:\"Applied at rest too, so expanding never shifts side padding.\"},rowPaddingY:{type:ControlType.Number,title:\"Row Padding Y\",defaultValue:6,min:0,max:60},rowRadius:{type:ControlType.Number,title:\"Row Corner Radius\",defaultValue:10,min:0,max:40},imageRadius:{type:ControlType.Number,title:\"Image Corner Radius\",defaultValue:8,min:0,max:100},mobileImageMinHeight:{type:ControlType.Number,title:\"Mobile Image Height\",defaultValue:180,min:80,max:500,description:\"Lower this so more of the list + a peek of the image both fit on one phone screen.\"},transitionMs:{type:ControlType.Number,title:\"Transition Speed (ms)\",defaultValue:250,min:0,max:1e3},mobileBreakpoint:{type:ControlType.Number,title:\"Mobile Breakpoint (px)\",defaultValue:810,min:320,max:1200,description:\"Below this container width, layout switches to image-on-top.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"WhatsInside\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AKN_Steps_New.map"],"mappings":"+LAAyI,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,QAAM,eAAa,aAAW,YAAU,cAAY,WAAS,oBAAkB,aAAW,mBAAiB,aAAW,cAAY,sBAAoB,4BAA0B,aAAW,YAAU,kBAAgB,YAAU,UAAQ,cAAY,cAAY,YAAU,cAAY,uBAAqB,eAAa,oBAAkB,EAAY,EAAaA,EAAa,IAAI,EAAO,CAAC,EAAS,GAAaC,EAAe,EAAK,EAAO,CAAC,EAAY,GAAgBA,EAAe,IAAI,EAAE,MAAoB,CAAC,IAAM,EAAG,EAAa,QAAQ,GAAG,CAAC,EAAG,OAAO,IAAM,EAAS,IAAI,eAAe,GAAS,CAAC,IAAI,IAAM,KAAS,EAAS,EAAY,EAAM,YAAY,MAAM,CAAgB,CAAG,CAAC,EAAuB,OAArB,EAAS,QAAQ,CAAE,MAAY,EAAS,WAAW,CAAE,EAAE,CAAC,CAAgB,CAAC,EAAE,IAAM,EAAW,IAAc,KAA0B,IAAA,GAArB,IAAQ,GAA6B,EAAkB,EAAW,EAC3gC,OAAoB,EAAM,MAAM,CAAC,IAAI,EAAa,MAAM,CAAC,QAAQ,OAAO,cAAc,EAAS,SAAS,MAAM,MAAM,OAAO,OAAO,OAAO,IAAI,EAAU,aAAW,UAAU,YAAY,EAAE,SAAS,CAAc,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,EAAS,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,OAAO,cAAc,SAAS,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