1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5985],{11372:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var l,a=r(21462);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)({}).hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e}).apply(null,arguments)}let s=function(e){return a.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),l||(l=a.createElement("path",{fill:"#303030",fillRule:"evenodd",d:"m19.293 7.293 1.414 1.414L12 17.414 3.293 8.707l1.414-1.414L12 14.586z",clipRule:"evenodd"})))}},15331:(e,t,r)=>{"use strict";r.d(t,{l:()=>d});var l=r(23798),a=r(14590),n=r(16975),s=r(48307),o=r(21462),i=r(24346);r(36070);var u=r(532);(0,i.E)("ptBR",n.A);let c=(0,o.forwardRef)(function(e,t){let{className:r,LeftIcon:n,leftIconClassName:s,placeholder:o,suffix:i,disabled:u,...c}=e;return(0,l.jsx)("div",{className:(0,a.cn)("relative flex w-full flex-col",r),children:(0,l.jsxs)("div",{className:(0,a.cn)("relative flex items-center rounded-md border border-gray-500","focus-within:border-transparent focus-within:bg-gray-200",{"opacity-50":u},r),children:[n&&(0,l.jsx)(n,{className:(0,a.cn)(s,"absolute left-3 h-4 w-4")}),(0,l.jsx)("input",{...c,ref:t,readOnly:!0,disabled:u,placeholder:o,className:(0,a.cn)("peer h-12 w-full rounded-md bg-white pl-4 pr-4 pt-4 placeholder-transparent","focus-visible:outline-2 focus-visible:outline-primary-600",{"pl-10":n,"cursor-not-allowed":u})}),(0,l.jsx)("label",{className:(0,a.cn)("pointer-events-none absolute left-4 top-1 mb-1 text-xs font-bold text-gray-900 duration-300","peer-placeholder-shown:top-3 peer-placeholder-shown:text-base peer-placeholder-shown:font-light peer-placeholder-shown:text-gray-700","peer-focus:top-1 peer-focus:text-xs peer-focus:font-bold peer-focus:text-gray-900",{"left-10":n}),children:o}),i&&(0,l.jsx)("div",{className:"ml-[-2rem]",children:i})]})})});function d(e){var t;let{name:r,trigger:n,disabled:o,placeholder:d,allowedDates:p,minDate:f,maxDate:m,className:h,dateFormat:x,includeDateIntervals:b,containerClassName:g,isClearable:v,selectRange:N,suffix:y,LeftIcon:w,leftIconClassName:E,onCalendarClose:j,handleChange:O,popperPlacement:I="top",withPortal:_=!0,showMonthDropdown:A,showYearDropdown:C}=e,{field:{ref:D,value:L,onChange:R,...B},fieldState:{error:F}}=(0,u.as)({name:r}),[S,T]=Array.isArray(L)?L:[null,null];return(0,l.jsxs)("div",{className:(0,a.cn)({"mb-6":F},g),children:[(0,l.jsx)(i.Ay,{includeDateIntervals:b,minDate:null!=f?f:void 0,maxDate:null!=m?m:void 0,withPortal:_,locale:"ptBR",ref:n,selected:N&&""!==L?null:L,disabled:o,dateFormat:x||"dd/MM/yyyy",includeDates:p,placeholderText:d,isClearable:v,popperPlacement:I,showMonthDropdown:A,showYearDropdown:C,yearDropdownItemNumber:150,customInput:(0,l.jsx)(c,{className:(0,a.cn)(h,{"border-status-error focus-within:[&_input]:outline-status-error":F}),suffix:y,LeftIcon:w,leftIconClassName:E}),onChange:e=>{R(e),O&&O(e),n&&n.current.setOpen(!1)},selectsRange:N,startDate:S,endDate:T,onCalendarClose:j,...B}),F&&(0,l.jsxs)("div",{className:"absolute my-1 flex gap-2 text-xs font-bold text-status-error",children:[(0,l.jsx)(s.A,{className:"h-4 w-4 [&_*]:fill-status-error"}),(0,l.jsx)("span",{children:null==F||null==(t=F.message)?void 0:t.toString()})]})]})}},32607:(e,t,r)=>{"use strict";r.d(t,{Gn:()=>s,LP:()=>a,Ph:()=>n,R3:()=>i,os:()=>o,q3:()=>u});var l=r(38125),a=function(e){return e.SELLER="seller",e.BUYER="buyer",e.INVERSE="inverse",e.SELLER_FROM_OFFERS="sellerFromOffers",e.BUYER_FROM_OFFERS="buyerFromOffers",e.FACE_MATCH="faceMatch",e}({}),n=function(e){return e[e.CIF=1]="CIF",e[e.FOB=2]="FOB",e[e.NEGOTIABLE=3]="NEGOTIABLE",e}({}),s=function(e){return e[e.ON_LOADING=1]="ON_LOADING",e[e.ON_DELIVERY=2]="ON_DELIVERY",e[e.WITH_DEADLINE=3]="WITH_DEADLINE",e[e.NEGOTIABLE=4]="NEGOTIABLE",e[e.ON_WHEELS=5]="ON_WHEELS",e}({}),o=function(e){return e[e.HARD_BLOCK=1]="HARD_BLOCK",e[e.BLOCKED_PENDING_ROOM=2]="BLOCKED_PENDING_ROOM",e[e.BLOCKED_LIMIT_ROOM=3]="BLOCKED_LIMIT_ROOM",e}({});let i={[l.f.SOY]:"da",[l.f.CORN]:"do",[l.f.SORGHUM]:"do"};var u=function(e){return e.NEGOTIATE_WITH_SECURITY="negotiateWithSecurity",e.BOOST_OFFER="boostOffer",e.SECURITY_TIPS="securityTips",e}({})},33700:(e,t,r)=>{"use strict";r.d(t,{B:()=>o});var l=r(23798),a=r(48307),n=r(14590),s=r(532);function o(e){return t=>{var r,o,i;let{name:u,controllerClassName:c,...d}=t,{control:p,formState:f}=(0,s.xW)(),m=(0,s.Jt)(f.errors,u);return(0,l.jsxs)("div",{className:(0,n.cn)("flex w-full flex-col",c),children:[(0,l.jsx)(s.xI,{name:u,control:p,render:t=>{let{field:r}=t;return(0,l.jsx)(e,{...r,...d,error:m})}}),m&&(0,l.jsxs)("div",{className:"my-2 flex items-center gap-2 text-xs font-bold text-status-error",children:[(0,l.jsx)(a.A,{className:"h-4 w-4 shrink-0 [&_*]:fill-status-error"}),(null==m?void 0:m.root)?(0,l.jsx)("span",{children:null==m||null==(o=m.root)||null==(r=o.message)?void 0:r.toString()}):(0,l.jsx)("span",{children:null==m||null==(i=m.message)?void 0:i.toString()})]})]})}}},35483:(e,t,r)=>{"use strict";r.d(t,{JN:()=>s,WI:()=>o,Zc:()=>n,x1:()=>a});var l=r(32607);
1let a=[{id:l.Gn.ON_LOADING,label:"No carregamento",value:l.Gn.ON_LOADING},{id:l.Gn.ON_DELIVERY,label:"No recebimento",value:l.Gn.ON_DELIVERY},{id:l.Gn.WITH_DEADLINE,label:"A prazo",value:l.Gn.WITH_DEADLINE},{id:l.Gn.NEGOTIABLE,label:"A combinar",value:l.Gn.NEGOTIABLE}],n=[{id:l.Ph.CIF,label:"CIF",value:l.Ph.CIF},{id:l.Ph.FOB,label:"FOB",value:l.Ph.FOB},{id:l.Ph.NEGOTIABLE,label:"A combinar",value:l.Ph.NEGOTIABLE}];var s=function(e){return e.PENDING="PENDING",e.ACCEPTED="ACCEPTED",e.REJECTED="REJECTED",e.CANCELED="CANCELED",e}({});let o={PENDING:"Pendente",ACCEPTED:"Aceito",REJECTED:"Rejeitado",CANCELED:"Cancelado"}},36100:(e,t,r)=>{"use strict";r.d(t,{d:()=>a});var l=r(21462);let a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500,t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=(0,l.useRef)(t),a=(0,l.useRef)();return{debounce:(0,l.useCallback)(t=>{r.current?(r.current=!1,t()):(a.current&&clearTimeout(a.current),a.current=setTimeout(()=>t(),e))},[e])}}},38525:(e,t,r)=>{"use strict";r.d(t,{F:()=>f,l:()=>p});var l=r(23798),a=r(33700),n=r(14590),s=r(61707),o=r(63919),i=r(11372),u=r(21462);let c=(0,u.forwardRef)(function(e,t){let{name:r,value:a,error:c,options:d,setEvent:p,onChange:f,children:m,className:h,placeholder:x,defaultValue:b,buttonClassName:g,disabled:v=!1,readOnly:N=!1}=e,[y,w]=(0,u.useState)(()=>b||null);(0,u.useEffect)(()=>{void 0!==a&&w(null!=a?a:null)},[a]);let E=(0,u.useMemo)(()=>null==d?void 0:d.map(e=>(0,l.jsx)(s.WF.Option,{className:e=>{let{active:t}=e;return(0,n.cn)("cursor-pointer rounded-md px-4 py-2 text-sm empty:hidden",{"bg-gray-300":t})},value:e,disabled:e.disabled,children:e.label&&e.subLabel?(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsx)("span",{className:"text-gray-950",children:e.label}),(0,l.jsx)("span",{className:"text-web-caption text-gray-700",children:e.subLabel})]}):e.label},e.id)),[d]);return(0,l.jsx)("div",{className:(0,n.cn)("group flex select-none flex-col",h),children:(0,l.jsx)(s.WF,{ref:t,name:r,disabled:v,value:y,onChange:function(e){w(e),f&&f(e),p&&p(e)},children:e=>{let{open:t}=e;return(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsxs)(s.WF.Button,{className:(0,n.cn)("peer block h-[3.125rem] w-full truncate rounded-md border border-gray-500 bg-white pl-4 pr-7 text-left outline-2 outline-primary-600 focus:border-transparent focus:outline disabled:cursor-not-allowed",{"border-red-600 outline-red-600":c,"pt-4":!!x},{"border-gray-600 bg-gray-600 text-gray-600":v&&N},{"opacity-50":v},g,"data-[headlessui-state=open]:border-transparent data-[headlessui-state=open]:outline"),children:[null==y?void 0:y.label,!N&&(0,l.jsx)(i.A,{className:(0,n.cn)("absolute right-2 top-4 h-4 w-4",{"[&_*]:fill-gray-700":v}),"aria-hidden":"true"})]}),x&&(0,l.jsx)(s.WF.Label,{className:(0,n.cn)("pointer-events-none absolute left-4 top-1.5 mb-1 whitespace-nowrap font-bold text-gray-700 duration-300",(null==y?void 0:y.label)?"text-xs text-gray-900":"top-3 text-base font-light",{"opacity-50":v&&!N},{"opacity-40":v&&N}),children:x}),(0,l.jsx)(o.e,{show:t,enter:"transition duration-100 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-75 ease-out",leaveFrom:"transform scale-100 opacity-100",leaveTo:"transform scale-95 opacity-0",children:(0,l.jsx)("div",{className:"relative z-10",children:(0,l.jsx)(s.WF.Options,{className:"absolute z-10 mt-2 max-h-80 w-full overflow-auto rounded-md bg-white text-sm shadow-gd-light",children:E})})}),m]})}})})});function d(e){let{text:t,className:r,icon:a}=e;return(0,l.jsxs)("div",{className:(0,n.cn)("absolute -bottom-6 left-0 right-0 flex items-center gap-1 rounded-b-lg bg-secondary-50 p-1 pt-3 text-secondary-900 outline-2 outline-primary-600","group-focus-within:bg-primary-600 group-focus-within:text-white group-focus-within:outline group-focus-within:[&>div]:border-transparent","peer-data-[headlessui-state=open]:bg-primary-600 peer-data-[headlessui-state=open]:text-white peer-data-[headlessui-state=open]:outline peer-data-[headlessui-state=open]:[&>div]:border-transparent",r),children:[(0,l.jsx)("div",{className:"absolute -top-1 left-0 right-0 h-3 rounded-b-lg border-x border-b border-gray-500 bg-white"}),a&&(0,l.jsx)(a,{className:"h-3.5 w-3.5 shrink-0 [&_*]:fill-secondary-900 group-focus-within:[&_*]:fill-white"}),(0,l.jsx)("span",{className:"text-mobile-body-2 font-semibold",children:t})]})}let p=Object.assign(c,{Helper:d}),f=Object.assign((0,a.B)(c),{Helper:d})},43010:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/web-app/grain-club/pre-contracts",function(){return r(94723)}])},46912:(e,t,r)=>{"use strict";r.d(t,{g:()=>l});let l=(e,t)=>
1{let r=Number(e),{locales:l,...a}=null!=t?t:{};return new Intl.NumberFormat(null!=l?l:"pt-BR",{currencyDisplay:"narrowSymbol",...a}).format(r)}},48307:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var l,a=r(21462);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)({}).hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e}).apply(null,arguments)}let s=function(e){return a.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),l||(l=a.createElement("path",{fill:"#303030",fillRule:"evenodd",d:"M1 12c0 6.075 4.925 11 11 11s11-4.925 11-11S18.075 1 12 1 1 5.925 1 12m20 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0m-7.996 1.998h.999v2h-4v-2h1v-2h-1v-2h3zm-.003-6a1 1 0 1 1-2 0 1 1 0 0 1 2 0",clipRule:"evenodd"})))}},50547:(e,t,r)=>{"use strict";r.d(t,{Et:()=>l,R4:()=>n,gx:()=>a});let l=new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}),a=new Intl.NumberFormat("pt-BR",{style:"currency",currency:"USD"});function n(e,t){return new Intl.NumberFormat("pt-BR",{style:"currency",currency:t}).format("number"==typeof e?e:Number(e))}},54492:(e,t,r)=>{"use strict";r.d(t,{p:()=>m});var l=r(23798),a=r(48307),n=r(14590),s=r(84934),o=r(92435),i=r(21462),u=r(532),c=r(80789);function d(e){let{children:t,hasLeftIcon:r,hasRightIcon:a,...s}=e;return(0,l.jsx)("label",{className:(0,n.cn)("pointer-events-none absolute left-4 top-1 mb-1 text-left text-xs font-bold text-gray-900 duration-300 peer-placeholder-shown:top-3 peer-placeholder-shown:text-base peer-placeholder-shown:font-light peer-placeholder-shown:text-gray-700 peer-focus:top-1 peer-focus:text-xs peer-focus:font-bold peer-focus:text-gray-900",r&&"left-10",a&&"right-10"),...s,children:t})}let p=(0,o.F)("pointer-events-none absolute",{variants:{position:{left:"left-4",right:"right-4"}},defaultVariants:{position:"left"}}),f=(0,o.F)("absolute flex h-12 items-center justify-center",{variants:{position:{left:"left-4",right:"right-4"}},defaultVariants:{position:"right"}}),m={Field:function(e){let{children:t,className:r}=e;return(0,l.jsx)("div",{className:(0,n.cn)("group relative flex w-full flex-col",r),children:t})},Label:d,Entry:function(e){let{children:t,name:r,field:a,mask:o,pattern:p,placeholder:f,textarea:m,className:h,rounded:x,suffix:b,onBlur:g,control:v,...N}=e,y=a||r,w=!1,E=!1,{field:{ref:j,onChange:O,...I},formState:{errors:_}}=(0,u.as)({name:r,control:v}),A=(0,i.useCallback)(e=>{O({target:{value:e}})},[O]);t&&(Array.isArray(t)?t:[t]).map(e=>{let t=e.props.position;t&&"left"===t&&(w=!0),t&&"right"===t&&(E=!0)});let C=(0,i.useMemo)(()=>(0,c.X1)(e=>{let{inputRef:t,...r}=e;return(0,i.createElement)(m?"textarea":"input",{...r,ref:t})}),[m]);return(0,l.jsxs)("div",{className:(0,n.cn)("relative flex items-center rounded-md border focus-within:border-transparent focus-within:bg-gray-200 focus-within:ring-2",(0,s._)(_,y)?"border-status-error ring-status-error":"border-gray-500 ring-primary-600",N.disabled&&"opacity-50",x&&"rounded-full"),children:[o?(0,l.jsx)(C,{className:(0,n.cn)("peer w-full rounded-md bg-white placeholder-transparent outline-none disabled:cursor-not-allowed",m?"h-24 border-white py-3":"h-12",w?"pl-10":"pl-4",E?"pr-10":"pr-4",{[m?"border-t-[1.5rem] pt-0":"pt-4"]:f},x&&"rounded-full",h),mask:o,inputRef:j,placeholder:f,onAccept:A,...N,...I,value:I.value?String(I.value):"",onChange:()=>{},autoComplete:"off",onBlur:e=>{I.onBlur(),null==g||g(e)}}):m?(0,l.jsx)("textarea",{className:(0,n.cn)("peer h-24 w-full rounded-md border-white bg-white py-3 placeholder-transparent outline-none disabled:cursor-not-allowed",w?"pl-10":"pl-4",E?"pr-10":"pr-4",{"border-t-[1.5rem] pt-0":f},x&&"rounded-full",h),ref:j,placeholder:f,onChange:O,...N,...I,onBlur:e=>{I.onBlur(),null==g||g(e)}}):(0,l.jsx)("input",{className:(0,n.cn)("peer h-12 w-full rounded-md bg-white placeholder-transparent outline-none disabled:cursor-not-allowed",w?"pl-10":"pl-4",E?"pr-10":"pr-4",{"pt-4":f},x&&"rounded-full",h),ref:j,placeholder:f,onChange:O,...N,...I,autoComplete:"off",onBlur:e=>{I.onBlur(),null==g||g(e)}}),(0,l.jsx)(d,{hasLeftIcon:w,hasRightIcon:E,children:f}),t,b&&(0,l.jsx)("span",{className:"flex h-12 w-[3rem] flex-row items-center justify-start rounded-md bg-white pr-1 text-gray-600",children:b})]})},Icon:function(e){let{svg:t,position:r,className:a}=e;return(0,l.jsx)(t,{className:(0,n.cn)(p({position:r}),a)})},Button:function(e){let{children:t,position:r,...a}=e;return(0,l.jsx)("button",{type:"button",className:f({position:r}),...a,children:t})},Errors:function(e){var t;let{field:r}=e,{formState:{errors:n}}=(0,u.xW)(),o=(0,s._)(n,r);return(null==o?void 0:o.message)?(0,l.jsxs)("div",{className:"my-2 flex gap-2 text-xs font-bold text-status-error",children:[o&&(0,l.jsx)(a.A,{className:"h-4 w-4 [&_*]:fill-status-error"}),(0,l.jsx)("span",{children:null==o||null==(t=o.message)?void 0:t.toString()})]}):null},Alert:function(e){let{field:t,message:r}=e,{formState:{errors:n,touchedFields:o}}=(0,u.xW)(),i=(0,s._)(n,t),c=(0,s._)(o,t);return i||c?null:(0,l.jsxs)("div",{className:"my-2 flex gap-2 text-xs font-bold text-orange-500",children:[(0,l.jsx)(a.A,{className:"h-4 w-4 [&_*]:fill-orange-500"}),(0,l.jsx)("span",{children:r})]})},PermanentBigAlert:function(e){let{field:t,message:r}=e,{formState:{errors:n}}=(0,u.xW)();return(0,s._)(n,t)?null:(0,l.jsxs)("div",{className:"my-2 flex items-center gap-2 text-base font-bold text-orange-500",children:[(0,l.jsx)("div",{className:"h-6 w-6",children:(0,l.jsx)(a.A,{className:"[&_*]:fill-orange-500"})}),(0,l.jsx)("span",{children:r})]})},CharactersCounter:function(e){let{maxLength:t,fieldName:r}=e,{watch:a}=(0,u.xW)(),n=a(r);return(0,l.jsxs)("small",{className:"absolute right-0 top-full mt-2 text-[0.8rem] text-gray-700",children:[(null==n?void 0:n.length)||0,"/",t]})},Helper:function(e){let{text:t,className:r,icon:a}=e;return(0,l.jsxs)("div",{className:(0,n.cn)("absolute -bottom-6 left-0 right-0 flex items-center gap-1 rounded-b-lg bg-secondary-50 p-1 pt-3 text-secondary-900","group-focus-within:bg-primary-600 group-focus-within:text-white group-focus-within:ring-2 group-focus-within:ring-primary-600 group-focus-within:[&>div]:border-transparent",r),children:[(0,l.jsx)("div",{className:"absolute -top-1 left-0 right-0 h-3 rounded-b-lg border-x border-b border-gray-500 bg-white"}),a&&(0,l.jsx)(a,{className:"h-3.5 w-3.5 shrink-0 [&_*]:fill-secondary-900 group-focus-within:[&_*]:fill-white"}),(0,l.jsx)("span",{className:"text-mobile-body-2 font-semibold",children:t})]})}}},94723:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>D,default:()=>L});var l=r(23798),a=r(14278),n=r(81612),s=r(95689),o=r(35483),i=r(19855),u=r(52372),c=r(92121),d=r(15331),p=r(38525),f=r(54492),m=r(36100),h=r(28789),x=r(50547),b=r(46912),g=r(89509),v=r(62576),N=r(14948),y=r(21462),w=r(532),E=r(42488);let j=E.Ik({createdAt:E.p6().nullable().optional(),sellerName:E.Yj().optional(),buyerName:E.Yj().optional(),product:E.Ik({id:E.ai(),label:E.Yj(),value:E.ai()}).optional(),status:E.Ik({id:E.fc(o.JN),label:E.Yj(),value:E.fc(o.JN)}).optional()});function O(){var e,t,r;let[a,o]=(0,y.useState)(1),[h,x]=(0,y.useState)(10),[b,v]=(0,y.useState)(""),[E,O]=(0,y.useState)(""),A=(0,N.useRouter)(),{debounce:C}=(0,m.d)(),D=(0,w.mN)({resolver:(0,g.u)(j),defaultValues:{createdAt:null,sellerName:"",buyerName:"",product:"",status:""}}),{createdAt:L,sellerName:R,buyerName:B,product:F,status:S}=D.watch(),{data:T,isLoading:P}=(0,i.Kq)({page:a,limit:h,createdAt:null!=L?L:void 0,sellerName:E,buyerName:b,productId:null==F?void 0:F.value,status:null==S?void 0:S.value}),{data:G,isLoading:k}=(0,i.wz)(),M=null!=(e=null==G?void 0:G.map(e=>({id:e.productId,label:e.productName,value:e.productId})))?e:[];return(0,y.useEffect)(()=>{C(()=>v(null!=B?B:""))},[B,C]),(0,y.useEffect)(()=>{C(()=>O(null!=R?R:""))},[C,R]),(0,l.jsxs)("main",{className:"flex flex-col gap-6 p-4",children:[(0,l.jsx)(u.o,{label:"Clube do Gr\xe3o",backAction:()=>A.push("/web-app/clube-do-grao")}),(0,l.jsxs)(s.L,{form:D,children:[(0,l.jsx)(d.l,{name:"createdAt",placeholder:"Data",isClearable:!0,maxDate:new Date}),(0,l.jsx)(f.p.Field,{children:(0,l.jsx)(f.p.Entry,{name:"sellerName",placeholder:"Vendedor"})}),(0,l.jsx)(f.p.Field,{children:(0,l.jsx)(f.p.Entry,{name:"buyerName",placeholder:"Comprador"})}),(0,l.jsx)(p.F,{name:"product",options:M,placeholder:"Produto"}),(0,l.jsx)(p.F,{name:"status",options:_,placeholder:"Status"}),(0,l.jsx)(c.$,{type:"button",size:"sm",intent:"tertiary",onClick:()=>D.reset(),children:"Limpar"})]}),(0,l.jsx)(n.X,{columns:I,page:a,pageSize:h,pageSizeOptions:[10,20,30],setPage:o,setPageSize:x,tableData:null!=(t=null==T?void 0:T.data)?t:[],total:null!=(r=null==T?void 0:T.total)?r:0,isLoading:P||k})]})}let I=[{name:"Data",key:"createdAt",formatter:e=>(0,v.A)(new Date(e),"dd/MM/yyyy HH:mm")},{name:"Vendedor",key:"seller.name"},{name:"Comprador",key:"buyer.name"},{name:"Produto",key:"product.name"},{name:"Quantidade",key:"amount",formatter:e=>"".concat((0,b.g)(e)," sacas")},{name:"Pre\xe7o",key:"price",formatter:e=>(0,x.R4)(e,"BRL")},{name:"Status",key:"status",formatter:e=>o.WI[e]},{name:"Detalhes",key:"action",renderFunction:e=>(0,l.jsx)(c.$,{href:"/web-app/clube-do-grao/pre-contratos/".concat(e.id),size:"sm",leftIcon:h.A,intent:"primary"})}],_=Object.values(o.JN).map(e=>({id:e,label:o.WI[e],value:e}));var A=r(95975),C=r.n(A),D=!0;function L(){return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(C(),{children:[(0,l.jsx)("title",{children:"Gr\xe3o Direto | Pre\xe7os m\xe9dios, cota\xe7\xf5es, compra e venda de Milho, Soja, Sorgo e outros gr\xe3os!"}),(0,l.jsx)("link",{rel:"shortcut icon",type:"image/x-icon",href:"/assets/favicon.ico"})]}),(0,l.jsx)(O,{})]})}L.getLayout=a.M},95689:(e,t,r)=>{"use strict";r.d(t,{L:()=>n});var l=r(23798),a=r(532);function n(e){let{children:t,form:r}=e;return(0,l.jsx)(a.Op,{...r,children:(0,l.jsx)("form",{className:"flex items-center gap-2 [&>div]:flex-1",children:t})})}}},e=>{e.O(0,[4343,728,3792,2064,532,4690,4478,1100,9323,1299,4713,4350,2576,5943,3486,5309,1707,4057,5884,6452,1338,34,636,6593,8792],()=>e(e.s=43010)),_N_E=e.O()}]);
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.