PageSourceSearch

https://www.graodireto.com.br/_next/static/chunks/pages/web-app/cl…/[id]/clients/create-3392c43614b19c50.js

js graodireto.com.br collected 2026-10-01 13:02:07 UTC 37,053 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[423],{11372:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n,i=r(21462);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let o=function(e){return i.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n||(n=i.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"})))}},12862:(e,t,r)=>{"use strict";r.d(t,{n:()=>f});var n=r(21462),i=r(11940),s=r(67226),o=r(89379),l=r(13932);class a extends l.Q{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;let r=this.options;this.options=this.client.defaultMutationOptions(e),(0,i.f8)(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.currentMutation)||e.removeObserver(this)}}onMutationUpdate(e){this.updateResult();let t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let e=this.currentMutation?this.currentMutation.state:(0,s.$)(),t="loading"===e.status,r={...e,isLoading:t,isPending:t,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=r}notify(e){o.j.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var t,r,n,i,s,o,l,a;e.onSuccess?(null==(t=(r=this.mutateOptions).onSuccess)||t.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(n=(i=this.mutateOptions).onSettled)||n.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):e.onError&&(null==(s=(o=this.mutateOptions).onError)||s.call(o,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(l=(a=this.mutateOptions).onSettled)||l.call(a,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)})})}}var u=r(16095),c=r(69489),d=r(3228);function f(e,t,r){let s=(0,i.GR)(e,t,r),l=(0,c.jE)({context:s.context}),[f]=n.useState(()=>new a(l,s));n.useEffect(()=>{f.setOptions(s)},[f,s]);let p=(0,u.r)(n.useCallback(e=>f.subscribe(o.j.batchCalls(e)),[f]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),m=n.useCallback((e,t)=>{f.mutate(e,t).catch(h)},[f]);if(p.error&&(0,d.G)(f.options.useErrorBoundary,[p.error]))throw p.error;return{...p,mutate:m,mutateAsync:p.mutate}}function h(){}},15097:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>F,default:()=>A});var n=r(23798),i=r(95551),s=r(23959),o=r(77109),l=r(42488),a=r(30215),u=r(24491),c=r(5303),d=r(92563),f=r(38850),h=r(20480),p=r(54492),m=r(29032),g=r(38525),b=r(88720),y=r(14948),v=r(21462);function x(e){let{offer:t}=e,{query:r,back:x,push:w}=(0,y.useRouter)(),{offerId:O}=r,{company:N,companyId:j,ocdPlatform:F,offersRoute:A}=(0,u.A)(r),{offerFilter:S,updateOffer:C}=(0,b.B)(),{clickDealSetEventOccurrence:I}=(0,a.L)(),{product:_,city:q,profile:k}=S,E=j!==i.T.AMAGGI,R=[i.T.ADM].includes(j);(0,v.useEffect)(()=>{q||k||w(A)},[q,A,k,w]);let{mutateAsync:B,isLoading:M}=(0,d.aD)();async function D(e){let{name:r,stateRegistration:n,doc:i,phoneNumber:s,city:o,profile:l}=e,a=i.replace(/\D/g,""),u={companyId:j,company:N,productId:null==_?void 0:_.id,product:null==_?void 0:_.label,profileId:l.id,profile:l.label,cityId:o.id,city:o.label};I(F,"CFSendNewSeller",u);let c=await B({companyId:j,ocdPlatform:F,payload:{name:r,ie:n,cpf:a,phoneNumber:s,cityId:o.value,profileId:l.value}});if(c){if(I(F,"CFSellersSelect",{...u,sellerId:c.id}),!R){let e=t.brokerClients.map(e=>({id:e.id,weight:e.weight}));await C(j,t.calculatedOfferId,[...e,{id:c.id,weight:0}])}x()}}return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.r,{showHelpButton:!1,titlePage:"Clicou, Fechou",backAction:()=>x()}),(0,n.jsxs)("div",{className:"m-auto max-w-3xl p-6",children:[(0,n.jsxs)("div",{className:"mb-4 space-y-2",children:[(0,n.jsx)("h2",{className:"text-xl font-semibold",children:"Novo cliente"}),(0,n.jsx)("p",{className:"text-lg",children:"Cadastre um novo cliente"})]}),(0,n.jsxs)(h.A,{id:"new-seller-form",className:"mt-4 space-y-4",onSubmit:D,formSchema:l.Ik({name:l.Yj({required_error:"Informe pelo menos um nome e sobrenome"}).regex(/^[a-zA-ZÀ-ÿ]+(\s[a-zA-ZÀ-ÿ]+)+\s?$/,"Informe pelo menos um nome e sobrenome").transform(e=>{let t="";return e.trim().split(" ").map(e=>{t+=" ".concat(e.charAt(0).toUpperCase()+e.slice(1))}),t=t.substring(1,t.length)}),stateRegistration:[i.T.ADM].includes(j)?l.Yj().min(1,"Informe a inscri\xe7\xe3o estadual"):l.lq(l.Yj()),doc:l.Yj({required_error:"CPF/CNPJ inv\xe1lido. Tente novamente"}).min(14,"CPF/CNPJ inv\xe1lido. Tente novamente").max(18,"CPF/CNPJ inv\xe1lido. Tente novamente").refine(e=>{let t=e.replace(/\D/g,"");return 11===t.length?o.A.isValid(e):14===t.length&&s.A.isValid(e)},{message:"CPF/CNPJ inv\xe1lido. Tente novamente"}),phoneNumber:l.Yj({required_error:"Insira um n\xfamero de telefone v\xe1lido"}).min(15,"Insira um n\xfamero de telefone v\xe1lido").transform(e=>e.replace(/\D/g,"")).refine(e=>"9"===e.charAt(2),{message:"Insira um n\xfamero de telefone v\xe1lido"}),city:l.Ik({id:l.ai(),label:l.Yj(),value:l.ai()},{required_error:"Selecione uma cidade"}),profile:l.Ik({id:l.ai(),label:l.Yj(),value:l.ai()},{required_error:"Selecione uma \xe1rea de atua\xe7\xe3o"})}),initialValues:{name:"",stateRegistration:"",doc:"",phoneNumber:"",city:q,profile:k},children:[(0,n.jsxs)(p.p.Field,{children:[(0,n.jsx)(p.p.Entry,{name:"name",placeholder:"Nome do cliente"}),(0,n.jsx)(p.p.Errors,{field:"name"})]}),(0,n.jsxs)(p.p.Field,{children:[(0,n.jsx)(p.p.Entry,{name:"stateRegistration",placeholder:"Inscri\xe7\xe3o estadual"}),(0,n.jsx)(p.p.Errors,{field:"stateRegistration"})]}),(0,n.jsxs)(p.p.Field,{children:[(0,n.jsx)(p.p.Entry,{name:"doc",placeholder:"CPF/CNPJ",autoComplete:"off",mask:[{mask:"000.000.000-00"}
1,{mask:"00.000.000/0000-00"}],inputMode:"numeric"}),(0,n.jsx)(p.p.Errors,{field:"doc"})]}),(0,n.jsxs)(p.p.Field,{children:[(0,n.jsx)(p.p.Entry,{name:"phoneNumber",placeholder:"Telefone",mask:"(00) 0 0000-0000",inputMode:"numeric",autoComplete:"off"}),(0,n.jsx)(p.p.Errors,{field:"phoneNumber"})]}),(0,n.jsx)(g.F,{name:"city",placeholder:"Cidade",options:[],disabled:!0,readOnly:!0}),(0,n.jsx)(g.F,{name:"profile",placeholder:"\xc1rea de Atua\xe7\xe3o",options:[],disabled:!0,readOnly:!0})]}),E&&(0,n.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 space-y-2 border-t border-t-gray-400 bg-white px-6 py-4 md:static md:max-w-3xl md:border-0 md:bg-transparent md:px-0",children:[(0,n.jsxs)(f.$,{form:"new-seller-form",icon:M,type:"submit",fill:!0,children:[M&&(0,n.jsx)(m.A,{size:"1.25rem",color:"white",inButton:!0}),R?"Salvar":"Salvar e selecionar"]}),(0,n.jsx)(f.$,{outlined:!0,fill:!0,type:"button",onClick:()=>x(),children:"Cancelar"})]})]})]})}var w=r(47876),O=r(34633),N=r(95975),j=r.n(N),F=!0;function A(e){let{sellersInfo:t,offer:r}=e,{query:i,push:s}=(0,y.useRouter)(),{companyId:o,platform:l,commercial:a,homeClickDealRoute:c,platformRoute:d}=(0,u.A)(i),{setUserInfo:f,setCommercial:h}=(0,b.B)();(0,v.useEffect)(()=>{f(t)},[t,f]);let p=(0,v.useMemo)(()=>(0,w.A)(o,l,t.buyers,a),[o,l,t.buyers,a]);return(0,v.useEffect)(()=>{p||s(c),h(p),a!==(0,O.A)(p.name)&&s(d+(0,O.A)(p.name)+"/offers/".concat(r.calculatedOfferId,"/clients/create"))},[a,p,c,r.calculatedOfferId,d,s,h]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(j(),{children:[(0,n.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,n.jsx)("link",{rel:"shortcut icon",type:"image/x-icon",href:"/assets/favicon.ico"})]}),(0,n.jsx)("main",{children:(0,n.jsx)(x,{offer:r})})]})}},16547:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(94326),i=r(54357);function s(e){(0,i.A)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,n.A)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))}},16639:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(94326),i=r(77696),s=r(22196),o=r(16547),l=r(54357),a=r(41240);function u(e,t){if((0,l.A)(2,arguments),!t||"object"!==(0,n.A)(t))return new Date(NaN);var r=t.years?(0,a.A)(t.years):0,u=t.months?(0,a.A)(t.months):0,c=t.weeks?(0,a.A)(t.weeks):0,d=t.days?(0,a.A)(t.days):0,f=t.hours?(0,a.A)(t.hours):0,h=t.minutes?(0,a.A)(t.minutes):0,p=t.seconds?(0,a.A)(t.seconds):0,m=(0,o.A)(e),g=u||r?(0,s.A)(m,u+12*r):m;return new Date((d||c?(0,i.A)(g,d+7*c):g).getTime()+1e3*(p+60*(h+60*f)))}},20480:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(23798),i=r(89509),s=r(21462),o=r(532);function l(e){let{id:t,onSubmit:r,formSchema:l,className:a,children:u,initialValues:c,toWatch:d}=e,f=(0,o.mN)({resolver:(0,i.u)(l),defaultValues:c}),{handleSubmit:h,getValues:p,watch:m}=f;return(0,s.useEffect)(()=>{let e=p();d&&d.setValues(t=>e)},[p,m("".concat(null==d?void 0:d.valuesToWatch))]),(0,n.jsx)(o.Op,{...f,children:(0,n.jsx)("form",{id:t,className:a,onSubmit:h(r),children:u})})}},22196:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(41240),i=r(16547),s=r(54357);function o(e,t){(0,s.A)(2,arguments);var r=(0,i.A)(e),o=(0,n.A)(t);if(isNaN(o))return new Date(NaN);if(!o)return r;var l=r.getDate(),a=new Date(r.getTime());return(a.setMonth(r.getMonth()+o+1,0),l>=a.getDate())?a:(r.setFullYear(a.getFullYear(),a.getMonth(),l),r)}},22812:(e,t,r)=>{"use strict";r.d(t,{d:()=>s});var n=r(23947),i=r(21462);let s=()=>{let e=(0,i.useContext)(n.$t);if(!e)throw Error("useSnackbar must be used within SnackbarProvider");return e}},23959:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n={blackList:["00000000000000","11111111111111","22222222222222","33333333333333","44444444444444","55555555555555","66666666666666","77777777777777","88888888888888","99999999999999"],stripRegex:/[^\d]/g,verifierDigit(e){let t=2,r=e.split("").map(e=>parseInt(e,10)).reverse(),n=0;for(let e of r)n+=e*t,t=9===t?2:t+1;let i=n%11;return i<2?0:11-i},format(e){return this.strip(e).replace(/^(\d{2})(\d{3})(\d{3})(\d{4})(\d{2})$/,(e,t,r,n,i,s)=>"".concat(t,".").concat(r,".").concat(n,"/").concat(i,"-").concat(s))},strip(e){return(e||"").replace(this.stripRegex,"")},isValid(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(t&&(e=this.strip(e)),!e||14!==e.length||this.blackList.includes(e))return!1;let r=e.substring(0,12);return r+=this.verifierDigit(r).toString(),(r+=this.verifierDigit(r).toString()).substring(r.length-2)===e.substring(e.length-2)}}},33456:(e,t,r)=>{"use strict";r.d(t,{H:()=>n});var n=function(e){return e[e.BAGS=1]="BAGS",e[e.TONS=2]="TONS",e[e.KG=3]="KG",e[e.NOT_INFORMED=4]="NOT_INFORMED",e}({})},33700:(e,t,r)=>{"use strict";r.d(t,{B:()=>l});var n=r(23798),i=r(48307),s=r(14590),o=r(532);function l(e){return t=>{var r,l,a;let{name:u,controllerClassName:c,...d}=t,{control:f,formState:h}=(0,o.xW)(),p=(0,o.Jt)(h.errors,u);return(0,n.jsxs)("div",{className:(0,s.cn)("flex w-full flex-col",c),children:[(0,n.jsx)(o.xI,{name:u,control:f,render:t=>{let{field:r}=t;return(0,n.jsx)(e,{...r,...d,error:p})}}),p&&(0,n.jsxs)("div",{className:"my-2 flex items-center gap-2 text-xs font-bold text-status-error",children:[(0,n.jsx)(i.A,{className:"h-4 w-4 shrink-0  [&_*]:fill-status-error"}),(null==p?void 0:p.root)?(0,n.jsx)("span",{children:null==p||null==(l=p.root)||null==(r=l.message)?void 0:r.toString()}):(0,n.jsx)("span",{children:null==p||null==(a=p.message)?void 0:a.toString()})]})]})}}},34633:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=e=>e.normalize("NFD").toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")},38525:(e,t,r)=>{"use strict";r.d(t,{F:()=>h,l:()=>f});var n=r(23798),i=r(33700),s=r(14590),o=r(61707),l=r(63919),a=r(11372),u=r(21462);let c=(0,u.forwardRef)(function(e,t){let{name:r,value:i,error:c,options:d,setEvent:f,onChange:h,children:p,className:m,placeholder:g,defaultValue:b,buttonClassName:y,disabled:v=!1,readOnly:x=!1}=e,[w,O]=(0,u.useState)(()=>b||null);(0,u.useEffect)(()=>{void 0!==i&&O(null!=i?i:null)},[i]);let N=(0,u.useMemo)(()=>null==d?void 0:d.map(e=>(0,n.jsx)(o.WF.Option,{className:e=>{let{active:t}=e;return(0,s.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,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)("span",{className:"text-gray-950",children:e.label}),(0,n.jsx)("span",{className:"text-web-caption text-gray-700",children:e.subLabel})]}):e.label},e.id)),[d]);return(0,n.jsx)("div",{className:(0,s.cn)("group flex select-none flex-col",m),children:(0,n.jsx)(o.WF,{ref:t,name:r,disabled:v,value:w,onChange:function(e){O(e),h&&h(e),f&&f(e)},children:e=>{let{open:t}=e;return(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsxs)(o.WF.Button,{className:(0,s.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":!!g},{"border-gray-600 bg-gray-600 text-gray-600":v&&x},{"opacity-50":v},y,"data-[headlessui-state=open]:border-transparent data-[headlessui-state=open]:outline"),children:[null==w?void 0:w.label,!x&&(0,n.jsx)(a.A,{className:(0,s.cn)("absolute right-2 top-4 h-4 w-4",{"[&_*]:fill-gray-700":v}),"aria-hidden":"true"})]}),g&&(0,n.jsx)(o.WF.Label,{className:(0,s.cn)("pointer-events-none absolute left-4 top-1.5 mb-1 whitespace-nowrap font-bold text-gray-700 duration-300",(null==w?void 0:w.label)?"text-xs text-gray-900":"top-3 text-base font-light",{"opacity-50":v&&!x},{"opacity-40":v&&x}),children:g}),(0,n.jsx)(l.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,n.jsx)("div",{className:"relative z-10",children:(0,n.jsx)(o.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:N})})}),p]})}})})});function d(e){let{text:t,className:r,icon:i}=e;return(0,n.jsxs)("div",{className:(0,s.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,n.jsx)("div",{className:"absolute -top-1 left-0 right-0 h-3 rounded-b-lg border-x border-b border-gray-500 bg-white"}),i&&(0,n.jsx)(i,{className:"h-3.5 w-3.5 shrink-0 [&_*]:fill-secondary-900 group-focus-within:[&_*]:fill-white"}),(0,n.jsx)("span",{className:"text-mobile-body-2 font-semibold",children:t})]})}let f=Object.assign(c,{Helper:d}),h=Object.assign((0,i.B)(c),{Helper:d})},41240:(e,t,r)=>{"use strict";function n(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}r.d(t,{A:()=>n})},47876:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(34633);let i=(e,t,r,i)=>{if(i){let e=r.find(e=>(0,n.A)(e.name)===i);if(e)return e}return r[0]}},48307:(e,t,r)=>{"use strict";r.d(t,{A:()=>
1o});var n,i=r(21462);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let o=function(e){return i.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n||(n=i.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"})))}},54357:(e,t,r)=>{"use strict";function n(e,t){if(t.length<e)throw TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}r.d(t,{A:()=>n})},54492:(e,t,r)=>{"use strict";r.d(t,{p:()=>p});var n=r(23798),i=r(48307),s=r(14590),o=r(84934),l=r(92435),a=r(21462),u=r(532),c=r(80789);function d(e){let{children:t,hasLeftIcon:r,hasRightIcon:i,...o}=e;return(0,n.jsx)("label",{className:(0,s.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",i&&"right-10"),...o,children:t})}let f=(0,l.F)("pointer-events-none absolute",{variants:{position:{left:"left-4",right:"right-4"}},defaultVariants:{position:"left"}}),h=(0,l.F)("absolute flex h-12 items-center justify-center",{variants:{position:{left:"left-4",right:"right-4"}},defaultVariants:{position:"right"}}),p={Field:function(e){let{children:t,className:r}=e;return(0,n.jsx)("div",{className:(0,s.cn)("group relative flex w-full flex-col",r),children:t})},Label:d,Entry:function(e){let{children:t,name:r,field:i,mask:l,pattern:f,placeholder:h,textarea:p,className:m,rounded:g,suffix:b,onBlur:y,control:v,...x}=e,w=i||r,O=!1,N=!1,{field:{ref:j,onChange:F,...A},formState:{errors:S}}=(0,u.as)({name:r,control:v}),C=(0,a.useCallback)(e=>{F({target:{value:e}})},[F]);t&&(Array.isArray(t)?t:[t]).map(e=>{let t=e.props.position;t&&"left"===t&&(O=!0),t&&"right"===t&&(N=!0)});let I=(0,a.useMemo)(()=>(0,c.X1)(e=>{let{inputRef:t,...r}=e;return(0,a.createElement)(p?"textarea":"input",{...r,ref:t})}),[p]);return(0,n.jsxs)("div",{className:(0,s.cn)("relative flex items-center rounded-md border focus-within:border-transparent focus-within:bg-gray-200 focus-within:ring-2",(0,o._)(S,w)?"border-status-error ring-status-error":"border-gray-500 ring-primary-600",x.disabled&&"opacity-50",g&&"rounded-full"),children:[l?(0,n.jsx)(I,{className:(0,s.cn)("peer w-full rounded-md bg-white placeholder-transparent outline-none disabled:cursor-not-allowed",p?"h-24 border-white py-3":"h-12",O?"pl-10":"pl-4",N?"pr-10":"pr-4",{[p?"border-t-[1.5rem] pt-0":"pt-4"]:h},g&&"rounded-full",m),mask:l,inputRef:j,placeholder:h,onAccept:C,...x,...A,value:A.value?String(A.value):"",onChange:()=>{},autoComplete:"off",onBlur:e=>{A.onBlur(),null==y||y(e)}}):p?(0,n.jsx)("textarea",{className:(0,s.cn)("peer h-24 w-full rounded-md border-white bg-white py-3 placeholder-transparent outline-none disabled:cursor-not-allowed",O?"pl-10":"pl-4",N?"pr-10":"pr-4",{"border-t-[1.5rem] pt-0":h},g&&"rounded-full",m),ref:j,placeholder:h,onChange:F,...x,...A,onBlur:e=>{A.onBlur(),null==y||y(e)}}):(0,n.jsx)("input",{className:(0,s.cn)("peer h-12 w-full rounded-md bg-white placeholder-transparent outline-none disabled:cursor-not-allowed",O?"pl-10":"pl-4",N?"pr-10":"pr-4",{"pt-4":h},g&&"rounded-full",m),ref:j,placeholder:h,onChange:F,...x,...A,autoComplete:"off",onBlur:e=>{A.onBlur(),null==y||y(e)}}),(0,n.jsx)(d,{hasLeftIcon:O,hasRightIcon:N,children:h}),t,b&&(0,n.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:i}=e;return(0,n.jsx)(t,{className:(0,s.cn)(f({position:r}),i)})},Button:function(e){let{children:t,position:r,...i}=e;return(0,n.jsx)("button",{type:"button",className:h({position:r}),...i,children:t})},Errors:function(e){var t;let{field:r}=e,{formState:{errors:s}}=(0,u.xW)(),l=(0,o._)(s,r);return(null==l?void 0:l.message)?(0,n.jsxs)("div",{className:"my-2 flex gap-2 text-xs font-bold text-status-error",children:[l&&(0,n.jsx)(i.A,{className:"h-4 w-4 [&_*]:fill-status-error"}),(0,n.jsx)("span",{children:null==l||null==(t=l.message)?void 0:t.toString()})]}):null},Alert:function(e){let{field:t,message:r}=e,{formState:{errors:s,touchedFields:l}}=(0,u.xW)(),a=(0,o._)(s,t),c=(0,o._)(l,t);return a||c?null:(0,n.jsxs)("div",{className:"my-2 flex gap-2 text-xs font-bold text-orange-500",children:[(0,n.jsx)(i.A,{className:"h-4 w-4 [&_*]:fill-orange-500"}),(0,n.jsx)("span",{children:r})]})},PermanentBigAlert:function(e){let{field:t,message:r}=e,{formState:{errors:s}}=(0,u.xW)();return(0,o._)(s,t)?null:(0,n.jsxs)("div",{className:"my-2 flex items-center gap-2 text-base font-bold text-orange-500",children:[(0,n.jsx)("div",{className:"h-6 w-6",children:(0,n.jsx)(i.A,{className:"[&_*]:fill-orange-500"})}),(0,n.jsx)("span",{children:r})]})},CharactersCounter:function(e){let{maxLength:t,fieldName:r}=e,{watch:i}=(0,u.xW)(),s=i(r);return(0,n.jsxs)("small",{className:"absolute right-0 top-full mt-2 text-[0.8rem] text-gray-700",children:[(null==s?void 0:s.length)||0,"/",t]})},Helper:function(e){let{text:t,className:r,icon:i}=e;return(0,n.jsxs)("div",{className:(0,s.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,n.jsx)("div",{className:"absolute -top-1 left-0 right-0 h-3 rounded-b-lg border-x border-b border-gray-500 bg-white"}),i&&(0,n.jsx)(i,{className:"h-3.5 w-3.5 shrink-0 [&_*]:fill-secondary-900 group-focus-within:[&_*]:fill-white"}),(0,n.jsx)("span",{className:"text-mobile-body-2 font-semibold",children:t})]})}}},62264:(e,t,r)=>{"use strict";r.d(t,{$:()=>i,A:()=>n});var n=function(e){return e[e.SOY=1]="SOY",e[e.CORN=2]="CORN",e[e.SOY_BALCONY=11]="SOY_BALCONY",e[e.CORN_BALCONY=12]="CORN_BALCONY",e[e.SOYBEAN_MEAL=13]="SOYBEAN_MEAL",e[e.SOYBEAN_OIL=14]="SOYBEAN_OIL",e[e.SOYBEAN_HULLS=15]="SOYBEAN_HULLS",e}({});let i={SOY:"Soja",CORN:"Milho",SOY_BALCONY:"Soja Balc\xe3o",CORN_BALCONY:"Milho Balc\xe3o",SOYBEAN_MEAL:"Farelo",SOYBEAN_OIL:"\xd3leo",SOYBEAN_HULLS:"Casca"}},77109:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n={blackList:["00000000000","11111111111","22222222222","33333333333","44444444444","55555555555","66666666666","77777777777","88888888888","99999999999","12345678909"],stripRegex:/[^\d]/g,_verifierDigit(e){let t=e.split("").map(e=>parseInt(e,10)),r=t.length+1,n=t.map((e,t)=>e*(r-t)).reduce((e,t)=>
1e+t)%11;return n<2?0:11-n},format(e){return this.strip(e).replace(/^(\d{3})(\d{3})(\d{3})(\d{2})$/,(e,t,r,n,i)=>"".concat(t,".").concat(r,".").concat(n,"-").concat(i))},strip(e){return(e||"").replace(this.stripRegex,"")},isValid(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(t&&(e=this.strip(e)),!e||11!==e.length||this.blackList.includes(e))return!1;let r=e.substring(0,9);return r+=this._verifierDigit(r).toString(),(r+=this._verifierDigit(r).toString()).substring(r.length-2)===e.substring(e.length-2)},generate(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t="";for(let e=0;e<9;e+=1)t+=Math.floor(9*Math.random()).toString();return t+=this._verifierDigit(t).toString(),t+=this._verifierDigit(t).toString(),e?this.format(t):t}}},77696:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(41240),i=r(16547),s=r(54357);function o(e,t){(0,s.A)(2,arguments);var r=(0,i.A)(e),o=(0,n.A)(t);return isNaN(o)?new Date(NaN):(o&&r.setDate(r.getDate()+o),r)}},84934:(e,t,r)=>{"use strict";function n(e,t){let r=t.split("."),n=e;for(let e of r)n=null==n?void 0:n[e];return n}r.d(t,{_:()=>n})},86219:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/web-app/click-deal/[company]/[platform]/[commercial]/offers/[id]/clients/create",function(){return r(15097)}])},88720:(e,t,r)=>{"use strict";r.d(t,{B:()=>a});var n=r(62264),i=r(33456),s=r(16243),o=r(31180),l=r(60266);let a=(0,r(97257).vt)((e,t)=>({userInfo:null,setUserInfo:t=>e({userInfo:t}),commercial:null,setCommercial:t=>e({commercial:t}),updateOffer:async(e,t,r,n,a,u)=>{try{let c=await (0,l.getSession)();if(!(0,o.hx)(e,null==c?void 0:c.user.token))return null;let d=r.filter((e,t,r)=>t===r.findIndex(t=>t.id===e.id));if(d.length!==r.length)return null;let f={unity:null!=a?a:i.H.TONS};d.length>0?f.brokerClients=d:(f.brokerClients=[],f.weight=n),await s.t.updateOffer({companyId:e,offerId:t,payload:f,isAveragePrice:u})}catch(e){console.error("Ocorreu um erro ao atualizar a oferta: ".concat(e))}},isLoading:!1,setIsLoading:t=>e({isLoading:t}),productOption:null,setProductValue:t=>e(e=>({...e,productOption:t})),offers:null,setOffers:t=>e(e=>({...e,offers:t})),activeOffers:null,setActiveOffers:t=>e(e=>({...e,activeOffers:t})),fetchOffers:async(r,n,i)=>{let{commercial:a,offerFilter:u,setIsLoading:c,setProductsOptions:d,setExecutionsOptions:f}=t();if(a&&u){c(!0);let t=await (0,l.getSession)();if(!(0,o.hx)(n,null==t?void 0:t.user.token))return null;e({offers:(await Promise.all(r.map(async e=>({[e]:await s.t.getActiveRealTimeOffers(n,a.id,e,i)})))).reduce((e,t)=>({...e,...t}),{})}),d(),f()}c(!1)},offerFilter:{currenciesOptions:[],productsOptions:[],executionsOptions:[],citiesOptions:[],profilesOptions:[],search:"",currency:null,product:null,execution:null,city:null,profile:null},setOfferFilter:t=>e({offerFilter:t}),setProductsOptions:()=>{let{offers:r,offerFilter:i,setProduct:s,productOption:o}=t();if(!r)return[];let l=Object.keys(r),a=[];l.forEach(e=>{a.push({id:Number(e),label:n.$[n.A[Number(e)]],value:Number(e)})}),e(e=>({...e,offerFilter:{...i,productsOptions:a}})),o?(s(o),e(e=>({...e,filteredOffers:r[o.value]}))):(s(a[0]),e(e=>({...e,filteredOffers:r[a[0].value]})))},setExecutionsOptions(){let{offerFilter:r,filteredOffers:n,setExecution:i,setFilteredOffers:s}=t(),o=new Map;o.set(0,{id:0,label:"Todos os meses",value:0}),null==n||n.forEach(e=>{o.set(e.executionMonth.id,{id:e.executionMonth.id,label:e.executionMonth.name,value:e.executionMonth.id})});let l=[...o.values()];e({offerFilter:{...r,executionsOptions:l}}),i(l[0]),s()},setProduct:r=>{let{offers:n,offerFilter:i,setExecutionsOptions:s,setActiveOffers:o,setProductValue:l}=t();o(n&&n[r.value].length>0?n[r.value]:[]),l(r),e(e=>({...e,offerFilter:{...i,product:r}})),s()},setExecution:r=>{let{offerFilter:n,setFilteredOffers:i}=t();e(e=>({...e,offerFilter:{...n,execution:r}})),i()},setSearch:r=>{let{offerFilter:n,setFilteredOffers:i}=t();e(e=>({...e,offerFilter:{...n,search:r}})),i()},setCitiesOptions:r=>{let{offerFilter:n}=t(),i=r.map(e=>({id:e.id,label:"".concat(e.name," - ").concat(e.state),value:e.id}));e(e=>({...e,offerFilter:{...n,citiesOptions:i}}))},setProfilesOptions:r=>{let{offerFilter:n}
1=t(),i=r.map(e=>({id:e.id,label:e.name,value:e.id}));e(e=>({...e,offerFilter:{...n,profilesOptions:i}}))},setcCitySearch:r=>{let{offerFilter:n}=t();e(e=>({...e,offerFilter:{...n,citySearch:r}}))},fetchCities:async(e,r)=>{let{commercial:n,offerFilter:i,setIsLoading:a,setCitiesOptions:u}=t();if(n&&i){let t=await (0,l.getSession)();if(!(0,o.hx)(e,null==t?void 0:t.user.token))return null;let n=await s.t.getCities(e,r);n&&n.data&&u(n.data)}},fetchProfiles:async(e,r)=>{let{commercial:n,offerFilter:i,setProfilesOptions:a}=t();if(n&&i){let t=await (0,l.getSession)();if(!(0,o.hx)(e,null==t?void 0:t.user.token))return null;let n=await s.t.getSellersProfiles(e,r);n&&a(n)}},filteredOffers:null,setFilteredOffers:()=>{var r;let{offerFilter:n,offers:i,activeOffers:s}=t(),{product:o,execution:l,search:a}=n,u=null!=(r=null==i?void 0:i[null==o?void 0:o.value])?r:[],c=((null==l?void 0:l.id)!==0?u.filter(e=>e.executionMonth.id===(null==l?void 0:l.id)):u).filter(e=>e.warehouseBid.location.name.normalize("NFKD").toLowerCase().replace(/\W+/g,"").includes(a));e(e=>({...e,filteredOffers:c}))},newPaymentDate:"",setNewPaymentDate:t=>e({newPaymentDate:t}),updatePartialOfferById:async e=>{let{ocdPlatform:t,companyId:r,offerId:n,payload:i}=e;try{let e=await (0,l.getSession)();if(!(0,o.hx)(r,null==e?void 0:e.user.token))return null;return s.t.updatePartialOfferById({ocdPlatform:t,companyId:r,offerId:n,payload:i})}catch(e){console.error("Ocorreu um erro ao atualizar a oferta: ".concat(e))}}}))},92563:(e,t,r)=>{"use strict";r.d(t,{Bn:()=>M,Cv:()=>g,Dg:()=>E,G5:()=>d,Ij:()=>m,Kl:()=>R,LA:()=>P,N$:()=>z,O3:()=>F,OD:()=>Q,ON:()=>O,Pb:()=>C,Pr:()=>V,QQ:()=>L,Si:()=>q,Tu:()=>A,VN:()=>k,W3:()=>w,_$:()=>c,aD:()=>Y,b0:()=>K,eY:()=>j,f4:()=>p,jw:()=>x,kB:()=>u,kQ:()=>$,lJ:()=>I,mM:()=>y,nM:()=>N,rA:()=>B,tZ:()=>f,xF:()=>v,xH:()=>_,xL:()=>D,y8:()=>W,yA:()=>h,yY:()=>T,zU:()=>b,zw:()=>S});var n=r(92376),i=r(16243),s=r(22812),o=r(52064),l=r(12862),a=r(14948);function u(e){return(0,o.I)({queryKey:["sellers-info",e],queryFn:()=>i.t.getSellersInfo(e),refetchOnWindowFocus:!1,enabled:!!e})}function c(e,t){return(0,o.I)({queryKey:["market-status",e,t],queryFn:()=>i.t.getMarketStatus(e,t),refetchOnWindowFocus:!1,enabled:!!(e&&t)})}function d(e){return(0,o.I)({queryKey:["company-configs",e],queryFn:()=>i.t.getCompanyConfigs(e),refetchOnWindowFocus:!1,enabled:!1})}function f(e,t,r){return(0,o.I)({queryKey:["active-click-deal-offers",e,t,r],queryFn:()=>i.t.getActiveClickDealOffers(e,t,r),refetchOnWindowFocus:!1,enabled:!!(e&&t)})}function h(e,t){return(0,o.I)({queryKey:["notification-alert-offers",e,t],queryFn:()=>i.t.getNotificationAlertOffers(e,t),refetchOnWindowFocus:!1,enabled:!!(e&&t)})}function p(e,t){return(0,o.I)({queryKey:["notification-alert-by-id",e,t],queryFn:()=>i.t.getNotificationAlertById(e,t),refetchOnWindowFocus:!1,enabled:!!(e&&t)})}function m(){return(0,l.n)({mutationFn:e=>{let{companyId:t,payload:r}=e;return i.t.saveNotificationAlertOffers({companyId:t,payload:r})},onSuccess:(e,t)=>{n.qQ.invalidateQueries(["notification-alert-offers",t.companyId,t.payload.buyerId])}})}function g(){return(0,l.n)({mutationFn:e=>{let{companyId:t,notificationAlertId:r}=e;return i.t.deleteNotificationAlertOffers({companyId:t,notificationAlertId:r})}})}function b(){return(0,l.n)({mutationFn:e=>{let{companyId:t,document:r}=e;return i.t.saveSellerDocument({companyId:t,document:r})}})}function y(e,t,r){return(0,o.I)({queryKey:["sellers-list",e,t,r],queryFn:()=>i.t.getSellersList(e,t,r),enabled:!!t})}function v(){return(0,l.n)({mutationFn:e=>{let{companyId:t,ccBranchId:r,payload:n}=e;return i.t.createSeller({companyId:t,ccBranchId:r,payload:n})},onSuccess:(e,t)=>{n.qQ.invalidateQueries(["sellers-list",t.companyId,t.ccBranchId])}})}function x(){return(0,l.n)({mutationFn:e=>i.t.sendCorporateVerficationCode(e)})}function w(){return(0,l.n)({mutationFn:e=>i.t.verifyCorporateVerificationCode(e.hash,e.verificationCode,e.permission)})}function O(){return(0,l.n)({mutationFn:e=>{let{companyId:t,ccBranchId:r,sellerId:n,payload:s}=e;return i.t.updateSeller({companyId:t,ccBranchId:r,sellerId:n,payload:s})},onSuccess:(e,t)=>{n.qQ.invalidateQueries(["sellers-list",t.companyId,t.ccBranchId])}})}
1function N(e){let{companyId:t,deliveryLocationId:r,buyerId:n,productId:s,warehouseId:l,executionMonthId:a}=e;return(0,o.I)({queryKey:["payment-dates",t,r,n,s,l,a],queryFn:()=>i.t.getPaymentDates({companyId:t,deliveryLocationId:r,buyerId:n,productId:s,warehouseId:l,executionMonthId:a}),enabled:!!(t&&r&&n&&s&&l&&a),refetchOnWindowFocus:!1})}function j(e){let{buyerId:t,companyId:r,deliveryLocationId:n,executionMonthId:s,productId:l,payday:a,warehouseId:u}=e;return(0,o.I)({queryKey:["price-by-payment-date",a,t,l,r,u,s,n],queryFn:()=>i.t.getPriceBySpecificDate({payday:a,productId:l,buyerId:t,companyId:r,warehouseId:u,executionMonthId:s,deliveryLocationId:n}),enabled:!1,refetchOnWindowFocus:!1})}function F(e){let{companyId:t,offerId:r,buyerId:n}=e;return(0,o.I)({queryKey:["list-of-payment-dates",t,r,n],queryFn:()=>i.t.getListOfPaymentDates({companyId:t,offerId:r,buyerId:n}),refetchOnWindowFocus:!1})}function A(){return(0,l.n)({mutationFn:e=>{let{companyId:t,payload:r}=e;return i.t.saveNewIntendOfNegotiation({companyId:t,payload:r})}})}function S(){return(0,l.n)({mutationFn:e=>{let{companyId:t,payload:r}=e;return i.t.createNewNegotiation({companyId:t,payload:r})}})}function C(){return(0,l.n)({mutationFn:e=>i.t.createNewPriceIndication(e)})}function I(){return(0,l.n)({mutationFn:e=>{let{companyId:t,payload:r}=e;return i.t.sendClickDealCars({companyId:t,payload:r})}})}function _(e){let{companyId:t,contractId:r}=e;return(0,o.I)({queryKey:["preContract",t,r],queryFn:()=>i.t.getPreContractDetails({companyId:t,contractId:r}),refetchOnWindowFocus:!1})}function q(){return(0,o.I)({queryKey:["corporative-relationship"],queryFn:()=>i.t.getCorporativeRelationship(),refetchOnWindowFocus:!1})}function k(e){return(0,o.I)({queryKey:["pre-contracts",e],queryFn:()=>i.t.getPreContractsPaginated(e),refetchOnWindowFocus:!1})}function E(e){return(0,o.I)({queryKey:["indications",e],queryFn:()=>i.t.getIndications(e),refetchOnWindowFocus:!1})}function R(e,t){let r=(0,a.useRouter)(),{addSnackbar:n}=(0,s.d)();return(0,o.I)({queryKey:["indication",e,t],queryFn:()=>i.t.getSpecificIndication(e,t),refetchOnWindowFocus:!1,onError:e=>{if(e){var t;return n({open:!0,type:"error",message:null==(t=e.response)?void 0:t.data.message}),r.back()}}})}function B(){return(0,l.n)({mutationFn:e=>i.t.manageOffer(e),onSuccess:(e,t)=>{let{companies:r}=t;n.qQ.invalidateQueries(["indications",r])}})}function M(e){return(0,o.I)({queryKey:["counter-offers",e],queryFn:()=>i.t.getCounterOffers(e),refetchOnWindowFocus:!1})}function D(){return(0,l.n)({mutationFn:e=>{let{companyId:t,externalUuId:r,payload:n}=e;return i.t.createNegotiationFromOffer({companyId:t,externalUuId:r,payload:n})}})}function P(e,t){return(0,o.I)({queryKey:["click-deal-contract-conditions",e,t],queryFn:()=>i.t.getPreContractConditions(e,t),refetchOnWindowFocus:!1,enabled:!!(e&&t),placeholderData:""})}function L(e,t){return(0,o.I)({queryKey:["click-deal-indication-conditions",e,t],queryFn:()=>i.t.getIndicationConditions(e,t),refetchOnWindowFocus:!1,enabled:!!(e&&t),placeholderData:""})}function W(){return(0,l.n)({mutationFn:e=>{let{companyId:t,externalUuId:r,payload:n,ocdPlatform:s}=e;return i.t.createDerivativeNewPriceIndication({companyId:t,externalUuId:r,payload:n,ocdPlatform:s})}})}function Y(){return(0,l.n)({mutationFn:e=>{let{companyId:t,ocdPlatform:r,payload:n}=e;return i.t.createBrokerClient({companyId:t,ocdPlatform:r,payload:n})},onSuccess:(e,t)=>{n.qQ.invalidateQueries(["sellers-list",t.companyId])}})}function K(){return(0,l.n)({mutationFn:e=>{let{companyId:t,ocdPlatform:r,brokerClientId:n,payload:s}=e;return i.t.updateBrokerClient({companyId:t,ocdPlatform:r,brokerClientId:n,payload:s})},onSuccess:(e,t)=>{n.qQ.invalidateQueries(["sellers-list",t.companyId])}})}function T(){return(0,l.n)({mutationFn:e=>{let{buyerName:t,company:r,filial:n,modality:s,regional:o,requestInOfferListEmpty:l,storageCityId:a,storageName:u,storageRoadMap:c}=e;return i.t.requestStorage({buyerName:t,company:r,filial:n,modality:s,regional:o,requestInOfferListEmpty:l,storageCityId:a,storageName:u,storageRoadMap:c})}})}function Q(){return(0,l.n)({mutationFn:e=>{let{buyerName:t,company:r,filial:n,otherReasons:s,priceSugested:o,reason:l,regional:a,requestType:u}=e;return i.t.requestPrice({buyerName:t,company:r,filial:n,otherReasons:s,priceSugested:o,reason:l,regional:a,requestType:u})}})}function z(e,t){return(0,o.I)({queryKey:["broker-client-list",e,t],queryFn:()=>i.t.getBrokerClients(e,t)})}function V(e,t){return(0,o.I)({queryKey:["warehouse-locality-information-list",e,t],queryFn:()=>i.t.getWarehouseLocalityInformations(e,t),refetchOnWindowFocus:!1})}function $(){return(0,o.I)({queryKey:["available-companies"],queryFn:()=>i.t.getAvailableCompanies(),refetchOnWindowFocus:!1})}}},e=>{e.O(0,[4343,2064,532,4690,1100,9323,5309,1707,5303,6243,6813,636,6593,8792],()=>e(e.s=86219)),_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.