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nE,OAAE7F,CAAK,SAAEC,CAAO,MAAEC,CAAI,CAAEC,UAAQ,WAAEb,EAAY,EAAE,CAAmB,CAAnE,EACzB,MACE,WAACI,MAAAA,CAAIJ,UAAW,+BAAyC,OAAVA,aAC7C,UAACU,QAAAA,CAAMV,UAAU,6CAAqCU,IACtD,WAACA,QAAAA,CAAMV,UAAU,6DACf,UAACc,QAAAA,CAAMC,KAAK,WAAWf,UAAU,eAAeW,QAASA,EAASE,SAAU,GAAOA,EAASG,EAAEC,MAAM,CAACN,OAAO,EAAGC,KAAMA,IACrH,UAACR,MAAAA,CACCJ,UAAU,uYAOpB","sources":["webpack://_N_E/./app/components/base/Card.tsx","webpack://_N_E/./app/utils/cn.ts","webpack://_N_E/./app/create/_ui/FormCheckbox.tsx","webpack://_N_E/./app/create/_ui/FormDateTimeInput.tsx","webpack://_N_E/./app/create/_ui/FormDropdown.tsx","webpack://_N_E/./app/create/_ui/FormInput.tsx","webpack://_N_E/./app/create/_ui/FormNumberInput.tsx","webpack://_N_E/./app/create/_ui/FormSection.tsx","webpack://_N_E/./app/create/_ui/FormTextArea.tsx","webpack://_N_E/./app/create/_ui/FormToggle.tsx","webpack://_N_E/./app/create/_ui/SubmitButton.tsx","webpack://_N_E/./app/create/_ui/index.ts"],"sourcesContent":["'use client'\n\nimport { cn } from '../../utils/cn'\n\ninterface CardProps extends React.HTMLAttributes {\n children: React.ReactNode\n isSelected?: boolean\n isInteractive?: boolean\n}\n\nexport function Card({ children, className, isSelected = false, isInteractive = true, ...props }: CardProps) {\n return (\n \n {children}\n \n )\n}\n\nexport default Card\n","import { clsx, type ClassValue } from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\n/**\n * Merge multiple class names with Tailwind CSS classes\n * @param inputs Class names to merge\n * @returns Merged class names\n */\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n","'use client'\n\ninterface FormCheckboxProps {\n label: string\n checked: boolean\n name: string\n onChange: (checked: boolean) => void\n className?: string\n}\n\nexport function FormCheckbox({ label, checked, name, onChange, className = '' }: FormCheckboxProps) {\n return (\n \n )\n}\n","'use client'\n\ninterface FormDateTimeInputProps {\n label: string\n name: string\n value: string\n onChange: (e: React.ChangeEvent) => void\n required?: boolean\n error?: string\n className?: string\n // For Playwright testing\n testName?: string\n}\n\nexport function FormDateTimeInput({\n label,\n name,\n value,\n onChange,\n required = false,\n error,\n className = '',\n testName = '', // The original name for Playwright to find\n}: FormDateTimeInputProps) {\n return (\n
\n \n {/* Visible input for users */}\n \n {error &&

{error}

}\n
\n )\n}\n","'use client'\n\nimport { Listbox, ListboxButton, ListboxOption, ListboxOptions, Transition } from '@headlessui/react'\nimport { Fragment } from 'react'\n\ninterface FormDropdownProps {\n label: string\n value: string\n name: string\n options: string[]\n onChange: (value: string) => void\n}\n\nexport function FormDropdown({ label, value, options, name, onChange }: FormDropdownProps) {\n return (\n
\n \n {({ open }) => (\n <>\n \n {/* Accessible input for Playwright testing - positioned off-screen */}\n onChange(e.target.value)}\n className=\"sr-only\"\n aria-hidden=\"true\"\n tabIndex={-1}\n style={{\n position: 'absolute',\n left: '-9999px',\n width: '1px',\n height: '1px',\n overflow: 'hidden',\n }}\n />\n
\n \n {value}\n \n \n \n \n\n \n \n {options.map((option, index) => (\n `px-4 py-2 text-left text-white cursor-pointer ${active ? 'bg-gray-700' : ''}`}\n >\n {option}\n \n ))}\n \n \n
\n \n )}\n
\n
\n )\n}\n","'use client'\n\nexport function FormInput({\n label,\n name,\n value,\n onChange,\n type = 'text',\n placeholder,\n error,\n required = false,\n className = '',\n}: FormInputProps) {\n return (\n
\n \n \n {error &&

{error}

}\n
\n )\n}\n","'use client'\n\ninterface FormNumberInputProps {\n label: string\n name: string\n value: number\n onChange: (value: number) => void\n min?: number\n max?: number\n step?: number\n error?: string\n required?: boolean\n className?: string\n}\n\nexport function FormNumberInput({\n label,\n name,\n value,\n onChange,\n min,\n max,\n step = 1,\n error,\n required = false,\n className = '',\n}: FormNumberInputProps) {\n return (\n
\n \n
\n onChange(parseFloat(e.target.value))}\n min={min}\n max={max}\n step={step}\n className={`w-full px-4 py-2 bg-gray-800 border rounded-lg focus:ring-2 focus:ring-purple-500 outline-none\n ${error ? 'border-red-500' : 'border-gray-600'} \n text-white placeholder-gray-400 ${className}`}\n />\n
\n
\n \n \n
\n
\n
\n {error &&

{error}

}\n
\n )\n}\n","'use client'\n\nimport { ChevronUpIcon } from '@chakra-ui/icons'\nimport { Disclosure, DisclosureButton, DisclosurePanel } from '@headlessui/react'\nimport { useEffect, useRef } from 'react'\nimport Card from '../../components/base/Card'\n\ninterface FormSectionProps {\n title: string\n children: React.ReactNode\n className?: string\n isDropdown?: boolean\n openHeight?: string\n}\n\nexport function FormSection({ title, children, className = '', isDropdown = true, openHeight }: FormSectionProps) {\n const sectionRef = useRef(null)\n\n const handleSectionClick = () => {\n if (sectionRef.current) {\n sectionRef.current.scrollIntoView({\n behavior: 'smooth',\n block: 'nearest',\n })\n }\n }\n\n useEffect(() => {\n function handleClickOutside(event: MouseEvent) {\n const target = event.target as HTMLElement\n\n if (sectionRef.current && !sectionRef.current.contains(target)) {\n const button = sectionRef.current.querySelector('button[type=\"button\"]') as HTMLButtonElement | null\n if (button && button.getAttribute('aria-expanded') === 'true') {\n button.click()\n }\n }\n }\n\n document.addEventListener('mousedown', handleClickOutside)\n return () => {\n document.removeEventListener('mousedown', handleClickOutside)\n }\n }, [])\n if (isDropdown) {\n return (\n \n {({ open }) => (\n \n \n

{title}

\n \n
\n \n {children}\n \n
\n )}\n
\n )\n }\n\n return (\n
\n
\n

{title}

\n {children}\n
\n
\n )\n}\n","'use client'\n\nexport function FormTextArea({\n label,\n name,\n value,\n onChange,\n placeholder,\n error,\n required = false,\n rows = 4,\n className = '',\n}: FormTextAreaProps) {\n return (\n
\n \n \n {error &&

{error}

}\n
\n )\n}\n","'use client'\n\ninterface FormToggleProps {\n label: string\n checked: boolean\n name: string\n onChange: (checked: boolean) => void\n className?: string\n}\n\nexport function FormToggle({ label, checked, name, onChange, className = '' }: FormToggleProps) {\n return (\n
\n \n
\n \n \n )\n}\n","'use client'\n\nexport function SubmitButton({ children, className = '', onClick, type = 'submit' }: SubmitButtonProps) {\n return (\n
\n \n {children}\n \n
\n )\n}\n","export { FormCheckbox } from './FormCheckbox'\nexport { FormDateTimeInput } from './FormDateTimeInput'\nexport { FormDropdown } from './FormDropdown'\nexport { FormInput } from './FormInput'\nexport { FormNumberInput } from './FormNumberInput'\nexport { FormSection } from './FormSection'\nexport { FormTextArea } from './FormTextArea'\nexport { FormToggle } from './FormToggle'\nexport { SubmitButton } from './SubmitButton'\n"],"names":["Card","children","className","isSelected","isInteractive","props","div","cn","inputs","twMerge","clsx","FormCheckbox","label","checked","name","onChange","input","type","e","target","span","FormDateTimeInput","value","required","error","testName","id","p","FormDropdown","options","Listbox","open","aria-hidden","tabIndex","style","position","left","width","height","overflow","ListboxButton","svg","fill","stroke","viewBox","path","strokeLinecap","strokeLinejoin","strokeWidth","d","Transition","show","as","Fragment","leave","leaveFrom","leaveTo","ListboxOptions","map","option","index","ListboxOption","active","FormInput","placeholder","htmlFor","data-testid","FormNumberInput","min","max","step","parseFloat","button","onClick","FormSection","title","isDropdown","openHeight","sectionRef","useRef","handleSectionClick","current","scrollIntoView","behavior","block","useEffect","handleClickOutside","event","contains","querySelector","getAttribute","click","document","addEventListener","removeEventListener","Disclosure","ref","DisclosureButton","h3","ChevronUpIcon","color","DisclosurePanel","FormTextArea","rows","textarea","FormToggle"],"sourceRoot":"","ignoreList":[]}