1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1240],{31240:(e,t,r)=>{r.d(t,{Sc:()=>E,UI:()=>_,zp:()=>F,pp:()=>B,W7:()=>z,mk:()=>L,R0:()=>k,Gi:()=>S,Py:()=>q,l6:()=>D,Gk:()=>M,ph:()=>y,Gw:()=>w,Iu:()=>v,aQ:()=>b,rG:()=>p,fs:()=>R,ks:()=>C});var l=r(6029),a=r(55729),n=r(28408),s=r(71422),i=r(55988),o=r(60722);let c=e=>{let{onClose:t,children:r}=e,n=(0,a.useRef)(null),s=e=>{"Escape"===e.key&&t&&t()},i=e=>{!n.current.contains(e.target)&&t&&t()};return(0,a.useEffect)(()=>(document.addEventListener("click",i),document.addEventListener("keyup",s),()=>{document.removeEventListener("click",i),document.removeEventListener("keyup",s)}),[t]),(0,l.jsx)("div",{ref:n,children:r})};var d=r(36938),u=r(99572),m=r(65814),g=r(26111),x=r(51369);let f=e=>{let{options:t=[],onChange:r,placeholderText:n,dropDownLabel:s,tooltip:i}=e,o=t.filter(e=>e.selected);return(0,l.jsx)(d.WF,{value:t,onChange:r,children:e=>{let{open:r}=e;return(0,l.jsxs)(l.Fragment,{children:[s&&(0,l.jsx)(d.WF.Label,{className:"block text-sm font-medium text-gray-700",children:s}),(0,l.jsxs)("div",{className:"mt-1 relative",children:[(0,l.jsxs)(d.WF.Button,{className:"relative w-full bg-white border border-gray-300 rounded-md shadow-sm pl-3 pr-10 py-2 text-left cursor-default focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm",children:[(0,l.jsx)("span",{className:"block truncate text-ellipsis",children:o.length?o.length>1?"".concat(o[0].label," & ").concat(o.length-1," more"):o[0].label:n}),(0,l.jsx)("span",{className:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none",children:(0,l.jsx)(g.zp,{className:"h-5 w-5","aria-hidden":"true"})})]}),(0,l.jsx)(u.e,{show:r,as:a.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,l.jsx)(d.WF.Options,{className:"absolute z-10 mt-1 w-full bg-white shadow-lg max-h-60 rounded-md py-1 text-base ring-1 ring-black/5 overflow-auto focus:outline-none sm:text-sm",children:t.map(e=>(0,l.jsx)(d.WF.Option,{className:e=>{let{focus:t}=e;return(0,x.cx)(t?"text-white bg-indigo-600":"text-gray-900","cursor-default select-none relative py-2 pl-8 pr-4")},value:e,children:t=>{let{focus:r}=t;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("span",{className:(0,x.cx)(e.selected?"font-semibold":"font-normal","block truncate"),children:[e.label,i&&(0,l.jsx)(m.Ay,{content:e.description,placement:"top",children:(0,l.jsx)("span",{children:(0,l.jsx)(g.uQ,{className:"hidden mx-1 sm:h-4 sm:w-4 sm:inline"})})})]}),e.selected?(0,l.jsx)("span",{className:(0,x.cx)(r?"text-white":"text-indigo-600","absolute inset-y-0 left-0 flex items-center pl-1.5"),children:(0,l.jsx)(g.AF,{className:"h-6 w-6","aria-hidden":"true"})}):null]})}},e.id))})})]})]})}})};var h=r(98746);let p=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,l.jsx)("input",{className:(0,x.cx)("text-sm rounded-lg border border-gray-300 bg-white hover:border-gray-400 focus:border-gray-400 focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 px-3 py-2 w-full focus:outline-none text-gray-800 placeholder-gray-400",r),...a,ref:t})}),b=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,l.jsx)("textarea",{className:(0,x.cx)("text-sm rounded-lg border border-gray-300 bg-white hover:border-gray-400 focus:border-gray-400 focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 px-3 py-2 w-full focus:outline-none text-gray-800 placeholder-gray-400 min-h-[80px]",r),...a,ref:t})}),v=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,l.jsx)("select",{className:(0,x.cx)("text-sm rounded-lg border border-gray-300 bg-white hover:border-gray-400 focus:border-gray-400 focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 px-3 py-2 w-full focus:outline-none text-gray-800",r),...a,ref:t})}),j=e=>{let{options:t,value:r,setValue:a,className:s}=e;return(0,l.jsx)(n.z6,{value:r,onChange:a,className:(0,x.cx)("mt-2 grid grid-cols-3 gap-3 sm:grid-cols-6",s),children:t.map(e=>(0,l.jsx)(n.z6.Option,{value:e.value,className:(0,x.cx)("flex items-center justify-center rounded-md bg-white px-3 py-3 text-sm font-semibold ring-1 hover:bg-gray-50 focus:ring-2 outline-none cursor-pointer sm:flex-1",{"text-gray-900 ring-gray-300 focus:ring-indigo":r!==e.value},{"text-indigo ring-indigo focus:ring-indigo":r===e.value}),children:e.label},e.value))})},y=a.forwardRef((e,t)=>
1{let{className:r,checked:a,onChange:n,...s}=e;return(0,l.jsx)("input",{type:"checkbox",className:(0,x.cx)("form-checkbox focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 my-1 h-4 w-4 text-indigo-600 border-gray-300 rounded",r),checked:a,onChange:n,onKeyDown:e=>"Enter"===e.key&&e.preventDefault(),...s,ref:t})}),w=e=>{let{htmlFor:t,className:r,children:a}=e;return(0,l.jsx)("label",{htmlFor:t,className:(0,x.cx)("text-sm font-medium text-gray-600 tracking-tight leading-normal text-left cursor-pointer mb-2",r),children:a})},N=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,l.jsx)("input",{type:"file",className:(0,x.cx)("text-base rounded-lg shadow-sm border border-gray-300 focus:border-gray-400 px-3 py-2 focus:outline-none appearance-none",r),...a,ref:t,value:""})}),k=e=>{let{label:t,children:r,required:a,className:n,suppressRequiredStar:i=!1,suppressErrorMessage:o=!1,...c}=e,[d,u]=(0,s.Mt)(c),m=c.id||d.id||d.name;return(0,l.jsxs)("div",{className:(0,x.cx)("w-full flex flex-col mb-4",n),children:[t&&(0,l.jsxs)("label",{htmlFor:m,className:"block text-sm font-medium text-gray-600 tracking-tight leading-normal text-left mb-2",children:[t,a&&!i&&(0,l.jsx)("span",{className:"text-red-600","aria-label":"Required",children:"\xa0*"})]}),r,u.touched&&u.error&&!o?(0,l.jsx)("div",{className:"text-red-600 text-xs text-left mt-1",children:u.error}):null]})},C=e=>{let{required:t,onBlur:r,onChange:a,...n}=e,[i]=(0,s.Mt)(n);return(0,l.jsx)(k,{required:t,...n,children:(0,l.jsx)(p,{id:n.id||i.name,required:t,...i,...n,onBlur:e=>{i.onBlur(e),r&&r(e)},onChange:e=>{a&&a(e),i.onChange(e)}})})},R=e=>{let{required:t,onBlur:r,...a}=e,[n]=(0,s.Mt)(a);return(0,l.jsx)(k,{required:t,...a,children:(0,l.jsx)(b,{id:a.id||n.name,required:t,...n,...a,onBlur:e=>{n.onBlur(e),r&&r(e)}})})},D=e=>{let{required:t,options:r,placeholder:a,onChange:n,children:i,...o}=e,[c,,d]=(0,s.Mt)(o);return(0,l.jsx)(k,{required:t,...o,children:(0,l.jsxs)(v,{id:o.id||c.name,required:t,...c,...o,onChange:e=>{c.onChange(e),d.setTouched(!0),n&&n(e.target.value)},children:[a&&(0,l.jsx)("option",{value:"",children:a}),null==r?void 0:r.map(e=>{let{value:t,label:r}=e;return(0,l.jsx)("option",{value:t,children:r},t)}),i]})})},q=e=>{let{required:t,...r}=e,[a,n,i]=(0,s.Mt)(r);return(0,l.jsx)(k,{required:t,...r,children:(0,l.jsx)(j,{setValue:i.setValue,...a,...r})})},E=e=>{var t;let{label:r,className:a,onChange:n,...i}=e,[o]=(0,s.Mt)({...i,type:"checkbox"});return(0,l.jsx)(k,{className:a,...i,children:(0,l.jsxs)("label",{className:"flex items-start text-sm font-medium text-gray-600 tracking-tight leading-normal text-left cursor-pointer",children:[(0,l.jsx)(y,{...o,...i,value:null!=(t=i.value)?t:"true",onChange:e=>{o.onChange(e),n&&n(e)}}),(0,l.jsx)("span",{className:"ml-3",children:r})]})})},M=e=>{let{label:t,name:r,required:a,...n}=e,[i,o,c]=(0,s.Mt)(r);return(0,l.jsx)(k,{label:t,name:r,required:a,children:(0,l.jsx)(h.A,{...n,onRating:c.setValue})})},F=e=>{let{required:t,...r}=e,[a,n,i]=(0,s.Mt)(r),{value:o}=n,{setValue:c}=i,d="".concat(a.name,"-filename"),u=r.id||a.name;return(0,l.jsx)(k,{required:t,...r,children:o?(0,l.jsxs)("div",{className:"flex",children:[(0,l.jsx)("span",{id:d,className:"text-sm md:text-base font-medium leading-tight text-gray-600","aria-live":"polite",children:o.name}),(0,l.jsx)("button",{type:"button",onClick:()=>c(void 0),className:"ml-4 text-sm md:text-base font-medium leading-tight text-indigo","aria-labelledby":d,"aria-label":"Remove file ".concat(o.name),children:"Remove"})]}):(0,l.jsx)(N,{id:u,required:t,...a,...r})})},_=e=>{let{required:t,...r}=e,[n,o,c]=(0,s.Mt)(r),{value:d}=o,{setValue:u}=c,m=a.useRef(null),g=r.id||n.name||"input-file-upload",f="".concat(g,"-filename"),[h,p]=a.useState(!1),[b,v]=a.useState(!1),j=e=>{e.preventDefault(),e.stopPropagation(),"dragenter"===e.type||"dragover"===e.type?v(!0):"dragleave"===e.type&&v(!1)};return(0,l.jsx)(k,{required:t,...r,children:d?(0,l.jsxs)("div",{className:"flex",children:[(0,l.jsx)("span",{id:f,className:"text-sm md:text-base font-medium leading-tight text-gray-600","aria-live":"polite",children:d.name}),(0,l.jsx)("button",{type:"button",onClick:()=>u(void 0),className:"ml-4 text-sm md:text-base font-medium leading-tight text-indigo","aria-labelledby":f,"aria-label":"Remove file ".concat(d.name),children:"Remove"})]}):(0,l.jsxs)("div",{onDragEnter:j,className:(0,x.cx)(b&&"bg-gray-200 border-gray-400","flex justify-center w-full h-32 px-4 transition bg-white border-2 border-gray-300 border-dashed rounded-md appearance-none cursor-pointer hover:border-gray-400 focus:outline-none"),children:[(0,l.jsx)(N,{id:g,required:t,...n,...r,className:"hidden",ref:m}),(0,l.jsxs)("label",{className:"flex items-center justify-center space-x-2",htmlFor:g,children:[(0,l.jsx)(i.A,{className:"h-6 w-6 text-gray-600 mr-1"}),b?(0,l.jsx)("span",{className:"font-medium text-gray-600",children:"Drop here"}):(0,l.jsxs)("span",{className:"font-medium text-gray-600",children:[h&&(0,l.jsx)("span",{className:"font-semibold text-red-600",children:"Incorrect file type. "}),"Drop files to attach, or"," ",(0,l.jsx)("button",{type:"button",className:"text-blue-600 underline",onClick:()=>{m.current.click()},children:"browse"})]})]}),b&&(0,l.jsx)("div",{className:"absolute w-full h-full rounded-lg top-0 right-0 bottom-0 left-0",onDragEnter:j,onDragLeave:j,onDragOver:j,onDrop:e=>{if(e.preventDefault(),e.stopPropagation(),v(!1),e.dataTransfer.files&&e.dataTransfer.files[0]){if
1(e.dataTransfer.files[0].type!==r.accept)return void p(!0);p(!1),u(e.dataTransfer.files[0])}}})]})})},L=e=>{let{updateSuggestions:t,required:r,suggestions:n=[],open:i=!1,onBlur:o,strictSelection:d=!1,multiSelect:u=!1,...m}=e,[g,f]=(0,a.useState)(i),[h,b]=(0,a.useState)(-1),[v,j]=(0,a.useState)(null),[y,w]=(0,a.useState)([]),[N,C]=(0,a.useState)(""),R=(0,a.useRef)(null),D=(0,a.useRef)(null),q=(0,a.useRef)(null),[E]=(0,s.Mt)(m),{setFieldValue:M}=(0,s.j7)();(0,a.useEffect)(()=>{if(u){if(Array.isArray(E.value)&&E.value.length>0&&0===y.length){let e=E.value.map(e=>{var t;return null==(t=n.find(t=>{let{item:r}=t;return r.name===e}))?void 0:t.item}).filter(Boolean);e.length>0&&w(e)}}else if(E.value&&n.length>0&&!v){let e=n.find(e=>{let{item:t}=e;return t.name===E.value});e&&j(e.item)}},[E.value,n,v,y.length,u]);let F=e=>{if(e>=0&&R.current){let t=R.current.querySelector("#suggestion-".concat(e));t&&t.scrollIntoView({block:"nearest"})}},_=e=>{f(!0),b(-1),u?(C(e.target.value),t(e.target.value)):(j(null),t(e.target.value),E.onChange(e))},L=e=>{if(b(-1),u){var r;let l;w(l=y.some(t=>t.id===e.id)?y.filter(t=>t.id!==e.id):[...y,e]),C(""),t(""),M(E.name,l.map(e=>e.name)),null==(r=q.current)||r.focus()}else f(!1),j(e),t(e.name),M(E.name,e.name),o&&o({target:{value:e.name}})},z=e=>{var t;let r=y.filter(t=>t.id!==e.id);w(r),M(E.name,r.map(e=>e.name)),null==(t=q.current)||t.focus()},B=e=>{var t;if(null==(t=D.current)||!t.contains(e.relatedTarget)){if(f(!1),b(-1),d&&!u){let t=e.target.value;!n.find(e=>{let{item:r}=e;return r.name===t})&&t&&(v?M(E.name,v.name):M(E.name,""))}u&&C(""),o&&o(e)}},S=e=>{switch(e.key){case"Backspace":u&&""===N&&y.length>0&&z(y[y.length-1]);break;case"ArrowDown":{if(!g||0===n.length)return;e.preventDefault();let t=h<n.length-1?h+1:0;b(t),F(t);break}case"ArrowUp":{if(!g||0===n.length)return;e.preventDefault();let t=h>0?h-1:n.length-1;b(t),F(t);break}case"Escape":if(!g||0===n.length)return;e.preventDefault(),f(!1),b(-1);break;case"Enter":e.preventDefault(),h>=0&&n[h]&&L(n[h].item)}},A=e=>e.preventDefault();return u?(0,l.jsx)(k,{required:r,...m,children:(0,l.jsx)(c,{onClose:g&&n.length>0?()=>f(!1):null,children:(0,l.jsxs)("div",{className:"relative",ref:D,children:[(0,l.jsxs)("div",{role:"group",className:(0,x.cx)("flex flex-wrap items-center gap-1.5 text-sm rounded-lg border border-gray-300 bg-white hover:border-gray-400 focus-within:border-gray-400 focus-within:ring-2 focus-within:ring-offset-2 focus-within:ring-indigo-500 px-2 py-1.5 w-full"),onClick:()=>{var e;return null==(e=q.current)?void 0:e.focus()},onKeyDown:e=>{var t;("Enter"===e.key||" "===e.key)&&(null==(t=q.current)||t.focus())},children:[y.map(e=>(0,l.jsxs)("span",{className:"inline-flex items-center gap-1 bg-indigo-100 text-indigo-800 text-xs font-medium px-2 py-1 rounded",children:[e.image_url&&(0,l.jsx)("img",{src:e.image_url,alt:"",className:"h-3 w-3 object-contain"}),e.name,(0,l.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation(),z(e)},className:"text-indigo-600 hover:text-indigo-800 focus:outline-none","aria-label":"Remove ".concat(e.name),children:(0,l.jsx)("svg",{className:"h-3 w-3",fill:"currentColor",viewBox:"0 0 20 20",children:(0,l.jsx)("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})})]},e.id)),(0,l.jsx)("input",{ref:q,type:"text",value:N,onChange:_,onBlur:B,onFocus:()=>f(!0),onKeyDown:S,className:"flex-1 min-w-[120px] border-0 p-0.5 focus:outline-none focus:ring-0 text-sm text-gray-800 placeholder-gray-400",placeholder:0===y.length?m.placeholder:"",autoFocus:i,autoComplete:"off",role:"combobox","aria-controls":"suggestions-listbox","aria-expanded":g&&n.length>0,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-activedescendant":h>=0?"suggestion-".concat(h):void 0})]}),(0,l.jsx)("ul",{ref:R,className:(0,x.cx)("absolute left-0 right-0 border border-gray-200 shadow-lg rounded-lg z-10 overflow-hidden max-h-48 bg-white",g&&n.length>
10?"visible":"invisible"),style:{top:"100%",marginTop:4},role:"listbox",children:(0,l.jsx)("div",{className:"flex flex-col bg-white overflow-auto max-h-48 scrollbar-hidden",children:n.map((e,t)=>{let{item:r}=e,a=y.some(e=>e.id===r.id);return(0,l.jsx)("li",{children:(0,l.jsxs)("button",{id:"suggestion-".concat(t),type:"button",onMouseDown:A,onClick:()=>L(r),onMouseEnter:()=>b(t),className:(0,x.cx)("w-full py-3 px-5 cursor-pointer text-sm text-left flex items-center hover:bg-gray-50",a&&"text-indigo-700"),role:"option","aria-selected":a,children:[r.image_url&&(0,l.jsx)("img",{src:r.image_url,alt:"".concat(r.name," logo"),className:"h-3.5 w-3.5 mr-2 object-contain"}),r.name,a&&(0,l.jsx)("svg",{className:"ml-auto h-4 w-4 text-indigo-600",fill:"currentColor",viewBox:"0 0 20 20",children:(0,l.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})]})},r.id)})})})]})})}):(0,l.jsx)(k,{required:r,...m,children:(0,l.jsx)(c,{onClose:g&&n.length>0?()=>f(!1):null,children:(0,l.jsxs)("div",{className:"relative",ref:D,children:[(0,l.jsxs)("div",{className:"relative",children:[(null==v?void 0:v.image_url)&&(0,l.jsx)("img",{src:v.image_url,alt:"",className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-3.5 w-3.5 object-contain"}),(0,l.jsx)(p,{...E,...m,ref:q,className:(0,x.cx)("text-sm",{"pl-8":null==v?void 0:v.image_url}),onChange:_,onBlur:B,onFocus:()=>f(!0),onKeyDown:S,autoFocus:i,autoComplete:"off",role:"combobox","aria-expanded":g&&n.length>0,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-activedescendant":h>=0?"suggestion-".concat(h):void 0})]}),(0,l.jsx)("ul",{ref:R,className:(0,x.cx)("absolute left-0 right-0 border border-gray-200 shadow-lg rounded-lg z-10 overflow-hidden max-h-48 bg-white",g&&n.length>0?"visible":"invisible"),style:{top:"100%",marginTop:4},role:"listbox",children:(0,l.jsx)("div",{className:"flex flex-col bg-white overflow-auto max-h-48 scrollbar-hidden",children:n.map((e,t)=>{let{item:r}=e;return(0,l.jsx)("li",{children:(0,l.jsxs)("button",{id:"suggestion-".concat(t),type:"button",onMouseDown:A,onClick:()=>L(r),onMouseEnter:()=>b(t),className:(0,x.cx)("w-full py-3 px-5 cursor-pointer text-sm text-left flex items-center",h===t?"bg-gray-100":"hover:bg-gray-50"),role:"option","aria-selected":h===t,children:[r.image_url&&(0,l.jsx)("img",{src:r.image_url,alt:"".concat(r.name," logo"),className:"h-3.5 w-3.5 mr-2 object-contain"}),r.name]})},r.id)})})})]})})})},z=e=>{let{name:t,label:r,required:a,onSelect:n,...i}=e,[,{value:c},{setValue:d}]=(0,s.Mt)(t);return(0,l.jsx)(k,{name:t,label:r,required:a,children:(0,l.jsx)(o.A,{id:t,ariaLabel:r,value:c,onChange:e=>{d(e),n&&n(e)},showReset:!1,highlightActive:!1,...i})})},B=e=>{let{name:t,label:r,options:n,placeHolder:i,required:o,...c}=e,[,{value:d},{setValue:u}]=(0,s.Mt)(t),[m,g]=(0,a.useState)([]);return(0,a.useEffect)(()=>{g(n.map(e=>({...e,selected:d.includes(e.value)})))},[n,d]),(0,l.jsx)(k,{name:t,label:r,required:o,children:(0,l.jsx)(f,{options:m,placeholderText:i||"Select",onChange:e=>{let t=m.map(t=>t.value===e.value?{...t,selected:!t.selected}:t);g(t),u(t.filter(e=>e.selected).map(e=>e.value))},...c})})},S=e=>{let{name:t,label:r,options:a,required:i}=e,[o,c,d]=(0,s.Mt)(t);return(0,l.jsxs)(k,{name:t,label:r,required:i,children:[(0,l.jsx)(n.z6,{value:c.value,onChange:d.setValue,className:"mt-2 flex gap-3",children:a.map(e=>(0,l.jsx)(n.z6.Option,{value:e.value,className:(0,x.cx)("flex items-center justify-center rounded-md bg-white px-3 py-3 text-sm font-semibold ring-1 hover:bg-gray-50 focus:ring-2 outline-none cursor-pointer sm:flex-1",{"text-gray-900 ring-gray-300 focus:ring-indigo":c.value!==e.value},{"text-indigo ring-indigo focus:ring-indigo":c.value===e.value}),children:e.label},e.value))}),(0,l.jsxs)("div",{className:"mt-3 flex justify-between text-sm font-medium leading-tight text-gray-600",children:[(0,l.jsx)("div",{children:"Not at all likely"}),(0,l.jsx)("div",{children:"Extremely likely"})]})]})}}}]); 2//# sourceMappingURL=1240-445346f074acde02.js.map
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.