1import{a as e}from"./rolldown-runtime-CNC7AqOf.js";import{t}from"./react-6C37rxNK.js";import{t as n}from"./jsx-runtime-DiK4U9sA.js";import{t as r}from"./use-mount-effect-Bu4B_UWA.js";import{a as i,c as a,i as o,n as s,o as c,r as l}from"./filter-props-DfCszJrM.js";import{t as u}from"./resolve-transition-BD-yVzOk.js";import{a as d,r as f,t as p}from"./storage-BJRaNCgW.js";var m=n(),h=e(t(),1);function g({children:e,isValidProp:t,...n}){t&&s(t);let r=(0,h.useContext)(l);n={...r,...n},n.transition=u(n.transition,r.transition),n.isStatic=a(()=>n.isStatic);let i=(0,h.useMemo)(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion,n.skipAnimations]);return(0,m.jsx)(l.Provider,{value:i,children:e})}function _(){!i.current&&o();let[e]=(0,h.useState)(c.current);return e}var v=`bp-user-preferences`,y={reducedMotion:!1,showTaxDeductibleModal:!0};function b(){return p(v)}function x(e){return d(v,e)}function S(){return f(v)}var C=(0,h.createContext)(void 0);function w({children:e,session:t}){let n=t?.currentUser,i=_(),[a,o]=(0,h.useState)({...y,reducedMotion:!!i}),s=(0,h.useCallback)(e=>{o(t=>{let n={...t,...e};return x(n),n})},[o]),c=(0,h.useMemo)(()=>({currentUser:n,preferences:a,setPreferences:s}),[n,a,s]);return r(()=>{let e=b();e&&o(e),globalThis.localStorage&&!e&&S()}),(0,m.jsx)(C.Provider,{value:c,children:(0,m.jsx)(g,{reducedMotion:a.reducedMotion?`always`:`never`,children:e})})}export{w as n,C as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.