{
  "version": 3,
  "sources": ["ssg:https://framer.com/m/LetterEditResources-JhNO.js@j26JYKsfVtPCH9oMS7YI", "ssg:https://framerusercontent.com/modules/DNASLSx3vy6TC2aUPMNt/ONqvVJyt17KNnQvdnWRi/LetterEdit.js"],
  "sourcesContent": ["const namedLeaves={LeafQiaoMuSuan:\"https://framerusercontent.com/images/vISIuNrotWU9rlHJU9K88B0cvsM.png\",LeafZhuoJiuYe:\"https://framerusercontent.com/images/rO4tRZpUDqnGSP6p9SVnSObEHcQ.png\",LeafKuZiGuo:\"https://framerusercontent.com/images/x2NnamfkYI2kA4ha4cs5ulfrb5E.png\",LeafDeManCao:\"https://framerusercontent.com/images/Dv2Dp5mgXYLnUORRm5CdAhNi4.png\",LeafJuYe:\"https://framerusercontent.com/images/F0gEGapzw48db5ZRThHEe8Z6xQ.png\",LeafZaoHaiTang:\"https://framerusercontent.com/images/mCy7kJWH0mOG4mTddvi0t82Y.png\",LeafHuLuYe:\"https://framerusercontent.com/images/C6TZl4pTSRkpaqqNBZpLKeSfX0A.png\",LeafHuaTaoMu:\"https://framerusercontent.com/images/ppiGL5Di3lIk5k3smzNJTWugk.png\",LeafGanLanYe:\"https://framerusercontent.com/images/3SUlByi9deZfQOw9dWVhOGgShI.png\",LeafCheQianCao:\"https://framerusercontent.com/images/9tO4Rvq8yBWGqri7lxwiWOYKsY.png\",LeafHuangDouYe:\"https://framerusercontent.com/images/NwaL5PhJ0OcSxhQVI51qLuHU.png\",LeafHeHua:\"https://framerusercontent.com/images/MWKwurkJMIlGfaYfVM6pVHpm3CA.png\",LeafBaJiaoYe:\"https://framerusercontent.com/images/I2cW0i9MwNnM1XnvW4KqcYHf24.png\",LeafDaYeXianMao:\"https://framerusercontent.com/images/DfI0xEfXsuIa89QgxKJpzZnKAN0.png\",LeafZhuZi:\"https://framerusercontent.com/images/KJgI15Or9Sb0VIIQ8Jk0vEWdY.png\"};export function getTemplateComponnets(templateConfig){const{leaf}=templateConfig;return{Leaf:namedLeaves[leaf]};}\nexport const __FramerMetadata__ = {\"exports\":{\"getTemplateComponnets\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LetterEditResources.map", "import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState}from\"react\";import{getTemplateConfig}from\"https://framer.com/m/Common-TToA.js@JTyk6pxeqXIbkq0tRH3J\";import{getTemplateComponnets}from\"https://framer.com/m/LetterEditResources-JhNO.js@j26JYKsfVtPCH9oMS7YI\";function goToBackgroundChoice(message){const{leaf}=getTemplateConfig();const url=window.location.href;const lastPart=url.substring(url.lastIndexOf(\"/\")+1);const link=document.createElement(\"a\");link.href=`https://towardsleaf.com/backgroundchoice-2?leaf=${leaf}&message=${message}`;link.click();}export default function LetterEdit(props){const config=getTemplateConfig();const{Leaf}=getTemplateComponnets(config);const[text,setText]=useState(\"\");const handleLetterEditConfirm=()=>{// message value\ngoToBackgroundChoice(text);};const handleChange=event=>{setText(event.target.value);};const goBack=()=>{window.history.back();};return /*#__PURE__*/_jsxs(\"div\",{style:rootStyles,children:[/*#__PURE__*/_jsxs(\"div\",{style:imageBgStyles,children:[/*#__PURE__*/_jsx(\"span\",{children:\"\u60A8\u9009\u62E9\u7684\u5173\u952E\u8BCD\uFF1A\"}),/*#__PURE__*/_jsx(\"img\",{src:Leaf,style:imageStyles}),/*#__PURE__*/_jsx(\"div\",{style:seperatorStyle})]}),/*#__PURE__*/_jsx(\"textarea\",{onChange:handleChange,placeholder:\"\u8F93\u5165\u60A8\u7684\u4FE1\u4EF6\u5185\u5BB9\uFF08\u5C06\u5C55\u793A\u5728\u660E\u4FE1\u7247\u4E0A\u4E8C\u7EF4\u7801\u7684\u626B\u63CF\u7ED3\u679C\u4E2D\uFF09\",style:inputStyle}),/*#__PURE__*/_jsxs(\"div\",{style:bottomStyles,children:[/*#__PURE__*/_jsx(\"a\",{style:backStyles,onClick:goBack,children:\"< \u4E0A\u4E00\u6B65\"}),/*#__PURE__*/_jsx(\"button\",{style:buttonStyles,onClick:handleLetterEditConfirm,children:\"\u786E\u5B9A\"})]})]});}const rootStyles={width:316,height:\"100%\",overflow:\"hidden\",display:\"flex\",flexDirection:\"column\",margin:\"0 auto\",gap:10};const imageBgStyles={border:\"3px solid rgba(20,68,39,0.2)\",background:\"rgba(201,194,162,0.5)\",position:\"relative\",color:\"#144427\",fontFamily:\"xiaowei Regular\",fontSize:10,padding:\"5px 5px 1px\"};const imageStyles={padding:\"5px 0\",width:307,height:\"auto\"};const seperatorStyle={top:25,left:85,position:\"absolute\",width:1,height:50,background:\"#6E9866\"};const inputStyle={background:\"rgba(110, 156, 102, 0.2)\",resize:\"none\",border:\"3px solid rgba(20, 68, 39, 0.1)\",borderRadius:10,padding:10,outline:\"none\",color:\"#51584B\",height:350,fontSize:14,flexGrow:2,fontFamily:\"xiaowei Regular\"};const bottomStyles={width:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",paddingBottom:20};const backStyles={padding:\"8px 10px\",cursor:\"pointer\",fontFamily:\"xiaowei Regular\"};const buttonStyles={background:\"#144427\",borderRadius:8,color:\"#EEEDE9\",border:\"2px solid #C9C2A2\",opacity:.9,padding:\"8px 30px\",cursor:\"pointer\",fontFamily:\"xiaowei Regular\"};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LetterEdit\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LetterEdit.map"],
  "mappings": "2KAAA,IAAMA,EAAY,CAAC,eAAe,uEAAuE,cAAc,uEAAuE,YAAY,uEAAuE,aAAa,qEAAqE,SAAS,sEAAsE,eAAe,oEAAoE,WAAW,uEAAuE,aAAa,qEAAqE,aAAa,sEAAsE,eAAe,sEAAsE,eAAe,oEAAoE,UAAU,uEAAuE,aAAa,sEAAsE,gBAAgB,uEAAuE,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CAAC,MAAM,IAAI,OAAO,OAAO,SAAS,SAAS,QAAQ,OAAO,cAAc,SAAS,OAAO,SAAS,IAAI,EAAE,EAAQC,EAAc,CAAC,OAAO,+BAA+B,WAAW,wBAAwB,SAAS,WAAW,MAAM,UAAU,WAAW,kBAAkB,SAAS,GAAG,QAAQ,aAAa,EAAQE,EAAY,CAAC,QAAQ,QAAQ,MAAM,IAAI,OAAO,MAAM,EAAQC,EAAe,CAAC,IAAI,GAAG,KAAK,GAAG,SAAS,WAAW,MAAM,EAAE,OAAO,GAAG,WAAW,SAAS,EAAQE,EAAW,CAAC,WAAW,2BAA2B,OAAO,OAAO,OAAO,kCAAkC,aAAa,GAAG,QAAQ,GAAG,QAAQ,OAAO,MAAM,UAAU,OAAO,IAAI,SAAS,GAAG,SAAS,EAAE,WAAW,iBAAiB,EAAQC,EAAa,CAAC,MAAM,OAAO,QAAQ,OAAO,WAAW,SAAS,eAAe,gBAAgB,cAAc,EAAE,EAAQC,EAAW,CAAC,QAAQ,WAAW,OAAO,UAAU,WAAW,iBAAiB,EAAQC,EAAa,CAAC,WAAW,UAAU,aAAa,EAAE,MAAM,UAAU,OAAO,oBAAoB,QAAQ,GAAG,QAAQ,WAAW,OAAO,UAAU,WAAW,iBAAiB",
  "names": ["namedLeaves", "getTemplateComponnets", "templateConfig", "leaf", "goToBackgroundChoice", "message", "leaf", "getTemplateConfig", "url", "window", "lastPart", "link", "LetterEdit", "props", "config", "Leaf", "getTemplateComponnets", "text", "setText", "ye", "u", "rootStyles", "imageBgStyles", "p", "imageStyles", "seperatorStyle", "event", "inputStyle", "bottomStyles", "backStyles", "buttonStyles"]
}
