{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/NHZ4UWdegmauyFuuyPjK/73OVzHAJavveVU6DdyHX/ThentyUpdateUser.js"],
  "sourcesContent": ["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useMemo,useState,useEffect,forwardRef}from\"react\";import{addPropertyControls,ControlType,withCSS}from\"framer\";import{motion,AnimatePresence}from\"framer-motion\";import{useForm}from\"react-hook-form\";import{thentyAuth}from\"https://cdn.thenty.io/beta/thenty-sdk.min.js\";import{useThenty}from\"https://framer.com/m/ThentyHelpers-I0Oh.js\";const InputElement=/*#__PURE__*/forwardRef(({tag=\"input\",rows,error,...props},ref)=>{const isTextArea=tag===\"textarea\";const InputTypeTag=tag;return /*#__PURE__*/_jsx(InputTypeTag,{rows:isTextArea?rows:undefined,className:`rhkt-members-update-inputs ${error?\" error\":\"\"}`,ref:ref,...props});});const Checkbox=/*#__PURE__*/forwardRef(({checked,labelText,font,...props},ref)=>{return /*#__PURE__*/_jsxs(\"label\",{className:\"rhkt-members-update-label\",style:{display:\"flex\",alignSelf:\"flex-start\",justifyContent:\"center\",alignItems:\"center\",cursor:\"pointer\",...font},children:[/*#__PURE__*/_jsxs(\"span\",{style:{position:\"relative\",display:\"flex\",alignItems:\"center\"},children:[/*#__PURE__*/_jsx(InputElement,{id:name,name:name,ref:ref,checked:checked.toString()==\"true\",...props,type:\"checkbox\"}),/*#__PURE__*/_jsx(CheckMark,{isVisible:checked.toString()==\"true\",className:\"checkbox-checkmark\"})]}),labelText&&/*#__PURE__*/_jsx(\"p\",{style:{marginLeft:16},children:labelText})]});});const TextInput=/*#__PURE__*/forwardRef(({name:name1,labelText,font,...props},ref)=>{return /*#__PURE__*/_jsxs(_Fragment,{children:[labelText&&/*#__PURE__*/_jsx(\"label\",{className:\"rhkt-members-update-label\",htmlFor:name1,style:{...font},children:/*#__PURE__*/_jsx(\"p\",{style:{marginBottom:8},children:labelText})}),/*#__PURE__*/_jsx(InputElement,{id:name1,ref:ref,name:name1,...props})]});});const elementFromType={text:TextInput,number:TextInput,email:TextInput,checkbox:Checkbox};/* Hooks */const useBorder=({borderRadius,customBorderRadius,topLeftRadius,topRightRadius,bottomRightRadius,bottomLeftRadius,borderColor,borderWidth})=>{const borderStyle=useMemo(()=>({border:`${borderWidth}px solid ${borderColor}`,borderRadius:customBorderRadius?`${topLeftRadius}px ${topRightRadius}px ${bottomRightRadius}px ${bottomLeftRadius}px`:`${borderRadius}px`}),[borderRadius,customBorderRadius,topLeftRadius,topRightRadius,bottomRightRadius,bottomLeftRadius,borderColor,borderWidth]);return borderStyle;};const useInputStyles=({color,inputBackground,customPadding,padding,paddingTop,paddingRight,paddingBottom,paddingLeft})=>{const inputStyles=useMemo(()=>({padding:customPadding?`${paddingTop}px ${paddingRight}px ${paddingBottom}px ${paddingLeft}px`:`${padding}px`,background:inputBackground,color:color}),[color,inputBackground,customPadding,padding,paddingTop,paddingRight,paddingBottom,paddingLeft]);return inputStyles;};const useSubmitStyles=({borderWidth,borderColor,buttonFill,textColor,hoverButtonFill,hoverTextColor})=>{const submitStyle=useMemo(()=>({border:`${borderWidth}px solid ${borderColor}`,background:buttonFill,color:textColor,\"&: hover\":{background:hoverButtonFill,color:hoverTextColor}}),[borderWidth,borderColor,buttonFill,textColor,hoverButtonFill,hoverTextColor]);return submitStyle;};/* COMPONENTS *//**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */const ThentyUpdateUser=withCSS(function ThentyUpdateUser(props){var _window;const[isSuccess,setIsSuccess]=useState(null);const[isError,setIsError]=useState(null);const[isLoading,setIsLoading]=useState(null);const{register,handleSubmit,watch,formState:{errors,isValid},setValue}=useForm();const{colorPalette,border,submit,successTextLabel,errorTextLabel,spacing,font,customPadding,paddingTop,paddingRight,paddingBottom,paddingLeft,padding,fields,customLoadingComponent,successEvent}=props;const{errorColor,focusColor,placeholderColor,inputBackground,color}=colorPalette;const paddingProps={customPadding,paddingTop,paddingRight,paddingBottom,paddingLeft,padding};const inputBorderStyle=useBorder(border);const inputStyle=useInputStyles({...colorPalette,...paddingProps});const submitButtonStyle=useSubmitStyles(submit);const containerTokens={\"--rhkt-members-update-inputs-focus-color\":focusColor,\"--rhkt-members-update-inputs-fill-color\":inputBackground,\"--rhkt-members-update-inputs-padding\":inputStyle.padding,\"--rhkt-members-update-inputs-border-radius\":inputBorderStyle.borderRadius,\"--rhkt-members-update-inputs-color\":color,\"--rhkt-members-update-inputs-border\":inputBorderStyle.border,\"--rhkt-members-update-inputs-error\":errorColor,\"--rhkt-members-update-button-fill-color\":submit.buttonFill,\"--rhkt-members-update-button-color\":submit.textColor,\"--rhkt-members-update-button-border\":submitButtonStyle.border,\"--rhkt-members-update-inputs-placeholder-color\":placeholderColor,\"--rhkt-members-update-inputs-placeholder-font-family\":font.fontFamily,\"--rhkt-members-update-inputs-placeholder-font-style\":font.fontStyle,\"--rhkt-members-update-inputs-placeholder-font-size\":font.fontSize,\"--rhkt-members-update-inputs-placeholder-font-weight\":font.fontWeight};const{authorization}=useThenty();useEffect(()=>{var _window;if(((_window=window)===null||_window===void 0?void 0:_window.variables)&&authorization){fetchUser();}},[authorization,(_window=window)===null||_window===void 0?void 0:_window.variables]);const fetchUser=()=>{var _authorization_authorization;setIsLoading(true);if(!authorization){setIsLoading(false);setIsError(\"User not signed in\");}thentyAuth.fetchGeneric(`/members/me`,\"GET\",null,authorization===null||authorization===void 0?void 0:(_authorization_authorization=authorization.authorization)===null||_authorization_authorization===void 0?void 0:_authorization_authorization.key).then(responseBody=>{setIsLoading(false);setIsError(false);for(const[key,value]of Object.entries(responseBody)){if(fields.find(x=>x.key===key))setValue(key,value);}}).catch(err=>{setIsLoading(false);setIsError(err.message);});};const onSubmit=data=>{var _authorization_member,_authorization_authorization;setIsLoading(true);if(!authorization){setIsLoading(false);setIsSuccess(false);setIsError(\"User not signed in\");}thentyAuth.fetchGeneric(`/members/${authorization===null||authorization===void 0?void 0:(_authorization_member=authorization.member)===null||_authorization_member===void 0?void 0:_authorization_member.id}`,\"PUT\",data,authorization===null||authorization===void 0?void 0:(_authorization_authorization=authorization.authorization)===null||_authorization_authorization===void 0?void 0:_authorization_authorization.key).then(responseBody=>{setIsLoading(false);setIsSuccess(true);setIsError(false);fetchUser();}).catch(err=>{setIsLoading(false);setIsSuccess(false);setIsError(err.message);});};const initialValues=useMemo(()=>[...fields].reduce((next,field)=>{const key=field.key;var _field_value;return{...next,[key]:(_field_value=field.value)!==null&&_field_value!==void 0?_field_value:null};},{}),[fields]);if(isLoading){if(customLoadingComponent===null||customLoadingComponent===void 0?void 0:customLoadingComponent.length)return customLoadingComponent;return /*#__PURE__*/_jsx(motion.div,{style:{...containerTokens,position:\"relative\",width:\"100%\",height:\"100%\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",flexDirection:\"column\",...font},children:/*#__PURE__*/_jsx(Spinner,{size:\"large\"})});}if(isSuccess&&!isLoading){if(successEvent)return successEvent();return /*#__PURE__*/_jsx(motion.div,{style:{...containerTokens,position:\"relative\",width:\"100%\",height:\"100%\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",flexDirection:\"column\",...font},children:isSuccess?/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(CheckMark,{isVisible:true,size:\"large\",className:\"success-checkmark\"}),successTextLabel&&/*#__PURE__*/_jsx(\"p\",{style:{marginTop:16},children:successTextLabel})]}):/*#__PURE__*/_jsx(Spinner,{size:\"large\"})});}return /*#__PURE__*/_jsxs(_Fragment,{children:[isError&&!isLoading&&errorTextLabel||!authorization&&/*#__PURE__*/_jsx(\"div\",{style:{...inputStyle,color:errorColor,padding:customPadding?`${paddingTop}px 0px ${paddingBottom}px 0px`:`${padding}px 0px`,...font,background:\"transparent\"},children:isError}),/*#__PURE__*/_jsxs(\"form\",{onSubmit:handleSubmit(onSubmit),className:\"rhkt-members-update\",style:{display:\"grid\",gridGap:spacing,gridTemplateColumns:\"1fr 1fr\",...containerTokens},children:[props.fields.map(({key,type,inputWidth,required,placeholderText,labelText,errorText,tag})=>{var _errors_key,_errors_key1;const isCheckbox=type===\"checkbox\";const isChecked=isCheckbox?watch(key,false):null;const Element=elementFromType[type];return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gridColumn:inputWidth},children:[/*#__PURE__*/_jsx(Element,{tag:\"input\",checked:isChecked,labelText:labelText,error:errors[key],placeholder:placeholderText,name:key,type:type,rows:1,font:font,...register(key,{...required&&{required:{value:required,message:errorText||\"required\"}}})}),(errors===null||errors===void 0?void 0:(_errors_key=errors[key])===null||_errors_key===void 0?void 0:_errors_key.message)&&/*#__PURE__*/_jsx(\"p\",{style:{margin:0,marginTop:8,color:errorColor},children:String(errors===null||errors===void 0?void 0:(_errors_key1=errors[key])===null||_errors_key1===void 0?void 0:_errors_key1.message)})]});}),/*#__PURE__*/_jsx(motion.input,{type:\"submit\",value:submit.label,style:{cursor:\"pointer\",zIndex:1,borderRadius:inputBorderStyle.borderRadius,...font,padding:inputStyle.padding,background:submit.buttonFill,color:submit.textColor,gridColumn:\"auto / span 2\"},transition:{type:\"ease\",duration:.3},whileHover:{opacity:.8}})]})]});},[/* CSS Styles */`.rhkt-members-update textarea,\n      .rhkt-members-update button,\n      .rhkt-members-update input {\n        appearance: none;\n        line-height: 1.4em;\n        outline: none;\n        cursor: auto;\n        font-family: var(--rhkt-members-update-inputs-placeholder-font-family);\n        font-style: var(--rhkt-members-update-inputs-placeholder-font-style);\n        font-size: var(--rhkt-members-update-inputs-placeholder-font-size);\n        font-weight: var(--rhkt-members-update-inputs-placeholder-font-weight);\n      }`,`.rhkt-members-update input[type=checkbox]{\n        cursor: pointer;\n      }`,`.rhkt-members-update textarea {\n        resize: vertical;\n        min-height: 0\n      }`,`.rhkt-members-update-inputs {\n        text-overflow: ellipsis;\n        margin: 0;\n        border-radius: var(--rhkt-members-update-inputs-border-radius);\n        padding: var(--rhkt-members-update-inputs-padding);\n        background-color: var(--rhkt-members-update-inputs-fill-color);\n        color: var(--rhkt-members-update-inputs-color);\n        border: var(--rhkt-members-update-inputs-border);\n        outline: none;\n      }`,`.rhkt-members-update-inputs:focus {\n        box-shadow: 0px 0px 0px 2px var(--rhkt-members-update-inputs-focus-color);\n      }\n      `,`.rhkt-members-update-inputs::placeholder {\n        color: var(--rhkt-members-update-inputs-placeholder-color);\n        font-family: var(--rhkt-members-update-inputs-placeholder-font-family);\n        font-style: var(--rhkt-members-update-inputs-placeholder-font-style);\n        font-size: var(--rhkt-members-update-inputs-placeholder-font-size);\n        font-weight: var(--rhkt-members-update-inputs-placeholder-font-weight);\n      }\n      `,`.rhkt-members-update-inputs.error {\n        box-shadow: 0px 0px 0px 2px var(--rhkt-members-update-inputs-error);\n      }\n      `,`.rhkt-members-update label p, .rhkt-members-update-label p {\n        margin: 0;\n        color: var(--rhkt-members-update-inputs-color);\n      }`,`.checkbox-checkmark {\n        color: var(--rhkt-members-update-inputs-color);\n        position: absolute;\n        top: 0;\n        left: 0;\n        right: 0;\n        bottom: 0;\n        pointer-events: none;\n        justify-content: center;\n        align-items: center;\n        display: flex;\n      }`,`.success-checkmark {\n        height: 60px;\n        width: 60px;\n        background: var(--rhkt-members-update-button-fill-color);\n        color: var(--rhkt-members-update-button-color);\n        border-radius: 50%;\n        display: flex;\n        justify-content: center;\n        align-items: center;\n      }`,`.rhkt-members-update input[type=\"submit\"] {\n            border: var(--rhkt-members-update-button-border);\n            border: var(--rhkt-members-update-button-border);\n      }`]);function CheckMark({isVisible,className,size=\"small\"}){const{width,height}={small:{width:14,height:14},large:{width:28,height:28}}[size];return /*#__PURE__*/_jsx(AnimatePresence,{children:isVisible&&/*#__PURE__*/_jsx(motion.div,{className:className,initial:{scale:0},animate:{scale:1},exit:{scale:0},transition:{duration:.3},children:/*#__PURE__*/_jsx(\"svg\",{style:{pointerEvents:\"none\"},xmlns:\"http://www.w3.org/2000/svg\",width:width,height:height,viewBox:\"0 0 28 28\",children:/*#__PURE__*/_jsx(\"path\",{style:{pointerEvents:\"none\"},d:\"M 2 14 L 10 22 L 26 6\",fill:\"transparent\",strokeWidth:\"4\",stroke:\"currentColor\",strokeLinecap:\"round\"})})})});}function Spinner({size=\"small\"}){const{width,height}={small:{width:16,height:16},large:{width:32,height:32}}[size];return /*#__PURE__*/_jsx(motion.div,{initial:{rotate:0},animate:{rotate:360},transition:{duration:2,repeat:Infinity},children:/*#__PURE__*/_jsxs(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",style:{height,width},viewBox:\"0 0 16 16\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M 8 0 C 3.582 0 0 3.582 0 8 C 0 12.419 3.582 16 8 16 C 12.418 16 16 12.419 16 8 C 15.999 3.582 12.418 0 8 0 Z M 8 14 C 4.687 14 2 11.314 2 8 C 2 4.687 4.687 2 8 2 C 11.314 2 14 4.687 14 8 C 14 11.314 11.314 14 8 14 Z\",fill:\"currentColor\",opacity:\"0.2\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M 8 0 C 12.418 0 15.999 3.582 16 8 C 16 8 16 9 15 9 C 14 9 14 8 14 8 C 14 4.687 11.314 2 8 2 C 4.687 2 2 4.687 2 8 C 2 8 2 9 1 9 C 0 9 0 8 0 8 C 0 3.582 3.582 0 8 0 Z\",fill:\"currentColor\"})]})});}/* CONFIG */ThentyUpdateUser.defaultProps={colorPalette:{color:\"#000000\",placeholderColor:\"#00000050\",inputBackground:\"#E8E8E8\",errorColor:\"#C70000\",focusColor:\"#000000\"},border:{borderRadius:8,borderWidth:0,borderColor:\"#FAFAFA\",customBorderRadius:false},padding:15,customPadding:false,submit:{label:\"Save\",buttonFill:\"#000000\",textColor:\"#FFFFFF\",hoverButtonFill:\"#ffffff\",hoverTextColor:\"#000000\",borderWidth:0,borderColor:\"#FAFAFA\"},successTextLabel:\"Success\",errorTextLabel:\"There was an error. Please try again\",spacing:15};const inputTypes=[\"checkbox\",\"email\",\"text\",\"submit\",// \"button\",\n// \"hidden\",\n\"number\"];addPropertyControls(ThentyUpdateUser,{fields:{type:ControlType.Array,control:{type:ControlType.Object,controls:{key:{title:\"key\",type:ControlType.String,defaultValue:`input-${Math.random()}`},placeholderText:{title:\"Placeholder\",type:ControlType.String,defaultValue:\"placeholder\"},type:{title:\"type\",type:ControlType.Enum,defaultValue:\"text\",options:inputTypes},inputWidth:{type:ControlType.Enum,title:\"Input Width\",options:[\"auto / span 1\",\"auto / span 2\"],optionTitles:[\"Half\",\"Full\"],defaultValue:\"auto / span 2\"},required:{type:ControlType.Boolean,title:\"Required\",defaultValue:true},labelText:{title:\"Label\",type:ControlType.String,defaultValue:\"\"},errorText:{title:\"Error\",type:ControlType.String,defaultValue:\"\"}}},defaultValue:[{key:\"email_address\",labelText:\"Email Address\",placeholderText:\"Your email address\"},{key:\"name\",type:\"text\",labelText:\"Name\",placeholderText:\"Your name\"}]},colorPalette:{title:\"Color Palette\",type:ControlType.Object,controls:{color:{title:\"Label & Input Text\",type:ControlType.Color,defaultValue:\"#000000\"},placeholderColor:{title:\"Placeholder Text\",type:ControlType.Color,defaultValue:\"#00000050\"},inputBackground:{title:\"Input Background\",type:ControlType.Color,defaultValue:\"#E8E8E8\"},errorColor:{title:\"Validation Error Border/Text\",type:ControlType.Color,defaultValue:\"#C70000\"},focusColor:{title:\"Focus Border\",type:ControlType.Color,defaultValue:\"#000000\"}}},border:{title:\"Border\",type:ControlType.Object,controls:{borderRadius:{title:\"Radius\",type:ControlType.FusedNumber,toggleKey:\"customBorderRadius\",toggleTitles:[\"Radius\",\"Custom radius\"],valueKeys:[\"topLeftRadius\",\"topRightRadius\",\"bottomRightRadius\",\"bottomLeftRadius\"],valueLabels:[\"Top Left\",\"Top Right\",\"Bottom Right\",\"Bottom Left\"],min:0},borderWidth:{title:\"Width\",type:ControlType.Number,displayStepper:true,defaultValue:0,min:0},borderColor:{title:\"Color\",type:ControlType.Color,defaultValue:\"#FAFAFA\"}}},submit:{title:\"Submit\",type:ControlType.Object,controls:{label:{title:\"Submit Button Label\",type:ControlType.String,defaultValue:\"Save\"},buttonFill:{title:\"Button Fill\",type:ControlType.Color,defaultValue:\"#000000\"},textColor:{title:\"Text Color\",type:ControlType.Color,defaultValue:\"#FFFFFF\"},hoverButtonFill:{title:\"Hover Button Fill\",type:ControlType.Color,defaultValue:\"#ffffff\"},hoverTextColor:{title:\"Hover Text Color\",type:ControlType.Color,defaultValue:\"#000000\"},borderColor:{title:\"Border Color\",type:ControlType.Color,defaultValue:\"#FAFAFA\"},borderWidth:{title:\"Border Width\",type:ControlType.Number,displayStepper:true,defaultValue:0,min:0}}},successTextLabel:{title:\"Success Message\",placeholder:\"Success\",type:ControlType.String},errorTextLabel:{title:\"Fallback Error Message\",placeholder:\"There was an error. Please try again\",type:ControlType.String},spacing:{title:\"Spacing\",type:ControlType.Number,displayStepper:true,min:0},padding:{type:ControlType.FusedNumber,toggleKey:\"customPadding\",toggleTitles:[\"Padding\",\"Custom padding\"],valueKeys:[\"paddingTop\",\"paddingRight\",\"paddingBottom\",\"paddingLeft\"],valueLabels:[\"Top\",\"Right\",\"Bottom\",\"Left\"],min:0,title:\"Input Inner Padding\"},font:{type:\"font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:14,lineHeight:1.5}},customLoadingComponent:{title:\"Custom Loading Component\",type:ControlType.ComponentInstance},successEvent:{title:\"Success\",type:ControlType.EventHandler}});export default ThentyUpdateUser;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ThentyUpdateUser\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ThentyUpdateUser.map"],
  "mappings": "0PAAka,IAAMA,EAA0BC,EAAW,CAAC,CAAC,IAAAC,EAAI,QAAQ,KAAAC,EAAK,MAAAC,EAAM,GAAGC,CAAK,EAAEC,IAAoFC,EAAxBL,EAA0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Aa,aAAa,CAAC,SAAS,GAAG,WAAW,GAAG,CAAC,EAAE,uBAAuB,CAAC,MAAM,2BAA2B,KAAKA,EAAY,iBAAiB,EAAE,aAAa,CAAC,MAAM,UAAU,KAAKA,EAAY,YAAY,CAAC,CAAC,EAAE,IAAOC,GAAQzE",
  "names": ["InputElement", "Y", "tag", "rows", "error", "props", "ref", "p", "Checkbox", "checked", "labelText", "font", "u", "CheckMark", "TextInput", "name1", "l", "elementFromType", "useBorder", "borderRadius", "customBorderRadius", "topLeftRadius", "topRightRadius", "bottomRightRadius", "bottomLeftRadius", "borderColor", "borderWidth", "se", "useInputStyles", "color", "inputBackground", "customPadding", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "useSubmitStyles", "buttonFill", "textColor", "hoverButtonFill", "hoverTextColor", "ThentyUpdateUser", "withCSS", "_window", "isSuccess", "setIsSuccess", "ye", "isError", "setIsError", "isLoading", "setIsLoading", "register", "handleSubmit", "watch", "errors", "isValid", "setValue", "useForm", "colorPalette", "border", "submit", "successTextLabel", "errorTextLabel", "spacing", "fields", "customLoadingComponent", "successEvent", "errorColor", "focusColor", "placeholderColor", "paddingProps", "inputBorderStyle", "inputStyle", "submitButtonStyle", "containerTokens", "authorization", "useThenty", "ue", "window", "fetchUser", "_authorization_authorization", "thentyAuth", "responseBody", "key", "value", "x", "err", "onSubmit", "data", "_authorization_member", "initialValues", "next", "field", "_field_value", "motion", "Spinner", "type", "inputWidth", "required", "placeholderText", "errorText", "_errors_key", "_errors_key1", "isChecked", "Element", "isVisible", "className", "size", "width", "height", "AnimatePresence", "inputTypes", "addPropertyControls", "ControlType", "ThentyUpdateUser_default"]
}
