{"version":3,"file":"FloatingAIButtons.D_mBErR4.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/1FltoVYC7u7VRyE2sm7D/LpxCNFULtPUiRuwtyheW/FloatingAIButtons.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function FloatingAIButtons(props){const[flag,setFlag]=useState(false);useEffect(()=>{setFlag(true);},[]);if(!flag)return null;const buttons=[{id:\"chatgpt\",url:props.chatgptUrl,title:\"Analyze in ChatGPT\",bg:\"#14b38b\",svg:/*#__PURE__*/_jsx(\"svg\",{width:\"360\",height:\"365\",viewBox:\"0 0 360 365\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M335.772 149.104C338.849 139.859 340.418 130.178 340.42 120.434C340.419 104.31 336.124 88.4778 327.977 74.564C311.607 46.068 281.239 28.475 248.372 28.475C241.906 28.475 235.429 29.158 229.108 30.515C220.592 20.9204 210.14 13.24 198.439 7.98009C186.738 2.72022 174.056 0.000408685 161.227 0H160.651C160.592 0.002 160.502 0.0019989 160.435 0.0019989C120.628 0.0019989 85.327 25.688 73.089 63.556C47.463 68.795 25.341 84.866 12.407 107.586C4.28522 121.584 0.00518577 137.479 0 153.663C0.00322837 176.407 8.44623 198.34 23.694 215.216C20.616 224.461 19.0463 234.142 19.045 243.886C19.0464 260.009 23.3408 275.842 31.487 289.756C47.856 318.26 78.227 335.843 111.097 335.843C117.569 335.843 124.022 335.16 130.35 333.803C138.867 343.398 149.321 351.078 161.022 356.338C172.724 361.598 185.408 364.318 198.237 364.319H198.813L199.047 364.318C238.876 364.318 274.166 338.632 286.404 300.73C312.03 295.488 334.152 279.418 347.086 256.697C355.199 242.712 359.471 226.83 359.469 210.662C359.466 187.918 351.024 165.985 335.776 149.109L335.772 149.104ZM198.837 340.501H198.743C182.806 340.496 167.374 334.905 155.132 324.701C155.859 324.31 156.578 323.903 157.287 323.48L229.827 281.579C231.637 280.549 233.142 279.057 234.189 277.257C235.237 275.456 235.788 273.411 235.789 271.328V168.991L266.45 186.695C266.776 186.858 267 187.174 267.046 187.535V272.228C267.004 309.881 236.493 340.426 198.837 340.501ZM52.148 277.852C46.1564 267.491 42.9998 255.735 42.996 243.767C42.996 239.863 43.337 235.95 44.001 232.104C44.54 232.427 45.481 233.001 46.156 233.389L118.696 275.29C120.505 276.344 122.561 276.9 124.655 276.899C126.749 276.899 128.805 276.343 130.614 275.288L219.177 224.151V259.559C219.187 259.74 219.152 259.92 219.076 260.084C218.999 260.248 218.884 260.39 218.739 260.499L145.409 302.838C135.033 308.809 123.271 311.954 111.299 311.958C99.3149 311.956 87.5418 308.804 77.1602 302.817C66.7786 296.83 58.1533 288.22 52.149 277.848L52.148 277.852ZM33.065 119.492C41.0317 105.653 53.6116 95.057 68.603 89.558C68.603 90.183 68.567 91.289 68.567 92.058V175.859L68.566 175.929C68.5664 178.01 69.1174 180.053 70.1632 181.852C71.2089 183.651 72.7121 185.141 74.52 186.171L163.084 237.301L132.423 255.005C132.272 255.105 132.098 255.165 131.918 255.182C131.737 255.198 131.556 255.169 131.389 255.098L58.052 212.723C47.6844 206.717 39.0773 198.092 33.0933 187.712C27.1093 177.332 23.9586 165.561 23.957 153.58C23.9619 141.617 27.1038 129.865 33.069 119.495L33.065 119.492ZM284.972 178.113L196.409 126.976L227.07 109.279C227.221 109.179 227.395 109.118 227.575 109.102C227.756 109.086 227.937 109.114 228.104 109.185L301.441 151.524C322.55 163.719 335.573 186.27 335.573 210.656C335.573 239.26 317.724 264.855 290.887 274.734V188.426C290.891 188.394 290.891 188.361 290.891 188.33C290.891 184.111 288.63 180.211 284.972 178.113ZM315.49 132.183C314.951 131.852 314.01 131.285 313.335 130.897L240.795 88.996C238.986 87.9418 236.93 87.3859 234.837 87.385C232.745 87.385 230.687 87.943 228.88 88.996L140.316 140.133V104.725L140.315 104.664C140.315 104.493 140.355 104.325 140.431 104.172C140.508 104.019 140.618 103.886 140.755 103.784L214.085 61.481C224.458 55.5011 236.22 52.3529 248.193 52.352C285.897 52.352 316.474 82.929 316.474 120.633C316.472 124.502 316.143 128.364 315.49 132.178V132.183ZM123.647 195.292L92.979 177.588C92.8181 177.508 92.6795 177.389 92.5755 177.243C92.4715 177.096 92.4054 176.926 92.383 176.748V92.056C92.399 54.371 122.976 23.82 160.664 23.82C176.626 23.8236 192.083 29.415 204.353 39.624C203.627 40.0172 202.908 40.4246 202.198 40.846L129.658 82.746C127.848 83.7759 126.343 85.2666 125.296 87.0666C124.249 88.8665 123.697 90.9117 123.697 92.994V93.062L123.647 195.292ZM140.302 159.382L179.747 136.6L219.191 159.367V204.917L179.747 227.684L140.302 204.917V159.382Z\",fill:\"white\"})})},{id:\"perplexity\",url:props.perplexityUrl,title:\"Analyze in Perplexity\",bg:\"black\",svg:/*#__PURE__*/_jsxs(\"svg\",{height:\"1em\",style:{flex:\"none\",lineHeight:1},viewBox:\"0 0 24 24\",width:\"1em\",xmlns:\"http://www.w3.org/2000/svg\",children:[/*#__PURE__*/_jsx(\"title\",{children:\"Perplexity\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M19.785 0v7.272H22.5V17.62h-2.935V24l-7.037-6.194v6.145h-1.091v-6.152L4.392 24v-6.465H1.5V7.188h2.884V0l7.053 6.494V.19h1.09v6.49L19.786 0zm-7.257 9.044v7.319l5.946 5.234V14.44l-5.946-5.397zm-1.099-.08l-5.946 5.398v7.235l5.946-5.234V8.965zm8.136 7.58h1.844V8.349H13.46l6.105 5.54v2.655zm-8.982-8.28H2.59v8.195h1.8v-2.576l6.192-5.62zM5.475 2.476v4.71h5.115l-5.115-4.71zm13.219 0l-5.115 4.71h5.115v-4.71z\",fill:\"#FFFFFF\",fillRule:\"nonzero\"})]})},{id:\"claude\",url:props.claudeUrl,title:\"Analyze in Claude\",bg:\"#d77655\",svg:/*#__PURE__*/_jsx(\"svg\",{width:\"375\",height:\"375\",viewBox:\"0 0 375 375\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M73.424 249.068L147.079 207.742L148.317 204.153L147.079 202.157L143.49 202.156L131.18 201.397L89.096 200.259L52.598 198.743L17.237 196.847L8.34 194.952L0 183.957L0.859001 178.473L8.341 173.443L19.058 174.378L42.741 175.995L78.278 178.447L104.06 179.964L142.253 183.932H148.317L149.177 181.481L147.104 179.964L145.486 178.447L108.71 153.525L68.9 127.187L48.048 112.021L36.775 104.338L31.088 97.134L28.637 81.413L38.874 70.14L52.624 71.075L56.137 72.011L70.065 82.727L99.814 105.754L138.662 134.366L144.349 139.093L146.624 137.476L146.902 136.338L144.349 132.067L123.219 93.874L100.673 55.026L90.638 38.925L87.984 29.27C87.049 25.302 86.367 21.966 86.367 17.896L98.019 2.073L104.464 0L120.009 2.073L126.556 7.75999L136.211 29.852L151.857 64.632L176.122 111.923L183.225 125.951L187.016 138.943L188.432 142.911L190.881 142.91V140.635L192.878 113.994L196.568 81.287L200.157 39.203L201.396 27.349L207.259 13.143L218.911 5.46L228.01 9.808L235.492 20.524L234.456 27.45L230.007 56.365L221.287 101.659L215.6 131.99H218.913L222.705 128.199L238.047 107.827L263.829 75.6L275.203 62.811L288.473 48.682L296.99 41.958L313.09 41.957L324.944 59.574L319.637 77.773L303.056 98.802L289.306 116.621L269.59 143.161L257.281 164.392L258.419 166.086L261.351 165.808L305.887 156.329L329.949 151.982L358.663 147.054L371.655 153.12L373.071 159.287L367.965 171.9L337.255 179.483L301.237 186.687L247.601 199.376L246.944 199.856L247.702 200.791L271.866 203.066L282.203 203.622H307.504L354.618 207.136L366.927 215.275L374.308 225.234L373.07 232.817L354.113 242.472L328.534 236.406L268.832 222.201L248.358 217.095L245.528 217.094V218.788L262.589 235.47L293.855 263.703L333.007 300.1L335.004 309.099L329.974 316.201L324.667 315.443L290.266 289.56L276.996 277.909L246.943 252.607L244.947 252.606V255.26L251.873 265.396L288.447 320.371L290.342 337.23L287.689 342.715L278.21 346.026L267.796 344.131L246.388 314.077L224.296 280.233L206.477 249.902L204.304 251.14L193.789 364.401L188.86 370.189L177.486 374.537L168.008 367.333L162.978 355.681L168.008 332.654L174.074 302.602L179.002 278.716L183.451 249.042L186.105 239.184L185.928 238.527L183.755 238.805L161.385 269.515L127.364 315.492L100.445 344.307L94 346.86L82.827 341.071L83.864 330.734L90.107 321.534L127.364 274.142L149.834 244.771L164.342 227.81L164.241 225.359H163.382L64.428 289.61L46.81 291.885L39.227 284.782L40.163 273.13L43.752 269.339L73.501 248.865L73.4 248.967L73.424 249.068Z\",fill:\"#FCF2EE\"})})},{id:\"gemini\",url:props.geminiUrl,title:\"Analyze in Gemini\",bg:\"aliceblue\",svg:/*#__PURE__*/_jsxs(\"svg\",{fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 16 16\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M16 8.016A8.522 8.522 0 008.016 16h-.032A8.521 8.521 0 000 8.016v-.032A8.521 8.521 0 007.984 0h.032A8.522 8.522 0 0016 7.984v.032z\",fill:\"url(#prefix__paint0_radial_980_20147)\"}),/*#__PURE__*/_jsx(\"defs\",{children:/*#__PURE__*/_jsxs(\"radialGradient\",{id:\"prefix__paint0_radial_980_20147\",cx:\"0\",cy:\"0\",r:\"1\",gradientUnits:\"userSpaceOnUse\",gradientTransform:\"matrix(16.1326 5.4553 -43.70045 129.2322 1.588 6.503)\",children:[/*#__PURE__*/_jsx(\"stop\",{offset:\".067\",stopColor:\"#9168C0\"}),/*#__PURE__*/_jsx(\"stop\",{offset:\".343\",stopColor:\"#5684D1\"}),/*#__PURE__*/_jsx(\"stop\",{offset:\".672\",stopColor:\"#1BA1E3\"})]})})]})},{id:\"grok\",url:props.grokUrl,title:\"Analyze in Grok\",bg:\"black\",svg:/*#__PURE__*/_jsx(\"svg\",{width:\"376\",height:\"361\",viewBox:\"0 0 376 361\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:/*#__PURE__*/_jsx(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M145.141 231.596L324.117 51.594V51.763L375.812 0C374.888 1.32 373.952 2.60501 373.027 3.89001C333.746 58.054 314.567 84.539 329.957 150.812L329.867 150.711C340.477 195.821 329.123 245.848 292.469 282.547C246.253 328.853 172.302 339.158 111.406 297.475L153.868 277.8C192.731 293.078 235.26 286.37 265.815 255.77C296.381 225.17 303.247 180.611 287.88 143.518C284.96 136.493 276.21 134.723 270.088 139.255L145.141 231.596ZM119.355 254.033L119.322 254.067L0 360.794C7.565 350.365 16.957 340.5 26.327 330.645C52.755 302.842 78.98 275.286 62.981 236.343C41.559 184.231 54.029 123.166 93.705 83.445C134.948 42.191 195.685 31.784 246.411 52.687C257.641 56.859 267.427 62.801 275.049 68.326L232.69 87.91C193.25 71.347 148.061 82.611 120.483 110.223C83.185 147.531 75.643 212.226 119.355 254.033Z\",fill:\"white\"})})}];return /*#__PURE__*/_jsxs(\"div\",{id:\"ai-float-123xyz-wrapper\",style:{display:props.show?\"flex\":\"none\"},children:[buttons.map(btn=>/*#__PURE__*/_jsx(\"a\",{href:btn.url,target:\"_blank\",rel:\"noopener noreferrer\",className:\"ai-float-123xyz-btn\",\"data-title\":btn.title,style:{backgroundColor:btn.bg},children:btn.svg},btn.id)),/*#__PURE__*/_jsx(\"style\",{children:`\n        #ai-float-123xyz-wrapper {\n          position: fixed;\n          top: 50%;\n          right: 20px;\n          transform: translateY(-50%);\n          display: flex;\n          flex-direction: column;\n          gap: 16px;\n          z-index: 9999;\n        }\n\n        .ai-float-123xyz-btn {\n          width: 48px;\n          height: 48px;\n          border-radius: 50%;\n          background: white;\n          box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);\n          display: flex;\n          align-items: center;\n          justify-content: center;\n          position: relative;\n          cursor: pointer;\n          transition: transform 0.2s ease;\n        }\n\n        .ai-float-123xyz-btn:hover {\n          transform: scale(1.05);\n        }\n\n        .ai-float-123xyz-btn::after {\n          content: attr(data-title);\n          position: absolute;\n          right: 60px;\n          background: #333;\n          color: white;\n          padding: 6px 10px;\n          border-radius: 6px;\n          font-size: 13px;\n          white-space: nowrap;\n          opacity: 0;\n          transition: opacity 0.2s ease;\n          pointer-events: none;\n        }\n\n        .ai-float-123xyz-btn:hover::after {\n          opacity: 1;\n        }\n\n        .ai-float-123xyz-btn svg {\n          width: 24px;\n          height: 24px;\n        }\n\n         @media screen and (max-width: 768px) {\n          #ai-float-123xyz-wrapper {\n            top: auto;\n            bottom: 0px;\n            left: 20px;\n            right: auto;\n            // transform: translateX(25%);\n            flex-direction: row;\n            gap: 12px;\n          }\n\n          .ai-float-123xyz-btn {\n            width: 40px;\n            height: 40px;\n          }\n\n          .ai-float-123xyz-btn svg {\n            width: 20px;\n            height: 20px;\n          }\n\n          .ai-float-123xyz-btn::after {\n            bottom: 50px;\n            right: auto;\n            left: 50%;\n            transform: translateX(-50%);\n          }\n        }\n      `})]});}addPropertyControls(FloatingAIButtons,{chatgptUrl:{type:ControlType.String,title:\"ChatGPT URL\",defaultValue:\"https://chat.openai.com\"},perplexityUrl:{type:ControlType.String,title:\"Perplexity URL\",defaultValue:\"https://www.perplexity.ai\"},claudeUrl:{type:ControlType.String,title:\"Claude URL\",defaultValue:\"https://claude.ai\"},geminiUrl:{type:ControlType.String,title:\"Gemini URL\",defaultValue:\"https://gemini.google.com\"},grokUrl:{type:ControlType.String,title:\"Grok URL\",defaultValue:\"https://grok.com/\"},show:{type:ControlType.Boolean,title:\"Show\",defaultValue:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FloatingAIButtons\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FloatingAIButtons.map"],"mappings":"mLAAmJ,SAAwB,EAAkB,EAAM,CAAC,GAAK,CAAC,EAAK,GAASA,EAAS,GAAM,CAAoC,GAAnC,MAAc,C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