1"use strict";(self.webpackChunkwebstores_starter_kit=self.webpackChunkwebstores_starter_kit||[]).push([[531],{64656:function(e,t,l){l.r(t),l.d(t,{default:function(){return c}});var a=l(96540),n=l(13152);function c(e){let{maintenances:t,licensePlate:l,plannerUrl:c}=e;const[s,i]=(0,a.useState)([]),[r,m]=(0,a.useState)(null);return(0,a.useEffect)(()=>{if(t)if(i(t),l){const e=t.find(e=>e.vehicle.licensePlate.replaceAll("-","")===l);m(e)}else m(t[0])},[t]),a.createElement(a.Fragment,null,a.createElement("div",{className:"row gutters-1 mb-3"},!l&&s.map((e,t)=>a.createElement("div",{key:t,className:"col-12 ".concat(s.length>1?"col-xl-6":"")},a.createElement("div",{className:"custom-radio custom-radio--expanded"},a.createElement("input",{name:"licensePlate",className:"custom-radio-input",id:e.vehicle.licensePlate,type:"radio",checked:!!r&&r.vehicle.licensePlate===e.vehicle.licensePlate,onChange:()=>(e=>{m(e)})(e)}),a.createElement("label",{htmlFor:e.vehicle.licensePlate,className:"custom-radio-label d-flex flex-row justify-content-between align-items-center"},a.createElement("span",{className:"license-plate"},e.vehicle.licensePlate)))))),r?a.createElement("ul",{className:"list list--bordered mb-2"},r.maintenances.map((e,t)=>a.createElement("li",{key:t,className:"list__item"},a.createElement("span",null,e.name)))):null,a.createElement(n.A,{className:"btn btn-primary btn-block-sm",element:"button",linkTitle:"Plan je onderhoud",onClick:()=>{(()=>{const e=new URL(c);e.searchParams.append("licensePlate",r.vehicle.licensePlate),location.href=e.toString()})()}}))}}}]);
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.