{"version":3,"file":"TagInput.Df-eHR68.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/cBgRHOx9nRvpBCZnJAZA/YmFTrBrO42M9cyiva19F/TagInput.js"],"sourcesContent":["// Tag component that converts pipe-separated text into individual tags\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useMemo}from\"react\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function TagInput(props){const{text=\"Resilience|Masculinity|Exercise\",separator=\"|\",backgroundColor=\"#F5F5F5\",textColor=\"#000000\",borderRadius=8,padding=\"8px 12px\",gap=8,font}=props;const tags=useMemo(()=>{if(!text||!text.trim())return[];return text.split(separator).map(tag=>tag.trim()).filter(tag=>tag.length>0);},[text,separator]);const isFixedWidth=props?.style&&props.style.width===\"100%\";return /*#__PURE__*/_jsx(\"div\",{style:{...props.style,display:\"flex\",flexWrap:\"wrap\",gap:gap,alignItems:\"flex-start\",...isFixedWidth?{}:{width:\"max-content\"}},children:tags.map((tag,index)=>/*#__PURE__*/_jsx(\"span\",{style:{backgroundColor:backgroundColor,color:textColor,padding:padding,borderRadius:borderRadius,whiteSpace:\"nowrap\",...font},children:tag},index))});}addPropertyControls(TagInput,{text:{type:ControlType.String,title:\"TagInput Text\",defaultValue:\"Resilience|Masculinity|Exercise\",displayTextArea:true},separator:{type:ControlType.String,title:\"Separator\",defaultValue:\"|\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#F5F5F5\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:8,min:0,max:20,step:1,unit:\"px\"},padding:{type:ControlType.Padding,title:\"Padding\",defaultValue:\"8px 12px\"},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:8,min:0,max:20,step:1,unit:\"px\"},font:{type:ControlType.Font,title:\"Font\",defaultValue:{fontSize:\"14px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"},controls:\"extended\",defaultFontType:\"sans-serif\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TagInput\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TagInput.map"],"mappings":"kQAIG,SAAwB,EAAS,EAAM,CAAC,GAAK,CAAC,OAAK,kCAAkC,YAAU,IAAI,kBAAgB,UAAU,YAAU,UAAU,eAAa,EAAE,UAAQ,WAAW,MAAI,EAAE,QAAM,EAAY,EAAKA,MAAgB,CAAC,GAAM,CAAC,EAAK,MAAM,CAAO,EAAE,CAAQ,EAAK,MAAM,EAAU,CAAC,IAAI,GAAK,EAAI,MAAM,CAAC,CAAC,OAAO,GAAK,EAAI,OAAO,EAAE,CAAG,CAAC,EAAK,EAAU,CAAC,CAAO,EAAa,GAAO,OAAO,EAAM,MAAM,QAAQ,OAAO,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,MAAM,QAAQ,OAAO,SAAS,OAAW,MAAI,WAAW,aAAa,GAAG,EAAa,EAAE,CAAC,CAAC,MAAM,cAAc,CAAC,CAAC,SAAS,EAAK,KAAK,EAAI,IAAqB,EAAK,OAAO,CAAC,MAAM,CAAiB,kBAAgB,MAAM,EAAkB,UAAqB,eAAa,WAAW,SAAS,GAAG,EAAK,CAAC,SAAS,EAAI,CAAC,EAAM,CAAC,CAAC,CAAC,kBAH9tB,IAAoD,IAA2B,CAGipB,EAAoB,EAAS,CAAC,KAAK,CAAC,KAAK,EAAY,OAAO,MAAM,gBAAgB,aAAa,kCAAkC,gBAAgB,GAAK,CAAC,UAAU,CAAC,KAAK,EAAY,OAAO,MAAM,YAAY,aAAa,IAAI,CAAC,gBAAgB,CAA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