{"version":3,"file":"ViewState.bdtrHN5g.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_CKT6jEEQ","DataObserverContext","subscribe","cb","getSnapshot","getServerSnapshot","useViewState","Default","state","_visibility","props","Video","withDefault","c","C","withVideo","init_ViewState","show"],"sources":["https:/framerusercontent.com/modules/H0iMSHzfE8JFVSuY4mPU/Kpt3Phwc3QjoZ9ioROoc/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);// ?form-confirmed now shows the site-wide FormSnackbar instead of switching\n// views, so the page content stays visible. Only ?show-video switches views.\nif(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\":{\"withDefault\":{\"type\":\"reactHoc\",\"name\":\"withDefault\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Video\":{\"type\":\"override\",\"name\":\"Video\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"FormConfirmed\":{\"type\":\"override\",\"name\":\"FormConfirmed\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFormConfirmed\":{\"type\":\"reactHoc\",\"name\":\"withFormConfirmed\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withVideo\":{\"type\":\"reactHoc\",\"name\":\"withVideo\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Default\":{\"type\":\"override\",\"name\":\"Default\",\"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,CAEjW,OAF4WV,IAAS,OAAkB,UAE9a,IAFyc,gBAAgBA,EAAO,SAAS,MAEpe,CAAC,CAAC,IAAI,YAAY,EAAQ,QAAc,SAAU,CAAC,SAASW,GAAmB,CAAC,MAAM,SAAU,CAAC,SAASC,GAAc,CAAC,OAAOhB,EAAqBY,EAAUE,EAAYC,CAAiB,C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