@remoteoss/remote-flows 1.3.1 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/{chunk-BB2GHYJY.js → chunk-22HZVTR7.js} +2 -2
- package/dist/{chunk-XXXQA4SY.js → chunk-2ZCOC6FB.js} +2 -2
- package/dist/{chunk-AL2HSQPC.js → chunk-3DGBLO6M.js} +2 -2
- package/dist/{chunk-AD53V4MM.js → chunk-3OX2LLXL.js} +2 -2
- package/dist/{chunk-P5PRB2JC.js → chunk-457SZDZQ.js} +2 -2
- package/dist/chunk-5BRMLRS7.js +2 -0
- package/dist/chunk-5BRMLRS7.js.map +1 -0
- package/dist/{chunk-SQVJRTTA.js → chunk-5PB3CLBH.js} +2 -2
- package/dist/chunk-6LQ6BSOS.js +2 -0
- package/dist/chunk-6LQ6BSOS.js.map +1 -0
- package/dist/{chunk-CWAUKF77.js → chunk-7FMFSOJ3.js} +2 -2
- package/dist/{chunk-3NMCXHSQ.js → chunk-7JDWTTYE.js} +2 -2
- package/dist/{chunk-Q2JVGEYM.js → chunk-7X3WUOTU.js} +2 -2
- package/dist/{chunk-B2OOX56F.js → chunk-A5NDO6CQ.js} +2 -2
- package/dist/{chunk-4G2UMXRE.js → chunk-AGE76E7O.js} +2 -2
- package/dist/{chunk-SRR73QPD.js → chunk-ALC6W3PW.js} +2 -2
- package/dist/{chunk-HIQNB5UN.js → chunk-ARQ2PTEA.js} +2 -2
- package/dist/{chunk-5S54GMUJ.js → chunk-BBOEK4Q5.js} +2 -2
- package/dist/{chunk-3BOFG6MK.js → chunk-BNBEIHLD.js} +2 -2
- package/dist/{chunk-Z3AKMQ4S.js → chunk-CD6F3YL4.js} +2 -2
- package/dist/{chunk-T6KVMOX7.js → chunk-CZ7DTX5L.js} +2 -2
- package/dist/{chunk-AF3YOXUE.js → chunk-DDAMD7E7.js} +2 -2
- package/dist/{chunk-NY7LII5R.js → chunk-EGSUF7OD.js} +2 -2
- package/dist/{chunk-LSNMODBH.js → chunk-EMJ266VJ.js} +2 -2
- package/dist/{chunk-GAF5TFZJ.js → chunk-H327JOTI.js} +2 -2
- package/dist/{chunk-AFGXZINW.js → chunk-HLR4BEDV.js} +2 -2
- package/dist/{chunk-6E467YF3.js → chunk-J3BK2DEH.js} +2 -2
- package/dist/{chunk-ER7DFMME.js → chunk-JWDXZLGS.js} +2 -2
- package/dist/{chunk-PS6EXVKH.js → chunk-KLKPBGKL.js} +2 -2
- package/dist/{chunk-26Y25KF6.js → chunk-LGUGZN57.js} +2 -2
- package/dist/{chunk-CATDB2YM.js → chunk-MD2QFLXC.js} +2 -2
- package/dist/chunk-N3X274GT.js +2 -0
- package/dist/{chunk-W4KHMUDZ.js.map → chunk-N3X274GT.js.map} +1 -1
- package/dist/{chunk-4GXONSSK.js → chunk-NGYAG3LB.js} +2 -2
- package/dist/chunk-NHZTYFOJ.js +2 -0
- package/dist/{chunk-ZUNMNGRC.js.map → chunk-NHZTYFOJ.js.map} +1 -1
- package/dist/{chunk-PNRHCOPF.js → chunk-QKKAJK3A.js} +2 -2
- package/dist/{chunk-FQQKCROC.js → chunk-R5GUJ3IC.js} +2 -2
- package/dist/{chunk-GFVGV76O.js → chunk-RTQ4GKPG.js} +2 -2
- package/dist/{chunk-CM2YPABC.js → chunk-SPMEMAK5.js} +2 -2
- package/dist/{chunk-W3YE53JN.js → chunk-T6Q7IALZ.js} +2 -2
- package/dist/chunk-T6Q7IALZ.js.map +1 -0
- package/dist/chunk-TC3CLBCD.js +2 -0
- package/dist/chunk-TC3CLBCD.js.map +1 -0
- package/dist/{chunk-NP3HE6QX.js → chunk-UEEJS7TB.js} +2 -2
- package/dist/{chunk-JS3H25UQ.js → chunk-UHWPRDRD.js} +2 -2
- package/dist/{chunk-ZZPYYZNT.js → chunk-UIEXB3GW.js} +2 -2
- package/dist/{chunk-KDI2AVBF.js → chunk-V334GIML.js} +2 -2
- package/dist/{chunk-447M3MFN.js → chunk-WO33FKK4.js} +2 -2
- package/dist/{chunk-LFQDVSKU.js → chunk-WUSZWDKK.js} +2 -2
- package/dist/{chunk-ADOJOLLL.js → chunk-X6325UGJ.js} +2 -2
- package/dist/{chunk-2MX3WPCK.js → chunk-YXVNCPUI.js} +2 -2
- package/dist/{chunk-CX735AP4.js → chunk-Z2AKDJE5.js} +2 -2
- package/dist/{chunk-XCA33UL6.js → chunk-ZJAFMNUN.js} +2 -2
- package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +3 -3
- package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentForm.d.ts +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
- package/dist/flows/ContractAmendment/context.d.ts +3 -3
- package/dist/flows/ContractAmendment/hooks.d.ts +3 -3
- package/dist/flows/ContractAmendment/hooks.js +1 -1
- package/dist/flows/ContractAmendment/index.d.ts +3 -3
- package/dist/flows/ContractAmendment/index.js +1 -1
- package/dist/flows/ContractAmendment/types.d.ts +2 -2
- package/dist/flows/ContractAmendment/utils.d.ts +2 -2
- package/dist/flows/ContractorOnboarding/ContractorOnboarding.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +1 -1
- package/dist/flows/ContractorOnboarding/api.d.ts +2 -2
- package/dist/flows/ContractorOnboarding/api.js +1 -1
- package/dist/flows/ContractorOnboarding/components/BasicInformationStep.d.ts +4 -4
- package/dist/flows/ContractorOnboarding/components/BasicInformationStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js +1 -1
- package/dist/flows/ContractorOnboarding/components/OnboardingInvite.d.ts +3 -3
- package/dist/flows/ContractorOnboarding/components/OnboardingInvite.js +1 -1
- package/dist/flows/ContractorOnboarding/components/PricingPlan.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/components/PricingPlan.js +1 -1
- package/dist/flows/ContractorOnboarding/components/SelectCountryStep.d.ts +4 -4
- package/dist/flows/ContractorOnboarding/components/SelectCountryStep.js +1 -1
- package/dist/flows/ContractorOnboarding/context.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/hooks.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/hooks.js +1 -1
- package/dist/flows/ContractorOnboarding/index.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/index.js +1 -1
- package/dist/flows/ContractorOnboarding/types.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/utils.d.ts +2 -2
- package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +3 -3
- package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +3 -3
- package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
- package/dist/flows/CostCalculator/EstimationResults/EstimationResults.d.ts +2 -2
- package/dist/flows/CostCalculator/EstimationResults/EstimationResults.js +1 -1
- package/dist/flows/CostCalculator/SummaryResults/SummaryResults.d.ts +2 -2
- package/dist/flows/CostCalculator/api.d.ts +2 -2
- package/dist/flows/CostCalculator/api.js +1 -1
- package/dist/flows/CostCalculator/components/SalaryField.d.ts +2 -2
- package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
- package/dist/flows/CostCalculator/context.d.ts +3 -3
- package/dist/flows/CostCalculator/hooks.d.ts +3 -3
- package/dist/flows/CostCalculator/hooks.js +1 -1
- package/dist/flows/CostCalculator/index.d.ts +3 -3
- package/dist/flows/CostCalculator/index.js +1 -1
- package/dist/flows/CostCalculator/types.d.ts +2 -2
- package/dist/flows/CostCalculator/utils.d.ts +3 -3
- package/dist/flows/CostCalculator/utils.js +1 -1
- package/dist/flows/Onboarding/OnboardingFlow.d.ts +4 -4
- package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
- package/dist/flows/Onboarding/api.d.ts +4 -4
- package/dist/flows/Onboarding/api.js +1 -1
- package/dist/flows/Onboarding/components/AnnualGrossSalary.d.ts +2 -2
- package/dist/flows/Onboarding/components/AnnualGrossSalary.js +1 -1
- package/dist/flows/Onboarding/components/BasicInformationStep.d.ts +4 -4
- package/dist/flows/Onboarding/components/BasicInformationStep.js +1 -1
- package/dist/flows/Onboarding/components/BenefitsStep.d.ts +4 -4
- package/dist/flows/Onboarding/components/BenefitsStep.js +1 -1
- package/dist/flows/Onboarding/components/ContractDetailsStep.d.ts +4 -4
- package/dist/flows/Onboarding/components/ContractDetailsStep.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingForm.d.ts +4 -4
- package/dist/flows/Onboarding/components/OnboardingForm.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingInvite.d.ts +3 -3
- package/dist/flows/Onboarding/components/OnboardingInvite.js +1 -1
- package/dist/flows/Onboarding/components/ReviewStep.d.ts +4 -4
- package/dist/flows/Onboarding/components/SaveDraftButton.d.ts +3 -3
- package/dist/flows/Onboarding/components/SelectCountryStep.d.ts +4 -4
- package/dist/flows/Onboarding/components/SelectCountryStep.js +1 -1
- package/dist/flows/Onboarding/context.d.ts +6 -6
- package/dist/flows/Onboarding/hooks.d.ts +4 -4
- package/dist/flows/Onboarding/hooks.js +1 -1
- package/dist/flows/Onboarding/index.d.ts +4 -4
- package/dist/flows/Onboarding/index.js +1 -1
- package/dist/flows/Onboarding/types.d.ts +4 -4
- package/dist/flows/Onboarding/utils.d.ts +4 -4
- package/dist/flows/Termination/AdditionalDetailsForm.d.ts +4 -4
- package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
- package/dist/flows/Termination/EmployeeComunicationForm.d.ts +4 -4
- package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
- package/dist/flows/Termination/PaidTimeOffForm.d.ts +4 -4
- package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
- package/dist/flows/Termination/TerminationDetailsForm.d.ts +4 -4
- package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
- package/dist/flows/Termination/TerminationFlow.d.ts +4 -4
- package/dist/flows/Termination/TerminationFlow.js +1 -1
- package/dist/flows/Termination/TerminationForm.d.ts +4 -4
- package/dist/flows/Termination/TerminationForm.js +1 -1
- package/dist/flows/Termination/api.d.ts +5 -5
- package/dist/flows/Termination/api.js +1 -1
- package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformationFees.js +1 -1
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.d.ts +6 -6
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.d.ts +6 -6
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.js +1 -1
- package/dist/flows/Termination/components/PaidTimeOff/types.d.ts +6 -6
- package/dist/flows/Termination/components/TerminationDialogInfoContent/TerminationDialogInfoContent.js +1 -1
- package/dist/flows/Termination/context.d.ts +4 -4
- package/dist/flows/Termination/hooks.d.ts +4 -4
- package/dist/flows/Termination/hooks.js +1 -1
- package/dist/flows/Termination/index.d.ts +6 -6
- package/dist/flows/Termination/index.js +1 -1
- package/dist/flows/Termination/json-schemas/schema.d.ts +4 -4
- package/dist/flows/Termination/types.d.ts +4 -4
- package/dist/flows/Termination/utils.d.ts +4 -4
- package/dist/flows/types.d.ts +2 -2
- package/dist/flows/useStepState.d.ts +1 -1
- package/dist/flows/useStepState.js +1 -1
- package/dist/index.d.ts +10 -10
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/internals.d.ts +6 -5
- package/dist/internals.js +1 -1
- package/dist/{mutations-Dhsqyt9R.d.ts → mutations-DRSXskcC.d.ts} +1 -1
- package/dist/{remoteFlows-8lgzhRZb.d.ts → remoteFlows-C1t2xwls.d.ts} +8 -8
- package/dist/{types-CR6ZHxiM.d.ts → types-BKLre2R6.d.ts} +4 -4
- package/dist/{types-CgFQV0b1.d.ts → types-C2LcMRHy.d.ts} +4 -4
- package/dist/{types-7X9Do4Qx.d.ts → types-C6psw625.d.ts} +3 -3
- package/dist/{types-BH1usu8z.d.ts → types-CQoX--YI.d.ts} +1 -1
- package/dist/{types.gen-q3-YX6jr.d.ts → types.gen-D7WEgMDJ.d.ts} +1 -1
- package/dist/{utils-CGX-jPIw.d.ts → utils-CiZrW4Ac.d.ts} +1 -1
- package/package.json +3 -3
- package/dist/chunk-FOPSJRQG.js +0 -2
- package/dist/chunk-FOPSJRQG.js.map +0 -1
- package/dist/chunk-LAXQMTDQ.js +0 -2
- package/dist/chunk-LAXQMTDQ.js.map +0 -1
- package/dist/chunk-PJBAQZ6G.js +0 -2
- package/dist/chunk-PJBAQZ6G.js.map +0 -1
- package/dist/chunk-W3YE53JN.js.map +0 -1
- package/dist/chunk-W4KHMUDZ.js +0 -2
- package/dist/chunk-ZUNMNGRC.js +0 -2
- /package/dist/{chunk-BB2GHYJY.js.map → chunk-22HZVTR7.js.map} +0 -0
- /package/dist/{chunk-XXXQA4SY.js.map → chunk-2ZCOC6FB.js.map} +0 -0
- /package/dist/{chunk-AL2HSQPC.js.map → chunk-3DGBLO6M.js.map} +0 -0
- /package/dist/{chunk-AD53V4MM.js.map → chunk-3OX2LLXL.js.map} +0 -0
- /package/dist/{chunk-P5PRB2JC.js.map → chunk-457SZDZQ.js.map} +0 -0
- /package/dist/{chunk-SQVJRTTA.js.map → chunk-5PB3CLBH.js.map} +0 -0
- /package/dist/{chunk-CWAUKF77.js.map → chunk-7FMFSOJ3.js.map} +0 -0
- /package/dist/{chunk-3NMCXHSQ.js.map → chunk-7JDWTTYE.js.map} +0 -0
- /package/dist/{chunk-Q2JVGEYM.js.map → chunk-7X3WUOTU.js.map} +0 -0
- /package/dist/{chunk-B2OOX56F.js.map → chunk-A5NDO6CQ.js.map} +0 -0
- /package/dist/{chunk-4G2UMXRE.js.map → chunk-AGE76E7O.js.map} +0 -0
- /package/dist/{chunk-SRR73QPD.js.map → chunk-ALC6W3PW.js.map} +0 -0
- /package/dist/{chunk-HIQNB5UN.js.map → chunk-ARQ2PTEA.js.map} +0 -0
- /package/dist/{chunk-5S54GMUJ.js.map → chunk-BBOEK4Q5.js.map} +0 -0
- /package/dist/{chunk-3BOFG6MK.js.map → chunk-BNBEIHLD.js.map} +0 -0
- /package/dist/{chunk-Z3AKMQ4S.js.map → chunk-CD6F3YL4.js.map} +0 -0
- /package/dist/{chunk-T6KVMOX7.js.map → chunk-CZ7DTX5L.js.map} +0 -0
- /package/dist/{chunk-AF3YOXUE.js.map → chunk-DDAMD7E7.js.map} +0 -0
- /package/dist/{chunk-NY7LII5R.js.map → chunk-EGSUF7OD.js.map} +0 -0
- /package/dist/{chunk-LSNMODBH.js.map → chunk-EMJ266VJ.js.map} +0 -0
- /package/dist/{chunk-GAF5TFZJ.js.map → chunk-H327JOTI.js.map} +0 -0
- /package/dist/{chunk-AFGXZINW.js.map → chunk-HLR4BEDV.js.map} +0 -0
- /package/dist/{chunk-6E467YF3.js.map → chunk-J3BK2DEH.js.map} +0 -0
- /package/dist/{chunk-ER7DFMME.js.map → chunk-JWDXZLGS.js.map} +0 -0
- /package/dist/{chunk-PS6EXVKH.js.map → chunk-KLKPBGKL.js.map} +0 -0
- /package/dist/{chunk-26Y25KF6.js.map → chunk-LGUGZN57.js.map} +0 -0
- /package/dist/{chunk-CATDB2YM.js.map → chunk-MD2QFLXC.js.map} +0 -0
- /package/dist/{chunk-4GXONSSK.js.map → chunk-NGYAG3LB.js.map} +0 -0
- /package/dist/{chunk-PNRHCOPF.js.map → chunk-QKKAJK3A.js.map} +0 -0
- /package/dist/{chunk-FQQKCROC.js.map → chunk-R5GUJ3IC.js.map} +0 -0
- /package/dist/{chunk-GFVGV76O.js.map → chunk-RTQ4GKPG.js.map} +0 -0
- /package/dist/{chunk-CM2YPABC.js.map → chunk-SPMEMAK5.js.map} +0 -0
- /package/dist/{chunk-NP3HE6QX.js.map → chunk-UEEJS7TB.js.map} +0 -0
- /package/dist/{chunk-JS3H25UQ.js.map → chunk-UHWPRDRD.js.map} +0 -0
- /package/dist/{chunk-ZZPYYZNT.js.map → chunk-UIEXB3GW.js.map} +0 -0
- /package/dist/{chunk-KDI2AVBF.js.map → chunk-V334GIML.js.map} +0 -0
- /package/dist/{chunk-447M3MFN.js.map → chunk-WO33FKK4.js.map} +0 -0
- /package/dist/{chunk-LFQDVSKU.js.map → chunk-WUSZWDKK.js.map} +0 -0
- /package/dist/{chunk-ADOJOLLL.js.map → chunk-X6325UGJ.js.map} +0 -0
- /package/dist/{chunk-2MX3WPCK.js.map → chunk-YXVNCPUI.js.map} +0 -0
- /package/dist/{chunk-CX735AP4.js.map → chunk-Z2AKDJE5.js.map} +0 -0
- /package/dist/{chunk-XCA33UL6.js.map → chunk-ZJAFMNUN.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/ui/checkbox.tsx","../src/components/ui/file-uploader.tsx","../src/components/ui/radio-group.tsx","../src/components/ui/select.tsx","../src/components/ui/badge.tsx","../src/components/ui/dialog.tsx","../src/components/ui/alert.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as CheckboxPrimitive from '@radix-ui/react-checkbox';\nimport { Check } from 'lucide-react';\n\nimport { cn } from '@/src/lib/utils';\n\nconst Checkbox = React.forwardRef<\n React.ComponentRef<typeof CheckboxPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <CheckboxPrimitive.Root\n ref={ref}\n className={cn(\n 'peer h-4 w-4 shrink-0 rounded-sm border border-input ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-checkbox data-[state=checked]:text-primary',\n className,\n )}\n {...props}\n >\n <CheckboxPrimitive.Indicator\n className={cn('flex items-center justify-center text-current')}\n >\n <Check className='h-4 w-4' />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n));\nCheckbox.displayName = CheckboxPrimitive.Root.displayName;\n\nexport { Checkbox };\n","import React, { useState, useRef, useEffect } from 'react';\nimport { Button } from '@/src/components/ui/button';\nimport { Upload, X } from 'lucide-react';\nimport { cn } from '@/src/lib/utils';\n\n// Convert accept string to readable format (e.g., \".pdf, .doc\" -> \"PDF, DOC\")\nconst getAcceptedFormats = (accept?: string) => {\n if (!accept) return null;\n return accept\n .split(',')\n .map((ext) => ext.trim().toUpperCase())\n .join(', ');\n};\n\ntype FileUploaderProps = {\n onChange: (files: File[]) => void;\n className?: string;\n multiple?: boolean;\n accept?: string;\n files?: File[];\n id?: string;\n};\n\nexport function FileUploader({\n onChange,\n className,\n multiple,\n accept,\n files: externalFiles,\n id,\n}: FileUploaderProps) {\n const [files, setFiles] = useState<File[]>(externalFiles || []);\n const inputRef = useRef<HTMLInputElement>(null);\n\n useEffect(() => {\n if (externalFiles && externalFiles.length > 0) {\n setFiles(externalFiles);\n }\n }, [externalFiles]);\n\n const handleClick = (e: React.MouseEvent<HTMLButtonElement>) => {\n e.preventDefault();\n inputRef.current?.click();\n };\n\n const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n if (e.target.files && e.target.files.length > 0) {\n const newFiles = Array.from(e.target.files);\n\n setFiles([...files, ...newFiles]);\n onChange([...files, ...newFiles]);\n }\n };\n\n const onRemoveFile = (file: File) => {\n setFiles((prevFiles) => prevFiles.filter((f) => f.name !== file.name));\n onChange(files.filter((f) => f.name !== file.name));\n };\n\n const acceptedFormats = getAcceptedFormats(accept);\n\n return (\n <div className={cn('flex flex-col items-start gap-4', className)}>\n <input\n type='file'\n ref={inputRef}\n id={id}\n onChange={handleChange}\n className='hidden'\n aria-label='File upload'\n multiple={multiple}\n accept={accept}\n />\n <Button type='button' onClick={handleClick} className='gap-2'>\n <Upload className='h-4 w-4' />\n Choose File\n </Button>\n {acceptedFormats && (\n <div className='text-sm text-gray-600'>\n Accepted formats:{' '}\n <span className='font-medium'>{acceptedFormats}</span>\n </div>\n )}\n {files.length === 0 && (\n <div className='text-sm'>\n {!multiple ? (\n <span className='font-medium'>No file selected.</span>\n ) : (\n <span className='font-medium'>\n No files selected. You can select multiple files\n </span>\n )}\n </div>\n )}\n {files.length > 0 &&\n files.map((file, index) => (\n <div key={index} className='text-sm flex items-center gap-2'>\n Selected file: <span className='font-medium'>{file.name}</span> (\n {Math.round(file.size / 1024)} KB)\n <Button variant='ghost' onClick={() => onRemoveFile(file)}>\n <X />\n </Button>\n </div>\n ))}\n </div>\n );\n}\n","import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\nimport { CircleIcon } from 'lucide-react';\nimport * as React from 'react';\n\nimport { cn } from '@/src/lib/utils';\n\nfunction RadioGroup({\n className,\n ...props\n}: React.ComponentProps<typeof RadioGroupPrimitive.Root>) {\n return (\n <RadioGroupPrimitive.Root\n data-slot='radio-group'\n className={cn('grid gap-3', className)}\n {...props}\n />\n );\n}\n\nfunction RadioGroupItem({\n className,\n ...props\n}: React.ComponentProps<typeof RadioGroupPrimitive.Item>) {\n return (\n <RadioGroupPrimitive.Item\n data-slot='radio-group-item'\n className={cn(\n 'border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <RadioGroupPrimitive.Indicator\n data-slot='radio-group-indicator'\n className='relative flex items-center justify-center'\n >\n <CircleIcon className='fill-radio absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2' />\n </RadioGroupPrimitive.Indicator>\n </RadioGroupPrimitive.Item>\n );\n}\n\nexport { RadioGroup, RadioGroupItem };\n","import * as React from 'react';\nimport * as SelectPrimitive from '@radix-ui/react-select';\nimport { CheckIcon, ChevronDownIcon, ChevronUpIcon } from 'lucide-react';\n\nimport { cn } from '@/src/lib/utils';\n\nfunction Select({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Root>) {\n return <SelectPrimitive.Root data-slot='select' {...props} />;\n}\n\nfunction SelectGroup({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Group>) {\n return <SelectPrimitive.Group data-slot='select-group' {...props} />;\n}\n\nfunction SelectValue({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Value>) {\n return <SelectPrimitive.Value data-slot='select-value' {...props} />;\n}\n\nfunction SelectTrigger({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Trigger>) {\n return (\n <SelectPrimitive.Trigger\n data-slot='select-trigger'\n className={cn(\n \"border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex w-full items-center justify-between rounded-xl border bg-transparent px-4 py-7 text-sm whitespace-nowrap transition-[color] outline-none disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n 'focus-visible:border-focused',\n className,\n )}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild className='absolute right-4'>\n <ChevronDownIcon className='size-4' />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n );\n}\n\nfunction SelectContent({\n className,\n children,\n position = 'popper',\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Content>) {\n return (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n data-slot='select-content'\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-xl border',\n position === 'popper' &&\n 'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',\n className,\n )}\n position={position}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n position === 'popper' &&\n 'h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1',\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n );\n}\n\nfunction SelectLabel({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Label>) {\n return (\n <SelectPrimitive.Label\n data-slot='select-label'\n className={cn('px-2 py-1.5 text-sm font-medium', className)}\n {...props}\n />\n );\n}\n\nfunction SelectItem({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Item>) {\n return (\n <SelectPrimitive.Item\n data-slot='select-item'\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground min-h-11 justify-between [&_svg:not([class*='text-'])]:text-muted-foreground flex w-full cursor-default items-center gap-2 py-2 px-4 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2\",\n className,\n )}\n {...props}\n >\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n <span className='flex size-3.5 items-center justify-center'>\n <SelectPrimitive.ItemIndicator>\n <CheckIcon className='size-4' />\n </SelectPrimitive.ItemIndicator>\n </span>\n </SelectPrimitive.Item>\n );\n}\n\nfunction SelectSeparator({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Separator>) {\n return (\n <SelectPrimitive.Separator\n data-slot='select-separator'\n className={cn('bg-border pointer-events-none -mx-1 my-1 h-px', className)}\n {...props}\n />\n );\n}\n\nfunction SelectScrollUpButton({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>) {\n return (\n <SelectPrimitive.ScrollUpButton\n data-slot='select-scroll-up-button'\n className={cn(\n 'flex cursor-default items-center justify-center py-1',\n className,\n )}\n {...props}\n >\n <ChevronUpIcon className='size-4' />\n </SelectPrimitive.ScrollUpButton>\n );\n}\n\nfunction SelectScrollDownButton({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>) {\n return (\n <SelectPrimitive.ScrollDownButton\n data-slot='select-scroll-down-button'\n className={cn(\n 'flex cursor-default items-center justify-center py-1',\n className,\n )}\n {...props}\n >\n <ChevronDownIcon className='size-4' />\n </SelectPrimitive.ScrollDownButton>\n );\n}\n\nexport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n};\n","import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '@/src/lib/utils';\n\nconst badgeVariants = cva(\n 'inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden',\n {\n variants: {\n variant: {\n default:\n 'border-transparent bg-badge text-badge-foreground rounded-full [a&]:hover:bg-primary/90',\n secondary:\n 'border-transparent bg-secondary text-secondary-foreground rounded-full [a&]:hover:bg-secondary/90',\n destructive:\n 'border-transparent bg-destructive text-white rounded-full [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40',\n outline:\n 'text-foreground rounded-full [a&]:hover:bg-accent [a&]:hover:text-accent-foreground',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n },\n);\n\nfunction Badge({\n className,\n variant,\n asChild = false,\n ...props\n}: React.ComponentProps<'span'> &\n VariantProps<typeof badgeVariants> & { asChild?: boolean }) {\n const Comp = asChild ? Slot : 'span';\n\n return (\n <Comp\n data-slot='badge'\n className={cn(badgeVariants({ variant }), className)}\n {...props}\n />\n );\n}\n\nexport { Badge, badgeVariants };\n","'use client';\n\nimport * as React from 'react';\nimport * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { XIcon } from 'lucide-react';\n\nimport { cn } from '@/src/lib/utils';\n\nfunction Dialog({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Root>) {\n return <DialogPrimitive.Root data-slot='dialog' {...props} />;\n}\n\nfunction DialogTrigger({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Trigger>) {\n return <DialogPrimitive.Trigger data-slot='dialog-trigger' {...props} />;\n}\n\nfunction DialogPortal({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Portal>) {\n return <DialogPrimitive.Portal data-slot='dialog-portal' {...props} />;\n}\n\nfunction DialogClose({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Close>) {\n return <DialogPrimitive.Close data-slot='dialog-close' {...props} />;\n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Overlay>) {\n return (\n <DialogPrimitive.Overlay\n data-slot='dialog-overlay'\n className={cn(\n 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50',\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction DialogContent({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Content>) {\n return (\n <DialogPortal data-slot='dialog-portal'>\n <DialogOverlay />\n <DialogPrimitive.Content\n data-slot='dialog-content'\n className={cn(\n 'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg',\n className,\n )}\n {...props}\n >\n {children}\n <DialogPrimitive.Close className=\"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 RemoteFlows__Dialog__Close\">\n <XIcon />\n <span className='sr-only'>Close</span>\n </DialogPrimitive.Close>\n </DialogPrimitive.Content>\n </DialogPortal>\n );\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot='dialog-header'\n className={cn('flex flex-col gap-2 text-center sm:text-left', className)}\n {...props}\n />\n );\n}\n\nfunction DialogFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot='dialog-footer'\n className={cn(\n 'flex flex-col-reverse gap-2 sm:flex-row sm:justify-end',\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction DialogTitle({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Title>) {\n return (\n <DialogPrimitive.Title\n data-slot='dialog-title'\n className={cn('text-lg leading-none font-semibold', className)}\n {...props}\n />\n );\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Description>) {\n return (\n <DialogPrimitive.Description\n data-slot='dialog-description'\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n );\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n};\n","import { cva, type VariantProps } from 'class-variance-authority';\nimport * as React from 'react';\n\nimport { cn } from '@/src/lib/utils';\n\nconst alertVariants = cva(\n 'relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current',\n {\n variants: {\n variant: {\n default: 'bg-card text-card-foreground',\n destructive:\n 'text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90',\n warning:\n 'bg-card bg-warning border-warning-border [&>svg]:text-current',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n },\n);\n\nfunction Alert({\n className,\n variant,\n ...props\n}: React.ComponentProps<'div'> & VariantProps<typeof alertVariants>) {\n return (\n <div\n data-slot='alert'\n role='alert'\n className={cn(alertVariants({ variant }), className)}\n {...props}\n />\n );\n}\n\nfunction AlertTitle({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot='alert-title'\n className={cn(\n 'col-start-2 min-h-4 font-medium tracking-tight',\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction AlertDescription({\n className,\n ...props\n}: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot='alert-description'\n className={cn(\n 'text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed inline-block',\n className,\n )}\n {...props}\n />\n );\n}\n\nexport { Alert, AlertDescription, AlertTitle };\n"],"mappings":"wHAEA,UAAYA,MAAW,QACvB,UAAYC,MAAuB,2BACnC,OAAS,SAAAC,MAAa,eAmBhB,cAAA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AAGD,CAAS,EAClD,GAAGE,EACN,CAEJ,CAbSE,EAAAL,GAAA,SAeT,SAASM,GAAW,CAAE,UAAAL,EAAW,GAAGE,CAAM,EAAgC,CACxE,OACEN,EAAC,OACC,YAAU,cACV,UAAWO,EACT,kDACAH,CACF,EACC,GAAGE,EACN,CAEJ,CAXSE,EAAAC,GAAA,cAaT,SAASC,GAAiB,CACxB,UAAAN,EACA,GAAGE,CACL,EAAgC,CAC9B,OACEN,EAAC,OACC,YAAU,oBACV,UAAWO,EACT,8GACAH,CACF,EACC,GAAGE,EACN,CAEJ,CAdSE,EAAAE,GAAA","names":["React","CheckboxPrimitive","Check","jsx","Checkbox","className","props","ref","cn","Check","useState","useRef","useEffect","Upload","X","jsx","jsxs","getAcceptedFormats","__name","accept","ext","FileUploader","onChange","className","multiple","externalFiles","id","files","setFiles","useState","inputRef","useRef","useEffect","handleClick","e","handleChange","newFiles","onRemoveFile","file","prevFiles","f","acceptedFormats","cn","Button","Upload","index","X","RadioGroupPrimitive","CircleIcon","jsx","RadioGroup","className","props","cn","__name","RadioGroupItem","CircleIcon","SelectPrimitive","CheckIcon","ChevronDownIcon","ChevronUpIcon","jsx","jsxs","Select","props","__name","SelectGroup","SelectValue","SelectTrigger","className","children","cn","ChevronDownIcon","SelectContent","position","SelectScrollUpButton","SelectScrollDownButton","SelectItem","className","children","props","jsxs","cn","jsx","CheckIcon","__name","SelectScrollUpButton","className","props","jsx","cn","ChevronUpIcon","__name","SelectScrollDownButton","ChevronDownIcon","Slot","cva","jsx","badgeVariants","cva","Badge","className","variant","asChild","props","Slot","cn","__name","DialogPrimitive","XIcon","jsx","jsxs","Dialog","props","__name","DialogTrigger","DialogPortal","DialogOverlay","className","props","jsx","cn","__name","DialogContent","children","jsxs","DialogPortal","XIcon","DialogHeader","DialogFooter","DialogTitle","DialogDescription","cva","jsx","alertVariants","cva","Alert","className","variant","props","cn","__name","AlertTitle","AlertDescription"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a}from"./chunk-ALC6W3PW.js";import{b as i}from"./chunk-PGWKJ6FK.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as d}from"react/jsx-runtime";function y({onSubmit:s,onSuccess:c,onError:t}){let{onboardingBag:o}=i(),u=e(async n=>{try{await s?.({countryCode:n.country});let r=await o.onSubmit(n);if(r?.data){await c?.(r?.data),o?.next();return}r?.error&&t?.({error:r.error,rawError:r.rawError,fieldErrors:[]})}catch(r){t?.({error:r,rawError:r,fieldErrors:[]})}},"handleSubmit"),l=o.stepState.values?.select_country||o.initialValues.select_country;return d(a,{defaultValues:l,onSubmit:u})}e(y,"SelectCountryStep");export{y as a};
|
|
2
|
+
//# sourceMappingURL=chunk-UEEJS7TB.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as m}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as m}from"./chunk-ZJAFMNUN.js";import{b as c}from"./chunk-TOA3JILU.js";import{b as d}from"./chunk-2YTBWEC7.js";import{a as t}from"./chunk-P37U34EQ.js";import{Suspense as u,lazy as F}from"react";import{jsx as i}from"react/jsx-runtime";var E=F(()=>import("./PdfPreview-2VXVDUFP.js").then(o=>({default:o.PDFPreview}))),l=t(o=>i(u,{fallback:i("div",{className:"animate-pulse",children:"Loading PDF..."}),children:i(E,{...o})}),"LazyPdfPreview");import{jsx as p,jsxs as S}from"react/jsx-runtime";function M({onSubmit:o,onSuccess:P,onError:n}){let{contractorOnboardingBag:r}=c(),w=t(async s=>{try{let a=await r.parseFormValues(s);await o?.(a);let e=await r.onSubmit(s);if(e?.data){await P?.(e?.data),r?.next();return}if(e?.error){let f=d(e?.fieldErrors||[],r.meta?.fields?.contract_preview);n?.({error:e?.error,rawError:e?.rawError,fieldErrors:f})}}catch(a){n?.({error:a,rawError:a,fieldErrors:[]})}},"handleSubmit"),v=r.stepState.values?.contract_preview||r.initialValues.contract_preview;return S("div",{className:"space-y-4",children:[p(l,{base64Data:r.documentPreviewPdf?.contract_document.content}),p(m,{defaultValues:v,onSubmit:w})]})}t(M,"ContractPreviewStep");export{M as a};
|
|
2
|
+
//# sourceMappingURL=chunk-UHWPRDRD.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as X,f as Z,h as tt,k as et}from"./chunk-N3X274GT.js";import{c as z,d as Q}from"./chunk-H6YNMT4M.js";import{a as at,b as it,c as st,e as ct,f as lt,g as dt,h as mt}from"./chunk-MD2QFLXC.js";import{a as ot,b as rt}from"./chunk-3UDG4IJO.js";import{a as ut,b as pt,c as ft,d as yt}from"./chunk-LOHRUY4J.js";import{a as E}from"./chunk-2YTBWEC7.js";import{a as nt}from"./chunk-5BRMLRS7.js";import{d as f,e as C}from"./chunk-HRG5MSVG.js";import{g as V}from"./chunk-UQCSN47K.js";import{a as p}from"./chunk-P37U34EQ.js";import{useEffect as Qt,useMemo as c,useRef as Xt,useState as J}from"react";var Zt={select_country:null,basic_information:"employment_basic_information",contract_details:null,pricing_plan:null,contract_preview:null,review:null},te={employment_basic_information:"basic_information"},ee=new Date().toISOString().split("T")[0],fe=p(({countryCode:_t,externalId:St,employmentId:y,skipSteps:gt,options:P,initialValues:i})=>{let[a,A]=J(_t||null),[r,bt]=J(y),[T,Ct]=J(void 0),O=Xt({select_country:{},basic_information:{},contract_details:{},contract_preview:{},pricing_plan:{}}),wt=gt?.includes("select_country")?pt:ut,{fieldValues:m,stepState:e,setFieldValues:Ft,previousStep:vt,nextStep:ht,goToStep:I,setStepValues:B}=nt(wt),{data:s,isLoading:R,refetch:Vt}=X(r),{status:_}=s||{},L=_&&z.includes(_),Et=_&&!Q.includes(_),Pt=c(()=>_==="invited"?"invited":"not_invited",[_]),q=tt(),N=lt(),x=it(),Ot=ct(),{mutateAsync:Mt}=E(q),{mutateAsync:Dt}=E(N),{mutateAsync:Tt}=E(x),{mutateAsync:U}=E(Ot);y&&s?.country?.code&&!a&&A(s.country.code);let{selectCountryForm:M,isLoading:It}=et({jsfModify:P?.jsfModify?.select_country,queryOptions:{enabled:e.currentStep.name==="select_country"}}),{form:H,isLoading:Rt}=mt(r,{jsonSchemaVersion:P?.jsonSchemaVersion,queryOptions:{enabled:e.currentStep.name==="pricing_plan"}}),Lt=Zt[e.currentStep.name]||"contractor_basic_information",jt=te[Lt],kt=s?.[jt]||{},Jt=p(({form:t,options:o={},query:g={}})=>{let b=Object.keys(m).length>0?{...i,...e.values?.[e.currentStep.name],...m}:{...i,...kt};return Z({countryCode:a,form:t,fieldValues:b,query:g,options:{...o,queryOptions:{enabled:o.queryOptions?.enabled??!0}}})},"useJSONSchema"),At=!!(a&&(e.currentStep.name==="basic_information"||y)),Bt=!!(a&&(e.currentStep.name==="contract_details"||y)),{data:l,isLoading:qt}=Jt({form:"contractor_basic_information",options:{jsfModify:P?.jsfModify?.basic_information,queryOptions:{enabled:At}}}),Nt=c(()=>ft(s?.basic_information?.provisional_start_date,m?.service_duration?.provisional_start_date),[s?.basic_information?.provisional_start_date,m?.service_duration?.provisional_start_date]),{data:d,isLoading:xt}=dt({countryCode:a,fieldValues:m,options:{queryOptions:{enabled:Bt},jsfModify:yt(P?.jsfModify?.contract_details,Nt)}}),{data:u}=at({fieldValues:m,options:{queryOptions:{enabled:e.currentStep.name==="contract_preview"}}}),{data:Ut,isLoading:Ht}=st({employmentId:r,contractDocumentId:T,options:{queryOptions:{enabled:!!T}}}),n=c(()=>({select_country:M?.fields||[],basic_information:l?.fields||[],pricing_plan:H?.fields||[],contract_details:d?.fields||[],contract_preview:u?.fields||[],review:[]}),[M?.fields,l?.fields,H?.fields,d?.fields,u?.fields]),Gt={select_country:null,basic_information:l?.meta["x-jsf-fieldsets"],pricing_plan:null,contract_details:d?.meta["x-jsf-fieldsets"],contract_preview:null,review:null},{country:Wt,basic_information:D={},contract_details:S={}}=s||{},G=Wt?.code,w=c(()=>C(n.select_country,{country:a||G||""}),[n.select_country,a,G]),F=c(()=>{let t={provisional_start_date:ee,...i,...D};return C(n.basic_information,t)},[n.basic_information,D,i]),v=c(()=>{let o={...{service_duration:{provisional_start_date:D.provisional_start_date}},...i,...S};return C(n.contract_details,o)},[n.contract_details,S,i,D]),W=c(()=>{let t={...i,...S};return C(n.contract_preview,t)},[n.contract_preview,S,i]),$=c(()=>{let t={...i,...S};return C(n.pricing_plan,t?.pricing_plan??{})},[n.pricing_plan,S,i]),$t=c(()=>({select_country:w,basic_information:F,contract_details:v,contract_preview:W,pricing_plan:$}),[w,F,v,W,$]),K=c(()=>!!(!!(y&&L&&e.currentStep.name!=="review")&&!R&&n.basic_information.length>0&&n.contract_details.length>0),[y,L,R,n.basic_information.length,n.contract_details.length,e.currentStep.name]);Qt(()=>{K&&(O.current={select_country:V(w,n.select_country),basic_information:V(F,n.basic_information),contract_details:V(v,n.contract_details),contract_preview:{},pricing_plan:{}},B({select_country:w,basic_information:F,contract_details:v,contract_preview:{},pricing_plan:{},review:{}}),I("review"))},[K,I,w,F,v,B,n.select_country,n.basic_information,n.contract_details]);let Kt=p(t=>{I(t)},"goTo"),Y=p(async t=>M&&e.currentStep.name==="select_country"?t:l&&e.currentStep.name==="basic_information"?await f(t,l?.fields,{isPartialValidation:!1}):d&&e.currentStep.name==="contract_details"?await f(t,d?.fields,{isPartialValidation:!1}):u&&e.currentStep.name==="contract_preview"?await f(t,u?.fields,{isPartialValidation:!1}):e.currentStep.name==="pricing_plan"?t:{},"parseFormValues");async function Yt(t){let o=e.currentStep.name;o in O.current&&(O.current[o]=V(t,n[o]));let g=await Y(t);switch(e.currentStep.name){case"select_country":return A(g.country),Promise.resolve({data:{countryCode:g.country}});case"basic_information":{let j=!r&&a,b=r&&a&&s?.country&&s?.country.code!==a;if(j||b){let k={basic_information:g,type:"contractor",country_code:a,external_id:St};try{let h=await Mt(k),zt=h.data?.data?.employment?.id;return bt(zt),h}catch(h){throw console.error("Error creating onboarding:",h),h}}else if(r)return Promise.resolve({data:{employmentId:r}});return}case"contract_details":{let b=await Dt({employmentId:r,payload:{contract_document:g}}),k=b.data?.data?.contract_document?.id;return Ct(k),b}case"contract_preview":return Tt({employmentId:r,contractDocumentId:T,payload:{signature:t.signature}});case"pricing_plan":return t.subscription==ot?U({employmentId:r,payload:{operation:"downgrade"}}):t.subscription==rt?U({employmentId:r,payload:{operation:"upgrade"}}):Promise.reject({error:"invalid selection"});default:throw new Error("Invalid step state")}}return p(Yt,"onSubmit"),{isLoading:It||qt||R||xt||Rt||Ht,fieldValues:m,stepState:e,checkFieldUpdates:Ft,back:vt,next:ht,goTo:Kt,onSubmit:Yt,fields:n[e.currentStep.name],meta:{fields:O.current,fieldsets:Gt[e.currentStep.name]},parseFormValues:Y,handleValidation:p(async t=>{if(e.currentStep.name==="select_country")return M.handleValidation(t);if(l&&e.currentStep.name==="basic_information"){let o=await f(t,l?.fields,{isPartialValidation:!1});return l?.handleValidation(o)}if(d&&e.currentStep.name==="contract_details"){let o=await f(t,d?.fields,{isPartialValidation:!1});return d?.handleValidation(o)}if(u&&e.currentStep.name==="contract_preview"){let o=await f(t,u?.fields,{isPartialValidation:!1});return u?.handleValidation(o)}return e.currentStep.name==="pricing_plan"?{formErrors:{}}:null},"handleValidation"),initialValues:$t,employmentId:r,refetchEmployment:Vt,isSubmitting:q.isPending||N.isPending||x.isPending,documentPreviewPdf:Ut,canInvite:Et,isEmploymentReadOnly:L,invitedStatus:Pt,employment:s}},"useContractorOnboarding");export{fe as a};
|
|
2
|
+
//# sourceMappingURL=chunk-UIEXB3GW.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{L as l,p as u,w as f,y as d}from"./chunk-T6Q7IALZ.js";import{d as o}from"./chunk-KQPDXXG3.js";import{a as t}from"./chunk-P37U34EQ.js";import{useMutation as y,useQuery as i}from"@tanstack/react-query";var k=t(({employmentId:e})=>{let{client:a}=o();return i({queryKey:["employment",e],retry:!1,queryFn:t(()=>d({client:a,headers:{Authorization:""},path:{employment_id:e}}),"queryFn"),enabled:!!e,select:t(({data:r})=>r?.data?.employment,"select")})},"useEmploymentQuery"),c=t(({employmentId:e,status:a,timeoffType:r,options:n})=>{let{client:s}=o();return i({queryKey:["timeoff",e,a],retry:!1,queryFn:t(()=>l({client:s,headers:{Authorization:""},query:{employment_id:e,status:a,timeoff_type:r}}),"queryFn"),select:t(({data:m})=>n?.select?.(m)??m,"select"),enabled:n?.enabled})},"useTimeOffQuery"),p=t((e,a)=>{let r=new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}),n=new Date(a).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});return`${r} \u2192 ${n}`},"formatDateRange"),P=t(({employmentId:e,options:a})=>c({employmentId:e,timeoffType:"paid_time_off",options:{enabled:a?.enabled,select:t(r=>({bookedDays:r?.data?.timeoffs?.reduce((n,s)=>n+(s?.timeoff_days?.length||0),0)||0,timeoffs:r?.data?.timeoffs?.map(n=>({status:n?.status,duration:n?.timeoff_days.length,startDate:n?.start_date,endDate:n?.end_date,formattedDate:p(n?.start_date,n?.end_date)}))||[]}),"select")}}),"usePaidTimeoffBreakdownQuery"),S=t(({employmentId:e})=>{let{client:a}=o();return i({queryKey:["timeoff-balance",e],retry:!1,queryFn:t(()=>f({client:a,headers:{Authorization:""},path:{employment_id:e}}),"queryFn"),select:t(({data:r})=>r,"select")})},"useTimeOffLeavePoliciesSummaryQuery"),x=t(()=>{let{client:e}=o();return y({mutationFn:t(a=>u({client:e,headers:{Authorization:""},body:a}),"mutationFn")})},"useMagicLink");export{k as a,c as b,P as c,S as d,x as e};
|
|
2
|
+
//# sourceMappingURL=chunk-V334GIML.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-7FMFSOJ3.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as i}from"react/jsx-runtime";var l=e(({currency:n,desiredCurrency:o,annual_gross_salary_conversion_properties:r,...a})=>i(s,{...a,sourceCurrency:n,targetCurrency:o,conversionFieldName:"annual_gross_salary_conversion",conversionProperties:{...r,description:r?.description||"Estimated amount. This is an estimation. We calculate conversions based on spot rates that are subject to fluctuation over time."},classNamePrefix:"RemoteFlows-AnnualGrossSalary",conversionType:"no_spread"}),"AnnualGrossSalary");export{l as a};
|
|
2
|
+
//# sourceMappingURL=chunk-WO33FKK4.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as f}from"./chunk-KSHK3ZPX.js";import{a as F}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as f}from"./chunk-KSHK3ZPX.js";import{a as F}from"./chunk-22HZVTR7.js";import{b as p}from"./chunk-2YTBWEC7.js";import{g as C}from"./chunk-CR7AIZKA.js";import{g as E}from"./chunk-UQCSN47K.js";import{a as n}from"./chunk-P37U34EQ.js";import{useEffect as R}from"react";import{jsx as u}from"react/jsx-runtime";function T({onSubmit:S,onError:w,onSuccess:y,onErrorWithFields:c,shouldResetForm:d,resetFields:a}){let{form:e,formId:V,costCalculatorBag:o}=f(),{formState:{isSubmitSuccessful:s}}=e;R(()=>{if(s&&d){o?.resetForm(),e.reset();return}if(s&&a){let t={...e.getValues()};a.forEach(r=>{t[r]=""}),o?.resetForm(),e.reset(t)}},[s,e,d,o,a]);let b=n(async i=>{try{let t=await o?.parseFormValues(i);o?.meta?.fields&&(o.meta.fields=E(i,o.fields),o.meta.fields.employer_currency_slug=o.meta.fields.currency);let r=await o?.onSubmit(t);if(await S?.(t),r?.data&&!r.error){let l={data:{...r.data.data,employments:r.data.data.employments?.map(m=>({...m,title:t.estimation_title}))}};await y?.(l)}else throw{data:null,error:r?.error,fieldErrors:r?.fieldErrors,rawError:r?.rawError}}catch(t){let r=t,l=r.fieldErrors;if(c){let m=o?.meta?.fields,h=p(l,m);c({error:r.error,rawError:r.rawError,fieldErrors:h})}else w?.(r.error)}},"handleSubmit");return u(C,{...e,children:u("form",{id:V,onSubmit:e.handleSubmit(b),className:"space-y-4 RemoteFlows__CostCalculatorForm",children:u(F,{fields:o?.fields??[]})})})}n(T,"CostCalculatorForm");export{T as a};
|
|
2
|
+
//# sourceMappingURL=chunk-WUSZWDKK.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as u}from"./chunk-TOA3JILU.js";import{d as m}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as u}from"./chunk-TOA3JILU.js";import{d as m}from"./chunk-N3X274GT.js";import{a as d}from"./chunk-2YTBWEC7.js";import{a}from"./chunk-NFWNYW2E.js";import{b as s}from"./chunk-KQPDXXG3.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as b}from"react/jsx-runtime";function k({onSubmit:c,onSuccess:p,onError:n,render:l,...o}){let{components:f}=s(),{contractorOnboardingBag:t}=u(),i=m(),{mutateAsync:y}=d(i),E=e(async()=>{try{if(await c?.(),t.employmentId){let r=await y({employment_id:t.employmentId});if(r.data){await p?.({data:r.data,employmentStatus:"invited"}),t.refetchEmployment();return}r.error&&n?.({error:r.error,rawError:r.rawError,fieldErrors:[]})}}catch(r){n?.({error:r,rawError:r,fieldErrors:[]})}},"handleSubmit"),v=f?.button||a;return b(v,{...o,disabled:i.isPending||o.disabled,onClick:r=>{E(),o.onClick?.(r)},children:l({employmentStatus:"invited"})})}e(k,"OnboardingInvite");export{k as a};
|
|
2
|
+
//# sourceMappingURL=chunk-X6325UGJ.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as l}from"./chunk-7FMFSOJ3.js";import{a as m,b as y}from"./chunk-EGSUF7OD.js";import{c}from"./chunk-CR7AIZKA.js";import{a as t}from"./chunk-P37U34EQ.js";import{useEffect as N}from"react";import{Fragment as b,jsx as v,jsxs as C}from"react/jsx-runtime";var R=t(({currencies:{from:d,to:F},shouldSwapOrder:s,salary_conversion_properties:a,conversionType:_="no_spread",defaultValue:r,...e})=>{let{setValue:n,getValues:i}=c(),f={label:a?.label||"Salary conversion",description:a?.description||C(b,{children:["The conversion is based on the Remote FX rate."," ",v(y,{className:"text-sm",zendeskId:m.remoteFxRate,children:"Learn more \u2197"})]})},g=s?"salary_conversion":e.name,u=s?e.name:"salary_conversion";return N(()=>{if(s){let o=i(e.name);o?(n("salary_conversion",o),n("salary_converted","salary_conversion")):r&&(n("salary_conversion",r),n("salary_converted","salary_conversion"))}else{let o=i("salary_conversion");o?(n(e.name,o),n("salary_converted",e.name)):r&&(n(e.name,r),n("salary_converted",e.name))}},[s,r,n,i,e.name]),v(l,{...e,sourceCurrency:d,targetCurrency:F,mainFieldName:g,conversionFieldName:u,conversionProperties:f,classNamePrefix:"RemoteFlows-Salary",conversionType:_})},"SalaryField");export{R as a};
|
|
2
|
+
//# sourceMappingURL=chunk-YXVNCPUI.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as m}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as m}from"./chunk-ALC6W3PW.js";import{b as a}from"./chunk-PGWKJ6FK.js";import{b as t}from"./chunk-2YTBWEC7.js";import{e as s}from"./chunk-HRG5MSVG.js";import{a as e}from"./chunk-P37U34EQ.js";import{jsx as E}from"react/jsx-runtime";function P({components:d,onSubmit:l,onError:i,onSuccess:f}){let{onboardingBag:o}=a(),p=o.fields??[],c=s(p,o.initialValues.benefits);return E(m,{defaultValues:c,components:d,onSubmit:e(async n=>{try{await l?.(n);let r=await o.onSubmit(n);if(r?.data){await f?.(r.data),o?.next();return}if(r?.error){let u=t(r?.fieldErrors||[],o.meta?.fields?.benefits);i?.({error:r.error,rawError:r.rawError,fieldErrors:u})}}catch(r){i?.({error:r,rawError:r,fieldErrors:[]})}},"handleSubmit")})}e(P,"BenefitsStep");export{P as a};
|
|
2
|
+
//# sourceMappingURL=chunk-Z2AKDJE5.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as c}from"./chunk-TOA3JILU.js";import{a as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as c}from"./chunk-TOA3JILU.js";import{a as l}from"./chunk-22HZVTR7.js";import{b as s}from"./chunk-LNV36S6D.js";import{f as m,g as d}from"./chunk-CR7AIZKA.js";import{a as e}from"./chunk-P37U34EQ.js";import{useEffect as f}from"react";import{jsx as p}from"react/jsx-runtime";import{createElement as P}from"react";function B({defaultValues:i,onSubmit:F,components:u}){let{formId:y,contractorOnboardingBag:o}=c(),b=s(o.handleValidation),r=m({resolver:b,defaultValues:i,shouldUnregister:!1,mode:"onBlur"});f(()=>{o.employmentId&&o?.checkFieldUpdates(r.getValues())},[]),f(()=>{let n=r?.watch(t=>{Object.keys(t).some(a=>t[a]!==i[a])&&o?.checkFieldUpdates(t)});return()=>n?.unsubscribe()},[]);let g=e(async n=>{await F(n)},"handleSubmit");return P(d,{...r,key:`form-${o.stepState.currentStep.name}`},p("form",{id:y,onSubmit:r.handleSubmit(g),className:"space-y-4 RemoteFlows__OnboardingForm",children:p(l,{components:u,fields:o.fields,fieldsets:o.meta.fieldsets,fieldValues:o.fieldValues})}))}e(B,"ContractorOnboardingForm");export{B as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ZJAFMNUN.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { P as PostCreateContractAmendmentError, b as ContractAmendmentResponse } from '../../types.gen-
|
|
2
|
+
import { P as PostCreateContractAmendmentError, b as ContractAmendmentResponse } from '../../types.gen-D7WEgMDJ.js';
|
|
3
3
|
import { FieldValues } from 'react-hook-form';
|
|
4
4
|
|
|
5
5
|
type ContractAmendmentConfirmationFormProps = {
|
|
@@ -5,11 +5,11 @@ import { ContractAmendmentForm } from './ContractAmendmentForm.js';
|
|
|
5
5
|
import { ContractAmendmentSubmit } from './ContractAmendmentSubmit.js';
|
|
6
6
|
import { useContractAmendment } from './hooks.js';
|
|
7
7
|
import { ContractAmendmentParams } from './types.js';
|
|
8
|
-
import '../../types.gen-
|
|
8
|
+
import '../../types.gen-D7WEgMDJ.js';
|
|
9
9
|
import 'react-hook-form';
|
|
10
10
|
import 'react';
|
|
11
|
-
import '../../mutations-
|
|
12
|
-
import '../../remoteFlows-
|
|
11
|
+
import '../../mutations-DRSXskcC.js';
|
|
12
|
+
import '../../remoteFlows-C1t2xwls.js';
|
|
13
13
|
import 'yup';
|
|
14
14
|
import '../../types-ZWIpiFgj.js';
|
|
15
15
|
import '@remoteoss/json-schema-form';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-EMJ266VJ.js";import"../../chunk-J3BK2DEH.js";import"../../chunk-22HZVTR7.js";import"../../chunk-LNV36S6D.js";import"../../chunk-SPMEMAK5.js";import"../../chunk-EGSUF7OD.js";import"../../chunk-ZFKHCC4Z.js";import"../../chunk-OKMERBJL.js";import"../../chunk-QKKAJK3A.js";import"../../chunk-V334GIML.js";import"../../chunk-2YTBWEC7.js";import"../../chunk-P5QKSFOE.js";import"../../chunk-T6Q7IALZ.js";import"../../chunk-ZCXTTVGV.js";import"../../chunk-TC3CLBCD.js";import"../../chunk-GGPEKIIH.js";import"../../chunk-GPLI6GGL.js";import"../../chunk-5BRMLRS7.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-PC5JG4TT.js";import"../../chunk-NFWNYW2E.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-PJN2YJO4.js";import"../../chunk-K3XVYHGV.js";import"../../chunk-CR7AIZKA.js";import"../../chunk-HRG5MSVG.js";import"../../chunk-ILOKQ6OH.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-UQCSN47K.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentFlow};
|
|
2
2
|
//# sourceMappingURL=ContractAmendmentFlow.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { c as PostAutomatableContractAmendmentError, C as ContractAmendmentAutomatableResponse } from '../../types.gen-
|
|
2
|
+
import { c as PostAutomatableContractAmendmentError, C as ContractAmendmentAutomatableResponse } from '../../types.gen-D7WEgMDJ.js';
|
|
3
3
|
import { FieldValues } from 'react-hook-form';
|
|
4
4
|
|
|
5
5
|
type ContractAmendmentFormProps = {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-J3BK2DEH.js";import"../../chunk-22HZVTR7.js";import"../../chunk-LNV36S6D.js";import"../../chunk-SPMEMAK5.js";import"../../chunk-EGSUF7OD.js";import"../../chunk-ZFKHCC4Z.js";import"../../chunk-T6Q7IALZ.js";import"../../chunk-TC3CLBCD.js";import"../../chunk-GGPEKIIH.js";import"../../chunk-GPLI6GGL.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-PJN2YJO4.js";import"../../chunk-CR7AIZKA.js";import"../../chunk-HRG5MSVG.js";import"../../chunk-ILOKQ6OH.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-UQCSN47K.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentForm};
|
|
2
2
|
//# sourceMappingURL=ContractAmendmentForm.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as ContractAmendmentAutomatableResponse, N as NotFoundResponse, U as UnprocessableEntityResponse, a as UnauthorizedResponse, b as ContractAmendmentResponse } from '../../types.gen-
|
|
1
|
+
import { C as ContractAmendmentAutomatableResponse, N as NotFoundResponse, U as UnprocessableEntityResponse, a as UnauthorizedResponse, b as ContractAmendmentResponse } from '../../types.gen-D7WEgMDJ.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { E as ErrorResponse, S as SuccessResponse } from '../../mutations-
|
|
4
|
-
import '../../remoteFlows-
|
|
3
|
+
import { E as ErrorResponse, S as SuccessResponse } from '../../mutations-DRSXskcC.js';
|
|
4
|
+
import '../../remoteFlows-C1t2xwls.js';
|
|
5
5
|
import * as react_hook_form from 'react-hook-form';
|
|
6
6
|
import { useContractAmendment } from './hooks.js';
|
|
7
7
|
import * as _remoteoss_json_schema_form from '@remoteoss/json-schema-form';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { C as ContractAmendmentAutomatableResponse, N as NotFoundResponse, U as UnprocessableEntityResponse, a as UnauthorizedResponse, b as ContractAmendmentResponse } from '../../types.gen-
|
|
2
|
-
import { E as ErrorResponse, S as SuccessResponse } from '../../mutations-
|
|
1
|
+
import { C as ContractAmendmentAutomatableResponse, N as NotFoundResponse, U as UnprocessableEntityResponse, a as UnauthorizedResponse, b as ContractAmendmentResponse } from '../../types.gen-D7WEgMDJ.js';
|
|
2
|
+
import { E as ErrorResponse, S as SuccessResponse } from '../../mutations-DRSXskcC.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import * as _remoteoss_json_schema_form from '@remoteoss/json-schema-form';
|
|
5
5
|
import * as _remoteoss_json_schema_form_v0_deprecated from '@remoteoss/json-schema-form-v0-deprecated';
|
|
6
6
|
import { Step } from '../useStepState.js';
|
|
7
7
|
import { FieldValues } from 'react-hook-form';
|
|
8
8
|
import { ContractAmendmentParams } from './types.js';
|
|
9
|
-
import '../../remoteFlows-
|
|
9
|
+
import '../../remoteFlows-C1t2xwls.js';
|
|
10
10
|
import 'yup';
|
|
11
11
|
import '../../types-ZWIpiFgj.js';
|
|
12
12
|
import '../types.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-QKKAJK3A.js";import"../../chunk-V334GIML.js";import"../../chunk-2YTBWEC7.js";import"../../chunk-P5QKSFOE.js";import"../../chunk-T6Q7IALZ.js";import"../../chunk-ZCXTTVGV.js";import"../../chunk-5BRMLRS7.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-HRG5MSVG.js";import"../../chunk-P37U34EQ.js";export{a as useContractAmendment};
|
|
2
2
|
//# sourceMappingURL=hooks.js.map
|
|
@@ -4,17 +4,17 @@ export { ContractAmendmentForm } from './ContractAmendmentForm.js';
|
|
|
4
4
|
export { ContractAmendmentSubmit } from './ContractAmendmentSubmit.js';
|
|
5
5
|
export { useContractAmendment } from './hooks.js';
|
|
6
6
|
import 'react/jsx-runtime';
|
|
7
|
-
import '../../types.gen-
|
|
7
|
+
import '../../types.gen-D7WEgMDJ.js';
|
|
8
8
|
import 'react-hook-form';
|
|
9
9
|
import './ContractAmendmentBack.js';
|
|
10
10
|
import 'react';
|
|
11
11
|
import './types.js';
|
|
12
12
|
import '../types.js';
|
|
13
|
-
import '../../remoteFlows-
|
|
13
|
+
import '../../remoteFlows-C1t2xwls.js';
|
|
14
14
|
import 'yup';
|
|
15
15
|
import '../../types-ZWIpiFgj.js';
|
|
16
16
|
import '@remoteoss/remote-json-schema-form-kit';
|
|
17
|
-
import '../../mutations-
|
|
17
|
+
import '../../mutations-DRSXskcC.js';
|
|
18
18
|
import '@remoteoss/json-schema-form';
|
|
19
19
|
import '@remoteoss/json-schema-form-v0-deprecated';
|
|
20
20
|
import '../useStepState.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../chunk-A7ZJQCNU.js";import{a as e}from"../../chunk-
|
|
1
|
+
import"../../chunk-A7ZJQCNU.js";import{a as e}from"../../chunk-EMJ266VJ.js";import{a as b}from"../../chunk-J3BK2DEH.js";import"../../chunk-22HZVTR7.js";import"../../chunk-LNV36S6D.js";import"../../chunk-SPMEMAK5.js";import"../../chunk-EGSUF7OD.js";import"../../chunk-ZFKHCC4Z.js";import{a as c}from"../../chunk-OKMERBJL.js";import{a as d}from"../../chunk-QKKAJK3A.js";import"../../chunk-V334GIML.js";import"../../chunk-2YTBWEC7.js";import"../../chunk-P5QKSFOE.js";import"../../chunk-T6Q7IALZ.js";import"../../chunk-ZCXTTVGV.js";import"../../chunk-TC3CLBCD.js";import"../../chunk-GGPEKIIH.js";import"../../chunk-GPLI6GGL.js";import"../../chunk-5BRMLRS7.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-PC5JG4TT.js";import"../../chunk-NFWNYW2E.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-PJN2YJO4.js";import{a}from"../../chunk-K3XVYHGV.js";import"../../chunk-CR7AIZKA.js";import"../../chunk-HRG5MSVG.js";import"../../chunk-ILOKQ6OH.js";import"../../chunk-TVZAFTPT.js";import"../../chunk-UQCSN47K.js";import"../../chunk-P37U34EQ.js";export{a as ContractAmendmentConfirmationForm,e as ContractAmendmentFlow,b as ContractAmendmentForm,c as ContractAmendmentSubmit,d as useContractAmendment};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FlowOptions } from '../types.js';
|
|
2
|
-
import '../../remoteFlows-
|
|
2
|
+
import '../../remoteFlows-C1t2xwls.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'yup';
|
|
5
|
-
import '../../types.gen-
|
|
5
|
+
import '../../types.gen-D7WEgMDJ.js';
|
|
6
6
|
import '../../types-ZWIpiFgj.js';
|
|
7
7
|
import 'react-hook-form';
|
|
8
8
|
import '@remoteoss/remote-json-schema-form-kit';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as Employment } from '../../types.gen-
|
|
2
|
-
import { J as JSFFields } from '../../remoteFlows-
|
|
1
|
+
import { E as Employment } from '../../types.gen-D7WEgMDJ.js';
|
|
2
|
+
import { J as JSFFields } from '../../remoteFlows-C1t2xwls.js';
|
|
3
3
|
import { Step } from '../useStepState.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'yup';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { a as ContractorOnboardingFlowProps } from '../../types-
|
|
3
|
-
import '../../types.gen-
|
|
2
|
+
import { a as ContractorOnboardingFlowProps } from '../../types-C2LcMRHy.js';
|
|
3
|
+
import '../../types.gen-D7WEgMDJ.js';
|
|
4
4
|
import './components/OnboardingBack.js';
|
|
5
5
|
import 'react';
|
|
6
6
|
import './components/OnboardingSubmit.js';
|
|
7
|
-
import '../../mutations-
|
|
8
|
-
import '../../remoteFlows-
|
|
7
|
+
import '../../mutations-DRSXskcC.js';
|
|
8
|
+
import '../../remoteFlows-C1t2xwls.js';
|
|
9
9
|
import 'yup';
|
|
10
10
|
import '../../types-ZWIpiFgj.js';
|
|
11
11
|
import 'react-hook-form';
|
|
@@ -15,7 +15,7 @@ import './utils.js';
|
|
|
15
15
|
import '../types.js';
|
|
16
16
|
import '../useStepState.js';
|
|
17
17
|
import './components/BasicInformationStep.js';
|
|
18
|
-
import '../../types-
|
|
18
|
+
import '../../types-BKLre2R6.js';
|
|
19
19
|
import '../Onboarding/components/OnboardingBack.js';
|
|
20
20
|
import '../Onboarding/components/OnboardingInvite.js';
|
|
21
21
|
import '../Onboarding/components/OnboardingSubmit.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-H327JOTI.js";import"../../chunk-AGE76E7O.js";import"../../chunk-2ZCOC6FB.js";import"../../chunk-R5GUJ3IC.js";import"../../chunk-CD6F3YL4.js";import"../../chunk-UHWPRDRD.js";import"../../chunk-ZJAFMNUN.js";import"../../chunk-U2HWB5HI.js";import"../../chunk-X6325UGJ.js";import"../../chunk-IJ6325YO.js";import"../../chunk-TOA3JILU.js";import"../../chunk-UIEXB3GW.js";import"../../chunk-N3X274GT.js";import"../../chunk-WVJDCDGZ.js";import"../../chunk-H6YNMT4M.js";import"../../chunk-MD2QFLXC.js";import"../../chunk-AP56UUME.js";import"../../chunk-R2MHAPWD.js";import"../../chunk-3UDG4IJO.js";import"../../chunk-LOHRUY4J.js";import"../../chunk-22HZVTR7.js";import"../../chunk-LNV36S6D.js";import"../../chunk-SPMEMAK5.js";import"../../chunk-EGSUF7OD.js";import"../../chunk-ZFKHCC4Z.js";import"../../chunk-2YTBWEC7.js";import"../../chunk-P5QKSFOE.js";import"../../chunk-T6Q7IALZ.js";import"../../chunk-TC3CLBCD.js";import"../../chunk-GGPEKIIH.js";import"../../chunk-GPLI6GGL.js";import"../../chunk-5BRMLRS7.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-NFWNYW2E.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-PJN2YJO4.js";import"../../chunk-CR7AIZKA.js";import"../../chunk-HRG5MSVG.js";import"../../chunk-ILOKQ6OH.js";import"../../chunk-UQCSN47K.js";import"../../chunk-P37U34EQ.js";export{a as ContractorOnboardingFlow};
|
|
2
2
|
//# sourceMappingURL=ContractorOnboarding.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
2
|
import { UseQueryResult } from '@tanstack/react-query';
|
|
3
|
-
import { S as SuccessResponse, B as BadRequestResponse, F as ForbiddenResponse,
|
|
4
|
-
import { a as JSFFieldset } from '../../remoteFlows-
|
|
3
|
+
import { S as SuccessResponse, B as BadRequestResponse, F as ForbiddenResponse, d as SignContractDocument, e as File, f as ContractorSubscriptionsSummary, M as ManageContractorPlusSubscriptionOperationsParams, g as CreateContractDocumentResponse, N as NotFoundResponse, U as UnprocessableEntityResponse, a as UnauthorizedResponse, h as CreateContractDocument } from '../../types.gen-D7WEgMDJ.js';
|
|
4
|
+
import { a as JSFFieldset } from '../../remoteFlows-C1t2xwls.js';
|
|
5
5
|
import * as _remoteoss_remote_json_schema_form_kit from '@remoteoss/remote-json-schema-form-kit';
|
|
6
6
|
import { FlowOptions, JSONSchemaFormResultWithFieldsets } from '../types.js';
|
|
7
7
|
import { FieldValues } from 'react-hook-form';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h}from"../../chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g,h}from"../../chunk-MD2QFLXC.js";import"../../chunk-AP56UUME.js";import"../../chunk-R2MHAPWD.js";import"../../chunk-3UDG4IJO.js";import"../../chunk-P5QKSFOE.js";import"../../chunk-T6Q7IALZ.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-KQPDXXG3.js";import"../../chunk-HRG5MSVG.js";import"../../chunk-UQCSN47K.js";import"../../chunk-P37U34EQ.js";export{g as useContractorOnboardingDetailsSchema,h as useContractorSubscriptionSchemaField,f as useCreateContractorContractDocument,a as useGetContractDocumentSignatureSchema,d as useGetContractorSubscriptions,c as useGetShowContractDocument,e as usePostManageContractorSubscriptions,b as useSignContractDocument};
|
|
2
2
|
//# sourceMappingURL=api.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { B as BasicInformationFormPayload } from '../../../types-
|
|
3
|
-
import {
|
|
4
|
-
import { N as NormalizedFieldError } from '../../../mutations-
|
|
2
|
+
import { B as BasicInformationFormPayload } from '../../../types-BKLre2R6.js';
|
|
3
|
+
import { r as EmploymentCreationResponse } from '../../../types.gen-D7WEgMDJ.js';
|
|
4
|
+
import { N as NormalizedFieldError } from '../../../mutations-DRSXskcC.js';
|
|
5
5
|
import '../../Onboarding/components/OnboardingBack.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import '../../Onboarding/components/OnboardingInvite.js';
|
|
8
|
-
import '../../../remoteFlows-
|
|
8
|
+
import '../../../remoteFlows-C1t2xwls.js';
|
|
9
9
|
import 'yup';
|
|
10
10
|
import '../../../types-ZWIpiFgj.js';
|
|
11
11
|
import 'react-hook-form';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-R5GUJ3IC.js";import"../../../chunk-ZJAFMNUN.js";import"../../../chunk-TOA3JILU.js";import"../../../chunk-22HZVTR7.js";import"../../../chunk-LNV36S6D.js";import"../../../chunk-SPMEMAK5.js";import"../../../chunk-EGSUF7OD.js";import"../../../chunk-ZFKHCC4Z.js";import"../../../chunk-2YTBWEC7.js";import"../../../chunk-T6Q7IALZ.js";import"../../../chunk-TC3CLBCD.js";import"../../../chunk-GGPEKIIH.js";import"../../../chunk-GPLI6GGL.js";import"../../../chunk-KQPDXXG3.js";import"../../../chunk-PJN2YJO4.js";import"../../../chunk-CR7AIZKA.js";import"../../../chunk-HRG5MSVG.js";import"../../../chunk-ILOKQ6OH.js";import"../../../chunk-UQCSN47K.js";import"../../../chunk-P37U34EQ.js";export{a as BasicInformationStep};
|
|
2
2
|
//# sourceMappingURL=BasicInformationStep.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import 'react/jsx-runtime';
|
|
2
|
-
import '../../../mutations-
|
|
3
|
-
export { h as ContractDetailsStep } from '../../../types-
|
|
4
|
-
import '../../../remoteFlows-
|
|
2
|
+
import '../../../mutations-DRSXskcC.js';
|
|
3
|
+
export { h as ContractDetailsStep } from '../../../types-C2LcMRHy.js';
|
|
4
|
+
import '../../../remoteFlows-C1t2xwls.js';
|
|
5
5
|
import 'react';
|
|
6
6
|
import 'yup';
|
|
7
|
-
import '../../../types.gen-
|
|
7
|
+
import '../../../types.gen-D7WEgMDJ.js';
|
|
8
8
|
import '../../../types-ZWIpiFgj.js';
|
|
9
9
|
import 'react-hook-form';
|
|
10
10
|
import './OnboardingBack.js';
|
|
@@ -15,7 +15,7 @@ import '../utils.js';
|
|
|
15
15
|
import '../../types.js';
|
|
16
16
|
import '../../useStepState.js';
|
|
17
17
|
import './BasicInformationStep.js';
|
|
18
|
-
import '../../../types-
|
|
18
|
+
import '../../../types-BKLre2R6.js';
|
|
19
19
|
import '../../Onboarding/components/OnboardingBack.js';
|
|
20
20
|
import '../../Onboarding/components/OnboardingInvite.js';
|
|
21
21
|
import '../../Onboarding/components/OnboardingSubmit.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-CD6F3YL4.js";import"../../../chunk-ZJAFMNUN.js";import"../../../chunk-TOA3JILU.js";import"../../../chunk-22HZVTR7.js";import"../../../chunk-LNV36S6D.js";import"../../../chunk-SPMEMAK5.js";import"../../../chunk-EGSUF7OD.js";import"../../../chunk-ZFKHCC4Z.js";import"../../../chunk-2YTBWEC7.js";import"../../../chunk-T6Q7IALZ.js";import"../../../chunk-TC3CLBCD.js";import"../../../chunk-GGPEKIIH.js";import"../../../chunk-GPLI6GGL.js";import"../../../chunk-KQPDXXG3.js";import"../../../chunk-PJN2YJO4.js";import"../../../chunk-CR7AIZKA.js";import"../../../chunk-HRG5MSVG.js";import"../../../chunk-ILOKQ6OH.js";import"../../../chunk-UQCSN47K.js";import"../../../chunk-P37U34EQ.js";export{a as ContractDetailsStep};
|
|
2
2
|
//# sourceMappingURL=ContractDetailsStep.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import 'react/jsx-runtime';
|
|
2
|
-
import '../../../mutations-
|
|
3
|
-
export { i as ContractPreviewStep } from '../../../types-
|
|
4
|
-
import '../../../remoteFlows-
|
|
2
|
+
import '../../../mutations-DRSXskcC.js';
|
|
3
|
+
export { i as ContractPreviewStep } from '../../../types-C2LcMRHy.js';
|
|
4
|
+
import '../../../remoteFlows-C1t2xwls.js';
|
|
5
5
|
import 'react';
|
|
6
6
|
import 'yup';
|
|
7
|
-
import '../../../types.gen-
|
|
7
|
+
import '../../../types.gen-D7WEgMDJ.js';
|
|
8
8
|
import '../../../types-ZWIpiFgj.js';
|
|
9
9
|
import 'react-hook-form';
|
|
10
10
|
import './OnboardingBack.js';
|
|
@@ -15,7 +15,7 @@ import '../utils.js';
|
|
|
15
15
|
import '../../types.js';
|
|
16
16
|
import '../../useStepState.js';
|
|
17
17
|
import './BasicInformationStep.js';
|
|
18
|
-
import '../../../types-
|
|
18
|
+
import '../../../types-BKLre2R6.js';
|
|
19
19
|
import '../../Onboarding/components/OnboardingBack.js';
|
|
20
20
|
import '../../Onboarding/components/OnboardingInvite.js';
|
|
21
21
|
import '../../Onboarding/components/OnboardingSubmit.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-UHWPRDRD.js";import"../../../chunk-ZJAFMNUN.js";import"../../../chunk-TOA3JILU.js";import"../../../chunk-22HZVTR7.js";import"../../../chunk-LNV36S6D.js";import"../../../chunk-SPMEMAK5.js";import"../../../chunk-EGSUF7OD.js";import"../../../chunk-ZFKHCC4Z.js";import"../../../chunk-2YTBWEC7.js";import"../../../chunk-T6Q7IALZ.js";import"../../../chunk-TC3CLBCD.js";import"../../../chunk-GGPEKIIH.js";import"../../../chunk-GPLI6GGL.js";import"../../../chunk-KQPDXXG3.js";import"../../../chunk-PJN2YJO4.js";import"../../../chunk-CR7AIZKA.js";import"../../../chunk-HRG5MSVG.js";import"../../../chunk-ILOKQ6OH.js";import"../../../chunk-UQCSN47K.js";import"../../../chunk-P37U34EQ.js";export{a as ContractPreviewStep};
|
|
2
2
|
//# sourceMappingURL=ContractPreviewStep.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { C as Components, J as JSFFields } from '../../../remoteFlows-
|
|
3
|
-
import { B as BasicInformationFormPayload } from '../../../types-
|
|
4
|
-
import { P as PricingPlanFormPayload, C as ContractorOnboardingContractDetailsFormPayload } from '../../../types-
|
|
2
|
+
import { C as Components, J as JSFFields } from '../../../remoteFlows-C1t2xwls.js';
|
|
3
|
+
import { B as BasicInformationFormPayload } from '../../../types-BKLre2R6.js';
|
|
4
|
+
import { P as PricingPlanFormPayload, C as ContractorOnboardingContractDetailsFormPayload } from '../../../types-C2LcMRHy.js';
|
|
5
5
|
import 'react';
|
|
6
6
|
import 'yup';
|
|
7
|
-
import '../../../types.gen-
|
|
7
|
+
import '../../../types.gen-D7WEgMDJ.js';
|
|
8
8
|
import '../../../types-ZWIpiFgj.js';
|
|
9
9
|
import 'react-hook-form';
|
|
10
10
|
import '../../Onboarding/components/OnboardingBack.js';
|
|
11
11
|
import '../../Onboarding/components/OnboardingInvite.js';
|
|
12
|
-
import '../../../mutations-
|
|
12
|
+
import '../../../mutations-DRSXskcC.js';
|
|
13
13
|
import '../../Onboarding/components/OnboardingSubmit.js';
|
|
14
14
|
import '@tanstack/query-core';
|
|
15
15
|
import '@remoteoss/remote-json-schema-form-kit';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-ZJAFMNUN.js";import"../../../chunk-TOA3JILU.js";import"../../../chunk-22HZVTR7.js";import"../../../chunk-LNV36S6D.js";import"../../../chunk-SPMEMAK5.js";import"../../../chunk-EGSUF7OD.js";import"../../../chunk-ZFKHCC4Z.js";import"../../../chunk-T6Q7IALZ.js";import"../../../chunk-TC3CLBCD.js";import"../../../chunk-GGPEKIIH.js";import"../../../chunk-GPLI6GGL.js";import"../../../chunk-KQPDXXG3.js";import"../../../chunk-PJN2YJO4.js";import"../../../chunk-CR7AIZKA.js";import"../../../chunk-HRG5MSVG.js";import"../../../chunk-ILOKQ6OH.js";import"../../../chunk-UQCSN47K.js";import"../../../chunk-P37U34EQ.js";export{a as ContractorOnboardingForm};
|
|
2
2
|
//# sourceMappingURL=ContractorOnboardingForm.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
3
|
-
import { F as FieldError } from '../../../mutations-
|
|
4
|
-
import { S as SuccessResponse } from '../../../types.gen-
|
|
5
|
-
import '../../../remoteFlows-
|
|
3
|
+
import { F as FieldError } from '../../../mutations-DRSXskcC.js';
|
|
4
|
+
import { S as SuccessResponse } from '../../../types.gen-D7WEgMDJ.js';
|
|
5
|
+
import '../../../remoteFlows-C1t2xwls.js';
|
|
6
6
|
import 'yup';
|
|
7
7
|
import '../../../types-ZWIpiFgj.js';
|
|
8
8
|
import 'react-hook-form';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-X6325UGJ.js";import"../../../chunk-TOA3JILU.js";import"../../../chunk-N3X274GT.js";import"../../../chunk-WVJDCDGZ.js";import"../../../chunk-H6YNMT4M.js";import"../../../chunk-2YTBWEC7.js";import"../../../chunk-P5QKSFOE.js";import"../../../chunk-T6Q7IALZ.js";import"../../../chunk-Z5WMKCRJ.js";import"../../../chunk-NFWNYW2E.js";import"../../../chunk-KQPDXXG3.js";import"../../../chunk-PJN2YJO4.js";import"../../../chunk-HRG5MSVG.js";import"../../../chunk-UQCSN47K.js";import"../../../chunk-P37U34EQ.js";export{a as OnboardingInvite};
|
|
2
2
|
//# sourceMappingURL=OnboardingInvite.js.map
|