{"version":3,"file":"default-utils.js@_0.45.QTVEhDX9.mjs","names":["__esmMin","j","p","c","init_jsx_runtime","init_npm_react_18_3_1","init_framer_D6uXRwWs","ControlType","Frame","addPropertyControls","init_OIjZRBmWDcIE2B6qgG1j","generateMaskImage","cssDirection","direction","easing","FadeIt","borderRadius","isMixed","topLeft","topRight","bottomRight","bottomLeft","contentStyle","maskEasing","gradientDirection","type","children","image","init_FadeIt","init_default_utils_js__0_45"],"sources":["https:/framerusercontent.com/modules/A0RMhtJ49NPlOntYXJOl/Abo0zez5rTgIsVXSoPHU/FadeIt.js","https:/framer.com/m/framer/default-utils.js@^0.45.0"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{Frame,addPropertyControls,ControlType}from\"framer\";// Code component provided by Eleveight Supply. All rights reserved 2024.\nfunction generateMaskImage(easing,direction){let cssDirection;switch(direction){case\"to right\":cssDirection=\"to left\";break;case\"to left\":cssDirection=\"to right\";break;case\"to top\":cssDirection=\"to bottom\";break;case\"to bottom\":cssDirection=\"to top\";break;default:cssDirection=\"to bottom\";}switch(easing){case\"linear\":return`linear-gradient(${cssDirection}, rgba(0,0,0,0) 0%, rgba(0,0,0,0.1) 25%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.6) 75%, rgba(0,0,0,1) 100%)`;case\"ease-in\":return`linear-gradient(${cssDirection}, rgba(0,0,0,0) 10%, rgba(0,0,0,0.2) 30%, rgba(0,0,0,0.7) 70%, rgba(0,0,0,1) 90%)`;case\"ease-out\":return`linear-gradient(${cssDirection}, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 80%)`;case\"ease-in-out\":return`linear-gradient(${cssDirection}, rgba(0,0,0,0) 0%, rgba(0,0,0,0.05) 15%, rgba(0,0,0,0.2) 25%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.8) 70%, rgba(0,0,0,1) 100%)`;}}/**\n * @framerDisableUnlink\n *\n * @framerSupportedLayoutWidth any-prefer-fit\n * @framerSupportedLayoutHeight any-prefer-fit\n *\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 200\n */export default function FadeIt({children,type,image,gradientDirection,maskEasing,isMixed,topLeft,topRight,bottomRight,bottomLeft}){const borderRadius=isMixed?`${topLeft}px ${topRight}px ${bottomRight}px ${bottomLeft}px`:`${topLeft}px`;const contentStyle={width:\"100%\",height:\"100%\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",position:\"relative\",WebkitMaskImage:generateMaskImage(maskEasing,gradientDirection),maskImage:generateMaskImage(maskEasing,gradientDirection),objectFit:\"cover\",borderRadius:type===\"image\"?borderRadius:\"0px\"};return /*#__PURE__*/_jsxs(Frame,{background:null,style:contentStyle,children:[type===\"component\"&&React.Children.count(children)===0&&/*#__PURE__*/_jsx(\"div\",{style:{width:\"200px\",height:\"200px\",background:\"#333\",color:\"#FFFFFF\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",textAlign:\"center\"},children:\"Connect to a frame\"}),type===\"component\"&&React.Children.count(children)>0&&/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\"},children:children}),type===\"image\"&&!image&&/*#__PURE__*/_jsx(\"div\",{style:{...contentStyle,background:\"#555\",width:\"250px\",height:\"200px\",display:\"flex\",color:\"#FFFFFF\",textAlign:\"center\"},children:\"Upload an image\"}),type===\"image\"&&image&&/*#__PURE__*/_jsx(\"img\",{style:contentStyle,src:image.src,alt:\"Uploaded image\"})]});}FadeIt.defaultProps={type:\"image\",maskDirection:180,maskEasing:\"linear\",isMixed:false,topLeft:0,topRight:0,bottomRight:0,bottomLeft:0};addPropertyControls(FadeIt,{type:{type:ControlType.Enum,options:[\"image\",\"component\"],optionTitles:[\"Image\",\"Frame\"],defaultValue:\"image\",displaySegmentedControl:true,segmentedControlDirection:\"horizontal\"},gradientDirection:{type:ControlType.Enum,title:\"Direction\",options:[\"to left\",\"to right\",\"to top\",\"to bottom\"],optionTitles:[\"Left\",\"Right\",\"Up\",\"Down\"],displaySegmentedControl:true,optionIcons:[\"direction-left\",\"direction-right\",\"direction-up\",\"direction-down\"],defaultValue:\"to bottom\"},maskEasing:{type:ControlType.Enum,title:\"Mask Easing\",options:[\"linear\",\"ease-in\",\"ease-out\",\"ease-in-out\"],optionTitles:[\"Linear\",\"Ease-In\",\"Ease-Out\",\"Ease-In-Out\"],defaultValue:\"linear\"},radius:{type:ControlType.FusedNumber,title:\"Radius\",defaultValue:0,toggleKey:\"isMixed\",toggleTitles:[\"All\",\"Individual\"],valueKeys:[\"topLeft\",\"topRight\",\"bottomRight\",\"bottomLeft\"],valueLabels:[\"TL\",\"TR\",\"BR\",\"BL\"],min:0,hidden:({type})=>type!==\"image\"},children:{type:ControlType.ComponentInstance,hidden:({type})=>type===\"image\"},image:{type:ControlType.ResponsiveImage,title:\"Image\",hidden:({type})=>type===\"component\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FadeIt\",\"slots\":[\"children\"],\"annotations\":{\"framerIntrinsicWidth\":\"200\",\"framerSupportedLayoutWidth\":\"any-prefer-fit\",\"framerDisableUnlink\":\"*\",\"framerSupportedLayoutHeight\":\"any-prefer-fit\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"200\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FadeIt.map","/*\n * index (framer/default-utils@0.45.0)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/G4IfyjvwmaeSBpdb4TWu/OIjZRBmWDcIE2B6qgG1j/index.js\"\n"],"mappings":"A,gPACA,SAASW,EAAkB,EAAO,EAAU,CAAC,IAAIC,EAAa,OAAOC,EAAP,CAAkB,IAAI,WAAW,EAAa,UAAU,MAAM,IAAI,UAAU,EAAa,WAAW,MAAM,IAAI,SAAS,EAAa,YAAY,MAAM,IAAI,YAAY,EAAa,SAAS,MAAM,QAAQ,EAAa,WAAY,CAAC,OAAOC,E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