{"version":3,"file":"ActionCursorHints.BbUtp25m.mjs","names":["React.useState","_Fragment","__esmMin","_e","init_jsx_runtime","J","c","p","init_npm_react_18_3_1","init_JourneyCursorFeedback","withFixedHint","projectSurface","ink","setInk","update","node","element","values","x","l","Component","props","withProjectHint","withImageHint","withStableAnswer","init_ActionCursorHints"],"sources":["https:/framerusercontent.com/modules/aKBIHlrSgPB5DouOXg1B/9Qowpyj0SZTHPq8eEmqz/ActionCursorHints.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";import{withFixedHint}from\"https://framerusercontent.com/modules/Phj01f2d5oqJ4AhoxGaP/FdvB1sT0Nb3DLzfmPAF8/JourneyCursorFeedback.js\";function projectSurface(Component){return /*#__PURE__*/React.forwardRef(function ProjectSurface(props,ref){const[ink,setInk]=React.useState(\"#005cb0\");const update=element=>{let node=element.parentElement;while(node){const values=getComputedStyle(node).backgroundColor.match(/[\\d.]+/g)?.map(Number);if(values&&values.length>=3&&(values[3]??1)>.9){setInk(\"#\"+values.slice(0,3).map(x=>Math.round(255-x).toString(16).padStart(2,\"0\")).join(\"\"));break;}node=node.parentElement;}};return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:'.portfolio-project-cta{background-color:transparent!important;transition:background-color .28s ease!important}.portfolio-project-cta:hover{background-color:rgba(70,70,70,.16)!important}.portfolio-project-cta:hover .framer-text{color:var(--portfolio-hover-ink)!important}.portfolio-project-cta:hover svg path{fill:var(--portfolio-hover-ink)!important}.portfolio-project-cta [data-framer-name=\"Hover underline\"]{background:var(--portfolio-hover-ink)!important}'}),/*#__PURE__*/_jsx(Component,{...props,ref:ref,className:[props.className,\"portfolio-project-cta\"].filter(Boolean).join(\" \"),style:{...props.style,\"--portfolio-hover-ink\":ink},onPointerEnter:e=>{props.onPointerEnter?.(e);update(e.currentTarget);}})]});});}export function withProjectHint(Component){return withFixedHint(projectSurface(Component),\"View project\",\"查看项目\");}export function withImageHint(Component){return withFixedHint(Component,\"View image\",\"查看大图\");}export function withStableAnswer(Component){return /*#__PURE__*/React.forwardRef(function StableAnswer(props,ref){return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:\".journey-stable-answer{--journey-detail-size:15px}@media(max-width:1199px){.journey-stable-answer{--journey-detail-size:13px}}@media(max-width:809px){.journey-stable-answer{--journey-detail-size:9px}}.journey-stable-answer .framer-text,.journey-stable-answer ul,.journey-stable-answer ol,.journey-stable-answer li,.journey-stable-answer p{font-size:var(--journey-detail-size)!important;line-height:1.4!important}\"}),/*#__PURE__*/_jsx(Component,{...props,ref:ref,className:[props.className,\"journey-stable-answer\"].filter(Boolean).join(\" \")})]});});}// Native row instances own the responsive bottom gap; answer typography remains shared.\n\nexport const __FramerMetadata__ = {\"exports\":{\"withStableAnswer\":{\"type\":\"reactHoc\",\"name\":\"withStableAnswer\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withProjectHint\":{\"type\":\"reactHoc\",\"name\":\"withProjectHint\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withImageHint\":{\"type\":\"reactHoc\",\"name\":\"withImageHint\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"A,+LAA+O,SAASW,EAAe,EAAU,CAAC,MAAoB,gBAAiB,SAAwB,EAAM,EAAI,CAAC,GAAK,CAACC,EAAIC,GAAQb,EAAe,SAAS,EAAQc,EAAO,GAAS,CAAC,IAAIC,EAAKC,EAAQ,cAAc,KAAMD,GAAK,CAAC,IAAME,EAAO,iBAAiBF,CAAI,CAAC,CAAC,gBAAgB,MAAM,SAAS,CAAC,EAAE,IAAI,MAAM,EAAE,GAAGE,GAAQA,EAAO,QAAQ,IAAIA,EAAO,IAAI,GAAG,GAAG,CAACJ,EAAO,IAAII,EAAO,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI,GAAG,KAAK,MAAM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