PageSourceSearch

https://learntube.ai/static/js/4788.d8e50f6b.chunk.js

js learntube.ai collected 2026-10-05 12:09:31 UTC 12,829 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkcareerninja_frontend_v3=self.webpackChunkcareerninja_frontend_v3||[]).push([[4788],{59918:function(e,t,n){var s=n(70885),l=n(72791),i=n(16030),o=n(7283),r=n(79689),a=n(46892),d=n(80184);t.Z=function(e){var t=e.openNPSPopup,n=e.setOpenNPSPopup,u=(0,i.I0)(),c=(0,i.v9)((function(e){var t;return null===e||void 0===e||null===(t=e.profileDetails)||void 0===t?void 0:t.id})),m=(0,i.v9)((function(e){var t;return null===e||void 0===e||null===(t=e.profileDetails)||void 0===t?void 0:t.NPSResponse})),f=(0,l.useState)(10),p=(0,s.Z)(f,2),x=p[0],v=p[1],h=(0,l.useState)(!1),g=(0,s.Z)(h,2),y=g[0],b=g[1],j=(0,l.useState)(!1),w=(0,s.Z)(j,2),N=w[0],S=w[1],C=(0,l.useRef)(null),k=["#ED343A","#F74545","#FF653F","#F98642","#FFA42A","#FBC002","#E0C600","#C5C804","#9DCA00","#77CB02","#34AC0B"],T=function(){b(!1),S(!0)};return(0,d.jsx)(o.uT.Root,{show:t,as:l.Fragment,children:(0,d.jsx)(o.Vq,{as:"div",className:"fixed z-10 inset-0 overflow-y-auto",initialFocus:C,onClose:n,children:(0,d.jsxs)("div",{className:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0",children:[(0,d.jsx)(o.uT.Child,{as:l.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,d.jsx)(o.Vq.Overlay,{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})}),(0,d.jsx)("span",{className:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true",children:"\u200b"}),(0,d.jsx)(o.uT.Child,{as:l.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,d.jsxs)("div",{className:"relative inline-block align-middle bg-white rounded-md text-left overflow-hidden shadow-xl transform transition-all",children:[(0,d.jsx)("div",{className:"bg-white px-4 pt-5 pb-4 sm:pt-12 sm:px-16 sm:pb-4",children:(0,d.jsx)("div",{className:"sm:flex sm:items-start",children:(0,d.jsx)("div",{className:"mt-3 text-center sm:mt-0 sm:text-left",children:N?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(o.Vq.Title,{as:"h3",className:"text-lg lg:text-4xl leading-6 font-medium text-gray-900 bold",children:"Thanks for sharing your feedback"}),(0,d.jsx)("p",{className:"text-slate-500 text-center mt-6",children:x>7?"It seems you Extremly like the Learn Tube app":"It seems you didn't like the Learn Tube app"}),(0,d.jsx)("div",{className:"flex justify-center",children:(0,d.jsx)("div",{className:"mt-10 mb-6 rounded-full cursor-pointer font-semibold text-white  text-xs sm:text-lg relative ring-4 ring-offset-2 ring-teal-500",style:{width:"100%",maxWidth:"80px",aspectRatio:"1",backgroundColor:k[null===m||void 0===m?void 0:m.nps_score]},children:(0,d.jsx)("div",{className:"absolute top-1/2 left-1/2",style:{transform:"translate(-50%,-50%)"},children:null===m||void 0===m?void 0:m.nps_score})})})]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(o.Vq.Title,{as:"h3",className:"text-lg lg:text-2xl leading-6 font-medium text-gray-900 bold",children:"How likely are you to recommend LearnTube App to a friend or collegue?"}),(0,d.jsxs)("div",{className:"mt-8 sm:ml-4 flex justify-between text-xs font-semibold",children:[(0,d.jsx)("p",{className:"text-slate-500",children:"0(Not likely at all)"}),(0,d.jsx)("p",{className:"text-slate-500",children:"10(Extremly likely)"})]}),(0,d.jsx)("ul",{className:"flex justify-between gap-1 sm:gap-2",children:k.map((function(e,t){return(0,d.jsx)("li",{className:"my-4 rounded-full cursor-pointer font-semibold text-white  text-xs sm:text-lg relative hover:scale-95 ".concat(x===t&&"cursor-pointer ring-2 sm:ring-4 ring-offset-1 sm:ring-offset-2 ring-teal-500"),style:{width:"100%",maxWidth:"80px",aspectRatio:"1",backgroundColor:e},onClick:function(){return v(t)},children:(0,d.jsx)("div",{className:"absolute top-1/2 left-1/2",style:{transform:"translate(-50%,-50%)"},children:t})},e)}))})]})})})}),(0,d.jsxs)("div",{className:"bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse mb-2",children:[(0,d.jsx)("button",{type:"button",className:"w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2  text-base font-medium text-white focus:outline-none focus:ring-2 focus:ring-offset-2  sm:ml-3 sm:w-auto 
1sm:text-sm ".concat(N?"bg-gray-600":"bg-teal-600 hover:bg-teal-700 focus:ring-teal-500"),style:{minWidth:"100px"},onClick:function(){b(!0),u((0,a.ov)(x,c,T))},disabled:N,children:N?"Response Submitted":y?(0,d.jsx)(r.Z,{className:"w-4 h-4 flex justify-evenly items-center scale-125"}):"Submit Response"}),(0,d.jsx)("button",{type:"button",className:"mt-2 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-10 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-500 hover:text-white focus:outline-none sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",onClick:function(){return n(!1)},ref:C,children:"Close"})]})]})})]})})})}},84257:function(e,t,n){var s=n(70885),l=n(72791),i=n(16030),o=n(7283),r=n(79689),a=n(46892),d=n(80184);t.Z=function(e){var t=e.openSEPopup,n=e.setOpenSEPopup,u=(0,i.I0)(),c=(0,i.v9)((function(e){var t;return null===e||void 0===e||null===(t=e.profileDetails)||void 0===t?void 0:t.id})),m=(0,l.useState)(0),f=(0,s.Z)(m,2),p=f[0],x=f[1],v=(0,l.useState)(!1),h=(0,s.Z)(v,2),g=h[0],y=h[1],b=(0,l.useState)(!1),j=(0,s.Z)(b,2),w=j[0],N=j[1],S=(0,l.useRef)(null),C=function(){y(!1),N(!0)};return(0,d.jsx)(o.uT.Root,{show:t,as:l.Fragment,children:(0,d.jsx)(o.Vq,{as:"div",className:"fixed z-10 
1inset-0 overflow-y-auto",initialFocus:S,onClose:n,children:(0,d.jsxs)("div",{className:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0",children:[(0,d.jsx)(o.uT.Child,{as:l.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,d.jsx)(o.Vq.Overlay,{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})}),(0,d.jsx)("span",{className:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true",children:"\u200b"}),(0,d.jsx)(o.uT.Child,{as:l.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,d.jsxs)("div",{className:"relative inline-block align-middle bg-white rounded-md text-left overflow-hidden shadow-xl transform transition-all",children:[(0,d.jsx)("div",{className:"bg-white px-4 pt-5 pb-4 sm:pt-12 sm:px-16 sm:pb-4",children:(0,d.jsx)("div",{className:"sm:flex sm:items-start",children:(0,d.jsxs)("div",{className:"mt-3 text-center sm:mt-0 sm:text-left",children:[(0,d.jsx)(o.Vq.Title,{as:"h3",className:"text-lg lg:text-2xl leading-6 font-medium text-gray-900 bold",children:"How would you feel if you could no longer use LearnTube app ?"}),(0,d.jsx)("ul",{className:"mt-10",children:[{title:"Very Disappointed",emoji:"\ud83d\ude1f",percentage:62.1,responseCount:13},{title:"Somewhat Disappointed",emoji:"\ud83d\ude11",percentage:83.9,responseCount:24},{title:"Not Disappointed (it really isn't useful)",emoji:"\ud83d\ude2c",percentage:13.1,responseCount:5},{title:"N/A - I no longer use this product",emoji:"\ud83d\ude44",percentage:7.1,responseCount:3}].map((function(e,t){return(0,d.jsx)("li",{className:"my-4 font-semibold rounded-sm ".concat(w||p!==t?"bg-white":"bg-teal-500"," ").concat(!w&&"cursor-pointer hover:ring-2 hover:ring-offset-2 hover:ring-teal-500"),style:{color:"#0B5245"},onClick:function(){return x(t)},children:(0,d.jsxs)("div",{className:"relative border-2 border-teal-500 rounded-sm flex text-sm sm:text-md",children:[(0,d.jsx)("div",{className:"mt-3 px-4 w-10 align-center text-center flex",children:t+1}),(0,d.jsxs)("div",{className:"flex-1 text-left relative flex",children:[(0,d.jsxs)("div",{className:"p-2 z-10 text-md",style:{maxWidth:"70%"},children:[(0,d.jsx)("spam",{className:"text-lg",children:e.emoji})," ",e.title]}),w&&(0,d.jsx)("div",{className:"bg-teal-500 absolute w-full h-full",style:{maxWidth:"".concat(null===e||void 0===e?void 0:e.percentage,"%")}})]}),w&&(0,d.jsxs)("div",{className:"absolute right-0 mr-4 mt-3",children:[(0,d.jsxs)("span",{className:"pr-4",children:[null===e||void 0===e?void 0:e.percentage,"%"]}),(0,d.jsx)("span",{children:null===e||void 0===e?void 0:e.responseCount})]})]})},e.title)}))})]})})}),(0,d.jsxs)("div",{className:"bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse mb-2",children:[(0,d.jsx)("button",{type:"button",className:"w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2  text-base font-medium text-white focus:outline-none focus:ring-2 focus:ring-offset-2  sm:ml-3 sm:w-auto sm:text-sm ".concat(w?"bg-gray-600":"bg-teal-600 hover:bg-teal-700 focus:ring-teal-500"),style:{minWidth:"100px"},onClick:function(){y(!0),u((0,a.UL)(p+1,c,C))},disabled:w,children:w?"Response Submitted":g?(0,d.jsx)(r.Z,{className:"w-4 h-4 flex justify-evenly items-center scale-125"}):"Submit Response"}),(0,d.jsx)("button",{type:"button",className:"mt-2 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-10 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-500 hover:text-white focus:outline-none sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",onClick:function(){return n(!1)},ref:S,children:"Close"})]})]})})]})})})}},14788:function(e,t,n){n.r(t),n.d(t,{default:function(){return p}});var s=n(70885),l=n(72791),i=n(16030),o="Invariant failed";var r=function(e){null!=e&&"function"!==typeof e&&function(e,t){if(!e)throw new Error(o)}(!1);var t=(0,l.useRef)();(0,l.useEffect)((function(){t.current=function(t){var n=null===e||void 0===e?void 0:e(t);return"string"===typeof n?t.returnValue=n:t.defaultPrevented?t.returnValue="":void 0}}),[e]),(0,l.useEffect)((function(){var e=function(e){return t.current(e)};return window.addEventListener("beforeunload",e),function(){window.removeEventListener("beforeunload",e)}}),[])},a=function(e){var t=e.children,n=void 0===t?null:t,s=e.onBeforeunload;return r(s),n};a.propTypes={};var d=n(84257),u=n(59918),c=n(6803),m=n(52040),f=n(80184),p=function(){var e=0,t=(0,i.v9)((function(e){var t;return!(null===e||void 0===e||null===(t=e.authentication)||void 0===t||!t.user_token)})),n=(0,i.v9)((function(e){var t;return null===e||void 0===e||null===(t=e.profileDetails)||void 0===t?void 0:t.walkthrough})),o=(0,i.v9)((function(e){var t;return null===e||void 0===e||null===(t=e.profileDetails)||void 0===t?void 0:t.shaunEllisResponse})),r=(0,i.v9)((function(e){var t;return null===e||void 0===e||null===(t=e.profileDetails)||void 0===t?void 0:t.NPSResponse})),p=(0,i.I0)(),x=(0,l.useState)(!1),v=(0,s.Z)(x,2),h=v[0],g=v[1],y=(0,l.useState)(!1),b=(0,s.Z)(y,2),j=b[0],w=b[1],N=function(e){return new Date-ne
1w Date(e)},S=function(s){if(s.clientY<=0&&null!==n&&void 0!==n&&n.profile_walkthrough&&null!==n&&void 0!==n&&n.content_player_walkthrough&&"true"!==(0,m.ej)("modalShown")&&t&&e<1)if(r&&(0,m.zd)("toggle","SE"),o&&(0,m.zd)("toggle","NPS"),"NPS"===(0,m.ej)("toggle"))!r&&w(!0),g(!1),e++,(0,m.d8)("modalShown",!0),(0,m.zd)("toggle","SE");else{if("SE"!==(0,m.ej)("toggle"))return;!o&&g(!0),w(!1),e++,(0,m.d8)("modalShown",!0),(0,m.zd)("toggle","NPS")}};return(0,l.useEffect)((function(){if(t){!(0,m.ej)("toggle")&&(0,m.zd)("toggle","SE");var e=null===o||void 0===o?void 0:o.updated_at,n=null===r||void 0===r?void 0:r.updated_at,s=2592e6;e&&N(e)>s&&p({type:c.PM}),n&&N(n)>s&&p({type:c.wb}),document.getElementById("root").addEventListener("mouseout",(function(e){return S(e)}))}return t&&document.getElementById("root").removeEventListener("mouseout",(function(e){return S(e)}))}),[t]),(0,f.jsxs)(a,{onBeforeunload:function(e){},children:[(0,f.jsx)(d.Z,{openSEPopup:h,setOpenSEPopup:g}),(0,f.jsx)(u.Z,{openNPSPopup:j,setOpenNPSPopup:w})]})}},52040:function(e,t,n){n.d(t,{d8:function(){return s},ej:function(){return i},zd:function(){return l}});var s=function(e,t){var n=new Date;n.setTime(n.getTime()+2592e6);var s="expires="+n.toUTCString();document.cookie=e+"="+t+";"+s+";path=/"},l=function(e,t){var n=new Date;n.setTime(n.getTime()+31536e7);var s="expires="+n.toUTCString();document.cookie=e+"="+t+";"+s+";path=/"},i=function(e){for(var t=e+"=",n=decodeURIComponent(document.cookie).split(";"),s=0;s<n.length;s++){for(var l=n[s];" "===l.charAt(0);)l=l.substring(1);if(0===l.indexOf(t))return l.substring(t.length,l.length)}return""}}}]);
2//# sourceMappingURL=4788.d8e50f6b.chunk.js.map

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.