1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[945],{98525:function(e,t,n){"use strict";n.d(t,{Ar:function(){return FaqList},ZP:function(){return Faqs_Faqs}});var l,s,r,a=n(85893),i=n(67294),o=n(25844),c=n(46996);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e}).apply(this,arguments)}var expand=function(e){return i.createElement("svg",_extends({width:50,height:50,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),l||(l=i.createElement("rect",{x:49.345,y:.655,width:48.69,height:48.69,rx:24.345,transform:"rotate(90 49.345 .655)",stroke:"#584646",strokeWidth:1.31})),s||(s=i.createElement("path",{d:"M25 13v24M13 25h24",stroke:"#584646",strokeWidth:2,strokeLinecap:"square",strokeLinejoin:"round"})))};function collapse_extends(){return(collapse_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e}).apply(this,arguments)}var collapse=function(e){return i.createElement("svg",collapse_extends({width:44,height:45,viewBox:"0 0 44 45",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=i.createElement("path",{d:"M13 22v1.76h20V22H13z",fill:"#000"})))},u=n(12895),d=n.n(u),f=n(17538),h=n(86010),v=n(16518),_=n(30653),q=n(12848),p=n(65254),m=n(55009),x=n(18297);let FaqItem=e=>{let{question:t,answer:n,open:l,icon:s,onClick:r,_uid:i,...u}=e;return(0,a.jsx)(x.Z,{content:{_uid:i,...u},children:(0,a.jsxs)("div",{className:d().faqItem,children:[s&&s.filename?(0,a.jsx)(q.Z,{media:s,className:d().faqIcon}):null,(0,a.jsxs)("div",{onClick:r,style:{width:"100%"},children:[(0,a.jsx)(c.Z,{className:(0,h.Z)(d().question,!l&&d().notActive),mb0:!0,children:(0,a.jsx)(c.Z,{children:t})}),(0,a.jsx)(v.Z,{in:l,children:(0,a.jsx)("div",{children:"string"==typeof n?(0,a.jsx)(c.Z.Body3,{className:d().faqContent,children:(0,_.ZP)(n)}):(0,a.jsx)(o.Z,{variant:"body3",className:d().faqContent,content:n})})})]}),(0,a.jsx)("span",{className:d().qIcon,onClick:r,children:l?(0,a.jsx)(collapse,{className:d().minusIcon}):(0,a.jsx)(expand,{className:d().plusIcon})})]},u._uid)},i)},FaqList=e=>{let{faqs:t=[]}=e,[n,l]=(0,i.useState)(-1);return(0,a.jsx)("div",{className:d().faq,children:t.map((e,t)=>(0,i.createElement)(FaqItem,{...e,onClick:()=>{null!=n&&n==t?l(null):l(t)},open:t===n,key:t}))})};var Faqs_Faqs=e=>{var t,n;let{categories:l=[],body:s=[],hideBodyOnTheseFaqs:r=[]}=e,{list:o}=(0,p.Z)({starts_with:"_faq-list",content_type:"faqList",per_page:10}),c=(0,m.e)(o),u=l.length>0&&l.map(e=>e.content),h=u.length>0?u:c,[v,_]=(0,i.useState)(h.length>0&&"string"!=typeof h[0]&&void 0!==h[0]?h[0].uuid:null),[q,x]=(0,i.useState)(0),[g,j]=(0,i.useState)(!1),y=(0,i.useRef)(null);(0,i.useEffect)(()=>{_(h.length>0&&"string"!=typeof h[0]&&void 0!==h[0]?h[0].uuid:null)},[h]),(0,i.useEffect)(()=>{var e,t;return y.current&&(null==y?void 0:null===(e=y.current)||void 0===e?void 0:e.scrollWidth)===(null==y?void 0:null===(t=y.current)||void 0===t?void 0:t.offsetWidth)?j(!0):j(!1),()=>{}},[null==y?void 0:null===(t=y.current)||void 0===t?void 0:t.scrollWidth,null==y?void 0:null===(n=y.current)||void 0===n?void 0:n.offsetWidth]);let handleCategory=(e,t)=>{t.preventDefault(),_(e)};if("string"==typeof h[0]||void 0===h[0])return null;let F=h.find(e=>e.uuid===v),w=1===h.length,N=h.find(e=>e.uuid===v&&"all"==e.category.toLowerCase()),k=h.map(e=>e.faqs).flat(1);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:d().faqs,children:(0,a.jsxs)("div",{className:d().faqWrap,children:[w?null:(0,a.jsx)("ul",{className:d().tabs,ref:y,onScroll:()=>{x(y.current.scrollLeft),Math.floor(y.current.scrollWidth-y.current.scrollLeft)<=y.current.offsetWidth?j(!0):j(!1)},children:h.map((e,t)=>(0,a.jsx)("li",{children:(0,a.jsx)("a",{className:v===e.uuid?d().active:d().notActive,onClick:t=>handleCategory(e.uuid,t),href:"#",children:e.category})},t))}),(0,a.jsx)("div",{className:d().faqList,children:N?(0,a.jsx)(FaqList,{faqs:k},v):F?(0,i.createElement)(FaqList,{...F,key:v}):null})]})}),r.includes(v)?null:(0,a.jsx)("div",{children:(0,a.jsx)(f.LU,{bloks:s})})]})}},6738:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Values}});var l=n(85893),s=n(67294),r=n(98525),a=n(12895),i=n.n(a),o=n(17538),c=n(65254),u=n(55009),Values=e=>{var t,n;let{categories:a=[],body:d=[],hideBodyOnTheseFaqs:f=[]}=e,{list:h}=(0,c.Z)({starts_with:"_values-list",content_type:"faqList",per_page:10}),v=(0,u.e)(h),_=a.length>0&&a.map(e=>e.content),q=_.length>
10?_:v,[p,m]=(0,s.useState)(q.length>0&&"string"!=typeof q[0]&&void 0!==q[0]?q[0].uuid:null),[x,g]=(0,s.useState)(0),[j,y]=(0,s.useState)(!1),F=(0,s.useRef)(null);(0,s.useEffect)(()=>{m(q.length>0&&"string"!=typeof q[0]&&void 0!==q[0]?q[0].uuid:null)},[q]),(0,s.useEffect)(()=>{var e,t;return F.current&&(null==F?void 0:null===(e=F.current)||void 0===e?void 0:e.scrollWidth)===(null==F?void 0:null===(t=F.current)||void 0===t?void 0:t.offsetWidth)?y(!0):y(!1),()=>{}},[null==F?void 0:null===(t=F.current)||void 0===t?void 0:t.scrollWidth,null==F?void 0:null===(n=F.current)||void 0===n?void 0:n.offsetWidth]);let handleCategory=(e,t)=>{t.preventDefault(),m(e)};if("string"==typeof q[0]||void 0===q[0])return null;let w=q.find(e=>e.uuid===p),N=1===q.length,k=q.find(e=>e.uuid===p&&"all"==e.category.toLowerCase()),L=q.map(e=>e.faqs).flat(1);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:i().faqs,children:(0,l.jsxs)("div",{className:i().faqWrap,children:[N?null:(0,l.jsx)("ul",{className:i().tabs,ref:F,onScroll:()=>{g(F.current.scrollLeft),Math.floor(F.current.scrollWidth-F.current.scrollLeft)<=F.current.offsetWidth?y(!0):y(!1)},children:q.map((e,t)=>(0,l.jsx)("li",{children:(0,l.jsx)("a",{className:p===e.uuid?i().active:i().notActive,onClick:t=>handleCategory(e.uuid,t),href:"#",children:e.category})},t))}),(0,l.jsx)("div",{className:i().faqList,children:k?(0,l.jsx)(r.Ar,{faqs:L},p):w?(0,s.createElement)(r.Ar,{...w,key:p}):null})]})}),f.includes(p)?null:(0,l.jsx)("div",{children:(0,l.jsx)(o.LU,{bloks:d})})]})}},12895:function(e){e.exports={faqs:"Faqs_faqs__R6Brz",faqWrap:"Faqs_faqWrap__ty6IO",tabs:"Faqs_tabs__N6XEg",active:"Faqs_active__ZWrOz",notActive:"Faqs_notActive__hdv0S",tabArrow:"Faqs_tabArrow__s_nKN",leftArrow:"Faqs_leftArrow__clckQ",rightArrow:"Faqs_rightArrow__dvXwG",faqList:"Faqs_faqList__lOkWM",question:"Faqs_question__hzNxO",faqIcon:"Faqs_faqIcon__LYejW",faqItem:"Faqs_faqItem__fbSjd",qIcon:"Faqs_qIcon__FN5ON",plusIcon:"Faqs_plusIcon__4uVUo",minusIcon:"Faqs_minusIcon__gSe5F",faqContent:"Faqs_faqContent__CC894"}},50247:function(){}}]);
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.