PageSourceSearch

https://darwinbox.com/_next/static/chunks/pages/blog/faqAccordion-57b32e92a15c8f14.js

js darwinbox.com collected 2026-09-24 17:39:51 UTC 4,111 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3444],{45664:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/blog/faqAccordion",function(){return o(43681)}])},43681:function(e,t,o){"use strict";o.r(t);var a=o(85893),i=o(69554),n=o.n(i),s=o(67294),r=o(13114),l=o(49661);t.default=e=>{let{blogContent:t}=e,[o,i]=(0,s.useState)([]),[c,d]=(0,s.useState)(0),[f,m]=(0,s.useState)(!1);(0,s.useEffect)(()=>{(()=>{let e=[],o=!1,a="",n=!1;t.forEach(t=>{var i,s,r,l,c,d,f;if("heading"===t.type&&(null===(i=t.attrs)||void 0===i?void 0:i.level)===2)"FAQs"===((null===(l=t.content)||void 0===l?void 0:null===(r=l[0])||void 0===r?void 0:r.text)||"").trim()?(o=!0,n=!0):o=!1;else if(o&&"heading"===t.type&&(null===(s=t.attrs)||void 0===s?void 0:s.level)===3)a=(null===(d=t.content)||void 0===d?void 0:null===(c=d[0])||void 0===c?void 0:c.text)||"";else if(o&&"paragraph"===t.type&&a){let o=(null===(f=t.content)||void 0===f?void 0:f.map(e=>e.text).join(""))||"";e.push({question:a,answer:o}),a=""}}),i(e),m(n)})()},[t]);let u=e=>{d(e===c?-1:e)};return f?(0,a.jsxs)("div",{className:"jsx-19b436e5a888c7f7 faq-accordion",children:[(0,a.jsx)("h2",{className:"jsx-19b436e5a888c7f7 mb-5 mt-16 ",children:"FAQs"}),o.map((e,t)=>(0,a.jsxs)("div",{className:"jsx-19b436e5a888c7f7 faq-item ",children:[(0,a.jsxs)("div",{onClick:()=>u(t),style:{borderRadius:c===t?"8px 8px 0 0":"8px",paddingBottom:c===t?"4px":"32px",transition:"padding-bottom 0.5s ease-in-out"},className:"jsx-19b436e5a888c7f7 faq-question font-switzer p-6 md:p-8",children:[(0,a.jsx)("span",{className:"jsx-19b436e5a888c7f7 font-switzer text-base md:text-lg",children:e.question}),(0,a.jsx)("span",{className:"jsx-19b436e5a888c7f7 "+"arrow-icon ".concat(c===t?"open":"closed"),children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",className:"jsx-19b436e5a888c7f7",children:(0,a.jsx)("g",{id:"Frame",className:"jsx-19b436e5a888c7f7",children:(0,a.jsx)("path",{id:"Rectangle 34628184",d:"M20.0508 10.499L12.0508 18.499L4.05078 10.499",stroke:"#002B54",strokeWidth:"2.47125",className:"jsx-19b436e5a888c7f7"})})})})]}),(0,a.jsx)(r.M,{initial:!1,children:c===t&&(0,a.jsx)(l.E.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.5,ease:"easeInOut"},className:"faq-answer font-inter p-6 pt-0 md:p-8 md:pt-0",style:{overflow:"hidden",borderRadius:"0 0 8px 8px"},children:e.answer},"content")})]},t)),(0,a.jsx)(n(),{id:"19b436e5a888c7f7",children:".faq-accordion{-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px;overflow:hidden}.faq-item{margin-bottom:10px}.faq-question{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;background-color:rgba(0,43,84,.03)}.faq-question span{color:#002b54;font-style:normal;font-weight:700;line-height:1.3;letter-spacing:-.18px}.faq-question.active{color:#002b54;background-color:rgba(0,43,84,.03)}.arrow-icon{display:inline-block;-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0deg);-webkit-transition:-webkit-transform.5s ease-in-out;-moz-transition:-moz-transform.5s ease-in-out;-o-transition:-o-transform.5s ease-in-out;transition:-webkit-transform.5s ease-in-out;transition:-moz-transform.5s ease-in-out;transition:-o-transform.5s ease-in-out;transition:transform.5s ease-in-out}.arrow-icon.open{-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-ms-transform:rotate(180deg);-o-transform:rotate(180deg);transform:rotate(180deg)}.faq-answer{color:rgba(0,43,84,.7);font-size:16px;font-style:normal;font-weight:400;line-height:1.2;background-color:rgba(0,43,84,.03)}"})]}):null}}},function(e){e.O(0,[9554,7716,2888,9774,179],function(){return e(e.s=45664)}),_N_E=e.O()}]);

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.