1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9347],{30674:function(e,t,l){var r=l(85893),a=l(75887),s=l(63043),n=l(67294);t.Z=e=>{let{subFields:t,register:l,control:c,errors:i}=e,o=[];Object.keys(t).map(e=>{let l=t[e];return o.push(l),o});let d=e=>(e["#required"]&&(e.rules={required:!0}),e["#options"].required="- Select -",e);return(0,r.jsx)("div",{className:"col-span-2 grid grid-cols-2 gap-x-5",children:o.map(e=>("select"===e["#type"]&&d(e),(0,r.jsxs)(n.Fragment,{children:["textfield"===e["#type"]&&(0,r.jsx)(a.Z,{name:e["#webform_composite_key"],label:e["#title"],type:e["#type"],placeholder:e["#placeholder"],required:e["#required"],register:l,errors:i},e["#webform_composite_key"]),"select"===e["#type"]&&(0,r.jsx)(s.Z,{name:e["#webform_composite_key"],label:e["#title"],required:e["#required"],control:c,errors:i,rules:e.rules,options:Object.keys(e["#options"]).map(t=>({value:t,label:e["#options"][t]}))},e["#webform_composite_key"])]},e["#webform_composite_key"])))})}},70487:function(e,t,l){var r=l(85893),a=l(67294),s=l(28575);let n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"")};t.Z=e=>{let{name:t,label:l,required:c=!1,register:i,errors:o={},formDomId:d}=e,u=n(l||t||"checkbox"),m=(0,a.useId)(),x="".concat(d?d+"-":"").concat(m,"-").concat(t);return(0,r.jsxs)("div",{className:(0,s.Z)("checkbox-wrapper","checkbox-id-".concat(u)),children:[(0,r.jsx)("input",{id:x,name:t,type:"checkbox",className:"h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500","aria-describedby":"".concat(u,"-description"),..."function"==typeof i?i(t,{required:!1}):{}}),l&&(0,r.jsxs)("label",{htmlFor:x,className:"ml-3 text-sm font-medium text-gray-700",children:[l,c&&(0,r.jsx)("span",{className:"ml-1 text-red-500",children:"*"})]}),o&&o[t]&&(0,r.jsx)("p",{className:"mt-1 italic text-red-500",children:"This field is required."})]})}},75990:function(e,t,l){var r=l(85893);let a=e=>e.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"");t.Z=e=>{let{name:t,label:l,type:s,placeholder:n,hidden:c,required:i,control:o,register:d,errors:u,rules:m,children:x,subFields:h,value:p,options:b,formDomId:f}=e,g=a(l);return(0,r.jsx)("fieldset",{className:"checkboxes-field checkboxes-id-".concat(g),children:Array.isArray(b)&&b.length>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("legend",{className:"mb-2 block w-full font-medium text-gray-700",children:[l,i&&(0,r.jsx)("span",{className:"ml-1 text-red-500",children:"*"})]}),null==b?void 0:b.map(e=>{let a="".concat(t,"-").concat(e.value);return(0,r.jsxs)("label",{className:"relative mb-2 flex items-start last:mb-0 cursor-pointer",children:[(0,r.jsx)("div",{className:"flex h-5 items-center",children:(0,r.jsx)("input",{id:a,value:e.value,"aria-describedby":"".concat(l,"-description"),name:"".concat(t,"[").concat(e.value,"]"),type:"checkbox",className:"h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500",...d("".concat(t,"[").concat(e.value,"]"),{})})}),(0,r.jsx)("div",{className:"ml-3 text-sm",children:(0,r.jsxs)("span",{className:"font-medium text-gray-700 pad-left-8",onClick:l=>{let r=f&&document.getElementById(f)||l.currentTarget.closest("form"),a=l.currentTarget.closest("label"),s=a?a.querySelector('input[type="checkbox"]'):null;!s&&r&&(s=r.querySelector('input[type="checkbox"][name="'.concat(t,"[").concat(e.value,']"]'))),s&&s.click()},children:[e.label," ",i&&(0,r.jsx)("span",{className:"ml-1 text-red-500",children:"*"})]})})]},e.value)}),u&&u[t]&&(0,r.jsx)("p",{className:"mt-1 italic text-red-500",children:"This field is required"})]}):(0,r.jsxs)(r.Fragment,{children:[(()=>{let e="".concat(t,"-single");return(0,r.jsxs)("label",{className:"relative mb-2 flex items-start last:mb-0 cursor-pointer",children:[(0,r.jsx)("div",{className:"flex h-5 items-center",children:(0,r.jsx)("input",{id:e,value:"1","aria-describedby":"".concat(l,"-description"),name:t,type:"checkbox",className:"h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500",...d(t,{required:i})})}),(0,r.jsx)("div",{className:"ml-3 text-sm",children:(0,r.jsxs)("span",{className:"font-medium text-gray-700 pad-left-8",onClick:e=>{let l=f&&document.getElementById(f)||e.currentTarget.closest("form"),r=e.currentTarget.closest("label"),a=r?r.querySelector('input[type="checkbox"]'):null;!a&&l&&(a=l.querySelector('input[type="checkbox"][name="'.concat(t,'"]'))),a&&a.click()},children:[l," ",i&&(0,r.jsx)("span",{className:"ml-1 text-red-500",children:"*"})]})})]})})(),u&&u[t]&&(0,r.jsx)("p",{className:"mt-1 italic text-red-500",children:"This field is required"})]})})}},94769:function(e,t,l){var r=l(85893);t.Z=e=>{let{name:t,label:l,placeholder:a,required:s,register:n,className:c,onClick:i,errors:o,group:d}=e;return(0,r.jsxs)("div",{className:c,children:[l&&(0,r.jsxs)("label",{htmlFor:t,className:d?"mb-2 block":"mb-2 block font-semibold",children:[l,s&&(0,r.jsx)("span",{className:"ml-1 text-red-500",children:"*"})]}),(0,r.jsx)("input",{type:"date",name:t,id:t,placeholder:a,onClick:i,className:"block h-14 w-full border-none px-2 shadow-none focus:border-blue focus:ring-blue",...n(t,{required:s})}),o&&o[t]&&(0,r.jsx)("p",{className:"mt-1 italic text-red-500",children:"This field is required"})]})}},61042:function(e,t,l){var r=l(85893);t.Z=e=>{let{name:t,label:l,placeholder:a,required:s,register:n,className:c,onClick:i,errors:o,group:d,min:u,max:m,step:x,defaultValue:h,timeMin:p,timeMax:b}=e,f=e=>{if(!e)return null;let[t,l="0",r="0"]=String(e).split(":"),a=Number(t),s=Number(l),n=Number(r);return Number.isNaN(a)||Number.isNaN(s)||Number.isNaN(n)?null:3600*a+60*s+n},g=(e,t,l)=>{if(!e)return e;try{let[r,a]=e.split("T");if(!a)return e;let[s,n="00",c="00"]=a.split(":"),i=f("".concat(s,":").concat(n,":").concat(c||"00")),o=f(t),d=f(l);if(null!=o&&i<o){let e=String(Math.floor(o/3600)).padStart(2,"0"),t=String(Math.floor(o%3600/60)).padStart(2,"0"),l=String(o%60).padStart(2,"0");
1return"".concat(r,"T").concat(e,":").concat(t).concat(c?":".concat(l):"")}if(null!=d&&i>d){let e=String(Math.floor(d/3600)).padStart(2,"0"),t=String(Math.floor(d%3600/60)).padStart(2,"0"),l=String(d%60).padStart(2,"0");return"".concat(r,"T").concat(e,":").concat(t).concat(c?":".concat(l):"")}return e}catch(t){return e}};return(0,r.jsxs)("div",{className:"form-item form-item-datetime form-type-datetime form-item-".concat(t," ").concat(c||""),children:[l&&(0,r.jsxs)("label",{htmlFor:t,className:d?"mb-2 block":"mb-2 block font-semibold",children:[l,s&&(0,r.jsx)("span",{className:"ml-1 text-red-500",children:"*"})]}),(0,r.jsx)("input",{type:"datetime-local",name:t,id:t,placeholder:a,onClick:i,className:"block h-14 w-full border-none px-2 shadow-none focus:border-blue focus:ring-blue",min:u,max:m,step:x,defaultValue:h,..."function"==typeof n?n(t,{required:!!s}):{},onChange:e=>{let l=g(e.target.value,p,b);if(l!==e.target.value&&(e.target.value=l),"function"==typeof n){let l=n(t,{required:!!s});l&&"function"==typeof l.onChange&&l.onChange(e)}}}),o&&o[t]&&(0,r.jsx)("p",{className:"mt-1 italic text-red-500",children:"This field is required"})]})}},28999:function(e,t,l){var r=l(85893);t.Z=e=>{let{name:t,value:l}=e;return(0,r.jsx)("div",{className:"html-element-".concat(t),dangerouslySetInnerHTML:{__html:l}})}},37242:function(e,t,l){var r=l(85893),a=l(67294);t.Z=e=>{let{name:t,label:l,register:s,options:n,required:c,errors:i,value:o}=e,[d,u]=(0,a.useState)(o||"");return(0,r.jsx)("div",{children:(0,r.jsxs)("fieldset",{className:"mt-4 type-radios fieldset-name-".concat(l.replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase()),children:[(0,r.jsxs)("legend",{children:[l,c&&(0,r.jsx)("span",{className:"ml-1 text-red-500",children:"*"})]}),(0,r.jsxs)("div",{className:"flex",children:[n.map(e=>(0,r.jsxs)("div",{className:"radio-item flex items-center ".concat(d===e.value?"selected":""),onClick:t=>{if(t.target.closest("input[type='radio']"))return;let l=t.currentTarget.querySelector("input[type='radio']");l&&(l.checked=!0,u(e.value),l.dispatchEvent(new Event("input",{bubbles:!0})),l.dispatchEvent(new Event("change",{bubbles:!0})))},onKeyDown:t=>{if(" "===t.key||"Enter"===t.key){t.preventDefault();let l=t.currentTarget.querySelector("input[type='radio']");l&&(l.checked=!0,u(e.value),l.dispatchEvent(new Event("input",{bubbles:!0})),l.dispatchEvent(new Event("change",{bubbles:!0})))}},tabIndex:0,role:"radio","aria-checked":d===e.value,children:[(0,r.jsx)("input",{id:"".concat(t,"-").concat(e.value),value:e.value,name:t,type:"radio",className:"h-4 w-4 border-gray-300 text-indigo-600 focus:ring-indigo-500",checked:d===e.value,...s(t,{required:c}),onChange:()=>u(e.value)}),(0,r.jsx)("label",{htmlFor:"".concat(t,"-").concat(e.value),className:"ml-3 block text-sm font-medium text-gray-700",children:e.label})]},e.value)),i&&i[t]&&(0,r.jsx)("p",{className:"mt-1 italic text-red-500",children:"This field is required"})]})]})})}},63043:function(e,t,l){var r=l(85893),a=l(22463),s=l(19804),n=l(89121),c=l(67294),i=l(87536);function o(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l];return t.filter(Boolean).join(" ")}t.Z=e=>{let{name:t,label:l,options:d,required:u,errors:m}=e,{field:{value:x="",onChange:h}}=(0,i.bc)(e);Array.isArray(d)&&d[0].values&&(d=d.map(e=>e.values));let p=d.find(e=>"required"===e.value);return p&&(p.disabled=!0,d=[p,...d.filter(e=>e!==p)]),(0,r.jsx)("div",{children:(0,r.jsx)(s.R,{value:x,onChange:h,id:t,name:t,children:e=>{let{open:i}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(s.R.Label,{className:"mb-2 block font-medium text-gray-700",children:[l,u&&(0,r.jsx)("span",{className:"ml-1 text-red-500",children:"*"})]}),(0,r.jsxs)("div",{className:"relative mt-1",children:[(0,r.jsxs)(s.R.Button,{className:"relative h-10 w-full cursor-default rounded border border-gray-300 bg-white py-2 pl-3 pr-10 text-left shadow-sm focus:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500 sm:text-sm",children:[(0,r.jsx)("span",{className:"block truncate",children:x?x.label:d[0].label}),(0,r.jsx)("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2",children:(0,r.jsx)(a.RiI,{className:"h-4 w-4 text-gray-400","aria-hidden":"true"})})]}),m&&m[t]&&(0,r.jsx)("p",{className:"mt-1 italic text-red-500",children:"This field is required"}),(0,r.jsx)(n.u,{show:i,as:c.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,r.jsx)(s.R.Options,{className:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm",children:d.map(e=>(0,r.jsx)(s.R.Option,{className:e=>{let{active:t}=e;return o(t?"bg-primary text-white":"text-gray-900","relative cursor-default select-none py-2 pl-3 pr-9")},value:e,disabled:e.disabled,children:t=>{let{selected:l,active:s}=t;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:o((null==x?void 0:x.value)==e.value?"font-semibold":"font-normal","block truncate"),children:e.label}),(null==x?void 0:x.value)==e.value?(0,r.jsx)("span",{className:o(s?"text-white":"text-primary","absolute inset-y-0 right-0 flex items-center pr-4"),children:(0,r.jsx)(a.l_A,{className:"h-4 w-4","aria-hidden":"true"})}):null]})}},e.label))})})]})]})}})})}},59844:function(e,t,l){var r=l(85893);t.Z=e=>{let{name:t,label:l,placeholder:a,required:s,register:n,errors:c,value:i,description:o}=e;return(0,r.jsxs)("div",{className:"field field--".concat(t||"unnamed"," col-span-2 textarea"),
1children:[(0,r.jsxs)("label",{htmlFor:t,className:"block text-sm font-medium text-gray-700",children:[l,s&&(0,r.jsx)("span",{className:"ml-1 text-red-500 suffix-asterisk",children:"*"})]}),o&&(0,r.jsx)("div",{className:"field-description",dangerouslySetInnerHTML:{__html:o}}),(0,r.jsx)("textarea",{id:t,name:t,rows:5,placeholder:a,className:"block w-full rounded-md border border-gray-300 px-2 shadow-sm focus:border-indigo-500 focus:ring-indigo-500",defaultValue:null!=i?i:"",...n(t,{required:s})}),c&&c[t]&&(0,r.jsx)("p",{className:"mt-1 italic text-red-500",children:"This field is required"})]})}},75887:function(e,t,l){var r=l(85893);t.Z=e=>{let{name:t,label:l,type:a,placeholder:s,required:n,register:c,errors:i,hidden:o,value:d}=e;return a=(o=void 0!=o)?"hidden":a,(0,r.jsxs)("div",{style:{display:o?"none":""},className:"field-".concat(t," field-type-").concat(a," field--").concat(t),children:[(0,r.jsxs)("label",{htmlFor:t,className:"mb-2 block font-medium text-gray-700",children:[l,n&&(0,r.jsx)("span",{className:"ml-1 text-red-500 suffix-asterisk",children:"*"})]}),(0,r.jsx)("input",{type:a||"text",name:t,id:t,placeholder:s,className:"block h-10 w-full rounded border border-gray-300 px-2 focus:border-blue-500 focus:ring-blue-500",...c(t,{required:n}),hidden:!!o||void 0,defaultValue:null!=d?d:""}),i&&i[t]&&(0,r.jsx)("p",{className:"mt-1 italic text-red-500",children:"This field is required"})]})}}}]);
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.