1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8618],{75688:function(e,r,l){l.d(r,{oZ:function(){return es},JH:function(){return $},zI:function(){return Y},zn:function(){return W},yH:function(){return n},Av:function(){return N.Z},lN:function(){return s},kO:function(){return B},XG:function(){return ee},$_:function(){return T},$w:function(){return a},BL:function(){return _},mg:function(){return J}});var t={};l.r(t),l.d(t,{j:function(){return u},f:function(){return x}});var s={};l.r(s),l.d(s,{eX:function(){return t},VY:function(){return h},dk:function(){return p},pg:function(){return y},X6:function(){return f},v0:function(){return j},fC:function(){return m},$0:function(){return g},Dx:function(){return b}});var n={};l.r(n),l.d(n,{c:function(){return G},f:function(){return z}});var a={};l.r(a),l.d(a,{Wx:function(){return S},fC:function(){return P}});var i=l(8296),c=l(89411),d=l(37321),o=l.n(d);let x=e=>{let{children:r,visibility:l={all:"block"},colSpan:t={all:"full",sm:4},colStart:s={},separator:n=!0}=e;return(0,i.jsx)("div",{className:o()((0,c.Sx)(l),(0,c.W7)(t),(0,c.Ic)(s),n?"pt-6 border-t border-gray-200":"","mt-6 first:mt-0"),children:r})},u=e=>{let{children:r}=e;return(0,i.jsx)("div",{className:"w-full text-sm text-center mt-3",children:r})},m=e=>{let{children:r,onSubmit:l=()=>null}=e;return(0,i.jsx)("form",{className:"max-w-4xl",onSubmit:l,children:r})},h=e=>{let{children:r,box:l={all:!1}}=e;return(0,i.jsx)("div",{className:o()((0,c.xK)(l),"relative"),children:r})},g=e=>{let{children:r,visibility:l={all:"block"},box:t={all:!1},separator:s=!0}=e;return(0,i.jsx)("div",{className:o()((0,c.Sx)(l),(0,c.xK)(t),"pb-8 last:pb-0 mb-8 last:mb-0",s&&"border-b border-gray-200 last:border-b-0"),children:r})},f=e=>{let{children:r}=e;return(0,i.jsx)("div",{className:"mb-4 last:mb-0",children:r})},b=e=>{let{children:r}=e;return(0,i.jsx)("h3",{className:o()("flex flex-wrap items-center gap-y-1.5 gap-x-3","font-semibold text-lg leading-tight tracking-tight"," lg:text-xl"),children:r})},p=e=>{let{children:r}=e;return(0,i.jsx)("div",{className:o()("flex flex-wrap items-center gap-y-1.5 gap-x-3","text-base leading-tight mt-[10px]"),children:r})},y=e=>{let{children:r,gridCols:l={all:6}}=e;return(0,i.jsx)("div",{className:o()((0,c.R0)(l),"grid gap-y-6 gap-x-4","mt-6 first:mt-0"),children:r})},j=e=>{let{children:r,type:l="neutral",highlight:t=!1}=e;return(0,i.jsx)("div",{className:o()(v(l),t?"font-bold":"font-medium","col-span-full text-sm text-center mt-6","first:mt-0"),children:r})},v=e=>({neutral:"text-gray-900",primary:"text-primary",secondary:"text-secondary",success:"text-green-700",warning:"text-yellow-700",error:"text-red-700"})[e];var N=l(84426),w=l(76112),k=l(60054),O=l(7e3),Z=l(39688),C=l(41778),D=l(76985);let I=e=>{let{name:r=""}=e,{formState:l}=(0,O.Gc)(),t=(0,Z.O6)(r,l.errors);return void 0===t?null:(0,i.jsx)("div",{className:"mt-2 flex items-center",children:(0,i.jsx)("p",{className:"text-red-600 text-sm",children:t.message})})};var W=e=>{let{children:r,label:l="",labelHint:t="",value:s="",placeholder:n="",description:a="",errorFields:d=[],disabled:x=!1,colSpan:u={all:"full"},colStart:m={},popoverAnchor:h="bottom end"}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:o()((0,c.W7)(u),(0,c.Ic)(m),x?"opacity-50":null,"hidden lg:block"),children:[(0,i.jsx)(w.J2,{className:"relative",children:e=>{let{open:a}=e;return(0,i.jsxs)(i.Fragment,{children:[l?(0,i.jsx)("div",{className:"flex items-center gap-x-2",children:(0,i.jsxs)("p",{className:"block font-bold text-base text-gray-900 cursor-default",children:[l,t?(0,i.jsx)("span",{className:"font-normal text-gray-500 ml-1",children:t}):null]})}):null,(0,i.jsx)("div",{className:"mt-2 first:mt-0",children:(0,i.jsx)("div",{className:"relative",children:(0,i.jsxs)(w.O7,{className:o()("appearance-none flex justify-between items-center","w-full max-w-full bg-white","text-gray-900 text-base/snug text-left","px-4 py-3 border border-gray-300 rounded-lg","outline-0 outline-none","placeholder:text-gray-500 hover:border-gray-400","disabled:opacity-40 disabled:cursor-not-allowed"),disabled:x,children:[(0,i.jsx)("span",{className:"truncate",children:s||n}),(0,i.jsx)("span",{className:o()(a?"rotate-180":"","inline-flex justify-center items-center grow-0","transition-transform origin-center"),children:(0,i.jsx)(C.Z,{name:D.Z})})]})})}),(0,i.jsx)(w.Hi,{className:o()(h?"z-30":"z-20","absolute inset-x-0","w-full max-w-[400px] max-h-72","overflow-auto bg-white p-4 space-y-4","border border-gray-200 rounded-lg shadow-lg","[--anchor-gap:theme(sp
1acing.2)]","[--anchor-padding:theme(spacing.4)]","lg:w-[342px]"),anchor:h,children:r})]})}}),a?(0,i.jsx)("div",{className:"mt-2 flex items-center",children:(0,i.jsx)("p",{className:"text-gray-500 text-sm",children:a})}):null,d.map((e,r)=>(0,i.jsx)(I,{name:e},r))]}),(0,i.jsxs)("div",{className:o()((0,c.W7)(u),(0,c.Ic)(m),x?"opacity-50":null,"lg:hidden"),children:[(0,i.jsx)(k.pJ,{children:e=>{let{open:a}=e;return(0,i.jsxs)(i.Fragment,{children:[l?(0,i.jsx)("div",{className:"flex items-center gap-x-2",children:(0,i.jsxs)("p",{className:"block font-bold text-base text-gray-900 cursor-default",children:[l,t?(0,i.jsx)("span",{className:"font-normal text-gray-500 ml-1",children:t}):null]})}):null,(0,i.jsx)("div",{className:"mt-2 first:mt-0",children:(0,i.jsxs)("div",{className:o()(a?"shadow-lg":"","group rounded-lg"),children:[(0,i.jsxs)(k.lG,{className:o()(a?"border-b-0 rounded-t-lg":"rounded-lg","appearance-none","flex justify-between items-center","w-full max-w-full bg-white","text-gray-900 text-base/snug text-left","px-4 py-3 border border-gray-300","outline-0 outline-none","placeholder:text-gray-500 group-hover:border-gray-400","disabled:opacity-40 disabled:cursor-not-allowed"),disabled:x,children:[(0,i.jsx)("span",{className:"truncate",children:s||n}),(0,i.jsx)("span",{className:o()(a?"rotate-180":"","inline-flex justify-center items-center grow-0","transition-transform origin-center"),children:(0,i.jsx)(C.Z,{name:D.Z})})]}),(0,i.jsx)(k.V2,{className:o()("w-full max-w-full bg-white px-4 pb-4 space-y-4","border-x border-b border-gray-300 rounded-b-lg","group-hover:border-gray-400"),children:r})]})})]})}}),a?(0,i.jsx)("div",{className:"mt-2 flex items-center",children:(0,i.jsx)("p",{className:"text-gray-500 text-sm",children:a})}):null,d.map((e,r)=>(0,i.jsx)(I,{name:e},r))]})]})};let z=e=>{let{children:r,label:l="",labelHint:t="",description:s="",errorFields:n=[],colSpan:a={all:"full"},colStart:d={}}=e;return(0,i.jsxs)("div",{className:o()((0,c.W7)(a),(0,c.Ic)(d)),children:[l?(0,i.jsxs)("label",{className:"block font-bold text-base text-gray-900",children:[l,t?(0,i.jsx)("span",{className:"font-normal text-gray-500 ml-1",children:t}):null]}):null,(0,i.jsx)("div",{className:o()("w-full bg-white overflow-hidden","border border-gray-300 rounded-xl","divide-y","mt-2 first:mt-0"),children:r}),s?(0,i.jsx)("div",{className:"mt-2 flex items-center",children:(0,i.jsx)("p",{className:"text-gray-500 text-sm",children:s})}):null,n.map((e,r)=>(0,i.jsx)(H,{name:e},r))]})},G=e=>{let{label:r="",sublabel:l="",children:t}=e;return(0,i.jsxs)("div",{className:"flex justify-between items-center min-h-14 px-4 py-3",children:[(0,i.jsxs)("div",{className:"flex flex-col",children:[r?(0,i.jsx)("p",{className:"font-bold text-base text-gray-900",children:r}):null,l?(0,i.jsx)("p",{className:"text-sm text-gray-500",children:l}):null]}),(0,i.jsx)("div",{className:"flex items-center",children:t})]})},H=e=>{let{name:r=""}=e,{formState:l}=(0,O.Gc)(),t=(0,Z.O6)(r,l.errors);return void 0===t?null:(0,i.jsx)("div",{className:"mt-2 flex items-center",children:(0,i.jsx)("p",{className:"text-red-600 text-sm",children:t.message})})};var F=l(30923),M=e=>{let{children:r,id:l="",tooltip:t=!1,labelHint:s=""}=e;return(0,i.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,i.jsxs)("label",{htmlFor:l,className:"block font-bold text-base text-gray-900",children:[r,s?(0,i.jsx)("span",{className:"font-normal text-gray-500 ml-1",children:s}):null]}),t?(0,i.jsxs)(w.J2,{className:"relative",children:[(0,i.jsx)(w.O7,{className:o()("flex items-center","cursor-pointer text-gray-900","focus:outline-none"),children:(0,i.jsx)(C.Z,{name:F.Z,size:"lg"})}),(0,i.jsx)(w.Hi,{anchor:"top",className:o()("inline-block w-max max-w-48","z-10 [--anchor-gap:theme(spacing.2)]","bg-gray-900 text-white text-sm font-medium","px-3 py-2 my-1 rounded-lg shadow-sm"),children:t})]}):null]})};let q=e=>o()("relative z-[1] block min-w-0 max-w-full bg-white","text-base/snug px-4 py-3 border","focus:ring-4 focus:ring-primary-300 disabled:cursor-not-allowed")+" "+({xs:"w-16",sm:"w-32",md:"w-64",lg:"w-80",xl:"w-96",full:"flex-grow w-full"})[e];var J=e=>{let{label:r="",labelHint:l="",description:t="",tooltip:s="",name:n="",type:a="text",size:d="full",placeholder:x="",autocomplete:u=null,prepe
1nd:m="",append:h="",disabled:g=!1,showError:f=!0,colSpan:b={all:"full",sm:4},colStart:p={}}=e,{register:y,formState:j}=(0,O.Gc)(),v=(0,Z.O6)(n,j.errors),N="".concat(n,"-").concat((0,Z.O1)());return(0,i.jsxs)("div",{className:o()((0,c.W7)(b),(0,c.Ic)(p),g?"opacity-50":null),children:[r?(0,i.jsx)(M,{id:N,tooltip:s,labelHint:l,children:r}):null,(0,i.jsxs)("div",{className:"flex mt-2 first:mt-0 rounded-lg",children:[m?(0,i.jsx)("span",{className:o()("inline-flex items-center bg-gray-50 text-gray-500","px-3 border-y border-l border-gray-300 rounded-l-lg",g?"opacity-50":null),children:m}):null,(0,i.jsx)("input",{id:N,type:a,name:n,placeholder:x,autoComplete:u,className:o()(m&&!h?"rounded-r-lg":null,h&&!m?"rounded-l-lg":null,m||h?null:"rounded-lg",void 0!==v?"text-red-900 border-red-300 placeholder:red-300 focus:outline-none":"text-gray-900 border-gray-300 placeholder:text-gray-500 hover:border-gray-400 focus:border-gray-500",q(d)),disabled:g,"aria-describedby":n+"-description","aria-invalid":void 0!==v,...y(n,{required:""})}),h?(0,i.jsx)("span",{className:o()("inline-flex items-center bg-gray-50 text-gray-500","px-3 border-y border-r border-gray-300 rounded-r-lg",g?"opacity-50":null),children:h}):null]}),t?(0,i.jsx)("div",{className:"mt-2 flex items-center",children:(0,i.jsx)("p",{className:"text-gray-500 text-sm",children:t})}):null,void 0!==v&&f?(0,i.jsx)("div",{id:N+"-error",className:"mt-2 flex items-center",children:(0,i.jsx)("p",{className:"text-red-600 text-sm",children:null==v?void 0:v.message})}):null]})};let P=e=>{let{children:r,label:l="",labelHint:t="",description:s="",tooltip:n="",name:a="",size:d="full",autocomplete:x=null,defaultValue:u="",emptyValue:m="Scegli...",disabled:h=!1,showError:g=!0,colSpan:f={all:"full",sm:4},colStart:b={}}=e,{register:p,formState:y}=(0,O.Gc)(),j=(0,Z.O6)(a,y.errors),v="".concat(a,"-").concat((0,Z.O1)());return(0,i.jsxs)("div",{className:o()((0,c.W7)(f),(0,c.Ic)(b),h?"opacity-50":null),children:[l?(0,i.jsx)(M,{id:v,tooltip:n,labelHint:t,children:l}):null,(0,i.jsx)("div",{className:"mt-2 first:mt-0",children:(0,i.jsxs)("select",{id:v,name:a,className:o()(void 0!==j?"text-red-900 border-red-300 placeholder:red-300 focus:outline-none":"text-gray-900 border-gray-300 placeholder:text-gray-500 hover:border-gray-400 focus:border-gray-500",V(d)),autoComplete:x,defaultValue:u,disabled:h,...p(a,{required:""}),children:[(0,i.jsx)("option",{value:"",children:m}),r]})}),s?(0,i.jsx)("div",{className:"mt-2 flex items-center",children:(0,i.jsx)("p",{className:"text-gray-500 text-sm",children:s})}):null,void 0!==j&&g?(0,i.jsx)("div",{id:v+"-error",className:"mt-2 flex items-center",children:(0,i.jsx)("p",{className:"text-red-600 text-sm",children:j.message})}):null]})},S=e=>{let{children:r,value:l="",disabled:t=!1}=e;return(0,i.jsx)("option",{value:l,disabled:t,className:"disabled:text-gray-500",children:r})},V=e=>o()("block max-w-full bg-white","text-base/snug px-4 py-3 border rounded-lg","focus:ring-4 focus:ring-primary-300","disabled:cursor-not-allowed")+" "+({xs:"w-16",sm:"w-32",md:"w-64",lg:"w-80",xl:"w-96",full:"w-full",auto:"w-auto"})[e];var _=e=>{let{label:r="",labelHint:l="",description:t="",tooltip:s="",name:n="",placeholder:a="",autocomplete:d=null,rows:x=5,disabled:u=!1,showError:m=!0,colSpan:h={all:"full"},colStart:g={}}=e,{register:f,formState:b}=(0,O.Gc)(),p=(0,Z.O6)(n,b.errors),y="".concat(n,"-").concat((0,Z.O1)());return(0,i.jsxs)("div",{className:o()((0,c.W7)(h),(0,c.Ic)(g),u?"opacity-50":null),children:[r?(0,i.jsx)(M,{id:y,tooltip:s,labelHint:l,children:r}):null,(0,i.jsx)("div",{className:"mt-2 first:mt-0",children:(0,i.jsx)("textarea",{id:y,name:n,rows:x,className:o()(void 0!==p?"text-red-900 border-red-300 placeholder:red-300 focus:outline-none":"text-gray-900 border-gray-300 placeholder:text-gray-500 hover:border-gray-400 focus:border-gray-500","block w-full max-w-full bg-white","text-base px-4 py-3 border rounded-lg","focus:ring-4 focus:ring-primary-300 disabled:cursor-not-allowed"),placeholder:a,autoComplete:d,disabled:u,"aria-invalid":void 0!==p,...f(n,{required:""})})}),t?(0,i.jsx)("div",{className:"mt-2 flex items-center",children:(0,i.jsx)("p",{className:"text-gray-500 text-sm",children:t})}):null,void 0!==p&&m?(0,i.jsx)("div",{id:y+"-error",className:"mt-2 flex items-center",children:(0,i.jsx)("p",{className:"text-red-600 text-sm",children:null==p?void 0:p.message})}):null]})};let E=e=>"rounded focus:ring-offset-0 disabled:cursor-not-allowed "+({sm:"h-4 w-4",md:"h-6 w-6"})[e];var $=e=>{let{label:r="",labelHint:l="",description:t="",tooltip:s="",name:n="",value:a,size:d="md",disabled:x=!1,showError:u=!0,colSpan:m={all:"full"},colStart:h={}}=e,{register:g,formState:f}=(0,O.Gc)(),b=(0,Z.O6)(n,f.errors),p="".concat(n,"-").concat(a,"-").concat((0,Z.O1)());return(0,i.jsxs)("div",{className:o()((0,c.W7)(m),(0,c.Ic)(h),x?"opacity-50":null),children:[(0,i.jsxs)("div",{className:"flex items-start",children:[(0,i.jsx)("div",{className:"flex h-5 items-center pt-1",children:(0,i.jsx)("input",{id:p,type:"checkbox",name:n,value:a,className:o()(void 0!==b?"border-red-300 text-red-900 placeholder-red-300 focus:outline-none focus:ring-red-500 focus:border-red-500":"border-gray-300 text-primary focus:ring-4 focus:ring-primary-300",E(d)),disabled:x,"aria-describedby":p+"-description","aria-invalid":void 0!==b,...g(n,{required:""})})}),(0,i.jsxs)("div",{className:"sm"==d?"ml-2":"ml-3",children:[r?(0,i.jsx)(M,{id:p,tooltip:s,labelHint:l,children:r}):null,t?(0,i.jsx)("div",{className:"mt-2 first:mt-0",children:(0,i.jsx)("p",{className:o()("text-gray-900 font-medium text-base","[&>a]:text-primary [&>a:hover]:underline"),children:t})}):null]})]}),void 0!==b&&u?(0,i.jsx)("div",{id:p+"-error",className:"mt-2 flex items-center",children:(0,i.jsx)("p",{className:"text-red-600 text-sm",children:b.message})}):null]})};let A=e=>"rounded-full focus:ring-offset-0 disabled:cursor-not-allowed "+({sm:"h-4 w-4",md:"h-6 w-6"})[e];var T=e=>{let{label:r="",labelHint:l="",description:t="",tooltip:s="",name:n="",value:a,size:d="md",disabled:x=!1,showError:u=!0,colSpan:m={all:"full"},colStart:h={}}=e,{register:g,formState:f}=(0,O.Gc)(),b=(0,Z.O6)(n,f.errors),p="".concat(n,"-").concat(a,"-").concat((0,Z.O1)());return(0,i.jsxs)("div",{className:o()((0,c.W7)(m),(0,c.Ic)(h),x?"opacity-50":null),children:[(0,i.jsxs)("div",{className:"flex items-start",children:[(0,i.jsx)("div",{className:"flex h-5 items-center pt-1",children:(0,i.jsx)("input",{id:p,type:"radio",name:n,value:a,className:o()(void 0!==b?"border-red-300 text-red-900 placeholder-red-300 focus:outline-none focus:ring-red-500 focus:border-red-500":"border-gray-300 text-primary focus:ring-4 focus:ring-primary-300",A(d)),disabled:x,"aria-describedby":p+"-description","aria-invalid":void 0!==b,...g(n,{required:""})})}),(0,i.jsxs)("div",{className:"sm"==d?"ml-2":"ml-3",children:[r?(0,i.jsx)(M,{id:p,tooltip:s,labelHint:l,children:r}):null,t?(0,i.jsx)("div",{className:"mt-2 first:mt-0",children:(0,i.jsx)("p",{className:o()("text-gray-900 font-medium text-base","[&>a]:text-primary [&>a:hover]:underline"),children:t})}):null]})]}),void 0!==b&&u?(0,i.jsx)("div",{id:p+"-error",className:"mt-2 flex items-center",children:(0,i.jsx)("p",{className:"text-red-600 text-sm",children:b.message})}):null]})},X=l(61e3),K=l(32931),R=l(17723),U=l(17783),Y=e=>{let{label:r="",labelHint:l="",name:t="",placeholder:s=r,formatValue:n=e=>e,disabled:a=!1,minDate:d=null,disablePastDays:x=!1,openedDates:u=null,showError:m=!0,nullable:h=!1,colSpan:g={all:"full",sm:4},colStart:f={},locale:b="en",popoverAnchor:p=!1}=e,{field:y}=(0,O.bc)({name:t}),{formState:j}=(0,O.Gc)(),v=(0,Z.O6)(t,j.errors),N=(0,K.kt)({value:y.value,onChange:y.onChange,locale:b});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:o()((0,c.W7)(g),(0,c.Ic)(f),a?"opacity-50":null,"hidden lg:block"),children:[(0,i.jsx)(w.J2,{className:"relative",children:e=>{let{open:t}=e;return(0,i.jsxs)(i.Fragment,{children:[r?(0,i.jsx)("div",{className:"flex items-center gap-x-2",children:(0,i.jsxs)("p",{className:"block font-bold text-base text-gray-900 cursor-default",children:[r,l?(0,i.jsx)("span",{className:"font-normal text-gray-500 ml-1",children:l}):null]})}):null,(0,i.jsx)("div",{className:"mt-2 first:mt-0",children:(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsx)(w.O7,{className:o()("appearance-none","flex justify-between items-center","w-full max-w-full bg-white","text-gray-900 text-base/snug text-left truncete","pl-4 py-3 border border-gray-300 rounded-lg","outline-0 outline-none","placeholder:text-gray-500 hover:border-gray-400","disabled:opacity-40 disabled:cursor-not-allowed",y.value?"pr-8":"pr-4"),disabled:a,children:(0,i.jsx)("span",{className:"truncate",children:y.value?n(y.value):(0,i.jsx)("span",{className:"text-gray-500",children:s})})}),y.value&&h?(0,i.jsx)(X.P,{onClick:()=>y.onChange(null),className:o()("shrink-0 grow-0 inline-flex justify-center items-center","absolute top-1/2 right-4 -translate-y-1/2","cursor-pointer rounded-full","hover:bg-gray-200 hover:outline hover:outline-2 hover:outline-gray-200"),children:(0,i.jsx)(C.Z,{name:U.Z})}):(0,i.jsx)("span",{className:o()(t?"rotate-180":"","inline-flex justify-center items-center grow-0","absolute top-1/2 right-4 -translate-y-1/2","transition-transform origin-center pointer-events-none"),children:(0,i.jsx)(C.Z,{name:D.Z})})]})}),(0,i.jsx)(w.Hi,{className:o()(p?"z-30":"z-10","absolute left-0 min-w-80 bg-white mt-2","border border-gray-200 rounded-lg","shadow-lg"),anch
1or:p,children:e=>{let{close:r}=e;return(0,i.jsx)("div",{className:"min-h-fit text-left",children:(0,i.jsx)("div",{className:o()("w-auto min-w-[220px] max-w-full bg-white","text-gray-900 text-sm leading-6 p-3 rounded-md","ring-1 ring-black ring-opacity-5 shadow-lg"),children:(0,i.jsx)(R.Z,{datePicker:N,openedDates:u,minDate:d,disablePastDays:x,close:()=>r()})})})}})]})}}),void 0!==v&&m?(0,i.jsx)("div",{id:t+"-error",className:"mt-2 flex items-center",children:(0,i.jsx)("p",{className:"text-red-600 text-sm",children:v.message})}):null]}),(0,i.jsxs)("div",{className:o()((0,c.W7)(g),(0,c.Ic)(f),a?"opacity-50":null,"lg:hidden"),children:[(0,i.jsx)(k.pJ,{children:e=>{let{open:t,close:c}=e;return(0,i.jsxs)(i.Fragment,{children:[r?(0,i.jsx)("div",{className:"flex items-center gap-x-2",children:(0,i.jsxs)("p",{className:"block font-bold text-base text-gray-900 cursor-default",children:[r,l?(0,i.jsx)("span",{className:"font-normal text-gray-500 ml-1",children:l}):null]})}):null,(0,i.jsx)("div",{className:"mt-2 first:mt-0",children:(0,i.jsxs)("div",{className:o()(t?"shadow-lg":"","group rounded-lg"),children:[(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsx)(k.lG,{className:o()(t?"border-b-0 rounded-t-lg":"rounded-lg",y.value?"pr-8":"pr-4","appearance-none","flex justify-between items-center","w-full max-w-full bg-white","text-gray-900 text-base/snug text-left truncete","pl-4 py-3 border border-gray-300","outline-0 outline-none","placeholder:text-gray-500 group-hover:border-gray-400","disabled:opacity-40 disabled:cursor-not-allowed"),disabled:a,children:(0,i.jsx)("span",{className:"truncate",children:y.value?n(y.value):(0,i.jsx)("span",{className:"text-gray-500",children:s})})}),y.value&&h?(0,i.jsx)(X.P,{onClick:()=>y.onChange(null),className:o()("shrink-0 grow-0 inline-flex justify-center items-center","absolute top-1/2 right-4 -translate-y-1/2","cursor-pointer rounded-full","hover:bg-gray-200 hover:outline hover:outline-2 hover:outline-gray-200"),children:(0,i.jsx)(C.Z,{name:U.Z})}):(0,i.jsx)("span",{className:o()(t?"rotate-180":"","inline-flex justify-center items-center grow-0","absolute top-1/2 right-4 -translate-y-1/2","transition-transform origin-center pointer-events-none"),children:(0,i.jsx)(C.Z,{name:D.Z})})]}),(0,i.jsx)(k.V2,{className:o()("w-full max-w-full bg-white","border-x border-b border-gray-300 rounded-b-lg","group-hover:border-gray-400"),children:(0,i.jsx)(R.Z,{datePicker:N,openedDates:u,minDate:d,disablePastDays:x,close:()=>c()})})]})})]})}}),void 0!==v&&m?(0,i.jsx)("div",{id:t+"-error",className:"mt-2 flex items-center",children:(0,i.jsx)("p",{className:"text-red-600 text-sm",children:v.message})}):null]})]})},B=e=>{let{label:r="",labelHint:l="",description:t="",tooltip:s="",name:n="",min:a=null,max:d=null,disabled:x=!1,hideCalendarIcon:u=!1,showError:m=!0,colSpan:h={all:"full",sm:4},colStart:g={}}=e,{register:f,formState:b}=(0,O.Gc)(),p=(0,Z.O6)(n,b.errors),y="".concat(n,"-").concat((0,Z.O1)());return(0,i.jsxs)("div",{className:o()((0,c.W7)(h),(0,c.Ic)(g),x?"opacity-50":null),children:[r?(0,i.jsx)(M,{id:y,tooltip:s,labelHint:l,children:r}):null,(0,i.jsx)("div",{className:"mt-2 first:mt-0",children:(0,i.jsx)("input",{id:y,type:"date",min:a,max:d,disabled:x,"aria-invalid":void 0!==p,"aria-describedby":"".concat(n,"-description"),className:o()("relative z-[1] block w-full max-w-full bg-white","text-base/snug px-4 py-3 border rounded-lg","focus:ring-4 focus:ring-primary-300 disabled:cursor-not-allowed",u?"[&::-webkit-calendar-picker-indicator]:hidden":null,void 0!==p?"text-red-900 border-red-300 focus:outline-none":"text-gray-900 border-gray-300 hover:border-gray-400 focus:border-gray-500"),...f(n)})}),t?(0,i.jsx)("div",{className:"mt-2 flex items-center",children:(0,i.jsx)("p",{className:"text-gray-500 text-sm",children:t})}):null,void 0!==p&&m?(0,i.jsx)("div",{id:"".concat(y,"-error"),className:"mt-2 flex items-center",children:(0,i.jsx)("p",{className:"text-red-600 text-sm",children:null==p?void 0:p.message})}):null]})},L=l(17353),Q=l(2478),ee=e=>{let{label:r="",labelHint:l="",description:t="",tooltip:s="",labelDescription:n="",name:a="",layout:d="default",align:x="left",min:u=0,max:m=10,step:h=1,disabled:g=!1,showError:f=!0,colSpan:b={all:"full",sm:4},colStart:p={}}=e,{register:y,formState:j,setValue:v,watch:N}=(0,O.Gc)(),w=(0,Z.O6)(a,j.errors),k="".concat(a,"-").concat((0,Z.O1)()),D=N(a)||0;return(0,i.jsxs)("div",{className:o()((0,c.W7)(b),(0,c.Ic)(p),"inline"===d?"flex justify-between items-center gap-2":"","center"===x?"text-center":"text-left",g?"opacity-50":null),children:[r?(0,i.jsxs)(M,{id:k,tooltip:s,labelHint:l,children:[r,n?(0,i.jsx)("span",{className:"block font-normal text-gray-500 text-sm",children:n}):null]}):null,(0,i.jsxs)("div",{className:o()("center"===x?"mx-auto":"","flex items-center min-h-12 mt-2 first:mt-0"),children:[(0,i.jsx)("button",{type:"button",onClick:()=>{!g&&D>u&&v(a,D-h)},disabled:g||D<=u,className:o()(D>u?"text-gray-600 border-gray-300 hover:bg-gray-100":"text-gray-400 border-gray-200 cursor-not-allowed","shrink-0 flex justify-center items-center size-10","border rounded-full"),children:(0,i.jsx)(C.Z,{name:L.Z})}),(0,i.jsx)("span",{className:"flex justify-center flex-center w-12",children:(0,i.jsx)("input",{id:k,type:"number",name:a,value:D,readOnly:!0,disabled:g,className:o()("appearance-none bg-white shrink-0","flex justify-center flex-center w-full","text-gray-900 text-base/snug text-center","border-none select-none focus:outline-none focus:ring-0","[&::-webkit-outer-spin-button]:appearance-none","[&::-webkit-outer-spin-button]:m-0","[&::-webkit-inner-spin-button]:appearance-none","[&::-webkit-inner-spin-button]:m-0"),style:{WebkitAppearance:"none",MozAp
1pearance:"textfield",appearance:"textfield"},...y(a,{required:""})})}),(0,i.jsx)("button",{type:"button",onClick:()=>{!g&&D<m&&v(a,D+h)},disabled:g||D>=m,className:o()(D<m?"text-gray-600 border-gray-300 hover:bg-gray-100":"text-gray-400 border-gray-200 cursor-not-allowed","shrink-0 flex justify-center items-center size-10","border rounded-full"),children:(0,i.jsx)(C.Z,{name:Q.Z})})]}),t?(0,i.jsx)("div",{className:"mt-2 flex items-center",children:(0,i.jsx)("p",{className:"text-gray-500 text-sm",children:t})}):null,void 0!==w&&f?(0,i.jsx)("div",{id:"".concat(k,"-error"),className:"mt-2 flex items-center",children:(0,i.jsx)("p",{className:"text-red-600 text-sm",children:null==w?void 0:w.message})}):null]})},er=l(55441);let el=(e,r,l,t,s,n)=>o()(s?"disabled:opacity-40 disables:cursor-not-allowed":"",n?"pointer-events-none cursor-default":"",l?"w-full":"",t?"rounded-full":"rounded-lg","appearance-none cursor-pointer grow-0 relative","inline-flex grow-0 justify-center items-center","font-bold text-center transition-colors","focus:ring-4 focus:ring-primary-300")+" "+({primary:"bg-primary text-white hover:bg-primary-700 active:bg-primary-800",secondary:"bg-secondary text-white hover:bg-secondary-700 hover:bg-secondary-800",danger:"bg-red-600 text-white hover:bg-red-700 active:bg-red-800 focus:ring-red-300"})[e]+" "+({xs:"min-h-[32px] px-3 py-2 text-base",sm:"min-h-[40px] px-3 py-2 text-base",md:"min-h-[44px] px-3.5 py-3 text-base",lg:"min-h-[60px] px-5 py-4 text-lg"})[r],et=e=>({xs:"xs",sm:"xs",md:"xs",lg:"sm"})[e];var es=e=>{let{children:r,type:l="submit",color:t="primary",size:s="md",full:n=!1,rounded:a=!1,disabled:c=!1,loading:d=!1,onClick:x=null}=e;return(0,i.jsxs)("button",{className:el(t,s,n,a,c,d),type:l,disabled:c||d,onClick:x,children:[d?(0,i.jsx)("span",{className:"absolute",children:(0,i.jsx)(er.Z,{size:et(s),color:"inherit"})}):null,(0,i.jsx)("span",{className:o()(d?"invisible":"","inline-flex justify-center items-center"),children:r})]})}},84426:function(e,r,l){var t=l(8296),s=l(7e3),n=l(39688),a=l(89411),i=l(37321),c=l.n(i);let d=e=>{let{name:r=""}=e,{formState:l}=(0,s.Gc)(),a=(0,n.O6)(r,l.errors);return void 0===a?null:(0,t.jsx)("div",{className:"mt-2 flex items-center",children:(0,t.jsx)("p",{className:"text-red-600 text-sm",children:a.message})})};r.Z=e=>{let{children:r,label:l="",labelHint:s="",description:n="",errorFields:i=[],colSpan:o={all:"full"},colStart:x={},gridCols:u={all:6}}=e;return(0,t.jsxs)("div",{className:c()((0,a.W7)(o),(0,a.Ic)(x)),children:[l?(0,t.jsxs)("label",{className:"block font-bold text-base text-gray-900",children:[l,s?(0,t.jsx)("span",{className:"font-normal text-gray-500 ml-1",children:s}):null]}):null,(0,t.jsx)("div",{className:c()((0,a.R0)(u),"grid gap-4 mt-2 first:mt-0"),children:r}),n?(0,t.jsx)("div",{className:"mt-2 flex items-center",children:(0,t.jsx)("p",{className:"text-gray-500 text-sm",children:n})}):null,i.map((e,r)=>(0,t.jsx)(d,{name:e},r))]})}},39928:function(e,r,l){l.d(r,{OV:function(){return i},uy:function(){return s}});let t=e=>e.slice(0,10),s=e=>new Date("".concat(t(e),"T00:00:00.000Z")),n=e=>e.toISOString().slice(0,10),a=(e,r)=>{let l=s(e);return l.setUTCDate(l.getUTCDate()+r),n(l)},i=(e,r)=>a(e,-r)},13432:function(e,r,l){var t=l(46759);t.addMethod(t.string,"nullableOrEmpty",function(){return this.nullable().transform((e,r)=>null==r||""===r?null:r)}),t.addMethod(t.number,"nullableOrEmpty",function(){return this.nullable().transform((e,r)=>null==r||""===r?null:Number(r))}),t.addMethod(t.string,"validDate",function(e){return this.test("validDate",e,e=>{if(!e)return!0;let r=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);if(!r)return!1;let l=Number(r[1]),t=Number(r[2]),s=Number(r[3]),n=new Date(l,t-1,s);return n.getFullYear()===l&&n.getMonth()===t-1&&n.getDate()===s})}),t.addMethod(t.string,"minDate",function(e,r){return this.test("minDate",r,r=>!r||r>=e)}),t.addMethod(t.string,"maxDate",function(e,r){return this.test("maxDate",r,r=>!r||r<=e)}),r.Z=t}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.