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/icons/navigation.js","webpack://_N_E/./node_modules/lucide-react/dist/esm/icons/search.js","webpack://_N_E/./node_modules/lucide-react/dist/esm/icons/star.js","webpack://_N_E/./components/common/no-result-found.tsx","webpack://_N_E/./components/common/notfound.tsx","webpack://_N_E/./components/common/profile-review-section.tsx","webpack://_N_E/./components/common/user-avatar.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/v2/listing-card.tsx","webpack://_N_E/./components/org/profile/listing-tags.tsx","webpack://_N_E/./components/org/profile/org-profile-general-info-dialog.tsx","webpack://_N_E/./components/org/profile/org-profile-hero.tsx","webpack://_N_E/./components/org/profile/contact-information.tsx","webpack://_N_E/./components/org/profile/listings.tsx","webpack://_N_E/./components/org/profile/members.tsx","webpack://_N_E/./components/org/profile/subscription-panel.tsx","webpack://_N_E/./components/org/profile/org-profile.tsx","webpack://_N_E/./components/org/profile/working-hours.tsx","webpack://_N_E/./components/tiptap-render.tsx","webpack://_N_E/./components/ui/form/rating.tsx","webpack://_N_E/./lib/is-mobile.ts","webpack://_N_E/./lib/use-onscreen.ts","webpack://_N_E/./node_modules/classnames/index.js","webpack://_N_E/./node_modules/lodash-es/now.js","webpack://_N_E/./node_modules/lodash-es/_trimmedEndIndex.js","webpack://_N_E/./node_modules/lodash-es/_baseTrim.js","webpack://_N_E/./node_modules/lodash-es/toNumber.js","webpack://_N_E/./node_modules/lodash-es/debounce.js","webpack://_N_E/"],"sourcesContent":["/**\n * @license lucide-react v0.368.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst FilePen = createLucideIcon(\"FilePen\", [\n [\"path\", { d: \"M12 22h6a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v10\", key: \"x7tsz2\" }],\n [\"path\", { d: \"M14 2v4a2 2 0 0 0 2 2h4\", key: \"tnqrlb\" }],\n [\"path\", { d: \"M10.4 12.6a2 2 0 1 1 3 3L8 21l-4 1 1-4Z\", key: \"o3xyfb\" }]\n]);\n\nexport { FilePen as default };\n//# sourceMappingURL=file-pen.js.map\n","/**\n * @license lucide-react v0.368.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Navigation = createLucideIcon(\"Navigation\", [\n [\"polygon\", { points: \"3 11 22 2 13 21 11 13 3 11\", key: \"1ltx0t\" }]\n]);\n\nexport { Navigation as default };\n//# sourceMappingURL=navigation.js.map\n","/**\n * @license lucide-react v0.368.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Search = createLucideIcon(\"Search\", [\n [\"circle\", { cx: \"11\", cy: \"11\", r: \"8\", key: \"4ej97u\" }],\n [\"path\", { d: \"m21 21-4.3-4.3\", key: \"1qie3q\" }]\n]);\n\nexport { Search as default };\n//# sourceMappingURL=search.js.map\n","/**\n * @license lucide-react v0.368.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Star = createLucideIcon(\"Star\", [\n [\n \"polygon\",\n {\n points: \"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2\",\n key: \"8f66p6\"\n }\n ]\n]);\n\nexport { Star as default };\n//# sourceMappingURL=star.js.map\n","import { Microscope } from \"lucide-react\";\n\nexport const NoResultFound = () => (\n
\n
\n \n
\n
No results found
\n
\n);\n","import { FlaskConical } from \"lucide-react\";\n\nimport { ButtonLink } from \"@/components/ui/button\";\n\nexport function NotFound() {\n return (\n
\n
\n \n
\n
\n

\n Looks Like You’ve Discovered Uncharted Territory!\n

