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,EAG3C,KAEF,KAAK,UACHxT,EAAE2c,cAAc,GACZnJ,EAAY,GACd0H,EAAa4B,GAAWA,EAAU,GAEpC,KAEF,KAAK,YAEH,GADA9c,EAAE2c,cAAc,GACE,MAAd3c,EAAEuM,OAAO,EACTvM,EAAE4c,WAAW,CAACtQ,WAAW,CADN,OAEvB,GAAI,CAACmH,EAAU,CACbC,EAAU,IACV,MACF,CACIF,EAAYD,EAAcrT,MAAM,CAAG,GACrCgb,EAAa4B,GAAWA,EAAU,GAEpC,KAEF,KAAK,YACH,GAAI9c,EAAE4c,WAAW,CAACtQ,WAAW,CAAE,MACZ,MAAfgH,GACFoJ,IAEF,KAEF,KAAK,SACH1c,EAAE2c,cAAc,GAChBD,IACA,KAEF,KAAK,MACH1c,EAAE2c,cAAc,GAChB3c,EAAE0K,eAAe,GACjB,KAEF,SACO+I,GACHC,EAAU,GAIhB,CACF,EAsBEI,YApBkB,KAClBH,EAAkB,IAClBuH,EAAa,IACb7T,MAAAA,GAAAA,IACAqM,EAAU,GACZ,EAgBEyH,cAAAA,EACAnH,qBAAAA,EACAD,cA/IoB,CAACxN,EAAyBwE,KAC1CxE,EACFuU,EAASU,OAAO,CAACuB,GAAG,CAAChS,EAAKxE,GAE1BuU,EAASU,OAAO,CAACwB,MAAM,CAACjS,EAE5B,CA0IA,CACF","sources":["webpack://_N_E/./src/assets/icons/alert-circle.svg","webpack://_N_E/./src/assets/icons/calendar.svg","webpack://_N_E/./src/assets/icons/plus-white.svg","webpack://_N_E/./src/app/(dashboard)/(sidebar)/api/config.ts","webpack://_N_E/./src/clients/customers/apis.ts","webpack://_N_E/./src/clients/customers/select.ts","webpack://_N_E/./src/clients/customers/queries.ts","webpack://_N_E/./src/clients/customers/index.ts","webpack://_N_E/./src/components/DatePicker/DatePicker.tsx","webpack://_N_E/./src/components/DatePicker/DatePickerHeader.tsx","webpack://_N_E/./src/components/DatePicker/index.ts","webpack://_N_E/./src/components/TextArea/TextArea.tsx","webpack://_N_E/./src/components/Tooltip/Tooltip.tsx","webpack://_N_E/./src/components/ui/button.tsx","webpack://_N_E/./src/components/ui/card.tsx","webpack://_N_E/./src/components/ui/form.tsx","webpack://_N_E/./src/components/ui/input.tsx","webpack://_N_E/./src/components/ui/label.tsx","webpack://_N_E/./src/components/ui/popover.tsx","webpack://_N_E/./src/constants/regex/index.ts","webpack://_N_E/./src/containers/Loaders/IconLoader.tsx","webpack://_N_E/./src/containers/Loaders/TableRowLoader.tsx","webpack://_N_E/./src/containers/Loaders/index.ts","webpack://_N_E/./src/utils/search/searchStringNumbers.ts","webpack://_N_E/./src/features/customers/containers/customer-autocomplete/CustomerAutocomplete.tsx","webpack://_N_E/./src/features/customers/containers/customer-autocomplete/SelectedCustomerBar.tsx","webpack://_N_E/./src/features/customers/containers/customer-autocomplete/index.ts","webpack://_N_E/./src/features/customers/containers/customer-form/CustomerForm.constants.ts","webpack://_N_E/./src/features/customers/containers/customer-form/CustomerForm.tsx","webpack://_N_E/./src/features/customers/containers/customer-form/useCustomerFormSubmit.ts","webpack://_N_E/./src/features/customers/containers/customer-form/CustomerForm.types.ts","webpack://_N_E/./src/features/customers/containers/customer-form/useCustomerFormValues.ts","webpack://_N_E/./src/features/customers/containers/customer-form/index.ts","webpack://_N_E/./src/features/customers/containers/customer-staffs-autocomplete/CustomerStaffsAutocomplete.tsx","webpack://_N_E/./src/features/customers/containers/customer-staffs-autocomplete/index.ts","webpack://_N_E/./src/features/customers/containers/index.ts","webpack://_N_E/./src/features/customers/helpers/isEqualsBusinessRegistrationNumber.ts","webpack://_N_E/./src/features/customers/helpers/isEqualsTaxRegistrationId.ts","webpack://_N_E/./src/features/customers/helpers/isEqualsCustomer.ts","webpack://_N_E/./src/features/customers/helpers/toCustomerSearchKeyword.ts","webpack://_N_E/./src/features/customers/helpers/toFirstStaffAsAssigneeFromCustomer.ts","webpack://_N_E/./src/features/customers/helpers/index.ts","webpack://_N_E/./src/features/customers/index.ts","webpack://_N_E/./src/hooks/useAutocomplete.ts"],"sourcesContent":["var _g, _defs;\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nimport * as React from \"react\";\nvar SvgAlertCircle = function SvgAlertCircle(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 16,\n height: 16,\n fill: \"none\"\n }, props), _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n clipPath: \"url(#alert-circle_svg__a)\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n stroke: \"#60666C\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: 1.3,\n d: \"M8 5.334V8m0 2.667h.006M14.666 8A6.667 6.667 0 1 1 1.333 8a6.667 6.667 0 0 1 13.333 0\"\n }))), _defs || (_defs = /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"clipPath\", {\n id: \"alert-circle_svg__a\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n fill: \"#fff\",\n d: \"M0 0h16v16H0z\"\n })))));\n};\nexport default SvgAlertCircle;","var _path;\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nimport * as React from \"react\";\nvar SvgCalendar = function SvgCalendar(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 20,\n height: 20,\n fill: \"none\"\n }, props), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n stroke: \"#60666C\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: 1.5,\n d: \"M18.333 8.167H1.667M13.704.833V4.5M6.296.833V4.5m-.185 14.667h7.778c1.555 0 2.333 0 2.928-.3a2.76 2.76 0 0 0 1.213-1.202c.303-.588.303-1.358.303-2.898v-7.7c0-1.54 0-2.31-.303-2.899a2.76 2.76 0 0 0-1.213-1.202c-.595-.3-1.373-.3-2.928-.3H6.11c-1.556 0-2.334 0-2.928.3A2.76 2.76 0 0 0 1.97 4.168c-.302.588-.302 1.359-.302 2.899v7.7c0 1.54 0 2.31.302 2.898.267.518.692.938 1.214 1.202.594.3 1.372.3 2.928.3\"\n })));\n};\nexport default SvgCalendar;","var _path;\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nimport * as React from \"react\";\nvar SvgPlusWhite = function SvgPlusWhite(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 14,\n height: 14,\n fill: \"none\"\n }, props), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n stroke: \"#fff\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: 1.4,\n d: \"M7 1.75v10.5M1.75 7h10.5\"\n })));\n};\nexport default SvgPlusWhite;","import { useProfileStore } from \"@/store/profiles/store\"\n\n/**\n * profileId가 변경되면 대시보드 내 QueryKey가 같이 변경되어야 합니다.\n * @deprecated js에서 선언된 값을 사용하는 방법은 좋지 않고, react 내에서 hook으로 사용해주세요.\n */\nexport const profileId = useProfileStore.getState().getProfileAccountId()\n","import instance from \"@/app/(dashboard)/(sidebar)/api/api\"\nimport { Customer } from \"@/clients/bolta-apis\"\n\nimport { BaseResponse } from \"../types\"\nimport { apiPrivateClient } from \"../apiClients\"\n\nexport type FetchCustomerListApi = {\n Params: Customer.FetchCustomer.RequestParams & Customer.FetchCustomer.RequestQuery\n Response: Customer.FetchCustomer.ResponseBody\n}\nexport const fetchCustomerListApi = async ({\n workspaceId,\n ...params\n}: FetchCustomerListApi[\"Params\"]) => {\n const url = `/api/v2/workspaces/${workspaceId}/customers`\n const {\n data: { body },\n } = await instance>({\n method: \"GET\",\n url,\n params: {\n ...params,\n searchKeyword: params.searchKeyword ? params.searchKeyword.trim() : undefined,\n },\n })\n return body\n}\n\nexport type FetchCustomerApi = {\n Params: MaybeBy\n Response: Customer.RetrieveCustomer.ResponseBody\n}\nexport const fetchCustomerApi = async ({\n workspaceId,\n customerId,\n}: FetchCustomerApi[\"Params\"]) => {\n const url = `/api/v2/workspaces/${workspaceId}/customers/${customerId}`\n const {\n data: { body },\n } = await instance>({\n method: \"GET\",\n url,\n })\n return body\n}\n\nexport type PostCustomerApi = {\n Params: Customer.CreateCustomer.RequestParams & Customer.CreateCustomer.RequestBody\n RequestBody: Customer.CreateCustomer.RequestBody\n Response: Customer.CreateCustomer.ResponseBody\n}\n\nexport const postCustomerApi = async ({\n workspaceId,\n ...requestBody\n}: PostCustomerApi[\"Params\"]) => {\n const url = `/api/v2/workspaces/${workspaceId}/customers`\n const {\n data: { body },\n } = await apiPrivateClient>({\n method: \"POST\",\n url,\n data: requestBody,\n })\n\n return body\n}\n\nexport type PutCustomerApi = {\n Params: Customer.UpdateCustomer.RequestParams & Customer.UpdateCustomer.RequestBody\n RequestBody: Customer.UpdateCustomer.RequestBody\n Response: Customer.UpdateCustomer.ResponseBody\n}\n\nexport const putCustomerApi = async ({\n workspaceId,\n customerId,\n ...requestBody\n}: PutCustomerApi[\"Params\"]) => {\n const url = `/api/v2/workspaces/${workspaceId}/customers/${customerId}`\n const {\n data: { body },\n } = await apiPrivateClient>({\n method: \"PUT\",\n url,\n data: requestBody,\n })\n\n return body\n}\n","import { map, pipe, toArray } from \"@fxts/core\"\n\nimport { CustomerModel, CustomerStaffModel } from \"@/features/customers\"\nimport { formatBusinessRegistrationNumber, formatPhoneNumber } from \"@/utils/formats\"\n\nimport { FetchCustomerApi } from \"./apis\"\n\nexport const toSelectCustomerModel = (\n data: T,\n): CustomerModel => {\n return {\n ...data,\n staffs: toSelectCustomerStaffModel(data.staffs),\n businessRegistrationNumber: formatBusinessRegistrationNumber(\n data.businessRegistrationNumber,\n ),\n }\n}\n\nexport const toSelectCustomerStaffModel = (\n staffs: T[],\n): CustomerStaffModel[] => {\n const staffModels = pipe(\n staffs,\n map(staff => {\n return {\n ...staff,\n email: staff.email,\n displayName: staff.displayName || \"\",\n telephone: formatPhoneNumber(staff.telephone || \"\"),\n } satisfies CustomerStaffModel\n }),\n toArray,\n )\n return staffModels\n}\n","import { keepPreviousData, queryOptions } from \"@tanstack/react-query\"\nimport { map, toArray } from \"@fxts/core\"\nimport { pipe } from \"@fxts/core\"\n\nimport { profileId } from \"@/app/(dashboard)/(sidebar)/api/config\"\nimport { ApiErrorResponse, PageResult } from \"@/clients/types\"\nimport { CustomerModel } from \"@/features/customers\"\n\nimport {\n FetchCustomerApi,\n fetchCustomerApi,\n fetchCustomerListApi,\n FetchCustomerListApi,\n} from \"./apis\"\nimport { toSelectCustomerModel } from \"./select\"\n\nexport const customerQueries = {\n _id: [\"customers\", profileId],\n customersWithPagination: (params: FetchCustomerListApi[\"Params\"]) => {\n const { workspaceId, size, page, searchKeyword } = params\n return queryOptions<\n FetchCustomerListApi[\"Response\"],\n ApiErrorResponse,\n PageResult\n >({\n queryKey: [\n ...customerQueries._id,\n \"withPagination\",\n workspaceId,\n size,\n page,\n searchKeyword,\n ],\n queryFn: () => {\n return fetchCustomerListApi(params)\n },\n placeholderData: keepPreviousData,\n select: res => {\n return {\n ...res,\n content: pipe(res.content, map(toSelectCustomerModel), toArray),\n }\n },\n })\n },\n customers: (params: FetchCustomerListApi[\"Params\"]) => {\n const { workspaceId, size, page, searchKeyword } = params\n return queryOptions<\n FetchCustomerListApi[\"Response\"],\n ApiErrorResponse,\n PageResult\n >({\n queryKey: [...customerQueries._id, workspaceId, size, page, searchKeyword],\n queryFn: () => {\n return fetchCustomerListApi(params)\n },\n select: res => {\n return {\n ...res,\n content: pipe(res.content, map(toSelectCustomerModel), toArray),\n }\n },\n })\n },\n customerBy: (params: FetchCustomerApi[\"Params\"]) => {\n const { workspaceId, customerId } = params\n return queryOptions<\n FetchCustomerApi[\"Response\"],\n ApiErrorResponse,\n CustomerModel\n >({\n queryKey: [...customerQueries._id, workspaceId, customerId],\n queryFn: () => {\n if (!customerId) {\n return Promise.reject({ message: \"customerId is required\" })\n }\n return fetchCustomerApi(params)\n },\n select: toSelectCustomerModel,\n enabled: !!customerId,\n })\n },\n}\n","export * from \"./apis\"\nexport * from \"./queries\"\nexport * from \"./select\"\n","import { Input, InputProps } from \"@nextui-org/react\"\nimport { ko } from \"date-fns/locale\"\nimport dayjs from \"dayjs\"\nimport React, { forwardRef, useState } from \"react\"\nimport DatePicker from \"react-datepicker\"\nimport {\n Middleware,\n shift as shiftMiddleware,\n offset as offsetMiddleware,\n flip,\n} from \"@floating-ui/react\"\n\nimport CalendarIcon from \"@/assets/icons/calendar.svg\"\n\nimport DatePickerHeader from \"./DatePickerHeader\"\n\ninterface Props {\n date: string\n name?: string\n size?: \"sm\" | \"md\" | \"lg\"\n minDate?: string\n maxDate?: string\n isInvalid?: boolean\n inputRef?: React.Ref\n errorMessage?: string\n validation?: object\n openToDate?: Date\n placeholder?: string\n description?: string\n isClearable?: boolean\n offset?: [x: number, y: number]\n onChange: (date: string) => void\n onBlur?: InputProps[\"onBlur\"]\n disabled?: boolean\n readOnly?: boolean\n middleware?: Middleware[]\n}\n\ntype CustomInputProps = {\n value?: string\n onClick?: () => void\n}\n\nexport default function DatePickerComponent({\n size,\n date,\n minDate,\n maxDate,\n isInvalid,\n openToDate,\n errorMessage,\n placeholder,\n description,\n inputRef,\n isClearable,\n offset,\n onChange,\n onBlur,\n disabled,\n readOnly,\n middleware: middlewareProps,\n}: Props) {\n const [isOpen, setIsOpen] = useState(false)\n\n const CustomInput = forwardRef((props, ref) => {\n const { value } = props\n\n return (\n
\n \n }\n onBlur={onBlur}\n {...(isClearable ? { onClear: () => onChange(\"\") } : {})}\n />\n setIsOpen(true)}\n >
\n \n )\n })\n CustomInput.displayName = \"CustomInput\"\n\n const handleChange = (date: Date | null) => {\n if (!date) return\n\n if (disabled || readOnly) {\n return\n }\n\n onChange(dayjs(date).format(\"YYYY-MM-DD\"))\n setIsOpen(false)\n }\n\n const middleware = React.useMemo(() => {\n const [crossAxis, mainAxis] = offset || [0, 0]\n return middlewareProps\n ? middlewareProps\n : [\n flip(),\n offsetMiddleware({\n crossAxis,\n mainAxis,\n }),\n shiftMiddleware({\n mainAxis: true,\n crossAxis: true,\n }),\n ]\n }, [offset, middlewareProps])\n\n const popperModifiers = React.useMemo(() => {\n return [\n {\n name: \"offset\",\n options: {\n offset: offset || [0, 0],\n },\n fn: state => state,\n },\n ]\n }, [offset])\n\n return (\n
\n {isOpen && (\n setIsOpen(false)}\n />\n )}\n\n handleChange(date)}\n customInput={}\n openToDate={openToDate}\n disabled={disabled}\n readOnly={readOnly}\n renderCustomHeader={({\n date,\n changeYear,\n changeMonth,\n decreaseMonth,\n increaseMonth,\n prevMonthButtonDisabled,\n nextMonthButtonDisabled,\n }) => (\n \n )}\n popperProps={{\n /**\n * @see https://github.com/Hacker0x01/react-datepicker/issues/4564\n */\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n middleware: middleware ? middleware : undefined,\n }}\n popperModifiers={middleware ? undefined : popperModifiers}\n showPopperArrow={false}\n />\n
\n )\n}\n","import { ChevronLeftIcon, ChevronRightIcon } from \"@heroicons/react/24/solid\"\nimport {\n Button,\n Dropdown,\n DropdownItem,\n DropdownMenu,\n DropdownTrigger,\n} from \"@nextui-org/react\"\nimport dayjs from \"dayjs\"\n\ninterface ReactDatePickerCustomHeaderProps {\n date: Date\n decreaseMonth: () => void\n increaseMonth: () => void\n changeMonth: (month: number) => void\n changeYear: (year: number) => void\n prevMonthButtonDisabled: boolean\n nextMonthButtonDisabled: boolean\n}\n\nconst months = [\n \"1월\",\n \"2월\",\n \"3월\",\n \"4월\",\n \"5월\",\n \"6월\",\n \"7월\",\n \"8월\",\n \"9월\",\n \"10월\",\n \"11월\",\n \"12월\",\n]\n\nfunction yearRange(start: number, end: number, step: number = -1): number[] {\n const arr = [] as number[]\n if (step > 0) {\n for (let i = end - 1; i >= start; i -= step) {\n arr.push(i)\n }\n } else {\n for (let i = start; i >= end; i += step) {\n arr.push(i)\n }\n }\n return arr\n}\n\nconst years = yearRange(dayjs().year() + 1, dayjs().year() - 5)\n\nconst getYear = (date: Date) => {\n return date.getFullYear()\n}\n\nconst getMonth = (date: Date) => {\n return date.getMonth()\n}\n\nexport default function DatePickerHeader({\n date,\n decreaseMonth,\n increaseMonth,\n changeMonth,\n changeYear,\n prevMonthButtonDisabled,\n nextMonthButtonDisabled,\n}: ReactDatePickerCustomHeaderProps) {\n return (\n
\n \n \n \n\n e.stopPropagation()}\n >\n e.stopPropagation()}>\n \n
{getYear(date)}
\n
\n changeYear(Number(key))}\n onClick={e => e.stopPropagation()}\n >\n {years.map(year => (\n \n {year}\n \n ))}\n \n
\n .\n \n \n
{months[getMonth(date)]}
\n
\n changeMonth(months.indexOf(key as string))}\n >\n {months.map(month => (\n \n {month}\n \n ))}\n \n
\n
\n\n \n \n \n \n )\n}\n","export { default as DatePicker } from \"./DatePicker\"\n","\"use client\"\n\nimport { Textarea } from \"@nextui-org/react\"\nimport { TextAreaProps } from \"@nextui-org/react\"\nimport { Controller, useFormContext } from \"react-hook-form\"\nimport { RegisterOptions } from \"react-hook-form\"\n\ninterface Props extends TextAreaProps {\n name: string\n viewOnly?: boolean\n rules?: Omit<\n RegisterOptions,\n \"valueAsNumber\" | \"valueAsDate\" | \"setValueAs\" | \"disabled\"\n >\n nextFocus?: string\n}\n\n/**\n * @todo Controller는 외부에서 사용하세요.\n */\nexport default function TextField({\n name,\n rules,\n nextFocus,\n viewOnly,\n type,\n ...props\n}: Props) {\n const { control, setFocus } = useFormContext()\n\n return (\n (\n {\n if (!field.value) return\n field.onChange(field.value.trim())\n }}\n onValueChange={value => {\n field.onChange(type === \"number\" ? Number(value) : value)\n }}\n onKeyDown={e => {\n if (e.isComposing || e.keyCode === 229) return\n if (nextFocus && e.key === \"Enter\") {\n setFocus(nextFocus)\n }\n }}\n labelPlacement=\"outside\"\n variant=\"bordered\"\n classNames={{\n base: \"bolta-input\",\n inputWrapper: `${viewOnly ? \"!cursor-not-allowed\" : \"\"}`,\n input: `${viewOnly ? \"cursor-not-allowed\" : \"\"}`,\n }}\n isInvalid={!!fieldState.error}\n errorMessage={fieldState.error?.message}\n {...props}\n />\n )}\n />\n )\n}\n","import { TooltipProps } from \"@nextui-org/react\"\nimport { Tooltip as NextuiTooltip } from \"@nextui-org/react\"\n\nimport AlertCircleIcon from \"@/assets/icons/alert-circle.svg\"\nimport { useSnackbarStore } from \"@/store/snackbarStore\"\n\ntype Placement =\n | \"top\"\n | \"bottom\"\n | \"right\"\n | \"left\"\n | \"top-start\"\n | \"top-end\"\n | \"bottom-start\"\n | \"bottom-end\"\n | \"left-start\"\n | \"left-end\"\n | \"right-start\"\n | \"right-end\"\n\ninterface Props extends TooltipProps {\n content: React.ReactNode\n placement: Placement\n offset?: number\n crossOffset?: number\n maxWidth?: number\n isDisabled?: boolean\n isOpen?: boolean\n showArrow?: boolean\n children?: React.ReactNode\n /**\n * NextUI의 기본값이 100000\n * @default 100000\n */\n zIndex?: number\n}\n\nexport default function Tooltip({\n content,\n placement,\n offset,\n crossOffset,\n maxWidth,\n isDisabled = false,\n isOpen,\n showArrow = true,\n shouldFlip = true,\n children,\n zIndex,\n ...props\n}: Props) {\n const openSnackbar = useSnackbarStore(state => state.openSnackbar)\n\n return (\n <>\n \n {children ? (\n children\n ) : (\n
\n
\n )}\n \n {children ? null : (\n
\n openSnackbar(content, \"info\")}\n />\n
\n )}\n \n )\n}\n","import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { tv, type VariantProps } from \"tailwind-variants\"\n\nimport { cn } from \"@/utils/styles\"\n\nconst buttonVariants = tv({\n base: [\n \"inline-flex items-center justify-center gap-2\",\n \"whitespace-nowrap rounded\",\n \"font-medium ring-offset-background transition-colors\",\n \"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2\",\n \"disabled:pointer-events-none disabled:opacity-50\",\n \"[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0\",\n ],\n variants: {\n variant: {\n neutral: [\"bg-neutral text-neutral-foreground hover:bg-neutral/90\"],\n primary: [\n \"bg-primary text-primary-foreground hover:bg-primary/90\",\n \"disabled:bg-gray-05\",\n ],\n secondary: [\"bg-secondary text-secondary-foreground hover:bg-secondary/90\"],\n outline: [\n \"border border-input bg-background\",\n \"hover:bg-accent hover:text-accent-foreground\",\n ],\n },\n size: {\n default: [\"text-base\", \"h-10 min-w-[56px]\", \"px-4 py-2\"],\n sm: [\"text-sm\", \"h-9 min-w-[56px]\", \"px-3\"],\n lg: [\"text-base\", \"h-11 min-w-[56px]\", \"px-8\"],\n icon: [\"h-10 w-10\"],\n },\n },\n defaultVariants: {\n variant: \"neutral\",\n size: \"default\",\n },\n})\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes,\n VariantProps {\n asChild?: boolean\n}\n\nconst Button = React.forwardRef(\n ({ className, variant, size, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : \"button\"\n return (\n \n )\n },\n)\nButton.displayName = \"Button\"\n\nexport { Button, buttonVariants }\n","import * as React from \"react\"\n\nimport { cn } from \"@/utils/styles\"\n\nconst Card = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n)\nCard.displayName = \"Card\"\n\nconst CardHeader = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n \n))\nCardHeader.displayName = \"CardHeader\"\n\nconst CardTitle = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n \n))\nCardTitle.displayName = \"CardTitle\"\n\nconst CardDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n \n))\nCardDescription.displayName = \"CardDescription\"\n\nconst CardContent = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n
\n))\nCardContent.displayName = \"CardContent\"\n\nconst CardFooter = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n
\n))\nCardFooter.displayName = \"CardFooter\"\n\nexport { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle }\n","import * as React from \"react\"\nimport * as LabelPrimitive from \"@radix-ui/react-label\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport {\n Controller,\n ControllerProps,\n FieldPath,\n FieldValues,\n FormProvider,\n useFormContext,\n} from \"react-hook-form\"\nimport { tv } from \"tailwind-variants\"\n\nimport { cn } from \"@/utils/styles\"\nimport { Label } from \"@/components/ui/label\"\n\nconst formVariants = tv({\n slots: {\n item: [\"flex flex-col gap-1.5\"],\n description: \"text-muted-foreground text-sm\",\n message: \"text-destructive typo-sub-caption font-medium\",\n required: \"typo-body-3-medium text-primary-07\",\n label: \"text-gray-09\",\n },\n variants: {\n error: {\n true: {\n message: [\"text-error\"],\n },\n },\n },\n})\n\nconst Form = FormProvider\n\ntype FormFieldContextValue<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath = FieldPath,\n> = {\n name: TName\n}\n\nconst FormFieldContext = React.createContext(\n {} as FormFieldContextValue,\n)\n\nconst FormField = <\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath = FieldPath,\n>({\n ...props\n}: ControllerProps) => {\n return (\n \n \n \n )\n}\n\nconst useFormField = () => {\n const fieldContext = React.useContext(FormFieldContext)\n const itemContext = React.useContext(FormItemContext)\n const { getFieldState, formState } = useFormContext()\n\n const fieldState = getFieldState(fieldContext.name, formState)\n\n if (!fieldContext) {\n throw new Error(\"useFormField should be used within \")\n }\n\n const { id } = itemContext\n\n return {\n id,\n name: fieldContext.name,\n formItemId: `${id}-form-item`,\n formDescriptionId: `${id}-form-item-description`,\n formMessageId: `${id}-form-item-message`,\n ...fieldState,\n }\n}\n\ntype FormItemContextValue = {\n id: string\n}\n\nconst FormItemContext = React.createContext(\n {} as FormItemContextValue,\n)\n\nconst FormItem = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => {\n const id = React.useId()\n const { item } = formVariants()\n\n return (\n \n
\n \n )\n})\nFormItem.displayName = \"FormItem\"\n\nconst FormLabel = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => {\n const { error, formItemId } = useFormField()\n const { label } = formVariants()\n\n return (\n \n )\n})\nFormLabel.displayName = \"FormLabel\"\n\nconst FormControl = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>((props, ref) => {\n const { error, formItemId, formDescriptionId, formMessageId } = useFormField()\n\n return (\n \n )\n})\nFormControl.displayName = \"FormControl\"\n\nconst FormDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => {\n const { formDescriptionId } = useFormField()\n const { description } = formVariants()\n\n return (\n \n )\n})\nFormDescription.displayName = \"FormDescription\"\n\nconst FormMessage = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes\n>(({ className, children, ...props }, ref) => {\n const { error, formMessageId } = useFormField()\n const { message } = formVariants({ error: !!error })\n const body = error ? String(error?.message) : children\n\n if (!body) {\n return null\n }\n\n return (\n

