PageSourceSearch

https://firmapp-backend.netlify.app/_next/static/chunks/pages/faqs-0c485ebb5e09aa45.js

js firmapp-backend.netlify.app collected 2026-10-03 10:45:04 UTC 6,734 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1188],{87969:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/faqs",function(){return n(53119)}])},20921:function(e,t,n){"use strict";var s=n(85893);t.Z=function(e){var t=e.className;return(0,s.jsx)("div",{className:"".concat(t," w-8 h-8 overflow-hidden"),children:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",style:{margin:"auto",background:"transparent",display:"block"},width:"100%",height:"100%",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",children:(0,s.jsx)("circle",{cx:"50",cy:"50",r:"32",strokeWidth:"8",stroke:"currentColor",strokeDasharray:"50.26548245743669 50.26548245743669",fill:"none",strokeLinecap:"round",children:(0,s.jsx)("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",keyTimes:"0;1",values:"0 50 50;360 50 50"})})})})}},12174:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var s=n(85893),a=n(67294),i=function(e){var t=e.children,n=e.collapsed,i=(0,a.useRef)(),l=(0,a.useState)(0),r=l[0],o=l[1],c=(0,a.useState)(0),u=c[0],d=c[1];return(0,a.useEffect)((function(){var e=null===i||void 0===i?void 0:i.current;e&&o(e.scrollHeight)}),[]),(0,a.useEffect)((function(){d(r*Number(!n))}),[r,n]),(0,s.jsx)("div",{ref:i,style:{height:"".concat(u,"px")},className:" duration-200 ease-out overflow-hidden transition-[height] ",children:t})}},69149:function(e,t,n){"use strict";n.d(t,{t:function(){return f}});var s=n(85893),a=n(82183),i=n(20013),l=n(17524),r=n(30347),o=n(67294),c=n(93054),u=[5,10,20,50,100].map((function(e){return{value:e,label:e.toString()}})),d=function(e){return(0,s.jsx)("button",{className:"\n        text-xs font-semibold\n        px-2 py-1\n        rounded\n        transition-colors\n        flex justify-center basis-8 flex-shrink-0\n        hover:bg-boni-blue/25\n        disabled:text-slate-200 disabled:bg-slate-50 disabled:hover:bg-slate-50\n        ".concat(e.active?"bg-boni-blue text-white":"bg-slate-100","\n      "),disabled:e.disabled,onClick:e.onClick,type:"button",children:e.children})},f=function(e){var t=function(){return e.pageIndex==h},n=function(){var t=h+f-1;return e.pageIndex==t},f=Math.ceil(e.itemsCount/e.itemsPerPage),x=(0,o.useState)(0),h=x[0],m=x[1],v=(0,o.useState)(0),g=v[0],b=v[1],j=(0,o.useState)(e.itemsPerPage||20),p=j[0],N=j[1],w=(0,o.useCallback)((function(e){var t=Math.max(0,e-Math.floor(2.5)),n=Math.min(t+5,f),s=n-t;s<5&&(t=Math.max(0,t-(5-s))),m(t),b(n)}),[f]);return(0,o.useEffect)((function(){w(e.pageIndex)}),[e.pageIndex,w]),(0,s.jsxs)("div",{className:"flex gap-2 justify-between py-2 text-slate-600",children:[(0,s.jsx)("div",{className:"w-32"}),(0,s.jsxs)("div",{className:"flex overflow-hidden flex-1 gap-2 justify-center items-center",children:[(0,s.jsx)(d,{onClick:function(){w(0)},disabled:t(),children:(0,s.jsx)(a.Z,{className:"h-4"})}),(0,s.jsx)(d,{onClick:function(){w(h-5)},disabled:t(),children:(0,s.jsx)(i.Z,{className:"h-4"})}),function(e){for(var t=[],n=e;n<g;n++)t.push(n);return t}(h).map((function(t,n){return(0,s.jsx)(d,{active:e.pageIndex==t,onClick:function(){e.onClickPage(t)},children:t+1},n)})),(0,s.jsx)(d,{onClick:function(){w(g)},disabled:n(),children:(0,s.jsx)(l.Z,{className:"h-4"})}),(0,s.jsx)(d,{onClick:function(){w(f-5)},disabled:n(),children:(0,s.jsx)(r.Z,{className:"h-4"})})]}),(0,s.jsx)("div",{className:"w-32",children:(0,s.jsx)(c.ZP,{options:u,value:{value:p,label:p.toString()},onChange:function(t){return function(t){N(t),e.onClickPage(0),e.onItemsPerPageChange(t)}(t.value)},isSearchable:!1,menuPlacement:"auto"})})]})}},53119:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return v},default:function(){return g}});var s=n(85893),a=n(67294),i=n(97568),l=n(33299),r=n(20921),o=n(69149);function c(){var e,t,n=(e=["\n  query getFaqs($offset: Int!, $limit: Int!) {\n    faqs(limit: $limit, offset: $offset) {\n      id\n      text\n      title\n    }\n    faqs_aggregate {\n      aggregate {\n        count\n      }\n    }\n  }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return c=function(){return n},n}var u=(0,n(17283).Ps)(c()),d=n(37887),f=n(11163),x=n(12174),h=n(28309);var m=function(e){var t=e.faq,n=((0,i.$G)(["faqs"]).t,(0,f.useRouter)(),(0,l.useSession)().data,(0,a.useState)(!1)),r
1=n[0],o=n[1];return(0,s.jsxs)("div",{className:"p-4 overflow-hidden text-sm bg-white rounded",children:[(0,s.jsx)("div",{className:"flex justify-between pr-4",children:(0,s.jsx)("h3",{className:"flex items-center gap-2",children:(0,s.jsxs)("button",{className:"flex items-start",onClick:function(){o(!r)},type:"button",children:[(0,s.jsx)(h.e,{icon:r?"ChevronDoubleUpIcon":"ChevronDoubleDownIcon",className:"w-6 h-6 pt-1 text-slate-400"}),(0,s.jsx)("span",{className:"text-lg font-semibold text-slate-600",children:null===t||void 0===t?void 0:t.title})]})})}),(0,s.jsx)(x.Z,{collapsed:!r,children:(0,s.jsx)("div",{className:"flex flex-col items-stretch gap-4 m-4 ml-5",children:(null===t||void 0===t?void 0:t.text)&&(0,s.jsx)("div",{className:"flex gap-2",children:(0,s.jsxs)("div",{className:"flex-1 bg-slate-50 text-slate-600 border border-gray-100 rounded-lg p-4",children:[(null===t||void 0===t?void 0:t.text)&&(0,s.jsx)("p",{className:"text-xs",dangerouslySetInnerHTML:{__html:null===t||void 0===t?void 0:t.text}}),(0,s.jsx)("div",{className:"flex flex-col gap-4 m-4"})]})},t.id)})}),(0,s.jsx)("div",{className:"flex justify-end mr-4",children:(0,s.jsx)("div",{})})]})};var v=!0,g=function(){var e,t,n,c=(0,i.$G)(["faqs"],{keyPrefix:"faqs"}).t,f=((0,l.useSession)().data,(0,a.useState)(20)),x=f[0],h=f[1],v=(0,a.useState)(0),g=v[0],b=v[1],j=(0,d.a)(u,{variables:{offset:g*x,limit:x},fetchPolicy:"network-only"}),p=j.data,N=j.loading;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex justify-between items-end px-4 mt-4 mr-4 mb-4",children:[(0,s.jsx)("h1",{className:"text-xl font-semibold text-slate-900",children:c("title")}),(0,s.jsx)("div",{className:"flex gap-1 justify-center items-stretch text-sm"}),(0,s.jsx)("div",{})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-4 items-stretch p-4 bg-gray-100 rounded",children:[N&&(0,s.jsx)(r.Z,{className:"self-center w-20 h-20 text-boni-blue"}),null===p||void 0===p||null===(e=p.faqs)||void 0===e?void 0:e.map((function(e){return(0,s.jsx)(m,{faq:e},e.id)}))]}),(0,s.jsx)(o.t,{itemsCount:(null===p||void 0===p||null===(t=p.faqs_aggregate)||void 0===t||null===(n=t.aggregate)||void 0===n?void 0:n.count)||0,itemsPerPage:x,pageIndex:g,onClickPage:b,onItemsPerPageChange:h})]})}}},function(e){e.O(0,[3054,7887,9774,2888,179],(function(){return t=87969,e(e.s=t);var t}));var t=e.O();_N_E=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.