PageSourceSearch

https://app.cropia.ai/_next/static/chunks/3173-d4c0a29923fa960b.js

js cropia.ai collected 2026-10-05 15:31:23 UTC 66,961 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3173],{20063:(e,t,a)=>{a.r(t);var r=a(47260),n={};for(let e in r)"default"!==e&&(n[e]=()=>r[e]);a.d(t,n)},32772:(e,t,a)=>{a.r(t),a.d(t,{useAppDispatch:()=>n,useAppSelector:()=>s});var r=a(1213);let n=r.wA,s=r.d4},36753:(e,t,a)=>{a.d(t,{A:()=>D});var r=a(95155),n=a(12115),s=a(74744),l=a(89033),o=a(47779),i=a(53759),c=a(77994);function u(e){let{companyId:t,profile:a,companyCountry:l,onSaved:o}=e,u=(0,n.useMemo)(()=>(function(e){let t=(e||"").trim().toUpperCase();return 2===t.length?t:"UY"})((null==a?void 0:a.fiscal_country)||l),[l,null==a?void 0:a.fiscal_country]),[m,p]=(0,n.useState)({legal_name:(null==a?void 0:a.legal_name)||"",fiscal_country:u,tax_id_type:(null==a?void 0:a.tax_id_type)||("UY"===u?"RUT":""),tax_id:(null==a?void 0:a.tax_id)||"",fiscal_address:(null==a?void 0:a.fiscal_address)||"",city:(null==a?void 0:a.city)||"",state:(null==a?void 0:a.state)||"",postal_code:(null==a?void 0:a.postal_code)||"",billing_email:(null==a?void 0:a.billing_email)||""}),[y,{isLoading:g}]=(0,c.OC)(),h=(e,t)=>{p(a=>{let r={...a,[e]:t};return"fiscal_country"===e&&"UY"===t.trim().toUpperCase()&&(r.tax_id_type="RUT"),r})},x=["legal_name","fiscal_country","tax_id_type","tax_id","fiscal_address","city","billing_email"].some(e=>!String(m[e]).trim()),f=async()=>{if(x)return void s.oR.error("Completa los datos fiscales obligatorios.");if("UY"===m.fiscal_country.trim().toUpperCase()&&"RUT"!==m.tax_id_type)return void s.oR.error("Para Uruguay el identificador fiscal debe ser RUT.");try{let e=await y({companyId:t,legal_name:m.legal_name.trim(),fiscal_country:m.fiscal_country.trim().toUpperCase(),tax_id_type:m.tax_id_type.trim().toUpperCase(),tax_id:m.tax_id.trim(),fiscal_address:m.fiscal_address.trim(),city:m.city.trim(),state:m.state.trim(),postal_code:m.postal_code.trim(),billing_email:m.billing_email.trim()}).unwrap();s.oR.success("Datos fiscales guardados.",{autoClose:1500}),null==o||o(e.billing_profile)}catch(t){var e,a;s.oR.error((null==t||null==(e=t.data)?void 0:e.error)||(null==t||null==(a=t.data)?void 0:a.detail)||"No pudimos guardar los datos fiscales.")}};return(0,r.jsxs)("div",{className:"rounded-lg border border-amber-200 bg-amber-50 px-4 py-4 text-left",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-1 sm:flex-row sm:items-center sm:justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-sm font-semibold text-amber-950",children:"Datos fiscales"}),(0,r.jsx)("p",{className:"text-xs text-amber-800",children:"Necesarios para pagar y emitir el comprobante."})]}),(null==a?void 0:a.status)&&(0,r.jsx)("span",{className:"w-fit rounded-full bg-white px-2 py-0.5 text-xs font-medium text-amber-800",children:a.status})]}),(0,r.jsxs)("div",{className:"mt-4 grid grid-cols-1 gap-3 sm:grid-cols-2",children:[(0,r.jsx)(d,{label:"Nombre fiscal",value:m.legal_name,onChange:e=>h("legal_name",e)}),(0,r.jsx)(d,{label:"Email de facturacion",type:"email",value:m.billing_email,onChange:e=>h("billing_email",e)}),(0,r.jsx)(d,{label:"Pais fiscal",value:m.fiscal_country,maxLength:2,onChange:e=>h("fiscal_country",e.toUpperCase())}),(0,r.jsx)(d,{label:"Tipo de identificador",value:m.tax_id_type,onChange:e=>h("tax_id_type",e.toUpperCase())}),(0,r.jsx)(d,{label:"Identificador fiscal",value:m.tax_id,onChange:e=>h("tax_id",e)}),(0,r.jsx)(d,{label:"Direccion fiscal",value:m.fiscal_address,onChange:e=>h("fiscal_address",e)}),(0,r.jsx)(d,{label:"Ciudad",value:m.city,onChange:e=>h("city",e)}),(0,r.jsx)(d,{label:"Departamento/Estado",value:m.state,onChange:e=>h("state",e)}),(0,r.jsx)(d,{label:"Codigo postal",value:m.postal_code,onChange:e=>h("postal_code",e)})]}),(0,r.jsx)("div",{className:"mt-4 flex justify-end",children:(0,r.jsx)("button",{type:"button",onClick:f,disabled:g,className:"inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-semibold text-white shadow-sm transition hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-60",style:{backgroundColor:"#147b4c"},children:g?(0,r.jsx)(i.default,{sm:!0}):"Guardar datos fiscales"})})]})}function d(e){let{label:t,value:a,onChange:n,type:s="text",maxLength:l}=e;return(0,r.jsxs)("label",{className:"block text-xs font-medium text-gray-900",children:[t,(0,r.jsx)("input",{type:s,value:a,maxLength:l,onChange:e=>n(e.target.value),className:"mt-1 block w-full rounded-md bg-white px-3 py-1.5 text-sm text-gray-900 outline outline-1 -outline-offset-1 outline-amber-300 focus:outline focus:outline-2 focus:-outline-offset-2 focus:outline-green-800"})]})}var m=a(98901),p=a(97797),y=a(69672),g=a(96897),h=a(39848);let x="#147b4c",f="rgba(20,123,76,0.35)",b={agriculture:"Agricultura",livestock:"Ganader\xeda"},_=["gestion","recorridas","precision"],v={gestion:"Gesti\xf3n de informaci\xf3n",recorridas:"Con recorridas y \xf3rdenes de trabajo",precision:"Con agricultura de precisi\xf3n"}
1,w=["natural","pasturas"],j={natural:"Campo natural",pasturas:"Pasturas y corrales"},C={natural:"Manejo extensivo",pasturas:void 0},q={gestion:{items:[{label:"Gestion\xe1 la informaci\xf3n de cada lote desde WhatsApp",whatsapp:!0},{label:"Acceso por app m\xf3vil (App Store y Play Store)"},{label:"Cultivos: variedad, fecha de siembra, estados fenol\xf3gicos y rendimiento"},{label:"Fertilizaciones"},{label:"Aplicaciones de qu\xedmicos"},{label:"Siembras"},{label:"Gesti\xf3n de insumos y stock por galp\xf3n"},{label:"Facturas de la empresa"},{label:"Costos del negocio y de cada lote"},{label:"An\xe1lisis de suelo"},{label:"Labores y servicios"},{label:"B\xfasqueda de im\xe1genes satelitales Sentinel"},{label:"Clima"}]},recorridas:{inheritsLabel:"Todo lo de Gesti\xf3n, m\xe1s:",items:[{label:"Recorridas georeferenciadas con fotos, comentarios y estad\xedsticas de tu cultivo"},{label:"M\xf3dulo para programar recorridas"},{label:"\xdaltimas visitas al campo para optimizar los tiempos entre recorridas"},{label:"\xd3rdenes de trabajo para coordinar tareas a campo"}]},precision:{inheritsLabel:"Todo lo de Con recorridas, m\xe1s:",items:[{label:"Bajamos las im\xe1genes Sentinel autom\xe1ticamente, sin que las tengas que buscar"},{label:"M\xe1s de 6 algoritmos para ambientar las im\xe1genes"},{label:"Ambient\xe1 cada imagen satelital a tu gusto"},{label:"Recomendaciones de fertilizaci\xf3n por ambiente"},{label:"Recomendaciones qu\xedmicas sobre \xe1reas parciales dibujadas"},{label:"Prescripciones de fertilizaci\xf3n para cualquier maquinaria"},{label:"Prescripciones de semillas para cualquier maquinaria"},{label:"Arm\xe1 prescripciones desde el campo con nuestra app m\xf3vil"}]}},N={natural:{items:[{label:"Gestion\xe1 tu rodeo desde WhatsApp",whatsapp:!0},{label:"Acceso por app m\xf3vil (App Store y Play Store)"},{label:"Animales individuales con caravana y categor\xedas"},{label:"Tropas/lotes: altas, movimientos y composici\xf3n"},{label:"Ingresos y egresos: compras, ventas, nacimientos y muertes"},{label:"Pesadas individuales o por tropa"},{label:"Sanidad: tratamientos, vacunaciones y carencias"},{label:"Reproducci\xf3n: servicios, pre\xf1eces y partos"},{label:"Pastoreo sobre campo natural: asign\xe1 tropas a potreros"},{label:"Clima"}]},pasturas:{inheritsLabel:"Todo lo de Campo Natural, m\xe1s:",items:[{label:"Pasturas implantadas: mejoramientos, verdeos y praderas"},{label:"Fertilizaciones, aplicaciones y muestreo de suelo sobre tus pasturas"},{label:"Muestreo de biomasa y disponibilidad de MS"},{label:"Corrales y dietas: raciones y asignaci\xf3n por corral"},{label:"Stock de alimentos: silos, granos y balanceados"},{label:"Costos del negocio y por potrero"}]}};function T(e){let t=e.information_modules||[];return t.includes("agriculture_precision_basic")?"precision":t.includes("agriculture_scouting")?"recorridas":"gestion"}function P(e){let t=e.information_modules||[];return t.includes("livestock_pasture")||t.includes("livestock_feedlot")?"pasturas":"natural"}function S(e){return(e.information_modules||[]).includes("livestock")?"livestock_".concat(P(e)):T(e)}function k(e){var t,a,r,n,s;return{status:null!=(n=null==e?void 0:e.status)?n:null,error_code:null!=(s=null==e||null==(t=e.data)?void 0:t.code)?s:null,error_message:(null==e||null==(a=e.data)?void 0:a.error)||(null==e||null==(r=e.data)?void 0:r.detail)||"unknown_error"}}let G={daily:365,weekly:52,monthly:12,quarterly:4,semiannual:2,annual:1};function E(e){let t=[];return null!=e.max_area_ha&&t.push("Hasta ".concat(Number(e.max_area_ha)," ha")),null!=e.max_animals&&t.push("Hasta ".concat(e.max_animals.toLocaleString("es")," animales")),t.length?t.join(" \xb7 "):null}function R(e){let{featured:t}=e;return(0,r.jsxs)("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-5 w-5 flex-none fill-current stroke-current",style:{color:t?"#ffffff"
1:x},children:[(0,r.jsx)("path",{d:"M9.307 12.248a.75.75 0 1 0-1.114 1.004l1.114-1.004ZM11 15.25l-.557.502a.75.75 0 0 0 1.15-.043L11 15.25Zm4.844-5.041a.75.75 0 0 0-1.188-.918l1.188.918Zm-7.651 3.043 2.25 2.5 1.114-1.004-2.25-2.5-1.114 1.004Zm3.4 2.457 4.25-5.5-1.187-.918-4.25 5.5 1.188.918Z",strokeWidth:0}),(0,r.jsx)("circle",{cx:12,cy:12,r:8.25,fill:"none",strokeWidth:1.5})]})}function O(e){let{amount:t,compact:a=!1}=e,[n,s]=String(t).split(".");return(0,r.jsxs)("span",{className:"inline-flex items-baseline",children:[(0,r.jsxs)("span",{className:"".concat(a?"text-3xl":"text-4xl"," font-light tracking-tight"),children:["$",n]}),s&&(0,r.jsxs)("span",{className:"".concat(a?"text-lg":"text-xl"," font-light tracking-tight"),children:[".",s]})]})}function L(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD",a=Number(e||0);return"".concat(t," ").concat(a.toFixed(2))}function M(e,t,a){let r=null==a?void 0:a.toUpperCase(),n=function(e,t){let a=Number(e||0),r=(null==t?void 0:t.toUpperCase())==="UY"?.22*a:0;return{net:a,tax:r,gross:a+r}}(e,r);return"UY"===r?"Neto ".concat(L(n.net,t)," + IVA ").concat(L(n.tax,t)," = Total ").concat(L(n.gross,t)):r?"Total ".concat(L(n.gross,t)," sin IVA"):"Precio neto ".concat(L(n.net,t))}function A(e){let{feature:t,featured:a}=e;return(0,r.jsxs)("li",{className:"flex",children:[t.whatsapp?(0,r.jsx)(l.n,{icon:o.Y4q,"aria-hidden":"true",className:"h-5 w-5 flex-none",style:{color:a?"#ffffff":x}}):(0,r.jsx)(R,{featured:a}),(0,r.jsx)("span",{className:"ml-2",children:t.label})]})}
1let U="Quiero que me asesoren en lo mejor para mis campos";function D(e){var t,a,l,o,d,R;let{companyId:D,onTrialStarted:I,compact:F=!1,defaultEmail:z,defaultPhone:H,defaultVertical:Q}=e,{data:B,isFetching:Y,isError:V,error:W,refetch:Z}=(0,c.dn)(D),{data:J,refetch:K,isFetching:X,isError:$,error:ee}=(0,c.wK)(D),[et,{isLoading:ea}]=(0,c.Hq)(),{data:er,isFetching:en}=(0,g.tc)(),[es,{isLoading:el}]=(0,c.FJ)(),[eo,{isLoading:ei}]=(0,c.SO)(),[ec,{isLoading:eu}]=(0,c.EL)(),[ed,{isLoading:em}]=(0,c.v)(),[ep]=(0,h.KF)(),[ey,eg]=(0,n.useState)(null!=Q?Q:"agriculture"),[eh,ex]=(0,n.useState)(""),[ef,eb]=(0,n.useState)(""),[e_,ev]=(0,n.useState)(null),[ew,ej]=(0,n.useState)(null),[eC,eq]=(0,n.useState)(null),[eN,eT]=(0,n.useState)(!1),[eP,eS]=(0,n.useState)(!1),[ek,eG]=(0,n.useState)(!1),[eE,eR]=(0,n.useState)(""),[eO,eL]=(0,n.useState)(""),[eM,eA]=(0,n.useState)(""),eU=(0,n.useRef)(Date.now()),eD=(0,n.useRef)(!1),eI=(0,n.useRef)(!1),eF=(0,n.useRef)(!1),ez=(0,n.useRef)(!1),eH=(0,n.useRef)(!1),eQ=(0,n.useRef)("plan_viewed"),eB=(0,n.useRef)("no_interaction"),eY=(0,n.useRef)(null),eV=(0,n.useRef)(null),eW=(0,n.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,m.Fg)(e,t),ep((0,p.mv)({event_name:e,event_id:crypto.randomUUID(),properties:t}))},[ep]),eZ=(0,n.useMemo)(()=>{var e;return(null!=(e=null==B?void 0:B.results)?e:[]).filter(e=>!e.is_custom&&null!=e.max_area_ha&&!(e.information_modules||[]).includes("livestock"))},[B]),eJ=(0,n.useMemo)(()=>{var e;return(null!=(e=null==B?void 0:B.results)?e:[]).filter(e=>!e.is_custom&&null!=e.max_animals&&(e.information_modules||[]).includes("livestock"))},[B]),eK="livestock"===ey,eX=eK?eJ:eZ,e$=eZ.length+eJ.length,e0=eZ.length>0&&eJ.length>0;(0,n.useEffect)(()=>{eK&&0===eJ.length&&eZ.length>0?eg("agriculture"):!eK&&0===eZ.length&&eJ.length>0&&eg("livestock")},[eZ.length,eK,eJ.length]);let e1=e=>Number(eK?e.max_animals:e.max_area_ha),e2=(0,n.useMemo)(()=>Array.from(new Set(eX.map(e1))).sort((e,t)=>e-t),[eX,eK]),e5=eK?ef:eh,e9=eK?eb:ex,e3=eK?"animales":"ha",e4=Number(e5)||0,e8=e2.length?e2[e2.length-1]:0,e7=e2.length>0&&e4>e8,e6=e7?null:null!=(o=e2.find(e=>e>=e4))?o:null,te=(0,n.useMemo)(()=>eX.filter(e=>e1(e)===e6),[eX,e6,eK]),tt=e=>te.find(t=>T(t)===e),ta=e=>te.find(t=>P(t)===e),tr=eK?ew?ta(ew):void 0:e_?tt(e_):void 0,tn=eK?ew?j[ew]:"":e_?v[e_]:"",ts=null==J?void 0:J.contract,tl=null==J?void 0:J.subscription,to=!!(null==J?void 0:J.contract_managed_by_dlocal),ti=!!(ts&&"active"===ts.status&&!ts.is_trial&&!to),tc=!!(ts&&"active"===ts.status&&!ts.is_trial&&to&&(null==tl?void 0:tl.status)==="active"),tu=!!(tr&&(null==ts?void 0:ts.template_id)===tr.id),td=!!(tc&&tr&&(null==ts?void 0:ts.price_amount)&&Number(tr.price_amount)<Number(ts.price_amount)),tm=!!((null==J?void 0:J.billing_profile)&&!J.billing_profile_required),tp=(null==er?void 0:er.is_active)!==!0,ty=null!=(d=null==J?void 0:J.trial_days)?d:7,tg="".concat(ty," ").concat(1===ty?"d\xeda":"d\xedas"),th=!tc&&(null==J?void 0:J.trial_used)!==!0,tx=(null==J||null==(t=J.billing_profile)?void 0:t.fiscal_country)||(null==J?void 0:J.company_country)||null;(0,n.useEffect)(()=>{F&&eW("signup_plan_viewed",{company_id:D})},[F,D,eW]),(0,n.useEffect)(()=>{F&&!Y&&B&&!eD.current&&(eD.current=!0,eQ.current="plans_loaded",eB.current=e$?"awaiting_plan_interaction":"no_plans_available",eW("signup_plans_loaded",{company_id:D,available_plan_count:e$,has_available_plans:e$>0}))},[F,D,Y,B,e$,eW]),(0,n.useEffect)(()=>{F&&V&&!eI.current&&(eI.current=!0,eQ.current="plans_load_failed",eB.current="plans_api_error",eW("signup_plan_load_failed",{company_id:D,request:"plans",...k(W)}))},[F,D,W,V,eW]),(0,n.useEffect)(()=>{F&&$&&!eF.current&&(eF.current=!0,eQ.current="billing_summary_failed",eB.current="billing_summary_api_error",eW("signup_plan_load_failed",{company_id:D,request:"billing_summary",...k(ee)}))},[ee,$,F,D,eW]),(0,n.useEffect)(()=>{if(!F)return;let e=()=>{eH.current||ez.current||(ez.current=!0,eW("signup_plan_abandoned",{company_id:D,last_stage:eQ.current,inferred_reason:eB.
1current,selected_plan_id:eY.current,elapsed_seconds:Math.max(0,Math.round((Date.now()-eU.current)/1e3))}))};return window.addEventListener("pagehide",e),()=>window.removeEventListener("pagehide",e)},[F,D,eW]),(0,n.useEffect)(()=>{F&&tr&&tp&&!eP&&eV.current!==tr.id&&(eV.current=tr.id,eQ.current="trial_consent_required",eB.current="communications_consent_not_accepted",eW("signup_trial_consent_required",{company_id:D,plan_id:tr.id,plan_tier:S(tr)}))},[F,D,tp,tr,eW,eP]),(0,n.useEffect)(()=>{eq(null)},[null==tr?void 0:tr.id]),(0,n.useEffect)(()=>{ev(null),ej(null),eq(null),eY.current=null},[ey]);let tf=e=>{var t,a,r;return{company_id:D,plan_id:null!=(t=null==e?void 0:e.id)?t:null,plan_tier:e?S(e):null,plan_currency:null!=(a=null==e?void 0:e.currency)?a:null,plan_max_area_ha:null!=(r=null==e?void 0:e.max_area_ha)?r:null}},tb=()=>{F&&e5&&(eQ.current="area_entered",eB.current=e7?"area_exceeds_self_service_limit":"awaiting_plan_selection",eW("signup_plan_area_completed",{company_id:D,exceeds_self_service_limit:e7,has_matching_plans:!!(e6&&te.length),matching_plan_count:te.length}))},t_={company_id:D,plan_id:null,plan_tier:null,trial_mode:"generic"},tv=async()=>{if(tp&&!eP){eQ.current="trial_blocked",eB.current="communications_consent_not_accepted",F&&eW("signup_trial_blocked",{...t_,reason:"communications_consent_not_accepted"}),s.oR.error("Debes aceptar comunicaciones para iniciar la prueba gratis.");return}eQ.current="trial_start_clicked",eB.current="trial_request_in_progress",F&&eW("signup_trial_clicked",t_);try{await et({companyId:D,accepted_product_updates:tp?eP:void 0}).unwrap(),eH.current=!0,eQ.current="trial_started",eB.current="completed",F&&eW("signup_trial_completed",t_),s.oR.success("\xa1Prueba gratis activada!",{autoClose:1500}),I?I():window.location.href="/front"}catch(r){var e,t,a;eQ.current="trial_start_failed",eB.current=(null==r||null==(e=r.data)?void 0:e.code)||((null==r?void 0:r.status)?"http_".concat(r.status):"trial_api_error"),F&&eW("signup_trial_failed",{...t_,...k(r)}),s.oR.error((null==r||null==(t=r.data)?void 0:t.error)||(null==r||null==(a=r.data)?void 0:a.detail)||"No pudimos iniciar la prueba.")}},tw=async()=>{if(!tr){eQ.current="payment_blocked",eB.current="no_plan_selected",F&&eW("signup_payment_blocked",{company_id:D,reason:"no_plan_selected"}),s.oR.error("Eleg\xed un plan.");return}if(!tm){eQ.current="payment_blocked",eB.current="billing_profile_required",F&&eW("signup_payment_blocked",{...tf(tr),reason:"billing_profile_required"}),eT(!0),s.oR.error("Completa los datos fiscales antes de pagar.");return}eQ.current="payment_clicked",eB.current="payment_request_in_progress",F&&eW("signup_payment_clicked",tf(tr));try{let e=await es({companyId:D,template_id:tr.id}).unwrap();eH.current=!0,eQ.current="payment_checkout_created",eB.current="completed",F&&eW("signup_payment_checkout_created",{...tf(tr),contract_id:e.contract_id}),window.location.href=e.subscribe_url}catch(n){var e,t,a,r;(null==n||null==(e=n.data)?void 0:e.code)==="billing_profile_required"&&eT(!0),eQ.current="payment_failed",eB.current=(null==n||null==(t=n.data)?void 0:t.code)||((null==n?void 0:n.status)?"http_".concat(n.status):"payment_api_error"),F&&eW("signup_payment_failed",{...tf(tr),...k(n)}),s.oR.error((null==n||null==(a=n.data)?void 0:a.error)||(null==n||null==(r=n.data)?void 0:r.detail)||"No pudimos generar el pago.")}},tj=async()=>{if(!tr)return void s.oR.error("Eleg\xed un plan.");if(!tm){eT(!0),s.oR.error("Completa los datos fiscales antes de pagar.");return}try{let e=await eo({companyId:D,template_id:tr.id}).unwrap();eq(e)}catch(r){var e,t,a;(null==r||null==(e=r.data)?void 0:e.code)==="billing_profile_required"&&eT(!0),s.oR.error((null==r||null==(t=r.data)?void 0:t.error)||(null==r||null==(a=r.data)?void 0:a.detail)||"No pudimos calcular el cambio.")}},tC=async()=>{if(!tr)return void s.oR.error("Eleg\xed un plan.");if(!tm){eT(!0),s.oR.error("Completa los datos fiscales antes de pagar.");return}try{let e=await ec({companyId:D,template_id:tr.id}).unwrap();if(e.requires_payment&&e.redirect_url){window.location.href=e.redirect_url;return}s.oR.success("downgrade"===e.preview.change_type?"Cambio de plan confirmado.":"Plan actualizado.",{autoClose:1500}),window.location.reload()}catch(r){var e,t,a;(null==r||null==(e=r.data)?void 0:e.code)==="billing_profile_required"&&eT(!0),s.oR.error((null==r||null==(t=r.data)?void 0:t.error)||(null==r||null==(a=r.data)?void 0:a.detail)||"No pudimos generar el pago.")}},tq=async()=>
1{if(!eE.trim()){F&&eW("signup_sales_contact_blocked",{company_id:D,reason:"message_required"}),s.oR.error("Escrib\xed tu consulta.");return}if(!eO.trim()&&!eM.trim()){F&&eW("signup_sales_contact_blocked",{company_id:D,reason:"contact_details_required"}),s.oR.error("Dejanos un email o tel\xe9fono para poder responderte.");return}eQ.current="sales_contact_submitted",eB.current="sales_request_in_progress",F&&eW("signup_sales_contact_submitted",{company_id:D,selected_plan_id:eY.current,has_email:!!eO.trim(),has_phone:!!eM.trim()});try{await ed({message:eE.trim(),email:eO.trim()||void 0,phone:eM.trim()||void 0,hectares:eh||void 0}).unwrap(),eH.current=!0,eQ.current="sales_contact_completed",eB.current="completed_via_sales",F&&eW("signup_sales_contact_completed",{company_id:D,selected_plan_id:eY.current}),s.oR.success("\xa1Recibimos tu consulta! Te contactamos pronto.",{autoClose:2500}),eG(!1),eR(""),eL(""),eA("")}catch(a){var e,t;eQ.current="sales_contact_failed",eB.current=(null==a||null==(e=a.data)?void 0:e.code)||((null==a?void 0:a.status)?"http_".concat(a.status):"sales_contact_api_error"),F&&eW("signup_sales_contact_failed",{company_id:D,...k(a)}),s.oR.error((null==a||null==(t=a.data)?void 0:t.detail)||"No pudimos enviar tu consulta. Prob\xe1 de nuevo.")}},tN=e=>{eL(e=>e||z||""),eA(e=>e||H||""),e?eR(e):eR(e=>e||U),eQ.current="sales_contact_opened",eB.current="sales_form_not_submitted",F&&eW("signup_sales_contact_opened",{company_id:D,selected_plan_id:eY.current,context:e?"manual_contract":"self_service"}),eG(!0)},tT=eK?w.map(e=>{let t=ta(e);return{key:"livestock_".concat(e),label:j[e],note:C[e],featureSet:N[e],plan:t,featured:ew===e,onSelect:()=>(e=>{var t;let a=ta(e);ej(e),eY.current=null!=(t=null==a?void 0:a.id)?t:null,eQ.current="plan_selected",eB.current="plan_selected_without_start",F&&eW("signup_plan_selected",tf(a))})(e),costLabel:t?function(e){var t;let a=Number(e.max_animals),r=Number(e.price_amount);if(!a||!r)return null;let n=(r*(null!=(t=G[e.billing_interval])?t:12)/a).toLocaleString("es-UY",{minimumFractionDigits:2,maximumFractionDigits:2});return"".concat(e.currency," ").concat(n," por cabeza al a\xf1o")}(t):null}}):_.map(e=>{let t=tt(e);return{key:e,label:v[e],note:void 0,featureSet:q[e],plan:t,featured:e_===e,onSelect:()=>(e=>{var t;let a=tt(e);ev(e),eY.current=null!=(t=null==a?void 0:a.id)?t:null,eQ.current="plan_selected",eB.current="plan_selected_without_start",F&&eW("signup_plan_selected",tf(a))})(e),costLabel:t?function(e){var t;let a=Number(e.max_area_ha),r=Number(e.price_amount);if(!a||!r)return null;let n=(r*(null!=(t=G[e.billing_interval])?t:12)/a).toLocaleString("es-UY",{minimumFractionDigits:2,maximumFractionDigits:2});return"".concat(e.currency," ").concat(n," por ha al a\xf1o")}(t):null}}),tP=e0?(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsx)("div",{className:"inline-flex rounded-full border bg-white p-1 shadow-sm",style:{borderColor:x},children:Object.keys(b).map(e=>(0,r.jsx)("button",{type:"button",onClick:()=>eg(e),className:"rounded-full px-4 py-1.5 text-sm font-semibold transition",style:ey===e?{backgroundColor:x,color:"#ffffff"}:{color:x},children:b[e]},e))})}):null,tS=th?(0,r.jsx)("div",{className:"rounded-2xl border-2 bg-white p-5 shadow-sm",style:{borderColor:x},children:(0,r.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsxs)("p",{className:"text-lg font-bold",style:{color:x},children:["Prob\xe1 CropIA gratis por ",tg]}),(0,r.jsx)("p",{className:"mt-1 text-sm text-gray-600",children:"Acceso completo, sin datos de pago. Hasta 500 ha o 500 animales."}),tp&&(0,r.jsxs)("label",{className:"mt-2 flex items-start gap-2 text-xs text-gray-700",children:[(0,r.jsx)("input",{type:"checkbox",checked:eP,onChange:e=>{var t;eS(t=e.target.checked),F&&(eQ.current="trial_consent_changed",eB.current=t?"awaiting_trial_start":"communications_consent_not_accepted",eW("signup_trial_consent_changed",{company_id:D,accepted:t}))},className:"mt-0.5 h-4 w-4 flex-none rounded border-gray-300 focus:ring-green-800",style:{accentColor:x}}),(0,r.jsx)("span",{children:"Acepto recibir comunicaciones sobre nuevas funcionalidades. Es obligatorio para iniciar la prueba gratis."})]})]}),(0,r.jsx)("button",{type:"button",onClick:tv,disabled:ea||en||tp&&!eP,className:"flex shrink-0 justify-center rounded-lg px-6 py-3 text-base font-semibold text-white shadow-sm transition hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-60",style:{backgroundColor:x},children:ea?(0,r.jsx)(i.default,{sm:!0}):"Empezar gratis"})]})}):null,tk=ek?(0,r.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/40 px-4",children:(0,r.jsxs)("div",{className:"w-full max-w-md rounded-2xl bg-white p-6 shadow-xl",children:[(0,r.jsx)("h3",{className:"text-lg font-semibold text-gray-900",children:"Hablar con ventas"}),(0,r.jsx)("p",{className:"mt-1 text-sm text-gray-500",children:"Contanos qu\xe9 necesit\xe1s y te contactamos para armar el mejor plan."}),(0,r.jsxs)("div",{className:"mt-4 space-y-3",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-900",children:"Tu email"}
1),(0,r.jsx)("input",{type:"email",value:eO,onChange:e=>eL(e.target.value),placeholder:"[email protected]",className:"mt-1 block w-full rounded-md bg-white px-3 py-1.5 text-sm text-gray-900 outline outline-1 -outline-offset-1 outline-gray-300 focus:outline focus:outline-2 focus:-outline-offset-2 focus:outline-green-800"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-900",children:"Tu tel\xe9fono / WhatsApp"}),(0,r.jsx)("input",{type:"tel",inputMode:"tel",value:eM,onChange:e=>eA(e.target.value),placeholder:"Ej. +598 99 123 456",className:"mt-1 block w-full rounded-md bg-white px-3 py-1.5 text-sm text-gray-900 outline outline-1 -outline-offset-1 outline-gray-300 focus:outline focus:outline-2 focus:-outline-offset-2 focus:outline-green-800"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-900",children:"Tu consulta"}),(0,r.jsx)("textarea",{value:eE,onChange:e=>eR(e.target.value),rows:4,placeholder:"Ej.: ".concat(U),className:"mt-1 block w-full rounded-md bg-white px-3 py-2 text-sm text-gray-900 outline outline-1 -outline-offset-1 outline-gray-300 focus:outline focus:outline-2 focus:-outline-offset-2 focus:outline-green-800"})]})]}),(0,r.jsxs)("div",{className:"mt-5 flex justify-end gap-2",children:[(0,r.jsx)("button",{type:"button",onClick:()=>eG(!1),className:"rounded-md px-3 py-2 text-sm font-medium text-gray-600 hover:bg-gray-100",children:"Cancelar"}),(0,r.jsx)("button",{type:"button",onClick:tq,disabled:em||!eE.trim(),className:"inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-semibold text-white shadow-sm transition hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-60",style:{backgroundColor:x},children:em?(0,r.jsx)(i.default,{sm:!0}):"Enviar consulta"})]})]})}):null;if(Y||X)return(0,r.jsx)("div",{className:"flex justify-center py-10",children:(0,r.jsx)(i.default,{lg:!0})});if(V||$)return(0,r.jsxs)("div",{className:"mx-auto max-w-xl rounded-2xl border border-red-200 bg-red-50 px-6 py-7 text-center",children:[(0,r.jsx)("h3",{className:"text-lg font-semibold text-red-950",children:"No pudimos cargar los planes"}),(0,r.jsx)("p",{className:"mt-2 text-sm text-red-800",children:"Tu empresa ya qued\xf3 guardada. Pod\xe9s volver a intentar sin completar nuevamente los pasos anteriores."}),(0,r.jsx)("button",{type:"button",onClick:()=>{eQ.current="plan_load_retry_clicked",eB.current="retry_in_progress",F&&eW("signup_plan_load_retry_clicked",{company_id:D,failed_request:V?"plans":"billing_summary"}),V&&Z(),$&&K()},className:"mt-4 rounded-md px-5 py-2.5 text-sm font-semibold text-white shadow-sm transition hover:opacity-90",style:{backgroundColor:x},children:"Volver a intentar"})]});if(ti)return(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsxs)("div",{className:"mx-auto max-w-2xl rounded-lg border border-amber-200 bg-amber-50 px-5 py-4 text-sm text-amber-950",children:[(0,r.jsx)("p",{className:"font-semibold",children:"Este plan se gestiona manualmente."}),(0,r.jsx)("p",{className:"mt-1 text-amber-900",children:"Para cambiarlo no generamos checkout de dLocalGo. Coordin\xc3\xa1 el cambio con ventas."}),(0,r.jsx)("button",{type:"button",onClick:()=>tN("Quiero cambiar un plan de CropIA que fue gestionado manualmente. Necesito coordinar el cambio con ventas."),className:"mt-3 inline-flex items-center rounded-md px-4 py-2 text-sm font-semibold text-white shadow-sm transition hover:opacity-90",style:{backgroundColor:x},children:"Hablar con ventas"})]}),tk]});if(!e$)return(0,r.jsx)("p",{className:"text-center text-sm text-gray-500",children:"No hay planes disponibles."});if(F){let e=(0,r.jsxs)("div",{className:"flex h-full flex-col rounded-2xl border-2 bg-white p-5 shadow-sm",style:{borderColor:x},children:[(0,r.jsxs)("h3",{className:"text-lg font-bold leading-6",style:{color:x},children:["\xbfCre\xe9s que ning\xfan plan se acerca a tus necesidades?"," ","Contact\xe1 ventas para cotizaciones personalizadas"]}),(0,r.jsxs)("p",{className:"mt-3 text-sm leading-6 text-gray-600",children:["Un representante te ayuda a armar el plan ideal para tu operaci\xf3n. Y si prefer\xeds, tambi\xe9n ofrecemos ",(0,r.jsx)("span",{className:"font-semibold text-gray-800",children:"otros m\xe9todos de pago con descuento"}),"."]}),(0,r.jsx)("button",{type:"button",onClick:()=>tN(),className:"mt-auto flex w-full justify-center rounded-md px-3 py-2.5 text-base font-semibold text-white shadow-sm transition hover:opacity-90",style:{backgroundColor:x},children:"Contactar ventas"})]});return(0,r.jsxs)("div",{className:"space-y-4",children:[tS,tP,(0,r.jsx)("div",{className:"rounded-2xl border border-gray-200 bg-white p-4 shadow-sm",children:(0,r.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[(0,r.jsx)("label",{htmlFor:"quantity-input",className:"text-lg font-semibold text-gray-900",children:eK?"Cantidad de animales":"Hect\xe1reas a manejar"}),(0,r.jsx)("input",{id:"quantity-input",type:"number",min:0,inputMode:"numeric",value:e5,onChange:e=>e9(e.target.value.replace(/\D/g,"")),onBlur:tb,placeholder:eK?"Ej. 300":"Ej. 1200",className:"w-40 rounded-md bg-white px-3 py-2 text-base text-gray-900 outline outline-1 -outline-offset-1 outline-gray-300 focus:outline focus:outline-2 focus:-outline-offset-2 focus:outline-green-800"})]}),e6&&!e7&&(0,r.jsxs)("p",{className:"text-sm text-gray-500",children:["Te mostramos planes que cubren hasta"," ",(0,r.jsxs)("span",{className:"font-semibold text-gray-700",children:[e6," ",e3]}),"."]})]})}),(0,r.jsx)("div",{className:"text-center",children:(0,r.jsx)("h3",{className:"text-lg font-semibold text-gray-900",children:eK?"Planes de gesti\xf3n ganadera":"Planes de gesti\xf3n agr\xedcola"})}),(0,r.jsxs)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 ".concat(eK?"lg:grid-cols-3":"lg:grid-cols-4"),children:[e6&&!e7?tT.map(e=>{let t=e.plan;if(!t)return null;let a=e.featured,n=e.featureSet,s=t.max_clients;return(0,r.jsxs)("button",{type:"button",onClick:e.onSelect,className:"flex h-full flex-col rounded-2xl px-4 py-5 text-left shadow-sm transition",style:{backgroundColor:a?x:"#ffffff",boxShadow:a?"0 0 0 3px ".concat(f):"0 0 0 1px #e5e7eb",color:a?"#ffffff"
1:"#111827"},children:[(0,r.jsx)("h3",{className:"text-lg font-bold leading-6",children:e.label}),e.note&&(0,r.jsx)("p",{className:"text-sm",style:{color:a?"#d1fae5":"#6b7280"},children:e.note}),(0,r.jsx)("p",{className:"mt-2",children:(0,r.jsx)(O,{amount:t.price_amount})}),(0,r.jsxs)("p",{className:"text-sm",style:{color:a?"#d1fae5":"#9ca3af"},children:[t.currency," / mes"]}),(0,r.jsxs)("div",{className:"mt-3 rounded-xl px-3 py-2",style:{backgroundColor:a?"rgba(255,255,255,0.12)":"#f0fdf4"},children:[(0,r.jsx)("p",{className:"text-base font-semibold",children:E(t)}),(0,r.jsxs)("p",{className:"text-sm",style:{color:a?"#ecfdf5":"#4b5563"},children:[t.max_users," usuarios \xb7 ",s," ",1===s?"cliente":"clientes"]}),e.costLabel&&(0,r.jsx)("p",{className:"mt-1 text-sm font-semibold",style:{color:a?"#ffffff":x},children:e.costLabel})]}),n.inheritsLabel&&(0,r.jsx)("p",{className:"mt-4 text-sm font-bold",style:{color:a?"#ecfdf5":x},children:n.inheritsLabel}),(0,r.jsx)("ul",{className:"mt-3 flex flex-col gap-y-2 text-sm leading-5",children:n.items.map(e=>(0,r.jsx)(A,{feature:e,featured:a},e.label))}),(0,r.jsx)("span",{className:"mt-auto flex w-full items-center justify-center rounded-full px-4 py-2 text-sm font-semibold",style:{backgroundColor:a?"rgba(255,255,255,0.22)":"rgba(20,123,76,0.08)",color:a?"#ffffff":x},children:a?"✓ Seleccionado":"Seleccionar este plan"})]},e.key)}):(0,r.jsx)("div",{className:"flex min-h-[16rem] items-center justify-center rounded-2xl border border-gray-200 bg-white p-6 text-center text-sm text-gray-500 sm:col-span-2 ".concat(eK?"lg:col-span-2":"lg:col-span-3"),children:e7?(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-base font-semibold text-gray-800",children:"Armemos un plan a medida"}),(0,r.jsxs)("p",{className:"mt-2 max-w-md text-sm text-gray-500",children:["Para m\xe1s de ",e8.toLocaleString("es")," ",e3," lo mejor es coordinar una propuesta con ventas. Dejanos tu tel\xe9fono ac\xe1 al lado y te contactamos."]})]}):eK?"Ingres\xe1 la cantidad de animales para ver los planes.":"Ingres\xe1 las hect\xe1reas para ver los planes."}),e]}),e6&&!e7&&(0,r.jsx)("div",{className:"sticky bottom-4 z-10",children:tr?tc?tu?(0,r.jsx)("div",{className:"rounded-2xl border border-gray-200 bg-white p-5 text-center shadow-lg",children:(0,r.jsx)("p",{className:"text-sm text-gray-600",children:"Este es tu plan actual."})}
1):(0,r.jsxs)("div",{className:"flex flex-col gap-4 rounded-2xl border-2 bg-white p-5 shadow-lg sm:flex-row sm:items-center sm:justify-between",style:{borderColor:x},children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-xs font-semibold uppercase tracking-wide text-gray-400",children:"Plan elegido"}),(0,r.jsx)("p",{className:"text-lg font-bold text-gray-900",children:tn}),(0,r.jsxs)("p",{className:"text-sm text-gray-500",children:[E(tr)," \xb7"," ",L(tr.price_amount,tr.currency)," / mes"]})]}),(0,r.jsx)("button",{type:"button",onClick:eC?tC:tj,disabled:ei||eu,className:"flex justify-center rounded-lg px-6 py-3 text-base font-semibold text-white shadow-sm transition hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-60",style:{backgroundColor:x},children:ei||eu?(0,r.jsx)(i.default,{sm:!0}):eC?"downgrade"===eC.change_type?"Confirmar cambio de plan":"Pagar diferencia y actualizar":"Revisar cambio de plan"})]}):(0,r.jsxs)("div",{className:"flex flex-col gap-4 rounded-2xl border-2 bg-white p-5 shadow-lg sm:flex-row sm:items-center sm:justify-between",style:{borderColor:x},children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-xs font-semibold uppercase tracking-wide text-gray-400",children:"Plan elegido"}),(0,r.jsx)("p",{className:"text-lg font-bold text-gray-900",children:tn}),(0,r.jsxs)("p",{className:"text-sm text-gray-500",children:[E(tr)," \xb7"," ",L(tr.price_amount,tr.currency)," / mes"]})]}),(0,r.jsx)("button",{type:"button",onClick:tw,disabled:el,className:"flex justify-center rounded-lg px-6 py-3 text-base font-semibold text-white shadow-sm transition hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-60",style:{backgroundColor:x},children:el?"Generando pago...":"Pagar ahora"})]}):(0,r.jsxs)("div",{className:"rounded-2xl border-2 border-dashed bg-white p-5 text-center shadow-md",style:{borderColor:x},children:[(0,r.jsx)("p",{className:"text-base font-bold",style:{color:x},children:"Seleccion\xe1 un plan para continuar"}),(0,r.jsx)("p",{className:"mt-1 text-sm text-gray-500",children:"Toc\xe1 una de las tarjetas de arriba y despu\xe9s continu\xe1 con el pago."})]})}),eN&&(0,r.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/40 px-4",children:(0,r.jsx)("div",{className:"max-h-[calc(100vh-2rem)] w-full max-w-2xl overflow-y-auto rounded-2xl bg-white p-5 shadow-xl",children:(0,r.jsx)(u,{companyId:D,profile:null==J?void 0:J.billing_profile,companyCountry:null==J?void 0:J.company_country,onSaved:()=>{K(),eT(!1)}})})}),tk]})}
1return(0,r.jsxs)("div",{className:F?"space-y-3 md:flex md:min-h-0 md:flex-1 md:flex-col":"space-y-8",children:[J&&!F&&(0,r.jsx)("div",{className:"mx-auto max-w-2xl rounded-lg border border-gray-200 bg-white text-sm shadow-sm ".concat(F?"px-3 py-2":"px-4 py-3"),children:(0,r.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"font-semibold text-gray-900",children:"Datos fiscales"}),(0,r.jsx)("p",{className:tm?"text-green-700":"text-amber-700",children:tm?"".concat(null==(a=J.billing_profile)?void 0:a.legal_name," (").concat(null==(l=J.billing_profile)?void 0:l.fiscal_country,")"):"Pendientes para poder pagar"})]}),(0,r.jsx)("button",{type:"button",onClick:()=>eT(e=>!e),className:"w-fit rounded-md px-3 py-1.5 text-sm font-semibold text-white shadow-sm transition hover:opacity-90",style:{backgroundColor:x},children:tm?"Editar":"Completar"})]})}),eN&&(0,r.jsx)("div",{className:"mx-auto max-w-2xl",children:(0,r.jsx)(u,{companyId:D,profile:null==J?void 0:J.billing_profile,companyCountry:null==J?void 0:J.company_country,onSaved:()=>{K(),eT(!1)}})}),tS&&(0,r.jsx)("div",{className:"mx-auto max-w-2xl",children:tS}),tP,(0,r.jsxs)("div",{className:"mx-auto max-w-sm",children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-900",children:eK?"\xbfCu\xe1ntos animales vas a manejar?":"\xbfCu\xe1ntas hect\xe1reas vas a manejar?"}),(0,r.jsx)("input",{type:"number",min:0,inputMode:"numeric",value:e5,onChange:e=>e9(e.target.value.replace(/\D/g,"")),onBlur:tb,placeholder:eK?"Ej. 300":"Ej. 1200",className:"mt-1 block w-full rounded-md bg-white px-3 py-1.5 text-base text-gray-900 outline outline-1 -outline-offset-1 outline-gray-300 focus:outline focus:outline-2 focus:-outline-offset-2 focus:outline-green-800 sm:text-sm"}),e6&&!F&&(0,r.jsxs)("p",{className:"mt-2 text-center text-xs text-gray-500",children:["Mostrando planes que cubren hasta"," ",(0,r.jsxs)("span",{className:"font-semibold",children:[e6," ",e3]}),"."]})]}),e7?(0,r.jsxs)("div",{className:"mx-auto max-w-md rounded-lg border border-amber-200 bg-amber-50 px-4 py-3 text-center text-sm text-amber-900",children:["Para m\xe1s de ",e8.toLocaleString("es")," ",e3," armamos planes a medida. Escribinos para una cotizaci\xf3n."]}):e6?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"grid grid-cols-1 ".concat(eK?"lg:grid-cols-2":"lg:grid-cols-3"," ").concat(F?"gap-3 md:min-h-0":"gap-6"),children:tT.map(e=>{let t=e.plan;if(!t)return null;let a=e.featured,n=e.featureSet,s=t.max_clients;return(0,r.jsxs)("button",{type:"button",onClick:e.onSelect,className:"flex flex-col text-left shadow-sm transition ".concat(F?"rounded-2xl px-4 py-4":"rounded-3xl px-6 py-8"),style:{backgroundColor:a?x:"#ffffff",boxShadow:a?"0 0 0 3px ".concat(f):"0 0 0 1px #e5e7eb",color:a?"#ffffff":"#111827"},children:[(0,r.jsx)("h3",{className:F?"text-base font-semibold":"text-lg font-semibold",children:e.label}),e.note&&(0,r.jsx)("p",{className:"text-xs",style:{color:a?"#d1fae5":"#6b7280"},children:e.note}),(0,r.jsx)("p",{className:F?"mt-2":"mt-3",children:(0,r.jsx)(O,{amount:t.price_amount,compact:F})}),(0,r.jsxs)("p",{className:"text-xs",style:{color:a?"#d1fae5":"#9ca3af"},children:[t.currency," / mes"]}),(0,r.jsx)("p",{className:"".concat(F?"hidden":"mt-1"," text-xs"),style:{color:a?"#d1fae5":"#6b7280"},children:M(t.price_amount,t.currency,tx)}),(0,r.jsxs)("div",{className:"".concat(F?"mt-3":"mt-4"," rounded-xl px-3 py-2"),style:{backgroundColor:a?"rgba(255,255,255,0.12)":"#f0fdf4"},children:[(0,r.jsx)("p",{className:"text-sm font-semibold",children:E(t)}),(0,r.jsxs)("p",{className:"text-xs",style:{color:a?"#ecfdf5":"#4b5563"},children:[t.max_users," usuarios \xb7 ",s," ",1===s?"cliente":"clientes"]}),e.costLabel&&(0,r.jsx)("p",{className:"mt-1 text-xs font-semibold",style:{color:a?"#ffffff":x},children:e.costLabel})]}),n.inheritsLabel&&(0,r.jsx)("p",{className:"".concat(F?"mt-3 text-xs":"mt-6 text-sm"," font-semibold"),style:{color:a?"#ecfdf5":x},children:n.inheritsLabel}),(0,r.jsx)("ul",{className:"".concat(F?"mt-3 gap-y-1 text-xs":"mt-3 gap-y-2 text-sm"," flex flex-col"),children:n.items.map(e=>(0,r.jsx)(A,{feature:e,featured:a},e.label))}),(0,r.jsx)("span",{className:"".concat(F?"mt-4":"mt-8"," inline-flex w-fit items-center rounded-full px-3 py-1 text-xs font-semibold"),style:{backgroundColor:a?"rgba(255,255,255,0.22)":"#f3f4f6",color:a?"#ffffff"
1:"#6b7280"},children:a?"Seleccionado":"Seleccionar"})]},e.key)})}),tr&&!tm&&!eN&&(0,r.jsx)("div",{className:"mx-auto max-w-2xl rounded-lg border border-amber-200 bg-amber-50 text-sm text-amber-900 ".concat(F?"px-3 py-2":"px-4 py-3"),children:(0,r.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,r.jsx)("span",{children:"Para pagar necesitamos los datos fiscales de la empresa."}),(0,r.jsx)("button",{type:"button",onClick:()=>eT(!0),className:"w-fit rounded-md bg-white px-3 py-1.5 text-sm font-semibold text-amber-900 shadow-sm ring-1 ring-amber-200 hover:bg-amber-100",children:"Completar datos fiscales"})]})}),(0,r.jsx)("div",{className:"mx-auto max-w-md ".concat(F?"space-y-2":"space-y-3"),children:tc?(0,r.jsxs)(r.Fragment,{children:[tu?(0,r.jsx)("p",{className:"rounded-md bg-gray-50 px-3 py-2 text-center text-sm text-gray-600",children:"Este es tu plan actual."}):eC?(0,r.jsxs)("div",{className:"rounded-lg border border-green-200 bg-green-50 px-4 py-3 text-sm text-green-950",children:[(0,r.jsxs)("div",{className:"flex justify-between gap-4",children:[(0,r.jsx)("span",{children:"Cr\xe9dito del plan actual"}),(0,r.jsx)("strong",{children:L(eC.credit_amount,eC.currency)})]}),(0,r.jsxs)("div",{className:"mt-1 flex justify-between gap-4",children:[(0,r.jsx)("span",{children:"Costo del nuevo plan por el per\xedodo restante"}),(0,r.jsx)("strong",{children:L(eC.target_prorated_amount,eC.currency)})]}),(0,r.jsxs)("div",{className:"mt-2 flex justify-between gap-4 border-t border-green-200 pt-2",children:[(0,r.jsx)("span",{children:"Diferencia neta"}),(0,r.jsx)("strong",{children:L(eC.net_amount_due,eC.currency)})]}),(0,r.jsxs)("div",{className:"mt-1 flex justify-between gap-4",children:[(0,r.jsx)("span",{children:"IVA"}),(0,r.jsx)("strong",{children:L(eC.tax_amount_due,eC.currency)})]}),(0,r.jsxs)("div",{className:"mt-1 flex justify-between gap-4 text-base",children:[(0,r.jsx)("span",{children:"A pagar ahora"}),(0,r.jsx)("strong",{children:L(eC.gross_amount_due,eC.currency)})]}),(0,r.jsxs)("p",{className:"mt-2 text-xs text-green-800",children:["Pr\xf3xima renovaci\xf3n: ",(R=eC.next_billing_at)?(0,y.o)(R).toLocaleDateString("es-UY",{day:"2-digit",month:"short",year:"numeric"}):"sin fecha"," por"," ",M(eC.target_amount,eC.currency,tx),"."]}),"downgrade"===eC.change_type&&(0,r.jsx)("p",{className:"mt-2 text-xs text-green-800",children:"No se cobra nada ahora. Al confirmar, los limites del nuevo plan quedan activos y dLocalGo cambia la suscripcion recurrente para la proxima renovacion."})]}):null,(0,r.jsx)("button",{type:"button",onClick:eC?tC:tj,disabled:!tr||tu||ei||eu,className:"flex w-full justify-center rounded-md px-3 text-sm font-semibold text-white shadow-sm transition hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-60 ".concat(F?"py-1.5":"py-2"),style:{backgroundColor:x},children:ei||eu?(0,r.jsx)(i.default,{sm:!0}):eC?"downgrade"===eC.change_type?"Confirmar cambio de plan":"Pagar diferencia y actualizar":td?"Revisar cambio de plan":"Calcular diferencia"})]}):(0,r.jsx)("button",{type:"button",onClick:tw,disabled:el||!tr,className:"flex w-full justify-center rounded-md px-3 text-sm font-semibold text-white shadow-sm transition hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-60 ".concat(F?"py-1.5":"py-2"),style:{backgroundColor:x},children:el?"Generando pago...":"Suscribirme y pagar"})})]}):(0,r.jsx)("p",{className:"text-center text-sm text-gray-500",children:eK?"Ingres\xe1 la cantidad de animales para ver los planes.":"Ingres\xe1 las hect\xe1reas para ver los planes."}),(0,r.jsxs)("div",{className:"mx-auto max-w-2xl border border-gray-200 bg-gray-50 text-center ".concat(F?"rounded-xl px-4 py-3":"rounded-2xl px-6 py-5"),children:[(0,r.jsx)("p",{className:"text-sm font-semibold text-gray-900",children:"\xbfCre\xe9s que ning\xfan plan se acerca a tus necesidades? Contact\xe1 ventas para cotizaciones personalizadas."}),(0,r.jsx)("p",{className:"".concat(F?"hidden":"mx-auto mt-1"," max-w-md text-xs text-gray-500"),children:"Habl\xe1 con ventas y armamos el plan ideal para tu operaci\xf3n."}),(0,r.jsx)("button",{type:"button",onClick:()=>tN(),className:"inline-flex items-center rounded-md border text-sm font-semibold transition hover:bg-white ".concat(F?"mt-2 px-3 py-1.5":"mt-3 px-4 py-2"),style:{borderColor:x,color:x},children:"Hablar con ventas"})]}),tk]})}},39848:(e,t,a)=>{a.d(t,{F4:()=>x,Hk:()=>G,IR:()=>b,JN:()=>i,KF:()=>o,O7:()=>h,Ob:()=>d,SP:()=>E,U7:()=>v,WP:()=>_,XI:()=>g,ZV:()=>l,b2:()=>u,bX:()=>C,fC:()=>S,iN:()=>w,iV:()=>T,j6:()=>m,jk:()=>k,k4:()=>q,m7:()=>c,oY:()=>p,sQ:()=>P,tq:()=>n,ub:()=>j,vR:()=>N,z4:()=>s,zG:()=>y});var r=a(83239);let n="manual_touchpoint",s=[["new","Nuevos"],["nurturing","En seguimiento"],["interested","Interesados"],["contacted","Contactados"],["qualified","Calificados"],["converted","Convert
1idos"],["customer","Clientes"],["disqualified","Descartados"],["unsubscribed","Dados de baja"]],{useGetGrowthMeQuery:l,useRecordGrowthOnboardingEventMutation:o,useGetGrowthDashboardQuery:i,useGetGrowthLeadsQuery:c,useGetGrowthLeadQuery:u,useGetGrowthCampaignsQuery:d,useGetGrowthCampaignQuery:m,useCreateGrowthCampaignMutation:p,useUpdateGrowthCampaignMutation:y,useExportGrowthLeadsMutation:g,useCreateGrowthLeadMutation:h,useDeleteGrowthLeadMutation:x,useUpdateGrowthLeadMutation:f,useSetGrowthLeadStatusMutation:b,useStopGrowthLeadMutation:_,useSendGrowthEmailMutation:v,useEnrollGrowthLeadMutation:w,useRecordGrowthTouchpointMutation:j,usePreviewGrowthImportMutation:C,useImportGrowthLeadsMutation:q,useGetGrowthImportsQuery:N,useGetGrowthTemplatesQuery:T,useCreateGrowthTemplateMutation:P,useUpdateGrowthTemplateMutation:S,useGetGrowthAutomationsQuery:k,useCreateGrowthAutomationMutation:G,useUpdateGrowthAutomationMutation:E}=r.l.injectEndpoints({endpoints:e=>({getGrowthMe:e.query({query:()=>"growth/internal/me/"}),recordGrowthOnboardingEvent:e.mutation({query:e=>({url:"growth/events/onboarding/",method:"POST",body:e})}),getGrowthDashboard:e.query({query:()=>"growth/internal/dashboard/",providesTags:["GrowthCRM"]}),getGrowthLeads:e.query({query:e=>({url:"growth/internal/leads/",params:e}),providesTags:["GrowthCRM"]}),getGrowthCampaigns:e.query({query:e=>({url:"growth/internal/campaigns/",params:(null==e?void 0:e.include_tests)?{include_tests:1}:void 0}),providesTags:["GrowthCRM"]}),getGrowthCampaign:e.query({query:e=>"growth/internal/campaigns/".concat(e,"/"),providesTags:["GrowthCRM"]}),createGrowthCampaign:e.mutation({query:e=>({url:"growth/internal/campaigns/",method:"POST",body:e}),invalidatesTags:["GrowthCRM"]}),updateGrowthCampaign:e.mutation({query:e=>{let{id:t,body:a}=e;return{url:"growth/internal/campaigns/".concat(t,"/test/"),method:"POST",body:a}},invalidatesTags:["GrowthCRM"]}),exportGrowthLeads:e.mutation({queryFn:async(e,t,a,r)=>{let n=new URLSearchParams(Object.entries(e).filter(e=>{let[,t]=e;return void 0!==t&&""!==t})).toString(),s=await r({url:"growth/internal/leads/export/".concat(n?"?".concat(n):""),method:"GET",responseHandler:async e=>{if(!e.ok){var t;throw Error((null==(t=await e.json().catch(()=>null))?void 0:t.detail)||"No se pudo exportar")}return e.blob()}});if(s.error)return{error:s.error};let l=window.URL.createObjectURL(s.data),o=document.createElement("a");return o.href=l,o.download="leads_cropia_".concat(new Date().toISOString().slice(0,10),".xlsx"),document.body.appendChild(o),o.click(),o.remove(),window.URL.revokeObjectURL(l),{data:{success:!0}}}}),getGrowthLead:e.query({query:e=>"growth/internal/leads/".concat(e,"/"),providesTags:["GrowthCRM"]}),createGrowthLead:e.mutation({query:e=>({url:"growth/internal/leads/",method:"POST",body:e}),invalidatesTags:["GrowthCRM"]}),updateGrowthLead:e.mutation({query:e=>{let{id:t,body:a}=e;return{url:"growth/internal/leads/".concat(t,"/"),method:"PATCH",body:a}},invalidatesTags:["GrowthCRM"]}),deleteGrowthLead:e.mutation({query:e=>({url:"growth/internal/leads/".concat(e,"/"),method:"DELETE"}),invalidatesTags:["GrowthCRM"]}),setGrowthLeadStatus:e.mutation({query:e=>{let{id:t,...a}=e;return{url:"growth/internal/leads/".concat(t,"/status/"),method:"POST",body:a}},invalidatesTags:["GrowthCRM"]}),stopGrowthLead:e.mutation({query:e=>({url:"growth/internal/leads/".concat(e,"/stop/"),method:"POST"}),invalidatesTags:["GrowthCRM"]}),sendGrowthEmail:e.mutation({query:e=>{let{id:t,...a}=e;return{url:"growth/internal/leads/".concat(t,"/emails/"),method:"POST",body:a}},invalidatesTags:["GrowthCRM"]}),recordGrowthTouchpoint:e.mutation({query:e=>{let{id:t,...a}=e;return{url:"growth/internal/leads/".concat(t,"/touchpoints/"),method:"POST",body:a}},invalidatesTags:["GrowthCRM"]}),enrollGrowthLead:e.mutation({query:e=>{let{id:t,automation_id:a}=e;return{url:"growth/internal/leads/".concat(t,"/enroll/"),method:"POST",body:{automation_id:a}}},invalidatesTags:["GrowthCRM"]}),previewGrowthImport:e.mutation({query:e=>({url:"growth/internal/imports/preview/",method:"POST",body:e})}),importGrowthLeads:e.mutation({query:e=>({url:"growth/internal/imports/",method:"POST",body:e}),invalidatesTags:["GrowthCRM"]}),getGrowthImports:e.query({query:()=>"growth/internal/imports/",providesTags:["GrowthCRM"]}),getGrowthTemplates:e.query({query:()=>"growth/internal/templates/",providesTags:["GrowthCRM"]}),createGrowthTemplate:e.mutation({query:e=>({url:"growth/internal/templates/",method:"POST",body:e}),invalidatesTags:["GrowthCRM"]}),updateGrowthTemplate:e.mutation({query:e=>{let{id:t,body:a}=e;return{url:"growth/internal/templates/".concat(t,"/"),method:"PATCH",body:a}},invalidatesTags:["GrowthCRM"]}),getGrowthAutomations:e.query({query:()=>"growth/internal/automations/",providesTags:["GrowthCRM"]}),createGrowthAutomation:e.mutation({query:e=>({url:"growth/internal/automations/",method:"POST",body:e}),invalidatesTags:["GrowthCRM"]}),updateGrowthAutomation:e.mutation({query:e=>{let{id:t,body:a}=e;return{url:"growth/internal/automations/".concat(t,"/"),method:"PATCH",body:a}},invalidatesTags:["GrowthCRM"]})})})},53317:(e,t,a)=>{a.r(t),a.d(t,{DEFAULT_AGRICULTURE_MODULES:()=>n,default:()=>D,useAcceptPermissionMutation:()=>M,useAssignPermissionClientMutation:()=>d,useAssignPermissionCompanyMutation:()=>u,useCompletePhoneInviteMutation:()=>y,useCreateClientMutation:()=>_,useDeclinePermissionMutation:()=>A,useDeleteClientPermissionMutation:()=>h,useDeleteCompanyPermissionMutation:()=>g,useFetchClientsPermissionsQuery:()=>l,useFetchCompanyPermissionsQuery:()=>i,useGetActiveAreaByClientQuery:()=>T,useGetAgentContextQuery:()=>v,useGetClientCapabilitiesQuery:()=>R,useGetClientDetailQuery:()=>j,useGetClientMachinesQuery:()=>C,useGetClientsDataQuery:()=>b,useGetCompanyContractsQuery:()=>k,useGetCompanyDataQuery:()=>x,useGetCompanyHierarchyQuery:()=>S,useGetCompanyPlanetUsageQuery:()=>E,useGetCropAreaByYearQuery:()=>P,useGetMyCompaniesQuery:()=>q,useGetPendingPermissionsQuery:()=>L,useLazyFetchClientsPermissionsQuery:()=>o,useLazyFetchCompanyPermissionsQuery:()=>c,useLazyGetClientCapabilitiesQuery:()=>O,useLazyGetClientPlanetCoverageQuery:()=>G,useLazyGetMyCompaniesQuery:()=>N,useLeaveOrganizationMutation:()=>U,usePreparePhoneInviteMutation:()=>m,useRequestPhoneInviteCodeMutation:()=>p,useUpdateAgentContextMutation:()=>
1w,useUpdateCompanyDataMutation:()=>f});var r=a(83239);let n=["agriculture_info","field_information","agriculture_precision_basic"],s=r.l.injectEndpoints({endpoints:e=>({fetchClientsPermissions:e.query({query:function(){let{fields:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{url:"enterprises/list_users_in_clients/?fields=".concat(null!=e?e:""),method:"GET"}}}),fetchCompanyPermissions:e.query({query:function(){let{fields:e,company_id:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{url:"enterprises/list_users_in_companies/?fields=".concat(null!=e?e:"","&company_id=").concat(null!=t?t:""),method:"GET"}}}),assignPermissionCompany:e.mutation({query:e=>({url:"enterprises/assign_permissions_company/",method:"POST",body:e})}),assignPermissionClient:e.mutation({query:e=>({url:"enterprises/assign_permissions_client/",method:"POST",body:e})}),preparePhoneInvite:e.mutation({query:e=>({url:"enterprises/invite_by_phone/prepare/",method:"POST",body:e})}),requestPhoneInviteCode:e.mutation({query:e=>({url:"enterprises/invite_by_phone/request-code/",method:"POST",body:e})}),completePhoneInvite:e.mutation({query:e=>({url:"enterprises/invite_by_phone/complete/",method:"POST",body:e})}),deleteCompanyPermission:e.mutation({query:e=>({url:"enterprises/delete/companyperm/",method:"DELETE",body:e})}),deleteClientPermission:e.mutation({query:e=>({url:"enterprises/delete/clientperm/",method:"DELETE",body:e})}),getCompanyData:e.query({query:e=>{let{company_id:t}=e;return{url:"enterprises/company/".concat(t),method:"GET"}}}),updateCompanyData:e.mutation({query:e=>{let{company_id:t,data:a}=e;return{url:"enterprises/company/".concat(t,"/update/"),method:"PATCH",body:a}}}),getClientsData:e.query({query:e=>{let{company_id:t,page:a=1,page_size:r}=e,n=new URLSearchParams;return n.append("company_id",String(t)),n.append("page",String(a)),r&&n.append("page_size",String(r)),{url:"enterprises/list_clients/?".concat(n.toString()),method:"GET"}}}),createClient:e.mutation({query:e=>({url:"enterprises/create_client/".concat(e.company_id,"/"),method:"POST",body:e})}),getAgentContext:e.query({query:e=>({url:"enterprises/company/".concat(e,"/agent/context/"),method:"GET"})}),updateAgentContext:e.mutation({query:e=>{let{companyId:t,data:a}=e;return{url:"enterprises/company/".concat(t,"/agent/context/update/"),method:"POST",body:a}}}),getClientDetail:e.query({query:e=>({url:"enterprises/client/".concat(e,"/"),method:"GET"}),keepUnusedDataFor:60}),getClientMachines:e.query({query:e=>({url:"enterprises/client/".concat(e,"/machines/"),method:"GET"})}),getMyCompanies:e.query({query:()=>({url:"enterprises/my-companies/",method:"GET"})}),getActiveAreaByClient:e.query({query:e=>{let{company_id:t}=e;return{url:"enterprises/company/".concat(t,"/active-area-by-client/"),method:"GET"}}}),getCropAreaByYear:e.query({query:e=>{let{company_id:t,client_id:a,field_id:r,ui_id:n,year:s,crop:l}=e,o=new URLSearchParams;void 0!==a&&o.append("client_id",a.toString()),void 0!==r&&o.append("field_id",r.toString()),void 0!==n&&o.append("ui_id",n.toString()),void 0!==s&&o.append("year",s.toString());let i=o.toString();return{url:"enterprises/company/".concat(t,"/crop-area-by-year/").concat(i?"?".concat(i):""),method:"GET"}}}),getCompanyHierarchy:e.query({query:e=>{let{company_id:t}=e;return{url:"enterprises/company/".concat(t,"/hierarchy/"),method:"GET"}}}),getCompanyContracts:e.query({query:e=>{let{company_id:t}=e;return{url:"enterprises/company/".concat(t,"/contracts/"),method:"GET"}}}),getClientPlanetCoverage:e.query({query:e=>{let{client_id:t,contract_id:a}=e;return{url:"enterprises/client/".concat(t,"/planet-coverage/").concat(void 0!==a?"?contract_id=".concat(a):""),method:"GET"}}}),getCompanyPlanetUsage:e.query({query:e=>{let{company_id:t,client_id:a}=e,r=new URLSearchParams;void 0!==a&&r.append("client_id",a.toString());let n=r.toString();return{url:"enterprises/company/".concat(t,"/planet-usage/").concat(n?"?".concat(n):""),method:"GET"}}}),getClientCapabilities:e.query({query:e=>({url:"enterprises/client/".concat(e,"/capabilities/"),method:"GET"}
1),keepUnusedDataFor:60}),getPendingPermissions:e.query({query:()=>({url:"enterprises/permissions/pending/",method:"GET"})}),acceptPermission:e.mutation({query:e=>({url:"enterprises/permissions/accept/",method:"POST",body:e})}),declinePermission:e.mutation({query:e=>({url:"enterprises/permissions/decline/",method:"POST",body:e})}),leaveOrganization:e.mutation({query:e=>({url:"enterprises/permissions/leave/",method:"POST",body:e})})})}),{useFetchClientsPermissionsQuery:l,useLazyFetchClientsPermissionsQuery:o,useFetchCompanyPermissionsQuery:i,useLazyFetchCompanyPermissionsQuery:c,useAssignPermissionCompanyMutation:u,useAssignPermissionClientMutation:d,usePreparePhoneInviteMutation:m,useRequestPhoneInviteCodeMutation:p,useCompletePhoneInviteMutation:y,useDeleteCompanyPermissionMutation:g,useDeleteClientPermissionMutation:h,useGetCompanyDataQuery:x,useUpdateCompanyDataMutation:f,useGetClientsDataQuery:b,useCreateClientMutation:_,useGetAgentContextQuery:v,useUpdateAgentContextMutation:w,useGetClientDetailQuery:j,useGetClientMachinesQuery:C,useGetMyCompaniesQuery:q,useLazyGetMyCompaniesQuery:N,useGetActiveAreaByClientQuery:T,useGetCropAreaByYearQuery:P,useGetCompanyHierarchyQuery:S,useGetCompanyContractsQuery:k,useLazyGetClientPlanetCoverageQuery:G,useGetCompanyPlanetUsageQuery:E,useGetClientCapabilitiesQuery:R,useLazyGetClientCapabilitiesQuery:O,useGetPendingPermissionsQuery:L,useAcceptPermissionMutation:M,useDeclinePermissionMutation:A,useLeaveOrganizationMutation:U}=s,D=s},53759:(e,t,a)=>{a.r(t),a.d(t,{default:()=>n});var r=a(95155);function n(e){let{sm:t,md:a,lg:n,xl:s}=e;return(0,r.jsxs)("div",{role:"status",children:[(0,r.jsxs)("svg",{"aria-hidden":"true",className:"inline ".concat(t?"w-4 h-4":a?"w-6 h-6":n?"w-8 h-8":s?"w-10 h-10":"w-6 h-6"," text-gray-200 animate-spin dark:text-gray-600 fill-green-900"),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),(0,r.jsx)("span",{className:"sr-only",children:"Cargando..."})]})}},69672:(e,t,a)=>{a.d(t,{o:()=>r});function r(e){return new Date(/^\d{4}-\d{2}-\d{2}$/.test(e)?"".concat(e,"T00:00:00"):e)}},77994:(e,t,a)=>{a.d(t,{BP:()=>o,Cl:()=>x,EL:()=>f,Ex:()=>j,FJ:()=>g,HB:()=>r,Hq:()=>y,M1:()=>u,OC:()=>v,SO:()=>h,UV:()=>w,WS:()=>i,dn:()=>p,f2:()=>C,jh:()=>n,qI:()=>d,v:()=>c,vL:()=>_,wK:()=>b});let{useRegisterSelfServiceMutation:r,useLoginIdentifierMutation:n,useRequestEmailVerificationMutation:s,useVerifyEmailCodeMutation:l,useRequestContactVerificationMutation:o,useConfirmContactVerificationMutation:i,useContactSalesMutation:c,useContactSupportMutation:u,useCreateCompanyMutation:d,useLazyGetBillingPlansQuery:m,useGetBillingPlansQuery:p,useStartTrialMutation:y,useSubscribeMutation:g,usePreviewPlanChangeMutation:h,useSyncBillingPaymentsMutation:x,useCheckoutPlanChangeMutation:f,useGetBillingSummaryQuery:b,useLazyGetBillingSummaryQuery:_,useUpsertBillingProfileMutation:v,useGetBillingPaymentsQuery:w,useCancelSubscriptionMutation:j,useRetryPaymentMutation:C}=a(83239).l.injectEndpoints({endpoints:e=>({registerSelfService:e.mutation({query:e=>({url:"/users/register/self-service/",method:"POST",body:e})}),loginIdentifier:e.mutation({query:e=>({url:"/users/jwt/create/",method:"POST",body:e})}),requestEmailVerification:e.mutation({query:e=>({url:"/users/email/request-verification/",method:"POST",body:e})}),verifyEmailCode:e.mutation({query:e=>({url:"/users/email/verify-code/",method:"POST",body:e})}),requestContactVerification:e.mutation({query:e=>({url:"/users/contact/request-verification/",method:"POST",body:e})}),confirmContactVerification:e.mutation({query:e=>({url:"/users/contact/verify-code/",method:"POST",body:e})}),contactSales:e.mutation({query:e=>({url:"/users/contact-sales/",method:"POST",body:e})}),contactSupport:e.mutation({query:e=>({url:"/users/contact-support/",method:"POST",body:e})}),createCompany:e.mutation({query:e=>({url:"/enterprises/companies/",method:"POST",body:e})}),getBillingPlans:e.query({query:e=>({url:"/integrations/dlocal/company/".concat(e,"/plans/"),method:"GET"})}),startTrial:e.mutation({query:e=>{let{companyId:t,template_id:a,accepted_product_updates:r}=e;return{url:"/integrations/dlocal/company/".concat(t,"/trial/"),method:"POST",body:{...null!=a?{template_id:a}:{},accepted_product_updates:r}}}}),subscribe:e.mutation({query:e=>{let{companyId:t,template_id:a}=e;return{url:"/integrations/dlocal/company/".concat(t,"/subscribe/"),method:"POST",body:{template_id:a}}}}),previewPlanChange:e.mutation({query:e=>{let{companyId:t,template_id:a}=e;return{url:"/integrations/dlocal/company/".concat(t,"/plan-change/preview/"),method:"POST",body:{template_id:a}}}}),checkoutPlanChange:e.mutation({query:e=>{let{companyId:t,template_id:a}=e;return{url:"/integrations/dlocal/company/".concat(t,"/plan-change/checkout/"),method:"POST",body:{template_id:a}}}}),getBillingSummary:e.query({query:e=>({url:"/integrations/dlocal/company/".concat(e,"/summary/"),method:"GET"})}),upsertBillingProfile:e.mutation({query:e=>{let{companyId:t,...a}=e;return{url:"/integrations/dlocal/company/".concat(t,"/billing-profile/"),method:"PUT",body:a}}}),getBillingPayments:e.query({query:e=>({url:"/integrations/dlocal/company/".concat(e,"/payments/"),method:"GET"})}),syncBillingPayments:e.mutation({query:e=>({url:"/integrations/dlocal/company/".concat(e,"/payments/sync/"),method:"POST"})}),cancelSubscription:e.mutation({query:e=>({url:"/integrations/dlocal/company/".concat(e,"/cancel/"),method:"POST"})}),retryPayment:e.mutation({query:e=>({url:"/integrations/dlocal/company/".concat(e,"/retry-payment/"),method:"POST"})})})})},89033:(e,t,a)=>{a.d(t,{n:()=>s});var r=a(12115);let n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none"},s=(0,r.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a,absoluteStrokeWidth:s=!1,className:l="",altIcon:o,showAlt:i=!1,icon:c,primaryColor:u,secondaryColor:d,disableSecondaryOpacity:m=!1,...p},y)=>{let g=void 0!==a?s?24*Number(a)/Number(t):a:void 0,h=void 0!==g?{strokeWidth:g,stroke:"currentColor"}:{},x={ref:y,...n,width:t,height:t,color:u||e,className:l,...h,...p},f=[...i&&o?o:c].sort(([,e],[,t])=>{let a=void 0!==e.opacity;return void 0!==t.opacity?1:a?-1:0}).map(([t,a])=>{let n=void 0!==a.opacity,s=n&&!m?a.opacity:void 0,l=d?{...void 0!==a.stroke?{stroke:n?d:u||e}:{fill:n?d:u||e}}:{};return(0,r.createElement)(t,{...a,...h,...l,opacity:s,key:a.key})});return(0,r.createElement)("svg",x,f)});s.displayName="HugeiconsIcon"},96897:(e,t,a)=>{a.d(t,{A3:()=>i,D9:()=>p,DB:()=>o,DK:()=>g,FH:()=>x,Jf:()=>b,Jz:()=>w,Lv:()=>m,P7:()=>f,R3:()=>n,Td:()=>j,To:()=>C,Xk:()=>h,ZG:()=>y,_L:()=>s,b9:()=>_,si:()=>l,tc:()=>v,tq:()=>r});let{useRetrieveUserQuery:r,useLazyRetrieveUserQuery:n,useLoginMutation:s,useFetchUserRegistrationDataQuery:l,useCompleteRegistrationMutation:o,useLazyLogoutQuery:i,useSendEmailMutation:c,useLazyVerifyUserQuery:u,useLazyRefreshAccessTokenQuery:d,useResetPasswordMutation:m,useConfirmResetPasswordMutation:p,useLazyFetchUserPermissionsQuery:y,useGetOnboardingQuery:g,useUpdateOnboardingMutation:h,useRequestPhoneVerificationMutation:x,useVerifyPhoneCodeMutation:f,useGetAIProcessingConsentQuery:b,useUpdateAIProcessingConsentMutation:_,useGetProductUpdatesConsentQuery:v,useUpdateProductUpdatesConsentMutation:w,useGetWeeklyReportWhatsAppConsentQuery:j,useUpd
1ateWeeklyReportWhatsAppConsentMutation:C}=a(83239).l.injectEndpoints({endpoints:e=>({retrieveUser:e.query({query:()=>({url:"users/users/me/",method:"GET"})}),login:e.mutation({query:e=>{let{email:t,password:a}=e;return{url:"/users/jwt/create/",method:"POST",body:{email:t,password:a}}}}),fetchUserRegistrationData:e.query({query:e=>({url:"/users/check_token/".concat(e,"/"),method:"GET"})}),completeRegistration:e.mutation({query:e=>{let{token:t,email:a,first_name:r,last_name:n,password:s,accepted_terms:l,accepted_product_updates:o}=e;return{url:"/users/register/",method:"POST",body:{token:t,email:a,first_name:r,last_name:n,password:s,accepted_terms:l,accepted_product_updates:o}}}}),logout:e.query({query:()=>({url:"users/logout/",method:"POST"})}),sendEmail:e.mutation({query:e=>{let{recipient_list:t,subject:a,message:r}=e;return{url:"/users/send_email/",method:"POST",body:{recipient_list:t,subject:a,message:r}}}}),verifyUser:e.query({query:()=>({url:"users/jwt/verify/",method:"POST"})}),refreshAccessToken:e.query({query:()=>({url:"users/jwt/refresh/",method:"POST"})}),resetPassword:e.mutation({query:e=>{let{email:t,from_app:a}=e;return{url:"/users/reset_password/",method:"POST",body:{email:t,from_app:a}}}}),confirmResetPassword:e.mutation({query:e=>{let{new_password:t,uid:a,token:r}=e;return{url:"/users/new_password/",method:"POST",body:{new_password:t,uid:a,token:r}}}}),fetchUserPermissions:e.query({query:()=>({url:"/users/permissions/",method:"GET"})}),getOnboarding:e.query({query:()=>({url:"/users/onboarding/",method:"GET"}),providesTags:["Onboarding"]}),updateOnboarding:e.mutation({query:e=>({url:"/users/onboarding/",method:"PATCH",body:e}),invalidatesTags:["Onboarding"]}),requestPhoneVerification:e.mutation({query:e=>({url:"/users/phone/request-verification/",method:"POST",body:e})}),verifyPhoneCode:e.mutation({query:e=>({url:"/users/phone/verify-code/",method:"POST",body:e})}),getAIProcessingConsent:e.query({query:()=>({url:"/users/consents/ai-processing/",method:"GET"})}),updateAIProcessingConsent:e.mutation({query:e=>({url:"/users/consents/ai-processing/",method:"PATCH",body:e})}),getProductUpdatesConsent:e.query({query:()=>({url:"/users/consents/product-updates/",method:"GET"})}),updateProductUpdatesConsent:e.mutation({query:e=>({url:"/users/consents/product-updates/",method:"PATCH",body:e})}),getWeeklyReportWhatsAppConsent:e.query({query:()=>({url:"/users/consents/weekly-report-whatsapp/",method:"GET"})}),updateWeeklyReportWhatsAppConsent:e.mutation({query:e=>({url:"/users/consents/weekly-report-whatsapp/",method:"PATCH",body:e})})})})},98901:(e,t,a)=>{a.d(t,{Fg:()=>o,LJ:()=>l,gm:()=>i,oV:()=>c});var r=a(26614),n=a(87358);let s=!1;function l(){let e=n.env.NEXT_PUBLIC_POSTHOG_PROJECT_TOKEN||n.env.NEXT_PUBLIC_POSTHOG_KEY;return s||!e?!!e:(r.Ay.init(e,{api_host:n.env.NEXT_PUBLIC_POSTHOG_HOST||"https://us.i.posthog.com",capture_pageview:!1,capture_pageleave:!0,cross_subdomain_cookie:!0,persistence:"localStorage+cookie",disable_session_recording:!function(){let e="cropia_posthog_replay_sampled",t=localStorage.getItem(e);if(null!==t)return"true"===t;let a=.2>Math.random();return localStorage.setItem(e,String(a)),a}(),session_recording:{maskAllInputs:!0,maskTextSelector:"*"}}),s=!0,!0)}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};l()&&r.Ay.capture(e,t)}function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};l()&&r.Ay.identify(String(e),t)}function c(){s&&r.Ay.reset()}}}]);

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.