PageSourceSearch

https://fieldcalc.app/_next/static/chunks/2110-5c9e36bd6262195f.js

js fieldcalc.app collected 2026-09-24 13:55:07 UTC 7,625 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2110],{12110:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(57437),l=n(2265),i=n(54887),a=n(32489),o=n(6921),s=n(54813),u=n(1592);function c(e){let{onClose:t,onAuthed:n,dismissible:c=!0,title:h,description:f}=e,{refresh:g}=(0,o.a)(),{t:m}=(0,u.NT)(),v=null!=h?h:m("pricing.authModal.defaultTitle"),w=null!=f?f:m("pricing.authModal.defaultDescription"),[b,x]=(0,l.useState)(null),[y,k]=(0,l.useState)(null);if("undefined"==typeof document)return null;let j=async e=>{k(null),x(e);let t=await (0,s.C)(e,{entryPoint:"checkout_modal",t:m});if("success"===t.status){await g(),x(null),n();return}"error"===t.status&&k(t.message),"redirecting"!==t.status&&x(null)};return(0,i.createPortal)((0,r.jsx)("div",{className:"fixed inset-0 z-[1200] flex items-center justify-center bg-black/50 p-4 backdrop-blur-sm",role:"dialog","aria-modal":"true","aria-labelledby":"checkout-signin-title",onClick:c?t:void 0,children:(0,r.jsxs)("div",{className:"relative w-full max-w-sm rounded-2xl border border-lp-line bg-lp-surface p-6 shadow-card-hover",onClick:e=>e.stopPropagation(),children:[c&&(0,r.jsx)("button",{type:"button",onClick:t,"aria-label":m("common.actions.close"),"data-track-cat":"pricing","data-track-label":"Close Checkout Auth",className:"absolute right-3 top-3 rounded-md p-1 text-lp-slate transition hover:bg-lp-bg hover:text-lp-ink",children:(0,r.jsx)(a.Z,{className:"h-4 w-4"})}),(0,r.jsx)("h2",{id:"checkout-signin-title",className:"mb-1 text-center font-heading text-lg font-bold text-lp-ink",children:v}),(0,r.jsx)("p",{className:"mb-5 text-center text-sm text-lp-slate",children:w}),(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsxs)("button",{type:"button",onClick:()=>void j("google"),disabled:null!==b,className:"flex w-full items-center justify-center gap-3 rounded-xl border border-[#dadce0] bg-white px-4 py-3 text-sm font-semibold text-[#3c4043] shadow-sm transition hover:bg-[#f1f3f4] disabled:opacity-60",children:[(0,r.jsx)(d,{}),"google"===b?m("pricing.authModal.signingIn"):m("pricing.authModal.continueWithGoogle")]}),(0,r.jsxs)("button",{type:"button",onClick:()=>void j("apple"),disabled:null!==b,className:"flex w-full items-center justify-center gap-3 rounded-xl bg-black px-4 py-3 text-sm font-semibold text-white ring-1 ring-white/20 transition hover:bg-black/90 disabled:opacity-60",children:[(0,r.jsx)(p,{}),"apple"===b?m("pricing.authModal.signingIn"):m("pricing.authModal.continueWithApple")]})]}),y&&(0,r.jsx)("p",{className:"mt-3 text-center text-sm text-red-600",role:"alert",children:y})]})}),document.body)}function d(){return(0,r.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 48 48","aria-hidden":"true",children:[(0,r.jsx)("path",{fill:"#EA4335",d:"M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"}),(0,r.jsx)("path",{fill:"#4285F4",d:"M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"}),(0,r.jsx)("path",{fill:"#FBBC05",d:"M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"}),(0,r.jsx)("path",{fill:"#34A853",d:"M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"})]})}function p(){return(0,r.jsx)("svg",{width:"16",height:"18",viewBox:"0 0 384 512",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C71.5 141 24 174.8 24 244.4c0 23.8 4.4 48.4 13.1 73.7 11.6 33.3 53.5 115 97.2 113.7 22.8-.5 38.9-16.2 68.5-16.2 28.7 0 43.6 16.2 68.5 16.2 44.1-.6 82-74.1 93-107.5-58.9-27.8-55.6-81.4-55.6-83.6zM258.2 96.5c20.5-24.3 18.6-46.4 18-54.4-18.1 1.1-39 12.4-50.9 26.3-13.1 14.9-20.8 33.3-19.1 53.8 19.5 1.5 37.4-8.5 52-25.7z"})})}},54813:function(e,t,n){n.d(t,{completeRedirectSignIn:function(){return w},C:function(){return m},signOutFromFirebase:function(){return v}});var r=n(43301),l=n(738);let i={apiKey:"AIzaSyAHv7eqqwxAN4Y-eSBbUZZ8sfBIXiovJns",authDomain:"fieldcalc-53c29.firebaseapp.com",projectId:"fieldcalc-53c29",storageBucket:"fieldcalc-53c29.firebasestorage.app",messagingSenderId:"421445968175",appId:"1:421445968175:web:dec55102567319f1e181da"},a=null;function o(){if(a)return a;let e=0===(0,l.C6)().length?(0,l.ZF)(i):(0,l.Mq)();return a=(0,r.v0)(e)}let s=new r.hJ,u=new r.O4("apple.com");u.addScope("email"),u.addScope("name");var c=n(15458);let d=e=>e,p=new Set(["auth/popup-blocked","auth/operation-not-supported-in-this-environment","auth/cancelled-popup-request","auth/web-storage-unsupported"]),h="fc-signin-entry-point";async function f(e){var t;let n=e.user;if(n.displayName)return;let l=null===(t=(0,r.gK)(e))||void 0===t?void 0:t.profile,i=null==l?void 0:l.name,a="string"==typeof i?i.trim():[null==i?void 0:i.firstName,null==i?void 0:i.lastName].filter(
1Boolean).join(" ").trim();if(a)try{await (0,r.ck)(n,{displayName:a})}catch(e){}}async function g(e,t,n){let l,i;try{await f(e),l=await e.user.getIdToken(!0)}catch(e){return{status:"error",message:n("auth.errors.tokenReadFailed")}}try{i=await fetch("/api/auth/session",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({idToken:l})})}catch(e){return{status:"error",message:n("auth.errors.networkError")}}if(!i.ok){let e=await i.json().catch(()=>null);return{status:"error",message:(null==e?void 0:e.error)||n("auth.errors.completeFailed")}}try{var a;(0,c.mk)({isNewUser:(null===(a=(0,r.gK)(e))||void 0===a?void 0:a.isNewUser)===!0,method:function(e){var t,n;let l=null!==(n=null===(t=(0,r.gK)(e))||void 0===t?void 0:t.providerId)&&void 0!==n?n:e.providerId;return l?l.replace(/\.com$/,""):"unknown"}(e),uid:e.user.uid,entryPoint:t})}catch(e){}return{status:"success"}}async function m(e,t){var n,l,i,a,c,f;try{let f=o(),m="google"===e?s:u;try{let e=await function(e,t){let n,l=null,i=window.open.bind(window);window.open=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=i(...t);return l=r,r};let a=!1;try{n=(0,r.rh)(e,t)}finally{window.open=i}let o=()=>{a=!0};return(n.then(o,o),l)?Promise.race([n,new Promise((e,t)=>{let n=null,r=setInterval(()=>{if(a){clearInterval(r),n&&clearTimeout(n);return}l&&l.closed&&null===n&&(n=setTimeout(()=>{clearInterval(r),a||t({code:"auth/popup-closed-by-user"})},1500))},300)})]):n}(f,m);return await g(e,null==t?void 0:t.entryPoint,null!==(n=null==t?void 0:t.t)&&void 0!==n?n:d)}catch(n){let e=null!==(l=null==n?void 0:n.code)&&void 0!==l?l:"";if("auth/popup-closed-by-user"===e)return{status:"error",message:(null!==(i=null==t?void 0:t.t)&&void 0!==i?i:d)("auth.errors.cancelled")};if(p.has(e)){try{!function(e){if(e)try{window.sessionStorage.setItem(h,e)}catch(e){}}(null==t?void 0:t.entryPoint),await (0,r.F6)(f,m)}catch(e){return{status:"error",message:(null!==(a=null==t?void 0:t.t)&&void 0!==a?a:d)("auth.errors.signInFailed")}}return{status:"redirecting"}}return{status:"error",message:(null!==(c=null==t?void 0:t.t)&&void 0!==c?c:d)("auth.errors.signInFailed")}}}catch(e){return{status:"error",message:(null!==(f=null==t?void 0:t.t)&&void 0!==f?f:d)("auth.errors.signInFailed")}}}async function v(){try{await (0,r.w7)(o())}catch(e){}}async function w(e){let t=await (0,r.cx)(o());return t?g(t,function(){try{let e=window.sessionStorage.getItem(h);return window.sessionStorage.removeItem(h),e||void 0}catch(e){return}}(),null!=e?e:d):null}}}]);

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.