{"version":3,"file":"CMSStateLoaderOverride.DJowgtmF.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/Id89d2URuzWzbK21qVyl/uSFtw7sQKT88wIeof3Oo/QeMsLK873.js","https:/framerusercontent.com/modules/26bCTXi7BnsohjQwQuJx/JosYYL6u4YNsYARLbs1A/CMSStateLoaderOverride.js"],"sourcesContent":["// Generated by Framer (a44d8cf)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,RichText,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const serializationHash=\"framer-plbHO\";const variantClassNames={D7Q5lN86X:\"framer-v-14wcipb\"};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 transformTemplate1=(_,t)=>`translate(-50%, -50%) ${t}`;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 getProps=({height,id,selectedCourseId,selectedCourseTitle,width,...props})=>{return{...props,eEvAFy1sF:selectedCourseTitle??props.eEvAFy1sF??\"selectedCourseTitle\",gWGt8N0FK:selectedCourseId??props.gWGt8N0FK};};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,eEvAFy1sF,gWGt8N0FK,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({defaultVariant:\"D7Q5lN86X\",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__*/_jsxs(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-14wcipb\",className,classNames),\"data-framer-name\":\"Variant 1\",layoutDependency:layoutDependency,layoutId:\"D7Q5lN86X\",ref:refBinding,style:{backgroundColor:\"rgb(255, 255, 255)\",...style},children:[/*#__PURE__*/_jsxs(motion.div,{className:\"framer-11fakfu\",\"data-framer-name\":\"CMS values container\",layoutDependency:layoutDependency,layoutId:\"KeETwhegk\",children:[/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--framer-font-size\":\"10px\"},children:\"selectedCourseId\"})}),className:\"framer-178i9g0\",\"data-framer-name\":\"selectedCourseId\",fonts:[\"Inter\"],layoutDependency:layoutDependency,layoutId:\"QVCeMuy7x\",style:{\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\"},text:gWGt8N0FK,verticalAlignment:\"top\",withExternalLayout:true}),/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--framer-font-size\":\"10px\"},children:\"selectedCourseTitle\"})}),className:\"framer-15txxhm\",fonts:[\"Inter\"],layoutDependency:layoutDependency,layoutId:\"Vqll9DIIq\",style:{\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\"},text:eEvAFy1sF,verticalAlignment:\"top\",withExternalLayout:true})]}),/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--framer-font-size\":\"10px\"},children:\"state loader\"})}),className:\"framer-18j6oxy\",fonts:[\"Inter\"],layoutDependency:layoutDependency,layoutId:\"WVbxn_0ox\",style:{\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\"},transformTemplate:transformTemplate1,verticalAlignment:\"top\",withExternalLayout:true})]})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-plbHO.framer-5uefsp, .framer-plbHO .framer-5uefsp { display: block; }\",\".framer-plbHO.framer-14wcipb { height: 19px; position: relative; width: 125px; }\",\".framer-plbHO .framer-11fakfu { flex: none; height: 10px; left: 0px; overflow: hidden; position: absolute; top: 0px; width: 10px; }\",\".framer-plbHO .framer-178i9g0 { bottom: -6px; flex: none; left: 0px; position: absolute; top: 0px; white-space: pre-wrap; width: 10px; word-break: break-word; word-wrap: break-word; }\",\".framer-plbHO .framer-15txxhm { bottom: -18px; flex: none; height: auto; position: absolute; right: -147px; white-space: pre; width: auto; }\",\".framer-plbHO .framer-18j6oxy { flex: none; height: auto; left: 46%; position: absolute; top: 47%; white-space: pre; width: auto; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 19\n * @framerIntrinsicWidth 125\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerVariables {\"eEvAFy1sF\":\"selectedCourseTitle\",\"gWGt8N0FK\":\"selectedCourseId\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerQeMsLK873=withCSS(Component,css,\"framer-plbHO\");export default FramerQeMsLK873;FramerQeMsLK873.displayName=\"CMSStateLoader\";FramerQeMsLK873.defaultProps={height:19,width:125};addPropertyControls(FramerQeMsLK873,{eEvAFy1sF:{defaultValue:\"selectedCourseTitle\",displayTextArea:false,title:\"selectedCourseTitle\",type:ControlType.String},gWGt8N0FK:{defaultValue:\"\",title:\"selectedCourseId\",type:ControlType.String}});addFonts(FramerQeMsLK873,[{explicitInter:true,fonts:[{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://framerusercontent.com/assets/5vvr9Vy74if2I6bQbJvbw7SY1pQ.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/EOr0mi4hNtlgWNn9if640EZzXCo.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/Y9k9QrlZAqio88Klkmbd8VoMQc.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/OYrD2tBIBPvoJXiIHnLoOXnY9M.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF\",url:\"https://framerusercontent.com/assets/JeYwfuaPfZHQhEG8U5gtPDZ7WQ.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/GrgcKwrN6d3Uz8EwcLHZxwEfC4.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB\",url:\"https://framerusercontent.com/assets/b6Y37FthZeALduNqHicBT6FutY.woff2\",weight:\"400\"}]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerQeMsLK873\",\"slots\":[],\"annotations\":{\"framerColorSyntax\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerComponentViewportWidth\":\"true\",\"framerImmutableVariables\":\"true\",\"framerContractVersion\":\"1\",\"framerDisplayContentsDiv\":\"false\",\"framerVariables\":\"{\\\"eEvAFy1sF\\\":\\\"selectedCourseTitle\\\",\\\"gWGt8N0FK\\\":\\\"selectedCourseId\\\"}\",\"framerIntrinsicHeight\":\"19\",\"framerIntrinsicWidth\":\"125\",\"framerAutoSizeImages\":\"true\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./QeMsLK873.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{cmsStore}from\"https://framerusercontent.com/modules/lpc3LJygjCv6tZkRU1pX/SP9JvafuGW8iURelqE7i/PBGlobalStore.js\";import{loadStoreState,saveStoreState,setAutoselectSectionNumber}from\"https://framerusercontent.com/modules/eb4OUou635v2OUhn2wdj/XtQIk7F3rxKiLpffaZrm/PBGlobalStoreActions.js\";export function cmsStateLoaderOverride(Component){return props=>{const[store,setStore]=cmsStore();if(!store.selectedCourseId||store.selectedCourseId.lenght==0){loadStoreState(store,setStore);if((!store.selectedCourseId||store.selectedCourseId.length==0)&&props[\"selectedCourseId\"]){setStore({selectedCourseId:props[\"selectedCourseId\"],selectedCourse:{courseid:props[\"selectedCourseId\"],title:props[\"selectedCourseTitle\"]},setAutoselectSectionNumber:1});saveStoreState(store,setStore);}// set autoSelect to 1 to autoselect section 1 after loading state\nif(store.autoSelectSectionNumber===-1){setAutoselectSectionNumber({},setStore,1);}}else{saveStoreState(store,setStore);}return /*#__PURE__*/_jsx(\"span\",{style:hiddenStyle});};}const hiddenStyle={height:\"0px\",width:\"0px\",display:\"none\",marginBottom:\"0px\"};\nexport const __FramerMetadata__ = {\"exports\":{\"cmsStateLoaderOverride\":{\"type\":\"reactHoc\",\"name\":\"cmsStateLoaderOverride\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CMSStateLoaderOverride.map"],"mappings":"g1BAC2T,EAAkB,eAAqB,EAAkB,CAAC,UAAU,mBAAmB,CAA8L,EAAY,CAAC,OAAO,GAAG,MAAM,EAAE,SAAS,GAAG,KAAK,SAAS,CAAO,GAAoB,EAAE,IAAI,yBAAyB,IAAU,GAAY,CAAC,QAAM,WAAS,GAAG,CAAC,IAAM,EAAA,EAAwB,GAA2B,EAAW,GAAO,EAAO,WAAiB,EAAA,OAAgC,CAAC,GAAG,EAAO,aAAW,EAAE,CAAC,KAAK,UAAU,GAAY,EAAE,OAAoB,EAAK,EAAoB,SAAS,CAAC,MAAM,EAAsB,WAAS,CAAG,EAAO,EAAS,EAAO,OAAA,GAA6B,GAAU,CAAC,SAAO,KAAG,mBAAiB,sBAAoB,QAAM,GAAG,EAAM,IAAU,CAAC,GAAG,EAAM,UAAU,GAAqB,EAAM,WAAW,sBAAsB,UAAU,GAAkB,EAAM,UAAU,EAAS,GAAwB,EAAM,IAAe,EAAM,iBAAwB,EAAS,KAAK,KAAK,EAAM,iBAA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