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A,EAACgL,EAAAA,CAAiBA,CAAAA,CACdlC,IAAKA,EACLmC,WAAY,CACRX,WAAY,CACRY,aAAc,CACV,WACA,cACA,WACA,iBACA,sCACH,EAEL,GAAIpL,EAAMgI,KAAK,CAAG,CAAEtC,MAAO1F,EAAMgI,KAAK,EAAK,CAAC,CAAC,EAEjDqD,aAAc,CACVC,UAAW,EACf,EACC,GAAGtL,CAAK,UAERA,EAAMO,QAAQ,GAM/BuI,CAAAA,EAAayC,WAAW,CAAG,4GCnCpB,SAAS5F,EAAM3F,CAAiB,EACnC,MACI,GAAAC,EAAAC,GAAA,EAACsL,EAAAA,CAAUA,CAAAA,CACPhB,WAAY,CACRY,aAAc,CACV,WACA,cACA,WACA,iBACA,sCACH,EAEJ,GAAGpL,CAAK,UAERA,EAAMO,QAAQ,EAG3B,uHClBO,SAASsE,EAAO7E,CAAkB,EACrC,MACI,GAAAC,EAAAC,GAAA,EAACuL,EAAAA,CAAWA,CAAAA,CACRjB,WAAY,CACRO,QAAS,CACL,WACA,cACA,WACA,iBACA,sCACH,CACDrF,MAAO,EAAE,CACTgG,QAAS,EAAE,EAEd,GAAG1L,CAAK,UAERA,EAAMO,QAAQ,EAG3B,mFClBO,SAASF,IAAG,QAAAsL,EAAAlM,UAAA0D,MAAA,CAAAyI,EAAA,MAAAD,GAAAE,EAAA,EAAAA,EAAAF,EAAAE,IAAGD,CAAAA,CAAHC,EAAA,CAAApM,SAAA,CAAAoM,EAAuB,CACtC,MAAOC,CAAAA,EAAAA,EAAAA,EAAAA,EAAQC,CAAAA,EAAAA,EAAAA,CAAAA,EAAKH,GACxB","sources":["webpack://_N_E/./node_modules/.pnpm/use-debounce@10.0.3_react@18.3.1/node_modules/use-debounce/dist/index.module.js","webpack://_N_E/./src/layers/presentation/components/common/Container.tsx","webpack://_N_E/./src/layers/presentation/components/common/PageHero.tsx","webpack://_N_E/./src/layers/presentation/components/patients/PatientParamsForm.tsx","webpack://_N_E/./src/layers/presentation/components/programs/ProgramSearchFilters.tsx","webpack://_N_E/./src/layers/presentation/components/ui/Autocomplete.tsx","webpack://_N_E/./src/layers/presentation/components/ui/Input.tsx","webpack://_N_E/./src/layers/presentation/components/ui/Select.tsx","webpack://_N_E/./src/utils/cn.ts"],"sourcesContent":["import{useRef as r,useEffect as n,useMemo as t,useReducer as e,useCallback as u}from\"react\";function c(e,u,c){var i=this,a=r(null),o=r(0),f=r(null),l=r([]),v=r(),m=r(),d=r(e),g=r(!0);d.current=e;var p=\"undefined\"!=typeof window,w=!u&&0!==u&&p;if(\"function\"!=typeof e)throw new TypeError(\"Expected a function\");u=+u||0;var s=!!(c=c||{}).leading,x=!(\"trailing\"in c)||!!c.trailing,h=\"maxWait\"in c,y=\"debounceOnServer\"in c&&!!c.debounceOnServer,F=h?Math.max(+c.maxWait||0,u):null;n(function(){return g.current=!0,function(){g.current=!1}},[]);var A=t(function(){var r=function(r){var n=l.current,t=v.current;return l.current=v.current=null,o.current=r,m.current=d.current.apply(t,n)},n=function(r,n){w&&cancelAnimationFrame(f.current),f.current=w?requestAnimationFrame(r):setTimeout(r,n)},t=function(r){if(!g.current)return!1;var n=r-a.current;return!a.current||n>=u||n<0||h&&r-o.current>=F},e=function(n){return f.current=null,x&&l.current?r(n):(l.current=v.current=null,m.current)},c=function r(){var c=Date.now();if(t(c))return e(c);if(g.current){var i=u-(c-a.current),f=h?Math.min(i,F-(c-o.current)):i;n(r,f)}},A=function(){if(p||y){var e=Date.now(),d=t(e);if(l.current=[].slice.call(arguments),v.current=i,a.current=e,d){if(!f.current&&g.current)return o.current=a.current,n(c,u),s?r(a.current):m.current;if(h)return n(c,u),r(a.current)}return f.current||n(c,u),m.current}};return A.cancel=function(){f.current&&(w?cancelAnimationFrame(f.current):clearTimeout(f.current)),o.current=0,l.current=a.current=v.current=f.current=null},A.isPending=function(){return!!f.current},A.flush=function(){return f.current?e(Date.now()):m.current},A},[s,h,u,F,x,w,p,y]);return A}function i(r,n){return r===n}function a(r,n){return n}function o(n,t,o){var f=o&&o.equalityFn||i,l=e(a,n),v=l[0],m=l[1],d=c(u(function(r){return m(r)},[m]),t,o),g=r(n);return f(g.current,n)||(d(n),g.current=n),f(v,n)&&d.cancel(),[v,d]}function f(r,n,t){var e=void 0===t?{}:t,u=e.leading,i=e.trailing;return c(r,n,{maxWait:n,leading:void 0===u||u,trailing:void 0===i||i})}export{o as useDebounce,c as useDebouncedCallback,f as useThrottledCallback};\n//# sourceMappingURL=index.module.js.map\n","import { cn } from '@/utils/cn';\nimport React from 'react';\n\ninterface ContainerProps extends React.HTMLAttributes {\n noBottomMargin?: boolean;\n}\nexport function Container(props: ContainerProps) {\n return (\n \n {props.children}\n \n );\n}\n","'use client';\n\nimport { useLogger } from '@/layers/presentation/hooks/useLogger';\nimport { Link } from '@nextui-org/react';\nimport React from 'react';\n\nconst LOG_MODULE = '[Presentation / Components / PageHero]';\n\ninterface PageHeroProps {\n title: string;\n breadcrumbs?: { label: string; href: string }[];\n background?: string;\n titleColor?: string;\n backgroundImage?: string;\n}\n\nconst PageHero: React.FC = ({\n title,\n breadcrumbs,\n background = 'bg-white',\n titleColor = 'text-black',\n backgroundImage = '/images/hero-gradient-patients.jpg',\n}) => {\n useLogger({\n module: LOG_MODULE,\n props: {\n title,\n backgroundImage,\n breadcrumbs,\n },\n });\n\n return (\n \n
\n {breadcrumbs && (\n
\n {breadcrumbs.map((item, index) => (\n \n {index > 0 && /}\n \n {item.label}\n \n \n ))}\n
\n )}\n

