{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/Jz6H7HFQhTchUp6uXcdd/jBjadilB5Xy1QlRxFfCR/AutoYearCopyright.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n\n * @framerDisableUnlink\n *\n * @framerSupportedLayoutWidth 100%\n * @framerSupportedLayoutHeight 100%\n */export default function AutoYearCopyright(props){const{companyName,rightsText,showSymbol,showTrademark,trademarkType,yearPlacement,font,color,fontSize}=props;const currentYear=new Date().getFullYear();const symbol=showSymbol===\"yes\"?\"\\xa9\":\"\";const trademarkOptionActive=showTrademark===\"yes\";const trademarkSymbol=trademarkOptionActive?trademarkType===\"trademark\"?\"\u2122\":\"\\xae\":\"\";let finalCompanyName=companyName.trim();let finalRightsText=rightsText.trim();let dotAfterCompanyName=\"\";if(yearPlacement===\"beforeCompanyName\"){finalCompanyName=`${currentYear} ${finalCompanyName}`;}else if(yearPlacement===\"afterCompanyName\"&&finalCompanyName){finalCompanyName+=` ${currentYear}`;}else if(yearPlacement===\"beforeRightsText\"&&finalRightsText){finalRightsText=`${currentYear}. ${finalRightsText}`;}else if(yearPlacement===\"afterRightsText\"&&finalRightsText){finalRightsText+=` ${currentYear}`;dotAfterCompanyName=!trademarkOptionActive&&finalCompanyName&&finalRightsText?\".\":\"\";}else if(!finalCompanyName&&!finalRightsText){finalCompanyName=`${currentYear}`;}finalCompanyName+=trademarkSymbol?`${trademarkSymbol}`:\"\";let displayText=symbol?`${symbol} `:\"\";displayText+=finalCompanyName?`${finalCompanyName}${dotAfterCompanyName}`:\"\";if(finalCompanyName&&finalRightsText)displayText+=\" \";displayText+=finalRightsText;const textStyle={fontSize:`${fontSize}px`,color:color,...font};return /*#__PURE__*/_jsx(\"div\",{style:textStyle,children:displayText.trim()});}AutoYearCopyright.defaultProps={companyName:\"Company Name\",rightsText:\"All rights reserved\",showSymbol:\"yes\",showTrademark:\"no\",trademarkType:\"trademark\",yearPlacement:\"afterRightsText\",color:\"#999999\",fontSize:18,font:{family:\"Inter\"}};addPropertyControls(AutoYearCopyright,{font:{type:ControlType.Font,title:\"Font\",defaultValue:\"Inter\",controls:\"extended\"},color:{type:ControlType.Color,title:\"Font Color\",defaultValue:\"#999999\"},companyName:{type:ControlType.String,title:\"Company Name\",defaultValue:\"Company Name\"},rightsText:{type:ControlType.String,title:\"Rights Text\",defaultValue:\"All rights reserved\"},showSymbol:{type:ControlType.SegmentedEnum,title:\"Symbol\",options:[\"yes\",\"no\"],optionTitles:[\"Yes\",\"No\"],defaultValue:\"yes\"},showTrademark:{type:ControlType.SegmentedEnum,title:\"Trademark\",options:[\"yes\",\"no\"],optionTitles:[\"Yes\",\"No\"],defaultValue:\"no\"},trademarkType:{type:ControlType.Enum,options:[\"trademark\",\"registered\"],optionTitles:[\"Trademark\",\"Registered\"],defaultValue:\"trademark\",hidden:({showTrademark})=>showTrademark!==\"yes\"},yearPlacement:{type:ControlType.Enum,options:[\"beforeCompanyName\",\"afterCompanyName\",\"beforeRightsText\",\"afterRightsText\"],optionTitles:[\"Before Company\",\"After Company\",\"Before Rights\",\"After Rights\"],defaultValue:\"afterRightsText\",displaySegmentedControl:true,segmentedControlDirection:\"vertical\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AutoYearCopyright\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"*\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"100%\",\"framerSupportedLayoutHeight\":\"100%\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AutoYearCopyright.map"],
  "mappings": "wDAMkB,SAARA,EAAmCC,EAAM,CAAC,GAAK,CAAC,YAAAC,EAAY,WAAAC,EAAW,WAAAC,EAAW,cAAAC,EAAc,cAAAC,EAAc,cAAAC,EAAc,KAAAC,EAAK,MAAAC,EAAM,SAAAC,CAAQ,EAAET,EAAYU,EAAY,IAAI,KA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MAAM,cAAc,aAAa,qBAAqB,EAAE,WAAW,CAAC,KAAKA,EAAY,cAAc,MAAM,SAAS,QAAQ,CAAC,MAAM,IAAI,EAAE,aAAa,CAAC,MAAM,IAAI,EAAE,aAAa,KAAK,EAAE,cAAc,CAAC,KAAKA,EAAY,cAAc,MAAM,YAAY,QAAQ,CAAC,MAAM,IAAI,EAAE,aAAa,CAAC,MAAM,IAAI,EAAE,aAAa,IAAI,EAAE,cAAc,CAAC,KAAKA,EAAY,KAAK,QAAQ,CAAC,YAAY,YAAY,EAAE,aAAa,CAAC,YAAY,YAAY,EAAE,aAAa,YAAY,OAAO,CAAC,CAAC,cAAAjB,CAAa,IAAIA,IAAgB,KAAK,EAAE,cAAc,CAAC,KAAKiB,EAAY,KAAK,QAAQ,CAAC,oBAAoB,mBAAmB,mBAAmB,iBAAiB,EAAE,aAAa,CAAC,iBAAiB,gBAAgB,gBAAgB,cAAc,EAAE,aAAa,kBAAkB,wBAAwB,GAAK,0BAA0B,UAAU,CAAC,CAAC",
  "names": ["AutoYearCopyright", "props", "companyName", "rightsText", "showSymbol", "showTrademark", "trademarkType", "yearPlacement", "font", "color", "fontSize", "currentYear", "symbol", "trademarkOptionActive", "trademarkSymbol", "finalCompanyName", "finalRightsText", "dotAfterCompanyName", "displayText", "textStyle", "p", "addPropertyControls", "ControlType"]
}