\n
\n In the quest for knowledge, sometimes we find ourselves in unknown\n places. The page you’re looking for might have been moved, renamed, or\n is temporarily unavailable.\n
\n
\n \n Return Home\n \n
\n
\n
\n );\n}\n","import { Star } from \"lucide-react\";\nimport Link from \"next/link\";\n\nimport CommonSection from \"@/components/common/common-section\";\nimport { RATING_NAME } from \"@/components/common/constants\";\nimport {\n RatingBarComponent,\n RatingStarsComponent,\n} from \"@/components/ui/form/rating\";\n\nexport function ProfileReviewSection({ review_summary, viewAllLink }: any) {\n const ProfileReviewContent = () => {\n if (review_summary?.total_reviews > 0) {\n return (\n <>\n
Average Rating
\n
\n {review_summary?.avg_rating || 0}/5\n \n
\n
\n {(review_summary?.items || []).map((item: any) => (\n
\n
\n {RATING_NAME[item.code]}\n
\n
\n
\n {item.rating}\n \n
\n \n
\n
\n ))}\n
\n \n );\n }\n\n return (\n
\n No reviews yet\n
\n );\n };\n return (\n
\n
\n }\n isShowButton={review_summary?.total_reviews > 0}\n customComponent={\n \n See All\n \n }\n />\n
\n
\n );\n}\n","import { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\";\nimport { cn } from \"@/lib/utils\";\n\ninterface Props {\n url: string | undefined;\n name: string;\n className?: string;\n isPdf?: boolean;\n}\n\nfunction getInitials(name: string) {\n if (!name) return \"\";\n try {\n return name\n .split(\" \")\n .slice(0, 1)\n .map((word) => word[0].toUpperCase())\n .join(\"\");\n } catch (error) {\n return \"\";\n }\n}\n\nexport function UserAvatar({ url, name, className, isPdf }: Props) {\n return (\n \n {url && (\n \n )}\n\n \n {getInitials(name)}\n \n \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 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 { useRef } from \"react\";\n\nimport { LISTING_TYPE_NAME } from \"@/components/common/constants\";\nimport { Filters } from \"@/components/home-listings/interface\";\nimport { Toggle } from \"@/components/ui/toggle\";\nimport { cn } from \"@/lib/utils\";\n\ninterface Props {\n tags: string[];\n filters: Filters;\n setFilters: any;\n summary?: any;\n}\n\nexport function OrgListingTags({ tags, filters, setFilters, summary }: Props) {\n function handleToggleTag(type: string) {\n if (filters.type === type) {\n setFilters({ ...filters, type: undefined });\n } else {\n setFilters({ ...filters, type });\n }\n }\n\n const Tags = tags.map((tag: any) => (\n handleToggleTag(tag)}\n aria-label={tag}\n >\n {LISTING_TYPE_NAME[tag]}\n\n {summary && (\n \n {summary?.[tag] || 0}\n \n )}\n \n ));\n\n const contentWrapper = useRef(null);\n\n return (\n
\n \n {Tags}\n
\n \n );\n}\n","import { zodResolver } from \"@hookform/resolvers/zod\";\nimport React from \"react\";\nimport { useForm } from \"react-hook-form\";\nimport * as z from \"zod\";\n\nimport { fetchUpdateOrg } from \"@/components/lab-settings/api\";\nimport { STATES } from \"@/components/setup/use-states\";\nimport { Button } from \"@/components/ui/button\";\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n} from \"@/components/ui/dialog\";\nimport {\n Form,\n FormItemField,\n FormItemSelect,\n FormItemTextEditor,\n} from \"@/components/ui/form\";\nimport { ScrollArea } from \"@/components/ui/scroll-area\";\nimport { handleError } from \"@/lib/utils\";\n\ntype Props = {\n onEsc: () => void;\n mutate: () => void;\n org: any;\n};\n\nconst formSchema = z.object({\n name: z.string().min(1, \"Company name is required.\"),\n description: z.any(),\n state_of_incorporation: z.string().min(1, \"Please select state.\"),\n corporation_type: z.string().min(1, \"Please select corporation type.\"),\n});\n\nexport function OrgProfileGeneralInfoDialog({ onEsc, mutate, org }: Props) {\n const form = useForm>({\n resolver: zodResolver(formSchema),\n defaultValues: {\n name: org?.name || \"\",\n description: org?.description || \"\",\n state_of_incorporation: org?.state_of_incorporation || \"\",\n corporation_type: org?.corporation_type || \"\",\n },\n });\n\n async function onSubmitForm(values: any) {\n const data = {\n name: values.name,\n description: values.description,\n state_of_incorporation: values.state_of_incorporation,\n corporation_type: values.corporation_type,\n } as any;\n\n try {\n await fetchUpdateOrg(data);\n mutate();\n onEsc();\n } catch (error) {\n handleError(error);\n }\n }\n\n return (\n \n \n \n
\n \n \n Update General Information\n \n \n \n ({\n label: state.name,\n value: state.name,\n }))}\n />\n \n \n \n \n \n \n \n
\n \n
\n
\n
\n );\n}\n","import { FileEdit } from \"lucide-react\";\nimport { useRef } from \"react\";\n\nimport { ImageResponsive } from \"@/components/image\";\nimport { fetchUpdateOrg } from \"@/components/lab-settings/api\";\nimport { Button } from \"@/components/ui/button\";\nimport { uploadImageBatch } from \"@/components/ui/form/upload\";\nimport { addParams, handleError } from \"@/lib/utils\";\n\nexport function OrgProfileHero({ org, isEdit, mutate }: any) {\n const inputFileProfile = useRef(null);\n async function handleUploadProfile(event: any) {\n try {\n event.stopPropagation();\n event.preventDefault();\n let file = event.target.files[0];\n const {\n data: { urls },\n } = await uploadImageBatch([file]);\n await fetchUpdateOrg({ logo_url: Object.values(urls)[0] });\n mutate();\n } catch (error) {\n handleError(error);\n }\n }\n\n const inputFileCover = useRef(null);\n async function handleUploadCover(event: any) {\n try {\n event.stopPropagation();\n event.preventDefault();\n let file = event.target.files[0];\n const {\n data: { urls },\n } = await uploadImageBatch([file]);\n await fetchUpdateOrg({ banner_url: Object.values(urls)[0] });\n mutate();\n } catch (error) {\n handleError(error);\n }\n }\n\n return (\n
\n
\n \n {isEdit && (\n (inputFileCover.current as any).click()}\n aria-label=\"Edit cover photo\"\n >\n \n {\n e.currentTarget.value = \"\";\n }}\n />\n \n )}\n
\n
\n
\n \n {isEdit && (\n (inputFileProfile.current as any).click()}\n aria-label=\"Edit profile photo\"\n >\n \n {\n e.currentTarget.value = \"\";\n }}\n />\n \n )}\n
\n
\n
\n );\n}\n","import { GoogleMap, Marker, useJsApiLoader } from \"@react-google-maps/api\";\nimport { get } from \"lodash-es\";\nimport { MessageSquare, Navigation } from \"lucide-react\";\nimport Link from \"next/link\";\nimport { useCallback, useEffect, useMemo, useState } from \"react\";\n\nimport { ChatUnavailableButton } from \"@/components/common/unavailable-buttons\";\nimport { buttonVariants } from \"@/components/ui/button\";\nimport { cn, getHostingUrlByUser } from \"@/lib/utils\";\nimport useAuthStore from \"@/stores/auth-store\";\n\nexport function ContactInformation({ org }: any) {\n const { user } = useAuthStore();\n const { isLoaded } = useJsApiLoader({\n id: \"google-map-script\",\n googleMapsApiKey: process.env.NEXT_PUBLIC_GOOGLE_MAP_API_KEY || \"\",\n });\n\n const [map, setMap] = useState(null);\n\n const center = useMemo(\n () => ({\n lat: Number(org?.location?.split(\",\")[0] || undefined),\n lng: Number(org?.location?.split(\",\")[1] || undefined),\n }),\n [org?.location],\n );\n\n const onLoad = useCallback(\n function callback(map: any) {\n const bounds = new window.google.maps.LatLngBounds(center);\n map.fitBounds(bounds);\n setMap(map);\n },\n [center],\n );\n\n useEffect(() => {\n setTimeout(() => map && (map as any).setZoom(12), 500);\n }, [map]);\n\n const onUnmount = useCallback(function callback(map: any) {\n setMap(null);\n }, []);\n\n const mapParams = useMemo(() => {\n const params = {\n api: 1,\n map_action: \"map\",\n destination: `${center.lat},${center.lng}`,\n } as any;\n return encodeURI(\n Object.keys(params)\n .map((k) => `${k}=${params[k]}`)\n .join(\"&\"),\n );\n }, [center]);\n return (\n <>\n
\n
\n {org?.university?.name}, {get(org, \"city\")}, {get(org, \"state\")}{\" \"}\n {get(org, \"zip\")}, USA | {(org.distance || 0).toFixed(1)} miles\n
\n
\n {isLoaded && center.lat && center.lng ? (\n \n \n \n ) : (\n <>\n )}\n
\n
\n
\n \n Get Directions \n \n {user?.org?.id && org.id === user?.org?.id ? (\n \n ) : (\n \n Send Message \n \n )}\n
\n
\n
\n \n );\n}\n","import { useEffect, useRef, useState } from \"react\";\nimport React from \"react\";\nimport useSWRInfinite from \"swr/infinite\";\n\nimport CommonSection from \"@/components/common/common-section\";\nimport { NoResultFound } from \"@/components/common/no-result-found\";\nimport { SearchEquipment } from \"@/components/home-header\";\nimport { ListingCard } from \"@/components/home-listings/v2/listing-card\";\nimport { Loading } from \"@/components/loading\";\nimport { OrgListingTags } from \"@/components/org/profile/listing-tags\";\nimport useIsMobile from \"@/lib/is-mobile\";\nimport useOnScreen from \"@/lib/use-onscreen\";\nimport { superFetchData } from \"@/lib/utils\";\n\nconst PAGE_SIZE = 200;\n\nexport function LabListings({ org, userType }: any) {\n const [filters, setFilters] = useState({ type: \"all\" });\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\n params.append(\"org_slug\", org.slug);\n\n if (filters.type && filters.type !== \"all\") {\n params.append(\"type\", filters.type);\n }\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\n // pagination\n params.append(\"page\", String(pageIndex));\n params.append(\"limit\", String(PAGE_SIZE));\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, superFetchData, {\n revalidateIfStale: true,\n revalidateFirstPage: false,\n });\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 const isMobile = useIsMobile();\n\n const ListingContent = () => (\n <>\n
\n \n
\n
\n \n
\n {isEmpty && !loading && (\n
\n \n
\n )}\n
\n \n {data?.map(({ listings }) =>\n listings.map((listing: any) => (\n
  • \n \n
  • \n )),\n )}\n \n {loading && }\n
    \n
    \n \n );\n return (\n
    \n } />\n
    \n );\n}\n","import Link from \"next/link\";\n\nimport CommonSection from \"@/components/common/common-section\";\nimport { UserAvatar } from \"@/components/common/user-avatar\";\nimport { ScrollArea, ScrollBar } from \"@/components/ui/scroll-area\";\nimport { cn } from \"@/lib/utils\";\n\nexport function LabProfileMembers({ org, isEdit }: any) {\n const members = org?.users || [];\n const MemberContent = () => (\n \n
    \n {members.slice(0, 4).map((member: any) => (\n \n \n
    \n
    \n {member.first_name} {`${member.last_name}`}\n
    \n
    {member.role}
    \n {!!member.email && (\n
    \n {member.email}\n
    \n )}\n
    \n
    \n ))}\n
    \n \n \n );\n return (\n
    \n }\n isShowButton={isEdit}\n customComponent={\n \n See All\n \n }\n />\n
    \n );\n}\n","import classNames from \"classnames\";\nimport { ComponentProps, ReactNode, useMemo } from \"react\";\n\nimport { ButtonLink } from \"@/components/ui/button\";\nimport { getHostingUrl, getUserType } from \"@/lib/utils\";\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 SubscriptionPanel({ org }: any) {\n const { user } = useAuthStore();\n const userType = getUserType(user);\n\n const backUrl = useMemo(\n () =>\n typeof window !== \"undefined\" ? window.location.pathname : undefined,\n [],\n );\n\n const { data: subscriptionPlans } = orgService.useSubscriptionPlans(org.id);\n\n const { data: userLabProfile } = userService.useLabProfileSignedIn(\n user,\n org.id,\n );\n\n const { data: contract, isLoading: isContractLoading } =\n orgService.useDefaultContract(user, org.id);\n\n const { data: userSubscription } = userService.useSubscription(user, org.id);\n\n const isLabHasSubscriptionPlan = subscriptionPlans?.length;\n const labName = `${org?.name}, ${org?.university?.name}`;\n const approvalStatus = userLabProfile?.status;\n\n if (!user) {\n return (\n \n );\n }\n\n if (!isContractLoading && !contract) {\n return (\n \n );\n }\n\n if (\n [\n \"new\",\n \"missing_insurance\",\n \"missing_contract\",\n \"missing_subscription\",\n \"missing_training_certificates\",\n \"declined\",\n \"verified\",\n \"pending\",\n ].includes(approvalStatus)\n ) {\n const href = (() => {\n switch (approvalStatus) {\n case \"new\":\n return pagePath.organizations.access(\n `${org?.slug}-${org?.id}`,\n pagePath.organizations.info(org?.id, org?.slug),\n contract?.contract_type,\n isLabHasSubscriptionPlan,\n );\n case \"missing_contract\":\n return pagePath.organizations.contracts(\n userLabProfile.required_contract_id,\n org.id,\n userLabProfile.registration_type,\n window.location.pathname + window.location.search,\n false,\n );\n case \"missing_insurance\":\n return pagePath.users.uploadInsurance(\n org.id,\n pagePath.organizations.info(org?.id, org?.slug),\n \"organization\",\n isLabHasSubscriptionPlan,\n );\n case \"missing_training_certificates\":\n return pagePath.users.uploadTrainings(\n org?.id,\n pagePath.organizations.info(org?.id, org?.slug),\n \"organization\",\n isLabHasSubscriptionPlan,\n );\n case \"missing_subscription\":\n return pagePath.organizations.buySubscription(\n org.id,\n org.slug,\n pagePath.organizations.info(org?.id, org?.slug),\n );\n case \"declined\":\n return pagePath.organizations.access(\n `${org?.slug}-${org?.id}`,\n pagePath.organizations.info(org?.id, org?.slug),\n \"organization\",\n isLabHasSubscriptionPlan,\n );\n default:\n return \"default\";\n }\n })();\n\n if (approvalStatus == \"declined\") {\n return (\n \n );\n }\n if (approvalStatus == \"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\n return (\n \n );\n }\n\n if (approvalStatus == \"verified\") {\n const activeSubscription = userSubscription?.[0];\n const title = isLabHasSubscriptionPlan\n ? \"Subscribed\"\n : \"Account Verified\";\n const description = isLabHasSubscriptionPlan\n ? `You are subscribed to ${labName}’s ${activeSubscription?.subscription_plan_name}`\n : `Your account is verified by the ${labName} Lab.`;\n\n return (\n \n );\n }\n\n if (isLabHasSubscriptionPlan && approvalStatus != \"missing_contract\") {\n return (\n \n );\n }\n\n return (\n \n );\n }\n}\n\ninterface SubscriptionPanelContentProps {\n title: {\n text: string;\n className?: string;\n };\n description?: {\n text: string;\n className?: string;\n };\n className?: string;\n buttons?: (Omit, \"href\"> & {\n title?: string;\n href?: string;\n button?: ReactNode; //render other button component\n })[];\n}\n\nexport const SubscriptionPanelContent = ({\n title,\n description,\n className,\n buttons,\n}: SubscriptionPanelContentProps) => {\n return (\n \n
    \n
    \n {title.text}\n
    \n {description && (\n
    \n {description.text}\n
    \n )}\n
    \n {buttons && (\n
    \n {buttons?.map(\n ({ title, button, ...buttonLinkProps }, buttonIndex) =>\n button || (\n \n {title}\n \n ),\n )}\n
    \n )}\n \n );\n};\n","import { FileEdit, Link } from \"lucide-react\";\nimport { useRouter } from \"next/router\";\nimport { useEffect, useState } from \"react\";\nimport useSWR from \"swr\";\n\nimport CommonSection from \"@/components/common/common-section\";\nimport { NotFound } from \"@/components/common/notfound\";\nimport { ProfileReviewSection } from \"@/components/common/profile-review-section\";\nimport { UserStatus } from \"@/components/home-listings/user-status\";\nimport { Loading } from \"@/components/loading\";\nimport { ContactInformation } from \"@/components/org/profile/contact-information\";\nimport { LabListings } from \"@/components/org/profile/listings\";\nimport { LabProfileMembers } from \"@/components/org/profile/members\";\nimport { OrgContactDialog } from \"@/components/org/profile/org-contact-dialog\";\nimport { OrgProfileGeneralInfoDialog } from \"@/components/org/profile/org-profile-general-info-dialog\";\nimport { OrgProfileHero } from \"@/components/org/profile/org-profile-hero\";\nimport { SubscriptionPanel } from \"@/components/org/profile/subscription-panel\";\nimport { OrgWorkingHours } from \"@/components/org/profile/working-hours\";\nimport { TiptapRender } from \"@/components/tiptap-render\";\nimport {\n Accordion,\n AccordionContent,\n AccordionItem,\n AccordionTriggerDefault,\n} from \"@/components/ui/accordion\";\nimport { Button } from \"@/components/ui/button\";\nimport { toast } from \"@/components/ui/use-toast\";\nimport {\n cn,\n getHostingUrl,\n getOrgSlug,\n getUserType,\n superFetchData,\n} from \"@/lib/utils\";\nimport useAuthStore from \"@/stores/auth-store\";\n\nexport function OrgProfile({ data, isEdit }: any) {\n const [openEditProfile, setOpenEditProfile] = useState(false);\n const [openContactInfo, setOpenContactInfo] = useState(false);\n const [openLabRule, setOpenLabRule] = useState([]);\n const router = useRouter();\n const { user } = useAuthStore();\n const userType = getUserType(user);\n\n const {\n data: orgInfo,\n isLoading,\n mutate,\n } = useSWR(data ? `/orgs/${data?.slug}/info` : \"/orgs/info\", superFetchData, {\n ...([data ? { fallbackData: { data: data } } : []] as any),\n });\n\n const org = orgInfo?.org || orgInfo;\n\n const { data: trainings } = useSWR(\n data?.slug ? `/orgs/${data.slug}/trainings` : null,\n superFetchData,\n );\n\n useEffect(() => {\n const hash = router.asPath.split(\"#\")[1];\n if (hash) {\n if (hash === \"rules\") {\n setOpenLabRule([\"a_lab_rules\"]);\n }\n const element = document.getElementById(hash);\n if (element) {\n element.scrollIntoView({ behavior: \"smooth\" });\n }\n }\n }, [router.asPath, org]);\n\n if (isLoading) {\n return (\n
    \n \n
    \n );\n }\n\n if (!org) {\n return ;\n }\n const isShowUserStatus = user?.referrer_org_id === org?.id;\n\n return (\n <>\n {isShowUserStatus && }\n
    \n
    \n
    \n
    \n

    Organization

    {\" \"}\n {\n navigator.clipboard.writeText(\n `${process.env.NEXT_PUBLIC_SITE_URL}/organizations/${getOrgSlug(org)}`,\n );\n toast({\n description: \"Link copied to clipboard\",\n duration: 2000,\n });\n }}\n >\n \n \n
    \n {/* \n \n */}\n
    \n\n \n\n
    \n \n
    \n
    \n

    {org.name}

    \n {isEdit && (\n setOpenEditProfile(true)}\n aria-label=\"Edit organization\"\n >\n \n \n )}\n
    \n
    \n \n
    \n
    \n
    \n\n \n \n
    \n
    \n \n {Boolean(\n !user ||\n (getUserType(user) === \"company\" && user?.org?.id !== org?.id),\n ) && }\n\n {org.faqs && (\n
    \n \n \n \n
    FAQs
    \n
    \n \n
    \n \n
    \n
    \n
    \n
    \n
    \n )}\n {org.lab_rules && (\n
    \n {\n setOpenLabRule(value === openLabRule ? [\"\"] : value);\n }}\n type=\"multiple\"\n className=\"w-full\"\n >\n \n \n
    Lab Rules
    \n
    \n \n
    \n \n
    \n
    \n
    \n \n
    \n )}\n {org.access_guidelines && (\n
    \n \n \n \n
    \n Access Guidelines\n
    \n
    \n \n
    \n \n
    \n
    \n
    \n
    \n
    \n )}\n\n {trainings?.length > 0 && (\n \n \n \n
    Trainings
    \n
    \n \n \n \n
    \n
    \n )}\n\n
    \n
    \n \n
    \n\n
    \n \n \n
    \n }\n textHeader=\"Hours\"\n />\n
    \n \n\n
    \n setOpenContactInfo(true)}\n textHeader=\"Contact Information\"\n isShowButton={isEdit}\n ariaLabel=\"Edit contact information\"\n sizeIconEdit={28}\n content={}\n />\n
    \n \n
    \n \n
    \n\n {openEditProfile && (\n setOpenEditProfile(false)}\n org={org}\n mutate={mutate}\n />\n )}\n {openContactInfo && (\n setOpenContactInfo(false)}\n org={org}\n mutate={mutate}\n />\n )}\n \n );\n}\n","import { WORKING_DAYS } from \"@/components/common/constants\";\nimport { Badge } from \"@/components/ui/badge\";\nimport { cn } from \"@/lib/utils\";\nimport dayjs from \"@/packages/dayjs\";\n\nfunction convertTimeToText(timeValue: number) {\n if (timeValue === 2400 || timeValue === 0) {\n return \"12:00 AM\";\n }\n\n let hour = Math.floor(timeValue / 100);\n let minute = timeValue % 100;\n\n let period = hour < 12 ? \"AM\" : \"PM\";\n\n if (hour > 12) {\n hour -= 12;\n } else if (hour === 0) {\n hour = 12;\n }\n\n return `${hour}:${minute.toString().padStart(2, \"0\")} ${period}`;\n}\n\nexport function OrgWorkingHours({ working_hours, timezone, className }: any) {\n if (!working_hours || !timezone) {\n return null;\n }\n\n return (\n
    \n {WORKING_DAYS.map((day: string, index: number) => {\n const working_day = working_hours[day];\n 1;\n const isToday = dayjs().tz(timezone).day() - 1 === index;\n const openNow =\n isToday &&\n dayjs().tz(timezone).hour() >= working_day.start_time &&\n dayjs().tz(timezone).hour() <= working_day.end_time;\n\n return (\n \n \n {day}{\" \"}\n {openNow && (\n \n Open\n \n )}\n \n\n
    \n {working_day.open ? (\n \n {convertTimeToText(working_day.start_time)} -{\" \"}\n {convertTimeToText(working_day.end_time)}\n \n ) : (\n Closed\n )}\n
    \n
    \n );\n })}\n \n );\n}\n","import { generateHTML } from \"@tiptap/html\";\nimport { useMemo } from \"react\";\n\nimport { TIPTAP_EXTENSIONS } from \"@/lib/text\";\nimport { cn } from \"@/lib/utils\";\n\nexport function TiptapRender({ content, className }: any) {\n const contentHtml = useMemo(() => {\n if (!content) return \"\";\n return generateHTML(content, TIPTAP_EXTENSIONS);\n }, [content]);\n return (\n \n );\n}\n","import { Star } from \"lucide-react\";\n\nimport {\n FormControl,\n FormDescription,\n FormField,\n FormItem,\n FormItemFieldProps,\n FormLabel,\n FormMessage,\n} from \"@/components/ui/form\";\nimport { cn } from \"@/lib/utils\";\n\ninterface Props extends FormItemFieldProps {\n defaultValue?: string;\n required?: boolean;\n}\n\nexport function FormItemRating(props: Props) {\n return (\n (\n \n
    \n \n {props.label}\n {(props.required || props.rules?.required) && (\n *\n )}\n \n \n {props.desc}\n \n \n
    \n \n
    \n
    \n
    \n \n
    \n )}\n />\n );\n}\n\nexport function RatingStarsComponent({\n value = 0,\n onValueChange,\n size = 24,\n className,\n}: {\n value: number;\n onValueChange?: (value: number) => void;\n size?: number;\n className?: string;\n}) {\n const handleClick = (newRating: number) => {\n if (onValueChange) onValueChange(newRating);\n };\n\n const stars = Array(5)\n .fill(0)\n .map((_, index) => (\n handleClick(index + 1)}>\n {index < value ? (\n \n ) : (\n \n )}\n \n ));\n\n return
    {stars}
    ;\n}\n\nexport function RatingBarComponent({\n value = 0,\n onValueChange,\n size = 24,\n className,\n}: {\n value: number;\n onValueChange?: (value: number) => void;\n size?: number;\n className?: string;\n}) {\n const handleClick = (newRating: number) => {\n if (onValueChange) onValueChange(newRating);\n };\n\n const stars = Array(5)\n .fill(0)\n .map((_, index) => (\n handleClick(index + 1)}\n className={cn(\n \"h-[6px] grow\",\n index < value ? \"bg-emerald-400\" : \"bg-[#D9D9D9]\",\n )}\n />\n ));\n\n return
    {stars}
    ;\n}\n","import { useEffect, useState } from \"react\";\n\nconst useIsMobile = () => {\n const [isMobile, setIsMobile] = useState(false);\n\n useEffect(() => {\n const handleResize = () => {\n const currentIsMobile = window.innerWidth <= 768; // Adjust the threshold as needed\n setIsMobile(currentIsMobile);\n };\n\n // Initial check\n handleResize();\n\n // Listen for window resize events\n window.addEventListener(\"resize\", handleResize);\n\n // Clean up event listener\n return () => {\n window.removeEventListener(\"resize\", handleResize);\n };\n }, []);\n\n return isMobile;\n};\n\nexport default useIsMobile;\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","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","import root from './_root.js';\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nexport default now;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nexport default trimmedEndIndex;\n","import trimmedEndIndex from './_trimmedEndIndex.js';\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nexport default baseTrim;\n","import baseTrim from './_baseTrim.js';\nimport isObject from './isObject.js';\nimport isSymbol from './isSymbol.js';\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nexport default toNumber;\n","import isObject from './isObject.js';\nimport now from './now.js';\nimport toNumber from './toNumber.js';\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nexport default debounce;\n"],"names":["FilePen","_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__","Z","d","key","Navigation","points","Search","cx","cy","r","Star","NoResultFound","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsxs","div","className","jsx","Microscope","size","strokeWidth","NotFound","FlaskConical","h2","ButtonLink","href","ProfileReviewSection","param","review_summary","viewAllLink","CommonSection","textHeader","concat","Boolean","total_reviews","content","Fragment","span","avg_rating","RatingStarsComponent","value","items","map","RATING_NAME","item","code","rating","fill","RatingBarComponent","ProfileReviewContent","isShowButton","customComponent","Link","target","UserAvatar","url","name","isPdf","Avatar","cn","AvatarImage","src","alt","AvatarFallback","getInitials","split","slice","word","toUpperCase","join","error","__webpack_exports__","text","SearchEquipment","props","useRouter","search","setSearch","useState","filters","useEffect","applySearch","useCallback","debounce","setFilters","prev","form","onSubmit","e","preventDefault","Input","placeholder","onChange","X","onClick","ListingCard","listing","userType","footer","price","price_unit","window","open","getHostingUrl","org_slug","org_id","university_name","org_name","svg","xmlns","width","height","viewBox","circle","distance","toFixed","listTypeColor","type","LISTING_TYPE","EQUIPMENT","SERVICE","SCIENTIFIC_PROCESS","getListingPath","slug","ImageResponsive","addParams","thumbnail","requires_subscription","price_included_in_subscription","EquipmentAndScientificTag","user_subscribed","getListingTypeName","TagSection","description","ServicePricing","EquipmentAndScientificPricing","OrgListingTags","tags","summary","Tags","Toggle","pressed","tag","undefined","aria-label","LISTING_TYPE_NAME","contentWrapper","useRef","ref","formSchema","z","min","state_of_incorporation","corporation_type","OrgProfileGeneralInfoDialog","onEsc","mutate","org","useForm","resolver","zodResolver","defaultValues","onSubmitForm","values","data","fetchUpdateOrg","handleError","Dialog","defaultOpen","onOpenChange","DialogContent","ScrollArea","Form","handleSubmit","DialogHeader","DialogTitle","DialogDescription","FormItemField","control","label","FormItemSelect","options","STATES","state","FormItemTextEditor","inputProps","editorClassName","DialogFooter","Button","variant","OrgProfileHero","isEdit","inputFileProfile","handleUploadProfile","event","stopPropagation","file","files","urls","uploadImageBatch","logo_url","Object","inputFileCover","handleUploadCover","banner_url","current","click","FileEdit","input","id","style","display","currentTarget","img","ContactInformation","user","useAuthStore","isLoaded","useJsApiLoader","googleMapsApiKey","process","setMap","center","useMemo","lat","Number","location","lng","onLoad","bounds","google","maps","LatLngBounds","fitBounds","setTimeout","setZoom","onUnmount","mapParams","params","api","map_action","destination","encodeURI","keys","k","jsx_runtime","university","get","GoogleMap","mapContainerStyle","zoom","Marker","position","buttonVariants","ChatUnavailableButton","customClass","getHostingUrlByUser","MessageSquare","LabListings","isVisible","useOnScreen","setSize","isLoading","useSWRInfinite","pageIndex","previousPageData","URLSearchParams","append","filter","String","listings","toString","superFetchData","revalidateIfStale","revalidateFirstPage","isEmpty","length","isReachingEnd","pagination","total","isLoadingMore","loading","isMobile","useIsMobile","ul","li","Loading","ListingContent","LabProfileMembers","members","users","member","profile_pic_url","first_name","last_name","role","email","ScrollBar","orientation","MemberContent","SubscriptionPanel","getUserType","backUrl","pathname","subscriptionPlans","orgService","useSubscriptionPlans","userLabProfile","userService","useLabProfileSignedIn","contract","isContractLoading","useDefaultContract","userSubscription","useSubscription","isLabHasSubscriptionPlan","labName","approvalStatus","status","SubscriptionPanelContent","title","buttons","includes","pagePath","organizations","access","info","contract_type","contracts","required_contract_id","registration_type","uploadInsurance","uploadTrainings","buySubscription","activeSubscription","subscription_plan_name","classNames","buttonIndex","buttonLinkProps","button","OrgProfile","openEditProfile","setOpenEditProfile","openContactInfo","setOpenContactInfo","openLabRule","setOpenLabRule","router","orgInfo","useSWR","fallbackData","trainings","hash","asPath","element","document","getElementById","scrollIntoView","behavior","isShowUserStatus","referrer_org_id","UserStatus","navigator","clipboard","writeText","getOrgSlug","toast","duration","TiptapRender","faqs","Accordion","AccordionItem","AccordionTriggerDefault","AccordionContent","lab_rules","section","onValueChange","access_guidelines","collapsible","a","training","link","subject","ariaLabel","OrgWorkingHours","working_hours","timezone","sizeIconEdit","OrgContactDialog","convertTimeToText","timeValue","hour","Math","floor","period","minute","padStart","WORKING_DAYS","day","index","working_day","isToday","dayjs","tz","openNow","start_time","end_time","Badge","contentHtml","generateHTML","TIPTAP_EXTENSIONS","dangerouslySetInnerHTML","__html","FormItemRating","FormField","render","field","FormItem","FormLabel","labelClass","required","rules","FormDescription","desc","FormControl","FormMessage","handleClick","newRating","stars","Array","_","stroke","setIsMobile","handleResize","currentIsMobile","innerWidth","addEventListener","removeEventListener","isIntersecting","setIntersecting","observer","IntersectionObserver","entry","observe","disconnect","__WEBPACK_AMD_DEFINE_RESULT__","hasOwn","hasOwnProperty","classes","i","arguments","arg","appendClass","parseValue","isArray","apply","prototype","call","newClass","module","exports","default","lodash_es_now","_root","Date","now","reWhitespace","_trimmedEndIndex","string","test","charAt","reTrimStart","NAN","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","parseInt","lodash_es_toNumber","isSymbol","isObject","other","valueOf","replace","isBinary","nativeMax","max","nativeMin","lodash_es_debounce","func","wait","lastArgs","lastThis","maxWait","result","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","invokeFunc","time","args","thisArg","shouldInvoke","timeSinceLastCall","timeSinceLastInvoke","timerExpired","timeWaiting","trailingEdge","debounced","isInvoking","clearTimeout","cancel","flush"],"sourceRoot":""}