PageSourceSearch

https://www.4yfn.com/build/assets/HelpCentreApp-DdtsmuKs.js

js 4yfn.com collected 2026-10-02 17:09:01 UTC 6,844 bytes, 2 lines download raw bytes

1import{j as e}from"./jsx-runtime-De-xxnn8.js";import{u as f,A as g}from"./useAlgoliaSearch-D-QCuMHa.js";import{t as l,W as d}from"./app-D0n4DI5A.js";import{r as n,d as u,H as i,h as y,I as m,C as c,j as b}from"./react-D3AUmzDp.js";import"./vendor-DeLyGtsp.js";import"./search-insights-browser-fQKTCYQP.js";import"./sendbird-CW8ws8M9.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};s.SENTRY_RELEASE={id:"d00ef78d2efe895700fa19003848d1bfb72b1681"};var t=new s.Error().stack;t&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[t]="90686cfb-ace0-4556-8df6-d683e66ba7a5",s._sentryDebugIdIdentifier="sentry-dbid-90686cfb-ace0-4556-8df6-d683e66ba7a5")}catch(r){}})();function j(){const[s,t]=n.useState(window.location.pathname),r=n.useCallback(a=>{t(a),window.history.pushState({},"",a)},[t]);return n.useEffect(()=>{window.addEventListener("popstate",()=>t(window.location.pathname))},[]),[s,r]}const w=()=>e.jsxs("div",{className:"flex flex-col text-center py-5",children:[e.jsx("h2",{className:"my-2 text-2xl font-medium",children:"No Results"}),e.jsx("p",{children:l("seaTranslations.helpCentreNoResults","Sorry, there are no results for your search terms. Try checking your spelling or broadening your search criteria, for example if you are looking for a specific exhibitor, try searching for their industry.")}),e.jsxs("a",{onClick:()=>history.back(),className:"text-sm tracking-tight uppercase cursor-pointer text-darkerNavy hover:opacity-75 pt-6 font-medium",children:["← ",l("seaTranslations.helpCentreNoResultsCTA","Back To All Questions")]})]}),x=({children:s})=>e.jsx("h2",{className:"flex flex-wrap pb-2 mt-2 mb-8 text-xl font-medium border-b border-gray-300",children:s});function p(s){return s.startsWith("va-")&&(s=s.slice(3)),s}const N=({question:s})=>{const[t,r]=n.useState(!1),a=n.useMemo(()=>s.wysiwyg.trim().length>0,[s.wysiwyg]),o=n.useMemo(()=>t||!a?s.wysiwyg:s.wysiwyg.slice(0,0),[s.wysiwyg,t,a]);return e.jsxs("div",{className:"top-question w-full mb-4 p-4 px-6 mr-2 last:mr-0 border border-t-4 border-gray-300 rounded-sm shadow",style:{borderTopColor:s.topicHintColor||"#4CBBEC"},children:[e.jsx("h4",{className:"text-lg font-medium leading-snug",children:s.title}),e.jsx("div",{className:"my-2 break-words wysiwyg",dangerouslySetInnerHTML:{__html:o}}),e.jsxs("div",{className:"relative flex flex-wrap items-center mt-2",children:[e.jsx("span",{className:"category block px-2 py-1 text-xs text-gray-500 bg-gray-100 border border-gray-500",children:p(s.faqCategory)}),a&&e.jsxs("a",{onClick:()=>r(!t),className:"absolute right-0 ml-auto text-xs font-medium tracking-tight text-right uppercase cursor-pointer hover:opacity-75 text-darkerNavy",children:["Show ",t?"Less":"More"]})]})]})},v=s=>{const[t,r]=n.useState(!1),a=n.useMemo(()=>s.answer.trim().length>0,[s.answer]),o=n.useMemo(()=>t||!a?s.answer:s.answer.slice(0,0),[s.answer,t,a]);return e.jsxs("div",{className:"question w-full mb-4 p-4 px-6 mr-2 last:mr-0 border border-t-4 border-gray-300 rounded-sm shadow",style:{borderTopColor:s.topicHintColor||"#4CBBEC"},children:[e.jsx("div",{className:"text-lg font-medium leading-snug",children:e.jsx(i,{hit:s,attribute:"question"})}),e.jsx("div",{className:"my-2 break-words wysiwyg",dangerouslySetInnerHTML:{__html:o}}),e.jsxs("p",{className:"relative flex flex-wrap items-center mt-2",children:[e.jsx("span",{className:"category px-2 py-1 text-xs text-gray-500 bg-gray-100 border border-gray-500",children:p(s.topic)}),a&&e.jsxs("a",{onClick:()=>r(!t),className:"right-0 ml-auto text-xs font-medium tracking-tight text-right uppercase cursor-pointer hover:opacity-75 text-darkerNavy",children:["Show ",t?"Less":"More"]})]})]})},C=s=>{const{results:t}=u();return s!=null&&s.query?e.jsxs("div",{className:"mt-8 justify-content",children:[e.jsx(x,{children:"Search Questions"}),e.jsx("div",{className:"questions pb-2",children:t.map(r=>e.jsx(v,{hit:r},r.objectID))})]}):e.jsx("div",{className:"flex flex-col text-center",children:e.jsx("h2",{className:"my-2 text-lg font-medium",children:l("seaTranslations.trySearchingForSpecificQuestions","Try searching for specific questions, or browse our FAQ Topics.")})})},k=({topQuestions:s,hits:t})=>e.jsxs("div",{className:"pb-10",children:[e.jsx(C,{hits:t}),s.length?e.jsxs("div",{className:"mt-8 justify-content",children:[e.jsx(x,{children:"Top Questions"}),e.jsx("div",{className:"top-questions pb-2",children:s.map(r=>e.jsx(N,{question:r},r.id))})]}):null]}),T=()=>{const{items:s}=y();return s.length>0?e.jsxs("div",{className:"my-10",children:[e.jsx(x,{children:e.jsxs("span",{className:"ml-1 opacity-50",children:[s.length," Topic",s.length===1?"":"s"]})}),e.jsx("div",{className:"flex pb-2 overflow-x-auto mb-8 gradient-sides",children:s.map(t=>e.jsxs("div",{className:"flex flex-col justify-around p-4 px-6 mr-2 border border-gray-300",style:{minWidth:"329px",maxWidth:"329px"},children:[t.icon&&e.jsx("p",{className:"my-2 mb-4",children:e.jsx("img",{src:t.icon,alt:t.title})}),e.jsx("h4",{className:"text-xl font-semibold tracking-tight",children:e.jsx(i,{hit:t,attribute:"title"})}),t.subtitle&&e.jsx("p",{className:"mt-2 leading-snug",children:e.jsx(i,{hit:t,attribute:"subtitle"})}),e.jsx("p",{className:"mt-4",children:e.jsx("a",{href:t.path,className:"px-8 py-4 mx-auto font-medium text-center block text-white uppercase cursor-pointer bg-smartCyan hover:bg-smartCyan-dark",children:"Find Out More"})})]},t.objectID))})]}):null},S="faqsTopics-".concat(d()),E="faqs-".concat(d()),I=({onPush:s,topQuestions:t})=>{const{results:r}=u(),a=r.nbHits===0;return e.jsxs(e.Fragment,{children:[a&&e.jsx(w,{}),e.jsxs(m,{indexName:S,children:[e.jsx(c,{hitsPerPage:30,filters:"scope:va"}),e.jsx(T,{onPush:s})]}
1),e.jsxs(m,{indexName:E,children:[e.jsx(c,{hitsPerPage:20,filters:"scope:va"}),e.jsx(k,{topQuestions:t})]})]})},H=s=>{const{query:t,refine:r}=b(s),a=n.useCallback(o=>r(o.target.value),[r]);return e.jsxs("div",{className:"relative z-5 w-full sm:-mt-6 sm:w-5/12 mx-auto",children:[e.jsx("label",{className:"absolute left-0 pt-5 pl-5 font-bold",htmlFor:"search-va",children:e.jsx("i",{className:"fa fa-search text-gray-800",children:e.jsx("span",{className:"sr-only",children:"Search"})})}),e.jsx("input",{id:"search-va",type:"search",className:"w-full bg-white px-4 py-4 pl-12 text-lg transition-shadow duration-200 focus:outline-hidden focus:ring-3 focus:ring-secondary",placeholder:"Describe your issue...",value:t,onChange:a})]})},R="faqs-".concat(d()),F=({algoliaAppId:s,algoliaSearchApiKey:t,topQuestions:r,hits:a})=>{const{searchClient:o}=f(s,t),[h]=j();return e.jsxs(g,{searchClient:o,indexName:R,children:[e.jsx(c,{filters:"scope:va"}),e.jsx(H,{}),e.jsx(I,{onPush:h,topQuestions:r,hits:a})]})};export{F as default};
2//# sourceMappingURL=HelpCentreApp-DdtsmuKs.js.map

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.