{"version":3,"file":"Back_Button.c0QMcCcx.mjs","names":["React.useContext","React.useMemo","React.Fragment","React.forwardRef","useRef","React.useId","SVG"],"sources":["https:/framerusercontent.com/modules/s8mFXnRPEX7noUc673j3/ZQJKshFvu1M6RJ7BNQhs/lws4jr_Aw.js","https:/framerusercontent.com/modules/6r9FauQmuNRKO5LmLLCk/MpMorQM3A71DgCI1hXVs/Back_Button.js"],"sourcesContent":["// Generated by Framer (62e4d63)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,SVG,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const enabledGestures={zb1kRxjnl:{hover:true}};const cycleOrder=[\"zb1kRxjnl\",\"dQktEqX5G\"];const serializationHash=\"framer-SnNGJ\";const variantClassNames={dQktEqX5G:\"framer-v-1da1615\",zb1kRxjnl:\"framer-v-bqvx6w\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={bounce:.2,delay:0,duration:.4,type:\"spring\"};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const Variants=motion.create(React.Fragment);const humanReadableVariantMap={\"Tablet & Mobile\":\"dQktEqX5G\",Default:\"zb1kRxjnl\"};const getProps=({height,id,width,...props})=>{return{...props,variant:humanReadableVariantMap[props.variant]??props.variant??\"zb1kRxjnl\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"zb1kRxjnl\",enabledGestures,ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-bqvx6w\",className,classNames),\"data-framer-name\":\"Default\",layoutDependency:layoutDependency,layoutId:\"zb1kRxjnl\",ref:refBinding,style:{backgroundColor:\"rgb(0, 0, 0)\",...style},...addPropertyOverrides({\"zb1kRxjnl-hover\":{\"data-framer-name\":undefined},dQktEqX5G:{\"data-framer-name\":\"Tablet & Mobile\"}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(motion.div,{className:\"framer-1nfhwlm\",\"data-framer-name\":\"Wrapper\",layoutDependency:layoutDependency,layoutId:\"ANGtq7k5c\",children:/*#__PURE__*/_jsx(SVG,{className:\"framer-a87wca\",layoutDependency:layoutDependency,layoutId:\"IEt0P7gDc\",opacity:1,requiresOverflowVisible:false,svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 47.243 7.999\" overflow=\"visible\"><g><path d=\"M 7.648 0.688 C 6.535 1.666 5.131 2.733 3.896 3.311 L 22.39 3.311 L 22.39 3.332 L 47.243 3.332 L 47.243 4.666 L 22.39 4.666 L 22.39 4.688 L 3.896 4.688 C 5.131 5.266 6.535 6.333 7.648 7.31 L 6.196 7.999 C 4.502 6.488 2.154 5 0 4 C 2.154 3 4.502 1.511 6.196 0 Z\" fill=\"rgb(255,255,255)\"></path></g></svg>',variants:{\"zb1kRxjnl-hover\":{opacity:.7}},withExternalLayout:true,...addPropertyOverrides({\"zb1kRxjnl-hover\":{opacity:.7,svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 47.243 7.999\" overflow=\"visible\"><g opacity=\"0.7\"><path d=\"M 7.648 0.688 C 6.535 1.666 5.131 2.733 3.896 3.311 L 22.39 3.311 L 22.39 3.332 L 47.243 3.332 L 47.243 4.666 L 22.39 4.666 L 22.39 4.688 L 3.896 4.688 C 5.131 5.266 6.535 6.333 7.648 7.31 L 6.196 7.999 C 4.502 6.488 2.154 5 0 4 C 2.154 3 4.502 1.511 6.196 0 Z\" fill=\"rgb(255,255,255)\"></path></g></svg>'}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(SVG,{className:\"framer-1fk6wx9\",layoutDependency:layoutDependency,layoutId:\"D9k1FzPn6\",opacity:1,requiresOverflowVisible:false,svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 47.243 7.999\" overflow=\"visible\"><path d=\"M 7.648 0.688 C 6.535 1.666 5.131 2.733 3.896 3.311 L 22.39 3.311 L 22.39 3.332 L 47.243 3.332 L 47.243 4.666 L 22.39 4.666 L 22.39 4.688 L 3.896 4.688 C 5.131 5.266 6.535 6.333 7.648 7.31 L 6.196 7.999 C 4.502 6.488 2.154 5 0 4 C 2.154 3 4.502 1.511 6.196 0 Z\" fill=\"rgb(255,255,255)\"></path></svg>',withExternalLayout:true})})})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-SnNGJ.framer-1jm60bm, .framer-SnNGJ .framer-1jm60bm { display: block; }\",\".framer-SnNGJ.framer-bqvx6w { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 10px; height: min-content; justify-content: center; overflow: var(--overflow-clip-fallback, clip); padding: 0px; position: relative; width: min-content; }\",\".framer-SnNGJ .framer-1nfhwlm { align-content: center; align-items: center; display: flex; flex: none; flex-direction: column; flex-wrap: nowrap; gap: 10px; height: min-content; justify-content: center; overflow: visible; padding: 3px; position: relative; width: min-content; }\",\".framer-SnNGJ .framer-a87wca { height: 8px; position: relative; width: 47px; }\",\".framer-SnNGJ .framer-1fk6wx9 { height: 8px; left: 0px; position: absolute; top: 0px; width: 47px; }\",\".framer-SnNGJ.framer-v-1da1615.framer-bqvx6w { cursor: unset; padding: 4px 5px 4px 5px; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 14\n * @framerIntrinsicWidth 53\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"auto\"]},\"dQktEqX5G\":{\"layout\":[\"auto\",\"auto\"]},\"Wb1rBrvYP\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const Framerlws4jr_Aw=withCSS(Component,css,\"framer-SnNGJ\");export default Framerlws4jr_Aw;Framerlws4jr_Aw.displayName=\"Back button\";Framerlws4jr_Aw.defaultProps={height:14,width:53};addPropertyControls(Framerlws4jr_Aw,{variant:{options:[\"zb1kRxjnl\",\"dQktEqX5G\"],optionTitles:[\"Default\",\"Tablet & Mobile\"],title:\"Variant\",type:ControlType.Enum}});addFonts(Framerlws4jr_Aw,[{explicitInter:true,fonts:[]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Framerlws4jr_Aw\",\"slots\":[],\"annotations\":{\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"dQktEqX5G\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"Wb1rBrvYP\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\",\"framerContractVersion\":\"1\",\"framerDisplayContentsDiv\":\"false\",\"framerComponentViewportWidth\":\"true\",\"framerColorSyntax\":\"true\",\"framerIntrinsicHeight\":\"14\",\"framerIntrinsicWidth\":\"53\",\"framerAutoSizeImages\":\"true\",\"framerImmutableVariables\":\"true\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./lws4jr_Aw.map","// A custom Framer code override by Chris Kellett - Framerverse\n// Get more components at www.framerverse.com\n// Previous Page Overide\n// Version 1.0\nimport{jsx as _jsx}from\"react/jsx-runtime\";/**\n * This override adds a click handler to go back in browser history\n * @param Component - The component to apply the override to\n * @returns A component with the history back functionality\n */export function withHistoryBack(Component){// This part runs once when creating the override\nreturn props=>{// This function handles the actual navigation\nconst handleGoBack=()=>{// Check if we can go back in history\nif(window.history.length>1){window.history.back();}else{// If no history exists, log a message\nconsole.log(\"No previous page in history\");}};// Return the component with our click handler\nreturn /*#__PURE__*/_jsx(Component,{...props,onClick:handleGoBack});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withHistoryBack\":{\"type\":\"reactHoc\",\"name\":\"withHistoryBack\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Back_Button.map"],"mappings":"mYACsf,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,CAAC,EAAuF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,EAAQ,CAAC,EAAS,CAAc,yCAAloB,IAA+H,IAAkE,IAA4B,EAAiC,EAAgB,CAAC,UAAU,CAAC,MAAM,EAAI,CAAC,EA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