{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/9N50PMbCaZNc8J76vXRL/zbPz4O3CnWxY2tjbhM7b/TextMask.js", "ssg:https://framer.com/m/framer/icon-nullstate.js@0.7.0", "ssg:https://framerusercontent.com/modules/Ma20hU0GGRxLxZphbywl/OSpwWF91FHPVFyQJjMHt/utils.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * TEXTMASK\n * By Benjamin den Boer\n * @benjaminnathan\n *\n * @framerIntrinsicWidth 260\n * @framerIntrinsicHeight 200\n * @framerDisableUnlink\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any\n */ export default function TextMask(props){const{textContent,image,bgSizeType,bgSize,bgPosX,bgPosY,font,padding,paddingPerSide,paddingTop,paddingRight,paddingBottom,paddingLeft}=props;const{color,fontSize,fontFamily,fontWeight,fontStyle,textAlign,letterSpacing,whiteSpace,lineHeight,lineHeightPixels,lineHeightType}=font;const backgroundSizeValue=props.bgSizeType===\"cover\"||props.bgSizeType===\"contain\"?bgSizeType:`${bgSize}%`;const paddingValue=paddingPerSide?`${paddingTop}px ${paddingRight}px ${paddingBottom}px ${paddingLeft}px`:`${padding}px`;return /*#__PURE__*/ _jsx(\"h1\",{style:{backgroundImage:image&&`url(${image.src})`,backgroundSize:backgroundSizeValue,backgroundRepeat:\"no-repeat\",backgroundPosition:`${bgPosX}% ${bgPosY}%`,backgroundClip:image&&\"text\",WebkitBackgroundClip:image&&\"text\",WebkitTextFillColor:image&&\"transparent\",textFillColor:image&&\"transparent\",color,fontSize,fontFamily:`\"${fontFamily}\", sans-serif`,fontStyle,fontWeight,textAlign,letterSpacing,whiteSpace,lineHeight:lineHeightType?lineHeight:`${lineHeightPixels}px`,margin:0,padding:paddingValue},children:textContent});};/* Default Properties */ TextMask.defaultProps={textContent:\"Hello\",bgSize:100,bgPosX:0,bgPosY:0,font:{fontSize:100,lineHeight:1,lineHeightType:true}};TextMask.displayName=\"Text Mask\";/* Property Controls */ addPropertyControls(TextMask,{textContent:{type:ControlType.String,title:\"Text\",defaultValue:\"Hello\"},image:{type:ControlType.ResponsiveImage,title:\"Image\"},bgSizeType:{type:ControlType.Enum,options:[\"cover\",\"contain\",\"percentage\"],optionTitles:[\"Cover\",\"Contain\",\"Percentage\"],title:\"Background\",defaultValue:\"cover\"},bgSize:{type:ControlType.Number,min:0,max:200,defaultValue:100,unit:\"%\",title:\"Size\",hidden:props=>props.bgSizeType===\"cover\"||props.bgSizeType===\"contain\"},bgPosX:{type:ControlType.Number,min:0,max:100,defaultValue:0,unit:\"%\",title:\"Offset X\"},bgPosY:{type:ControlType.Number,min:0,max:100,defaultValue:0,unit:\"%\",title:\"Offset Y\"},font:{type:ControlType.Object,controls:{color:{type:ControlType.Color,defaultValue:\"#888\"},fontSize:{type:ControlType.Number,title:\"Size\",min:0,displayStepper:true,step:1,defaultValue:100},fontFamily:{type:ControlType.String,title:\"Font\",defaultValue:\"Inter\"},fontWeight:{type:ControlType.Enum,title:\"Weight\",options:[100,200,300,400,500,600,700,800,900],defaultValue:400},fontStyle:{type:ControlType.Enum,title:\"Style\",options:[\"normal\",\"italic\",\"oblique\"],optionTitles:[\"Normal\",\"Italic\",\"Oblique\"],defaultValue:\"normal\"},textAlign:{type:ControlType.Enum,displaySegmentedControl:true,title:\"Align\",options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"],defaultValue:\"center\"},whiteSpace:{type:ControlType.Enum,title:\"Space\",options:[\"normal\",\"nowrap\",\"pre\",\"pre-wrap\",\"preline\",\"break-spaces\",],optionTitles:[\"Normal\",\"No Wrap\",\"Pre\",\"Pre Wrap\",\"Preline\",\"Break Spaces\",],defaultValue:\"center\"},letterSpacing:{type:ControlType.Number,title:\"Letter\",min:-100,max:100,displayStepper:true,step:.1,defaultValue:0},lineHeight:{type:ControlType.Number,title:\"Line\",min:-500,max:500,displayStepper:true,step:.1,defaultValue:1,hidden:props=>!props.lineHeightType},lineHeightPixels:{type:ControlType.Number,title:\"Line\",min:-500,max:500,displayStepper:true,step:.1,defaultValue:100,hidden:props=>props.lineHeightType},lineHeightType:{type:ControlType.Boolean,title:\" \",enabledTitle:\"em\",disabledTitle:\"px\",defaultValue:true}}},padding:{title:\"Padding\",type:ControlType.FusedNumber,toggleKey:\"paddingPerSide\",toggleTitles:[\"Padding\",\"Padding per side\"],defaultValue:0,valueKeys:[\"paddingTop\",\"paddingRight\",\"paddingBottom\",\"paddingLeft\",],valueLabels:[\"T\",\"R\",\"B\",\"L\"],min:0}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TextMask\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"*\",\"framerIntrinsicHeight\":\"200\",\"framerIntrinsicWidth\":\"260\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TextMask.map", "import { jsx as _jsx } from \"react/jsx-runtime\";\nimport * as React from \"react\";\nexport const containerStyles = {\n    width: \"100%\",\n    height: \"100%\",\n    display: \"flex\",\n    justifyContent: \"center\",\n    alignItems: \"center\"\n};\nconst nullIconStyle = {\n    minWidth: \"10px\",\n    minHeight: \"10px\",\n    maxWidth: \"20px\",\n    maxHeight: \"20px\",\n    width: \"60%\",\n    height: \"60%\"\n};\nconst emptyStateStyle = {\n    ...containerStyles,\n    borderRadius: 6,\n    background: \"rgba(149, 149, 149, 0.1)\",\n    border: \"1px dashed rgba(149, 149, 149, 0.15)\",\n    color: \"#a5a5a5\",\n    flexDirection: \"column\"\n};\nexport const NullState = /*#__PURE__*/ React.forwardRef((_, ref)=>{\n    return(/*#__PURE__*/ _jsx(\"div\", {\n        style: emptyStateStyle,\n        ref: ref\n    }));\n}) /*\n\n<svg\n                xmlns=\"http://www.w3.org/2000/svg\"\n                viewBox=\"0 0 30 30\"\n                style={nullIconStyle}\n            >\n                <path\n                    d=\"M 12.857 0 C 19.958 0 25.714 5.756 25.714 12.857 C 25.714 19.958 19.958 25.714 12.857 25.714 C 5.756 25.714 0 19.958 0 12.857 C 0 5.756 5.756 0 12.857 0 Z\"\n                    fill=\"#FFFFFF\"\n                ></path>\n                <path\n                    d=\"M 20.357 20.357 L 27.857 27.857\"\n                    fill=\"transparent\"\n                    strokeWidth=\"4.28\"\n                    stroke=\"#FFFFFF\"\n                    strokeLinecap=\"round\"\n                ></path>\n                <g transform=\"translate(9.643 6.429)\">\n                    <path\n                        d=\"M 3.214 12.857 L 3.214 12.857\"\n                        fill=\"transparent\"\n                        strokeWidth=\"3.75\"\n                        stroke=\"currentColor\"\n                        strokeLinecap=\"round\"\n                    ></path>\n                    <path\n                        d=\"M 0 3.214 C 0 1.004 1.843 0 3.214 0 C 4.586 0 6.429 0.603 6.429 3.214 C 6.429 5.826 3.214 5.913 3.214 7.232 C 3.214 8.552 3.214 8.571 3.214 8.571\"\n                        fill=\"transparent\"\n                        strokeWidth=\"3.22\"\n                        stroke=\"currentColor\"\n                        strokeLinecap=\"round\"\n                        strokeLinejoin=\"round\"\n                    ></path>\n                </g>\n            </svg>\n            */ ;\n\nexport const __FramerMetadata__ = {\"exports\":{\"containerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"NullState\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./nullstate.map", "import{useMemo}from\"react\";import{ControlType}from\"framer\";/*\n ** ICON UTILS\n ** Pull as much re-usable logic into here as possible\n ** This will make it easier to replace in all icon components\n */ export const containerStyles={width:\"100%\",height:\"100%\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\"};export const defaultEvents={onClick:{type:ControlType.EventHandler},onMouseDown:{type:ControlType.EventHandler},onMouseUp:{type:ControlType.EventHandler},onMouseEnter:{type:ControlType.EventHandler},onMouseLeave:{type:ControlType.EventHandler}};const findByArray=(arr,search)=>arr.find(a=>a.toLowerCase().includes(search));export function getIconSelection(iconKeys,selectByList,iconSearch=\"\",iconSelection,lowercaseIconKeyPairs){// gotta get the exact match first THEN find\n// have a set and try to access ?\nif(selectByList)return iconSelection;if(iconSearch==null||(iconSearch===null||iconSearch===void 0?void 0:iconSearch.length)===0)return null;const iconSearchTerm=iconSearch.toLowerCase().replace(/-|\\s/g,\"\");var _iconSearchTerm;// check for exact match, otherwise use .find\nconst searchResult=(_iconSearchTerm=lowercaseIconKeyPairs[iconSearchTerm])!==null&&_iconSearchTerm!==void 0?_iconSearchTerm:findByArray(iconKeys,iconSearchTerm);return searchResult;}export function useIconSelection(iconKeys,selectByList,iconSearch=\"\",iconSelection,lowercaseIconKeyPairs){// Clean search term\nconst iconSearchResult=useMemo(()=>{if(iconSearch==null||(iconSearch===null||iconSearch===void 0?void 0:iconSearch.length)===0)return null;const iconSearchTerm=iconSearch.toLowerCase().replace(/-|\\s/g,\"\");var _iconSearchTerm;// check for exact match, otherwise use .find\nconst searchResult=(_iconSearchTerm=lowercaseIconKeyPairs[iconSearchTerm])!==null&&_iconSearchTerm!==void 0?_iconSearchTerm:findByArray(iconKeys,iconSearchTerm);return searchResult;},[iconSelection,iconSearch]);const name=selectByList?iconSelection:iconSearchResult;return name;}\nexport const __FramerMetadata__ = {\"exports\":{\"getIconSelection\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"containerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useIconSelection\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultEvents\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./utils.map"],
  "mappings": "uGAWmB,SAARA,EAA0BC,EAAM,CAAC,GAAK,CAAC,YAAAC,EAAY,MAAAC,EAAM,WAAAC,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AY,YAAY,CAAC,EAAQC,EAAY,CAACC,EAAIC,IAASD,EAAI,KAAKE,GAAGA,EAAE,YAAY,EAAE,SAASD,CAAM,CAAC,EAG7P,SAASE,EAAiBC,EAASC,EAAaC,EAAW,GAAGC,EAAcC,EAAsB,CAC/R,IAAMC,EAAiBC,EAAQ,IAAI,CAAC,GAAGJ,GAAY,MAAqDA,GAAW,SAAU,EAAE,OAAO,KAAK,IAAMK,EAAeL,EAAW,YAAY,EAAE,QAAQ,QAAQ,EAAE,EAAE,IAAIM,EAChD,OAA7IA,EAAgBJ,EAAsBG,CAAc,KAAK,MAAMC,IAAkB,OAAOA,EAAgBC,EAAYT,EAASO,CAAc,CAAsB,EAAE,CAACJ,EAAcD,CAAU,CAAC,EAAyD,OAA5CD,EAAaE,EAAcE,CAA6B",
  "names": ["TextMask", "props", "textContent", "image", "bgSizeType", "bgSize", "bgPosX", "bgPosY", "font", "padding", "paddingPerSide", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "color", "fontSize", "fontFamily", "fontWeight", "fontStyle", "textAlign", "letterSpacing", "whiteSpace", "lineHeight", "lineHeightPixels", "lineHeightType", "backgroundSizeValue", "paddingValue", "p", "addPropertyControls", "ControlType", "containerStyles", "emptyStateStyle", "containerStyles", "NullState", "Y", "_", "ref", "p", "defaultEvents", "ControlType", "findByArray", "arr", "search", "a", "useIconSelection", "iconKeys", "selectByList", "iconSearch", "iconSelection", "lowercaseIconKeyPairs", "iconSearchResult", "se", "iconSearchTerm", "_iconSearchTerm", "findByArray"]
}
