PageSourceSearch

https://www.easybib.com/_next/static/chunks/pages/upgrade-ebdcceac4e036ff3.js

js easybib.com collected 2026-10-01 10:14:48 UTC 3,585 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8069],{9610:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return D},checkoutCallback:function(){return G}});var a=r(69442),n=r(49644),o=r(61530),d=r(39410),i=r(61423),u=r(76487),c=r(50922),l=r(65230),s=r(25326),p=r(67823),f=r(25884),h=r(4520),_=r(70801),k=r(2178),v=r(54580),g=r(87018),m=r(97443),y=r(5624),T=r(22133),E=r(50257),j=r(66051),P=r(22553),C=r(17397),w=r(44325),N=r(99877),x=r(30097),A=r(22254),b=r(56778),I=r(5632),S=r(2784),U=r(17635),Z=r(3411),R=r(52322),F=Z.ZP.div.withConfig({displayName:"upgrade__PageContainer",componentId:"sc-jdukss-0"})(["min-height:100vh;display:flex;flex-direction:column;"]),O=Z.ZP.div.withConfig({displayName:"upgrade__ModalContainer",componentId:"sc-jdukss-1"})(["flex:1 0 auto;"]),D=!0,G=function(e,t,r,a,n,o,d,i){var u;e.callbackType===N.zj.STATUS_UPDATE&&Array.isArray(e.data)&&e.data.some((function(e){return"PLACE_ORDER"===e.command&&"PENDING"===e.status}))&&(0,C.rG)({type:"element_clicked",properties:{element_name:"paywall_start_free_trial",element_type:"button",element_text:"Start your free trial*",site_name:"easybib"}});var c,l,s=(0,x.Z)(e);(e.callbackType===N.zj.LOG_EVENT&&!Array.isArray(e.data)&&(null===(u=e.data)||void 0===u?void 0:u.type)===A.bF.PURCHASE&&e.data&&d(e.data),(null===s||void 0===s?void 0:s.status)===N.Sk.SUCCESS&&(r(!0),(0,P.Z)(i),(0,C.oC)(i),o&&(0,w.hy)(n),window.scrollTo(0,0),a()),(null===s||void 0===s?void 0:s.status)===N.Sk.ERROR)&&((null===(c=s.payload)||void 0===c||null===(l=c.errors)||void 0===l?void 0:l.find((function(e){return e.type===N.NI.AUTHORIZATION})))&&t())},L={refreshAndFetch:y.zw,logout:y.kS,navigated:_.ae,upgrade:y._s,createProject:v.$L};t.default=(0,a.ZP)()((0,U.$j)((function(e){return{authTokens:{idToken:(0,T.FR)(e),accessToken:(0,T.hW)(e)},currentProjectId:(0,g.PA)(e),backgroundThroughGam:(0,m._E)(e),adUnlockModalExpVariant:(0,k.Br)(e)}}),L)((function(e){var t=e.authTokens,r=e.refreshAndFetch,a=e.navigated,_=e.upgrade,k=e.currentProjectId,g=(e.backgroundThroughGam,e.adUnlockModalExpVariant),m=e.clientIp,P=(0,U.v9)(T.L3);(0,p.Z)(),(0,f.ZP)();var C=(0,d.XW)(),N=(0,S.useState)(null),x=N[0],A=N[1],Z=(0,S.useRef)((0,w.iK)()),D=c.D.adUnlockModalExperience&&g===E.P.VARIANT1,L=(0,I.useRouter)(),M=L.query,z=M.countryCode,V=M.region,H=L.query.authSuccess,X=(0,h.Z)({siteCode:"EB",alreadyUpgradedRoute:(0,w.Zb)(C)}),B=X.setHasJustUpgraded,$=X.shouldShowUpgradeModal,q=(0,R.jsx)(o.Z,{selector:"#modal-root",children:(0,R.jsx)(u.o,{authTokens:t,site:l.P2,onHostRedirect:Z.current?function(){a(C.toProject())}:function(){var e,t=(0,w.ly)();null!==t&&void 0!==t&&null!==(e=t.route)&&void 0!==e&&e.params&&!t.route.params.projectId&&(t.route.params.projectId=k),a((0,w.Zb)(C,t,!0))},countryCode:z,region:V,onClickNoThanks:w.zF,onClickDismissModal:w.zF,clientIp:m,checkoutCallback:function(e){G(e,r,B,_,v.$L,D,A,x)}})});(0,S.useEffect)((function(){if(D){var e=new Date((new Date).getTime()+432e5);(0,j.d8)(j.LJ.ViewedAdUnlock,"true",{expires:e})}}),[D]),(0,b.c)();var J=(0,U.I0)();return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(i.Z,{title:"Upgrade | EasyBib"}),(0,R.jsxs)(F,{children:["true"!==H&&P===s.vX.NOT_LOGGED_IN&&J((0,y.FF)({defaultFlow:"signup",redirectTo:C.toUpgrade()})),$&&(0,R.jsx)(R.Fragment,{children:(0,R.jsx)(n.Z,{children:(0,R.jsx)(O,{id:"modal-root",children:q})})})]})]})})))},56289:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/upgrade",function(){return r(9610)}])}},function(e){e.O(0,[6707,9774,2888,179],(function(){return t=56289,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.