PageSourceSearch

https://digitalhabits.org/_next/static/chunks/429-67060b339643999d.js?dpl=8ec604bb-b6df-4bb5-92c3-e00b64e13236

js digitalhabits.org collected 2026-09-24 10:07:05 UTC 13,361 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[429],{80429:function(e,t,n){n.d(t,{VY:function(){return ev},h4:function(){return ep},ck:function(){return ef},fC:function(){return ed},xz:function(){return em}});var r=n(58496),o=n.t(r,2),l=n(83890);function i(e,t=[]){let n=[],o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return o.scopeName=e,[function(t,o){let i=r.createContext(o),a=n.length;n=[...n,o];let u=t=>{let{scope:n,children:o,...u}=t,c=n?.[e]?.[a]||i,s=r.useMemo(()=>u,Object.values(u));return(0,l.jsx)(c.Provider,{value:s,children:o})};return u.displayName=t+"Provider",[u,function(n,l){let u=l?.[e]?.[a]||i,c=r.useContext(u);if(c)return c;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(o,...t)]}function a(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function u(...e){return t=>{let n=!1,r=e.map(e=>{let r=a(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():a(e[t],null)}}}}function c(...e){return r.useCallback(u(...e),e)}function s(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...o}=e;if(r.isValidElement(n)){let e,l;let i=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref,a=function(e,t){let n={...t};for(let r in t){let o=e[r],l=t[r];/^on[A-Z]/.test(r)?o&&l?n[r]=(...e)=>{let t=l(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...l}:"className"===r&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(a.ref=t?u(t,i):i),r.cloneElement(n,a)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:o,...i}=e,a=r.Children.toArray(o),u=a.find(f);if(u){let e=u.props.children,o=a.map(t=>t!==u?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,l.jsx)(t,{...i,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,o):null})}return(0,l.jsx)(t,{...i,ref:n,children:o})});return n.displayName=`${e}.Slot`,n}var d=Symbol("radix.slottable");function f(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===d}function p(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}var m=globalThis?.document?r.useLayoutEffect:()=>{},v=o[" useInsertionEffect ".trim().toString()]||m;function y({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){let[l,i,a]=function({defaultProp:e,onChange:t}){let[n,o]=r.useState(e),l=r.useRef(n),i=r.useRef(t);return v(()=>{i.current=t},[t]),r.useEffect(()=>{l.current!==n&&(i.current?.(n),l.current=n)},[n,l]),[n,o,i]}({defaultProp:t,onChange:n}),u=void 0!==e,c=u?e:l;{let t=r.useRef(void 0!==e);r.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${o} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u},[u,o])}return[c,r.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&a.current?.(n)}else i(t)},[u,e,i,a])]}Symbol("RADIX:SYNC_STATE"),n(81720);var h=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=s(`Primitive.${t}`),o=r.forwardRef((e,r)=>{let{asChild:o,...i}=e,a=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(a,{...i,ref:r})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),g=e=>{var t,n;let o,l;let{present:i,children:a}=e,u=function(e){var t,n;let[o,l]=r.useState(),i=r.useRef(null),a=r.useRef(e),u=r.useRef("none"),[c,s]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>
1{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=b(i.current);u.current="mounted"===c?e:"none"},[c]),m(()=>{let t=i.current,n=a.current;if(n!==e){let r=u.current,o=b(t);e?s("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?s("UNMOUNT"):n&&r!==o?s("ANIMATION_OUT"):s("UNMOUNT"),a.current=e}},[e,s]),m(()=>{if(o){var e;let t;let n=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=b(i.current).includes(e.animationName);if(e.target===o&&r&&(s("ANIMATION_END"),!a.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},l=e=>{e.target===o&&(u.current=b(i.current))};return o.addEventListener("animationstart",l),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",l),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}s("ANIMATION_END")},[o,s]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:r.useCallback(e=>{i.current=e?getComputedStyle(e):null,l(e)},[])}}(i),s="function"==typeof a?a({present:u.isPresent}):r.Children.only(a),d=c(u.ref,(o=null===(t=Object.getOwnPropertyDescriptor(s.props,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in o&&o.isReactWarning?s.ref:(o=null===(n=Object.getOwnPropertyDescriptor(s,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in o&&o.isReactWarning?s.props.ref:s.props.ref||s.ref);return"function"==typeof a||u.isPresent?r.cloneElement(s,{ref:d}):null};function b(e){return(null==e?void 0:e.animationName)||"none"}g.displayName="Presence";var w=o[" useId ".trim().toString()]||(()=>void 0),x=0;function N(e){let[t,n]=r.useState(w());return m(()=>{e||n(e=>e??String(x++))},[e]),e||(t?`radix-${t}`:"")}var R="Collapsible",[C,j]=i(R),[A,_]=C(R),I=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:o,defaultOpen:i,disabled:a,onOpenChange:u,...c}=e,[s,d]=y({prop:o,defaultProp:null!=i&&i,onChange:u,caller:R});return(0,l.jsx)(A,{scope:n,disabled:a,contentId:N(),open:s,onOpenToggle:r.useCallback(()=>d(e=>!e),[d]),children:(0,l.jsx)(h.div,{"data-state":T(s),"data-disabled":a?"":void 0,...c,ref:t})})});I.displayName=R;var O="CollapsibleTrigger",E=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,o=_(O,n);return(0,l.jsx)(h.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":T(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:p(e.onClick,o.onOpenToggle)})});E.displayName=O;var M="CollapsibleContent",S=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,o=_(M,e.__scopeCollapsible);return(0,l.jsx)(g,{present:n||o.open,children:e=>{let{present:n}=e;return(0,l.jsx)(k,{...r,ref:t,present:n})}})});S.displayName=M;var k=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:o,children:i,...a}=e,u=_(M,n),[s,d]=r.useState(o),f=r.useRef(null),p=c(t,f),v=r.useRef(0),y=v.current,g=r.useRef(0),b=g.current,w=u.open||s,x=r.useRef(w),N=r.useRef(void 0);return r.useEffect(()=>{let e=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(e)},[]),m(()=>{let e=f.current;if(e){N.current=N.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();v.current=t.height,g.current=t.width,x.current||(e.style.transitionDuration=N.current.transitionDuration,e.style.animationName=N.current.animationName),d(o)}},[u.open,o]),(0,l.jsx)(h.div,{"data-state":T(u.open),"data-disabled":u.disabled?"":void 0,id:u.contentId,hidden:!w,...a,ref:p,style:{"--radix-collapsible-content-height":y?"".concat(y,"px"):void 0,"--radix-collapsible-content-width":b?"".concat(b,"px"):void 0,...e.style},children:w&&i})});function T(e){return e?"open":"closed"}var D=r.createContext(void 0),P="Accordion",U=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[$,L,W]=function(e){let t=e+"CollectionProvider",[n,o]=i(t),[a,u]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:n}=e,o=r.useRef(null),i=r.useRef(new Map).current;return(0,l.jsx)(a,{scope:t,itemMap:i,collectionRef:o,children:n})};d.displayName=t;let f=e+"CollectionSlot",p=s(f),m=r.forwardRef((e,t)=>
1{let{scope:n,children:r}=e,o=c(t,u(f,n).collectionRef);return(0,l.jsx)(p,{ref:o,children:r})});m.displayName=f;let v=e+"CollectionItemSlot",y="data-radix-collection-item",h=s(v),g=r.forwardRef((e,t)=>{let{scope:n,children:o,...i}=e,a=r.useRef(null),s=c(t,a),d=u(v,n);return r.useEffect(()=>(d.itemMap.set(a,{ref:a,...i}),()=>void d.itemMap.delete(a))),(0,l.jsx)(h,{[y]:"",ref:s,children:o})});return g.displayName=v,[{Provider:d,Slot:m,ItemSlot:g},function(t){let n=u(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(y,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},o]}(P),[F,V]=i(P,[W,j]),z=j(),H=r.forwardRef((e,t)=>{let{type:n,...r}=e;return(0,l.jsx)($.Provider,{scope:e.__scopeAccordion,children:"multiple"===n?(0,l.jsx)(Z,{...r,ref:t}):(0,l.jsx)(X,{...r,ref:t})})});H.displayName=P;var[q,B]=F(P),[K,Y]=F(P,{collapsible:!1}),X=r.forwardRef((e,t)=>{let{value:n,defaultValue:o,onValueChange:i=()=>{},collapsible:a=!1,...u}=e,[c,s]=y({prop:n,defaultProp:null!=o?o:"",onChange:i,caller:P});return(0,l.jsx)(q,{scope:e.__scopeAccordion,value:r.useMemo(()=>c?[c]:[],[c]),onItemOpen:s,onItemClose:r.useCallback(()=>a&&s(""),[a,s]),children:(0,l.jsx)(K,{scope:e.__scopeAccordion,collapsible:a,children:(0,l.jsx)(Q,{...u,ref:t})})})}),Z=r.forwardRef((e,t)=>{let{value:n,defaultValue:o,onValueChange:i=()=>{},...a}=e,[u,c]=y({prop:n,defaultProp:null!=o?o:[],onChange:i,caller:P}),s=r.useCallback(e=>c(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...t,e]}),[c]),d=r.useCallback(e=>c(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t!==e)}),[c]);return(0,l.jsx)(q,{scope:e.__scopeAccordion,value:u,onItemOpen:s,onItemClose:d,children:(0,l.jsx)(K,{scope:e.__scopeAccordion,collapsible:!0,children:(0,l.jsx)(Q,{...a,ref:t})})})}),[G,J]=F(P),Q=r.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:o,dir:i,orientation:a="vertical",...u}=e,s=c(r.useRef(null),t),d=L(n),f="ltr"===function(e){let t=r.useContext(D);return e||t||"ltr"}(i),m=p(e.onKeyDown,e=>{var t;if(!U.includes(e.key))return;let n=e.target,r=d().filter(e=>{var t;return!(null===(t=e.ref.current)||void 0===t?void 0:t.disabled)}),o=r.findIndex(e=>e.ref.current===n),l=r.length;if(-1===o)return;e.preventDefault();let i=o,u=l-1,c=()=>{(i=o+1)>u&&(i=0)},s=()=>{(i=o-1)<0&&(i=u)};switch(e.key){case"Home":i=0;break;case"End":i=u;break;case"ArrowRight":"horizontal"===a&&(f?c():s());break;case"ArrowDown":"vertical"===a&&c();break;case"ArrowLeft":"horizontal"===a&&(f?s():c());break;case"ArrowUp":"vertical"===a&&s()}null===(t=r[i%l].ref.current)||void 0===t||t.focus()});return(0,l.jsx)(G,{scope:n,disabled:o,direction:i,orientation:a,children:(0,l.jsx)($.Slot,{scope:n,children:(0,l.jsx)(h.div,{...u,"data-orientation":a,ref:s,onKeyDown:o?void 0:m})})})}),ee="AccordionItem",[et,en]=F(ee),er=r.forwardRef((e,t)=>{let{__scopeAccordion:n,value:r,...o}=e,i=J(ee,n),a=B(ee,n),u=z(n),c=N(),s=r&&a.value.includes(r)||!1,d=i.disabled||e.disabled;return(0,l.jsx)(et,{scope:n,open:s,disabled:d,triggerId:c,children:(0,l.jsx)(I,{"data-orientation":i.orientation,"data-state":es(s),...u,...o,ref:t,disabled:d,open:s,onOpenChange:e=>{e?a.onItemOpen(r):a.onItemClose(r)}})})});er.displayName=ee;var eo="AccordionHeader",el=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,o=J(P,n),i=en(eo,n);return(0,l.jsx)(h.h3,{"data-orientation":o.orientation,"data-state":es(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:t})});el.displayName=eo;var ei="AccordionTrigger",ea=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,o=J(P,n),i=en(ei,n),a=Y(ei,n),u=z(n);return(0,l.jsx)($.ItemSlot,{scope:n,children:(0,l.jsx)(E,{"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...u,...r,ref:t})})});ea.displayName=ei;var eu="AccordionContent",ec=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,o=J(P,n),i=en(eu,n),a=z(n);return(0,l.jsx)(S,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...a,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function es(e){return e?"open":"closed"}ec.displayName=eu;var ed=H,ef=er,ep=el,em=ea,ev=ec}}]);

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.