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B,GACbrN,CAAAA,EAAAA,EAAAA,EAAAA,EACL,4CAAkDpG,MAAA,CAANmK,GAC5CgJ,EAAAA,EAAcA,EAGlBO,aAAc,CAACnP,EAAoBxD,IAC1BqF,CAAAA,EAAAA,EAAAA,EAAAA,EACL7B,OAAAA,EAAe,KAAOA,EAAM,mBAAuBvE,MAAA,CAAJuE,GAAQ,mBAEvD4O,EAAAA,EAAcA,CACdpS,EAGN","sources":["webpack://_N_E/./components/common/no-result-found.tsx","webpack://_N_E/./components/equipments/v2/equipment-and-scientific-pricing.tsx","webpack://_N_E/./components/home-header.tsx","webpack://_N_E/./components/home-listings/api.ts","webpack://_N_E/./components/home-listings/interface.ts","webpack://_N_E/./components/home-listings/multiselect-filter.tsx","webpack://_N_E/./components/home-listings/filter-popover.tsx","webpack://_N_E/./components/home-listings/listing-type-select.tsx","webpack://_N_E/./components/home-listings/tags.tsx","webpack://_N_E/./components/home-listings/listings.tsx","webpack://_N_E/./components/home-listings/user-status.tsx","webpack://_N_E/./components/home-listings/v2/listing-card.tsx","webpack://_N_E/./components/new-equipment/api.ts","webpack://_N_E/./lib/use-onscreen.ts","webpack://_N_E/./src/helpers/page-path.helper.ts","webpack://_N_E/./src/services/user.service.ts","webpack://_N_E/"],"sourcesContent":["import { Microscope } from \"lucide-react\";\n\nexport const NoResultFound = () => (\n
\n
\n \n
\n
No results found
\n
\n);\n","import React from \"react\";\n\nimport { cn } from \"@/lib/utils\";\n\ninterface EquipmentAndScientificTagProps {\n text: string;\n className?: string;\n}\n\nconst EquipmentAndScientificTag = ({\n text,\n className,\n}: EquipmentAndScientificTagProps) => {\n return (\n \n {text}\n \n );\n};\n\nexport default EquipmentAndScientificTag;\n","/* eslint-disable @next/next/no-html-link-for-pages */\nimport { debounce } from \"lodash-es\";\nimport { Search, X } from \"lucide-react\";\nimport { useRouter } from \"next/router\";\nimport { useCallback, useEffect, useState } from \"react\";\n\nimport { Input } from \"@/components/ui/input\";\n\ninterface Props {\n setFilters?: any;\n filters?: any;\n onSubmit?: any;\n placeholder?: string;\n}\n\nexport function SearchEquipment(props: Props) {\n const router = useRouter();\n const [search, setSearch] = useState(props.filters?.text || \"\");\n\n useEffect(() => {\n setSearch(props.filters?.text || \"\");\n }, [props.filters?.text]);\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n const applySearch = useCallback(\n debounce((value) => {\n if (props.setFilters) {\n props.setFilters((prev: any) => ({\n ...prev,\n text: value,\n }));\n }\n }, 400),\n [],\n );\n\n function onChangeSearch(e: any) {\n setSearch(e.target.value);\n applySearch(e.target.value);\n }\n\n function onSubmit(e: any) {\n e.preventDefault();\n if (props.onSubmit) {\n props.onSubmit(search);\n }\n }\n\n function clearSearch() {\n setSearch(\"\");\n if (props.setFilters) {\n props.setFilters((prev: any) => ({\n ...prev,\n text: \"\",\n }));\n }\n }\n\n return (\n
\n
\n \n \n {Boolean(search) ? (\n \n ) : (\n \n )}\n
\n );\n}\n","import { API_URL, superFetch } from \"@/lib/utils\";\n\nexport async function fetchEquipments(url: string) {\n const response = (await superFetch(`${API_URL}${url}`)) as any;\n return response.data;\n}\n","export interface Tag {\n id: number;\n label: string;\n value: string;\n count: number;\n}\n\nexport interface Manufacturer {\n id: number;\n label: string;\n value: string;\n}\n\ninterface Item {\n value: number;\n label: string;\n}\n\nexport interface Filters {\n tags?: { [key: string]: Item };\n manufacturers?: { [key: string]: Item };\n labs?: { [key: string]: Item };\n text?: string;\n minPrice?: string;\n maxPrice?: string;\n type?: string;\n}\n\nexport const defaultFilters: Filters = { text: \"\", tags: {}, type: \"all\" };\n\nexport interface Calendar {\n id: number;\n summary: string;\n description: string;\n}\n","import { X } from \"lucide-react\";\nimport { components } from \"react-select\";\nimport AsyncSelect from \"react-select/async\";\n\nimport { Filters } from \"@/components/home-listings/interface\";\n\ninterface Props {\n filters: Filters;\n setFilters: any;\n fetchFn: (url: string) => Promise;\n name: \"manufacturers\" | \"tags\" | \"labs\";\n path: string;\n params?: any;\n}\n\ninterface Item {\n value: number;\n label: string;\n}\n\nconst MultiValueRemove = (props: any) => (\n
[role=button]]:hover:bg-transparent\">\n \n \n \n
\n);\n\nexport function MultiSelectFilter(props: Props) {\n async function loadOptions(inputValue: string) {\n const query = new URLSearchParams(props.params);\n if (inputValue) {\n query.append(\"name\", inputValue);\n }\n\n const options = await props.fetchFn(\n `/${props.path}${query.toString() ? \"?\" + query.toString() : \"\"}`,\n );\n return options;\n }\n\n function onChange(values: any) {\n props.setFilters((prev: any) => ({\n ...prev,\n [props.name]: values.reduce(\n (acc: any, item: Item) => ({\n ...acc,\n [item.value]: item,\n }),\n {},\n ),\n }));\n }\n\n const defaultValue = Object.values(props.filters[props.name] || {})\n .filter((item) => item)\n .map((item: any) => ({ value: item.value, label: item.label }));\n\n return (\n ({\n ...baseStyles,\n borderColor: \"hsl(var(--input))\",\n height: \"48px\",\n backgroundColor: \"#FFFEFE\",\n boxShadow: \"none !important\",\n \":active\": {\n boxShadow: \"none !important\",\n },\n \":hover\": {\n borderColor: \"#71706E !important\",\n },\n }),\n container: (styles, { isFocused }) => ({\n ...styles,\n borderColor: \"#71706E\",\n boxShadow: \"none !important\",\n \":hover\": {\n boxShadow: \"none !important\",\n },\n }),\n multiValue: (styles, { data }) => {\n return {\n ...styles,\n backgroundColor: \"#EADFCA\",\n border: \"none\",\n borderRadius: \"2px\",\n padding: \"2px 4px 2px 10px\",\n marginRight: \"6px\",\n marginLeft: 0,\n fontFamily: \"Satoshi Medium\",\n fontWeight: 500,\n };\n },\n multiValueLabel: (styles, { data }) => ({\n ...styles,\n color: \"#232D2A\",\n fontSize: \"14px\",\n fontWeight: 500,\n }),\n option: (styles, { data, isDisabled, isFocused, isSelected }) => {\n return {\n ...styles,\n backgroundColor: \"#F7F7F7\",\n color: \"#232D2A\",\n fontSize: \"14px\",\n cursor: \"pointer\",\n borderBottom: \"#71706E 1px solid\",\n padding: 12,\n \":hover\": {\n background: \"#F0EFEF\",\n },\n };\n },\n\n menuList: (styles) => ({\n ...styles,\n background: \"transparent\",\n padding: 0,\n borderRadius: \"4px\",\n border: \"1px solid #71706E\",\n zIndex: 100,\n }),\n menuPortal: (styles) => ({ ...styles, zIndex: 100 }),\n }}\n />\n );\n}\n","import { SlidersHorizontal, X } from \"lucide-react\";\nimport { useState } from \"react\";\n\nimport { defaultFilters, Filters } from \"@/components/home-listings/interface\";\nimport { MultiSelectFilter } from \"@/components/home-listings/multiselect-filter\";\nimport {\n fetchManufacturers,\n fetchOrgs,\n fetchTags,\n} from \"@/components/new-equipment/api\";\nimport { Badge } from \"@/components/ui/badge\";\nimport { Button } from \"@/components/ui/button\";\nimport { Input } from \"@/components/ui/input\";\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"@/components/ui/popover\";\nimport { Separator } from \"@/components/ui/separator\";\nimport { cn } from \"@/lib/utils\";\n\ninterface Props {\n filters: Filters;\n setFilters: (filters: Filters) => void;\n}\n\nexport function FilterPopover(props: Props) {\n const [open, setOpen] = useState(false);\n const [tempFilters, setTempFilters] = useState(props.filters);\n\n // Init temp filters\n function onOpenChange(nextOpen: boolean) {\n if (nextOpen) {\n setTempFilters(props.filters);\n }\n setOpen(nextOpen);\n }\n\n function clearFilters() {\n props.setFilters(defaultFilters);\n setOpen(false);\n }\n\n function applyFilters() {\n props.setFilters(tempFilters);\n setOpen(false);\n }\n\n const tags = props.filters.tags || {};\n const manufacturers = props.filters.manufacturers || {};\n const labs = props.filters.labs || {};\n const filterNum =\n Object.keys(tags).filter((key) => tags[key]).length +\n Object.keys(manufacturers).filter((key) => manufacturers[key]).length +\n Object.keys(labs).filter((key) => labs[key]).length +\n (props.filters.text ? 1 : 0) +\n (props.filters.minPrice ? 1 : 0) +\n (props.filters.maxPrice ? 1 : 0) +\n (props.filters.type !== \"all\" ? 1 : 0);\n\n return (\n \n \n \n \n Filters\n {filterNum > 0 && (\n \n {filterNum}\n \n )}\n \n \n\n \n
\n
Filters
\n \n Clear Filters\n \n
\n \n
\n
\n
Type
\n
\n \n setTempFilters((prev) => ({\n ...prev,\n type:\n tempFilters.type !== \"service\" ? \"service\" : undefined,\n }))\n }\n >\n Service\n \n \n setTempFilters((prev) => ({\n ...prev,\n type:\n tempFilters.type !== \"equipment\"\n ? \"equipment\"\n : undefined,\n }))\n }\n >\n Equipment\n \n \n setTempFilters((prev) => ({\n ...prev,\n type:\n tempFilters.type !== \"scientific_process\"\n ? \"scientific_process\"\n : undefined,\n }))\n }\n >\n Scientific Process\n \n
\n
\n
\n
Tags
\n
\n \n
\n
Manufacturers
\n
\n \n
\n
Lab
\n
\n \n
\n
\n
\n
Price range
\n
\n \n setTempFilters((prev) => ({\n ...prev,\n minPrice: e.target.value,\n }))\n }\n />\n -\n \n setTempFilters((prev) => ({\n ...prev,\n maxPrice: e.target.value,\n }))\n }\n placeholder=\"E.g. $500\"\n />\n
\n
\n
\n
\n \n \n
\n
\n
\n );\n}\n","import { Filters } from \"@/components/home-listings/interface\";\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/components/ui/select\";\n\ninterface Props {\n filters: Filters;\n setFilters: any;\n}\n\nexport function ListingTypeSelect({ filters, setFilters }: Props) {\n const handleChange = (value: string) => {\n setFilters((prev: any) => ({\n ...prev,\n type: value,\n }));\n };\n return (\n \n \n \n \n \n \n All\n \n \n Equipment\n \n \n Service\n \n \n Scientific Process\n \n \n \n );\n}\n","import { ChevronLeft, ChevronRight } from \"lucide-react\";\nimport { useRef } from \"react\";\nimport useSWR from \"swr\";\n\nimport { Filters } from \"@/components/home-listings/interface\";\nimport { fetchTags } from \"@/components/new-equipment/api\";\nimport { Button } from \"@/components/ui/button\";\nimport { Toggle } from \"@/components/ui/toggle\";\nimport { cn } from \"@/lib/utils\";\n\ninterface Props {\n filters: Filters;\n setFilters: any;\n}\n\nexport function EquipmentTags(props: Props) {\n const { data: tags = [] } = useSWR(\"/tags\", fetchTags);\n\n function onClick(tag: any) {\n props.setFilters((prev: any) => ({\n ...prev,\n tags: {\n ...prev.tags,\n [tag.id]: prev.tags?.[tag.id] ? undefined : tag,\n },\n }));\n }\n\n const Tags = tags.slice(0, 20).map((tag: any) => (\n onClick(tag)}\n aria-label={tag.label}\n >\n {tag.label}\n \n ));\n\n const contentWrapper = useRef(null);\n\n const sideScroll = (element: HTMLDivElement | null, distance: number) => {\n if (!element) return;\n element.scrollLeft += distance;\n };\n\n return (\n
\n {!!tags.length && (\n sideScroll(contentWrapper.current, -500)}\n aria-label=\"Scroll left\"\n >\n \n \n )}\n \n {Tags}\n
\n {!!tags.length && (\n sideScroll(contentWrapper.current, 500)}\n aria-label=\"Scroll right\"\n >\n \n \n )}\n \n );\n}\n","import { useRouter } from \"next/router\";\nimport { useEffect, useRef, useState } from \"react\";\nimport useSWRInfinite from \"swr/infinite\";\n\nimport { NoResultFound } from \"@/components/common/no-result-found\";\nimport { Notifications } from \"@/components/common/notifications/notifications-popover\";\nimport { SearchEquipment } from \"@/components/home-header\";\nimport { fetchEquipments } from \"@/components/home-listings/api\";\nimport { FilterPopover } from \"@/components/home-listings/filter-popover\";\nimport { ListingTypeSelect } from \"@/components/home-listings/listing-type-select\";\nimport { EquipmentTags } from \"@/components/home-listings/tags\";\nimport { UserStatus } from \"@/components/home-listings/user-status\";\nimport { ListingCard } from \"@/components/home-listings/v2/listing-card\";\nimport { Loading } from \"@/components/loading\";\nimport useIsMobile from \"@/lib/is-mobile\";\nimport useOnScreen from \"@/lib/use-onscreen\";\nimport { cn, getUserType } from \"@/lib/utils\";\nimport useAuthStore from \"@/stores/auth-store\";\n\ninterface Props {\n filters: any;\n}\n\nconst PAGE_SIZE = 12;\n\nexport function HomeListings(props: Props) {\n const [filters, setFilters] = useState(props.filters);\n const [loaded, setLoaded] = useState(false);\n const { user } = useAuthStore();\n const userType = getUserType(user);\n\n const router = useRouter();\n\n useEffect(() => {\n if (!router.isReady) {\n return;\n }\n\n const type = router.query.type || \"all\";\n const text = router.query.q || \"\";\n\n setFilters((prev: any) => ({ ...prev, type, text }));\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [router.query.type, router.query.q]);\n\n useEffect(() => {\n if (filters.text !== undefined) {\n if (!loaded) {\n return;\n }\n\n const query = { ...router.query, q: filters.text };\n if (!filters.text) {\n delete query.q;\n }\n router.replace(\n {\n pathname: router.pathname,\n query,\n },\n undefined,\n { shallow: true },\n );\n }\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [filters.text]);\n\n useEffect(() => {\n const timer = setTimeout(() => {\n setLoaded(true);\n }, 1000);\n\n return () => clearTimeout(timer);\n }, []);\n\n const ref = useRef(null);\n const isVisible = useOnScreen(ref);\n\n const getKey = (pageIndex: number, previousPageData: any) => {\n const params = new URLSearchParams();\n if (filters.type !== \"all\") {\n params.append(\"type\", filters.type);\n }\n\n // pagination\n params.append(\"page\", String(pageIndex));\n params.append(\"limit\", String(PAGE_SIZE));\n\n if (filters.text) {\n params.append(\"text\", filters.text);\n }\n\n if (filters.tags) {\n Object.keys(filters.tags)\n .filter((key) => filters.tags[key])\n .map((tag) => params.append(\"tag_id\", tag));\n }\n if (filters.manufacturers) {\n Object.keys(filters.manufacturers)\n .filter((key) => filters.manufacturers[key])\n .map((manufacturer) => params.append(\"manufacturer_id\", manufacturer));\n }\n if (filters.labs) {\n Object.keys(filters.labs)\n .filter((key) => filters.labs[key])\n .map((orgSlug) => params.append(\"org_slug\", orgSlug));\n }\n\n if (filters.minPrice) {\n params.append(\"min_price\", filters.minPrice);\n }\n if (filters.maxPrice) {\n params.append(\"max_price\", filters.maxPrice);\n }\n\n if (previousPageData && !previousPageData.listings) return null; // reached the end\n return `/listings/search?${params.toString()}`; // SWR key\n };\n\n const {\n data = [],\n size,\n setSize,\n isLoading,\n } = useSWRInfinite(getKey, fetchEquipments, {\n revalidateIfStale: true,\n });\n\n const isMobile = useIsMobile();\n\n const isEmpty = Boolean(!data?.[0]?.listings.length);\n const isReachingEnd =\n data && data[0]?.pagination?.total <= data.length * PAGE_SIZE;\n const isLoadingMore =\n data.length > 0 &&\n (isLoading || (size > 0 && data && typeof data[size - 1] === \"undefined\"));\n const loading = isLoading || isLoadingMore;\n\n useEffect(() => {\n if (isVisible && !isReachingEnd && !isLoading) {\n void setSize((prev) => prev + 1);\n }\n }, [isVisible, isReachingEnd, setSize, isLoading]);\n\n return (\n
\n \n \n {!!user && (\n
\n

Home

\n
\n \n
\n
\n )}\n\n \n \n \n
\n
\n \n
\n \n \n
\n \n
\n
\n \n
\n\n
    \n {data.map(({ listings }) =>\n listings.map((listing: any) => {\n return (\n
  • \n \n
  • \n );\n }),\n )}\n
\n {isEmpty && !loading && (\n
\n \n
\n )}\n
\n {loading && }\n
\n \n );\n}\n","import { ButtonLink } from \"@/components/ui/button\";\nimport pagePath from \"@/src/helpers/page-path.helper\";\nimport orgService from \"@/src/services/org.service\";\nimport userService from \"@/src/services/user.service\";\nimport useAuthStore from \"@/stores/auth-store\";\n\nexport function UserStatus() {\n const { user } = useAuthStore();\n const orgId = user?.referrer_org_id;\n const source = user?.referrer_source;\n const { data: userLabProfile } = userService.useLabProfileSignedIn(\n user,\n orgId,\n \"banner\",\n );\n\n const Banner = () => {\n const { data: orgData } = orgService.useById(orgId);\n const { data: subscriptionPlans } = orgService.useSubscriptionPlans(orgId);\n\n const { org } = orgData ?? {};\n\n const isLabHasSubscriptionPlan = subscriptionPlans?.length;\n const userStatus = userLabProfile?.status;\n\n if (!org) return null;\n\n const labName = `${org?.name}, ${org?.university?.name}`;\n if (\n [\n \"new\",\n \"missing_insurance\",\n \"missing_subscription\",\n \"missing_training_certificates\",\n \"declined\",\n \"pending\",\n ].includes(userStatus)\n ) {\n const href = (() => {\n switch (userStatus) {\n case \"new\":\n return pagePath.organizations.access(\n `${org.slug}-${org.id}`,\n pagePath.organizations.info(org?.id, org?.slug),\n source,\n Boolean(isLabHasSubscriptionPlan),\n );\n case \"missing_insurance\":\n return pagePath.users.uploadInsurance(\n org.id,\n pagePath.organizations.info(org?.id, org?.slug),\n source,\n Boolean(isLabHasSubscriptionPlan),\n );\n case \"missing_training_certificates\":\n return pagePath.users.uploadTrainings(\n org.id,\n pagePath.organizations.info(org?.id, org?.slug),\n source,\n Boolean(isLabHasSubscriptionPlan),\n );\n case \"missing_subscription\":\n return pagePath.organizations.buySubscription(org.id, org.slug);\n case \"declined\":\n return pagePath.organizations.access(\n `${org.slug}-${org.id}`,\n pagePath.organizations.info(org?.id, org?.slug),\n source,\n Boolean(isLabHasSubscriptionPlan),\n );\n default:\n return \"default\";\n }\n })();\n\n if (userStatus == \"pending\") {\n const description = isLabHasSubscriptionPlan\n ? `Your account is currently under review by ${labName}. Your subscription will be activated once your account is approved.`\n : `Your account is currently under review by ${labName}. We will notify you once your account is approved.`;\n return (\n
\n
\n
Account Pending Verification
\n
{description}
\n
\n
\n );\n }\n return (\n
\n
\n
Continue Account Setup
\n
\n Your account setup is incomplete. Please click here to continue.\n
\n
\n \n Continue Account Setup\n \n
\n );\n }\n };\n\n return orgId && userLabProfile?.status !== \"verified\" && source ? (\n \n ) : null;\n}\n","import Link from \"next/link\";\nimport React from \"react\";\n\nimport {\n getListingTypeName,\n LISTING_TYPE,\n} from \"@/components/common/constants\";\nimport EquipmentAndScientificTag from \"@/components/equipments/v2/equipment-and-scientific-pricing\";\nimport { ImageResponsive } from \"@/components/image\";\nimport { addParams, cn, getHostingUrl, getListingPath } from \"@/lib/utils\";\n\nexport function ListingCard({ listing, className, userType }: any) {\n const footer = (\n \n
\n
\n
\n \n window.open(\n `${getHostingUrl(userType)}/organizations/${listing.org_slug}-${listing?.org_id}`,\n \"_blank\",\n )\n }\n className=\"h7 line-clamp-1 cursor-pointer text-[14px] text-emerald-900\"\n >\n {listing.university_name}\n \n
\n
\n \n window.open(\n `${getHostingUrl(userType)}/organizations/${listing.org_slug}-${listing.org_id}`,\n \"_blank\",\n )\n }\n >\n {listing.org_name}\n \n \n \n \n
\n
\n {(listing.distance || 0).toFixed()} miles\n
\n
\n
\n
\n
\n \n );\n\n const listTypeColor = (() => {\n switch (listing?.type) {\n case LISTING_TYPE.EQUIPMENT:\n return \"bg-gold-100\";\n case LISTING_TYPE.SERVICE:\n return \"bg-coffee-100\";\n case LISTING_TYPE.SCIENTIFIC_PROCESS:\n return \"bg-gold-100\";\n default:\n return \"\";\n }\n })();\n\n const EquipmentAndScientificPricing = () => {\n return listing.requires_subscription &&\n listing.price_included_in_subscription ? null : (\n <>\n {listing?.type === \"scientific_process\" ? (\n
\n
\n {listing.price === 0 ? (\n \n {listing.price_unit}\n \n ) : (\n <>\n \n From{\" \"}\n \n ${listing.price}\n \n \n \n )}\n
\n
\n ) : (\n
\n
{`$${listing.price}`}
\n \n {listing.price_unit === \"months\"\n ? \"/ month\"\n : listing.price_unit === \"days\"\n ? \"/ day\"\n : \"/ hour\"}\n \n
\n )}\n \n );\n };\n\n const ServicePricing = () => {\n if (listing.price === 0 && listing.price_unit === \"Contact for pricing\") {\n return (\n
\n
Contact for pricing
\n
\n );\n }\n return (\n
\n
\n {listing.price === 0 ? (\n {listing.price_unit}\n ) : (\n \n From{\" \"}\n \n ${listing.price}\n \n \n )}\n
\n
\n );\n };\n\n const TagSection = () => {\n return (\n
\n \n \n {getListingTypeName(listing?.type)}\n \n
\n \n );\n };\n\n const renderTagText = () => {\n if (\n listing.type !== \"service\" &&\n listing.requires_subscription &&\n listing.price_included_in_subscription\n ) {\n return (\n \n );\n }\n if (\n listing.type !== \"service\" &&\n (listing.user_subscribed || listing.requires_subscription)\n ) {\n return listing.user_subscribed ? (\n \n ) : (\n \n );\n }\n\n return null;\n };\n\n return (\n \n
\n \n
\n \n
{renderTagText()}
\n
\n\n
\n \n
\n
\n {listing?.name}\n
\n
\n
\n \n {listing?.description}\n
\n
\n
\n {listing?.type === \"service\" ? (\n \n ) : (\n \n )}\n
\n\n {footer}\n
\n \n \n \n );\n}\n","import {\n EquipmentPrice,\n EquipmentPriceSubmit,\n Staff,\n} from \"@/components/new-equipment/interfaces\";\nimport { API_URL, superFetch, workingHoursToWeekdays } from \"@/lib/utils\";\n\nexport async function fetchCreateEquipment(data: any) {\n const response = await superFetch(`${API_URL}/equipments`, {\n method: \"POST\",\n body: JSON.stringify(data),\n });\n return response;\n}\n\nexport async function fetchUpdateEquipment(\n slug: string | undefined,\n data: any,\n) {\n const response = await superFetch(`${API_URL}/equipments/${slug}`, {\n method: \"PUT\",\n body: JSON.stringify(data),\n });\n return response;\n}\n\nexport async function fetchTags(url: string) {\n const response = (await superFetch(`${API_URL}${url}`)) as any;\n return (response.data.tags || []).map((item: any) => ({\n ...item,\n value: String(item.id),\n }));\n}\n\nexport async function fetchLoadTags(name: string) {\n const response = (await superFetch(`${API_URL}/tags?name=${name}`)) as any;\n return (response.data.tags || []).map((tag: any) => ({\n ...tag,\n value: String(tag.label),\n }));\n}\n\nexport async function fetchManufacturers(url: string) {\n const response = (await superFetch(`${API_URL}${url}`)) as any;\n return (response.data.manufacturers || []).map((item: any) => ({\n ...item,\n value: String(item.id),\n }));\n}\n\nexport async function fetchOrgs(url: string) {\n const response = (await superFetch(`${API_URL}${url}`)) as any;\n return (response.data.orgs || []).map((item: any) => ({\n ...item,\n label: item.name,\n value: String(item.slug),\n id: String(item.slug),\n }));\n}\n\nexport async function fetchCalendars(orgID: string) {\n const response = (await superFetch(\n `${API_URL}/orgs/external-calendars?org_id=${orgID}`,\n )) as any;\n return (response.data || []).map((item: any) => ({\n ...item,\n value: String(item.id),\n }));\n}\n\nexport async function fetchLoadManufacturers(name: string) {\n const response = (await superFetch(\n `${API_URL}/manufacturers?name=${name}`,\n )) as any;\n return (response.data.manufacturers || []).map((item: any) => ({\n ...item,\n value: String(item.id),\n }));\n}\n\nexport function transformEquipmentData(values: any, state: any) {\n return {\n ...values,\n schedule_increment: Number(values.schedule_increment),\n min_booking_duration: Number(values.min_booking_duration),\n max_booking_duration: Number(values.max_booking_duration),\n default_checkin_time: Number(values.default_checkin_time),\n default_checkout_time: Number(values.default_checkout_time),\n day_start_time:\n values.day_start_time_period === \"AM\"\n ? Number(values.day_start_time)\n : Number(values.day_start_time) + 1200,\n day_end_time:\n values.day_end_time_period === \"AM\"\n ? Number(values.day_end_time)\n : Number(values.day_end_time) + 1200,\n external_price_per_hour: Number(values.prices[1].price),\n tags: values.tags?.map((tag: any) => tag.value) || [],\n manufacturer_id: Number((values.manufacturer as any).value),\n manufacturer_name: (values.manufacturer as any).label,\n prices: values.prices.reduce(\n (acc: EquipmentPriceSubmit, item: EquipmentPrice) => ({\n ...acc,\n [item.name]: Number(item.price),\n }),\n { Affiliate: 10 },\n ),\n state,\n google_calendar_id: (values.google_calendar as any)?.value,\n google_calendar_name: (values.google_calendar as any)?.label,\n training_ids: values.training_ids,\n requires_subscription: values.requires_subscription === \"true\",\n price_included_in_subscription: values.price_included_in_subscription,\n working_hours: workingHoursToWeekdays(\n values.working_hours.map((item: any) => ({\n ...item,\n start_time: Number(item.start_time),\n end_time: Number(item.end_time),\n })),\n ),\n onsite_trainers: values.onsite_trainers?.map(\n (staff: Staff) => staff.user_id,\n ),\n buffer_time_between_bookings:\n Number(values.buffer_time_between_bookings) * 60,\n };\n}\n\nexport async function fetchOrgMembers(url: string) {\n const response = (await superFetch(`${API_URL}${url}`)) as any;\n return (response.data || []).map((item: any) => ({\n user_id: item.id,\n profile_pic_url: item.profile_pic_url,\n first_name: item.first_name,\n last_name: item.last_name,\n role: item.role,\n hourly_rate: item.hourly_rate,\n }));\n}\n\nexport async function updateHourlyRateForMembers(url: string, data: any) {\n const response = await superFetch(`${API_URL}${url}`, {\n method: \"PUT\",\n body: JSON.stringify(data),\n });\n return response;\n}\n","import { useEffect, useState } from \"react\";\n\nexport default function useOnScreen(ref: any) {\n const [isIntersecting, setIntersecting] = useState(false);\n\n useEffect(() => {\n if (!ref.current) return;\n\n const observer = new IntersectionObserver(([entry]: any) =>\n setIntersecting(entry.isIntersecting),\n );\n\n observer.observe(ref.current);\n // Remove the observer as soon as the component is unmounted\n return () => {\n observer.disconnect();\n };\n }, [ref]);\n\n return isIntersecting;\n}\n","import { getOnboardingFlowParams } from \"@/lib/utils\";\nimport { NobfType } from \"@/src/models/common.model\";\n\nconst pagePath = {\n users: {\n uploadInsurance(\n orgId: number,\n backUrl?: string,\n type?: NobfType,\n requiredSubscription?: boolean,\n ) {\n const params = getOnboardingFlowParams({\n type,\n orgId,\n backUrl,\n requiredSubscription,\n });\n return `/user/upload/insurance?${params}`;\n },\n uploadTrainings(\n orgId: number,\n backUrl?: string,\n type?: NobfType,\n requiredSubscription?: boolean,\n ) {\n const params = getOnboardingFlowParams({\n type,\n orgId,\n backUrl,\n requiredSubscription,\n });\n return `/user/upload/trainings?${params}`;\n },\n },\n\n error: {\n unSupported(isLab?: boolean) {\n return isLab ? \"/hosting/unsupported\" : \"/unsupported\";\n },\n },\n lab: {\n account() {\n return \"/hosting/account\";\n },\n scientific_process_list() {\n return \"/hosting/scientific-process\";\n },\n },\n services: {\n item(slug: string) {\n return `/services/${slug}`;\n },\n },\n\n company: {\n invalidInvite() {\n return \"/invalid-invite\";\n },\n },\n organizations: {\n info(orgId?: number, orgSlug?: string, slug?: string) {\n if (slug) return `/organizations/${slug}`;\n return `/organizations/${orgSlug}-${orgId}`;\n },\n contracts(\n contractId: number,\n orgId: number,\n type: NobfType,\n backUrl?: string,\n requiredSubscription?: boolean,\n ) {\n const params = getOnboardingFlowParams({\n type,\n backUrl,\n requiredSubscription,\n orgId,\n });\n return `/contracts/${contractId}?${params}`;\n },\n buySubscription(\n orgId: number,\n orgSlug: string,\n backUrl?: string,\n type?: NobfType,\n ) {\n const params = getOnboardingFlowParams({\n type,\n backUrl,\n });\n return `/organizations/${orgSlug}-${orgId}/buy-subscription?${params}`;\n },\n access(\n slug: string,\n backUrl?: string,\n type?: NobfType,\n requiredSubscription?: boolean,\n ) {\n const params = getOnboardingFlowParams({\n type,\n backUrl,\n requiredSubscription,\n });\n return `/organizations/${slug}/access-request?${params}`;\n },\n },\n booking: {\n detail(id: string) {\n return `/bookings/${id}`;\n },\n },\n};\n\nexport default pagePath;\n","import useSWR, { SWRConfiguration } from \"swr\";\n\nimport { superFetchData } from \"@/lib/utils\";\nimport { NobfType } from \"@/src/models/common.model\";\n\nconst userService = {\n useInfo: () => {\n return useSWR(`/users/info`, superFetchData);\n },\n useLabProfile: (orgId: number, type?: NobfType) => {\n const preferBookingType = (() => {\n if (type === \"scientific_process\") {\n return \"equipment\";\n }\n if (!type || [\"organization\", \"banner\"].includes(type)) {\n return \"auto\";\n }\n return type;\n })();\n const url = `/users/lab-profile?lab_id=${orgId}&prefer_booking_type=${preferBookingType}`;\n return useSWR(orgId ? url : null, superFetchData);\n },\n useLabProfileSignedIn: (user: any, orgId: number, type?: NobfType) => {\n const preferBookingType = (() => {\n if (type === \"scientific_process\") {\n return \"equipment\";\n }\n if (!type || [\"organization\", \"banner\"].includes(type)) {\n return \"auto\";\n }\n return type;\n })();\n const url = `/users/lab-profile?lab_id=${orgId}&prefer_booking_type=${preferBookingType}`;\n return useSWR(orgId && user ? url : null, superFetchData);\n },\n fetchLabProfile: (orgId: number, type?: NobfType) => {\n const preferBookingType = (() => {\n if (type === \"scientific_process\") {\n return \"equipment\";\n }\n if (!type || [\"organization\", \"banner\"].includes(type)) {\n return \"auto\";\n }\n return type;\n })();\n const url = `/users/lab-profile?lab_id=${orgId}&prefer_booking_type=${preferBookingType}`;\n return superFetchData(url);\n },\n\n useCreateSubscription: (orgId: number) => {\n return useSWR(`/users/subscriptions?org_id=${orgId}`, superFetchData);\n },\n useSubscription: (user: any, orgId: number) => {\n return useSWR(\n user ? `/users/subscriptions?org_id=${orgId}` : \"\",\n superFetchData,\n );\n },\n useRequiredTrainings: (orgId: number) => {\n return useSWR(\n `/users/lab-required-trainings?lab_org_id=${orgId}`,\n superFetchData,\n );\n },\n useApprovals: (key: string | null, options?: SWRConfiguration) => {\n return useSWR(\n key === null ? null : key ? `/users/approvals${key}` : \"/users/approvals\",\n\n superFetchData,\n options,\n );\n },\n};\n\nexport default userService;\n"],"names":["NoResultFound","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsxs","div","className","jsx","Microscope","size","strokeWidth","__webpack_exports__","Z","text","param","span","cn","SearchEquipment","props","useRouter","search","setSearch","useState","filters","useEffect","applySearch","useCallback","debounce","setFilters","prev","value","form","onSubmit","e","preventDefault","Input","placeholder","onChange","target","Boolean","X","onClick","Search","fetchEquipments","url","response","superFetch","API_URL","concat","data","defaultFilters","tags","type","MultiValueRemove","jsx_runtime","components","MultiSelectFilter","loadOptions","inputValue","query","URLSearchParams","params","append","options","fetchFn","path","toString","defaultValue","Object","values","name","filter","item","map","label","AsyncSelect","defaultOptions","isMulti","reduce","acc","styles","control","baseStyles","isFocused","borderColor","height","backgroundColor","boxShadow","container","multiValue","border","borderRadius","padding","marginRight","marginLeft","fontFamily","fontWeight","multiValueLabel","color","fontSize","option","isDisabled","isSelected","cursor","borderBottom","background","menuList","zIndex","menuPortal","FilterPopover","open","setOpen","tempFilters","setTempFilters","clearFilters","manufacturers","labs","filterNum","keys","key","length","minPrice","maxPrice","Popover","onOpenChange","nextOpen","PopoverTrigger","asChild","Button","variant","aria-label","SlidersHorizontal","Badge","PopoverContent","h6","Separator","undefined","fetchTags","fetchManufacturers","fetchOrgs","ListingTypeSelect","Select","onValueChange","SelectTrigger","SelectValue","SelectContent","SelectItem","EquipmentTags","useSWR","Tags","slice","Toggle","pressed","tag","id","contentWrapper","useRef","sideScroll","element","distance","scrollLeft","current","ChevronLeft","ref","ChevronRight","HomeListings","loaded","setLoaded","user","useAuthStore","userType","getUserType","router","isReady","q","replace","pathname","shallow","timer","setTimeout","clearTimeout","isVisible","useOnScreen","setSize","isLoading","useSWRInfinite","pageIndex","previousPageData","String","manufacturer","orgSlug","listings","revalidateIfStale","isMobile","useIsMobile","isEmpty","isReachingEnd","pagination","total","isLoadingMore","loading","UserStatus","h2","Notifications","data-testid","ul","li","ListingCard","listing","slug","Loading","orgId","referrer_org_id","source","referrer_source","userLabProfile","userService","useLabProfileSignedIn","status","org","orgData","orgService","useById","subscriptionPlans","useSubscriptionPlans","isLabHasSubscriptionPlan","userStatus","labName","university","includes","href","pagePath","organizations","access","info","users","uploadInsurance","uploadTrainings","buySubscription","description","ButtonLink","Banner","footer","price","price_unit","window","getHostingUrl","org_slug","org_id","university_name","org_name","svg","xmlns","width","viewBox","fill","circle","cx","cy","r","toFixed","listTypeColor","LISTING_TYPE","EQUIPMENT","SERVICE","SCIENTIFIC_PROCESS","Link","getListingPath","ImageResponsive","src","addParams","thumbnail","alt","requires_subscription","price_included_in_subscription","EquipmentAndScientificTag","user_subscribed","getListingTypeName","TagSection","ServicePricing","Fragment","EquipmentAndScientificPricing","fetchCreateEquipment","method","body","JSON","stringify","fetchUpdateEquipment","fetchLoadTags","orgs","fetchCalendars","orgID","fetchLoadManufacturers","transformEquipmentData","state","schedule_increment","Number","min_booking_duration","max_booking_duration","default_checkin_time","default_checkout_time","day_start_time","day_start_time_period","day_end_time","day_end_time_period","external_price_per_hour","prices","manufacturer_id","manufacturer_name","Affiliate","google_calendar_id","google_calendar","_values_google_calendar","google_calendar_name","_values_google_calendar1","training_ids","working_hours","workingHoursToWeekdays","start_time","end_time","onsite_trainers","staff","user_id","buffer_time_between_bookings","fetchOrgMembers","profile_pic_url","first_name","last_name","role","hourly_rate","updateHourlyRateForMembers","isIntersecting","setIntersecting","observer","IntersectionObserver","entry","observe","disconnect","backUrl","requiredSubscription","getOnboardingFlowParams","error","unSupported","isLab","lab","account","scientific_process_list","services","company","invalidInvite","contracts","contractId","booking","detail","useInfo","superFetchData","useLabProfile","preferBookingType","fetchLabProfile","useCreateSubscription","useSubscription","useRequiredTrainings","useApprovals"],"sourceRoot":""}