PageSourceSearch

https://www.customfleet.com.au/_next/static/chunks/3558.e90c4e5ec811578d.js

js customfleet.com.au collected 2026-10-02 14:47:50 UTC 3,135 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3558],{63558:(e,s,r)=>{r.r(s),r.d(s,{default:()=>n});var a=r(95155);r(12115);var l=r(99003);let n=({data:e,register:s,control:r,errors:n})=>{let{fieldName:t="",text:i="",required:c,requiredText:o,optionsCollection:m={items:[]},optionsType:u,type:d="Dropdown",width:p}=e,h="100%"===p||"50%"===p&&m?.items?.length===2,x=m?.items?.find(e=>e?.selected),j=(0,l.FH)({control:r,name:t}),F=void 0!==j&&""!==j||x?.value!==void 0&&x?.value!=="",v=s(t,{required:!!c&&(o||`${i} is required`),valueAsNumber:"number"===u});return(0,a.jsx)(a.Fragment,{children:(()=>{switch(d){case"Dropdown":return(0,a.jsxs)("label",{htmlFor:t,className:`${F?"Input-select Input-element--hasValue":""}`,children:[(0,a.jsx)("span",{className:"Input-label",children:F&&(0,a.jsxs)(a.Fragment,{children:[i,c&&(0,a.jsx)("span",{className:"required",children:"*"})]})}),(0,a.jsx)("div",{className:"Input-selectbox-arrow",children:(0,a.jsxs)("select",{...v,"aria-invalid":n[t]?"true":"false",className:`Input-element Input-selectbox ${F?"Input-selectbox--hasValue":""}`,defaultValue:x?.value||"",children:[(0,a.jsxs)("option",{value:"",children:[i," ",c?"*":""]}),m?.items?.map((e,s)=>(0,a.jsx)("option",{value:e?.value||"",children:e?.text||""},s))]})}),n[t]&&(0,a.jsx)("span",{className:"Form-errors",children:n[t]?.message?.toString()})]});case"Radio Buttons":return(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{htmlFor:t,className:"Form-radioButtonsTitleLabel",children:[i,c?"*":""]}),(0,a.jsx)("div",{className:h?"Form-inputGroup-row":"Form-inputGroup-column",children:m?.items?.map((e,s)=>(0,a.jsx)("div",{className:"Form-inputGroup",children:(0,a.jsx)("div",{className:"Form-inputGroupOptions",children:(0,a.jsxs)("label",{htmlFor:`${t}-${e?.value||""}`,children:[(0,a.jsxs)("span",{className:"Form-controlsContainer",children:[(0,a.jsx)("input",{type:"radio",value:e?.value||"",defaultChecked:e?.selected||!1,...v,id:`${t}-${e?.value||""}`,className:`${n[t]?"Form-input--error":""}`},s),(0,a.jsx)("span",{className:"Form-radioButton"})]}),(0,a.jsx)("span",{className:"Form-radioButtonText",children:e?.text||""})]})})},s))}),n[t]&&(0,a.jsx)("span",{className:"Form-errors",children:n[t]?.message?.toString()})]});case"Checkboxes":return(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{htmlFor:t,className:"Form-checkboxTitleLabel",children:[i,c?"*":""]}),(0,a.jsx)("div",{className:h?"Form-inputGroup-row":"Form-inputGroup-column",children:m?.items?.map((e,s)=>(0,a.jsx)("div",{className:"Form-inputGroup",children:(0,a.jsx)("div",{className:"Form-inputGroupOptions",children:(0,a.jsxs)("label",{htmlFor:`${t}-${s}`,children:[(0,a.jsxs)("span",{className:"Form-controlsContainer",children:[(0,a.jsx)("input",{type:"checkbox",value:e?.value||"",defaultChecked:e?.selected||!1,id:`${t}-${s}`,...v,className:`${n[t]?"Form-input--error":""}`},s),(0,a.jsx)("span",{className:"Form-checkbox"})]}),(0,a.jsx)("span",{className:"Form-checkboxText",children:e?.text||""})]})})},s))}),n[t]&&(0,a.jsx)("span",{className:"Form-errors",children:n[t]?.message?.toString()})]});default:return null}})()})}}}]);

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.