\n {body}\n

\n )\n})\nFormMessage.displayName = \"FormMessage\"\n\nconst FormRequired = React.forwardRef<\n HTMLSpanElement,\n React.HTMLAttributes\n>(({ ...props }, ref) => {\n const { required } = formVariants()\n return \n})\nFormRequired.displayName = \"FormRequired\"\n\nexport {\n Form,\n FormControl,\n FormDescription,\n FormField,\n FormItem,\n FormLabel,\n FormMessage,\n FormRequired,\n useFormField,\n}\n","import * as React from \"react\"\nimport { tv, VariantProps } from \"tailwind-variants\"\n\nimport { cn } from \"@/utils/styles\"\n\nconst inputVariants = tv({\n base: [\n \"flex h-10 w-full\",\n \"px-3 py-2\",\n \"rounded-md bg-background\",\n \"border-input border\",\n \"text-base md:text-sm\",\n \"placeholder:text-muted-foreground\",\n \"file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground\",\n \"focus-visible:outline-none\",\n \"ring-offset-background\",\n \"disabled:cursor-not-allowed disabled:bg-gray-02 disabled:border-none\",\n \"[&:-webkit-autofill]:bg-white [&:-webkit-autofill]:border-input [&:-webkit-autofill]:text-foreground\",\n \"[&:-webkit-autofill:hover]:bg-white [&:-webkit-autofill:hover]:border-input [&:-webkit-autofill:hover]:text-foreground\",\n \"[&:-webkit-autofill:focus]:bg-white [&:-webkit-autofill:focus]:border-input [&:-webkit-autofill:focus]:text-foreground\",\n ],\n defaultVariants: {\n size: \"md\",\n color: \"primary\",\n },\n variants: {\n color: {\n primary: \"focus-visible:border-primary-07\",\n },\n size: {\n sm: \"px-3 py-2 h-[40px]\",\n md: \"px-4 py-3 h-[48px]\",\n lg: \"px-5 py-4 h-[56px]\",\n },\n },\n})\n\ntype InputElementProps = React.InputHTMLAttributes\ntype InputVariants = VariantProps\ntype InputProps = Omit & InputVariants\n\nconst Input = React.forwardRef(\n ({ className, type, size = \"md\", color = \"primary\", value, ...props }, ref) => {\n return (\n \n )\n },\n)\nInput.displayName = \"Input\"\n\nexport { Input }\n","import * as React from \"react\"\nimport * as LabelPrimitive from \"@radix-ui/react-label\"\nimport { tv, type VariantProps } from \"tailwind-variants\"\n\nimport { cn } from \"@/utils/styles\"\n\nconst labelVariants = tv({\n base: [\n \"text-sm font-medium leading-none\",\n \"peer-disabled:cursor-not-allowed peer-disabled:opacity-70\",\n ],\n})\n\ntype LabelVariantProps = VariantProps\n\nconst Label = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef & LabelVariantProps\n>(({ className, ...props }, ref) => (\n \n))\nLabel.displayName = LabelPrimitive.Root.displayName\n\nexport { Label }\n","import * as React from \"react\"\nimport * as PopoverPrimitive from \"@radix-ui/react-popover\"\nimport { tv, VariantProps } from \"tailwind-variants\"\n\nimport { cn } from \"@/utils/styles\"\n\nconst popoverVariants = tv({\n slots: {\n overlay: [\n \"fixed inset-0 z-50\",\n \"bg-transparent\",\n \"data-[state=open]:animate-in data-[state=closed]:animate-out\",\n \"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n ],\n trigger: [],\n content: [\n \"bg-popover text-popover-foreground\",\n \"data-[state=open]:animate-in data-[state=closed]:animate-outw\",\n \"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n \"data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95\",\n \"data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2\",\n \"data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n \"z-50 rounded-md border shadow-md outline-none\",\n ],\n itemButton: [\n \"flex w-full flex-1 items-center justify-start\",\n \"px-4 py-2\",\n \"text-gray-10\",\n \"typo-body-3 font-medium\",\n \"hover:bg-gray-02\",\n \"focus-visible:outline-none focus-visible:ring-ring\",\n \"disabled:text-gray-05\",\n ],\n },\n})\nexport type PopoverVariantProps = VariantProps\n\nconst Popover = PopoverPrimitive.Root\n\nconst PopoverTrigger = PopoverPrimitive.Trigger\n\nconst PopoverPortal = PopoverPrimitive.Portal\n\nconst PopoverContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef & {\n matchedWidth?: boolean\n }\n>(\n (\n { className, align = \"center\", sideOffset = 4, matchedWidth = false, ...props },\n ref,\n ) => {\n const variants = popoverVariants()\n return (\n \n )\n },\n)\nPopoverContent.displayName = PopoverPrimitive.Content.displayName\n\nconst PopoverItemButton = React.forwardRef<\n React.ElementRef<\"button\">,\n React.ComponentPropsWithoutRef<\"button\">\n>(({ className, ...props }, ref) => {\n const variants = popoverVariants()\n\n return (\n \n )\n})\nPopoverItemButton.displayName = \"PopoverItemButton\"\n\nexport { Popover, PopoverContent, PopoverItemButton, PopoverPortal, PopoverTrigger }\n","/**\n * 사업자번호 검색시 검색키워드를 변환하기 위한 정규식\n */\nexport const BUSINESS_NUMBER_FORMAT = /\\d{3}(-\\d+)?(-\\d*)?$/\n","import { LoaderIcon } from \"lucide-react\"\nimport React from \"react\"\n\nimport { cn } from \"@/utils/styles\"\n\ntype ElementProps = React.SVGAttributes\n\nexport const IconLoader = ({ className, ...props }: ElementProps) => {\n return (\n \n )\n}\n","import { Skeleton } from \"@nextui-org/react\"\n\nexport type TableRowLoaderProps = {\n isEven?: boolean\n}\n\nexport const TableRowLoader = ({ isEven }: TableRowLoaderProps) => {\n return (\n \n
\n \n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n )\n}\n","export * from \"./IconLoader\"\nexport * from \"./TableRowLoader\"\n","/**\n * 문자열 형식의 숫자를 검색합니다.\n * @example\n * searchStringNumbers(\"1234567890\", \"123\") // true\n * searchStringNumbers(\"123-4567890\", \"123\") // true\n * searchStringNumbers(\"123-4567890\", \"123-45\") // true\n * searchStringNumbers(\"123-4567890\", \"123-45-67890\") // true\n * searchStringNumbers(\"123-4567890\", \"999\") // false\n */\nexport function searchStringNumbers(value: string, query: string): boolean {\n const normalizedValue = value.replace(/[^\\d]/g, \"\")\n const normalizedQuery = query.replace(/[^\\d]/g, \"\")\n\n if (!normalizedValue || !normalizedQuery) return false\n return normalizedValue.includes(normalizedQuery)\n}\n","import * as React from \"react\"\nimport { cn, Input } from \"@nextui-org/react\"\nimport { PlusIcon } from \"@heroicons/react/24/solid\"\nimport { ChevronDownIcon, SearchIcon } from \"lucide-react\"\n\nimport { CustomerModel } from \"@/features/customers\"\nimport { useProfileStore } from \"@/store/profiles\"\nimport { IconLoader } from \"@/containers/Loaders\"\nimport { useAutocomplete } from \"@/hooks/useAutocomplete\"\nimport { searchStringNumbers } from \"@/utils/search\"\nimport { useBoltaEventEmitter } from \"@/features/events\"\n\ntype CustomerAutocompleteProps = {\n value: string\n customers: CustomerModel[]\n onSelect: (customer: CustomerModel | null) => void\n onClickAdd: (value: string) => void\n onClear: () => void\n onChangeInput?: (value: string) => void\n placeholder?: string\n error?: string\n isLoading?: boolean\n isInvalid?: boolean\n}\n\nexport const CustomerAutocomplete = React.forwardRef<\n HTMLInputElement,\n CustomerAutocompleteProps\n>(\n (\n {\n value,\n customers,\n onSelect,\n onClickAdd,\n onClear,\n onChangeInput,\n placeholder,\n error,\n isLoading,\n isInvalid,\n },\n ref,\n ) => {\n const emitter = useBoltaEventEmitter()\n\n const scrollAreaRef = React.useRef(null)\n const inputRef = React.useRef(null)\n const workspaceId = useProfileStore(state => state.getCurrentWorkspaceId())\n\n const onSearch = (value: string) => {\n onChangeInput?.(value)\n if (value === \"\") {\n return customers\n }\n\n const searchedItems = customers.filter(customer => {\n const {\n // Searchable fields\n organizationName,\n taxRegistrationId,\n businessRegistrationNumber,\n } = customer\n return (\n organizationName?.toLowerCase().includes(value.toLowerCase()) ||\n taxRegistrationId?.toLowerCase().includes(value.toLowerCase()) ||\n searchStringNumbers(\n businessRegistrationNumber?.toLowerCase(),\n value.toLowerCase(),\n )\n )\n })\n return searchedItems\n }\n\n const identify = (item: CustomerModel) => {\n return item.organizationName || \"\"\n }\n\n const {\n searchText,\n searchedItems,\n activeKey,\n isOpened,\n setOpened,\n handleValueChange,\n handleSelectItem,\n handleKeyDown,\n handleFocus,\n handleItemRef,\n hasExactMatchedIndex,\n } = useAutocomplete({\n query: value,\n items: customers,\n identify,\n onSearch,\n onSelect,\n onClear,\n onClickAdd,\n scrollAreaRef,\n })\n\n return (\n
\n }\n endContent={\n
\n {isLoading ? (\n \n ) : (\n \n )}\n
\n }\n />\n\n {isOpened && (\n
\n {\n setOpened(false)\n }}\n />\n\n
\n \n {customers.length === 0 && (\n
\n 등록된 고객이 없습니다.\n
\n )}\n {searchedItems.map((customer, index) => (\n handleItemRef(ref, index)}\n className=\"my-1 cursor-pointer rounded px-3 py-[6px] text-gray-10 hover:bg-[#F6F8FB]\"\n onClick={() => {\n emitter.emit(\"selected__exist_customer__issuance\", {\n workspaceId,\n })\n handleSelectItem(customer)\n }}\n style={{\n backgroundColor: activeKey === index ? \"#F6F8FB\" : \"\",\n }}\n >\n
\n \n {customer.organizationName}\n \n \n {customer.businessRegistrationNumber}\n {customer.taxRegistrationId && (\n \n ({customer.taxRegistrationId})\n \n )}\n
\n
\n
\n ))}\n
\n\n {searchText.length > 0 && !hasExactMatchedIndex && (\n {\n emitter.emit(\"clicked__create_customer__issuance\", {\n workspaceId,\n })\n onClickAdd(searchText)\n }}\n >\n {\" \"}\n {searchText}\n 추가\n
\n Enter ⏎\n
\n
\n )}\n
\n \n )}\n \n )\n },\n)\nCustomerAutocomplete.displayName = \"CustomerAutocomplete\"\n","import { TextDivider } from \"@/components/Dividers\"\nimport { formatBusinessRegistrationNumber } from \"@/utils/formats\"\n\nexport type SelectedCustomerBarProps = {\n organizationName: string\n representativeName: string\n businessRegistrationNumber: string\n}\n\nexport function SelectedCustomerBar({\n organizationName,\n representativeName,\n businessRegistrationNumber,\n}: SelectedCustomerBarProps) {\n return (\n
\n {organizationName}\n \n |\n \n {representativeName}\n \n |\n \n {formatBusinessRegistrationNumber(businessRegistrationNumber)}\n
\n )\n}\n","export * from \"./CustomerAutocomplete\"\nexport * from \"./SelectedCustomerBar\"\n","import { CustomerFormValues, CustomerStaffFormValues } from \"./CustomerForm.types\"\n\nexport const INIT_STAFF: CustomerStaffFormValues = {\n displayName: \"\",\n email: \"\",\n telephone: \"\",\n useNotification: {\n kakaoTalk: false,\n email: true,\n },\n}\n\nexport const INIT_CUSTOMER: CustomerFormValues = {\n businessRegistrationNumber: \"\",\n organizationName: \"\",\n representativeName: \"\",\n address: \"\",\n memo: \"\",\n taxRegistrationId: \"\",\n businessType: \"\",\n businessItem: \"\",\n staffs: [INIT_STAFF],\n}\n","import { Button } from \"@nextui-org/react\"\nimport * as React from \"react\"\nimport { useFormContext, useWatch } from \"react-hook-form\"\nimport { useTranslation } from \"react-i18next\"\n\nimport PlusWhiteIcon from \"@/assets/icons/plus-white.svg\"\nimport Tooltip from \"@/components/Tooltip/Tooltip\"\nimport { formatTaxRegistrationId } from \"@/utils/format\"\nimport { formatBusinessRegistrationNumber, formatPhoneNumber } from \"@/utils/formats\"\nimport {\n FormField,\n FormRequired,\n FormLabel,\n FormItem,\n FormControl,\n FormMessage,\n} from \"@/components/ui/form\"\nimport { Input } from \"@/components/ui/input\"\nimport TextArea from \"@/components/TextArea/TextArea\"\n\nimport { INIT_STAFF } from \"./CustomerForm.constants\"\nimport { CustomerFormValues } from \"./CustomerForm.types\"\n\nexport const CustomerForm = React.forwardRef((_, ref) => {\n const { t } = useTranslation()\n\n const form = useFormContext()\n\n const staffs = useWatch({\n control: form.control,\n name: \"staffs\",\n defaultValue: [],\n })\n\n const addStaff = () => {\n const nextStaffs = [...(staffs || []), INIT_STAFF]\n form.setValue(\"staffs\", nextStaffs)\n }\n\n const removeStaff = (index: number) => {\n form.clearErrors(`staffs.${index}.email`)\n form.clearErrors(`staffs.${index}.displayName`)\n form.clearErrors(`staffs.${index}.telephone`)\n const nextStaffs = (staffs || []).filter((_, i) => i !== index)\n form.setValue(\"staffs\", nextStaffs)\n }\n\n return (\n
\n
\n
\n

