1import{r as e}from"./rolldown-runtime-2178f5bcd152fc3f91dd.chunk.js";import{h as t,m as n,o as r,u as i,v as a}from"./vendor-5e5f03d649aa429fa111.chunk.js";import{Qn as o,Sn as s,W as c,Zn as l,ir as u,rr as d}from"./common-72eb22db8dd3f80d6dc9.chunk.js";var f=t(),p=e(a(),1);function m(e,t,n){if(e){let r=e.querySelectorAll(t),i=0;r.forEach(e=>{i+=e.scrollHeight}),e.style.setProperty(n,`${i}px`)}}var h=i(),g=o(`ui-faq`);function _(e){e&&m(e,`.ui-faq__answer-content`,`--faq-item-height`)}function v(e){let t=(0,f.c)(25),{faqItems:n,autoCollapse:i,openIconUrl:a,title:o}=e,m=i===void 0||i,_;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(_=l(),t[0]=_):_=t[0];let v=_,x;t[1]===n.length?x=t[2]:(x=Array.from({length:n.length},S),t[1]=n.length,t[2]=x);let[C,w]=(0,p.useState)(x),T;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(T=[],t[3]=T):T=t[3];let E=(0,p.useRef)(T),{t:D}=u(),O=c(),k=s(),A;t[4]===m?A=t[5]:(A=(e,t)=>{t.preventDefault(),w(m?t=>t.map((t,n)=>n===e&&!t):t=>t.map((t,n)=>n===e?!t:t))},t[4]=m,t[5]=A);let j=A,M,N;t[6]!==n||t[7]!==C?(M=()=>{n.forEach((e,t)=>{E.current[t]&&(E.current[t].open=C[t])})},N=[C,n],t[6]=n,t[7]=C,t[8]=M,t[9]=N):(M=t[8],N=t[9]),(0,p.useEffect)(M,N),r(b);let P,F;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(P=g(),F=g(`wrapper`),t[10]=P,t[11]=F):(P=t[10],F=t[11]);let I;t[12]===o?I=t[13]:(I=o&&(0,h.jsx)(`h2`,{className:`${g(`title`)} block-heading-h2`,children:(0,h.jsx)(d,{children:o})}),t[12]=o,t[13]=I);let L;t[14]!==k||t[15]!==n||t[16]!==O||t[17]!==j||t[18]!==a||t[19]!==C||t[20]!==D?(L=n.map((e,t)=>{let{questionTranslationKey:n,answerTranslationKey:r,youTubeVideoId:i,translateParams:o}=e;return(0,h.jsxs)(`div`,{className:g(`faq-item-wrapper`),children:[(0,h.jsx)(`details`,{ref:e=>{E.current[t]=e},className:g(`item`),open:C[t],onClick:e=>j(t,e),children:(0,h.jsxs)(`summary`,{className:g(`question`),children:[(0,h.jsx)(`div`,{children:(0,h.jsx)(d,{children:n})}),(0,h.jsx)(`img`,{src:a||`${v}/repo/website/assets/img/pages/deposit-method/svg/arrow-btn.svg`,alt:D(`ui-faq-image-alt`),className:g(`arrow`)})]})}),(0,h.jsx)(`div`,{ref:y,className:g(`answer`),children:(0,h.jsxs)(`div`,{className:g(`answer-content`),children:[(0,h.jsx)(d,{data:{...o?.descriptionParams,globalDomain:O,directURL:k.login},children:r}),!!i&&(0,h.jsx)(`div`,{className:g(`video-wrapper`),children:(0,h.jsx)(`a`,{className:g(`video-link`),href:`https://www.youtube.com/watch?v=${e.youTubeVideoId}?autoplay=1`,rel:`noopener`,target:`_blank`,children:(0,h.jsx)(`img`,{alt:`Video Poster`,className:g(`video-thumbnail`),src:`https://i.ytimg.com/vi/${e.youTubeVideoId}/hqdefault.jpg`})})})]})})]},t)}),t[14]=k,t[15]=n,t[16]=O,t[17]=j,t[18]=a,t[19]=C,t[20]=D,t[21]=L):L=t[21];let R;return t[22]!==I||t[23]!==L?(R=(0,h.jsx)(`section`,{className:P,children:(0,h.jsxs)(`div`,{className:F,children:[I,L]})}),t[22]=I,t[23]=L,t[24]=R):R=t[24],R}function y(e){return _(e)}function b(){n()&&document.querySelectorAll(`.${g(`answer`)}`).forEach(x)}function x(e){return _(e)}function S(){return!1}export{m as n,v 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.