1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[515],{9515:function(e,d,i){i.r(d);var l=i(26042),r=i(69396),o=i(85893),a=i(65225),n=i(14685),u=i(87536),s=i(18921);d.default=function(){var e,d,i,t,v,c,m,b,p,f,y,h,Z,g,x=(0,s.X9)().data,j=(0,u.cI)({defaultValues:{title:x||(null===x||void 0===x?void 0:x.title)?null===x||void 0===x?void 0:x.title:"",name:x||(null===x||void 0===x||null===(e=x.card)||void 0===e?void 0:e.name)?null===x||void 0===x||null===(d=x.card)||void 0===d?void 0:d.name:"",country:x||(null===x||void 0===x||null===(i=x.card)||void 0===i?void 0:i.address_country)?null===x||void 0===x||null===(t=x.card)||void 0===t?void 0:t.address_country:"",type:x||(null===x||void 0===x?void 0:x.type)?null===x||void 0===x?void 0:x.type:"",number:x||(null===x||void 0===x||null===(v=x.card)||void 0===v?void 0:v.number)?null===x||void 0===x||null===(c=x.card)||void 0===c?void 0:c.number:"",zip:x||(null===x||void 0===x||null===(m=x.card)||void 0===m?void 0:m.address_zip)?null===x||void 0===x||null===(b=x.card)||void 0===b?void 0:b.address_zip:"",default:x||(null===x||void 0===x?void 0:x.default)?null===x||void 0===x?void 0:x.default:""}}),q=j.register,N=j.handleSubmit,_=j.formState.errors;return(0,o.jsx)("div",{className:"w-full md:w-[508px] mx-auto p-5 sm:p-8 bg-white rounded-xl",children:(0,o.jsxs)("form",{onSubmit:N((function(e){console.log(e,"Add Payment")})),noValidate:!0,children:[(0,o.jsx)("div",{className:"mb-6",children:(0,o.jsx)(a.Z,(0,r.Z)((0,l.Z)({variant:"solid",label:"Title"},q("title",{required:"Title Required"})),{error:null===(p=_.title)||void 0===p?void 0:p.message}))}),(0,o.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 mb-6 gap-7",children:[(0,o.jsx)(a.Z,(0,r.Z)((0,l.Z)({variant:"solid",label:"Name"},q("name",{required:"Name Required"})),{error:null===(f=_.country)||void 0===f?void 0:f.message})),(0,o.jsx)(a.Z,(0,r.Z)((0,l.Z)({variant:"solid",label:"Country"},q("country",{required:"City Required"})),{error:null===(y=_.country)||void 0===y?void 0:y.message})),(0,o.jsx)(a.Z,(0,r.Z)((0,l.Z)({variant:"solid",label:"Type"},q("type",{required:"type Required"})),{error:null===(h=_.type)||void 0===h?void 0:h.message})),(0,o.jsx)(a.Z,(0,r.Z)((0,l.Z)({variant:"solid",label:"Card Number"},q("number",{required:"type Required"})),{error:null===(Z=_.number)||void 0===Z?void 0:Z.message})),(0,o.jsx)(a.Z,(0,r.Z)((0,l.Z)({variant:"solid",label:"ZIP"},q("zip",{required:"ZIP Required"})),{error:null===(g=_.zip)||void 0===g?void 0:g.message}))]}),(0,o.jsxs)("div",{className:"mb-6",children:[(0,o.jsx)("input",(0,l.Z)({id:"default-type",type:"checkbox",className:"form-checkbox w-5 h-5 border border-gray-300 rounded cursor-pointer transition duration-500 ease-in-out focus:ring-offset-0 hover:border-heading focus:outline-none focus:ring-0 focus-visible:outline-none checked:bg-heading"},q("default",{required:"Default type Required"}))),(0,o.jsx)("label",{htmlFor:"default-type",className:"align-middle ms-3",children:"Set Default Payment"})]}),(0,o.jsx)(n.Z,{className:"h-11 md:h-12 w-full mt-1.5",type:"submit",children:"Save Payment"})]})})}}}]);
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.