{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/qERhjgPA4cB5k1EvYnU6/bUzIcpTSLcSgaqGPHhzz/ThentyErrorMessage.js"],
  "sourcesContent": ["import{jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget,withCSS}from\"framer\";import{useRef}from\"react\";import{textOptions,textOptionsToStyles,useThentyForm}from\"https://framerusercontent.com/modules/diyk5889JEo4mM5y5sJr/fojdC4wfG6J7NmzQMXnM/ThentyShared.js\";const CANVAS_HIDDEN_CLASS_NAME=\"thenty-error-canvas-hidden\";const HIDDEN_CLASS_NAME=\"thenty-error-hidden\";function ThentyFormErrorMessageComponent(props){const{font,color,prefix,suffix,style,textOptions}=props;const Tag=props.tag||\"p\";const isCanvas=RenderTarget.current()===RenderTarget.canvas;const ref=useRef(null);const{formError}=useThentyForm(ref);let className=\"\";if(isCanvas){className=CANVAS_HIDDEN_CLASS_NAME;}else if(!formError){className=HIDDEN_CLASS_NAME;}return /*#__PURE__*/_jsxs(Tag,{ref:ref,className:className,style:{color,margin:0,whiteSpace:style?.width?undefined:\"nowrap\",fontWeight:400,textAlign:\"center\",...textOptionsToStyles(textOptions),...font,...style},children:[prefix,isCanvas?\"Error message\":formError,suffix]});}/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 300\n * @framerDisableUnlink\n */const ThentyFormErrorMessage=withCSS(ThentyFormErrorMessageComponent,[`[data-framer-component-container=\"true\"] div:has(> .${CANVAS_HIDDEN_CLASS_NAME}) { display: none !important; }`,`div:has(> .${HIDDEN_CLASS_NAME}) { display: none !important; }`,`.${HIDDEN_CLASS_NAME} { display: none !important; }`],\"\");export default ThentyFormErrorMessage;ThentyFormErrorMessage.displayName=\"Thenty Error Message\";addPropertyControls(ThentyFormErrorMessage,{font:{type:\"font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:12,lineHeight:1.4,textAlign:\"center\"}},color:{type:ControlType.Color,defaultValue:\"#FF5A6F\"},prefix:{type:ControlType.String,defaultValue:\"\"},suffix:{type:ControlType.String,defaultValue:\"\"},textOptions:textOptions()});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ThentyFormErrorMessage\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerDisableUnlink\":\"\",\"framerIntrinsicWidth\":\"300\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],
  "mappings": "qKAA2S,IAAMA,EAAyB,6BAAmCC,EAAkB,sBAAsB,SAASC,EAAgCC,EAAM,CAAC,GAAK,CAAC,KAAAC,EAAK,MAAAC,EAAM,OAAAC,EAAO,OAAAC,EAAO,MAAAC,EAAM,YAAAC,CAAW,EAAEN,EAAYO,EAAIP,EAAM,KAAK,IAAUQ,EAASC,EAAa,QAAQ,IAAIA,EAAa,OAAaC,EAAIC,EAAO,IAAI,EAAO,CAAC,UAAAC,CAAS,EAAEC,EAAcH,CAAG,EAAMI,EAAU,GAAG,OAAGN,EAAUM,EAAUjB,EAAmCe,IAAWE,EAAUhB,GAAuCiB,EAAMR,EAAI,CAAC,IAAIG,EAAI,UAAUI,EAAU,MAAM,CAAC,MAAAZ,EAAM,OAAO,EAAE,WAAWG,GAAO,MAAM,OAAU,SAAS,WAAW,IAAI,UAAU,SAAS,GAAGW,EAAoBV,CAAW,EAAE,GAAGL,EAAK,GAAGI,CAAK,EAAE,SAAS,CAACF,EAAOK,EAAS,gBAAgBI,EAAUR,CAAM,CAAC,CAAC,CAAE,CAK/gC,IAAMa,EAAuBC,EAAQnB,EAAgC,CAAC,uDAAuDF,CAAwB,kCAAkC,cAAcC,CAAiB,kCAAkC,IAAIA,CAAiB,gCAAgC,EAAE,EAAE,EAASqB,EAAQF,EAAuBA,EAAuB,YAAY,uBAAuBG,EAAoBH,EAAuB,CAAC,KAAK,CAAC,KAAK,OAAO,SAAS,WAAW,gBAAgB,aAAa,aAAa,CAAC,SAAS,GAAG,WAAW,IAAI,UAAU,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAKI,EAAY,MAAM,aAAa,SAAS,EAAE,OAAO,CAAC,KAAKA,EAAY,OAAO,aAAa,EAAE,EAAE,OAAO,CAAC,KAAKA,EAAY,OAAO,aAAa,EAAE,EAAE,YAAYf,EAAY,CAAC,CAAC",
  "names": ["CANVAS_HIDDEN_CLASS_NAME", "HIDDEN_CLASS_NAME", "ThentyFormErrorMessageComponent", "props", "font", "color", "prefix", "suffix", "style", "textOptions", "Tag", "isCanvas", "RenderTarget", "ref", "pe", "formError", "useThentyForm", "className", "u", "textOptionsToStyles", "ThentyFormErrorMessage", "withCSS", "ThentyErrorMessage_default", "addPropertyControls", "ControlType"]
}
