{"version":3,"file":"ViewState.CQTm4V4S.mjs","names":["useSyncExternalStore","__legacyOverrideHOC_DataObserverContext","_jsx","__esmMin","window","me","init_ssg_sandbox_shims","init_npm_react_18_3_1","init_jsx_runtime","oe","init_framer_Bf4_tcb2","DataObserverContext","subscribe","cb","getSnapshot","params","getServerSnapshot","useViewState","Default","state","_visibility","props","Video","FormConfirmed","withDefault","c","C","withVideo","withFormConfirmed","init_ViewState","show"],"sources":["https:/framerusercontent.com/modules/H0iMSHzfE8JFVSuY4mPU/jKas7FUJNtS4jttL6TVF/ViewState.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useSyncExternalStore}from\"react\";function subscribe(cb){window.addEventListener(\"popstate\",cb);window.addEventListener(\"pushstate\",cb);window.addEventListener(\"replacestate\",cb);return()=>{window.removeEventListener(\"popstate\",cb);window.removeEventListener(\"pushstate\",cb);window.removeEventListener(\"replacestate\",cb);};}function getSnapshot(){if(typeof window===\"undefined\")return\"default\";const params=new URLSearchParams(window.location.search);// priority if both exist\nif(params.has(\"form-confirmed\"))return\"form-confirmed\";if(params.has(\"show-video\"))return\"video\";return\"default\";}function getServerSnapshot(){return\"default\";}function useViewState(){return useSyncExternalStore(subscribe,getSnapshot,getServerSnapshot);}// Keep Framer's incoming style (it carries the layout, e.g. fill width on a component)\n// and only add display: none when the element should be hidden.\nconst _visibility=(show,props)=>({visible:show,style:show?{...props?.style}:{...props?.style,display:\"none\"}});export function Default(props){const state=useViewState();return _visibility(state===\"default\",props);}export function Video(props){const state=useViewState();return _visibility(state===\"video\",props);}export function FormConfirmed(props){const state=useViewState();return _visibility(state===\"form-confirmed\",props);}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withDefault(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...Default(props)});};}withDefault.displayName=\"Default\";export function withVideo(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...Video(props)});};}withVideo.displayName=\"Video\";export function withFormConfirmed(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...FormConfirmed(props)});};}withFormConfirmed.displayName=\"FormConfirmed\";\nexport const __FramerMetadata__ = {\"exports\":{\"withFormConfirmed\":{\"type\":\"reactHoc\",\"name\":\"withFormConfirmed\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Default\":{\"type\":\"override\",\"name\":\"Default\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withDefault\":{\"type\":\"reactHoc\",\"name\":\"withDefault\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"FormConfirmed\":{\"type\":\"override\",\"name\":\"FormConfirmed\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Video\":{\"type\":\"override\",\"name\":\"Video\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withVideo\":{\"type\":\"reactHoc\",\"name\":\"withVideo\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ViewState.map"],"mappings":"A,mLAAmF,SAASY,EAAU,EAAG,CAA2H,OAA1HR,EAAO,iBAAiB,WAAWS,CAAE,EAAET,EAAO,iBAAiB,YAAYS,CAAE,EAAET,EAAO,iBAAiB,eAAeS,CAAE,MAAY,CAACT,EAAO,oBAAoB,WAAWS,CAAE,EAAET,EAAO,oBAAoB,YAAYS,CAAE,EAAET,EAAO,oBAAoB,eAAeS,CAAE,CAAE,CAAE,CAAC,SAASC,GAAa,CAAC,GAAUV,IAAS,OAAY,MAAM,UAAU,IAAMW,EAAO,IAAI,gBAAgBX,EAAO,SAAS,MAAM,EACjZ,OAA9FW,EAAO,IAAI,gBAAgB,EAAQ,iBAAoBA,EAAO,IAAI,YAAY,EAAQ,QAAc,SAAU,CAAC,SAASC,GAAmB,CAAC,MAAM,SAAU,CAAC,SA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