PageSourceSearch

https://app.norman.finance/_next/static/chunks/1293.c8d15852dadc15de.js

js norman.finance collected 2026-10-01 15:52:44 UTC 8,393 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="07ad33a7-de81-4df4-9e1e-18928914d01b",e._sentryDebugIdIdentifier="sentry-dbid-07ad33a7-de81-4df4-9e1e-18928914d01b")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1293],{56749:function(e,n,t){t.d(n,{Kb:function(){return i},bU:function(){return r},fP:function(){return l}});let a="norman:payment-popup-result";function l(){return window.open("about:blank","_blank")}function i(e){return!!e&&"object"==typeof e&&e.type===a&&"string"==typeof e.orderId}function r(e,n){window.opener&&window.opener!==window&&window.opener.postMessage({type:a,orderId:e,status:n},window.location.origin)}},91293:function(e,n,t){t.r(n),t.d(n,{default:function(){return E}});var a=t(94458),l=t(80163),i=t(23741),r=t(35800),s=t(39984),c=t(74838),o=t(3179),d=t(80234),u=t(82308),p=t(15584),m=t(64449),f=t(87938),g=t(99104),y=t(81996),w=t(47229),h=t(56749);function b(e){return e?"COMPLETED"===e?"success":"FAILED"===e?"failed":"CANCELLED"===e?"cancelled":"pending":"unknown"}function E(){let{t:e}=(0,y.$)(),n=(0,p.s0)(),{pathname:t}=(0,p.TH)(),[E]=(0,m.lr)(),Z=E.get("orderId"),x=t.startsWith("/taxes"),M=x?"/taxes":"/expenses/bills",C=e(x?"taxes.backToTaxes":"bills.backToBills"),[L]=(0,w.kl)(),{trackSuccess:k}=(0,f.Ms)(),[A,j]=(0,l.useState)(Z?"syncing":"success"),[v,z]=(0,l.useState)(!1);(0,l.useEffect)(()=>{let e=!!window.opener&&window.opener!==window;z(e),e&&Z&&(0,h.bU)(Z)},[Z]),(0,l.useEffect)(()=>{if(!Z)return;let e=!1;return(async()=>{try{let n=await L(Z).unwrap();if(e)return;j(b(n.status)),(0,h.bU)(Z,n.status),"COMPLETED"===n.status&&k("payment_made")}catch(n){e||j("unknown")}})(),()=>{e=!0}},[Z,L,k]);let D="success"===A?(0,a.jsx)(i.f,{color:"var(--green-9)",size:64,weight:"fill"}):"cancelled"===A||"failed"===A?(0,a.jsx)(r.a,{color:"var(--gray-11)",size:64,weight:"fill"}):"unknown"===A?(0,a.jsx)(s.v,{color:"var(--gray-11)",size:64,weight:"fill"}):(0,a.jsx)(c.U,{color:"var(--gray-11)",size:64,style:{animation:"spin 1s linear infinite"},weight:"bold"});return(0,a.jsx)(g.VY,{verticalAlign:"top",children:(0,a.jsx)(g.lP,{children:(0,a.jsxs)(o.k,{align:"center",direction:"column",gap:"4",justify:"center",py:"9",children:[D,(0,a.jsx)(d.x,{size:"5",weight:"bold",children:e("success"===A?"bills.paymentSuccess":"cancelled"===A?"bills.paymentCancelledTitle":"failed"===A?"bills.paymentFailedTitle":"pending"===A?"bills.paymentPendingTitle":"syncing"===A?"bills.paymentSyncing":"bills.paymentUnknownTitle")}),(0,a.jsx)(d.x,{align:"center",color:"gray",size:"3",style:{maxWidth:400},children:e("success"===A?"bills.paymentSuccessDescription":"cancelled"===A?"bills.paymentCancelledDescription":"failed"===A?"bills.paymentFailedDescription":"pending"===A?"bills.paymentPendingDescription":"syncing"===A?"bills.paymentSyncingDescription":"bills.paymentUnknownDescription")}),v&&(0,a.jsx)(d.x,{align:"center",color:"gray",size:"2",style:{maxWidth:360},children:e("bills.paymentTabReturnHint")}),(0,a.jsxs)(o.k,{gap:"3",mt:"4",children:[v?(0,a.jsx)(u.z,{size:"3",variant:"solid",onClick:()=>{var e;null===(e=window.opener)||void 0===e||e.focus(),window.close()},children:e("bills.closeTab")}):(0,a.jsx)(u.z,{size:"3",variant:"solid",onClick:()=>n(M),children:C}),("cancelled"===A||"failed"===A)&&!x&&(0,a.jsx)(u.z,{color:"gray",size:"3",variant:"soft",onClick:()=>n("/expenses/bills?status=PENDING"),children:e("bills.tryAgain")}),("pending"===A||"syncing"===A)&&Z&&(0,a.jsx)(u.z,{color:"gray",size:"3",variant:"soft",onClick:async()=>{j("syncing");try{let e=await L(Z).unwrap();j(b(e.status)),(0,h.bU)(Z,e.status)}catch(e){j("unknown")}},children:e("bills.refreshStatus")})]}),(0,a.jsx)("style",{children:"\n            @keyframes spin {\n              from { transform: rotate(0deg); }\n              to { transform: rotate(360deg); }\n            }\n          "})]})})})}},74838:function(e,n,t){t.d(n,{U:function(){return s}});var a=t(80163),l=t(30551);let i=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M236,128a108,108,0,0,1-216,0c0-42.52,24.73-81.34,63-98.9A12,12,0,1,1,93,50.91C63.24,64.57,44,94.83,44,128a84,84,0,0,0,168,0c0-33.17-19.24-63.43-49-77.09A12,12,0,1,1,173,29.1C211.27,46.66,236,85.48,23
16,128Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),a.createElement("path",{d:"M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,176A72,72,0,0,1,92,65.64a8,8,0,0,1,8,13.85,56,56,0,1,0,56,0,8,8,0,0,1,8-13.85A72,72,0,0,1,128,200Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M228,128a100,100,0,0,1-200,0c0-39.4,22.9-75.37,58.33-91.63a4,4,0,1,1,3.34,7.27C57.07,58.6,36,91.71,36,128a92,92,0,0,0,184,0c0-36.29-21.07-69.4-53.67-84.36a4,4,0,1,1,3.34-7.27C205.1,52.63,228,88.6,228,128Z"}))]]),r=a.forwardRef((e,n)=>a.createElement(l.Z,{ref:n,...e,weights:i}));r.displayName="CircleNotchIcon";let s=r},35800:function(e,n,t){t.d(n,{a:function(){return s}});var a=t(80163),l=t(30551);let i=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),a.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),r=a.forwardRef((e,n)=>a.createElement(l.Z,{ref:n,...e,weights:i}));r.displayName="XCircleIcon";let s=r}}]);

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.