PageSourceSearch

https://depot.dev/assets/FAQ-B8bjiryh.js

js depot.dev collected 2026-09-24 19:20:11 UTC 9,093 bytes, 6 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ca118572-9c25-5774-93b8-0464d3f5864e")}catch(e){}}();
3!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0d3ec-ed63-7180-bb5b-3357a8d07d88")}catch(e){}}();(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`a8094e049e03f829f1c2e300bc93708abe9374a5`}}catch{}})();import{a as e}from"./chunk-DUZrb5sI.js";import{n as t}from"./preload-helper-BwnrSaRm.js";import{t as n}from"./jsx-runtime-BJ_8nwS3.js";import{t as r}from"./compiler-runtime-BjzEAB2a.js";import{X as i,Y as a,a as o,l as s,n as c,t as l,u}from"./useBaseUiId-BQ3lzqs8.js";import{n as d}from"./stateAttributesMapping-C5x3BKq5.js";import{t as f}from"./dist-DDEIS4Eu.js";import{t as p}from"./cn-M0Kz48di.js";import{t as m}from"./Icon-fI68qlhG.js";import{t as h}from"./Text-CoD2GbPr.js";import{t as g}from"./Heading-Czs8Neiy.js";import{t as _}from"./useControlled-D2fGLzfm.js";import{t as v}from"./useButton-DdymfiDl.js";import{n as y,t as b}from"./useCompositeListItem-C4b6lrT0.js";import{a as x,i as S,n as C,o as w,r as T,t as E}from"./useCollapsiblePanel-CCcDwquU.js";var D=e(t(),1),O=D.createContext(void 0);function k(){let e=D.useContext(O);if(e===void 0)throw Error(a(10));return e}var A=n(),j={value:()=>null},M=D.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,hiddenUntilFound:a,keepMounted:o,loopFocus:l,onValueChange:u,multiple:d=!1,orientation:f=`vertical`,value:p,defaultValue:m,style:h,...g}=e,v=D.useMemo(()=>{if(p===void 0)return m??[]},[p,m]),b=D.useRef([]),[x,S]=_({controlled:p,default:v,name:`Accordion`,state:`value`}),C=s((e,t,n)=>{if(!d){let t=x[0]===e?[]:[e];if(u?.(t,n),n.isCanceled)return;S(t)}else if(t){let t=x.slice();if(t.push(e),u?.(t,n),n.isCanceled)return;S(t)}else{let t=x.filter(t=>t!==e);if(u?.(t,n),n.isCanceled)return;S(t)}}),w=D.useMemo(()=>({value:x,disabled:i,orientation:f}),[x,i,f]),T=D.useMemo(()=>({disabled:i,handleValueChange:C,hiddenUntilFound:a??!1,keepMounted:o??!1,state:w,value:x}),[i,C,a,o,w,x]),E=c(`div`,e,{state:w,ref:t,props:g,stateAttributesMapping:j});return(0,A.jsx)(O.Provider,{value:T,children:(0,A.jsx)(y,{elementsRef:b,children:E})})}),N=D.createContext(void 0);function P(){let e=D.useContext(N);if(e===void 0)throw Error(a(9));return e}var F=function(e){return e.index=`data-index`,e.disabled=`data-disabled`,e.open=`data-open`,e}({}),I={...C,index:e=>({[F.index]:String(e)}),...d,value:()=>null},L=D.forwardRef(function(e,t){let{className:n,disabled:r=!1,onOpenChange:i,render:a,value:o,style:d,...f}=e,{ref:p,index:m}=b(),h=u(t,p),{disabled:g,handleValueChange:_,state:v,value:y}=k(),x=l(),C=o??x,T=r||g,E=y.indexOf(C)!==-1,O=s((e,t)=>
3{i?.(e,t),!t.isCanceled&&_(C,e,t)}),j=w({open:E,onOpenChange:O,disabled:T}),M=D.useMemo(()=>({open:j.open,disabled:j.disabled,transitionStatus:j.transitionStatus}),[j.open,j.disabled,j.transitionStatus]),P=D.useMemo(()=>({...j,onOpenChange:O,state:M}),[j,M,O]),F=D.useMemo(()=>({...v,hidden:!E&&!j.mounted,index:m,disabled:T,open:E}),[j.mounted,T,m,E,v]),L=l(),[R,z]=D.useState(),B=R===null?void 0:R??L,V=D.useMemo(()=>({defaultTriggerId:L,open:E,state:F,setTriggerId:z,triggerId:B}),[L,E,F,z,B]),H=c(`div`,e,{state:F,ref:h,props:f,stateAttributesMapping:I});return(0,A.jsx)(S.Provider,{value:P,children:(0,A.jsx)(N.Provider,{value:V,children:H})})}),R=D.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{state:o}=P();return c(`h3`,e,{state:o,ref:t,props:a,stateAttributesMapping:I})}),z=D.forwardRef(function(e,t){let{disabled:n,className:r,id:a,render:o,nativeButton:s=!0,style:l,...u}=e,{panelId:d,open:f,handleTrigger:p,disabled:m}=x(),{getButtonProps:h,buttonRef:g}=v({disabled:n||m,focusableWhenDisabled:!0,native:s}),{defaultTriggerId:_,state:y,setTriggerId:b}=P(),S=a||void 0,C=S??_;return i(()=>(b(e=>S??(e===null?void 0:e)),()=>{b(e=>e===S?null:e)}),[S,b]),c(`button`,e,{state:y,ref:[t,g],props:[{"aria-controls":f?d:void 0,"aria-expanded":f,id:C,onClick:p},u,h],stateAttributesMapping:T})}),B=function(e){return e.accordionPanelHeight=`--accordion-panel-height`,e.accordionPanelWidth=`--accordion-panel-width`,e}({}),V=D.forwardRef(function(e,t){let{className:n,hiddenUntilFound:r,keepMounted:a,id:s,render:l,style:u,...d}=e,{hiddenUntilFound:f,keepMounted:p}=k(),{defaultPanelId:m,mounted:h,onOpenChange:g,open:_,setMounted:v,setOpen:y,setPanelIdState:b,transitionStatus:S}=x(),C=r??f,w=a??p,T=s||void 0,D=s??m;i(()=>(b(e=>T??(e===null?void 0:e)),()=>{b(e=>e===T?null:e)}),[T,b]);let{height:O,props:A,ref:j,shouldPreventOpenAnimation:M,shouldRender:N,transitionStatus:F,width:L}=E({externalRef:t,hiddenUntilFound:C,id:D,keepMounted:w,mounted:h,onOpenChange:g,open:_,setMounted:v,setOpen:y,transitionStatus:S}),{state:R,triggerId:z}=P(),V={...R,transitionStatus:F},H=o(u,V),U=c(`div`,{...e,style:void 0},{state:V,ref:j,props:[A,{"aria-labelledby":z,role:`region`,style:{[B.accordionPanelHeight]:O===void 0?`auto`:`${O}px`,[B.accordionPanelWidth]:L===void 0?`auto`:`${L}px`}},d,H?{style:H}:void 0,M?{style:{animationName:`none`}}:void 0],stateAttributesMapping:I});return N?U:null}),H=r(),U=f(``,{variants:{layout:{split:`grid gap-8 lg:grid-cols-[minmax(0,1fr)_minmax(0,2fr)] lg:gap-16`,stacked:`flex flex-col gap-8`}},defaultVariants:{layout:`split`}});function W(e){let t=(0,H.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({children:n,className:r,layout:i,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o;t[5]!==r||t[6]!==i?(o=p(U({layout:i}),r),t[5]=r,t[6]=i,t[7]=o):o=t[7];let s;return t[8]!==n||t[9]!==a||t[10]!==o?(s=(0,A.jsx)(`div`,{className:o,...a,children:n}),t[8]=n,t[9]=a,t[10]=o,t[11]=s):s=t[11],s}function G(e){let t=(0,H.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({children:n,className:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=p(`flex flex-col gap-9`,r),t[4]=r,t[5]=a);let o;return t[6]!==n||t[7]!==i||t[8]!==a?(o=(0,A.jsx)(`div`,{className:a,...i,children:n}),t[6]=n,t[7]=i,t[8]=a,t[9]=o):o=t[9],o}function K(e){let t=(0,H.c)(2),n;return t[0]===e?n=t[1]:(n=(0,A.jsx)(g,{variant:`h3`,as:`h3`,className:`text-depot-theme-primary`,...e}),t[0]=e,t[1]=n),n}function q(e){let t=(0,H.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=p(`text-depot-neutral-50`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,A.jsx)(h,{variant:`body-large`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function J(e){let t=(0,H.c)(10),n,r,i;if(t[0]!==e){let{children:a,className:o,name:s,...c}=e;n=a,r=o,i=c,t[0]=e,t[1]=n,t[2]=r,t[3]=i}else n=t[1],r=t[2],i=t[3];let a;t[4]===r?a=t[5]:(a=p(`faq-accordion flex flex-col`,r),t[4]=r,t[5]=a);let o=i,s;return t[6]!==n||t[7]!==a||t[8]!==o?(s=(0,A.jsx)(M,{multiple:!1,className:a,...o,children:n}),t[6]=n,t[7]=a,t[8]=o,t[9]=s):s=t[9],s}function Y(e){let t=(0,H.c)(15),{question:n,children:r,value:i,className:a}=e,o=i===void 0?void 0:String(i),s;t[0]===a?s=t[1]:(s=p(`group border-t border-depot-neutral-800 first:border-none last:border-b`,a),t[0]=a,t[1]=s);let c;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,A.jsx)(`div`,{}),t[2]=c):c=t[2];let l;t[3]===n?l=t[4]:(l=(0,A.jsx)(h,{as:`span`,variant:`body-large`,className:`text-depot-theme-primary`,children:n}),t[3]=n,t[4]=l);let u;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,A.jsx)(m,{name:`chevron-down`,className:`size-4 shrink-0 text-depot-neutral-50 transition-transform duration-200 ease-out data-[panel-open]:rotate-180 motion-reduce:transition-none`}),t[5]=u):u=t[5];let d;t[6]===l?d=t[7]:(d=(0,A.jsx)(R,{render:c,children:(0,A.jsxs)(z,{className:`flex w-full cursor-pointer items-center justify-between gap-4 py-4 text-left`,children:[l,u]})}),t[6]=l,t[7]=d);let f;t[8]===r?f=t[9]:(f=(0,A.jsx)(V,{className:`h-(--accordion-panel-height) overflow-hidden transition-[height] duration-200 ease-out data-ending-style:h-0 data-starting-style:h-0 motion-reduce:transition-none`,children:(0,A.jsx)(`div`,{className:`pr-4 pb-6 type-neue-body-mobile text-depot-neutral-50 lg:type-neue-body [&_a]:text-depot-light-blue [&_a]:underline [&_a]:transition-colors hover:[&_a]:text-depot-purple [&_li]:mt-2 [&_li]:first:mt-0 [&_ol]:list-decimal [&_ol]:pl-5 [&_p:not(:first-child)]:mt-4 [&_strong]:text-depot-theme-primary [&_ul]:list-disc [&_ul]:pl-5`,children:r})}),t[8]=r,t[9]=f);let g;return t[10]!==o||t[11]!==s||t[12]!==d||t[13]!==f?(g=(0,A.jsxs)(L,{value:o,className:s,children:[d,f]}),t[10]=o,t[11]=s,t[12]=d,t[13]=f,t[14]=g):g=t[14],g}export{Y as a,G as i,J as n,K as o,q as r,W as t};
4//# sourceMappingURL=FAQ-B8bjiryh.js.map
5//# chunkId=01a0d3ec-ed63-7180-bb5b-3357a8d07d88
6//# debugId=ca118572-9c25-5774-93b8-0464d3f5864e

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.