@remoteoss/remote-flows 1.4.0 → 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/dist/{chunk-4FW2VTO4.js → chunk-22HZVTR7.js} +2 -2
- package/dist/{chunk-HUJ3AUIS.js → chunk-2ZCOC6FB.js} +2 -2
- package/dist/{chunk-3CRC4NDD.js → chunk-3DGBLO6M.js} +2 -2
- package/dist/{chunk-OXOK5PM3.js → chunk-3OX2LLXL.js} +2 -2
- package/dist/{chunk-CTAWDJ2D.js → chunk-457SZDZQ.js} +2 -2
- package/dist/{chunk-KRDAGWDH.js → chunk-5PB3CLBH.js} +2 -2
- package/dist/chunk-6LQ6BSOS.js +2 -0
- package/dist/chunk-6LQ6BSOS.js.map +1 -0
- package/dist/{chunk-2FDEMDWJ.js → chunk-7X3WUOTU.js} +2 -2
- package/dist/{chunk-W3OQNZW6.js → chunk-AGE76E7O.js} +2 -2
- package/dist/{chunk-NPKIEWF4.js → chunk-ALC6W3PW.js} +2 -2
- package/dist/{chunk-PU3WPIEK.js → chunk-BBOEK4Q5.js} +2 -2
- package/dist/{chunk-T5OFLN36.js → chunk-CD6F3YL4.js} +2 -2
- package/dist/{chunk-VCEQ5E2O.js → chunk-CZ7DTX5L.js} +2 -2
- package/dist/{chunk-D6Y7GLBT.js → chunk-DDAMD7E7.js} +2 -2
- package/dist/{chunk-7XKEJ5Y6.js → chunk-EMJ266VJ.js} +2 -2
- package/dist/{chunk-K62H3A5T.js → chunk-H327JOTI.js} +2 -2
- package/dist/{chunk-WLN6G3TE.js → chunk-J3BK2DEH.js} +2 -2
- package/dist/{chunk-SKQWZNKT.js → chunk-JWDXZLGS.js} +2 -2
- package/dist/{chunk-LJ6FHPXW.js → chunk-KLKPBGKL.js} +2 -2
- package/dist/{chunk-UD4GEI4B.js → chunk-NGYAG3LB.js} +2 -2
- package/dist/chunk-NHZTYFOJ.js +2 -0
- package/dist/{chunk-TMBD35L4.js.map → chunk-NHZTYFOJ.js.map} +1 -1
- package/dist/{chunk-QDSRG735.js → chunk-R5GUJ3IC.js} +2 -2
- package/dist/{chunk-NHREKNSV.js → chunk-SPMEMAK5.js} +2 -2
- package/dist/chunk-TC3CLBCD.js +2 -0
- package/dist/chunk-TC3CLBCD.js.map +1 -0
- package/dist/{chunk-PSHPB65F.js → chunk-UEEJS7TB.js} +2 -2
- package/dist/{chunk-VYHITQHG.js → chunk-UHWPRDRD.js} +2 -2
- package/dist/{chunk-FEIYAZ7Q.js → chunk-UIEXB3GW.js} +2 -2
- package/dist/{chunk-6AQLDTMK.js → chunk-WUSZWDKK.js} +2 -2
- package/dist/{chunk-G2X5F5YR.js → chunk-Z2AKDJE5.js} +2 -2
- package/dist/{chunk-AJ5SXKFO.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/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/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/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/SummaryResults/SummaryResults.d.ts +2 -2
- package/dist/flows/CostCalculator/api.d.ts +2 -2
- package/dist/flows/CostCalculator/components/SalaryField.d.ts +2 -2
- 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/components/AnnualGrossSalary.d.ts +2 -2
- 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/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 +4 -4
- 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/components/PaidTimeOff/PaidTimeOff.d.ts +6 -6
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.d.ts +6 -6
- 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/index.d.ts +9 -9
- package/dist/index.js +1 -1
- package/dist/internals.d.ts +5 -4
- package/dist/internals.js +1 -1
- package/dist/{mutations-DodnkAWj.d.ts → mutations-DRSXskcC.d.ts} +1 -1
- package/dist/{remoteFlows-xvD84Bor.d.ts → remoteFlows-C1t2xwls.d.ts} +1 -1
- package/dist/{types-B5wlUr-S.d.ts → types-BKLre2R6.d.ts} +3 -3
- package/dist/{types-BukQasy8.d.ts → types-C2LcMRHy.d.ts} +4 -4
- package/dist/{types-Ct_LPoSR.d.ts → types-C6psw625.d.ts} +2 -2
- package/dist/{types-Ckh2r3F3.d.ts → types-CQoX--YI.d.ts} +1 -1
- package/dist/{types.gen-D2nbxMA0.d.ts → types.gen-D7WEgMDJ.d.ts} +1 -1
- package/dist/{utils-arqMz3zD.d.ts → utils-CiZrW4Ac.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-LAXQMTDQ.js +0 -2
- package/dist/chunk-LAXQMTDQ.js.map +0 -1
- package/dist/chunk-OFWEEY3Y.js +0 -2
- package/dist/chunk-OFWEEY3Y.js.map +0 -1
- package/dist/chunk-TMBD35L4.js +0 -2
- /package/dist/{chunk-4FW2VTO4.js.map → chunk-22HZVTR7.js.map} +0 -0
- /package/dist/{chunk-HUJ3AUIS.js.map → chunk-2ZCOC6FB.js.map} +0 -0
- /package/dist/{chunk-3CRC4NDD.js.map → chunk-3DGBLO6M.js.map} +0 -0
- /package/dist/{chunk-OXOK5PM3.js.map → chunk-3OX2LLXL.js.map} +0 -0
- /package/dist/{chunk-CTAWDJ2D.js.map → chunk-457SZDZQ.js.map} +0 -0
- /package/dist/{chunk-KRDAGWDH.js.map → chunk-5PB3CLBH.js.map} +0 -0
- /package/dist/{chunk-2FDEMDWJ.js.map → chunk-7X3WUOTU.js.map} +0 -0
- /package/dist/{chunk-W3OQNZW6.js.map → chunk-AGE76E7O.js.map} +0 -0
- /package/dist/{chunk-NPKIEWF4.js.map → chunk-ALC6W3PW.js.map} +0 -0
- /package/dist/{chunk-PU3WPIEK.js.map → chunk-BBOEK4Q5.js.map} +0 -0
- /package/dist/{chunk-T5OFLN36.js.map → chunk-CD6F3YL4.js.map} +0 -0
- /package/dist/{chunk-VCEQ5E2O.js.map → chunk-CZ7DTX5L.js.map} +0 -0
- /package/dist/{chunk-D6Y7GLBT.js.map → chunk-DDAMD7E7.js.map} +0 -0
- /package/dist/{chunk-7XKEJ5Y6.js.map → chunk-EMJ266VJ.js.map} +0 -0
- /package/dist/{chunk-K62H3A5T.js.map → chunk-H327JOTI.js.map} +0 -0
- /package/dist/{chunk-WLN6G3TE.js.map → chunk-J3BK2DEH.js.map} +0 -0
- /package/dist/{chunk-SKQWZNKT.js.map → chunk-JWDXZLGS.js.map} +0 -0
- /package/dist/{chunk-LJ6FHPXW.js.map → chunk-KLKPBGKL.js.map} +0 -0
- /package/dist/{chunk-UD4GEI4B.js.map → chunk-NGYAG3LB.js.map} +0 -0
- /package/dist/{chunk-QDSRG735.js.map → chunk-R5GUJ3IC.js.map} +0 -0
- /package/dist/{chunk-NHREKNSV.js.map → chunk-SPMEMAK5.js.map} +0 -0
- /package/dist/{chunk-PSHPB65F.js.map → chunk-UEEJS7TB.js.map} +0 -0
- /package/dist/{chunk-VYHITQHG.js.map → chunk-UHWPRDRD.js.map} +0 -0
- /package/dist/{chunk-FEIYAZ7Q.js.map → chunk-UIEXB3GW.js.map} +0 -0
- /package/dist/{chunk-6AQLDTMK.js.map → chunk-WUSZWDKK.js.map} +0 -0
- /package/dist/{chunk-G2X5F5YR.js.map → chunk-Z2AKDJE5.js.map} +0 -0
- /package/dist/{chunk-AJ5SXKFO.js.map → chunk-ZJAFMNUN.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as ee}from"./chunk-EGSUF7OD.js";import{a as L}from"./chunk-ZFKHCC4Z.js";import{a as Se,b as Le,c as Be,d as Oe,e as Ae,f as Ve,g as ze,h as Ge,i as Ue,j as Je,l as qe,m as Ze,n as Ke,o as Ye,p as Xe,r as Qe,t as je,u as eo,v as oo}from"./chunk-LAXQMTDQ.js";import{b as x}from"./chunk-KQPDXXG3.js";import{a as ve,b as B}from"./chunk-PJN2YJO4.js";import{a as ie,b as le,c as S,d as Me,e as Ie,f as We,g as He,h as b,i as N,j as P,k as D,l as w,m as T}from"./chunk-CR7AIZKA.js";import{h as Ee}from"./chunk-HRG5MSVG.js";import{a as _,e as j}from"./chunk-UQCSN47K.js";import{a as t}from"./chunk-P37U34EQ.js";import{Fragment as Xt,useEffect as Qt,useRef as it}from"react";import{Fragment as dt,jsx as A,jsxs as se}from"react/jsx-runtime";var to=t(({field:e,fieldState:o,fieldData:r})=>{let{name:n,label:l,description:i,options:m,multiple:a}=r;return se(N,{"data-field":n,className:_(`RemoteFlows__CheckBoxField__Item__${n}`),children:[A(D,{children:se(dt,{children:[m&&a?A(P,{children:l}):null,m&&a?m.map(d=>se("div",{className:"flex space-x-2",children:[A(Se,{id:d.value,onCheckedChange:c=>{e.onChange(c===!0,d.value)},checked:e.value?.includes(d.value),className:"RemoteFlows__CheckBox__Input"}),A(P,{htmlFor:d.value,className:"mb-0 RemoteFlows__CheckBox__Label",children:d.label})]},d.value)):se("div",{className:"flex space-x-2",children:[A(Se,{id:n,onCheckedChange:d=>{e.onChange(d===!0,null)},checked:e.value,className:"RemoteFlows__CheckBox__Input"}),A(P,{htmlFor:n,className:"mb-0 RemoteFlows__CheckBox__Label",children:l})]})]})}),i&&A(w,{children:i}),o.error&&A(T,{})]})},"CheckboxFieldDefault");import{jsx as ro}from"react/jsx-runtime";function me({name:e,defaultValue:o,description:r,label:n,onChange:l,multiple:i,options:m,component:a,...d}){let{components:c}=x(),{control:s}=S(),p=t((u,h,g)=>{if(i&&g){let f=u.value?[...u.value]:[];h?f.includes(g)||u.onChange([...f,g]):u.onChange(f.filter(C=>C!==g))}else u.onChange(h)},"handleCheckboxChange");return ro(b,{control:s,name:e,defaultValue:o,render:({field:u,fieldState:h})=>{let f=a||c?.checkbox||to,C={name:e,description:r,label:n,defaultValue:o,multiple:i,options:m,...d};return ro(f,{field:{...u,onChange:t((v,k)=>{p(u,v,k),l?.(v,k)},"onChange")},fieldState:h,fieldData:C})}})}t(me,"CheckBoxField");import{CalendarIcon as Ft}from"lucide-react";import{format as io}from"date-fns";import*as O from"@radix-ui/react-popover";import{PopoverClose as no}from"@radix-ui/react-popover";import{jsx as de}from"react/jsx-runtime";function ce({...e}){return de(O.Root,{"data-slot":"popover",...e})}t(ce,"Popover");function pe({...e}){return de(O.Trigger,{"data-slot":"popover-trigger",...e})}t(pe,"PopoverTrigger");function ue({className:e,align:o="center",sideOffset:r=4,...n}){return de(O.Portal,{children:de(O.Content,{"data-slot":"popover-content",align:o,sideOffset:r,className:_("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 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...n})})}t(ue,"PopoverContent");import{ChevronLeft as ct,ChevronRight as pt}from"lucide-react";import{DayPicker as ut}from"react-day-picker";import{jsx as xe}from"react/jsx-runtime";function ao({className:e,classNames:o,showOutsideDays:r=!0,...n}){return xe(ut,{showOutsideDays:r,className:_("p-3",e),classNames:{months:"flex flex-col sm:flex-row gap-2",month:"flex flex-col gap-4",caption:"flex justify-center pt-1 relative items-center w-full",caption_label:"text-sm font-medium",nav:"flex items-center gap-1",nav_button:_(ve({variant:"outline"}),"size-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-x-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:_("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-range-end)]:rounded-r-md",n.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:_(ve({variant:"ghost"}),"size-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start aria-selected:bg-primary aria-selected:text-primary-foreground",day_range_end:"day-range-end aria-selected:bg-primary aria-selected:text-primary-foreground",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...o},components:{IconLeft:t(({className:l,...i})=>xe(ct,{className:_("size-4",l),...i}),"IconLeft"),IconRight:t(({className:l,...i})=>xe(pt,{className:_("size-4",l),...i}),"IconRight")},...n})}t(ao,"Calendar");import{jsx as ft}from"react/jsx-runtime";function G({helpCenter:e}){return e?ft(ee,{zendeskId:e.id,children:e.callToAction}):null}t(G,"HelpCenter");import{Fragment as gt,jsx as I,jsxs as fe}from"react/jsx-runtime";function lo({field:e,fieldData:o,fieldState:r}){let{name:n,label:l,description:i,minDate:m,maxDate:a}=o,d=m?new Date(m):void 0,c=a?new Date(a):void 0;return fe(N,{"data-field":n,className:`flex flex-col RemoteFlows__DatePickerField__Item__${n}`,children:[I(P,{className:"RemoteFlows__DatePickerField__Label",children:l}),fe(ce,{children:[I(pe,{asChild:!0,children:I(D,{children:I("div",{children:fe(B,{type:"button",variant:"outline",className:_("w-full pl-3 text-left font-normal",!e.value&&"text-muted-foreground"),"data-testid":`date-picker-button-${n}`,children:[e.value&&I(gt,{children:io(e.value,"yyyy-MM-dd")}),I(Ft,{className:"ml-auto h-4 w-4 opacity-50"})]})})})}),I(ue,{className:"w-auto p-0 RemoteFlows__DatepickerField__PopoverContent",align:"start",children:I(ao,{mode:"single",className:"RemoteFlows__DatepickerField__Calendar",selected:e.value?new Date(e.value):void 0,onSelect:s=>{e.onChange(s?io(s,"yyyy-MM-dd"):null)},defaultMonth:d,components:{DayContent:t(s=>I(no,{children:s.date.getDate()}),"DayContent")},disabled:s=>!!(d&&s<d||c&&s>c)})})]}),i?fe(w,{children:[i," ",I(G,{helpCenter:o.meta?.helpCenter})]}):null,r.error&&I(T,{className:"RemoteFlows__DatePickerField__Error"})]})}t(lo,"DatePickerFieldDefault");import{jsx as so}from"react/jsx-runtime";function mo({description:e,label:o,name:r,minDate:n,maxDate:l,onChange:i,component:m,...a}){let{components:d}=x(),{control:c}=S(),s;a.meta?.mot&&typeof a.meta.mot=="number"?s=Ee(a.meta.mot):n&&(s=new Date(`${n}T00:00:00`));let p;return l&&(p=new Date(`${l}T23:59:59`)),so(b,{control:c,name:r,render:({field:u,fieldState:h})=>{let f=m||d?.date||lo,C={description:e,label:o,name:r,onChange:i,...s&&{minDate:s.toISOString()},...p&&{maxDate:p.toISOString()},...a};return so(f,{field:{...u,onChange:t(v=>{u.onChange(v),i?.(v)},"onChange")},fieldState:h,fieldData:C})}})}t(mo,"DatePickerField");import{jsx as U,jsxs as ht}from"react/jsx-runtime";function co({field:e,fieldState:o,fieldData:r}){let{name:n,label:l,description:i,multiple:m,accept:a}=r;return ht(N,{"data-field":n,className:`RemoteFlows__FileUpload__Item__${n}`,children:[U(P,{className:"RemoteFlows__FileUpload__Label",children:l}),U(D,{children:U(Le,{onChange:e.onChange,multiple:m,className:_("RemoteFlows__FileUpload__Input"),accept:a,files:e.value})}),i&&U("div",{className:"flex items-center justify-between",children:U(w,{className:"RemoteFlows__FileUpload__Description",children:i})}),o.error&&U(T,{className:"RemoteFlows__FileUpload__Error"})]})}t(co,"FileUploadFieldDefault");import{jsx as po}from"react/jsx-runtime";var _t=t((e,o)=>{if(!o)return null;for(let r of e)if(r.size>o){let n=Math.round(o/1048576),l=Math.round(r.size/(1024*1024));return`File "${r.name}" exceeds maximum size of ${n}MB (file is ${l}MB)`}return null},"validateFileSize");function uo({name:e,description:o,label:r,multiple:n,onChange:l,component:i,accept:m,maxSize:a,...d}){let{components:c}=x(),{control:s,setError:p,clearErrors:u}=S(),h=t(async(g,f)=>{let C=_t(g,a);if(C){p(e,{message:C});return}u(e),f.onChange(g),l?.(g)},"handleOnChange");return po(b,{control:s,name:e,render:({field:g,fieldState:f})=>{let v=i||c?.file||co,k={name:e,description:o,label:r,multiple:n,accept:m,maxFileSize:a,...d};return po(v,{field:{...g,value:g.value,onChange:t(async z=>h(z,g),"onChange")},fieldState:f,fieldData:k})}})}t(uo,"FileUploadField");import{jsx as Ct}from"react/jsx-runtime";function fo({field:e,fieldData:o}){return Ct(L,{type:"text",inputMode:"decimal",pattern:"^[0-9.]*$",...e,...o})}t(fo,"NumberFieldDefault");import{jsx as Fo}from"react/jsx-runtime";function Fe(e){let{components:o}=x(),{control:r}=S(),l=e.component||o?.number||fo;return Fo(b,{control:r,name:e.name,render:({field:i,fieldState:m})=>Fo(l,{field:{...i,onChange:t(a=>{i.onChange(a),e.onChange?.(a)},"onChange")},fieldState:m,fieldData:e})})}t(Fe,"NumberField");import{Fragment as yt}from"react";import{jsx as W,jsxs as ge}from"react/jsx-runtime";var go=t(({field:e,fieldData:o,fieldState:r})=>{let{name:n,label:l,description:i,options:m}=o;return W("fieldset",{className:_("space-y-3",`RemoteFlows__RadioGroupField__Item__${n}`),"data-field":n,children:ge(N,{children:[W("legend",{children:l}),i&&ge(w,{children:[i," ",W(G,{helpCenter:o.meta?.helpCenter})]}),W(D,{children:W(Be,{"aria-label":l||n,onValueChange:a=>{e.onChange(a)},value:e.value,className:"flex flex-col space-y-3",children:m?.map(a=>W(yt,{children:ge(N,{"data-field":n,className:"flex items-start space-x-3 space-y-0 gap-0 RemoteFlows__RadioField__Item",children:[W(D,{children:W(Oe,{value:a.value,className:"RemoteFlows__RadioField__Input",disabled:a.disabled})}),ge("div",{children:[W(P,{className:"font-normal mb-0 RemoteFlows__RadioField__Label",children:a.label}),a.description&&W(w,{className:"mt-2",children:a.description})]})]})},a.value))})}),r.error&&W(T,{})]})})},"RadioGroupFieldDefault");import{jsx as ho}from"react/jsx-runtime";function _o({name:e,defaultValue:o,description:r,label:n,options:l,onChange:i,component:m,...a}){let{components:d}=x(),{control:c}=S();return ho(b,{control:c,name:e,defaultValue:o,render:({field:s,fieldState:p})=>{let h=m||d?.radio||go,g={name:e,defaultValue:o,description:r,label:n,options:l,...a};return ho(h,{field:{...s,onChange:t(f=>{s.onChange(f),i?.(f)},"onChange")},fieldState:p,fieldData:g})}})}t(_o,"RadioGroupField");import{jsx as E,jsxs as Co}from"react/jsx-runtime";function yo({field:e,fieldState:o,fieldData:r}){let{name:n,label:l,description:i,options:m}=r;return Co(N,{"data-field":n,className:`RemoteFlows__SelectField__Item__${n}`,children:[E(P,{className:"RemoteFlows__SelectField__Label",children:l}),E(D,{children:E("div",{className:"relative",children:Co(Ae,{value:e.value||"",onValueChange:a=>{e.onChange(a)},children:[E(Ge,{className:"RemoteFlows__SelectField__Trigger","aria-invalid":!!o.error,"aria-label":l,children:E("span",{className:"absolute",children:E(ze,{placeholder:l})})}),E(Ue,{className:"RemoteFlows__SelectField__Content",children:E(Ve,{className:"RemoteFlows__SelectField__Group",children:m?.map(a=>E(Je,{value:a.value,className:"RemoteFlows__SelectField__SelectItem",disabled:a.disabled,children:a.label},a.value))})})]})})}),i&&E(w,{children:i}),o.error&&E(T,{})]})}t(yo,"SelectFieldDefault");import{jsx as vo}from"react/jsx-runtime";function So({label:e,name:o,options:r,defaultValue:n,description:l,onChange:i,component:m,...a}){let{control:d}=S(),{components:c}=x();return vo(b,{defaultValue:n,control:d,name:o,render:({field:s,fieldState:p})=>{let h=m||c?.select||yo,g={label:e,name:o,options:r,defaultValue:n,description:l,onChange:i,...a};return vo(h,{field:{...s,onChange:t(f=>{let C=a.jsonType==="number"?Number(f):f;s.onChange(C),i?.(C)},"onChange")},fieldState:p,fieldData:g})}})}t(So,"SelectField");import{useEffect as Pt,useState as Nt}from"react";import{Fragment as vt,useState as St}from"react";import{Check as xt,ChevronDownIcon as bt,X as kt}from"lucide-react";import{Command as J}from"cmdk";import{SearchIcon as Qn}from"lucide-react";import{jsx as q,jsxs as oa}from"react/jsx-runtime";function xo({className:e,...o}){return q(J,{"data-slot":"command",className:_("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...o})}t(xo,"Command");function bo({className:e,...o}){return q(J.List,{"data-slot":"command-list",className:_("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...o})}t(bo,"CommandList");function ko({...e}){return q(J.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}t(ko,"CommandEmpty");function Po({className:e,...o}){return q(J.Group,{"data-slot":"command-group",className:_("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...o})}t(Po,"CommandGroup");function No({className:e,...o}){return q(J.Separator,{"data-slot":"command-separator",className:_("bg-border -mx-1 h-px",e),...o})}t(No,"CommandSeparator");function Do({className:e,...o}){return q(J.Item,{"data-slot":"command-item",className:_("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...o})}t(Do,"CommandItem");import{jsx as $,jsxs as Z}from"react/jsx-runtime";function he({options:e,selected:o,onChange:r,placeholder:n,...l}){let[i,m]=St(!1),a=t(s=>{r(o.filter(p=>p.value!==s.value))},"handleUnselect"),d=e.some(s=>s.category),c=e.reduce((s,p)=>{let u=p.category||"Uncategorized";return s[u]||(s[u]=[]),s[u].push(p),s},{});return Z(ce,{open:i,onOpenChange:m,...l,children:[$(pe,{children:Z(B,{variant:"outline",role:"combobox","aria-expanded":i,className:"w-full justify-between font-normal",type:"button",children:[$("div",{className:"flex gap-1 flex-wrap overflow-x-auto max-h-[2.5rem] items-center",children:o.length>0?o.map(s=>Z(qe,{variant:"secondary",className:"mr-1 mb-1",children:[s.label,$("div",{role:"button",tabIndex:0,"aria-label":`remove ${s.label}`,className:"ml-1 ring-offset-background rounded-full outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 cursor-pointer",onKeyDown:p=>{p.key==="Enter"&&a(s)},onMouseDown:p=>{p.preventDefault(),p.stopPropagation()},onClick:()=>a(s),children:$(kt,{className:"h-3 w-3 text-muted-foreground hover:text-foreground"})})]},s.label)):$("span",{className:"text-foreground",children:n})}),$(bt,{className:"size-4"})]})}),$(ue,{align:"start",className:"w-full p-0",children:$(xo,{children:Z(bo,{children:[$(ko,{children:"No item found."}),Object.entries(c).map(([s,p],u)=>Z(vt,{children:[u>0&&$(No,{}),$(Po,{heading:d?s:void 0,children:p.map(h=>{let g=o.some(f=>f.value===h.value);return Z(Do,{onSelect:()=>{r(g?o.filter(f=>f.value!==h.value):[...o,h])},children:[$(xt,{className:_("mr-2 h-4 w-4",g?"opacity-100":"opacity-0")}),h.label]},h.label)})})]},s))]})})})]})}t(he,"MultiSelect");import{jsx as oe,jsxs as wo}from"react/jsx-runtime";function To({field:e,fieldState:o,fieldData:r}){let[n,l]=Nt([]),i=t(a=>{let d=a.map(({value:c})=>c);e.onChange(d),l(a)},"handleChange");Pt(()=>{e.value&&r.options&&l(e.value.map(a=>r?.options?.find(d=>d.value===a)))},[e.value,r.options]);let m=[...Object.entries(r.$meta?.regions||{}).map(([a,d])=>({value:d,label:a,category:"Regions"})),...Object.entries(r.$meta?.subregions||{}).map(([a,d])=>({value:d,label:a,category:"Subregions"})),...r.options?.map(a=>({...a,value:a.value,label:a.label,category:"Countries"}))||[]];return wo(N,{"data-field":e.name,className:`RemoteFlows__CountryField__Item__${e.name}`,children:[oe(P,{className:"RemoteFlows__CountryField__Label",children:r.label}),oe(D,{children:oe(he,{options:m,selected:n,onChange:i})}),r.description&&wo(w,{children:[r.description," ",oe(G,{helpCenter:r.meta?.helpCenter})]}),o.error&&oe(T,{})]})}t(To,"CountryFieldDefault");import{jsx as Ro}from"react/jsx-runtime";function $o({label:e,name:o,options:r,defaultValue:n,description:l,onChange:i,$meta:m,component:a,...d}){let{control:c}=S(),{components:s}=x();return Ro(b,{defaultValue:n,control:c,name:o,render:({field:p,fieldState:u})=>{let g=a||s?.countries||To,f={label:e,name:o,options:r,defaultValue:n,description:l,onChange:i,$meta:m,...d};return Ro(g,{field:{...p,onChange:t(C=>{p.onChange(C),i?.(C)},"onChange")},fieldState:u,fieldData:f})}})}t($o,"CountryField");import*as Mo from"react";import{jsx as Dt}from"react/jsx-runtime";var be=Mo.forwardRef(({className:e,...o},r)=>Dt("textarea",{className:_("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...o}));be.displayName="Textarea";import{jsx as te,jsxs as ke}from"react/jsx-runtime";function Io({field:e,fieldState:o,fieldData:r}){let{name:n,label:l,description:i,maxLength:m}=r,a=e.value?.length??0;return ke(N,{"data-field":n,className:`RemoteFlows__TextArea__Item__${n}`,children:[te(P,{className:"RemoteFlows__TextArea__Label",children:l}),te(D,{children:te(be,{...e,value:e.value??"",onChange:d=>{e.onChange(d)},className:_(o.error&&"border-red-500 focus-visible:ring-red-500","RemoteFlows__TextArea__Input"),placeholder:l})}),(i||m)&&ke("div",{className:"flex items-center justify-between",children:[i&&te(w,{className:"RemoteFlows__TextArea__Description",children:i}),m&&ke("span",{className:"text-sm ml-auto RemoteFlows__TextArea__MaxLength",children:[a,"/",m]})]}),o.error&&te(T,{className:"RemoteFlows__TextArea__Error"})]})}t(Io,"TextAreaFieldDefault");import{jsx as Wo}from"react/jsx-runtime";function Eo({name:e,description:o,label:r,onChange:n,maxLength:l,component:i,...m}){let{components:a}=x(),{control:d}=S();return Wo(b,{control:d,name:e,render:({field:c,fieldState:s})=>{let u=i||a?.textarea||Io,h={name:e,description:o,label:r,maxLength:l,...m};return Wo(u,{field:{...c,onChange:t(g=>{c.onChange(g),n?.(g)},"onChange")},fieldState:s,fieldData:h})}})}t(Eo,"TextAreaField");import{jsx as wt}from"react/jsx-runtime";function Ho({field:e,fieldData:o}){return wt(L,{name:e.name,...o,type:"email"})}t(Ho,"EmailFieldDefault");import{jsx as Lo}from"react/jsx-runtime";function Bo(e){let{components:o}=x(),{control:r}=S(),l=e.component||o?.email||Ho;return Lo(b,{control:r,name:e.name,render:({field:i,fieldState:m})=>Lo(l,{field:{...i,onChange:t(a=>{i.onChange(a),e.onChange?.(a)},"onChange")},fieldState:m,fieldData:e})})}t(Bo,"EmailField");import{jsx as Oo}from"react/jsx-runtime";function Ao(e){let{control:o}=S();return Oo(b,{control:o,name:e.name,render:({field:r})=>Oo("input",{...r,type:"hidden"})})}t(Ao,"HiddenField");import{useEffect as At,useState as Vt}from"react";import Vo from"lodash.groupby";import K from"lodash.capitalize";var zo=60,_e=["monday","tuesday","wednesday","thursday","friday","saturday","sunday"];function Tt(e){if(e<60)return`${e}m`;let o=Math.floor(e/zo),r=e%zo;return r>0?`${o}h${r}m`:`${o}h`}t(Tt,"convertBreakDurationToHours");function Go(e){let o=e.reduce((r,n)=>n.hours+r,0);return Number(o.toFixed(2))}t(Go,"calculateTotalWorkHours");function Rt(e,o){let r=o.map(({day:i})=>i.toLowerCase()),n=r.indexOf(e),l=null;for(;n<r.length&&!l;){let i=r[n],m=r[n+1],a=_e.indexOf(i)+1;_e[a]===m||(l=i),n+=1}return l}t(Rt,"findLastConsecutiveDay");function $t(e){return e.start_time&&e.end_time&&(typeof e.hours=="number"?e.hours:Number.parseInt(e.hours))>0}t($t,"shouldSummarizeSchedule");function Mt(e){return Number.parseInt(e.break_duration_minutes)>0}t(Mt,"shouldSummarizeBreaks");function Uo(e){let o=e.filter($t),r=Vo(o,a=>`${a.start_time}|${a.end_time}`),n=e.filter(Mt),l=Vo(n,"break_duration_minutes"),i=Object.keys(r).map(a=>{let d=r[a],c=d[0].day,[s,p]=a.split("|"),u=`from <span>${s.replace(":","h")}</span> to <span>${p.replace(":","h")}</span>`,h=Rt(c,d),f=(h?d.findIndex(C=>C.day===h):-1)===d.length-1;return d.length===1?`${K(c)}, ${u}`:!f||!h?d.reduce((C,v,k)=>{let z=K(v.day);return k===d.length-1?`${C}and ${z}, ${u}`:`${C}<span>${z}</span>, `},""):`<span>${K(c)}</span> to <span>${K(h)}</span>, ${u}`}),m=Object.keys(l).reverse().map((a,d)=>{let c=d===0,s=l[a],p=Tt(parseInt(a,10));if(Object.keys(l).length===1)return`With ${p} daily breaks`;if(s.length===1){let u=`${p} break on ${K(s[0].day)}.`;return c?`With ${u}`:u}return s.reduce((u,h,g)=>{let f=K(h.day);return g===0?`${u} ${f}`:g===s.length-1?`${u}, and ${f}.`:`${u}, ${f}`},c?`With ${p} break on`:`${p} break on`)});return{workHoursSummary:i,breakSummary:m}}t(Uo,"buildWorkScheduleSummary");function Pe(e){let{checked:o,start_time:r,end_time:n,break_duration_minutes:l}=e;if(!o)return 0;let[i,m]=r.split(":").map(Number),[a,d]=n.split(":").map(Number),c=i*60+m,u=(a*60+d-c-Number.parseInt(l||"0"))/60;return u===Math.floor(u)?u:Number(u.toFixed(2))}t(Pe,"calculateHours");var It={monday:"Mon",tuesday:"Tue",wednesday:"Wed",thursday:"Thu",friday:"Fri",saturday:"Sat",sunday:"Sun"};function Ce(e){return It[e]}t(Ce,"getShortWeekday");import*as R from"yup";var Jo=t((e,o,r)=>{if(e&&"reportValidity"in e){let n=ie(r,o);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},"r"),Ne=t((e,o)=>{for(let r in o.fields){let n=o.fields[r];n&&n.ref&&"reportValidity"in n.ref?Jo(n.ref,r,e):n&&n.refs&&n.refs.forEach(l=>Jo(l,r,e))}},"o"),Zo=t((e,o)=>{o.shouldUseNativeValidation&&Ne(e,o);let r={};for(let n in e){let l=ie(o.fields,n),i=Object.assign(e[n]||{},{ref:l&&l.ref});if(Wt(o.names||Object.keys(e),n)){let m=Object.assign({},ie(r,n));le(m,"root",i),le(r,n,m)}else le(r,n,i)}return r},"s"),Wt=t((e,o)=>{let r=qo(o);return e.some(n=>qo(n).match(`^${r}\\.\\d+`))},"i");function qo(e){return e.replace(/\]|\[/g,"")}t(qo,"n");function Ko(e,o,r){return o===void 0&&(o={}),r===void 0&&(r={}),function(n,l,i){try{return Promise.resolve((function(m,a){try{var d=(o.context&&process.env.NODE_ENV==="development"&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e[r.mode==="sync"?"validateSync":"validate"](n,Object.assign({abortEarly:!1},o,{context:l}))).then(function(c){return i.shouldUseNativeValidation&&Ne({},i),{values:r.raw?Object.assign({},n):c,errors:{}}}))}catch(c){return a(c)}return d&&d.then?d.then(void 0,a):d})(0,function(m){if(!m.inner)throw m;return{values:{},errors:Zo((a=m,d=!i.shouldUseNativeValidation&&i.criteriaMode==="all",(a.inner||[]).reduce(function(c,s){if(c[s.path]||(c[s.path]={message:s.message,type:s.type}),d){var p=c[s.path].types,u=p&&p[s.type];c[s.path]=Me(s.path,d,c,s.type,u?[].concat(u,s.message):s.message)}return c},{})),i)};var a,d}))}catch(m){return Promise.reject(m)}}}t(Ko,"o");import{Fragment as Et,useState as Ht}from"react";import{jsx as y,jsxs as M}from"react/jsx-runtime";var Lt=R.object({day:R.string().required(),checked:R.boolean().required(),start_time:R.string().matches(/^([01]\d|2[0-3]):([0-5]\d)$/,"Invalid time format (HH:mm)").when("checked",{is:!0,then:t(e=>e.required("Required"),"then"),otherwise:t(e=>e.optional().nullable(),"otherwise")}),end_time:R.string().matches(/^([01]\d|2[0-3]):([0-5]\d)$/,"Invalid time format (HH:mm)").when("checked",{is:!0,then:t(e=>e.required("Required"),"then"),otherwise:t(e=>e.optional().nullable(),"otherwise")}),hours:R.number().default(0),break_duration_minutes:R.string().default("0")}),Bt=R.object({schedule:R.array(Lt)});function Ot({defaultSchedule:e,onSubmit:o}){let[r,n]=Ht(!1),l=_e.map(f=>{let C=e.find(v=>v.day.toLowerCase()===Ce(f).toLowerCase()||v.day.toLowerCase()===f.toLowerCase());return C?{...C,day:Ce(f),checked:!0}:{...e[0],checked:!1,day:Ce(f)}}),i=We({defaultValues:{schedule:l},resolver:Ko(Bt)}),{handleSubmit:m,watch:a,reset:d,control:c,formState:s}=i,{fields:p}=Ie({name:"schedule",control:c}),u=a("schedule");function h(f){let C=f.schedule.filter(({checked:v})=>v).map(v=>({...v,hours:Pe(v)}));o(C),n(!1)}t(h,"handleSubmitWorkingHours");function g(){d(),n(!1)}return t(g,"handleCancel"),y("div",{className:"flex items-center justify-between",children:M(Ze,{open:r,onOpenChange:n,children:[y(Ke,{asChild:!0,children:y(B,{variant:"link",className:"flex items-center p-0 RemoteFlows__WorkScheduleSelectionForm__Trigger",children:"Edit Schedule"})}),M(Ye,{className:"max-w-5xl max-h-[90vh] overflow-y-auto px-8 py-4 RemoteFlows__WorkScheduleSelectionForm__Content",children:[y(Xe,{children:y(Qe,{className:"RemoteFlows__WorkScheduleSelectionForm__Title",children:"Edit employee working hours"})}),y(He,{...i,children:M("form",{className:"space-y-4 RemoteFlows__WorkScheduleSelectionForm__Form",children:[M("div",{className:"rounded-lg",children:[y("p",{className:"text-gray-600 text-sm mb-4 RemoteFlows__WorkScheduleSelectionForm__Description",children:"The times displayed are in the employee's time zone in the 24-hour format."}),M("div",{className:"grid grid-cols-12 gap-4 text-sm font-medium text-gray-500 uppercase tracking-wide RemoteFlows__WorkScheduleSelectionForm__Header",children:[y("div",{className:"col-span-2"}),y("div",{className:"col-span-3 text-center",children:"START"}),y("div",{className:"col-span-1 text-center"}),y("div",{className:"col-span-3 text-center",children:"END"}),y("div",{className:"col-span-2 text-center",children:"HOURS"})]}),y("div",{className:"RemoteFlows__WorkScheduleSelectionForm__Rows",children:p.map((f,C)=>{let v=u[C],k=Pe(v);return M(Et,{children:[M("div",{className:"grid grid-cols-12 gap-4 items-center py-2 RemoteFlows__WorkScheduleSelectionForm__Row-Hours",children:[y("div",{className:"col-span-2 flex items-center gap-3",children:y(me,{label:f.day,name:`schedule.${C}.checked`})}),y("div",{className:"col-span-3",children:y(L,{name:`schedule.${C}.start_time`,includeErrorMessage:!1})}),y("div",{className:"col-span-1 text-center text-gray-500",children:"to"}),y("div",{className:"col-span-3",children:y(L,{name:`schedule.${C}.end_time`,includeErrorMessage:!1})}),y("div",{className:"col-span-2 text-center text-gray-600",children:isNaN(k)?"-":`${k} hours`})]}),M("div",{className:"grid grid-cols-12 gap-4 items-center py-2 RemoteFlows__WorkScheduleSelectionForm__Row-Break",children:[y("div",{className:"col-span-2 text-gray-500",children:"Break"}),y("div",{className:"col-span-2",children:y(L,{name:`schedule.${C}.break_duration_minutes`,includeErrorMessage:!1})}),y("div",{className:"col-span-2 text-gray-500",children:"minutes"}),y("div",{className:"col-span-4"})]})]},f.id)})})]}),Object.keys(s.errors).length>0&&y("p",{className:"text-destructive text-sm mb-0",children:"Invalid time format (HH:mm)"}),M("div",{className:"flex gap-4 pt-4",children:[y(B,{type:"button",className:"reset-button",variant:"outline",onClick:g,children:"Cancel"}),y(B,{type:"button",className:"submit-button",onClick:m(h),children:"Save Schedule"})]})]})})]})]})})}t(Ot,"WorkScheduleSelectionForm");var Yo=t(({fieldData:e})=>{let{defaultFormattedValue:o,currentSchedule:r,onSubmit:n}=e,{workHoursSummary:l,breakSummary:i,totalWorkHours:m}=o;return M("div",{className:"flex flex-col gap-3 RemoteFlows__WorkScheduleField",children:[y("p",{className:"text-sm RemoteFlows__WorkScheduleField__Title",children:"Work hours"}),M("div",{className:"flex flex-col gap-1 RemoteFlows__WorkScheduleField__Summary",children:[y("p",{className:"text-sm text-gray-500 RemoteFlows__WorkScheduleField__Summary__WorkHours",dangerouslySetInnerHTML:{__html:l.join(", ")}}),y("p",{className:"text-sm text-gray-500 RemoteFlows__WorkScheduleField__Summary__Break",children:i.join()}),M("p",{className:"text-sm text-gray-500 RemoteFlows__WorkScheduleField__Summary__Total",children:["Total of ",y("span",{children:m})," hours per week"]}),y(Ot,{defaultSchedule:r,onSubmit:n})]})]})},"WorkScheduleFieldDefault");import{jsx as Xo}from"react/jsx-runtime";function Qo(e){let{components:o}=x(),{setValue:r,control:n,watch:l}=S(),i=l(e.name),[m,a]=Vt(i),{workHoursSummary:d,breakSummary:c}=Uo(m),s=Go(m);At(()=>{r(e.name,m)},[m,e.name,r]);function p(f){a(f)}t(p,"onSubmit");let h=e.component||o?.["work-schedule"]||Yo,g={...e,onSubmit:p,currentSchedule:m,defaultFormattedValue:{workHoursSummary:d,breakSummary:c,totalWorkHours:s}};return Xo(b,{control:n,name:e.name,render:({field:f,fieldState:C})=>Xo(h,{field:{...f,onChange:t(v=>{f.onChange(v),e.onChange?.(v)},"onChange")},fieldState:C,fieldData:g})})}t(Qo,"WorkScheduleField");import{useEffect as zt,useState as Gt}from"react";import{jsx as re,jsxs as Ut}from"react/jsx-runtime";var jo=t(({field:e,fieldState:o,fieldData:r})=>{let[n,l]=Gt([]),{name:i,label:m,description:a,options:d}=r,c=n||d?.filter(s=>e.value?.includes(s.value));return zt(()=>{l(d?.filter(s=>e.value?.includes(s.value))||[])},[e.value,d]),Ut(N,{"data-field":i,className:`RemoteFlows__SelectField__Item__${i}`,children:[re(P,{className:"RemoteFlows__SelectField__Label",children:m}),re(D,{children:re(he,{options:d||[],selected:c,onChange:s=>{let p=s.map(({value:u})=>u);e.onChange(p),l(s)}})}),a&&re(w,{children:a}),o.error&&re(T,{})]})},"MultiSelectFieldDefault");import{jsx as et}from"react/jsx-runtime";function ot({label:e,name:o,options:r,defaultValue:n,description:l,onChange:i,component:m,...a}){let{control:d}=S(),{components:c}=x();return et(b,{defaultValue:n,control:d,name:o,render:({field:s,fieldState:p})=>{let h=m||c?.["multi-select"]||jo,g={label:e,name:o,options:r,defaultValue:n,description:l,onChange:i,...a};return et(h,{field:{...s,onChange:t(f=>{s.onChange(f),i?.(f)},"onChange")},fieldState:p,fieldData:g})}})}t(ot,"MultiSelectField");import{jsx as Jt}from"react/jsx-runtime";var tt=t(e=>Jt(Fe,{maxLength:15,...e}),"MoneyField");var De={checkbox:me,text:L,email:Bo,money:tt,select:So,"multi-select":ot,radio:_o,number:Fe,file:uo,date:mo,textarea:Eo,countries:$o,hidden:Ao,"work-schedule":Qo};import{AlertCircle as qt}from"lucide-react";import{jsx as we,jsxs as Zt}from"react/jsx-runtime";function rt({data:e}){let{title:o,description:r,severity:n}=e,i={warning:"warning",error:"destructive",info:"default",success:"warning"}[n]??"warning";return Zt(je,{variant:i,children:[we(qt,{className:"h-4 w-4"}),o&&we(eo,{dangerouslySetInnerHTML:{__html:o}}),r&&we(oo,{dangerouslySetInnerHTML:{__html:r}})]})}t(rt,"StatementDefault");import{jsx as Kt}from"react/jsx-runtime";function nt({title:e,description:o,severity:r}){let{components:n}=x(),l=n?.statement??rt;return Kt(l,{data:{title:e?j(e):void 0,description:j(o),severity:r}})}t(nt,"Statement");import{jsx as Yt}from"react/jsx-runtime";var at=t(({isExpanded:e,onToggle:o,className:r,...n})=>Yt(B,{type:"button",className:_("RemoteFlows__Button RemoteFlows__FieldSetField__ToggleButton",r),variant:"default",onClick:o,...n,children:e?"Remove":"Define"}),"FieldsetToggleButtonDefault");import{Fragment as jt,jsx as H,jsxs as V}from"react/jsx-runtime";function lt({label:e,name:o,fields:r,description:n,components:l,statement:i,isFlatFieldset:m,extra:a,variant:d="outset",features:c,meta:s}){let{helpCenter:p}=s||{},{watch:u,setValue:h,trigger:g,formState:f}=S(),{components:C}=x(),v=c?.toggle?.stateField,k=v?u(v):c?.toggle?.defaultExpanded??!0,z=r.map(({name:F})=>`${o}.${F}`),ne=u(z),Te=it(ne),Y=it(null),st=t(()=>{v&&h(v,!k)},"toggleExpanded");Qt(()=>{let F=ne,X=Te.current,ye=f.isSubmitted||f.submitCount>0,ae=!1;for(let Q=0;Q<F.length;Q++)if(F[Q]!==void 0&&X[Q]!==F[Q]){ae=!0;break}return ae&&ye&&(Y.current&&clearTimeout(Y.current),Y.current=setTimeout(()=>{g()},50)),Te.current=[...F],()=>{Y.current&&clearTimeout(Y.current)}},[ne,g,f.isSubmitted,f.submitCount]);let mt=C?.fieldsetToggle||at,Re=`${o}-content`,$e=`${o}-header`;return V("fieldset",{className:_("border-1 border-input p-4 rounded-xl","RemoteFlows__FieldSetField",`RemoteFlows__FieldSetField__${o}`),children:[H("legend",{className:_("text-sm font-semibold px-2",d==="inset"&&"hidden"),children:e}),p?.callToAction&&p?.id&&d==="outset"&&H(ee,{className:"RemoteFlows__FieldSetField__HelpCenterLink mb-3",zendeskId:p.id,children:p.callToAction}),d==="inset"&&V(jt,{children:[V("div",{className:"RemoteFlows__FieldSetField__Header",id:$e,"data-state":k?"expanded":"collapsed","aria-expanded":k,children:[H("h3",{className:_("RemoteFlows__FieldSetField__Title"),children:e}),c?.toggle?.enabled&&H(mt,{isExpanded:k,onToggle:st,"aria-expanded":k,"aria-controls":Re,"aria-label":`${k?"Hide":"Show"} ${e}`,className:_("RemoteFlows__FieldSetField__Toggle",c.toggle?.className),children:k?c.toggle.labels?.collapse??"Remove":c.toggle.labels?.expand??"Define"})]}),p?.callToAction&&p?.id&&H(ee,{className:"RemoteFlows__FieldSetField__HelpCenterLink mb-3",zendeskId:p.id,children:p.callToAction})]}),k&&V("div",{id:Re,"aria-labelledby":$e,role:"region",children:[n?H("div",{className:"mb-5 RemoteFlows__FieldSetField__Description",dangerouslySetInnerHTML:{__html:j(n)}}):null,V("div",{className:"grid gap-4",children:[r.map(F=>{if(F.calculateDynamicProperties&&(F={...F,...F.calculateDynamicProperties(ne,F)||{}}),F.isVisible===!1||F.deprecated)return null;if(F.inputType==="fieldset")return H(lt,{...F,name:`${m?F.name:`${o}.${F.name}`}`,components:l},`${m?F.name:`${o}.${F.name}`}`);if(F.inputType==="fieldset-flat")return H(lt,{...F,name:`${m?F.name:`${o}.${F.name}`}`,components:l,isFlatFieldset:!0},`${m?F.name:`${o}.${F.name}`}`);let X=De[F.inputType];if(F.Component){let{Component:ye}=F;return H(ye,{setValue:ae=>h(m?F.name:`${o}.${F.name}`,ae),...F},F.name)}return X?(F.inputType==="select"&&F.multiple&&(X=De["multi-select"]),V(Xt,{children:[H(X,{...F,name:`${m?F.name:`${o}.${F.name}`}`,component:l?.[F.inputType]}),F.extra?F.extra:null]},`${m?F.name:`${o}.${F.name}`}`)):V("p",{className:"error",children:["Field type ",F.inputType," not supported"]})}),a||null,i?H(nt,{...i}):null]})]})]})}t(lt,"FieldSetField");export{De as a,nt as b,lt as c};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as ee}from"./chunk-EGSUF7OD.js";import{a as L}from"./chunk-ZFKHCC4Z.js";import{a as Se,b as Le,c as Be,d as Oe,e as Ae,f as Ve,g as ze,h as Ge,i as Ue,j as Je,l as qe,m as Ze,n as Ke,o as Ye,p as Xe,r as Qe,t as je,u as eo,v as oo}from"./chunk-TC3CLBCD.js";import{b as x}from"./chunk-KQPDXXG3.js";import{a as ve,b as B}from"./chunk-PJN2YJO4.js";import{a as ie,b as le,c as S,d as Me,e as Ie,f as We,g as He,h as b,i as N,j as P,k as D,l as w,m as T}from"./chunk-CR7AIZKA.js";import{h as Ee}from"./chunk-HRG5MSVG.js";import{a as _,e as j}from"./chunk-UQCSN47K.js";import{a as t}from"./chunk-P37U34EQ.js";import{Fragment as Xt,useEffect as Qt,useRef as it}from"react";import{Fragment as dt,jsx as A,jsxs as se}from"react/jsx-runtime";var to=t(({field:e,fieldState:o,fieldData:r})=>{let{name:n,label:l,description:i,options:m,multiple:a}=r;return se(N,{"data-field":n,className:_(`RemoteFlows__CheckBoxField__Item__${n}`),children:[A(D,{children:se(dt,{children:[m&&a?A(P,{children:l}):null,m&&a?m.map(d=>se("div",{className:"flex space-x-2",children:[A(Se,{id:d.value,onCheckedChange:c=>{e.onChange(c===!0,d.value)},checked:e.value?.includes(d.value),className:"RemoteFlows__CheckBox__Input"}),A(P,{htmlFor:d.value,className:"mb-0 RemoteFlows__CheckBox__Label",children:d.label})]},d.value)):se("div",{className:"flex space-x-2",children:[A(Se,{id:n,onCheckedChange:d=>{e.onChange(d===!0,null)},checked:e.value,className:"RemoteFlows__CheckBox__Input"}),A(P,{htmlFor:n,className:"mb-0 RemoteFlows__CheckBox__Label",children:l})]})]})}),i&&A(w,{children:i}),o.error&&A(T,{})]})},"CheckboxFieldDefault");import{jsx as ro}from"react/jsx-runtime";function me({name:e,defaultValue:o,description:r,label:n,onChange:l,multiple:i,options:m,component:a,...d}){let{components:c}=x(),{control:s}=S(),p=t((u,h,g)=>{if(i&&g){let f=u.value?[...u.value]:[];h?f.includes(g)||u.onChange([...f,g]):u.onChange(f.filter(C=>C!==g))}else u.onChange(h)},"handleCheckboxChange");return ro(b,{control:s,name:e,defaultValue:o,render:({field:u,fieldState:h})=>{let f=a||c?.checkbox||to,C={name:e,description:r,label:n,defaultValue:o,multiple:i,options:m,...d};return ro(f,{field:{...u,onChange:t((v,k)=>{p(u,v,k),l?.(v,k)},"onChange")},fieldState:h,fieldData:C})}})}t(me,"CheckBoxField");import{CalendarIcon as Ft}from"lucide-react";import{format as io}from"date-fns";import*as O from"@radix-ui/react-popover";import{PopoverClose as no}from"@radix-ui/react-popover";import{jsx as de}from"react/jsx-runtime";function ce({...e}){return de(O.Root,{"data-slot":"popover",...e})}t(ce,"Popover");function pe({...e}){return de(O.Trigger,{"data-slot":"popover-trigger",...e})}t(pe,"PopoverTrigger");function ue({className:e,align:o="center",sideOffset:r=4,...n}){return de(O.Portal,{children:de(O.Content,{"data-slot":"popover-content",align:o,sideOffset:r,className:_("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 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...n})})}t(ue,"PopoverContent");import{ChevronLeft as ct,ChevronRight as pt}from"lucide-react";import{DayPicker as ut}from"react-day-picker";import{jsx as xe}from"react/jsx-runtime";function ao({className:e,classNames:o,showOutsideDays:r=!0,...n}){return xe(ut,{showOutsideDays:r,className:_("p-3",e),classNames:{months:"flex flex-col sm:flex-row gap-2",month:"flex flex-col gap-4",caption:"flex justify-center pt-1 relative items-center w-full",caption_label:"text-sm font-medium",nav:"flex items-center gap-1",nav_button:_(ve({variant:"outline"}),"size-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-x-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:_("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-range-end)]:rounded-r-md",n.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:_(ve({variant:"ghost"}),"size-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start aria-selected:bg-primary aria-selected:text-primary-foreground",day_range_end:"day-range-end aria-selected:bg-primary aria-selected:text-primary-foreground",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...o},components:{IconLeft:t(({className:l,...i})=>xe(ct,{className:_("size-4",l),...i}),"IconLeft"),IconRight:t(({className:l,...i})=>xe(pt,{className:_("size-4",l),...i}),"IconRight")},...n})}t(ao,"Calendar");import{jsx as ft}from"react/jsx-runtime";function G({helpCenter:e}){return e?ft(ee,{zendeskId:e.id,children:e.callToAction}):null}t(G,"HelpCenter");import{Fragment as gt,jsx as I,jsxs as fe}from"react/jsx-runtime";function lo({field:e,fieldData:o,fieldState:r}){let{name:n,label:l,description:i,minDate:m,maxDate:a}=o,d=m?new Date(m):void 0,c=a?new Date(a):void 0;return fe(N,{"data-field":n,className:`flex flex-col RemoteFlows__DatePickerField__Item__${n}`,children:[I(P,{className:"RemoteFlows__DatePickerField__Label",children:l}),fe(ce,{children:[I(pe,{asChild:!0,children:I(D,{children:I("div",{children:fe(B,{type:"button",variant:"outline",className:_("w-full pl-3 text-left font-normal",!e.value&&"text-muted-foreground"),"data-testid":`date-picker-button-${n}`,children:[e.value&&I(gt,{children:io(e.value,"yyyy-MM-dd")}),I(Ft,{className:"ml-auto h-4 w-4 opacity-50"})]})})})}),I(ue,{className:"w-auto p-0 RemoteFlows__DatepickerField__PopoverContent",align:"start",children:I(ao,{mode:"single",className:"RemoteFlows__DatepickerField__Calendar",selected:e.value?new Date(e.value):void 0,onSelect:s=>{e.onChange(s?io(s,"yyyy-MM-dd"):null)},defaultMonth:d,components:{DayContent:t(s=>I(no,{children:s.date.getDate()}),"DayContent")},disabled:s=>!!(d&&s<d||c&&s>c)})})]}),i?fe(w,{children:[i," ",I(G,{helpCenter:o.meta?.helpCenter})]}):null,r.error&&I(T,{className:"RemoteFlows__DatePickerField__Error"})]})}t(lo,"DatePickerFieldDefault");import{jsx as so}from"react/jsx-runtime";function mo({description:e,label:o,name:r,minDate:n,maxDate:l,onChange:i,component:m,...a}){let{components:d}=x(),{control:c}=S(),s;a.meta?.mot&&typeof a.meta.mot=="number"?s=Ee(a.meta.mot):n&&(s=new Date(`${n}T00:00:00`));let p;return l&&(p=new Date(`${l}T23:59:59`)),so(b,{control:c,name:r,render:({field:u,fieldState:h})=>{let f=m||d?.date||lo,C={description:e,label:o,name:r,onChange:i,...s&&{minDate:s.toISOString()},...p&&{maxDate:p.toISOString()},...a};return so(f,{field:{...u,onChange:t(v=>{u.onChange(v),i?.(v)},"onChange")},fieldState:h,fieldData:C})}})}t(mo,"DatePickerField");import{jsx as U,jsxs as ht}from"react/jsx-runtime";function co({field:e,fieldState:o,fieldData:r}){let{name:n,label:l,description:i,multiple:m,accept:a}=r;return ht(N,{"data-field":n,className:`RemoteFlows__FileUpload__Item__${n}`,children:[U(P,{className:"RemoteFlows__FileUpload__Label",children:l}),U(D,{children:U(Le,{onChange:e.onChange,multiple:m,className:_("RemoteFlows__FileUpload__Input"),accept:a,files:e.value})}),i&&U("div",{className:"flex items-center justify-between",children:U(w,{className:"RemoteFlows__FileUpload__Description",children:i})}),o.error&&U(T,{className:"RemoteFlows__FileUpload__Error"})]})}t(co,"FileUploadFieldDefault");import{jsx as po}from"react/jsx-runtime";var _t=t((e,o)=>{if(!o)return null;for(let r of e)if(r.size>o){let n=Math.round(o/1048576),l=Math.round(r.size/(1024*1024));return`File "${r.name}" exceeds maximum size of ${n}MB (file is ${l}MB)`}return null},"validateFileSize");function uo({name:e,description:o,label:r,multiple:n,onChange:l,component:i,accept:m,maxSize:a,...d}){let{components:c}=x(),{control:s,setError:p,clearErrors:u}=S(),h=t(async(g,f)=>{let C=_t(g,a);if(C){p(e,{message:C});return}u(e),f.onChange(g),l?.(g)},"handleOnChange");return po(b,{control:s,name:e,render:({field:g,fieldState:f})=>{let v=i||c?.file||co,k={name:e,description:o,label:r,multiple:n,accept:m,maxFileSize:a,...d};return po(v,{field:{...g,value:g.value,onChange:t(async z=>h(z,g),"onChange")},fieldState:f,fieldData:k})}})}t(uo,"FileUploadField");import{jsx as Ct}from"react/jsx-runtime";function fo({field:e,fieldData:o}){return Ct(L,{type:"text",inputMode:"decimal",pattern:"^[0-9.]*$",...e,...o})}t(fo,"NumberFieldDefault");import{jsx as Fo}from"react/jsx-runtime";function Fe(e){let{components:o}=x(),{control:r}=S(),l=e.component||o?.number||fo;return Fo(b,{control:r,name:e.name,render:({field:i,fieldState:m})=>Fo(l,{field:{...i,onChange:t(a=>{i.onChange(a),e.onChange?.(a)},"onChange")},fieldState:m,fieldData:e})})}t(Fe,"NumberField");import{Fragment as yt}from"react";import{jsx as W,jsxs as ge}from"react/jsx-runtime";var go=t(({field:e,fieldData:o,fieldState:r})=>{let{name:n,label:l,description:i,options:m}=o;return W("fieldset",{className:_("space-y-3",`RemoteFlows__RadioGroupField__Item__${n}`),"data-field":n,children:ge(N,{children:[W("legend",{children:l}),i&&ge(w,{children:[i," ",W(G,{helpCenter:o.meta?.helpCenter})]}),W(D,{children:W(Be,{"aria-label":l||n,onValueChange:a=>{e.onChange(a)},value:e.value,className:"flex flex-col space-y-3",children:m?.map(a=>W(yt,{children:ge(N,{"data-field":n,className:"flex items-start space-x-3 space-y-0 gap-0 RemoteFlows__RadioField__Item",children:[W(D,{children:W(Oe,{value:a.value,className:"RemoteFlows__RadioField__Input",disabled:a.disabled})}),ge("div",{children:[W(P,{className:"font-normal mb-0 RemoteFlows__RadioField__Label",children:a.label}),a.description&&W(w,{className:"mt-2",children:a.description})]})]})},a.value))})}),r.error&&W(T,{})]})})},"RadioGroupFieldDefault");import{jsx as ho}from"react/jsx-runtime";function _o({name:e,defaultValue:o,description:r,label:n,options:l,onChange:i,component:m,...a}){let{components:d}=x(),{control:c}=S();return ho(b,{control:c,name:e,defaultValue:o,render:({field:s,fieldState:p})=>{let h=m||d?.radio||go,g={name:e,defaultValue:o,description:r,label:n,options:l,...a};return ho(h,{field:{...s,onChange:t(f=>{s.onChange(f),i?.(f)},"onChange")},fieldState:p,fieldData:g})}})}t(_o,"RadioGroupField");import{jsx as E,jsxs as Co}from"react/jsx-runtime";function yo({field:e,fieldState:o,fieldData:r}){let{name:n,label:l,description:i,options:m}=r;return Co(N,{"data-field":n,className:`RemoteFlows__SelectField__Item__${n}`,children:[E(P,{className:"RemoteFlows__SelectField__Label",children:l}),E(D,{children:E("div",{className:"relative",children:Co(Ae,{value:e.value||"",onValueChange:a=>{e.onChange(a)},children:[E(Ge,{className:"RemoteFlows__SelectField__Trigger","aria-invalid":!!o.error,"aria-label":l,children:E("span",{className:"absolute",children:E(ze,{placeholder:l})})}),E(Ue,{className:"RemoteFlows__SelectField__Content",children:E(Ve,{className:"RemoteFlows__SelectField__Group",children:m?.map(a=>E(Je,{value:a.value,className:"RemoteFlows__SelectField__SelectItem",disabled:a.disabled,children:a.label},a.value))})})]})})}),i&&E(w,{children:i}),o.error&&E(T,{})]})}t(yo,"SelectFieldDefault");import{jsx as vo}from"react/jsx-runtime";function So({label:e,name:o,options:r,defaultValue:n,description:l,onChange:i,component:m,...a}){let{control:d}=S(),{components:c}=x();return vo(b,{defaultValue:n,control:d,name:o,render:({field:s,fieldState:p})=>{let h=m||c?.select||yo,g={label:e,name:o,options:r,defaultValue:n,description:l,onChange:i,...a};return vo(h,{field:{...s,onChange:t(f=>{let C=a.jsonType==="number"?Number(f):f;s.onChange(C),i?.(C)},"onChange")},fieldState:p,fieldData:g})}})}t(So,"SelectField");import{useEffect as Pt,useState as Nt}from"react";import{Fragment as vt,useState as St}from"react";import{Check as xt,ChevronDownIcon as bt,X as kt}from"lucide-react";import{Command as J}from"cmdk";import{SearchIcon as Qn}from"lucide-react";import{jsx as q,jsxs as oa}from"react/jsx-runtime";function xo({className:e,...o}){return q(J,{"data-slot":"command",className:_("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...o})}t(xo,"Command");function bo({className:e,...o}){return q(J.List,{"data-slot":"command-list",className:_("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...o})}t(bo,"CommandList");function ko({...e}){return q(J.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}t(ko,"CommandEmpty");function Po({className:e,...o}){return q(J.Group,{"data-slot":"command-group",className:_("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...o})}t(Po,"CommandGroup");function No({className:e,...o}){return q(J.Separator,{"data-slot":"command-separator",className:_("bg-border -mx-1 h-px",e),...o})}t(No,"CommandSeparator");function Do({className:e,...o}){return q(J.Item,{"data-slot":"command-item",className:_("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...o})}t(Do,"CommandItem");import{jsx as $,jsxs as Z}from"react/jsx-runtime";function he({options:e,selected:o,onChange:r,placeholder:n,...l}){let[i,m]=St(!1),a=t(s=>{r(o.filter(p=>p.value!==s.value))},"handleUnselect"),d=e.some(s=>s.category),c=e.reduce((s,p)=>{let u=p.category||"Uncategorized";return s[u]||(s[u]=[]),s[u].push(p),s},{});return Z(ce,{open:i,onOpenChange:m,...l,children:[$(pe,{children:Z(B,{variant:"outline",role:"combobox","aria-expanded":i,className:"w-full justify-between font-normal",type:"button",children:[$("div",{className:"flex gap-1 flex-wrap overflow-x-auto max-h-[2.5rem] items-center",children:o.length>0?o.map(s=>Z(qe,{variant:"secondary",className:"mr-1 mb-1",children:[s.label,$("div",{role:"button",tabIndex:0,"aria-label":`remove ${s.label}`,className:"ml-1 ring-offset-background rounded-full outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 cursor-pointer",onKeyDown:p=>{p.key==="Enter"&&a(s)},onMouseDown:p=>{p.preventDefault(),p.stopPropagation()},onClick:()=>a(s),children:$(kt,{className:"h-3 w-3 text-muted-foreground hover:text-foreground"})})]},s.label)):$("span",{className:"text-foreground",children:n})}),$(bt,{className:"size-4"})]})}),$(ue,{align:"start",className:"w-full p-0",children:$(xo,{children:Z(bo,{children:[$(ko,{children:"No item found."}),Object.entries(c).map(([s,p],u)=>Z(vt,{children:[u>0&&$(No,{}),$(Po,{heading:d?s:void 0,children:p.map(h=>{let g=o.some(f=>f.value===h.value);return Z(Do,{onSelect:()=>{r(g?o.filter(f=>f.value!==h.value):[...o,h])},children:[$(xt,{className:_("mr-2 h-4 w-4",g?"opacity-100":"opacity-0")}),h.label]},h.label)})})]},s))]})})})]})}t(he,"MultiSelect");import{jsx as oe,jsxs as wo}from"react/jsx-runtime";function To({field:e,fieldState:o,fieldData:r}){let[n,l]=Nt([]),i=t(a=>{let d=a.map(({value:c})=>c);e.onChange(d),l(a)},"handleChange");Pt(()=>{e.value&&r.options&&l(e.value.map(a=>r?.options?.find(d=>d.value===a)))},[e.value,r.options]);let m=[...Object.entries(r.$meta?.regions||{}).map(([a,d])=>({value:d,label:a,category:"Regions"})),...Object.entries(r.$meta?.subregions||{}).map(([a,d])=>({value:d,label:a,category:"Subregions"})),...r.options?.map(a=>({...a,value:a.value,label:a.label,category:"Countries"}))||[]];return wo(N,{"data-field":e.name,className:`RemoteFlows__CountryField__Item__${e.name}`,children:[oe(P,{className:"RemoteFlows__CountryField__Label",children:r.label}),oe(D,{children:oe(he,{options:m,selected:n,onChange:i})}),r.description&&wo(w,{children:[r.description," ",oe(G,{helpCenter:r.meta?.helpCenter})]}),o.error&&oe(T,{})]})}t(To,"CountryFieldDefault");import{jsx as Ro}from"react/jsx-runtime";function $o({label:e,name:o,options:r,defaultValue:n,description:l,onChange:i,$meta:m,component:a,...d}){let{control:c}=S(),{components:s}=x();return Ro(b,{defaultValue:n,control:c,name:o,render:({field:p,fieldState:u})=>{let g=a||s?.countries||To,f={label:e,name:o,options:r,defaultValue:n,description:l,onChange:i,$meta:m,...d};return Ro(g,{field:{...p,onChange:t(C=>{p.onChange(C),i?.(C)},"onChange")},fieldState:u,fieldData:f})}})}t($o,"CountryField");import*as Mo from"react";import{jsx as Dt}from"react/jsx-runtime";var be=Mo.forwardRef(({className:e,...o},r)=>Dt("textarea",{className:_("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...o}));be.displayName="Textarea";import{jsx as te,jsxs as ke}from"react/jsx-runtime";function Io({field:e,fieldState:o,fieldData:r}){let{name:n,label:l,description:i,maxLength:m}=r,a=e.value?.length??0;return ke(N,{"data-field":n,className:`RemoteFlows__TextArea__Item__${n}`,children:[te(P,{className:"RemoteFlows__TextArea__Label",children:l}),te(D,{children:te(be,{...e,value:e.value??"",onChange:d=>{e.onChange(d)},className:_(o.error&&"border-red-500 focus-visible:ring-red-500","RemoteFlows__TextArea__Input"),placeholder:l})}),(i||m)&&ke("div",{className:"flex items-center justify-between",children:[i&&te(w,{className:"RemoteFlows__TextArea__Description",children:i}),m&&ke("span",{className:"text-sm ml-auto RemoteFlows__TextArea__MaxLength",children:[a,"/",m]})]}),o.error&&te(T,{className:"RemoteFlows__TextArea__Error"})]})}t(Io,"TextAreaFieldDefault");import{jsx as Wo}from"react/jsx-runtime";function Eo({name:e,description:o,label:r,onChange:n,maxLength:l,component:i,...m}){let{components:a}=x(),{control:d}=S();return Wo(b,{control:d,name:e,render:({field:c,fieldState:s})=>{let u=i||a?.textarea||Io,h={name:e,description:o,label:r,maxLength:l,...m};return Wo(u,{field:{...c,onChange:t(g=>{c.onChange(g),n?.(g)},"onChange")},fieldState:s,fieldData:h})}})}t(Eo,"TextAreaField");import{jsx as wt}from"react/jsx-runtime";function Ho({field:e,fieldData:o}){return wt(L,{name:e.name,...o,type:"email"})}t(Ho,"EmailFieldDefault");import{jsx as Lo}from"react/jsx-runtime";function Bo(e){let{components:o}=x(),{control:r}=S(),l=e.component||o?.email||Ho;return Lo(b,{control:r,name:e.name,render:({field:i,fieldState:m})=>Lo(l,{field:{...i,onChange:t(a=>{i.onChange(a),e.onChange?.(a)},"onChange")},fieldState:m,fieldData:e})})}t(Bo,"EmailField");import{jsx as Oo}from"react/jsx-runtime";function Ao(e){let{control:o}=S();return Oo(b,{control:o,name:e.name,render:({field:r})=>Oo("input",{...r,type:"hidden"})})}t(Ao,"HiddenField");import{useEffect as At,useState as Vt}from"react";import Vo from"lodash.groupby";import K from"lodash.capitalize";var zo=60,_e=["monday","tuesday","wednesday","thursday","friday","saturday","sunday"];function Tt(e){if(e<60)return`${e}m`;let o=Math.floor(e/zo),r=e%zo;return r>0?`${o}h${r}m`:`${o}h`}t(Tt,"convertBreakDurationToHours");function Go(e){let o=e.reduce((r,n)=>n.hours+r,0);return Number(o.toFixed(2))}t(Go,"calculateTotalWorkHours");function Rt(e,o){let r=o.map(({day:i})=>i.toLowerCase()),n=r.indexOf(e),l=null;for(;n<r.length&&!l;){let i=r[n],m=r[n+1],a=_e.indexOf(i)+1;_e[a]===m||(l=i),n+=1}return l}t(Rt,"findLastConsecutiveDay");function $t(e){return e.start_time&&e.end_time&&(typeof e.hours=="number"?e.hours:Number.parseInt(e.hours))>0}t($t,"shouldSummarizeSchedule");function Mt(e){return Number.parseInt(e.break_duration_minutes)>0}t(Mt,"shouldSummarizeBreaks");function Uo(e){let o=e.filter($t),r=Vo(o,a=>`${a.start_time}|${a.end_time}`),n=e.filter(Mt),l=Vo(n,"break_duration_minutes"),i=Object.keys(r).map(a=>{let d=r[a],c=d[0].day,[s,p]=a.split("|"),u=`from <span>${s.replace(":","h")}</span> to <span>${p.replace(":","h")}</span>`,h=Rt(c,d),f=(h?d.findIndex(C=>C.day===h):-1)===d.length-1;return d.length===1?`${K(c)}, ${u}`:!f||!h?d.reduce((C,v,k)=>{let z=K(v.day);return k===d.length-1?`${C}and ${z}, ${u}`:`${C}<span>${z}</span>, `},""):`<span>${K(c)}</span> to <span>${K(h)}</span>, ${u}`}),m=Object.keys(l).reverse().map((a,d)=>{let c=d===0,s=l[a],p=Tt(parseInt(a,10));if(Object.keys(l).length===1)return`With ${p} daily breaks`;if(s.length===1){let u=`${p} break on ${K(s[0].day)}.`;return c?`With ${u}`:u}return s.reduce((u,h,g)=>{let f=K(h.day);return g===0?`${u} ${f}`:g===s.length-1?`${u}, and ${f}.`:`${u}, ${f}`},c?`With ${p} break on`:`${p} break on`)});return{workHoursSummary:i,breakSummary:m}}t(Uo,"buildWorkScheduleSummary");function Pe(e){let{checked:o,start_time:r,end_time:n,break_duration_minutes:l}=e;if(!o)return 0;let[i,m]=r.split(":").map(Number),[a,d]=n.split(":").map(Number),c=i*60+m,u=(a*60+d-c-Number.parseInt(l||"0"))/60;return u===Math.floor(u)?u:Number(u.toFixed(2))}t(Pe,"calculateHours");var It={monday:"Mon",tuesday:"Tue",wednesday:"Wed",thursday:"Thu",friday:"Fri",saturday:"Sat",sunday:"Sun"};function Ce(e){return It[e]}t(Ce,"getShortWeekday");import*as R from"yup";var Jo=t((e,o,r)=>{if(e&&"reportValidity"in e){let n=ie(r,o);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},"r"),Ne=t((e,o)=>{for(let r in o.fields){let n=o.fields[r];n&&n.ref&&"reportValidity"in n.ref?Jo(n.ref,r,e):n&&n.refs&&n.refs.forEach(l=>Jo(l,r,e))}},"o"),Zo=t((e,o)=>{o.shouldUseNativeValidation&&Ne(e,o);let r={};for(let n in e){let l=ie(o.fields,n),i=Object.assign(e[n]||{},{ref:l&&l.ref});if(Wt(o.names||Object.keys(e),n)){let m=Object.assign({},ie(r,n));le(m,"root",i),le(r,n,m)}else le(r,n,i)}return r},"s"),Wt=t((e,o)=>{let r=qo(o);return e.some(n=>qo(n).match(`^${r}\\.\\d+`))},"i");function qo(e){return e.replace(/\]|\[/g,"")}t(qo,"n");function Ko(e,o,r){return o===void 0&&(o={}),r===void 0&&(r={}),function(n,l,i){try{return Promise.resolve((function(m,a){try{var d=(o.context&&process.env.NODE_ENV==="development"&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e[r.mode==="sync"?"validateSync":"validate"](n,Object.assign({abortEarly:!1},o,{context:l}))).then(function(c){return i.shouldUseNativeValidation&&Ne({},i),{values:r.raw?Object.assign({},n):c,errors:{}}}))}catch(c){return a(c)}return d&&d.then?d.then(void 0,a):d})(0,function(m){if(!m.inner)throw m;return{values:{},errors:Zo((a=m,d=!i.shouldUseNativeValidation&&i.criteriaMode==="all",(a.inner||[]).reduce(function(c,s){if(c[s.path]||(c[s.path]={message:s.message,type:s.type}),d){var p=c[s.path].types,u=p&&p[s.type];c[s.path]=Me(s.path,d,c,s.type,u?[].concat(u,s.message):s.message)}return c},{})),i)};var a,d}))}catch(m){return Promise.reject(m)}}}t(Ko,"o");import{Fragment as Et,useState as Ht}from"react";import{jsx as y,jsxs as M}from"react/jsx-runtime";var Lt=R.object({day:R.string().required(),checked:R.boolean().required(),start_time:R.string().matches(/^([01]\d|2[0-3]):([0-5]\d)$/,"Invalid time format (HH:mm)").when("checked",{is:!0,then:t(e=>e.required("Required"),"then"),otherwise:t(e=>e.optional().nullable(),"otherwise")}),end_time:R.string().matches(/^([01]\d|2[0-3]):([0-5]\d)$/,"Invalid time format (HH:mm)").when("checked",{is:!0,then:t(e=>e.required("Required"),"then"),otherwise:t(e=>e.optional().nullable(),"otherwise")}),hours:R.number().default(0),break_duration_minutes:R.string().default("0")}),Bt=R.object({schedule:R.array(Lt)});function Ot({defaultSchedule:e,onSubmit:o}){let[r,n]=Ht(!1),l=_e.map(f=>{let C=e.find(v=>v.day.toLowerCase()===Ce(f).toLowerCase()||v.day.toLowerCase()===f.toLowerCase());return C?{...C,day:Ce(f),checked:!0}:{...e[0],checked:!1,day:Ce(f)}}),i=We({defaultValues:{schedule:l},resolver:Ko(Bt)}),{handleSubmit:m,watch:a,reset:d,control:c,formState:s}=i,{fields:p}=Ie({name:"schedule",control:c}),u=a("schedule");function h(f){let C=f.schedule.filter(({checked:v})=>v).map(v=>({...v,hours:Pe(v)}));o(C),n(!1)}t(h,"handleSubmitWorkingHours");function g(){d(),n(!1)}return t(g,"handleCancel"),y("div",{className:"flex items-center justify-between",children:M(Ze,{open:r,onOpenChange:n,children:[y(Ke,{asChild:!0,children:y(B,{variant:"link",className:"flex items-center p-0 RemoteFlows__WorkScheduleSelectionForm__Trigger",children:"Edit Schedule"})}),M(Ye,{className:"max-w-5xl max-h-[90vh] overflow-y-auto px-8 py-4 RemoteFlows__WorkScheduleSelectionForm__Content",children:[y(Xe,{children:y(Qe,{className:"RemoteFlows__WorkScheduleSelectionForm__Title",children:"Edit employee working hours"})}),y(He,{...i,children:M("form",{className:"space-y-4 RemoteFlows__WorkScheduleSelectionForm__Form",children:[M("div",{className:"rounded-lg",children:[y("p",{className:"text-gray-600 text-sm mb-4 RemoteFlows__WorkScheduleSelectionForm__Description",children:"The times displayed are in the employee's time zone in the 24-hour format."}),M("div",{className:"grid grid-cols-12 gap-4 text-sm font-medium text-gray-500 uppercase tracking-wide RemoteFlows__WorkScheduleSelectionForm__Header",children:[y("div",{className:"col-span-2"}),y("div",{className:"col-span-3 text-center",children:"START"}),y("div",{className:"col-span-1 text-center"}),y("div",{className:"col-span-3 text-center",children:"END"}),y("div",{className:"col-span-2 text-center",children:"HOURS"})]}),y("div",{className:"RemoteFlows__WorkScheduleSelectionForm__Rows",children:p.map((f,C)=>{let v=u[C],k=Pe(v);return M(Et,{children:[M("div",{className:"grid grid-cols-12 gap-4 items-center py-2 RemoteFlows__WorkScheduleSelectionForm__Row-Hours",children:[y("div",{className:"col-span-2 flex items-center gap-3",children:y(me,{label:f.day,name:`schedule.${C}.checked`})}),y("div",{className:"col-span-3",children:y(L,{name:`schedule.${C}.start_time`,includeErrorMessage:!1})}),y("div",{className:"col-span-1 text-center text-gray-500",children:"to"}),y("div",{className:"col-span-3",children:y(L,{name:`schedule.${C}.end_time`,includeErrorMessage:!1})}),y("div",{className:"col-span-2 text-center text-gray-600",children:isNaN(k)?"-":`${k} hours`})]}),M("div",{className:"grid grid-cols-12 gap-4 items-center py-2 RemoteFlows__WorkScheduleSelectionForm__Row-Break",children:[y("div",{className:"col-span-2 text-gray-500",children:"Break"}),y("div",{className:"col-span-2",children:y(L,{name:`schedule.${C}.break_duration_minutes`,includeErrorMessage:!1})}),y("div",{className:"col-span-2 text-gray-500",children:"minutes"}),y("div",{className:"col-span-4"})]})]},f.id)})})]}),Object.keys(s.errors).length>0&&y("p",{className:"text-destructive text-sm mb-0",children:"Invalid time format (HH:mm)"}),M("div",{className:"flex gap-4 pt-4",children:[y(B,{type:"button",className:"reset-button",variant:"outline",onClick:g,children:"Cancel"}),y(B,{type:"button",className:"submit-button",onClick:m(h),children:"Save Schedule"})]})]})})]})]})})}t(Ot,"WorkScheduleSelectionForm");var Yo=t(({fieldData:e})=>{let{defaultFormattedValue:o,currentSchedule:r,onSubmit:n}=e,{workHoursSummary:l,breakSummary:i,totalWorkHours:m}=o;return M("div",{className:"flex flex-col gap-3 RemoteFlows__WorkScheduleField",children:[y("p",{className:"text-sm RemoteFlows__WorkScheduleField__Title",children:"Work hours"}),M("div",{className:"flex flex-col gap-1 RemoteFlows__WorkScheduleField__Summary",children:[y("p",{className:"text-sm text-gray-500 RemoteFlows__WorkScheduleField__Summary__WorkHours",dangerouslySetInnerHTML:{__html:l.join(", ")}}),y("p",{className:"text-sm text-gray-500 RemoteFlows__WorkScheduleField__Summary__Break",children:i.join()}),M("p",{className:"text-sm text-gray-500 RemoteFlows__WorkScheduleField__Summary__Total",children:["Total of ",y("span",{children:m})," hours per week"]}),y(Ot,{defaultSchedule:r,onSubmit:n})]})]})},"WorkScheduleFieldDefault");import{jsx as Xo}from"react/jsx-runtime";function Qo(e){let{components:o}=x(),{setValue:r,control:n,watch:l}=S(),i=l(e.name),[m,a]=Vt(i),{workHoursSummary:d,breakSummary:c}=Uo(m),s=Go(m);At(()=>{r(e.name,m)},[m,e.name,r]);function p(f){a(f)}t(p,"onSubmit");let h=e.component||o?.["work-schedule"]||Yo,g={...e,onSubmit:p,currentSchedule:m,defaultFormattedValue:{workHoursSummary:d,breakSummary:c,totalWorkHours:s}};return Xo(b,{control:n,name:e.name,render:({field:f,fieldState:C})=>Xo(h,{field:{...f,onChange:t(v=>{f.onChange(v),e.onChange?.(v)},"onChange")},fieldState:C,fieldData:g})})}t(Qo,"WorkScheduleField");import{useEffect as zt,useState as Gt}from"react";import{jsx as re,jsxs as Ut}from"react/jsx-runtime";var jo=t(({field:e,fieldState:o,fieldData:r})=>{let[n,l]=Gt([]),{name:i,label:m,description:a,options:d}=r,c=n||d?.filter(s=>e.value?.includes(s.value));return zt(()=>{l(d?.filter(s=>e.value?.includes(s.value))||[])},[e.value,d]),Ut(N,{"data-field":i,className:`RemoteFlows__SelectField__Item__${i}`,children:[re(P,{className:"RemoteFlows__SelectField__Label",children:m}),re(D,{children:re(he,{options:d||[],selected:c,onChange:s=>{let p=s.map(({value:u})=>u);e.onChange(p),l(s)}})}),a&&re(w,{children:a}),o.error&&re(T,{})]})},"MultiSelectFieldDefault");import{jsx as et}from"react/jsx-runtime";function ot({label:e,name:o,options:r,defaultValue:n,description:l,onChange:i,component:m,...a}){let{control:d}=S(),{components:c}=x();return et(b,{defaultValue:n,control:d,name:o,render:({field:s,fieldState:p})=>{let h=m||c?.["multi-select"]||jo,g={label:e,name:o,options:r,defaultValue:n,description:l,onChange:i,...a};return et(h,{field:{...s,onChange:t(f=>{s.onChange(f),i?.(f)},"onChange")},fieldState:p,fieldData:g})}})}t(ot,"MultiSelectField");import{jsx as Jt}from"react/jsx-runtime";var tt=t(e=>Jt(Fe,{maxLength:15,...e}),"MoneyField");var De={checkbox:me,text:L,email:Bo,money:tt,select:So,"multi-select":ot,radio:_o,number:Fe,file:uo,date:mo,textarea:Eo,countries:$o,hidden:Ao,"work-schedule":Qo};import{AlertCircle as qt}from"lucide-react";import{jsx as we,jsxs as Zt}from"react/jsx-runtime";function rt({data:e}){let{title:o,description:r,severity:n}=e,i={warning:"warning",error:"destructive",info:"default",success:"warning"}[n]??"warning";return Zt(je,{variant:i,children:[we(qt,{className:"h-4 w-4"}),o&&we(eo,{dangerouslySetInnerHTML:{__html:o}}),r&&we(oo,{dangerouslySetInnerHTML:{__html:r}})]})}t(rt,"StatementDefault");import{jsx as Kt}from"react/jsx-runtime";function nt({title:e,description:o,severity:r}){let{components:n}=x(),l=n?.statement??rt;return Kt(l,{data:{title:e?j(e):void 0,description:j(o),severity:r}})}t(nt,"Statement");import{jsx as Yt}from"react/jsx-runtime";var at=t(({isExpanded:e,onToggle:o,className:r,...n})=>Yt(B,{type:"button",className:_("RemoteFlows__Button RemoteFlows__FieldSetField__ToggleButton",r),variant:"default",onClick:o,...n,children:e?"Remove":"Define"}),"FieldsetToggleButtonDefault");import{Fragment as jt,jsx as H,jsxs as V}from"react/jsx-runtime";function lt({label:e,name:o,fields:r,description:n,components:l,statement:i,isFlatFieldset:m,extra:a,variant:d="outset",features:c,meta:s}){let{helpCenter:p}=s||{},{watch:u,setValue:h,trigger:g,formState:f}=S(),{components:C}=x(),v=c?.toggle?.stateField,k=v?u(v):c?.toggle?.defaultExpanded??!0,z=r.map(({name:F})=>`${o}.${F}`),ne=u(z),Te=it(ne),Y=it(null),st=t(()=>{v&&h(v,!k)},"toggleExpanded");Qt(()=>{let F=ne,X=Te.current,ye=f.isSubmitted||f.submitCount>0,ae=!1;for(let Q=0;Q<F.length;Q++)if(F[Q]!==void 0&&X[Q]!==F[Q]){ae=!0;break}return ae&&ye&&(Y.current&&clearTimeout(Y.current),Y.current=setTimeout(()=>{g()},50)),Te.current=[...F],()=>{Y.current&&clearTimeout(Y.current)}},[ne,g,f.isSubmitted,f.submitCount]);let mt=C?.fieldsetToggle||at,Re=`${o}-content`,$e=`${o}-header`;return V("fieldset",{className:_("border-1 border-input p-4 rounded-xl","RemoteFlows__FieldSetField",`RemoteFlows__FieldSetField__${o}`),children:[H("legend",{className:_("text-sm font-semibold px-2",d==="inset"&&"hidden"),children:e}),p?.callToAction&&p?.id&&d==="outset"&&H(ee,{className:"RemoteFlows__FieldSetField__HelpCenterLink mb-3",zendeskId:p.id,children:p.callToAction}),d==="inset"&&V(jt,{children:[V("div",{className:"RemoteFlows__FieldSetField__Header",id:$e,"data-state":k?"expanded":"collapsed","aria-expanded":k,children:[H("h3",{className:_("RemoteFlows__FieldSetField__Title"),children:e}),c?.toggle?.enabled&&H(mt,{isExpanded:k,onToggle:st,"aria-expanded":k,"aria-controls":Re,"aria-label":`${k?"Hide":"Show"} ${e}`,className:_("RemoteFlows__FieldSetField__Toggle",c.toggle?.className),children:k?c.toggle.labels?.collapse??"Remove":c.toggle.labels?.expand??"Define"})]}),p?.callToAction&&p?.id&&H(ee,{className:"RemoteFlows__FieldSetField__HelpCenterLink mb-3",zendeskId:p.id,children:p.callToAction})]}),k&&V("div",{id:Re,"aria-labelledby":$e,role:"region",children:[n?H("div",{className:"mb-5 RemoteFlows__FieldSetField__Description",dangerouslySetInnerHTML:{__html:j(n)}}):null,V("div",{className:"grid gap-4",children:[r.map(F=>{if(F.calculateDynamicProperties&&(F={...F,...F.calculateDynamicProperties(ne,F)||{}}),F.isVisible===!1||F.deprecated)return null;if(F.inputType==="fieldset")return H(lt,{...F,name:`${m?F.name:`${o}.${F.name}`}`,components:l},`${m?F.name:`${o}.${F.name}`}`);if(F.inputType==="fieldset-flat")return H(lt,{...F,name:`${m?F.name:`${o}.${F.name}`}`,components:l,isFlatFieldset:!0},`${m?F.name:`${o}.${F.name}`}`);let X=De[F.inputType];if(F.Component){let{Component:ye}=F;return H(ye,{setValue:ae=>h(m?F.name:`${o}.${F.name}`,ae),...F},F.name)}return X?(F.inputType==="select"&&F.multiple&&(X=De["multi-select"]),V(Xt,{children:[H(X,{...F,name:`${m?F.name:`${o}.${F.name}`}`,component:l?.[F.inputType]}),F.extra?F.extra:null]},`${m?F.name:`${o}.${F.name}`}`)):V("p",{className:"error",children:["Field type ",F.inputType," not supported"]})}),a||null,i?H(nt,{...i}):null]})]})]})}t(lt,"FieldSetField");export{De as a,nt as b,lt as c};
|
|
2
|
+
//# sourceMappingURL=chunk-SPMEMAK5.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{b as y}from"./chunk-PJN2YJO4.js";import{a as i}from"./chunk-UQCSN47K.js";import{a as o}from"./chunk-P37U34EQ.js";import*as D from"react";import*as v from"@radix-ui/react-checkbox";import{Check as B}from"lucide-react";import{jsx as h}from"react/jsx-runtime";var G=D.forwardRef(({className:e,...t},r)=>h(v.Root,{ref:r,className:i("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",e),...t,children:h(v.Indicator,{className:i("flex items-center justify-center text-current"),children:h(B,{className:"h-4 w-4"})})}));G.displayName=v.Root.displayName;import{useState as F,useRef as U,useEffect as A}from"react";import{Upload as E,X as L}from"lucide-react";import{jsx as d,jsxs as P}from"react/jsx-runtime";var M=o(e=>e?e.split(",").map(t=>t.trim().toUpperCase()).join(", "):null,"getAcceptedFormats");function me({onChange:e,className:t,multiple:r,accept:p,files:u,id:I}){let[f,x]=F(u||[]),N=U(null);A(()=>{u&&u.length>0&&x(u)},[u]);let z=o(l=>{l.preventDefault(),N.current?.click()},"handleClick"),_=o(l=>{if(l.target.files&&l.target.files.length>0){let m=Array.from(l.target.files);x([...f,...m]),e([...f,...m])}},"handleChange"),T=o(l=>{x(m=>m.filter(V=>V.name!==l.name)),e(f.filter(m=>m.name!==l.name))},"onRemoveFile"),w=M(p);return P("div",{className:i("flex flex-col items-start gap-4",t),children:[d("input",{type:"file",ref:N,id:I,onChange:_,className:"hidden","aria-label":"File upload",multiple:r,accept:p}),P(y,{type:"button",onClick:z,className:"gap-2",children:[d(E,{className:"h-4 w-4"}),"Choose File"]}),w&&P("div",{className:"text-sm text-gray-600",children:["Accepted formats:"," ",d("span",{className:"font-medium",children:w})]}),f.length===0&&d("div",{className:"text-sm",children:r?d("span",{className:"font-medium",children:"No files selected. You can select multiple files"}):d("span",{className:"font-medium",children:"No file selected."})}),f.length>0&&f.map((l,m)=>P("div",{className:"text-sm flex items-center gap-2",children:["Selected file: ",d("span",{className:"font-medium",children:l.name})," (",Math.round(l.size/1024)," KB)",d(y,{variant:"ghost",onClick:()=>T(l),children:d(L,{})})]},m))]})}o(me,"FileUploader");import*as g from"@radix-ui/react-radio-group";import{CircleIcon as j}from"lucide-react";import{jsx as b}from"react/jsx-runtime";function Pe({className:e,...t}){return b(g.Root,{"data-slot":"radio-group",className:i("grid gap-3",e),...t})}o(Pe,"RadioGroup");function be({className:e,...t}){return b(g.Item,{"data-slot":"radio-group-item",className:i("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",e),...t,children:b(g.Indicator,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:b(j,{className:"fill-radio absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})})})}o(be,"RadioGroupItem");import*as a from"@radix-ui/react-select";import{CheckIcon as H,ChevronDownIcon as k,ChevronUpIcon as O}from"lucide-react";import{jsx as n,jsxs as C}from"react/jsx-runtime";function Se({...e}){return n(a.Root,{"data-slot":"select",...e})}o(Se,"Select");function Ne({...e}){return n(a.Group,{"data-slot":"select-group",...e})}o(Ne,"SelectGroup");function we({...e}){return n(a.Value,{"data-slot":"select-value",...e})}o(we,"SelectValue");function De({className:e,children:t,...r}){return C(a.Trigger,{"data-slot":"select-trigger",className:i("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","focus-visible:border-focused",e),...r,children:[t,n(a.Icon,{asChild:!0,className:"absolute right-4",children:n(k,{className:"size-4"})})]})}o(De,"SelectTrigger");function ke({className:e,children:t,position:r="popper",...p}){return n(a.Portal,{children:C(a.Content,{"data-slot":"select-content",className:i("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",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...p,children:[n(X,{}),n(a.Viewport,{className:i(r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),n(q,{})]})})}o(ke,"SelectContent");function Ie({className:e,children:t,...r}){return C(a.Item,{"data-slot":"select-item",className:i("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",e),...r,children:[n(a.ItemText,{children:t}),n("span",{className:"flex size-3.5 items-center justify-center",children:n(a.ItemIndicator,{children:n(H,{className:"size-4"})})})]})}o(Ie,"SelectItem");function X({className:e,...t}){return n(a.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:i("flex cursor-default items-center justify-center py-1",e),...t,children:n(O,{className:"size-4"})})}o(X,"SelectScrollUpButton");function q({className:e,...t}){return n(a.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:i("flex cursor-default items-center justify-center py-1",e),...t,children:n(k,{className:"size-4"})})}o(q,"SelectScrollDownButton");import{Slot as K}from"@radix-ui/react-slot";import{cva as W}from"class-variance-authority";import{jsx as J}from"react/jsx-runtime";var Y=W("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",{variants:{variant:{default:"border-transparent bg-badge text-badge-foreground rounded-full [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground rounded-full [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white rounded-full [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40",outline:"text-foreground rounded-full [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Fe({className:e,variant:t,asChild:r=!1,...p}){return J(r?K:"span",{"data-slot":"badge",className:i(Y({variant:t}),e),...p})}o(Fe,"Badge");import*as s from"@radix-ui/react-dialog";import{XIcon as Q}from"lucide-react";import{jsx as c,jsxs as R}from"react/jsx-runtime";function je({...e}){return c(s.Root,{"data-slot":"dialog",...e})}o(je,"Dialog");function He({...e}){return c(s.Trigger,{"data-slot":"dialog-trigger",...e})}o(He,"DialogTrigger");function Z({...e}){return c(s.Portal,{"data-slot":"dialog-portal",...e})}o(Z,"DialogPortal");function $({className:e,...t}){return c(s.Overlay,{"data-slot":"dialog-overlay",className:i("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",e),...t})}o($,"DialogOverlay");function Oe({className:e,children:t,...r}){return R(Z,{"data-slot":"dialog-portal",children:[c($,{}),R(s.Content,{"data-slot":"dialog-content",className:i("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",e),...r,children:[t,R(s.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",children:[c(Q,{}),c("span",{className:"sr-only",children:"Close"})]})]})]})}o(Oe,"DialogContent");function Xe({className:e,...t}){return c("div",{"data-slot":"dialog-header",className:i("flex flex-col gap-2 text-center sm:text-left",e),...t})}o(Xe,"DialogHeader");function qe({className:e,...t}){return c("div",{"data-slot":"dialog-footer",className:i("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}o(qe,"DialogFooter");function Ke({className:e,...t}){return c(s.Title,{"data-slot":"dialog-title",className:i("text-lg leading-none font-semibold",e),...t})}o(Ke,"DialogTitle");function We({className:e,...t}){return c(s.Description,{"data-slot":"dialog-description",className:i("text-muted-foreground text-sm",e),...t})}o(We,"DialogDescription");import{cva as ee}from"class-variance-authority";import{jsx as S}from"react/jsx-runtime";var te=ee("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",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90",warning:"bg-card bg-warning border-warning-border [&>svg]:text-current"}},defaultVariants:{variant:"default"}});function et({className:e,variant:t,...r}){return S("div",{"data-slot":"alert",role:"alert",className:i(te({variant:t}),e),...r})}o(et,"Alert");function tt({className:e,...t}){return S("div",{"data-slot":"alert-title",className:i("col-start-2 min-h-4 font-medium tracking-tight",e),...t})}o(tt,"AlertTitle");function ot({className:e,...t}){return S("div",{"data-slot":"alert-description",className:i("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed inline-block",e),...t})}o(ot,"AlertDescription");export{G as a,me as b,Pe as c,be as d,Se as e,Ne as f,we as g,De as h,ke as i,Ie as j,Y as k,Fe as l,je as m,He as n,Oe as o,Xe as p,qe as q,Ke as r,We as s,et as t,tt as u,ot as v};
|
|
2
|
+
//# sourceMappingURL=chunk-TC3CLBCD.js.map
|
|
@@ -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":"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","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{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{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';
|
|
@@ -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
|