{"version":3,"file":"LLM_Chat.BTdatqlP.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/9rTkDYhEcavkaOuxpNII/gl85IrGVF3vitBGuDpVj/LLM_Chat.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const helpers=[{id:\"chatgpt\",label:\"Open in ChatGPT\",background:\"#10a37f\",hoverBackground:\"#0e8c6b\",renderIcon:className=>/*#__PURE__*/_jsx(\"svg\",{className:className,viewBox:\"0 0 24 24\",fill:\"currentColor\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.8956zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8351-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z\"})})},{id:\"claude\",label:\"Open in Claude\",background:\"#D97757\",hoverBackground:\"#C66646\",renderIcon:className=>/*#__PURE__*/_jsx(\"svg\",{className:className,viewBox:\"0 0 24 24\",fill:\"currentColor\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{fillRule:\"evenodd\",d:\"M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z\"})})},{id:\"perplexity\",label:\"Open in Perplexity\",background:\"#20808D\",hoverBackground:\"#1A6B75\",renderIcon:className=>/*#__PURE__*/_jsxs(\"svg\",{className:className,viewBox:\"0 0 24 24\",fill:\"none\",\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M12 2L2 7L12 12L22 7L12 2Z\",fill:\"currentColor\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M2 17L12 22L22 17\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M2 12L12 17L22 12\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})]})},{id:\"copy\",label:\"Copy URL\",background:\"#6B7280\",hoverBackground:\"#4B5563\",renderIcon:className=>/*#__PURE__*/_jsx(\"svg\",{className:className,viewBox:\"0 0 24 24\",fill:\"currentColor\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M16 1H6a2 2 0 00-2 2v10h2V3h10V1zm1 4H10a2 2 0 00-2 2v10a2 2 0 002 2h7a2 2 0 002-2V7a2 2 0 00-2-2zm0 12H10V7h7v10z\"})})}];const styles=`\n.llm-chat-root {\n    position: fixed;\n    z-index: 9999;\n    display: flex;\n    flex-direction: column;\n    gap: 12px;\n}\n\n.llm-chat-root.align-left {\n    align-items: flex-start;\n}\n\n.llm-chat-root.align-right {\n    align-items: flex-end;\n}\n\n.llm-chat-button {\n    display: inline-flex;\n    align-items: center;\n    justify-content: center;\n    gap: 0;\n    padding: 12px;\n    border: none;\n    border-radius: 12px;\n    background-color: var(--llm-bg, #10a37f);\n    color: #ffffff;\n    font-size: 14px;\n    font-weight: 500;\n    cursor: pointer;\n    box-shadow: 0 14px 22px -16px rgba(0, 0, 0, 0.45);\n    transition: all 0.3s ease;\n    white-space: nowrap;\n    overflow: hidden;\n    width: 48px;\n}\n\n.llm-chat-button.size-small {\n    padding: 8px;\n    border-radius: 8px;\n    width: 36px;\n}\n\n.llm-chat-button.size-medium {\n    padding: 12px;\n    border-radius: 12px;\n    width: 48px;\n}\n\n.llm-chat-button.size-large {\n    padding: 16px;\n    border-radius: 16px;\n    width: 60px;\n}\n\n.llm-chat-button:hover {\n    background-color: var(--llm-hover, var(--llm-bg, #10a37f));\n    transform: scale(1.05);\n    box-shadow: 0 20px 28px -18px rgba(0, 0, 0, 0.5);\n    width: auto;\n    padding-left: 12px;\n    padding-right: 20px;\n    gap: 8px;\n}\n\n.llm-chat-button.size-small:hover {\n    padding-left: 8px;\n    padding-right: 12px;\n    gap: 6px;\n}\n\n.llm-chat-button.size-large:hover {\n    padding-left: 16px;\n    padding-right: 28px;\n    gap: 10px;\n}\n\n.llm-chat-icon {\n    width: 20px;\n    height: 20px;\n    display: inline-flex;\n    flex-shrink: 0;\n}\n\n.llm-chat-button.size-small .llm-chat-icon {\n    width: 16px;\n    height: 16px;\n}\n\n.llm-chat-button.size-large .llm-chat-icon {\n    width: 24px;\n    height: 24px;\n}\n\n.llm-chat-label {\n    display: inline-flex;\n    align-items: center;\n    white-space: nowrap;\n    opacity: 0;\n    max-width: 0;\n    transition: opacity 0.3s ease, max-width 0.3s ease;\n}\n\n.llm-chat-button:hover .llm-chat-label {\n    opacity: 1;\n    max-width: 200px;\n}\n\n@media (max-width: 640px) {\n    .llm-chat-root {\n        gap: 8px;\n    }\n\n    .llm-chat-button:hover .llm-chat-label {\n        display: none;\n    }\n}\n`;export default function LLM_Chat(props){const{visible=true,alignment=\"left\",horizontalOffset=60,bottomOffset=24,size=\"medium\"}=props;if(!visible)return null;const containerStyle={bottom:bottomOffset,...alignment===\"left\"?{left:horizontalOffset}:{right:horizontalOffset}};const handleHelperClick=helperId=>{const text=\"Read from https://www.limesync.ai?utm_source=ai-chatgpt so I can ask questions about it.\";const encodedText=encodeURIComponent(text);let url=\"\";switch(helperId){case\"chatgpt\":url=`https://chatgpt.com/?q=${encodedText}`;break;case\"claude\":url=`https://claude.ai/new?q=${encodedText}`;break;case\"perplexity\":url=`https://www.perplexity.ai/search?q=${encodedText}`;break;case\"copy\":navigator.clipboard.writeText(text).then(()=>{console.log(\"Text copied to clipboard\");}).catch(err=>{console.error(\"Failed to copy text:\",err);});return;default:return;}window.open(url,\"_blank\");};return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:styles}),/*#__PURE__*/_jsx(\"div\",{\"aria-label\":\"AI helpers\",className:`llm-chat-root align-${alignment}`,style:containerStyle,children:helpers.map(helper=>/*#__PURE__*/_jsxs(\"button\",{className:`llm-chat-button size-${size}`,style:{\"--llm-bg\":helper.background,\"--llm-hover\":helper.hoverBackground},type:\"button\",onClick:()=>handleHelperClick(helper.id),children:[helper.renderIcon(\"llm-chat-icon\"),/*#__PURE__*/_jsx(\"span\",{className:\"llm-chat-label\",children:helper.label})]},helper.id))})]});}addPropertyControls(LLM_Chat,{visible:{title:\"Visible\",type:ControlType.Boolean,defaultValue:true},size:{title:\"Size\",type:ControlType.Enum,options:[\"small\",\"medium\",\"large\"],optionTitles:[\"Small\",\"Medium\",\"Large\"],defaultValue:\"medium\"},alignment:{title:\"Align\",type:ControlType.Enum,options:[\"left\",\"right\"],optionTitles:[\"Left\",\"Right\"],defaultValue:\"left\"},horizontalOffset:{title:\"Horizontal\",type:ControlType.Number,defaultValue:60,min:0,max:600,displayStepper:true},bottomOffset:{title:\"Bottom\",type:ControlType.Number,defaultValue:24,min:0,max:600,displayStepper:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LLM_Chat\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LLM_Chat.map"],"mappings":"+LAqHE,SAAwB,EAAS,EAAM,CAAC,GAAK,CAAC,UAAQ,GAAK,YAAU,OAAO,mBAAiB,GAAG,eAAa,GAAG,OAAK,UAAU,EAAM,GAAG,CAAC,EAAQ,OAAO,KAAK,IAAM,EAAe,CAAC,OAAO,EAAa,GAAG,IAAY,OAAO,CAAC,KAAK,EAAiB,CAAC,CAAC,MAAM,EAAiB,CAAC,CAAO,EAAkB,GAAU,CAAC,IAA4G,EAAY,uHAA6B,EAAI,GAAG,OAAO,EAAP,CAAiB,IAAI,UAAU,EAAI,0BAA0B,IAAc,MAAM,IAAI,SAAS,EAAI,2BAA2B,IAAc,MAAM,IAAI,aAAa,EAAI,sCAAsC,IAAc,MAAM,IAAI,OAAO,EAAU,UAAU,UAAU,2FAAK,CAAC,SAAS,CAAC,QAAQ,IAAI,2BAA2B,EAAG,CAAC,MAAM,GAAK,CAAC,QAAQ,MAAM,uBAAuB,EAAI,EAAG,CAAC,OAAO,QAAQ,OAAQ,EAAO,KAAK,EAAI,SAAS,EAAG,OAAoB,EAAMA,EAAU,CAAC,SAAS,CAAc,EAAK,QAAQ,CAAC,SAAS,EAAO,CAAC,CAAc,EAAK,MAAM,CAAC,a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