{"version":3,"file":"APACHomeStorylineABComponentCustomerCentric.CnspH_5S.mjs","names":["_Fragment","APACProductCentric","FAB"],"sources":["https:/framerusercontent.com/modules/aVXditvP5QSqgUHjgLpb/Ki1BKGbidPBruV3mtVnv/APACHomeStorylineABComponentCustomerCentric.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,useState,useRef}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import APACProductCentric from\"https://framer.com/m/APACProductCentric-OdLE.js\";// import APACCustomerCentric from \"https://framer.com/m/APACCustomerCentric-2rGd.js\"\nimport FAB from\"https://framer.com/m/FAB-20Aq.js\";function getCookie(key){try{return decodeURIComponent(document.cookie.replace(new RegExp(\"(?:(?:^|.*;)\\\\s*\"+encodeURIComponent(key).replace(/[-.+*]/g,\"\\\\$&\")+\"\\\\s*\\\\=\\\\s*([^;]*).*$)|^.*$\"),\"$1\"))||\"\";}catch(e){return\"\";}}function getExperimentGroup(key){try{const cookie=getCookie(\"__lark_website_experiment\");var _JSON_parse_key;return(_JSON_parse_key=JSON.parse(cookie)[key])!==null&&_JSON_parse_key!==void 0?_JSON_parse_key:-1;}catch(e){return-1;}}export default function APACCustomerCentricABTestComponent(props){const{variant}=props;const[group,setGroup]=useState(null);let lastTime=Date.now();useEffect(()=>{console.log(\"current experiment group 4:\",getExperimentGroup(\"apac_home_storyline_ab\"));setGroup(getExperimentGroup(\"apac_home_storyline_ab\"));//setGroup(2)\nreturn()=>{var _window_collectEvent,_window;(_window=window)===null||_window===void 0?void 0:(_window_collectEvent=_window.collectEvent)===null||_window_collectEvent===void 0?void 0:_window_collectEvent.call(_window,\"lark_website_get_focus_server\",{duration:Date.now()-lastTime});};},[]);const fabAnchorRef=useRef(null);console.log(group,\"====current_group=====\");const fabRef=useRef(null);const fabRefOld=useRef(null);const handleFabClick=event=>{if(event.target===fabRef.current.children[0].children[1].children[1].children[0].children[1]){//在这里执行你想要的操作，比如打开链接\nwindow.open(\"https://www.larksuite.com/en_us/why-lark?from=fab\",\"new\");}};return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(APACProductCentric,{variant:variant,style:{width:\"100%\"}}),variant!==\"Phone\"&&/*#__PURE__*/_jsx(FAB,{onClick:handleFabClick,variant:\"7.0 Version\",style:{position:\"fixed\",bottom:\"200px\",right:\"24px\",zIndex:\"9\"},ref:fabRef})]});// if (group === 0 || group === 1 || group === -1) {\n//     return (\n//         <>\n//             <APACProductCentric\n//                 variant={variant}\n//                 style={{ width: \"100%\" }}\n//             />\n//             {variant !== \"Phone\" && (\n//                 <FAB\n//                     onClick={handleFabClick}\n//                     variant=\"7.0 Version\"\n//                     style={{\n//                         position: \"fixed\",\n//                         bottom: \"200px\",\n//                         right: \"24px\",\n//                         zIndex: \"9\",\n//                     }}\n//                     ref={fabRef}\n//                 />\n//             )}\n//         </>\n//     )\n// } else if (group === 2) {\n//     return (\n//         <>\n//             <APACCustomerCentric\n//                 variant={variant}\n//                 style={{ width: \"100%\" }}\n//             />\n//             {variant !== \"Phone\" && (\n//                 <FAB\n//                     onClick={handleFabClick}\n//                     variant=\"7.0 Version\"\n//                     style={{\n//                         position: \"fixed\",\n//                         bottom: \"200px\",\n//                         right: \"24px\",\n//                         zIndex: \"9\",\n//                     }}\n//                     ref={fabRef}\n//                 />\n//             )}\n//         </>\n//     )\n// } else {\n//     return <></>\n// }\n}addPropertyControls(APACCustomerCentricABTestComponent,{variant:{type:ControlType.Enum,defaultValue:\"Desktop\",options:[\"Desktop\",\"Tablet\",\"Phone\"],optionTitles:[\"Desktop\",\"Tablet\",\"Phone\"]}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"APACCustomerCentricABTestComponent\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./APACHomeStorylineABComponentCustomerCentric.map"],"mappings":"6d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