1"use strict";(globalThis.__LOADABLE_LOADED_CHUNKS__||=[]).push([[5494],{27676(g,h,t){var e=t(47478),s,r,c;function f(){return f=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var E=arguments[o];for(var d in E)({}).hasOwnProperty.call(E,d)&&(n[d]=E[d])}return n},f.apply(null,arguments)}const l=(n,o)=>e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 1104 464",ref:o},n),s||(s=e.createElement("defs",null,e.createElement("linearGradient",{id:"desktop_svg__a",x1:"0%",x2:"100%"},e.createElement("stop",{offset:"0%",stopColor:"#fff",stopOpacity:0}),e.createElement("stop",{offset:"49.61%",stopColor:"#fff",stopOpacity:.5}),e.createElement("stop",{offset:"100%",stopColor:"#fff",stopOpacity:0})))),r||(r=e.createElement("path",{fill:"#C9CCCF",d:"M0 0h700v32H0zM0 48h700v32H0zM0 96h700v32H0zM0 144h700v32H0zM0 192h700v32H0zM0 256h374v32H0zM0 304h346.667v160H0zM378.667 304h346.666v160H378.667zM757.333 304H1104v160H757.333z"})),c||(c=e.createElement("rect",{width:"100%",height:"100%",fill:"url(#desktop_svg__a)"},e.createElement("animate",{attributeName:"x",dur:"1s",from:"-100%",repeatCount:"indefinite",to:"100%"})))),a=(0,e.forwardRef)(l);
1t.d(h,["A",0,a])},60434(g,h,t){var e=t(47478),s,r,c;function f(){return f=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var E=arguments[o];for(var d in E)({}).hasOwnProperty.call(E,d)&&(n[d]=E[d])}return n},f.apply(null,arguments)}const l=(n,o)=>e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 343 620",ref:o},n),s||(s=e.createElement("defs",null,e.createElement("linearGradient",{id:"mobile_svg__a",x1:"0%",x2:"100%"},e.createElement("stop",{offset:"0%",stopColor:"#fff",stopOpacity:0}),e.createElement("stop",{offset:"49.61%",stopColor:"#fff",stopOpacity:.5}),e.createElement("stop",{offset:"100%",stopColor:"#fff",stopOpacity:0})))),r||(r=e.createElement("path",{fill:"#C9CCCF",d:"M0 0h343v32H0zM0 48h343v32H0zM0 96h343v32H0zM0 144h343v32H0zM0 192h343v32H0zM0 256h343v28H0zM0 300h343v152H0zM0 468h343v152H0z"})),c||(c=e.createElement("rect",{width:"100%",height:"100%",fill:"url(#mobile_svg__a)"},e.createElement("animate",{attributeName:"x",dur:"1s",from:"-100%",repeatCount:"indefinite",to:"100%"})))),a=(0,e.forwardRef)(l);
1t.d(h,["A",0,a])},38528(g,h,t){var e=t(47478),s,r,c;function f(){return f=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var E=arguments[o];for(var d in E)({}).hasOwnProperty.call(E,d)&&(n[d]=E[d])}return n},f.apply(null,arguments)}const l=(n,o)=>e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 944 464",ref:o},n),s||(s=e.createElement("defs",null,e.createElement("linearGradient",{id:"tablet-landscape_svg__a",x1:"0%",x2:"100%"},e.createElement("stop",{offset:"0%",stopColor:"#fff",stopOpacity:0}),e.createElement("stop",{offset:"49.61%",stopColor:"#fff",stopOpacity:.5}),e.createElement("stop",{offset:"100%",stopColor:"#fff",stopOpacity:0})))),r||(r=e.createElement("path",{fill:"#C9CCCF",d:"M0 0h700v32H0zM0 48h700v32H0zM0 96h700v32H0zM0 144h700v32H0zM0 192h700v32H0zM0 256h374v32H0zM0 304h298.667v160H0zM322.667 304h298.666v160H322.667zM645.333 304H944v160H645.333z"})),c||(c=e.createElement("rect",{width:"100%",height:"100%",fill:"url(#tablet-landscape_svg__a)"},e.createElement("animate",{attributeName:"x",dur:"1s",from:"-100%",repeatCount:"indefinite",to:"100%"})))),a=(0,e.forwardRef)(l);
1t.d(h,["A",0,a])},62564(g,h,t){var e=t(47478),s,r,c;function f(){return f=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var E=arguments[o];for(var d in E)({}).hasOwnProperty.call(E,d)&&(n[d]=E[d])}return n},f.apply(null,arguments)}const l=(n,o)=>e.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 704 452",ref:o},n),s||(s=e.createElement("defs",null,e.createElement("linearGradient",{id:"tablet-portrait_svg__a",x1:"0%",x2:"100%"},e.createElement("stop",{offset:"0%",stopColor:"#fff",stopOpacity:0}),e.createElement("stop",{offset:"49.61%",stopColor:"#fff",stopOpacity:.5}),e.createElement("stop",{offset:"100%",stopColor:"#fff",stopOpacity:0})))),r||(r=e.createElement("path",{fill:"#C9CCCF",d:"M0 0h704v32H0zM0 48h704v32H0zM0 96h704v32H0zM0 144h704v32H0zM0 192h704v32H0zM0 256h374v28H0zM0 300h344v152H0zM360 300h344v152H360z"})),c||(c=e.createElement("rect",{width:"100%",height:"100%",fill:"url(#tablet-portrait_svg__a)"},e.createElement("animate",{attributeName:"x",dur:"1s",from:"-100%",repeatCount:"indefinite",to:"100%"})))),a=(0,e.forwardRef)(l);
1t.d(h,["A",0,a])},36983(g,h,t){var e=t(47478),s;function r(){return r=Object.assign?Object.assign.bind():function(i){for(var a=1;a<arguments.length;a++){var n=arguments[a];for(var o in n)({}).hasOwnProperty.call(n,o)&&(i[o]=n[o])}return i},r.apply(null,arguments)}const c=(i,a)=>e.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",ref:a},i),s||(s=e.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.89 1.412c-1.346.08-2.39.352-3.5.912a8.37 8.37 0 0 0-3.46 3.215A8.6 8.6 0 0 0 2.862 8.25c-.07.321-.136.835-.167 1.308-.005.061-.086-.054-.834-1.176-.492-.74-.863-1.276-.913-1.322-.257-.237-.697-.11-.799.229a.42.42 0 0 0-.007.278c.021.078 2.57 3.928 2.68 4.048.095.104.208.153.358.154.246.002.152.095 1.822-1.812.83-.948 1.54-1.767 1.577-1.821.06-.085.07-.117.078-.237a.46.46 0 0 0-.232-.46.5.5 0 0 0-.548.017c-.04.03-.525.571-1.077 1.204S3.77 9.836 3.74 9.867l-.055.057.008-.197a7.4 7.4 0 0 1 .77-3.063A7.5 7.5 0 0 1 5.949 4.59 7.3 7.3 0 0 1 8.26 3.026a7.4 7.4 0 0 1 3.02-.61 7.494 7.494 0 0 1 6.145 3.128c.996 1.39 1.498 3.001 1.448 4.644-.029.96-.197 1.77-.546 2.632-.997 2.462-3.161 4.224-5.721 4.659-.35.06-.55.08-1.016.101-.29.014-.446.03-.504.051a.6.6 0 0 0-.285.306.51.51 0 0 0 .327.636c.176.058 1.02.006 1.659-.102 2.185-.37 4.177-1.63 5.482-3.468a9 9 0 0 0 1.388-3.043c.149-.635.203-1.094.217-1.83a7.6 7.6 0 0 0-.105-1.569c-.242-1.426-.882-2.819-1.857-4.041a10.6 10.6 0 0 0-1.232-1.227c-.28-.224-.833-.6-1.11-.757a8.6 8.6 0 0 0-3.4-1.087c-.283-.028-1.06-.05-1.28-.037m.241 3.843a.7.7 0 0 0-.225.148.6.6 0 0 0-.084.137c-.04.089-.041.117-.041 2.53 0 1.693.006 2.464.02 2.518.03.105.206.281.31.31.105.03 4.487.03 4.591.002.108-.03.245-.16.298-.284a.4.4 0 0 0 .035-.226.45.45 0 0 0-.157-.33c-.152-.147-.041-.14-2.181-.14H11.78l-.006-2.165-.005-2.165-.043-.08a.5.5 0 0 0-.447-.267 1 1 0 0 0-.149.012"}))),l=(0,e.forwardRef)(c);t.d(h,["A",0,l])},72816(g,h,t){var e=t(47478);function s(){return s=Object.assign?Object.assign.bind():function(l){for(var i=1;i<arguments.length;i++){var a=arguments[i];for(var n in a)({}).hasOwnProperty.call(a,n)&&(l[n]=a[n])}return l},s.apply(null,arguments)}const r=(l,i)=>e.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",ref:i},l),e.createElement("path",{d:"M.757 12h22.486M12.743 1 1.1 11.249a1 1 0 0 0 0 1.5L12.743 23",style:{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}})),f=(0,e.forwardRef)(r);t.d(h,["A",0,f])},53857(g,h,t){var e=t(47478),s;function r(){return r=Object.assign?Object.assign.bind():function(i){for(var a=1;a<arguments.length;a++){var n=arguments[a];for(var o in n)({}).hasOwnProperty.call(n,o)&&(i[o]=n[o])}return i},r.apply(null,arguments)}const c=(i,a)=>e.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",ref:a},i),s||(s=e.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.476 1.978a1.5 1.5 0 0 0-.556.238c-.12.08-1.692 1.638-5.743 5.69l-5.58 5.581-1.164-1.159c-.641-.637-1.219-1.197-1.285-1.245a1.58 1.58 0 0 0-.984-.309c-.33 0-.575.059-.827.2-.161.089-.324.243-1.49 1.409C.4 13.829.392 13.839.287 14.245a2.2 2.2 0 0 0-.012.863c.065.25.21.51.417.744.362.41 5.817 5.831 5.962 5.925.3.195.586.28.938.279.368-.001.683-.104.985-.323.081-.058 3.463-3.424 7.516-7.481 6.825-6.83 7.377-7.39 7.47-7.557a1.74 1.74 0 0 0-.005-1.643c-.08-.145-.268-.344-1.367-1.448-1.384-1.389-1.473-1.466-1.822-1.5
178-.243-.078-.664-.1-.893-.048m.084 1.034c-.114.054-.904.833-5.928 5.855-5.35 5.348-5.804 5.796-5.903 5.822a.54.54 0 0 1-.37-.04c-.041-.021-.69-.651-1.443-1.401-.752-.75-1.404-1.381-1.448-1.403a.72.72 0 0 0-.714.065c-.16.118-2.366 2.337-2.428 2.442a.73.73 0 0 0-.009.665c.028.053 1.272 1.314 2.983 3.022 2.81 2.805 2.942 2.933 3.065 2.973a.75.75 0 0 0 .52-.031c.098-.051 14.728-14.67 14.801-14.792.09-.148.093-.45.005-.625-.061-.123-2.45-2.5-2.567-2.553a.8.8 0 0 0-.264-.053.5.5 0 0 0-.3.054"}))),l=(0,e.forwardRef)(c);t.d(h,["A",0,l])},3403(g,h,t){var e=t(47478),s;function r(){return r=Object.assign?Object.assign.bind():function(i){for(var a=1;a<arguments.length;a++){var n=arguments[a];for(var o in n)({}).hasOwnProperty.call(n,o)&&(i[o]=n[o])}return i},r.apply(null,arguments)}const c=(i,a)=>e.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",ref:a},i),s||(s=e.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.64.036a1.55 1.55 0 0 0-1.119 1.116c-.03.118-.036.22-.026.42.014.295.066.477.194.688.043.07 1.81 2.455 3.928 5.3l3.851 5.172.012 5.016.012 5.016.065.192c.16.469.528.832.991.979.137.043.22.053.456.05.334-.002.503-.046.74-.192.284-.174 2.236-1.656 2.357-1.79.131-.143.268-.383.339-.595.042-.126.044-.334.056-4.404l.012-4.272 3.755-5.04a3367 3367 0 0 0 3.884-5.22c.257-.356.349-.612.348-.972a1.46 1.46 0 0 0-.562-1.168 1.36 1.36 0 0 0-.567-.286c-.178-.045-.36-.046-9.388-.044C4.368.004 2.75.01 2.64.036m.12 1.028a.46.46 0 0 0-.258.407.46.46 0 0 0 .035.237c.024.05 1.809 2.46 3.967 5.36 2.158 2.898 3.937 5.305 3.952 5.347.021.058.029 1.318.03 5.095.002 5.592-.01 5.184.167 5.344.12.108.24.148.396.13.152-.019.161-.025 1.382-.946.772-.582.956-.732.996-.81.049-.095.05-.12.061-4.44.011-4.04.015-4.35.053-4.419.023-.041 1.792-2.427 3.933-5.302s3.913-5.261 3.938-5.304a.45.45 0 0 0 .067-.36.51.51 0 0 0-.273-.35c-.095-.042-.398-.044-9.218-.044h-9.12z"}))),l=(0,e.forwardRef)(c);t.d(h,["A",0,l])},2432(g,h,t){var e=t(47478);function s(){return s=Object.assign?Object.assign.bind():function(l){for(var i=1;i<arguments.length;i++){var a=arguments[i];for(var n in a)({}).hasOwnProperty.call(a,n)&&(l[n]=a[n])}return l},s.apply(null,arguments)}const r=(l,i)=>e.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",ref:i},l),e.createElement("g",{"data-name":"New Symbol 1"},e.createElement("circle",{cx:11.944,cy:9.503,r:3.25,style:{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}}),e.createElement("path",{d:"M17 17.753a5.321 5.321 0 0 0-10 0",style:{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".989px"}})),e.createElement("rect",{width:20,height:23,x:2,y:.5,rx:1,ry:1,style:{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}}),e.createElement("path",{d:"M5 3.5h14v17H5z",style:{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}})),f=(0,e.forwardRef)(r);t.d(h,["A",0,f])},62199(g,h,t){t.d(h,{A:()=>b});var e=t(92422),s=t(47478),r=t(73336),c=t(6495),f=t(52156),l=t.n(f),i=t(45248),a=t(75812),n=t(18815),o=t(23873);function E(u,z,K){const G=new Array(5).fill(z),q=K/255;let H=Math.floor(u.length/5);H=Math.floor((u.length-H*4)/5);for(let V=0;V<5;V++){const Z=V*H,Y=Z+H,R=u.slice(Z,Y).reduce((y,T)=>y+T,0);G[V]=R/H*q}return G}function d({microphone:u,width:z,height:K,className:G}){const q=(0,s.useRef)(null),H=(0,s.useRef)(new window.AudioContext),V=(0,s.useRef)(H.current.createAnalyser());(0,s.useEffect)(()=>{H.current.createMediaStreamSource(u.stream).connect(V.current),Z()},[]);const Z=(0,s.useCallback)(()=>{const O=q.current;if(!O)return;const R=O.getContext("2d"),y=new Uint8Array(V.current.frequencyBinCount);if(V.current.getByteFrequencyData(y),!R)return;const T=O.width/12,j=T/2,W=E(y,j,O.height/2),A=Math.PI*T,te=O.width/8,N=T*2+te,J=T*2+N,ne=T*2+J,se=T*2+ne,P=O.height/2;R.roundRect(te,P,T,-W[0],[0,0,A,A]),R.roundRect(te,P,T,W[0],[0,0,A,A]),R.roundRect(N,P,T,-W[1],[0,0,A,A]),R.roundRect(N,P,T,W[1],[0,0,A,A]),R.roundRect(J,P,T,-W[2],[0,0,A,A]),R.roundRect(J,P,T,W[2],[0,0,A,A]),R.roundRect(ne,P,T,-W[3],[0,0,A,A]),R.roundRect(ne,P,T,W[3],[0,0,A,A]),R.roundRect(se,P,T,-W[4],[0,0,A,A]),R.roundRect(se,P,T,W[4],[0,0,A,A]),R.fillStyle="#155a93",R.fill(),R.closePath(),setTimeout(()=>{R.beginPath(),R.clearRect(0,0,O.width,O.height),R.roundRect(te,P,T,-j,[0,0,A,A]),R.roundRect(te,P,T,j,[0,0,A,A]),R.roundRect(N,P,T,-j,[0,0,A,A]),R.roundRect(N,P,T,j,[0,0,A,A]),R.roundRect(J,P,T,-j,[0,0,A,A]),R.roundRect(J,P,T,j,[0,0,A,A]),R.roundRect(ne,P,T,-j,[0,0,A,A]),R.roundRect(ne,P,T,j,[0,0,A,A]),R.roundRect(se,P,T,-j,[0,0,A,A]),R.roundRect(se,P,T,j,[0,0,A,A]),R.closePath()},1e3),requestAnimationFrame(Z)},[V]),Y=l()("voice-animation__canvas",G);return(0,e.jsx)("canvas",{ref:q,className:Y,width:z,height:K,"aria-hidden":!0})}var v=(u=>(u.DataAvailable="dataavailable",u.Error="error",u.Pause="pause",u.Resume="resume",u.Start="start",u.Stop="stop",u))(v||{});const p=v;var C=t(21791),S=(u=>(u.Spanish="es",u.SpanishLatinAmerica="es-419",u.French="fr",u.FrenchCanada="fr-CA",u.Hindi="hi",u.Portuguese="pt",u.PortugueseBrazil="pt-BR",u.ChineseSimplified="zh",u.ChineseMandarinSimplified="zh-CN",u.ChineseTraditional="zh-TW",u.ChineseMandarinTraditional="zh-Hant",u.English="en",u.EnglishUS="en-US",u.EnglishAustralia="en-AU",u.EnglishUK="en-GB",u.EnglishNewZealand="en-NZ",u.EnglishIndia="en-IN",u.Bulgarian="bg",u.Catalan="ca",u.Czech="cs",u.Danish="da",u.DanishDenmark="da-DK",u.Dutch="nl",u.Estonian="et",u.Finnish="fi",u.Flemish="nl-BE",u.German="de",u.GermanSwitzerland="de-CH",u.Greek="el",u.Hungarian="hu",u.Indonesian="id",u.Italian="it",u.Japanese="ja",u.Korean="ko",u.KoreanSouthKorea="ko-KR",u.Latvian="lv",u.Lithuanian="lt",u.Malay="ms",u.Norweg
1ian="no",u.Polish="pl",u.Romanian="ro",u.Russian="ru",u.Slovak="sk",u.Swedish="sv",u.SwedishSweden="sv-SE",u.Thai="th",u.ThaiThailand="th-TH",u.Turkish="tr",u.Ukrainian="uk",u.Vietnamese="vi",u))(S||{});const m=S;var I=t(33941);function U(){const u=(0,s.use)(I.A);if(u===void 0)throw new Error("useDeepgram must be used within a DeepgramContextProvider");return u}var w=t(57226);function L(){const u=(0,s.use)(w.A);if(u===void 0)throw new Error("useMicrophone must be used within a MicrophoneContextProvider");return u}var M=t(25478);const D=new Map([[m.Spanish,"Espa\xF1ol"],[m.SpanishLatinAmerica,"Espa\xF1ol (Latinoam\xE9rica)"],[m.French,"Fran\xE7ais"],[m.FrenchCanada,"Fran\xE7ais (Canada)"],[m.Hindi,"\u0939\u093F\u0902\u0926\u0940"],[m.Portuguese,"Portugu\xEAs"],[m.PortugueseBrazil,"Portugu\xEAs (Brasil)"],[m.ChineseSimplified,"\u7B80\u4F53\u4E2D\u6587"],[m.ChineseMandarinSimplified,"\u7B80\u4F53\u4E2D\u6587"],[m.ChineseTraditional,"\u7E41\u9AD4\u4E2D\u6587"],[m.ChineseMandarinTraditional,"\u7E41\u9AD4\u4E2D\u6587"],[m.English,"English"],[m.EnglishUS,"English (US)"],[m.EnglishAustralia,"English (Australia)"],[m.EnglishUK,"English (UK)"],[m.EnglishNewZealand,"English (New Zealand)"],[m.EnglishIndia,"English (India)"],[m.Bulgarian,"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438"],[m.Catalan,"Catal\xE0"],[m.Czech,"\u010Ce\u0161tina"],[m.Danish,"Dansk"],[m.DanishDenmark,"Dansk"],[m.Dutch,"Nederlands"],[m.Estonian,"Eesti"],[m.Finnish,"Suomi"],[m.Flemish,"Vlaams"],[m.German,"Deutsch"],[m.GermanSwitzerland,"Deutsch (Schweiz)"],[m.Greek,"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC"],[m.Hungarian,"Magyar"],[m.Indonesian,"Bahasa Indonesia"],[m.Italian,"Italiano"],[m.Japanese,"\u65E5\u672C\u8A9E"],[m.Korean,"\uD55C\uAD6D\uC5B4"],[m.KoreanSouthKorea,"\uD55C\uAD6D\uC5B4 (\uB300\uD55C\uBBFC\uAD6D)"],[m.Latvian,"Latvie\u0161u"],[m.Lithuanian,"Lietuvi\u0173"],[m.Malay,"Bahasa Melayu"],[m.Norwegian,"Norsk"],[m.Polish,"Polski"],[m.Romanian,"Rom\xE2n\u0103"],[m.Russian,"\u0420\u0443\u0441\u0441\u043A\u0438\u0439"],[m.Slovak,"Sloven\u010Dina"],[m.Swedish,"Svenska"],[m.SwedishSweden,"Svenska (Sverige)"],[m.Thai,"\u0E44\u0E17\u0E22"],[m.ThaiThailand,"\u0E44\u0E17\u0E22 (\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28\u0E44\u0E17\u0E22)"],[m.Turkish,"T\xFCrk\xE7e"],[m.Ukrainian,"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430"],[m.Vietnamese,"Ti\u1EBFng Vi\u1EC7t"]]);function _(){return Array.from(D.entries()).map(([z,K])=>new M.A(K,z))}const x={map:D,getDropdownItems:_};var B=t(53857),X=null,k=null,Q=null;const F={language:m.EnglishUS,model:"nova-2-medical",vad_events:!0,interim_results:!0,utterance_end_ms:2e3,diarize:!0},$=m.EnglishUS,ee=2e3;function re(u,z){const K=u;return K.language!==z&&(K.language=z),z!==m.English&&z!==m.EnglishUS&&(K.model="nova-2"),K}function b(u){const{className:z,languageDropdownClassName:K,onTranscriptionComplete:G,onError:q}=u,{setupMicrophone:H,startMicrophone:V,stopMicrophone:Z,microphone:Y,microphoneState:O}=L(),{connectToDeepgram:R,onDataSendToDeepgram:y,disconnectFromDeepgram:T,connection:j,connectionState:W,connectionError:A}=U(),[te,N]=(0,s.useState)("Connecting to voice to text service."),[J,ne]=(0,s.useState)($),[se,P]=(0,s.useState)(!1),ue=(0,s.useRef)(!1),oe=(0,s.useRef)(""),ie=(0,s.useRef)(!1),de=(0,s.useRef)(null);(0,s.useEffect)(()=>{H(),N("Setting up microphone.")},[H]),(0,s.useEffect)(()=>{if(O===C.A.Error){N("Microphone not detected. Try enabling device microphone."),q?.("Microphone not detected. Try enabling device microphone.");return}if(O===C.A.Ready&&W===r.FB.closed){N(A?"Connection closed unexpectedly. Attempting to reconnect.":"Connecting to voice to text service.");const le=re(F,J);R(le);return}if(O===C.A.NotSetup&&W===r.FB.open){N("Re-connecting to voice to text service."),T();return}if(O===C.A.NotSetup){N("Setting up microphone."),H();return}if(!j||!Y)return;const ae=le=>{if(ue.current)return;const{is_final:ge}=le,{words:_e}=le.channel.alternatives[0],fe=_e.map(ce=>ce.speaker===0?ce.word:"").join(" ");if(ge&&fe!==""){const ce=oe.current===""?"":" ",me=`${oe.current}${ce}${fe}`;if(me.length>=ee){G(oe.current);return}oe.current=me,N(me)}},he=()=>{ue.current=!0,P(!0),G(oe.current)};if(O===C.A.Ready&&W===r.FB.open)return j.addListener(c.Y.Transcript,ae),j.addListener(c.Y.UtteranceEnd,he),Y.addEventListener(p.DataAvailable,y),ie.current=!1,N("Listening..."),V(),de.current=window.setTimeout(()=>G(oe.current),12e4),()=>{de.current&&window.clearTimeout(de.current),j.removeListener(c.Y.Transcript,ae),j.removeListener(c.Y.UtteranceEnd,he),Y.removeEventListener(p.DataAvailable,y),Z()}},[O,W,J,q,G]);const pe=(0,s.useMemo)(()=>se?(0,e.jsx)("span",{className:"voice-to-text__check-icon-container","aria-label":"Check symbol",children:(0,e.jsx)(i.A,{icon:B.A,className:"voice-to-text__check-icon"})}):Y?(0,e.jsx)(d,{className:"voice-to-text__mic-animation",width:48,height:48,microphone:Y}):(0,e.jsx)("div",{className:"voice-to-text__mic-animation-fallback","aria-hidden":!0}),[Y,se]),Ee=(0,s.useMemo)(()=>x.getDropdownItems(),[]),ve=(0,s.useCallback)(ae=>{!ue.current&&!ie.current&&ae.value!==J&&(ie.current=!0,ne(ae.value))},[ie,J]),Ae=l()("voice-to-text",z),Ce=l()("voice-to-text__language-dropdown",K);return(0,e.jsxs)("div",{className:Ae,children:[(0,e.jsxs)("div",{className:"voice-to-text__content-container",children:[pe,(0,e.jsx)("p",{className:"voice-to-text__text-container","aria-live":"polite",children:(0,e.jsx)("span",{className:"voice-to-text__text",children:te})})]}),(0,e.jsx)("div",{className:Ce,children:(0,e.jsx)(a.A,{items:Ee,defaultToggleButtonLabel:x.map.get(m.English),sizeMode:o.A.Small,colorMode:n.A.MidnightBlue,label:"Cho
1ose a language",onSelectedItemChanged:ve})})]})}},21791(g,h,t){var e=(r=>(r[r.NotSetup=-1]="NotSetup",r[r.SettingUp=0]="SettingUp",r[r.Ready=1]="Ready",r[r.Opening=2]="Opening",r[r.Open=3]="Open",r[r.Error=4]="Error",r[r.Pausing=5]="Pausing",r[r.Paused=6]="Paused",r))(e||{});const s=e;t.d(h,["A",0,s])},33941(g,h,t){var e=t(47478);const s=(0,e.createContext)(void 0);s.displayName="DeepgramContext";const r=s;t.d(h,["A",0,r])},57226(g,h,t){var e=t(47478);const s=(0,e.createContext)(void 0);s.displayName="MicrophoneContext";const r=s;t.d(h,["A",0,r])},16368(g,h,t){t.d(h,{A:()=>E});var e=t(47478),s=t(73336),r=t(90112),c=t(6495),f=t(97361),l=t(23571);const i=`${l.zG}/temporary-token`,a=null;async function n(){try{const d=await fetch(i);if(d.status===f.A.Ok)return await d.text()}catch(d){console.error("Backend API endpoint error: ",d)}return null}const o={getTemporaryToken:n};function E(){const[d,v]=(0,e.useState)(null),[p,C]=(0,e.useState)(null),[S,m]=(0,e.useState)(s.FB.closed),I=(0,e.useCallback)(async(L,M)=>{const D=await o.getTemporaryToken();if(D===null){m(s.FB.closed);return}const x=(0,r.UU)(D).listen.live(L,M);x.addListener(c.Y.Open,()=>{d&&v(null),m(s.FB.open)}),x.addListener(c.Y.Error,B=>{v(B),m(s.FB.closed)}),x.addListener(c.Y.Close,()=>{m(s.FB.closed),x.removeAllListeners()}),C(x)},[d]),U=(0,e.useCallback)(()=>{p&&(p.finish(),C(null))},[p]),w=(0,e.useCallback)(L=>{L.data.size!==0&&p&&p.send(L.data)},[p]);return(0,e.useMemo)(()=>({connection:p,connectionState:S,connectionError:d,connectToDeepgram:I,disconnectFromDeepgram:U,onDataSendToDeepgram:w}),[p,S,d,I,U,w])}},23735(g,h,t){t.d(h,{A:()=>r});var e=t(47478),s=t(21791);function r(){const[c,f]=(0,e.useState)(s.A.NotSetup),[l,i]=(0,e.useState)(null),a=(0,e.useCallback)(async()=>{try{const E=await navigator.mediaDevices.getUserMedia({audio:{noiseSuppression:!0,echoCancellation:!0}}),d=new MediaRecorder(E);i(d),f(s.A.Ready)}catch{f(s.A.Error)}},[]),n=(0,e.useCallback)(()=>{l?.state==="recording"&&(l.stop(),i(null),f(s.A.NotSetup))},[l]),o=(0,e.useCallback)(()=>{l?.state==="paused"?l.resume():l?.start(250)},[l]);return(0,e.useMemo)(()=>({microphone:l,startMicrophone:o,stopMicrophone:n,setupMicrophone:a,microphoneState:c}),[l,c,a,o,n])}},67883(g,h,t){const e=new Intl.NumberFormat("en-US");function s(c){return e.format(c)}const r={format:s};t.d(h,["A",0,r])},88105(g,h,t){t.d(h,{A:()=>r});var e=t(47478),s=t(53754);function r(c,f,l,i=[]){const a=(0,e.useMemo)(()=>[...c],i);(0,e.useEffect)(()=>{function n(o){!f||a.some(E=>!E.current)||a.some(E=>E.current?.contains(o.target))||l()}return s.A.addClickListener(window,n),()=>{s.A.removeClickListener(window,n)}},[f,a,l])}},99045(g,h,t){t.d(h,{A:()=>i});var e=t(92422),s=t(47478),r=t(7611),c=t.n(r),f=t(51990);const l=200;function i(a){const{filter:n,maxAllowedSelectedItemsCount:o,onFilterChanged:E,id:d,isSearchable:v,analyticsAttributeGetter:p,getFilterItems:C}=a,S=(0,s.useCallback)(_=>{const x=n.itemsFlat.find(B=>B.value===_);x&&(n.updateSelectedItem(x),E(n))},[n,E]),m=(0,s.useCallback)(()=>{n.reset(),E(n)},[n,E]),[I,U]=(0,s.useState)(n.items),[w,L]=(0,s.useState)(""),M=(0,s.useCallback)(_=>{L(_)},[]),D=(0,s.useCallback)(c()(async(_,x,B)=>{const X=await B(_,x.selectedValues);x.updateItems(X),U(x.items)},l),[]);return(0,s.useEffect)(()=>{U(n.items),D(w,n,C)},[C,w,D,n]),(0,e.jsx)(f.A,{filterType:f.s.CheckboxGroup,id:d,items:I,selectedItemsCount:n.selectedValues.size,maxAllowedSelectedItemsCount:o,isSearchable:v??!1,searchQuery:w,isResettable:!1,analyticsAttributeGetter:p,onSearchQueryChanged:M,onResetButtonClicked:m,onSelectedItemChanged:S})}},5538(g,h,t){t.d(h,{A:()=>c});var e=t(13715),s=t(17530),r=t(9753);class c extends r.A{constructor(l,i,a,n,o){super(l,i,e.A.Checkbox),this.isChecked=a,this.count=n,this.isDisabled=o}reset(){this.isChecked=!1}clone(){return new c(this.label,this.filterType,this.isChecked,this.count,this.isDisabled)}getActiveFilterItems(){return this.isChecked?[new s.A(this,this.label,()=>this.reset())]:[]}}},53830(g,h,t){t.d(h,{A:()=>e});class e{constructor(r,c,f,l,i,a=!1){this.label=r,this.value=c,this.count=f,this.isSelected=l,this.childItems=i,this.allowSelectingEmpty=a}get id(){return this.value.replace(/[^a-zA-Z0-9]/g,"")}clone(){return new e(this.label,this.value,this.count,this.isSelected,this.childItems.map(r=>r.clone()),this.allowSelectingEmpty)}}},68603(g,h,t){t.d(h,{A:()=>o});var e=t(28685),s=t(45990),r=t(13715);function c(E,d){return E.map((v,p)=>{const C=v.clone();return d&&(C.isSelected=d(v,p),e.A.isNullOrEmptyArray(C.childItems)||(C.childItems=c(C.childItems,d))),C})}function f(E,d,v){return v?c(E,p=>p.value===d.value?!p.isSelected:p.isSelected):c(E,p=>p.value===d.value)}function l(E){return E.map(d=>d.clone())}const i={updateItems:c,updateSelectedItem:f,cloneItems:l};
1var a=t(17530),n=t(9753);class o extends n.A{constructor(d,v,p,C,S=!0){super(d,v,r.A.CheckboxGroup),this.items=i.cloneItems(p),this.selectedValues=C??new Map,this.shouldGroupActiveFilters=S}static getFlatItems(d){return d.flatMap(v=>e.A.isNullOrEmptyArray(v.childItems)?[v]:o.getFlatItems(v.childItems))}get itemsFlat(){return o.getFlatItems(this.items)}updateItems(d){this.items=i.cloneItems(d)}updateSelectedItem(d){this.selectedValues.has(d.value)?this.selectedValues.delete(d.value):this.selectedValues.set(d.value,{value:d.value,label:d.label,count:d.count}),this.items=i.updateSelectedItem(this.items,d,!0)}resetActiveFilter(d){const v=this.itemsFlat.find(p=>p.value===d);v?this.updateSelectedItem(v):this.selectedValues.delete(d)}reset(){this.items=i.updateItems(this.items,()=>!1),this.selectedValues.clear()}clone(){return new o(this.label,this.filterType,this.items,this.selectedValues,this.shouldGroupActiveFilters)}getActiveFilterItems(){return this.selectedValues.size===0?[]:!this.shouldGroupActiveFilters||this.selectedValues.size===1?[...this.selectedValues].map(([d,v])=>new a.A(this,v.label,()=>this.resetActiveFilter(d))):[new a.A(this,`${this.selectedValues.size} ${s.A.getName(this.label,this.selectedValues.size)}`,()=>this.reset(),[...this.selectedValues].map(([d,v])=>new a.A(this,v.label,()=>this.resetActiveFilter(d))),this.label)]}}},89554(g,h,t){t.d(h,{A:()=>e});class e{constructor(r,c,f,l,i=!1){this.label=r,this.value=c,this.count=f,this.isSelected=l,this.childItems=[],this.allowSelectingEmpty=i}get id(){return this.value.replace(/[^a-zA-Z0-9]/g,"")}clone(){return new e(this.label,this.value,this.count,this.isSelected,this.allowSelectingEmpty)}}},87578(g,h,t){t.d(h,{A:()=>d});var e=t(13715);function s(v){return v.findIndex(p=>p.isSelected)}function r(v){return v.reduce((p,C,S)=>(C.isSelected&&p.push(S),p),[])}function c(v){return v.find(p=>p.isSelected)??null}function f(v){return v.filter(p=>p.isSelected)}function l(v,p){return v.map((C,S)=>{const m=C.clone();return p&&(m.isSelected=p(C,S)),m})}function i(v,p,C){return C?l(v,S=>S.value===p.value?!S.isSelected:S.isSelected):l(v,S=>S.value===p.value)}function a(v){return v.map(p=>p.clone())}const n={getSelectedItemIndex:s,getSelectedItemsIndexes:r,getSelectedItem:c,getSelectedItems:f,updateItems:l,updateSelectedItem:i,cloneItems:a};
1var o=t(17530),E=t(9753);class d extends E.A{constructor(p,C,S){super(p,C,e.A.RadioGroup),this.items=n.cloneItems(S)}updateItems(p){this.items=n.cloneItems(p)}getSelectedItem(){return n.getSelectedItem(this.items)}getSelectedItemIndex(){return n.getSelectedItemIndex(this.items)}updateSelectedItem(p){this.items=n.updateSelectedItem(this.items,p,!1)}reset(){this.items=n.updateItems(this.items,()=>!1)}clone(){return new d(this.label,this.filterType,this.items)}getActiveFilterItems(){const p=this.getSelectedItem();return p?[new o.A(this,p.label,()=>this.reset())]:[]}}},18276(g,h,t){t.d(h,{z:()=>w,A:()=>L});var e=t(92422),s=t(47478),r=t(52156),c=t.n(r),f=t(28685),l=t(60033),i=t(93516),a=t(45248),n=t(85955);function o({activeFilter:M,tabIndex:D,onFilterItemReset:_}){const x=(0,s.useCallback)(()=>{_(M)},[M,_]);return(0,e.jsxs)("li",{className:"search-active-filter-item",children:[(0,e.jsx)("span",{children:M.label}),(0,e.jsx)("button",{type:"button","aria-label":`Clear ${M.label} filter item`,className:"search-active-filter-item__clear-button",tabIndex:D,onClick:x,children:(0,e.jsx)(a.A,{icon:n.A,className:"search-active-filter-item__clear-icon"})})]})}var E=t(2772),d=t(71554),v=t(48803),p=t(53754),C=t(88105);const S=300,m=16,I=328;function U({activeFilter:M,onFilterItemReset:D}
1){const[_,x]=(0,s.useState)(!1),[B,X]=(0,s.useState)(),[k,Q]=(0,s.useState)(),[F,$]=(0,s.useState)(),[ee,re]=(0,s.useState)(),{isTabletVersion:b,isMobileVersion:u}=(0,s.use)(v.p1),z=b||u,K=(0,s.useRef)(null),G=(0,s.useRef)(null),q=c()("search-grouped-active-filter-item",{"search-grouped-active-filter-item--expanded":_}),H=(0,s.useCallback)(()=>{if(_){if(G.current){const y=G.current.getBoundingClientRect();X(`${y.height}px`),Q(`${y.width+m}px`)}x(!1)}else if(x(!0),K.current){const y=K.current.getBoundingClientRect().width,T=`${y}px`;re(T),$(`${Math.max(y,I)}px`)}},[_]),V=(0,s.useCallback)(()=>{re(void 0)},[]),Z=(0,s.useCallback)(y=>{_&&y.keyCode===d.A.Escape&&H()},[_,H]);(0,C.A)([K],_&&!z,H),(0,s.useEffect)(()=>(p.A.addKeyDownListener(window,Z),()=>{p.A.removeKeyDownListener(window,Z)}),[Z]);const Y=(0,s.useCallback)(()=>{D(M)},[M,D]),O=(0,s.useCallback)(y=>{window.setTimeout(()=>{D(y)},0)},[D]),R=`${_?"Hide":"Expand"} selected items for ${M.label} filter`;return(0,e.jsx)("li",{ref:K,className:"search-grouped-active-filter-item__container",style:{"--expanded-panel-height":B,"--expanded-panel-width":k,"--expanded-panel-max-width":F,"--initial-width":ee},children:(0,e.jsx)(E.A,{in:_,timeout:S,classNames:{enter:"search-grouped-active-filter-item--enter",enterActive:"search-grouped-active-filter-item--enter-active",exit:"search-grouped-active-filter-item--exit",exitActive:"search-grouped-active-filter-item--exit-active"},onExited:V,children:(0,e.jsxs)("div",{className:q,children:[(0,e.jsxs)("div",{className:"search-grouped-active-filter-item__item",children:[(0,e.jsx)("button",{type:"button","aria-label":R,className:"search-grouped-active-filter-item__toggle-button",onClick:H,children:M.label}),(0,e.jsx)("button",{type:"button","aria-label":`Clear ${M.label} filter`,className:"search-grouped-active-filter-item__clear-button",onClick:Y,children:(0,e.jsx)(a.A,{icon:n.A,className:"search-grouped-active-filter-item__clear-icon"})})]}),(0,e.jsx)("ul",{ref:G,className:"search-grouped-active-filter-item__child-list",children:M.childItems.map(y=>(0,e.jsx)(o,{activeFilter:y,tabIndex:_?0:-1,onFilterItemReset:O},y.key))})]})})})}var w=(M=>(M.Row="row",M.Column="column",M))(w||{});function L(M){const{filters:D,filtersDirection:_="column",isResetButtonVisibleOnMobile:x=!1,onFiltersChanged:B,onBeforeReset:X}=M,k=(0,s.useMemo)(()=>D.getActiveFilters().sort((b,u)=>(u.childItems.length>0?1:0)-(b.childItems.length>0?1:0)),[D]),Q=(0,s.useCallback)(b=>{b.onReset(),B([b.filter])},[B]),F=(0,s.useCallback)(()=>{X&&X(),k.forEach(b=>b.onReset()),B(k.map(b=>b.filter),!0)},[k,B,X]),$=!f.A.isNullOrEmptyArray(k),ee=c()("search-active-filters-section__filters",`search-active-filters-section__filters--direction--${_}`),re=c()("search-active-filters-section__reset-button-container",{"search-active-filters-section__reset-button-container--visible-on-mobile":x});return $?(0,e.jsx)(i.A,{children:(0,e.jsx)("section",{className:"search-active-filters-section","aria-label":"Active search filters",children:(0,e.jsxs)("ul",{className:ee,children:[k.map(b=>f.A.isNullOrEmptyArray(b.childItems)?(0,e.jsx)(o,{activeFilter:b,tabIndex:0,onFilterItemReset:Q},b.key):(0,e.jsx)(U,{activeFilter:b,onFilterItemReset:Q},b.key)),(0,e.jsx)("li",{className:re,children:(0,e.jsx)(l.Ay,{type:"button",label:"Clear all filters",icon:n.A,className:"search-active-filters-section__reset-button",iconClassName:"search-active-filters-section__reset-icon",styleMode:l.Xx.Secondary,indentMode:l.SY.None,isRightAlignedIcon:!0,onClick:F})})]})})}):null}},83526(g,h,t){t.d(h,{A:()=>S});var e=t(92422),s=t(47478),r=t(56510),c=t.n(r),f=t(48803),l=t(47761),i=t(37880),a=t(93516),n=t(24221),o=t(60033);function E({onResetAllClick:m,onCloseClick:I}){return(0,e.jsxs)("div",{className:"search-mobile-filters-modal-footer",children:[(0,e.jsx)(o.Ay,{className:"search-mobile-filters-modal-footer__reset-button-wrapper",label:"Clear All",styleMode:o.Xx.Secondary,indentMode:o.SY.None,onClick:m}),(0,e.jsx)(o.Ay,{"aria-label":"Apply filters and close",className:"search-mobile-filters-modal-footer__apply-button",label:"OK",onClick:I})]})}var d=t(45248),v=t(76480),p=t(15595);function C({headerText:m,onCloseButtonClick:I}){return(0,e.jsxs)("div",{className:"search-mobile-filters-modal-header",children:[(0,e.jsx)(v.A,{className:"search-mobile-filters-modal-header__title",children:m}),(0,e.jsx)("button",{className:"search-mobile-filters-modal-header__close-button",type:"button","aria-label":"Close modal window with filters",onClick:I,children:(0,e.jsx)(d.A,{icon:p.A,className:"search-mobile-filters-modal-header__close-button-icon"})})]})}function S(m){const{isOpen:I,hideModal:U,filters:w,modalClassName:L,onFiltersChanged:M,onBeforeReset:D,children:_}=m,{widthMode:x}=(0,s.use)(f.p1),B=x===n.A.Md?"Filter By":"Sort and Filter",X=(0,s.useCallback)(()=>{D&&D();const k=w.getActiveFilters();
1k.forEach(Q=>Q.onReset()),M(k.map(Q=>Q.filter))},[w,M,D]);return(0,e.jsx)(c(),{isOpen:I,className:L,overlayClassName:l.A.generateModalClassNames(`${L}__overlay`),onRequestClose:U,children:(0,e.jsx)(a.A,{level:2,children:(0,e.jsx)(i.A,{children:(0,e.jsxs)("div",{className:"search-mobile-filters-modal__modal-wrapper",children:[(0,e.jsx)(C,{headerText:B,onCloseButtonClick:U}),_,(0,e.jsx)("div",{className:"search-mobile-filters-modal__footer-wrapper",children:(0,e.jsx)(E,{onResetAllClick:X,onCloseClick:U})})]})})})})}},18235(g,h,t){t.d(h,{A:()=>l});var e=t(92422),s=t(47478),r=t(67883),c=t(45990);function f(i,a,n){return i.getActiveFilters().length>0||!!a.entityId&&!!a.entityType?n?`${r.A.format(n)} ${c.A.getName("Result",n)}`:"No Results":null}function l(i){const{filters:a,results:n,searchParameters:o,sortingDropdown:E,filterButton:d}=i,[v,p]=(0,s.useState)(()=>f(a,o,n.totalItemCount));return(0,s.useEffect)(()=>{if(n.isLoading)return;const C=f(a,o,n.totalItemCount);p(C)},[n.isLoading]),(0,e.jsxs)("div",{className:"search-parameters-panel",children:[v&&(0,e.jsx)("span",{className:"search-parameters-panel__results-count-label",children:v}),(0,e.jsxs)("div",{className:"search-parameters-panel__dropdown-container",children:[E,d]})]})}},2557(g,h,t){var e=t(20765);function s(c,f){const l=c.selectedValues;return l.size===0?[]:Array.from(l.keys()).map(i=>new e.A(f,i))}const r={getParameters:s};t.d(h,["A",0,r])},25131(g,h,t){var e=t(20765),s=t(89554),r=t(5260);function c(a,n,o){const{value:E,label:d}=a;return n?n[E]:o?o(E):d}function f(a,n){const o=a.getSelectedItem()?.value;return o?[new e.A(n,o)]:[]}function l(a,n,o,E,d){const v=r.A.getQueryParameterValue(o,n);return a.map(p=>new s.A(c(p,E,d),p.value,p.itemsCount,p.value===v))}const i={getParameters:f,getItemsFromFacets:l};t.d(h,["A",0,i])},50833(g,h,t){t.d(h,{A:()=>a});var e=t(47478),s=t(3630),r=t(63184),c=t(9125),f=t(48763),l=t(7210),i=t(65976);function a(n,o,E){const d=(0,s.Zp)(),v=(0,s.zy)(),[p,C]=(0,e.useState)(!1),[S,m]=(0,e.useState)(o),I=(0,e.useRef)(null),U=(0,e.useRef)(!1),w=(0,e.useRef)(0),L=(0,e.useRef)(n);(0,l.A)(()=>{L.current=n},[n]),(0,e.useEffect)(()=>(window.onpopstate=()=>{window.location.pathname===v.pathname&&E.loadSearchDataAsync(i.A.createFromQueryString(window.location.search,L.current.latitude,L.current.longitude))},()=>{window.clearTimeout(w.current),window.onpopstate=()=>{}}),[]),(0,l.A)(()=>{o.isLoading||o.error||p||(m(o),U.current&&(U.current=!1,window.clearTimeout(w.current),w.current=window.setTimeout(()=>r.A.setFocusOnFirstTabbableChild(I.current),0)))},[o,p]);const M=(0,e.useCallback)(()=>{U.current=!0,C(!1)},[]),D=(0,e.useCallback)(()=>{C(!0),f.A.scrollVerticalToElementWithOffset(I.current,c.A.getHeaderOffset(),M)},[M]),_=(0,e.useCallback)((F=!0,$=void 0)=>{E.loadSearchDataAsync(n);const ee=`${v.pathname}?${n.getLimitedQueryString()}`;d(ee,{state:$}),F&&D()},[D,E]),x=(0,e.useCallback)((F,$=void 0)=>{n.pageNumber=F,_(!0,$)},[n,_]),B=(0,e.useCallback)((F,$=void 0)=>{n.pageSize=F,n.pageNumber=1,_(!1,$)},[n,_]),X=(0,e.useCallback)((F,$=void 0)=>{n.sortType=F,n.pageNumber=1,_(!1,$)},[n,_]),k=(0,e.useCallback)(F=>{n.pageNumber=1,n.latitude=F?.latitude??null,n.longitude=F?.longitude??null,E.loadSearchDataAsync(n)},[n,E]),Q=(0,e.useCallback)((F=void 0)=>{n.entityType=null,n.entityId=null,n.query=null,n.pageNumber=1,_(!1,F)},[n,_]);return{results:S,resultsContainerRef:I,onActivePageChanged:x,onPageSizeChanged:B,onSortTypeChanged:X,scrollToResults:D,clearEntitySearchParameters:Q,onUserLocationChanged:k}}},57066(g,h,t){t.d(h,{A:()=>l});var e=t(47478),s=t(67365),r=t(5980);function c(i){return(0,s.createReducer)(i).handleAction(r.Ay.setParameters,(a,n)=>n.payload.clone()).handleAction(r.Ay.cleanParameters,()=>i)}var f=t(66829);function l(i){const a=(0,e.useMemo)(()=>f.A.getReducer(c(i)),[i]);return(0,e.useReducer)(a,i)}},67653(g,h,t){t.d(h,{A:()=>l});var e=t(47478),s=t(66829),r=t(67365),c=t(16270);function f(i){return(0,r.createReducer)(i).handleAction(c.Ay.loadResults.success,(a,n)=>{const o=n.payload.clone();return o.isLoading=!1,o.error=null,o}).handleAction(c.Ay.loadResults.failure,(a,n)=>(a.isLoading=!1,a.error=n.payload,a)).handleAction(c.Ay.loadResults.request,a=>(a.isLoading=!0,a.error=null,a)).handleAction(c.Ay.setResults,(a,n)=>n.payload.clone()).handleAction(c.Ay.cleanResults,()=>i)}function l(i){const a=(0,e.useMemo)(()=>s.A.getReducer(f(i)),[i]);return(0,e.useReducer)(a,i)}},18731(g,h,t){var e=(r=>(r.ClinicalKeyword="clinicalKeyword",r.Department="department",r))(e||{});const s=e;t.d(h,["A",0,s])},5980(g,h,t){var e=t(67365),s=t.n(e);const r="SEARCH";function c(n=r){return(0,e.createAction)(`${n.toUpperCase()}/PARAMETERS_SET`,o=>o)()}function f(n=r){return(0,e.createAction)(`${n.toUpperCase()}/PARAMETERS_CLEAN`)()}function l(n=r){return{setParameters:c(n),cleanParameters:f(n)}}const a=l();t.d(h,["Ay",0,a])},16270(g,h,t){var e=t(67365),s=t.n(e);const r="SEARCH";function c(o=r){const E=o.toUpperCase();return(0,e.createAsyncAction)(`${E}/RESULTS_REQUEST`,`${E}/RESULTS_SUCCESS`,`${E}/RESULTS_FAILURE`)()}function f(o=r){return(0,e.createAction)(`${o.toUpperCase()}/RESULTS_SET`,E=>E)()}function l(o=r){return(0,e.createAction)(`${o.toUpperCase()}/RESULTS_CLEAN`)()}function i(o=r){return{loadResults:c(o),setResults:f(o),cleanResults:l(o)}}const n=i();t.d(h,["Ay",0,n])},59297(g,h,t){t.d(h,{A:()=>c});var e=t(76559),s=t(5980),r=t(16270);class c{constructor(l,i,a){this.parameterDispatcher=l,this.resultsDispatcher=i,this.dataProvider=a}setSearchParameters(l){this.parameterDispatcher(s.Ay.setParameters(l))}setSearchResults(l){this.resultsDispatcher(r.Ay.setResults(l))}async loadSearchDataAsync(l){try{this.resultsDispatcher(r.Ay.loadResults.request());const i=await this.dataProvider.getAbortableSearchData(l);this.parameterDispatcher(s.Ay.setParameters(i.parameters)),this.resultsDispatcher(r.Ay.loadResults.success(i.results))}catch(i){if(!e.A.isAbortError(i)){const a=e.A.isError(i)?i.message:i;this.resultsDispatcher(r.Ay.loadResults.failure(a))}}}}},86305(g,h,t){t.d(h,{A:()=>s});var e=t(82084);class s{async getSearchData(c,f,l,i){const a=l.getQueryString(),n=`${c}?${a}`,o=await e.A.get(n,i);return f(o)}}},66829(g,h,t){function e(r){return(c,f)=>{const l=r.handlers[f.type];if(!l)throw new Error(`There is not reducer for the action ${f.type}.`);return l(c,f)}}const s={getReducer:e};t.d(h,["A",0,s])}}]);
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.