{title}

\n
\n \n );\n};\n\nexport default PageHero;\n","import React, { useCallback, useMemo } from 'react';\n\nimport { Input } from '@/layers/presentation/components/ui/Input';\nimport { Select, SelectItem } from '@/layers/presentation/components/ui/Select';\nimport { HandleParamChangeType } from '@/layers/presentation/hooks/useProgramSearch';\nimport logger from '@/layers/support/monitoring/logger';\nimport { ParamType } from '@/types/modelEnums';\nimport { PatientParam, PatientParamValue, PatientParamValues } from '@/types/models';\nimport { Skeleton } from '@nextui-org/react';\n\nconst LOG_MODULE = 'FE [Presentation / Components / PatientParamsForm]';\n\ninterface PatientParamsFormProps {\n mode: 'filter' | 'profile' | 'programRequest';\n patientParamsDictionary: PatientParam[];\n selectedOptions: PatientParamValues;\n onParamChange: HandleParamChangeType;\n isHideGenderAndAge?: boolean;\n isLoading: boolean;\n isDisabled?: boolean;\n}\n\ninterface HierarchicalParam extends PatientParam {\n children: HierarchicalParam[];\n}\n\nexport default function PatientParamsForm({\n mode,\n patientParamsDictionary,\n selectedOptions,\n onParamChange,\n isLoading,\n isDisabled = false,\n isHideGenderAndAge = false,\n}: PatientParamsFormProps) {\n const organizeParams = useCallback((params: PatientParam[]): HierarchicalParam[] => {\n const paramMap: Record = {};\n const rootParams: HierarchicalParam[] = [];\n\n params.forEach(param => {\n paramMap[param.id] = { ...param, children: [] };\n });\n\n params.forEach(param => {\n if (param.parent_param_id && paramMap[param.parent_param_id]) {\n paramMap[param.parent_param_id].children.push(paramMap[param.id]);\n } else {\n rootParams.push(paramMap[param.id]);\n }\n });\n\n return rootParams;\n }, []);\n\n const hierarchicalParams = useMemo(\n () => organizeParams(patientParamsDictionary),\n [patientParamsDictionary, organizeParams],\n );\n\n const resetChildSelections = useCallback(\n (param: HierarchicalParam) => {\n logger.debug(`${LOG_MODULE} resetChildSelections`, { param });\n\n if (!param.children || param.children.length === 0) {\n return;\n }\n\n param.children.forEach(childParam => {\n if (selectedOptions[childParam.id]?.length > 0) {\n onParamChange({\n paramId: childParam.id,\n type: childParam.type,\n paramValue: [],\n });\n }\n resetChildSelections(childParam);\n });\n },\n [onParamChange, selectedOptions],\n );\n\n const handleChange = useCallback(\n async (paramId: number, paramValue: PatientParamValue) => {\n // Reset child parameter selections if the parent selection changed\n const param = hierarchicalParams.find(p => p.id === paramId);\n if (param) {\n resetChildSelections(param as HierarchicalParam);\n }\n\n onParamChange({\n paramId,\n type: param?.type,\n paramValue,\n });\n },\n [onParamChange, hierarchicalParams, resetChildSelections],\n );\n\n const renderParams = useCallback(\n (params: HierarchicalParam[], parentSelected: boolean = true) => (\n <>\n {params.map(param => {\n // Hide gender and age (for edit patient profile mode)\n if (\n isHideGenderAndAge &&\n (param.slug === 'gender' || param.slug === 'age_group')\n ) {\n return null;\n }\n if (param.is_hidden) {\n return null;\n }\n\n const isParentSelected =\n parentSelected &&\n Array.isArray(selectedOptions[param.id]) &&\n (selectedOptions[param.id]?.length > 0 || mode === 'filter');\n\n const filteredOptions = param.options.filter(\n option =>\n !option.parent_option_id ||\n (Array.isArray(selectedOptions[param.parent_param_id]) &&\n (selectedOptions[param.parent_param_id] as number[]).includes(\n option.parent_option_id,\n )),\n );\n const isFilteredOptionsEmpty = filteredOptions.length === 0;\n\n return (\n \n {(() => {\n const selectedKey = selectedOptions[param.id]?.[0]\n ? String(selectedOptions[param.id][0])\n : undefined;\n\n switch (param.type) {\n case ParamType.Select:\n const selectedOption = filteredOptions.find(\n opt => opt.id === selectedOptions[param.id]?.[0],\n );\n\n return (\n {\n const key = Array.from(keys)[0]?.toString();\n handleChange(\n param.id,\n key ? [Number(key)] : [],\n );\n }}\n isDisabled={isDisabled || isFilteredOptionsEmpty}\n disallowEmptySelection={true}\n >\n {filteredOptions.map(param_option => (\n \n {param_option.option}\n \n ))}\n \n );\n case ParamType.Number:\n return (\n \n handleChange(\n param.id,\n e.target.value\n ? [Number(e.target.value)]\n : [],\n )\n }\n isDisabled={\n isDisabled ||\n !!(param.parent_param_id && !isParentSelected)\n }\n />\n );\n case ParamType.Text:\n default:\n return (\n \n handleChange(param.id, e.target.value)\n }\n isDisabled={\n isDisabled ||\n !!(param.parent_param_id && !isParentSelected)\n }\n />\n );\n }\n })()}\n {param.children.length > 0 &&\n renderParams(param.children, isParentSelected)}\n \n );\n })}\n \n ),\n [mode, selectedOptions, handleChange, isDisabled, isHideGenderAndAge],\n );\n\n const basicParams = hierarchicalParams.filter(param => param.level === 'Basic');\n const additionalParams = hierarchicalParams.filter(param => param.level === 'Additional');\n\n return (\n
\n {isLoading ? (\n
\n {Array.from({ length: 2 }).map((_, index) => (\n \n ))}\n
\n ) : (\n
\n {basicParams.length > 0 && renderParams(basicParams)}\n {additionalParams.length > 0 && renderParams(additionalParams)}\n
\n )}\n
\n );\n}\n","import PatientParamsForm from '@/layers/presentation/components/patients/PatientParamsForm';\nimport { Autocomplete, AutocompleteItem } from '@/layers/presentation/components/ui/Autocomplete';\nimport { Select, SelectItem } from '@/layers/presentation/components/ui/Select';\nimport { useGlobalState } from '@/layers/presentation/context/GlobalStateContext';\nimport {\n HandleParamChangeType,\n HandleQueryChangeType,\n useProgramSearch,\n} from '@/layers/presentation/hooks/useProgramSearch';\nimport { useTranslation } from '@/layers/presentation/i18n/client';\nimport logger from '@/layers/support/monitoring/logger';\nimport { PatientParamValues } from '@/types/models';\nimport { Button } from '@nextui-org/react';\nimport { Tab, Tabs } from '@nextui-org/tabs';\nimport React, { useCallback, useMemo, useRef, useState } from 'react';\n\nconst LOG_MODULE = 'FE [Presentation / Components / ProgramSearchFilters]';\n\ninterface ProgramSearchFiltersProps {\n filters: {\n patientParams: PatientParamValues;\n query: string;\n };\n onParamChange: HandleParamChangeType;\n onQueryChange: HandleQueryChangeType;\n}\n\nconst ProgramSearchFilters: React.FC = ({\n filters,\n onParamChange,\n onQueryChange,\n}) => {\n const { t } = useTranslation();\n const { user } = useGlobalState();\n const {\n savedSearches,\n selectedSearch,\n selectedTabKey,\n patientParamsDictionary,\n isLoadingParams,\n handleSaveSearch,\n handleSearchSelect,\n formatSearchName,\n setSelectedTabKey,\n isAdvancedSearchVisible,\n toggleAdvancedSearch,\n isSaving,\n } = useProgramSearch();\n const [isInputFocused, setIsInputFocused] = useState(false);\n\n const cancerTypes = patientParamsDictionary.find(\n param => param.slug === 'c3_cancer_type',\n )?.options;\n const cancerSubtypes = patientParamsDictionary.find(\n param => param.slug === 'c3_cancer_subtype',\n )?.options;\n\n /**\n * Generates the autocomplete options by combining cancer types and subtypes.\n */\n const autocompleteOptions = useMemo(() => {\n if (!cancerTypes || !cancerSubtypes) return ['The list is loading...'];\n\n const options: string[] = [];\n\n cancerTypes.forEach(type => {\n options.push(type.option);\n\n const relatedSubtypes = cancerSubtypes.filter(\n subtype => subtype.parent_option_id === type.id,\n );\n relatedSubtypes.forEach(subtype => {\n const combined = `${type.option}, ${subtype.option}`;\n options.push(combined);\n });\n });\n\n logger.debug(`${LOG_MODULE} autocompleteOptions`, { autocompleteOptions: options });\n return options;\n }, [cancerTypes, cancerSubtypes]);\n\n /**\n * Filters the autocomplete options based on the user's query.\n */\n const filteredOptions = useMemo(() => {\n if (!filters.query || filters.query.length < 3) return ['Start typing to see suggestions'];\n\n const query = filters.query.toLowerCase();\n\n // Get all matching options\n const matchingOptions = autocompleteOptions.filter(option =>\n option.toLowerCase().includes(query),\n );\n\n // Sort options: items starting with the query come first\n return matchingOptions.sort((a, b) => {\n const aStartsWith = a.toLowerCase().startsWith(query);\n const bStartsWith = b.toLowerCase().startsWith(query);\n\n // If a starts with query but b doesn't, a comes first\n if (aStartsWith && !bStartsWith) return -1;\n // If b starts with query but a doesn't, b comes first\n if (!aStartsWith && bStartsWith) return 1;\n\n // For items that both start or don't start with query, sort alphabetically\n return a.toLowerCase().localeCompare(b.toLowerCase());\n });\n }, [autocompleteOptions, filters.query]);\n\n const handleInputChange = useCallback(\n (value: string) => {\n // Always process the input change when the field is focused\n // This ensures empty values are properly handled\n if (isInputFocused || value === '') {\n onQueryChange({ query: value });\n }\n },\n [onQueryChange, isInputFocused],\n );\n\n /**\n * Handles selection of an autocomplete option.\n */\n const handleSelectionChange = useCallback(\n (key: React.Key | null) => {\n if (key !== null) {\n const selectedValue = key.toString();\n logger.debug(`${LOG_MODULE} handleSelectionChange: selection made`, {\n selectedValue,\n });\n\n // Just pass the selected value to onQueryChange\n // The hook will handle parsing and parameter updates\n onQueryChange({ query: selectedValue });\n }\n },\n [onQueryChange],\n );\n\n const autocompleteRef = useRef(null);\n\n const renderSearchFields = () => {\n logger.debug(`${LOG_MODULE} renderSearchFields`, { filters });\n\n return (\n
\n setIsInputFocused(true)}\n onBlur={() => setIsInputFocused(false)}\n onSelectionChange={handleSelectionChange}\n onOpenChange={isOpen => {\n if (isOpen) {\n setTimeout(() => autocompleteRef.current?.focus(), 50);\n }\n }}\n query={filters.query}\n allowsCustomValue\n allowsEmptyCollection\n isClearable\n >\n {filteredOptions.map(option => (\n \n {option}\n \n ))}\n \n\n {/* Advanced Search Button */}\n
\n \n {isAdvancedSearchVisible\n ? t('components:programSearchFilters.hideAdvancedSearch')\n : t('components:programSearchFilters.showAdvancedSearch')}\n \n
\n\n {/* PatientParamsForm: Hidden by default */}\n {isAdvancedSearchVisible && (\n
\n

Advanced Search

\n \n
\n )}\n
\n );\n };\n\n if (!user) {\n return renderSearchFields();\n }\n\n return (\n
\n
\n \n handleSaveSearch(filters.patientParams || {}, filters.query || '')\n }\n isLoading={isSaving}\n >\n {t('components:programSearchFilters.save')}\n \n setSelectedTabKey(key.toString())}\n classNames={{\n tabList: ['mb-0', 'bg-secondary'],\n cursor: ['shadow-none', 'group-data-[selected=true]:bg-primary'],\n tab: [],\n tabContent: ['text-black', 'group-data-[selected=true]:text-white'],\n panel: 'w-full',\n }}\n >\n \n \n {/* */}\n \n
\n\n
\n {/* {selectedTabKey === \"search\" && (\n renderSearchFields()\n )} */}\n {selectedTabKey === 'saved-searches' && (\n <>\n handleSearchSelect(e.target.value)}\n classNames={{\n trigger: 'h-14',\n }}\n >\n {savedSearches.map(search => (\n \n {formatSearchName(search)}\n \n ))}\n \n \n )}\n {renderSearchFields()}\n {selectedTabKey === 'bookmarks' && (\n
{t('components:programSearchFilters.bookmarksContent')}
\n )}\n
\n
\n );\n};\n\nexport default ProgramSearchFilters;\n","import {\n Autocomplete as NextUAutocomplete,\n AutocompleteProps as NextUIAutocompleteProps,\n} from '@nextui-org/react';\nimport { ForwardedRef, forwardRef } from 'react';\n\ninterface AutocompleteProps extends NextUIAutocompleteProps {\n query?: string;\n}\n\nexport const Autocomplete = forwardRef(\n (props: AutocompleteProps, ref: ForwardedRef) => {\n return (\n \n {props.children}\n \n );\n },\n);\n\nAutocomplete.displayName = 'Autocomplete';\n\nexport { AutocompleteItem, AutocompleteSection } from '@nextui-org/react';\n","import React from 'react';\nimport { Input as NextUInput, InputProps } from '@nextui-org/react';\n\nexport function Input(props: InputProps) {\n return (\n \n {props.children}\n \n );\n}\n","import { Select as NextUSelect, SelectProps } from '@nextui-org/react';\n\nexport function Select(props: SelectProps) {\n return (\n \n {props.children}\n \n );\n}\n\nexport { SelectItem, type Selection } from '@nextui-org/react';\n","import { clsx, type ClassValue } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"names":["i","r","n","a","o","t","f","equalityFn","l","react__WEBPACK_IMPORTED_MODULE_0__","useReducer","v","m","d","c","e","u","useRef","g","current","p","window","w","s","leading","x","trailing","h","y","debounceOnServer","F","Math","max","maxWait","useEffect","useMemo","apply","cancelAnimationFrame","requestAnimationFrame","setTimeout","Date","now","min","A","slice","call","arguments","cancel","clearTimeout","isPending","flush","useCallback","Container","props","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","div","className","cn","noBottomMargin","children","__webpack_exports__","title","breadcrumbs","background","titleColor","backgroundImage","param","useLogger","module","concat","style","backgroundSize","backgroundPosition","jsxs","map","item","index","React","span","Link","href","label","h1","PatientParamsForm","mode","patientParamsDictionary","selectedOptions","onParamChange","isLoading","isDisabled","isHideGenderAndAge","organizeParams","paramMap","rootParams","params","forEach","id","parent_param_id","push","hierarchicalParams","resetChildSelections","logger","debug","length","childParam","paramId","type","paramValue","handleChange","find","renderParams","parentSelected","Fragment","slug","is_hidden","isParentSelected","Array","isArray","filteredOptions","options","filter","option","parent_option_id","includes","isFilteredOptionsEmpty","selectedKey","String","undefined","ParamType","Select","opt","name","selectedKeys","onSelectionChange","keys","key","from","toString","Number","disallowEmptySelection","param_option","SelectItem","value","Input","onChange","target","Text","basicParams","level","additionalParams","_","Skeleton","LOG_MODULE","Z","filters","onQueryChange","useTranslation","user","useGlobalState","savedSearches","selectedSearch","selectedTabKey","isLoadingParams","handleSaveSearch","handleSearchSelect","formatSearchName","setSelectedTabKey","isAdvancedSearchVisible","toggleAdvancedSearch","isSaving","useProgramSearch","isInputFocused","setIsInputFocused","useState","cancerTypes","cancerSubtypes","autocompleteOptions","relatedSubtypes","subtype","combined","query","toLowerCase","matchingOptions","sort","b","aStartsWith","startsWith","bStartsWith","localeCompare","handleInputChange","handleSelectionChange","selectedValue","autocompleteRef","renderSearchFields","Autocomplete","placeholder","ref","onInputChange","onFocus","onBlur","onOpenChange","isOpen","focus","allowsCustomValue","allowsEmptyCollection","isClearable","AutocompleteItem","textValue","Button","size","variant","onClick","aria-expanded","aria-controls","h3","patientParams","radius","onPress","Tabs","aria-label","classNames","tabList","cursor","tab","tabContent","panel","Tab","trigger","search","forwardRef","NextUAutocomplete","inputProps","inputWrapper","listboxProps","autoFocus","displayName","NextUInput","NextUSelect","listbox","_len","inputs","_key","twMerge","clsx"],"sourceRoot":""}