{t(\"customer.form.required\")}

\n
\n
\n (\n \n \n {t(\"customer.form.organizationName\")}\n *\n \n \n \n \n \n \n )}\n />\n
\n
\n (\n \n \n {t(\"customer.form.representativeName\")}\n *\n \n \n \n \n \n \n )}\n />\n
\n
\n (\n \n \n {t(\"customer.form.businessRegistrationNumber\")}\n *\n \n \n {\n form.setValue(\n \"businessRegistrationNumber\",\n formatBusinessRegistrationNumber(e.target.value),\n )\n }}\n />\n \n \n \n )}\n />\n
\n
\n
\n\n
\n
\n

{t(\"customer.form.additional\")}

\n
\n
\n (\n \n {t(\"customer.form.address\")}\n \n \n \n \n \n )}\n />\n
\n
\n
\n \n {t(\"customer.form.taxRegistrationId\")}\n \n \n
\n (\n \n \n {\n form.setValue(\n \"taxRegistrationId\",\n formatTaxRegistrationId(e.target.value),\n )\n }}\n />\n \n \n \n )}\n />\n
\n
\n (\n \n {t(\"customer.form.businessType\")}\n \n \n \n \n \n )}\n />\n
\n
\n (\n \n {t(\"customer.form.businessItem\")}\n \n \n \n \n \n )}\n />\n
\n
\n
\n
\n\n
\n

{t(\"customer.form.memo\")}

\n (\n \n {t(\"customer.form.memo\")}\n \n \n \n \n \n )}\n />\n
\n\n

{t(\"customer.form.staff\")}

\n {staffs?.map((_, index) => (\n
\n
\n

{t(\"customer.form.staff.title\", { index: index + 1 })}

\n
\n {index > 0 && (\n removeStaff(index)}\n >\n {t(\"customer.form.staff.delete\")}\n \n )}\n
\n
\n
\n
\n (\n \n \n {t(\"customer.form.staff.email\")}\n *\n \n \n \n \n \n \n )}\n />\n
\n
\n (\n \n {t(\"customer.form.staff.name\")}\n \n \n \n \n \n )}\n />\n
\n
\n (\n \n {t(\"customer.form.staff.telephone\")}\n \n {\n const formattedValue = formatPhoneNumber(e.target.value)\n form.setValue(`staffs.${index}.telephone`, formattedValue)\n }}\n />\n \n \n \n )}\n />\n
\n
\n
\n ))}\n\n
\n = 5}\n startContent={}\n >\n {t(\"customer.form.staff.add\")}\n \n
\n
\n
\n )\n})\nCustomerForm.displayName = \"CustomerForm\"\n\ntype CustomerFormSubmitterProps = {\n onCancel: () => void\n isEditMode: boolean\n isLoading: boolean\n}\n\nexport function CustomerFormSubmitter({\n onCancel,\n isEditMode,\n isLoading,\n}: CustomerFormSubmitterProps) {\n const { t } = useTranslation()\n\n return (\n
\n \n \n {!isEditMode\n ? t(\"customer.form.submit.create\")\n : t(\"customer.form.submit.edit\")}\n \n
\n )\n}\n","import { useMutation, useQueryClient } from \"@tanstack/react-query\"\nimport * as React from \"react\"\nimport { useTranslation } from \"react-i18next\"\n\nimport {\n customerQueries,\n PostCustomerApi,\n postCustomerApi,\n PutCustomerApi,\n putCustomerApi,\n} from \"@/clients/customers\"\nimport { useSnackbarStore } from \"@/store/snackbarStore\"\nimport { toApiErrorMessage } from \"@/clients/toApiErrorMessage\"\nimport { CustomerModel } from \"@/features/customers/models\"\nimport { useBoltaEventEmitter } from \"@/features/events\"\n\nimport { CustomerFormValues } from \"./CustomerForm.types\"\n\nexport type UseCustomerFormSubmitProps = {\n workspaceId: number\n mode: \"create\" | \"update\"\n customerId?: number\n onSuccess?: (response: CustomerModel) => void\n onError?: (error: Error) => void\n}\n\nexport const useCustomerFormSubmit = ({\n workspaceId,\n mode,\n customerId,\n onSuccess,\n onError,\n}: UseCustomerFormSubmitProps) => {\n const emitter = useBoltaEventEmitter()\n\n const { t } = useTranslation()\n const queryClient = useQueryClient()\n const openSnackbar = useSnackbarStore(state => state.openSnackbar)\n\n const { mutate: postCustomerMutate, isPending: isPendingPostCustomer } =\n useMutation({\n mutationFn: postCustomerApi,\n })\n\n const { mutate: putCustomerMutate, isPending: isPendingPutCustomer } = useMutation({\n mutationFn: putCustomerApi,\n })\n\n const upsertCustomer = React.useCallback(\n (data: CustomerFormValues) => {\n const commonOnSuccess = (response: CustomerModel) => {\n emitter.emit(\"clicked__submit__create_customer\", {\n workspaceId,\n })\n queryClient.invalidateQueries(customerQueries.customers({ workspaceId }))\n queryClient.invalidateQueries(\n customerQueries.customerBy({\n workspaceId,\n customerId,\n }),\n )\n onSuccess?.(response)\n }\n\n const commonOnError = (error: Error) => {\n const message = toApiErrorMessage(t)(error)\n openSnackbar(message, \"danger\")\n onError?.(error)\n }\n\n if (mode === \"create\") {\n const createRequestBody = createPostRequestBody(data)\n postCustomerMutate(\n {\n ...createRequestBody,\n workspaceId,\n },\n {\n onSuccess: args => {\n openSnackbar(t(\"customer.created.success\"), \"success\")\n commonOnSuccess(args)\n },\n onError: commonOnError,\n },\n )\n }\n\n if (mode === \"update\" && customerId) {\n const updateRequestBody = createPutRequestBody(data)\n putCustomerMutate(\n {\n ...updateRequestBody,\n workspaceId,\n customerId,\n },\n {\n onSuccess: args => {\n openSnackbar(t(\"customer.updated.success\"), \"success\")\n commonOnSuccess(args)\n },\n onError: commonOnError,\n },\n )\n }\n },\n [\n customerId,\n mode,\n onError,\n onSuccess,\n openSnackbar,\n postCustomerMutate,\n putCustomerMutate,\n queryClient,\n t,\n workspaceId,\n emitter,\n ],\n )\n\n const isLoading = isPendingPostCustomer || isPendingPutCustomer\n return {\n upsertCustomer,\n isLoading,\n }\n}\n\nconst createPostRequestBody = (\n data: CustomerFormValues,\n): PostCustomerApi[\"RequestBody\"] => {\n return {\n ...data,\n businessRegistrationNumber: data.businessRegistrationNumber || \"\",\n organizationName: data.organizationName || \"\",\n representativeName: data.representativeName || \"\",\n address: data.address,\n taxRegistrationId: data.taxRegistrationId,\n businessType: data.businessType,\n businessItem: data.businessItem,\n memo: data.memo,\n staffs: (data.staffs || []).map(staff => ({\n ...staff,\n useNotification: {\n email: staff.useNotification?.email ?? false,\n kakaoTalk: staff.useNotification?.kakaoTalk ?? false,\n },\n })),\n }\n}\n\nconst createPutRequestBody = (\n data: CustomerFormValues,\n): PutCustomerApi[\"RequestBody\"] => {\n return {\n ...data,\n businessRegistrationNumber: data.businessRegistrationNumber || \"\",\n organizationName: data.organizationName || \"\",\n representativeName: data.representativeName || \"\",\n address: data.address,\n taxRegistrationId: data.taxRegistrationId,\n businessType: data.businessType,\n businessItem: data.businessItem,\n memo: data.memo,\n staffs: (data.staffs || []).map(staff => ({\n ...staff,\n useNotification: {\n email: staff.useNotification?.email ?? false,\n kakaoTalk: staff.useNotification?.kakaoTalk ?? false,\n },\n })),\n }\n}\n","import { TFunction } from \"i18next\"\nimport * as z from \"zod\"\n\nexport type CustomerSearchFilters = {\n page: number\n searchText: string\n}\n\nexport const createUseNotificationSchema = () => {\n return z.object({\n kakaoTalk: z.boolean().optional(),\n email: z.boolean().optional(),\n })\n}\nexport type UseNotificationFormValues = z.infer<\n ReturnType\n>\n\nexport const createCustomerStaffSchema = (t: TFunction) => {\n return z.object({\n email: z.string().min(1, t(\"validation.required\")).email(t(\"validation.email\")),\n displayName: z.string().optional(),\n telephone: z.string().optional(),\n useNotification: createUseNotificationSchema(),\n })\n}\n\nexport type CustomerStaffFormValues = z.infer<\n ReturnType\n>\n\nexport const createCustomerFormSchema = (t: TFunction) => {\n return z.object({\n id: z.number().optional(),\n businessRegistrationNumber: z.string().min(1, t(\"validation.required\")),\n organizationName: z.string().min(1, t(\"validation.required\")),\n representativeName: z.string().min(1, t(\"validation.required\")),\n staffs: z.array(createCustomerStaffSchema(t)).nullish().default([]),\n address: z.string().optional(),\n businessItem: z.string().optional(),\n businessType: z.string().optional(),\n taxRegistrationId: z.string().optional(),\n memo: z.string().optional(),\n })\n}\n\nexport type CustomerFormValues = z.infer>\n","import { useForm } from \"react-hook-form\"\nimport * as React from \"react\"\nimport { zodResolver } from \"@hookform/resolvers/zod\"\nimport { useTranslation } from \"react-i18next\"\n\nimport { createCustomerFormSchema, CustomerFormValues } from \"./CustomerForm.types\"\n\nexport type UseCustomerFormValuesProps = {\n initialValues?: CustomerFormValues\n}\n\nconst DEFAULT_INITIAL_VALUES: CustomerFormValues = {\n businessRegistrationNumber: \"\",\n organizationName: \"\",\n representativeName: \"\",\n staffs: [],\n}\n\nexport const useCustomerFormValues = ({\n initialValues,\n}: UseCustomerFormValuesProps = {}) => {\n const { t } = useTranslation()\n\n const schema = React.useMemo(() => {\n return createCustomerFormSchema(t)\n }, [t])\n\n const form = useForm({\n defaultValues: {\n ...DEFAULT_INITIAL_VALUES,\n ...initialValues,\n },\n mode: \"onSubmit\",\n resolver: zodResolver(schema),\n })\n\n React.useEffect(() => {\n if (initialValues) {\n form.reset(initialValues)\n }\n }, [initialValues, form])\n\n return form\n}\n","export * from \"./CustomerForm\"\nexport * from \"./CustomerForm.types\"\nexport * from \"./useCustomerFormSubmit\"\nexport * from \"./useCustomerFormValues\"\n","import * as React from \"react\"\nimport { Input } from \"@nextui-org/react\"\nimport { ChevronDownIcon } from \"lucide-react\"\n\nimport { IconLoader } from \"@/containers/Loaders\"\nimport { CustomerStaffModel } from \"@/features/customers/models\"\nimport { useAutocomplete } from \"@/hooks/useAutocomplete\"\nimport { cn } from \"@/utils/styles\"\n\ntype CustomerStaffsAutocompleteProps = {\n value: string\n staffs: CustomerStaffModel[]\n onSelect: (staff: CustomerStaffModel | null) => void\n onClear: () => void\n onChangeInput?: (value: string) => void\n placeholder?: string\n error?: string\n isLoading?: boolean\n isInvalid?: boolean\n disabled?: boolean\n}\n\nexport const CustomerStaffsAutocomplete = React.forwardRef<\n HTMLInputElement,\n CustomerStaffsAutocompleteProps\n>(\n (\n {\n value,\n staffs,\n onSelect,\n onClear,\n onChangeInput,\n placeholder,\n error,\n isLoading,\n isInvalid,\n disabled,\n },\n ref,\n ) => {\n const scrollAreaRef = React.useRef(null)\n const inputRef = React.useRef(null)\n\n const onSearch = (value: string) => {\n onChangeInput?.(value)\n if (value === \"\") {\n return staffs\n }\n\n const searched = staffs.filter(staff => {\n return (\n staff.email?.toLowerCase().includes(value.toLowerCase()) ||\n staff.displayName?.toLowerCase().includes(value.toLowerCase())\n )\n })\n return searched\n }\n\n const identify = (item: CustomerStaffModel) => {\n return item.email || item.displayName || \"\"\n }\n\n const {\n searchText,\n searchedItems,\n activeKey,\n isOpened,\n setOpened,\n handleValueChange,\n handleSelectItem,\n handleKeyDown,\n handleFocus,\n } = useAutocomplete({\n query: value,\n items: staffs,\n identify,\n onSearch,\n onSelect,\n onClear,\n scrollAreaRef,\n })\n\n return (\n
\n \n {isLoading ? (\n \n ) : (\n \n )}\n
\n }\n />\n\n {isOpened && (\n
\n {\n setOpened(false)\n }}\n />\n\n
\n \n {staffs.length === 0 && (\n
\n 등록된 고객이 없습니니다.\n
\n )}\n {searchedItems.map((item, index) => {\n const isActive = activeKey === index\n return (\n {\n handleSelectItem(item)\n }}\n >\n {item.email}\n {item.displayName && (\n \n ({item.displayName})\n \n )}\n
\n )\n })}\n
\n \n \n )}\n \n )\n },\n)\nCustomerStaffsAutocomplete.displayName = \"CustomerStaffsAutocomplete\"\n","export * from \"./CustomerStaffsAutocomplete\"\n","export * from \"./customer-autocomplete\"\nexport * from \"./customer-form\"\nexport * from \"./customer-staffs-autocomplete\"\n","import { isNil } from \"@fxts/core\"\n\nimport { formatBusinessRegistrationNumber } from \"@/utils/format\"\n\n/**\n * 사업자등록번호가 같은지 비교합니다.\n * 사업자등록번호가 formatting하여 formatting 되지 않은 값도 비교합니다.\n */\nexport const isEqualsBusinessRegistrationNumber = (a: string, b: string) => {\n if (isNil(a) && isNil(b)) {\n return false\n }\n\n if (a === \"\" && b === \"\") {\n return false\n }\n\n const aValue = formatBusinessRegistrationNumber(a)\n const bValue = formatBusinessRegistrationNumber(b)\n return aValue === bValue\n}\n","import { isNil } from \"@fxts/core\"\n\nimport { formatTaxRegistrationId } from \"@/utils/format\"\n\nexport const isEqualsTaxRegistrationId = (a: string, b: string) => {\n if (isNil(a) && isNil(b)) {\n return false\n }\n\n if (a === \"\" && b === \"\") {\n return false\n }\n\n const aValue = formatTaxRegistrationId(a)\n const bValue = formatTaxRegistrationId(b)\n return aValue === bValue\n}\n","import { isNil } from \"@fxts/core\"\n\nimport { CustomerModel } from \"../models\"\nimport { isEqualsBusinessRegistrationNumber } from \"./isEqualsBusinessRegistrationNumber\"\nimport { isEqualsTaxRegistrationId } from \"./isEqualsTaxRegistrationId\"\n\ntype CustomerEquality = Pick<\n CustomerModel,\n \"businessRegistrationNumber\" | \"taxRegistrationId\"\n>\nexport const isEqualsCustomer = (a: CustomerEquality, b: CustomerEquality) => {\n if (isNil(a) || isNil(b)) {\n return false\n }\n\n const isSameBusinessNumber = isEqualsBusinessRegistrationNumber(\n a.businessRegistrationNumber,\n b.businessRegistrationNumber,\n )\n if (a.taxRegistrationId || b.taxRegistrationId) {\n const isSameTaxRegistrationId = isEqualsTaxRegistrationId(\n a.taxRegistrationId || \"\",\n b.taxRegistrationId || \"\",\n )\n return isSameBusinessNumber && isSameTaxRegistrationId\n }\n return isSameBusinessNumber\n}\n","import { BUSINESS_NUMBER_FORMAT } from \"@/constants/regex\"\n\nexport const toCustomerSearchKeyword = (value: string) => {\n let keyword = value\n if (BUSINESS_NUMBER_FORMAT.test(value)) {\n keyword = keyword.replace(/-/g, \"\")\n }\n return keyword\n}\n","import { CustomerModel, CustomerStaffModel } from \"../models\"\n\nexport const toFirstStaffAsAssigneeFromCustomer = (\n customer?: CustomerModel,\n): CustomerStaffModel[] => {\n if (customer?.staffs && customer?.staffs.length > 0) {\n const firstStaff = customer.staffs[0]\n const firstAssigneeStaff = {\n ...firstStaff,\n useEmailOnIssuance: true,\n }\n return [firstAssigneeStaff]\n }\n return []\n}\n","export * from \"./isEqualsBusinessRegistrationNumber\"\nexport * from \"./isEqualsCustomer\"\nexport * from \"./isEqualsTaxRegistrationId\"\nexport * from \"./toCustomerSearchKeyword\"\nexport * from \"./toFirstStaffAsAssigneeFromCustomer\"\n","export * from \"./containers\"\nexport * from \"./helpers\"\nexport * from \"./models\"\n","import * as React from \"react\"\n\nexport interface UseAutocompleteProps {\n /**\n * 검색할 아이템 목록\n */\n items: TItem[]\n /**\n * 아이템을 식별하는 함수\n */\n identify: (item: TItem) => string\n /**\n * 검색 시 호출되는 함수\n */\n onSearch: (value: string) => TItem[]\n /**\n * 스크롤 영역\n */\n scrollAreaRef: React.RefObject | null\n /**\n * 검색 쿼리\n */\n query?: string\n /**\n * 최대 선택 가능한 아이템 수\n */\n maxSelectableCount?: number\n /**\n * 초기 선택 아이템\n */\n initialValue?: TItem | TItem[] | null\n /**\n * 아이템 선택 시 호출되는 함수\n */\n onSelect?: (item: TItem | null) => void\n /**\n * 검색 초기화 시 호출되는 함수\n */\n onClear?: () => void\n /**\n * 검색하여 List가 없는 경우 Add UI가 노출되고 Click/Enter로 추가되는 함수\n */\n onClickAdd?: (value: string) => void\n /**\n * 키보드 이벤트 핸들러\n */\n onKeyDown?: (e: React.KeyboardEvent) => void\n}\n\ninterface UseAutocompleteReturn {\n searchText: string\n setSearchText: (value: string) => void\n searchedItems: TItem[]\n activeKey: number\n setActiveKey: (index: number) => void\n isOpened: boolean\n setOpened: (focused: boolean) => void\n handleValueChange: (value: string) => void\n handleSelectItem: (item: TItem) => void\n handleKeyDown: (e: React.KeyboardEvent) => void\n handleFocus: () => void\n selectedItems: TItem[]\n hasExactMatchedIndex: boolean\n handleItemRef: (ref: HTMLElement | null, key: number) => void\n}\n\nexport const useAutocomplete = ({\n query,\n items,\n identify,\n scrollAreaRef,\n maxSelectableCount = 1,\n initialValue = null,\n onSelect,\n onClear,\n onSearch,\n onClickAdd,\n onKeyDown,\n}: UseAutocompleteProps): UseAutocompleteReturn => {\n const itemRefs = React.useRef>(new Map())\n const [searchText, setSearchText] = React.useState(query || \"\")\n const [searchedItems, setSearchedItems] = React.useState(items)\n const [activeKey, setActiveKey] = React.useState(-1)\n const [isOpened, setOpened] = React.useState(false)\n const [selectedItems, setSelectedItems] = React.useState(() => {\n if (!initialValue) {\n return []\n }\n const isArray = Array.isArray(initialValue)\n return isArray ? initialValue.slice(0, maxSelectableCount) : [initialValue]\n })\n\n React.useEffect(\n function initializeSearchedItems() {\n setSearchedItems(items)\n setActiveKey(-1)\n },\n [items],\n )\n\n React.useEffect(\n function initializeSearchText() {\n setSearchText(query || \"\")\n },\n [query],\n )\n\n React.useEffect(() => {\n if (activeKey >= 0) {\n const activeRef = itemRefs.current.get(activeKey)\n if (activeRef && scrollAreaRef?.current) {\n const container = scrollAreaRef.current\n const containerRect = container.getBoundingClientRect()\n const activeItemRect = activeRef.getBoundingClientRect()\n const isItemAbove = activeItemRect.top < containerRect.top\n const isItemBelow = activeItemRect.bottom > containerRect.bottom\n if (isItemAbove || isItemBelow) {\n const prevScrollTop = container.scrollTop\n const topDiff = activeItemRect.top - containerRect.top\n const middlePosition = (containerRect.height - activeItemRect.height) / 2\n const position = prevScrollTop + topDiff - middlePosition\n container.scrollTo({\n top: position,\n behavior: \"smooth\",\n })\n }\n }\n }\n }, [activeKey, scrollAreaRef])\n\n const handleItemRef = (ref: HTMLElement | null, key: number) => {\n if (ref) {\n itemRefs.current.set(key, ref)\n } else {\n itemRefs.current.delete(key)\n }\n }\n\n const getExactMatchedIndex = (items: TItem[], value: string) => {\n const matchedIndex = items.findIndex(item => {\n return identify(item).toLowerCase() === value.toLowerCase()\n })\n return matchedIndex\n }\n\n const handleValueChange = (value: string) => {\n setSearchText(value)\n const searchedItems = onSearch?.(value)\n if (searchedItems) {\n setSearchedItems(searchedItems)\n }\n\n const exactMatchedIndex = getExactMatchedIndex(searchedItems, value)\n setActiveKey(exactMatchedIndex)\n }\n\n const handleSelectItem = (item: TItem) => {\n if (maxSelectableCount === 1) {\n setSelectedItems([item])\n } else {\n const newSelectedItems = [...selectedItems, item].slice(0, maxSelectableCount)\n setSelectedItems(newSelectedItems)\n }\n onSelect?.(item)\n setSearchText(identify(item))\n setOpened(false)\n }\n\n const handleClear = () => {\n setOpened(false)\n handleValueChange(\"\")\n setActiveKey(-1)\n onClear?.()\n }\n\n const handleKeyDown = (e: React.KeyboardEvent) => {\n onKeyDown?.(e)\n\n switch (e.key) {\n case \"Enter\": {\n e.preventDefault()\n if (e.nativeEvent.isComposing) return\n\n if (searchText.length > 0 && activeKey < 0) {\n const exactMatchIndex = getExactMatchedIndex(items, searchText)\n if (exactMatchIndex >= 0) {\n handleSelectItem(items[exactMatchIndex])\n return\n }\n\n if (onClickAdd) {\n onClickAdd(searchText)\n setOpened(false)\n return\n }\n return\n }\n\n if (activeKey >= 0) {\n handleSelectItem(searchedItems[activeKey])\n }\n\n break\n }\n case \"ArrowUp\": {\n e.preventDefault()\n if (activeKey > 0) {\n setActiveKey(prevKey => prevKey - 1)\n }\n break\n }\n case \"ArrowDown\": {\n e.preventDefault()\n if (e.keyCode === 229) return\n if (e.nativeEvent.isComposing) return\n if (!isOpened) {\n setOpened(true)\n return\n }\n if (activeKey < searchedItems.length - 1) {\n setActiveKey(prevKey => prevKey + 1)\n }\n break\n }\n case \"Backspace\": {\n if (e.nativeEvent.isComposing) return\n if (searchText === \"\") {\n handleClear()\n }\n break\n }\n case \"Escape\": {\n e.preventDefault()\n handleClear()\n break\n }\n case \"End\": {\n e.preventDefault()\n e.stopPropagation()\n break\n }\n default: {\n if (!isOpened) {\n setOpened(true)\n }\n break\n }\n }\n }\n\n const handleFocus = () => {\n handleValueChange(\"\")\n setActiveKey(-1)\n onClear?.()\n setOpened(true)\n }\n\n const hasExactMatchedIndex = getExactMatchedIndex(searchedItems, searchText) >= 0\n\n return {\n searchText,\n setSearchText,\n searchedItems,\n activeKey,\n setActiveKey,\n isOpened,\n setOpened,\n handleValueChange,\n handleSelectItem,\n handleKeyDown,\n handleFocus,\n selectedItems,\n hasExactMatchedIndex,\n handleItemRef,\n }\n}\n"],"names":["_g","_defs","_extends","Object","assign","bind","n","e","arguments","length","t","r","hasOwnProperty","call","apply","__webpack_exports__","Z","props","react__WEBPACK_IMPORTED_MODULE_0__","createElement","xmlns","width","height","fill","clipPath","stroke","strokeLinecap","strokeLinejoin","strokeWidth","d","id","_path","profileId","useProfileStore","getState","getProfileAccountId","fetchCustomerListApi","param","workspaceId","params","data","body","instance","method","url","concat","searchKeyword","trim","undefined","fetchCustomerApi","customerId","postCustomerApi","requestBody","apiPrivateClient","putCustomerApi","toSelectCustomerModel","staffs","toSelectCustomerStaffModel","businessRegistrationNumber","formatBusinessRegistrationNumber","pipe","map","staff","email","displayName","telephone","formatPhoneNumber","toArray","customerQueries","_id","customersWithPagination","size","page","queryOptions","queryKey","queryFn","placeholderData","keepPreviousData","select","res","content","customers","customerBy","Promise","reject","message","enabled","DatePickerComponent","date","minDate","maxDate","isInvalid","openToDate","errorMessage","placeholder","description","inputRef","isClearable","offset","onChange","onBlur","disabled","readOnly","middleware","middlewareProps","isOpen","setIsOpen","useState","CustomInput","forwardRef","ref","value","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsxs","div","className","jsx","Input","isReadOnly","labelPlacement","variant","isDisabled","startContent","CalendarIcon","onClear","onClick","handleChange","dayjs","format","React","crossAxis","mainAxis","flip","offsetMiddleware","shiftMiddleware","popperModifiers","name","options","fn","state","DatePicker","open","selected","Date","locale","ko","dateFormat","customInput","renderCustomHeader","changeYear","changeMonth","decreaseMonth","increaseMonth","prevMonthButtonDisabled","nextMonthButtonDisabled","DatePickerHeader","popperProps","showPopperArrow","months","years","yearRange","start","end","step","arr","i","push","year","getYear","getFullYear","getMonth","Button","isIconOnly","aria-label","style","borderRadius","ChevronLeftIcon","stopPropagation","Dropdown","DropdownTrigger","DropdownMenu","onAction","key","Number","DropdownItem","textValue","String","indexOf","month","ChevronRightIcon","TextField","rules","nextFocus","viewOnly","type","control","setFocus","useFormContext","Controller","render","fieldState","field","Textarea","onValueChange","onKeyDown","isComposing","keyCode","classNames","base","inputWrapper","input","error","Tooltip","placement","crossOffset","maxWidth","showArrow","shouldFlip","children","zIndex","openSnackbar","useSnackbarStore","Fragment","NextuiTooltip","color","AlertCircleIcon","buttonVariants","tv","variants","neutral","primary","secondary","outline","default","sm","lg","icon","defaultVariants","asChild","Comp","Slot","cn","Card","CardHeader","CardTitle","h3","CardDescription","p","CardContent","CardFooter","formVariants","slots","item","required","label","true","Form","FormProvider","FormFieldContext","FormField","Provider","useFormField","fieldContext","itemContext","FormItemContext","getFieldState","formState","formItemId","formDescriptionId","formMessageId","FormItem","FormLabel","Label","htmlFor","FormControl","aria-describedby","aria-invalid","FormDescription","FormMessage","FormRequired","span","inputVariants","md","autoComplete","labelVariants","LabelPrimitive","popoverVariants","overlay","trigger","itemButton","Popover","PopoverPrimitive","PopoverTrigger","PopoverPortal","PopoverContent","align","sideOffset","matchedWidth","PopoverItemButton","button","role","BUSINESS_NUMBER_FORMAT","IconLoader","jsx_runtime","LoaderIcon","TableRowLoader","isEven","Skeleton","CustomerAutocomplete","onSelect","onClickAdd","onChangeInput","isLoading","emitter","useBoltaEventEmitter","scrollAreaRef","getCurrentWorkspaceId","searchText","searchedItems","activeKey","isOpened","setOpened","handleValueChange","handleSelectItem","handleKeyDown","handleFocus","handleItemRef","hasExactMatchedIndex","useAutocomplete","query","items","identify","organizationName","onSearch","filter","customer","taxRegistrationId","toLowerCase","includes","searchStringNumbers","normalizedValue","replace","normalizedQuery","onFocus","SearchIcon","endContent","ChevronDownIcon","index","emit","backgroundColor","PlusIcon","SelectedCustomerBar","representativeName","TextDivider","INIT_STAFF","useNotification","kakaoTalk","CustomerForm","_","useTranslation","form","useWatch","defaultValue","removeStaff","clearErrors","nextStaffs","setValue","h2","target","formatTaxRegistrationId","TextArea","minRows","formattedValue","PlusWhiteIcon","CustomerFormSubmitter","onCancel","isEditMode","useCustomerFormSubmit","mode","onSuccess","onError","queryClient","useQueryClient","mutate","postCustomerMutate","isPending","isPendingPostCustomer","useMutation","mutationFn","putCustomerMutate","isPendingPutCustomer","upsertCustomer","commonOnSuccess","invalidateQueries","response","commonOnError","toApiErrorMessage","createPostRequestBody","args","createPutRequestBody","address","businessType","businessItem","memo","createUseNotificationSchema","z","optional","createCustomerStaffSchema","min","createCustomerFormSchema","nullish","DEFAULT_INITIAL_VALUES","useCustomerFormValues","initialValues","schema","useForm","defaultValues","resolver","zodResolver","reset","CustomerStaffsAutocomplete","isEqualsBusinessRegistrationNumber","a","b","isNil","aValue","isEqualsTaxRegistrationId","isEqualsCustomer","isSameBusinessNumber","isSameTaxRegistrationId","toCustomerSearchKeyword","keyword","test","toFirstStaffAsAssigneeFromCustomer","useEmailOnIssuance","maxSelectableCount","initialValue","itemRefs","Map","setSearchText","setSearchedItems","setActiveKey","selectedItems","setSelectedItems","isArray","slice","activeRef","current","get","container","containerRect","getBoundingClientRect","activeItemRect","isItemAbove","top","isItemBelow","bottom","prevScrollTop","scrollTop","topDiff","middlePosition","scrollTo","behavior","getExactMatchedIndex","findIndex","handleClear","preventDefault","nativeEvent","exactMatchIndex","prevKey","set","delete"],"sourceRoot":""}