PageSourceSearch

https://app.tabnav.com/_next/static/chunks/pages/pricing/monitor-481819beb43adb98.js

js tabnav.com collected 2026-10-02 02:35:32 UTC 3,656 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4894],{46626:function(e,n,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pricing/monitor",function(){return l(69704)}])},69704:function(e,n,l){"use strict";l.r(n);var a=l(85893),t=l(67294),i=l(11163),r=l(2734),u=l(63431),o=l(84397),c=l(72783),p=l(89618),d=l(12421),s=l(19997),g=l(44843),m=l(13296),y=l(9766);let h=["100-page","500-page","1000-page"],f={"100-page":1,"500-page":2,"1000-page":3},v={"100-page":"Small (100 pages/month)","500-page":"Medium (500 pages/month)","1000-page":"Large (1,000 pages/month)"},b=e=>"ILS"===e?"₪":"EUR"===e?"€":"$",E=["AT","BE","CY","DE","EE","ES","FI","FR","GR","HR","IE","IT","LT","LU","LV","MT","NL","PT","SI","SK"],S=e=>"IL"===e?"ILS":E.includes(e)?"EUR":"USD",I=()=>{let e=(0,r.Z)(),n=(0,i.useRouter)(),l=(0,o.Mg)(),E=(0,o.KI)(),I=(0,o.iZ)(),{data:N,refetch:R}=(0,u.ue)(),{data:_}=(0,u.vw)(),{data:P,isFetched:C}=(0,c.T)(),L=(0,p.tu)(),{openContactModal:k}=(0,d.KS)(),{openMonitorPricingModal:w}=(0,s.kZ)(),T=(0,t.useRef)(null),U=(0,t.useRef)(!1),[j,x]=(0,t.useState)(!1),[M,Z]=(0,t.useState)(null),[q,A]=(0,t.useState)(!1),[D,F]=(0,t.useState)(null),{plan:O,billingCycle:K}=n.query,B=!!(O&&K)&&h.includes(O)&&["annually","monthly"].includes(K);(0,t.useEffect)(()=>{if(!n.isReady||L||!B)return;let e="".concat(O,"-").concat(K);T.current!==e&&(T.current=e,l.mutate({plan:O,billingPlan:K}))},[n.isReady,n.query,L]),(0,t.useEffect)(()=>{n.isReady&&!B&&(U.current||(U.current=!0,w(),n.replace("/home")))},[n.isReady,B]);let H=null==N?void 0:N.planType,X="small"===H?"100-page":"medium"===H?"500-page":"large"===H?"1000-page":H||null,G=f[X]||0,V=(null==N?void 0:N.billingCycle)==="annually",Y=(e,n)=>{let{period:l}=n;if(L)return;if(V&&"monthly"===l){k();return}let a=f[e]||0;if(G>0&&a<G){Z({planId:e,period:l}),x(!0);return}F({planId:e,period:l}),A(!0)},$=async(e,a)=>{if(D){if(a)try{await E.mutateAsync({plan:D.planId,billingCycle:D.period,cardToken:a,payPlusId:e}),A(!1),n.push({pathname:"/checkout-processing-monitor",query:{plan:D.planId}})}catch(e){n.push({pathname:"/checkout-error",query:{product:"monitor"}})}else A(!1),l.mutate({plan:D.planId,billingPlan:D.period,payPlusId:e})}},z=l.isLoading||B||!n.isReady||U.current;if(z)return(0,a.jsx)("div",{children:"Loading..."});let J=null;if(_&&C){let e=_.find(e=>"100-page"===e.code),n=_.find(e=>"500-page"===e.code),l=_.find(e=>"1000-page"===e.code),a=(null==e?void 0:e.currency)?b(e.currency):b(S(null==P?void 0:P.country)),t=(e,n,l,a,t)=>({label:n,sub:l,monthly:a,annually:t,isCurrentPlan:X===e,currentBillingCycle:null==N?void 0:N.billingCycle,cta:(f[e]||0)<G?"Downgrade":void 0,ctaOnClick:n=>Y(e,n)}),i=[t("100-page","Small","Up to 100 pages a month",Number(null==e?void 0:e.monthlyPrice)||69,Number(null==e?void 0:e.yearlyPrice)||490),t("500-page","Medium","Up to 500 pages a month",Number(null==n?void 0:n.monthlyPrice)||149,Number(null==n?void 0:n.yearlyPrice)||990),t("1000-page","Large","Up to 1,000 pages a month",Number(null==l?void 0:l.monthlyPrice)||299,Number(null==l?void 0:l.yearlyPrice)||1900)],r=G<=f["500-page"];J={...y.AU.monitoring,currencySymbol:a,packages:y.AU.monitoring.packages.map((e,n)=>1===n?{...e,options:i,featured:r,badge:r?e.badge:void 0}:e)}}return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y.H_,{serviceData:J,theme:e.palette.mode,loading:!J}),(0,a.jsx)(g.Z,{open:q,onClose:()=>A(!1),mode:"purchase",onSelect:$}),(0,a.jsx)(m.Z,{open:j,setOpen:x,planName:M?v[M.planId]:"",plan:null==M?void 0:M.planId,billingCycle:null==M?void 0:M.period,downgradeMutation:I,refetch:R})]})};n.default=I}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=46626)}),_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.