1"use strict";(self.webpackChunkreactive_ditto=self.webpackChunkreactive_ditto||[]).push([[3264],{3264:function(e,o,a){a.r(o),a.d(o,{default:function(){return m}});var t=a(4848),i=a(9785),r=a(7767),n={PickUpFormHome:"PickUpFormHome-module__PickUpFormHome___mNZR5",PickUpFormHomeGroup:"PickUpFormHome-module__PickUpFormHomeGroup___nT8f8",PickUpFormHomeForm:"PickUpFormHome-module__PickUpFormHomeForm___WvTke",PickUpFormHomeGroupRadioButtons:"PickUpFormHome-module__PickUpFormHomeGroupRadioButtons___Zdf5P",PickUpFormHomeGroupLabel:"PickUpFormHome-module__PickUpFormHomeGroupLabel___Se3J2",PickUpFormHomeButton:"PickUpFormHome-module__PickUpFormHomeButton___BwJC4"},s=a(5877);const u=[{label:"Persona Natural",value:"natural"},{label:"Persona JurÃdica",value:"juridica"},{label:"Agencia TCC",value:"agencia"}];var m=function({theme:e="light"}){const o=(0,r.Zp)(),{register:a,handleSubmit:m,watch:l}=(0,i.mN)(),c=l("userType");return(0,t.jsx)("div",{className:`${n.PickUpFormHome} ${"dark"===e?n.PickUpFormHomeDark:n.PickUpFormHomeLight}`,children:(0,t.jsxs)("form",{className:n.PickUpFormHomeForm,onSubmit:m((e=>{const a=new URLSearchParams({userType:e.userType});o(`/solicitar-recogida?${a.toString()}`)})),children:[(0,t.jsx)("div",{className:n.PickUpFormHomeGroup,children:(0,t.jsxs)("div",{className:n.PickUpFormHomeGroupRadioButtons,children:[(0,t.jsx)("p",{className:n.PickUpFormHomeGroupLabel,children:"Selecciona el tipo de usuario"}),(0,t.jsx)(s.A,Object.assign({options:u,theme:e},a("userType"),{name:"userType"}))]})}),(0,t.jsx)("button",{className:n.PickUpFormHomeButton,type:"submit",disabled:!c,children:(0,t.jsx)("span",{children:"Continuar"})})]})})}},5877:function(e,o,a){a.d(o,{A:function(){return s}});var t=a(4848),i=a(6540),r={RadioButtons:"RadioButtons-module__RadioButtons___yY9SI",RadioButtons__Label:"RadioButtons-module__RadioButtons__Label___vIR6H",RadioButtonsLabel:"RadioButtons-module__RadioButtonsLabel___xsbFN",RadioButtonsInput:"RadioButtons-module__RadioButtonsInput____REMp",row:"RadioButtons-module__row___RqtCK",column:"RadioButtons-module__column___WvF0X"};const n=(0,i.forwardRef)(((e,o)=>{var{options:a,theme:i="light",direction:n="row",name:s,value:u,defaultValue:m,className:l,label:c}=e,d=function(e,o){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(a[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(t=Object.getOwnPropertySymbols(e);i<t.length;i++)o.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(e,t[i])&&(a[t[i]]=e[t[i]])}return a}(e,["options","theme","direction","name","value","defaultValue","className","label"]);return(0,t.jsxs)("div",{className:`${r.RadioButtons} ${r[n]} ${l||""}`,"data-theme":i,children:[c&&(0,t.jsx)("h4",{className:r.RadioButtons__Label,children:c}),a.map((e=>{const a=void 0!==u?u===e.value:void 0,i=void 0!==m?m===e.value:void 0;return(0,t.jsxs)("label",{className:r.RadioButtonsLabel,children:[(0,t.jsx)("input",Object.assign({},d,{type:"radio",name:s,value:e.value,checked:a,defaultChecked:i,ref:o,className:r.RadioButtonsInput,disabled:e.disabled})),(0,t.jsx)("span",{className:r.RadioButtonsText,children:e.label})]},e.value)}))]})}));n.displayName="RadioButtons";var s=n}}]);
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.