PageSourceSearch

https://www.webtonative.com/_next/static/chunks/pages/account-e40d64bd2e8925e1.js

js webtonative.com collected 2026-09-24 09:07:25 UTC 6,432 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7966],{16968:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account",function(){return n(9910)}])},60182:function(e,t,n){"use strict";var r=n(74512),o=n(32735),i=n(71477),c=n(97110),s=n(42648),u=n(86786),l=n(90627);t.Z=function(e){var t=e.activeBgColor,n=e.className,a=(0,o.useState)(!1),f=a[0],d=a[1],p=((0,u.v9)((function(e){return e.session}))||{}).isLoggedIn,h=(0,u.I0)(),v=(0,o.useState)(!1),m=v[0],x=v[1];return(0,o.useEffect)((function(){return window.addEventListener("scroll",(function(){window.scrollY>0?x(!0):x(!1)})),function(){window.removeEventListener("scroll",(function(){}))}}),[]),(0,r.jsxs)("div",{style:{background:m?"white":t},className:(0,c.m6)("px-4 py-3",m?"border-b":"",n),children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)("div",{className:"mt-1 ",children:(0,r.jsx)("img",{src:"https://assets.orufy.com/Group_91_edd43b80d5.svg",width:"40",height:"20",alt:"webtonative"})}),!p&&(0,r.jsx)("div",{className:"w-fit ml-auto",children:(0,r.jsx)(s.Z,{variant:"outline-primary",className:"!py-1 text-sm bg-white",onClick:function(){h((0,l.K)({key:"Login",show:!0}))},children:"Log in"})})]}),(0,r.jsx)(i.Z,{isOpen:f,onHide:function(){d(!1)}})]})}},9910:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return b}});var r=n(37639),o=n(44151),i=n(43336),c=n(5001),s=n.n(c),u=n(74512),l=n(19566),a=n(60182),f=n(42648),d=n(63514),p=n(33216),h=n(45765),v=n(23488),m=n(35837),x=n(32735),w=n(38902),g=n(86786),y=n(24083);function b(){var e=(0,o.Z)(x.useState(!1),2),t=e[0],n=e[1],c=(0,g.v9)((function(e){return null===e||void 0===e?void 0:e.session}))||{},b=c.isLoggedIn,_=c.isAppLoaded,j=(c.isInternalUser,(0,g.I0)()),Z=(0,m.useRouter)(),N=(0,g.v9)((function(e){return e.session.isIOSAPPBuild})),k=function(){var e=(0,r.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,v.logout)()(j);case 2:Z.push("/app-homepage");case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),O=(0,i.Z)(h.et).concat([{name:"Logout",icon:(0,u.jsx)(w.fHX,{}),onClick:function(){return n(!0)}}]);return _?b?(0,u.jsxs)("div",{className:"flex flex-col h-[100dvh] justify-between",children:[(0,u.jsxs)("div",{children:[(0,u.jsx)(a.Z,{activeBgColor:"white",className:"border-b"}),(0,u.jsx)("div",{className:"grid grid-cols-2 text-black gap-4 px-4 py-6",children:O.map((function(e,t){var n;return(null===h.$w||void 0===h.$w?void 0:h.$w.includes(null!==(n=null===e||void 0===e?void 0:e.url)&&void 0!==n?n:""))&&y.isIosApp&&N?null:(0,u.jsxs)("a",{onClick:e.onClick,href:e.url,className:"p-2 rounded-lg border text-black flex flex-col gap-1 items-center",children:[(0,u.jsx)("span",{className:"text-xl",children:e.icon}),(0,u.jsx)("p",{children:e.name})]},t)}))})]}),t&&(0,u.jsxs)(l.Z,{showModal:!0,setShowModal:function(){n(!1)},label:"Logout",children:[(0,u.jsx)("div",{className:"mb-8",children:"Are you sure you would like to logout ?"}),(0,u.jsx)("div",{className:"ml-auto w-full sm:w-fit",children:(0,u.jsx)(f.Z,{variant:"primary",className:"w-full",onClick:function(){k(),n(!1)},children:"Yes, Logout"})})]}),(0,u.jsx)(d.Z,{})]}):(location.href="/login?redirectTo="+location.href,(0,u.jsx)(u.Fragment,{})):(0,u.jsx)(p.Z,{})}},33216:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(51917),o=n(1021),i=n(37763),c=n(58222),s=n(5513),u=n(15856),l=n(74512),a=n(32735),f=n(23445),d=n.n(f),p=n(12788),h=function(e){(0,i.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,[{key:"render",value:function(){var e=this.props.style||{},t=this.props.className||"",n={};this.props.id&&(n.id=this.props.id);var r=(0,l.jsx)("div",(0,s.Z)((0,c.Z)({className:"".concat(d()["mobile-loader"]," ").concat(t)},n),{style:e,onClick:function(e){e.stopPropagation()},suppressHydrationWarning:!0,children:(0,l.jsx)("div",{className:d()["svg-wrapper"],children:(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24px",height:"24px",children:(0,l.jsx)("circle",{cx:"12px",cy:"12px",r:"9px",className:d().circle})})})}));return(0,p.createPortal)(r,document.body)}}]),n}(a.Component)},23445:function(e){e.exports={"mobile-loader":"loader_mobile-loader__ntnm0","svg-wrapper":"loader_svg-wrapper__aC6m2",circle:"loader_circle__LJPDp",loader:"loader_loader__W7D1s",rotate:"loader_rotate__cFphU"}},53696:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},1021:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,{Z:function(){return o}})},15856:function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}function o(e){return r(e)}n.d(t,{Z:function(){return u}});var i=n(53696),c=n(34873);function s(e,t){return!t||"object"!==(0,c.Z)(t)&&"function"!==typeof t?(0,i.Z)(e):t}function u(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=o(e);if(t){var i=o(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return s(this,n)}}}
1,37763:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,{Z:function(){return o}})},34873:function(e,t,n){"use strict";function r(e){return e&&e.constructor===Symbol?"symbol":typeof e}n.d(t,{Z:function(){return r}})}},function(e){e.O(0,[7107,7609,4475,1781,2133,9371,3663,2066,9872,8109,1219,2120,2868,3e3,4558,2420,8082,7110,2729,2362,750,7688,7972,956,3514,9774,2888,179],(function(){return t=16968,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.