PageSourceSearch

https://www.curiousjr.com/_next/static/chunks/5213-babb01a0a6a336bf.js

js curiousjr.com collected 2026-09-24 10:25:32 UTC 24,862 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5213],{25062:function(e,t,n){"use strict";var r=n(31501),i=n(61079),o=n(89874),l=n(651),a=(n(92379),n(19841)),s=n(9267),d=n(21571),c=n.n(d);t.Z=function(e){var t=e.children,n=void 0===t?null:t,d=e.variant,u=void 0===d?"primary":d,p=e.size,h=void 0===p?"medium":p,v=e.loading,m=void 0!==v&&v,x=e.className,f=(0,o.Z)(e,["children","variant","size","loading","className"]);return(0,l.jsx)("button",(0,i.Z)((0,r.Z)({className:(0,a.Z)(c().button,c()["".concat(u,"_button")],c()[h],"transition-all duration-300",x)},f),{children:m?(0,l.jsx)(s.Z,{}):n}))}},29155:function(e,t,n){"use strict";n.d(t,{Z:function(){return P}});var r=n(61706),i=n(31501),o=n(61079),l=n(5972),a=n(651),s=n(19841),d=n(83572),c=n.n(d),u=n(92379),p=n(96940),h=n.n(p),v=n(90882),m=n(46432),x=n(84792),f=n(86487),g=n(59397),w=n(40490),_=n(85657),b=n(37812),j=n(32077),y=n(42509),C=n(44923),N=n(22718),Z=n(23116),I=n(16830),S=n(28605),k=n(30101),L=n(2563),B=n(78348),F=n(40126),D=n(9889);var E=function(e){var t,n,i=e.onClose,o=(0,u.useState)(!1),s=o[0],d=o[1],c=(0,u.useState)(""),p=c[0],h=c[1],x=(0,u.useState)({id:"",name:"",filters:{classes:[]}}),f=x[0],g=x[1],_=(0,u.useState)(""),j=_[0],y=_[1],E=(0,u.useState)(!1),R=E[0],z=E[1],U=(0,v.l8)(),M=U.user,G=U.cohortsData,K=U.handleUserUpdated,P=(U.handleSelectedCohortDataUpdated,(0,w.a)()),O=P.handleUpdateUser,A=P.getMe,H=(0,S.ZP)().showNotification,q=(0,k.Z)(),T=(q.isLoading,q.error,q.mutate);(0,u.useEffect)((function(){if(M&&!1===s){var e,t,n,r=(null===M||void 0===M?void 0:M.firstName)+" "+(null===M||void 0===M?void 0:M.lastName);h(r);var i,o=null===M||void 0===M||null===(e=M.profileId)||void 0===e?void 0:e.class;if(null===o||void 0===o?void 0:o.includes("Class"))y(null===(i=null===o||void 0===o?void 0:o.split(" "))||void 0===i?void 0:i[1]);else y(o);var l=null===M||void 0===M||null===(t=M.profileId)||void 0===t?void 0:t.cohortId,a=(0,N.op)(G,l);g({id:null===a||void 0===a?void 0:a.id,name:null===a||void 0===a?void 0:a.name,filters:{classes:null===a||void 0===a||null===(n=a.filters)||void 0===n?void 0:n.classes}})}}),[M,s]);var J=function(){var e=(0,r.Z)((function(){var e,t,n,o,a,s,c,u;return(0,l.__generator)(this,(function(h){switch(h.label){case 0:return h.trys.push([0,3,4,5]),z(!0),t="",p.length<3&&(t="Name should be atleast 3 characters long!"),(0,I.Pz)(p)||(t="Please enter a valid name!"),t?(H({type:S.KY.ERROR,title:t}),z(!1),[2]):((null===M||void 0===M||null===(e=M.profileId)||void 0===e?void 0:e.cohortId)!==(null===f||void 0===f?void 0:f.id)&&(o=JSON.parse(localStorage.getItem("paidData")||"{}").user_status,b.Z.cohortChange({came_from:"profile",prev_cohort:(null===M||void 0===M||null===(n=M.profileId)||void 0===n?void 0:n.cohortId)||"",new_cohort:(null===f||void 0===f?void 0:f.id)||"",page:"free"===o?"home":"paid"})),a=(0,N.E6)(p),s=a.firstName,c=a.lastName,[4,T({cohortId:null===f||void 0===f?void 0:f.id,class:"Class "+j},{onSuccess:(0,r.Z)((function(){var e;return(0,l.__generator)(this,(function(t){switch(t.label){case 0:return(null===f||void 0===f?void 0:f.id)!==(null===M||void 0===M||null===(e=M.profileId)||void 0===e?void 0:e.cohortId)&&localStorage&&f&&localStorage.setItem(F.jd,JSON.stringify(f)),[4,O({firstName:s,lastName:c,class:"Class "+j})];case 1:return t.sent(),[4,A()];case 2:return t.sent(),K(),d(!1),i(),H({type:S.KY.SUCCESS,title:"Profile updated!",duration:2e3}),[2]}}))}))})]);case 1:return h.sent(),[4,L.J.put("/v1/user/profile",{grade:"Class "+j,name:p})];case 2:return h.sent(),[3,5];case 3:return u=h.sent(),console.log(u),[3,5];case 4:return z(!1),[7];case 5:return[2]}}
1))}));return function(){return e.apply(this,arguments)}}();return(0,a.jsxs)(B.V,{className:"relative z-[999999]",open:!0,onClose:i,children:[(0,a.jsx)("div",{className:"fixed inset-0 bg-gray-900/40","aria-hidden":"true"}),(0,a.jsx)("div",{className:"fixed inset-0 flex items-center justify-center",children:(0,a.jsxs)("div",{className:"flex justify-center relative bg-white rounded-2xl w-[462px] max-w-[90%] md:px-10 md:pt-5 md:pb-6",children:[(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"56",height:"56",viewBox:"0 0 56 56",fill:"none",className:"absolute cursor-pointer top-[-62px] md:right-[-10px]",onClick:i,children:[(0,a.jsxs)("g",{filter:"url(#filter0_d_7609_234349)",children:[(0,a.jsx)("rect",{x:"8",y:"7",width:"40",height:"40",rx:"20",fill:"white"}),(0,a.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M22.1947 21.2116C22.3195 21.0871 22.4888 21.0172 22.6652 21.0172C22.8416 21.0172 23.0108 21.0871 23.1357 21.2116L27.9914 26.0604L32.8471 21.2116C32.9081 21.1463 32.9816 21.0939 33.0633 21.0576C33.1449 21.0212 33.2331 21.0017 33.3225 21.0001C33.4119 20.9985 33.5007 21.0149 33.5836 21.0484C33.6665 21.0818 33.7418 21.1316 33.805 21.1947C33.8682 21.2579 33.9181 21.3331 33.9515 21.4158C33.985 21.4986 34.0015 21.5873 33.9999 21.6766C33.9983 21.7658 33.9788 21.8539 33.9424 21.9354C33.906 22.017 33.8535 22.0904 33.7881 22.1512L28.9324 27L33.7881 31.8488C33.8535 31.9096 33.906 31.983 33.9424 32.0646C33.9788 32.1461 33.9983 32.2342 33.9999 32.3234C34.0015 32.4127 33.985 32.5014 33.9515 32.5842C33.9181 32.6669 33.8682 32.7421 33.805 32.8053C33.7418 32.8684 33.6665 32.9182 33.5836 32.9516C33.5007 32.9851 33.4119 33.0015 33.3225 32.9999C33.2331 32.9983 33.1449 32.9788 33.0633 32.9424C32.9816 32.9061 32.9081 32.8537 32.8471 32.7884L27.9914 27.9396L23.1357 32.7884C23.0095 32.9058 22.8425 32.9698 22.6701 32.9667C22.4976 32.9637 22.333 32.8939 22.211 32.7721C22.089 32.6503 22.0192 32.486 22.0161 32.3137C22.0131 32.1415 22.0771 31.9748 22.1947 31.8488L27.0504 27L22.1947 22.1512C22.07 22.0266 22 21.8576 22 21.6814C22 21.5052 22.07 21.3363 22.1947 21.2116Z",fill:"#09090B"})]}),(0,a.jsx)("defs",{children:(0,a.jsxs)("filter",{id:"filter0_d_7609_234349",x:"0",y:"0",width:"56",height:"56",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[(0,a.jsx)("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),(0,a.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,a.jsx)("feOffset",{dy:"1"}),(0,a.jsx)("feGaussianBlur",{stdDeviation:"4"}),(0,a.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,a.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"}),(0,a.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_7609_234349"}),(0,a.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_7609_234349",result:"shape"})]})})]}),(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center border-b-2 md:border-b border-[#EFEFEF] md:mb-6 px-4 py-2 md:p-0 md:pb-5",children:[(0,a.jsx)("div",{className:"text-[16px] leading-[24px] font-semibold md:text-[18px] md:leading-[28px]",children:"Profile"}),(0,a.jsxs)("div",{className:"flex items-center gap-1 font-normal text-[#FF5305] cursor-pointer md:text-[16px]",onClick:function(){return d((function(e){return!e}))},children:[(0,a.jsx)("span",{children:"Edit"}),(0,a.jsx)("span",{className:"hidden md:block",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,a.jsx)("path",{d:"M3 17.2525V21.0025H6.75L17.81 9.9425L14.06 6.1925L3 17.2525ZM20.71 7.0425C21.1 6.6525 21.1 6.0225 20.71 5.6325L18.37 3.2925C17.98 2.9025 17.35 2.9025 16.96 3.2925L15.13 5.1225L18.88 8.8725L20.71 7.0425Z",fill:"#FF5305"})})}),(0,a.jsx)("span",{className:"block md:hidden",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,a.jsx)("path",{d:"M1.99902 11.5017V14.0017H4.49902L11.8724 6.62833L9.37236 4.12833L1.99902 11.5017ZM13.8057 4.695C14.0657 4.435 14.0657 4.015 13.8057 3.755L12.2457 2.195C11.9857 1.935 11.5657 1.935 11.3057 2.195L10.0857 3.415L12.5857 5.915L13.8057 4.695Z",fill:"#FF5305"})})})]})]}),(0,a.jsxs)("form",{className:"p-4 pt-6 md:p-0",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-5 mb-8 ".concat(s?"opacity-100":"opacity-70"),children:[(0,a.jsx)(C.Z,{placeholder:"Child's Name",value:p,onChange:function(e){h(e)},label:"Child's Name",readOnly:!s,disabled:!s}
1),s?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.Z,{trigger:(0,a.jsxs)("div",{className:"flex justify-between items-center gap-1 border-[1px] border-[#B5BBC5] py-2 px-3 rounded-md min-w-[100px] md:min-w-[130px] md:gap-3 md:py-3 md:px-4",children:[(0,a.jsx)("span",{className:"text-sm font-semibold text-[#757575] md:text-[16px]",children:f?null===f||void 0===f?void 0:f.name:"Select Goal"}),(0,a.jsx)("div",{children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"5",viewBox:"0 0 10 5",fill:"none",children:(0,a.jsx)("path",{d:"M0 0L5 5L10 0H0Z",fill:"#414347"})})})]}),items:(null===G||void 0===G?void 0:G.map((function(e){return{name:null===e||void 0===e?void 0:e.name,key:null===e||void 0===e?void 0:e.id}})))||[],onSelect:function(e){try{var t,n,r=(0,N.op)(G,e);g(r),(null===r||void 0===r||null===(t=r.filters)||void 0===t||null===(n=t.classes)||void 0===n?void 0:n.includes(j))||y("")}catch(i){console.log(i)}}}),(0,a.jsx)(m.Z,{trigger:(0,a.jsxs)("div",{className:"flex justify-between items-center gap-1 border-[1px] border-[#B5BBC5] py-2 px-3 rounded-md min-w-[100px] md:min-w-[130px] md:gap-3 md:py-3 md:px-4",children:[(0,a.jsx)("span",{className:"text-sm font-semibold text-[#757575] md:text-[16px]",children:j?j+(0,N.yn)(j):"Select Class"}),(0,a.jsx)("div",{children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"5",viewBox:"0 0 10 5",fill:"none",children:(0,a.jsx)("path",{d:"M0 0L5 5L10 0H0Z",fill:"#414347"})})})]}),items:(null===f||void 0===f||null===(t=f.filters)||void 0===t||null===(n=t.classes)||void 0===n?void 0:n.map((function(e){return{name:e+(0,N.yn)(e),key:e}})))||[],onSelect:function(e){try{var t,n;y(e),null===window||void 0===window||null===(t=window.Moengage)||void 0===t||null===(n=t.add_user_attribute)||void 0===n||n.call(t,D.z.USER_GRADE,"Class ".concat(e)||0)}catch(r){console.log(r)}}})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex justify-between items-center gap-1 border-[1px] border-[#B5BBC5] py-2 px-3 rounded-md cursor-pointer min-w-[100px] md:min-w-[130px] md:gap-3 md:py-3 md:px-4",children:[(0,a.jsx)("span",{className:"text-sm font-semibold text-[#757575] md:text-[16px]",children:f?null===f||void 0===f?void 0:f.name:"Select Goal"}),(0,a.jsx)("div",{children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"5",viewBox:"0 0 10 5",fill:"none",children:(0,a.jsx)("path",{d:"M0 0L5 5L10 0H0Z",fill:"#414347"})})})]}),(0,a.jsxs)("div",{className:"flex justify-between items-center gap-1 border-[1px] border-[#B5BBC5] py-2 px-3 rounded-md cursor-pointer min-w-[100px] md:min-w-[130px] md:gap-3 md:py-3 md:px-4",children:[(0,a.jsx)("span",{className:"text-sm font-semibold text-[#757575] md:text-[16px]",children:j?j+(0,N.yn)(j):"Select Class"}),(0,a.jsx)("div",{children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"5",viewBox:"0 0 10 5",fill:"none",children:(0,a.jsx)("path",{d:"M0 0L5 5L10 0H0Z",fill:"#414347"})})})]})]})]}),(0,a.jsx)(Z.Z,{type:"button",className:"w-full text-base !bg-primary !border-primary !font-semibold",size:"large",disabled:!p||!j||!(null===f||void 0===f?void 0:f.id)||!s,loading:R,onClick:J,children:(0,a.jsx)("div",{className:"flex items-center gap-3",children:(0,a.jsx)("span",{children:"Save"})})})]})]})]})})]})},R=n(4180),z=n(25062),U=n(81504),M=n(45505),G=n(67817),K=[{name:"Profile",key:"profile"},{name:"Report Card",key:"reportCard"},{name:"Activity Kits",key:"activityKits"},{name:"Log Out",key:"logout"}],P=function(){var e,t,n=(0,v.l8)(),d=n.user,p=n.handleUserUpdated,C=n.handleSelectedCohortDataUpdated,N=n.handleSelectedClassUpdated,Z=n.purchasedBatchesData,I=n.selectedCohortData,S=n.isGettingPaidBatchesData,k=n.pwStoreBannerConfig,L=(0,g.useRouter)(),B=(0,w.a)().handleLogout,F=(0,y.Z)().isMobile,D=(0,u.useState)(!1),P=D[0],O=D[1],A=(0,u.useState)(!1),H=A[0],q=A[1],T=(0,u.useState)(!1),J=T[0],V=T[1],W=(0,u.useState)(!1),Y=W[0],X=W[1],Q=null===I||void 0===I?void 0:I.id,$=0===(null!==Z&&void 0!==Z?Z:[]).length,ee=null!==(t=null===(e=Z||[])||void 0===e?void 0:e.map((function(e){var t;return(null===e||void 0===e||null===(t=e.batch)||void 0===t?void 0:t._id)||(null===e||void 0===e?void 0:e._id)})))&&void 0!==t?t:[];(0,R.G)({cohortId:Q,enabled:!S,onSuccess:function(e){var t=null===e||void 0===e?void 0:e.data;q($?null===t||(null===t||void 0===t?void 0:t.ctaEnabled):null===t||void 0===t?void 0:t.derivedCTAEnabled)}}),(0,U.n)({batchIds:ee,enabled:!$&&!S,onSuccess:function(e){var t=null===e||void 0===e?void 0:e.data;if(!t||0===(null===t||void 0===t?void 0:t.length))return V(!1),void X(!1);var n=(null===t||void 0===t?void 0:t.map((function(e){return(0,o.Z)((0,i.Z)({},e),{notified:void 0===(null===e||void 0===e?void 0:e.notified)||e.notified})})))||[],r=n.filter((function(e){return!1===e.notified})).length;X(r===n.length),V(r>0)}});var te=function(){X(!1)},ne=L.asPath,re=null===G.ru||void 0===G.ru?void 0:G.ru.includes(L.pathname),ie=null===G.qI||void 0===G.qI?void 0:G.qI.includes(L.pathname);return(0,a.jsxs)("div",{className:"flex flex-row md:gap-8 gap-2 mx-2 items-center min-w-0",children:[re?null:(0,a.jsx)(z.Z,{variant:"tertiary",size:"small",className:"!border-none 
1!hidden md:!block",onClick:function(){return L.push("/help-center")},children:(0,a.jsxs)("div",{className:"flex flex-row items-center gap-2 h-full w-full",children:[(0,a.jsx)(h(),{src:(0,j.z0)("support.svg"),width:20,height:20}),(0,a.jsx)("span",{className:"md:block hidden",children:"Contact Us"})]})}),ie?(0,a.jsx)(z.Z,{variant:"tertiary",size:"small",className:"!border-none md:!hidden !block !bg-transparent",onClick:function(){return L.push("/help-center")},children:(0,a.jsx)("div",{className:"flex flex-row items-center gap-2 h-full w-full",children:(0,a.jsx)(h(),{src:(0,j.z0)("support.svg"),width:20,height:20})})}):null,(0,a.jsx)(m.Z,{trigger:(0,a.jsxs)("nav",{className:(0,s.Z)(c().root,"justify-end min-w-0",{"w-auto md:w-[150px]":ie}),onClick:function(e){b.Z.profileClick()},children:[(0,a.jsx)("div",{className:"min-w-0 max-w-[70px] sm:max-w-[100px] md:max-w-none",children:(0,a.jsx)(x.Z,{children:(0,a.jsxs)("b",{className:"text-[12px] md:text-sm truncate block",children:["Hi, ",(0,f.S4)(d)]})})}),(0,a.jsxs)("div",{className:"relative w-[30px] h-[30px] rounded-full md:w-[40px] md:h-[40px] shadow-xl",children:[(0,a.jsx)(h(),{width:40,height:40,alt:"profile-image",src:(0,j.z0)("landing-page/header/profile-image.svg"),className:"w-full h-full object-cover"}),J&&(0,a.jsx)("div",{className:"absolute top-[3px] right-[3px] w-2 h-2 rounded-full bg-[#F04438]"})]}),(0,a.jsx)("div",{children:(0,a.jsx)(h(),{src:(0,j.z0)("landing-page/lead-generation-section/down-icon.svg"),width:10,height:5,alt:"down-icon"})}),Y&&"/home"===ne&&(0,a.jsxs)("div",{className:"absolute top-14 right-5 bg-gray-800 text-white rounded-lg shadow-lg z-10 p-3 w-[256px] md:p-4 md:w-[350px] md:right-0",onClick:function(e){return e.stopPropagation()},children:[(0,a.jsx)("div",{className:"absolute top-[-6px] right-4 w-4 h-4 bg-gray-800 rotate-45 z-0"}),(0,a.jsx)("button",{className:"absolute right-3 top-2 font-bold",onClick:te,children:(0,a.jsx)(M.Z,{})}),(0,a.jsxs)("div",{className:"flex flex-col gap-3 md:gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-[2px]",children:[(0,a.jsx)("p",{className:"text-left font-bold text-sm md:text-lg",children:"Your Report is Ready!"}),(0,a.jsx)("p",{className:"text-left text-[12px] md:text-sm",children:"Click here to view your personalized performance report and celebrate your achievements! \ud83c\udf89"})]}),(0,a.jsx)("button",{className:"bg-white text-[#3D3D3D] px-2.5 py-2 rounded-lg text-[12px] font-semibold self-end md:px-3 md:py-2.5 md:text-sm",onClick:te,children:"OK, Got it"})]})]})]}),items:K.filter((function(e){return"reportCard"!==e.key||H})),onSelect:function(){var e=(0,r.Z)((function(e){var t,n,r,i;return(0,l.__generator)(this,(function(o){switch(o.label){case 0:return"profile"!==e?[3,1]:(O(!0),[3,5]);case 1:return"logout"!==e?[3,4]:(b.Z.logoutclick(),C(null),N(""),[4,_.KU.post("/v1/oauth/logout")]);case 2:return o.sent(),(0,f.Bt)(),(0,f.HU)(),[4,B()];case 3:return o.sent(),p(),[3,5];case 4:"reportCard"===e?(t=JSON.parse(localStorage.getItem("paidData")||"{}").user_status,b.Z.reportCardCtaClick({page:"free"===t?"home":"paid"}),L.push("/report")):"activityKits"===e&&(null===k||void 0===k?void 0:k.visible)&&(null===k||void 0===k?void 0:k.redirection_url)&&(r=F?"mweb":"web",i=(null===d||void 0===d||null===(n=d.profileId)||void 0===n?void 0:n.class)||"",b.Z.storeClick({journey:"postlogin",platform:r,grade:i,screen:"profile"}),window.open(k.redirection_url,"_blank","noopener,noreferrer")),o.label=5;case 5:return[2]}}
1))}));return function(t){return e.apply(this,arguments)}}(),dotKeys:J?["reportCard"]:[],isUserNavDropdown:!0}),P&&(0,a.jsx)(E,{onClose:function(){return O(!1)}})]})}},45505:function(e,t,n){"use strict";var r=n(29859),i=n(31501),o=n(61079),l=n(651);t.Z=function(e){var t=(0,r.Z)({},e);return(0,l.jsxs)("svg",(0,o.Z)((0,i.Z)({viewBox:"0 0 24 24",width:"24",height:"24",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",shapeRendering:"geometricPrecision"},t),{children:[(0,l.jsx)("path",{d:"M18 6L6 18"}),(0,l.jsx)("path",{d:"M6 6l12 12"})]}))}},61411:function(e,t,n){"use strict";var r=n(651),i=n(19841);n(92379);t.Z=function(e){var t=e.children,n=e.className,o=e.el,l=void 0===o?"div":o,a=e.id,s=e.clean,d=void 0!==s&&s,c=(0,i.Z)(n,{"mx-auto max-w-6xl px-4 w-full md:px-6":!d}),u=l;return(0,r.jsx)(u,{id:a||"",className:c,children:t})}},46432:function(e,t,n){"use strict";var r=n(33861),i=n(651),o=(n(92379),n(16661)),l=n(8218),a=n(84792),s=n(19841),d=n(9808),c=n.n(d);t.Z=function(e){var t=e.trigger,n=e.stretched,d=e.items,u=e.onSelect,p=e.menuWrapperStyle,h=void 0===p?"":p,v=e.dotKeys,m=void 0===v?[]:v,x=e.isUserNavDropdown,f=void 0!==x&&x,g=(0,s.Z)(c().root);return(0,i.jsx)("div",{className:"relative",children:(0,i.jsxs)(o.v,{as:"div",children:[(0,i.jsx)(o.v.Button,{className:g,type:"button",children:t}),(0,i.jsx)(l.u,{enter:"transition duration-100 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100 relative z-30",leave:"transition duration-75 ease-out",leaveFrom:"transform scale-100 opacity-100",leaveTo:"transform scale-95 opacity-0",children:(0,i.jsx)(o.v.Items,{className:(0,s.Z)("absolute max-h-[300px] overflow-y-auto right-0 top-2 bg-white  shadow-all-round-strong rounded-md p-2 space-y-1",c().menuItemsRoot,(0,r.Z)({},"w-full",n),(0,r.Z)({},h,!!h),f?"md:!w-[149px] !w-[121px]":""),children:d.map((function(e){return(0,i.jsx)(o.v.Item,{children:(0,i.jsxs)("div",{onClick:function(){return u(e.key)},className:"flex items-center gap-1.5 cursor-pointer rounded-md hover:bg-primary py-1 px-2 transition-colors duration-300 md:px-4 group",children:[(0,i.jsx)(a.Z,{variant:"regular",weight:600,children:(0,i.jsx)("div",{className:"group-hover:text-white",children:e.name})}),(null===m||void 0===m?void 0:m.includes(e.key))&&(0,i.jsx)("div",{className:"w-1.5 h-1.5 rounded-full bg-cjr-red-100"})]})},"".concat(e.name))}))})})]})})}},44923:function(e,t,n){"use strict";var r=n(33861),i=n(31501),o=n(61079),l=n(89874),a=n(651),s=n(19841),d=n(26174),c=n.n(d),u=n(92379),p=n(13818);t.Z=function(e){e.className,e.children;var t,n,d=e.onChange,h=e.rows,v=e.invalid,m=e.hardInvalid,x=e.value,f=e.action,g=e.variant,w=void 0===g?"outlined":g,_=e.setRef,b=e.preElement,j=void 0===b?(0,a.jsx)(a.Fragment,{}):b,y=e.label,C=(0,l.Z)(e,["className","children","onChange","rows","invalid","hardInvalid","value","action","variant","setRef","preElement","label"]),N=(0,u.useState)(!1),Z=(N[0],N[1]),I=(0,u.useState)(!1),S=I[0],k=I[1],L=(0,s.Z)(c().root,(t={},(0,r.Z)(t,c().outlined,"outlined"===w),(0,r.Z)(t,c().contained,"contained"===w),(0,r.Z)(t,c().shadow,"shadow"===w),(0,r.Z)(t,c().gray,"gray"===w),(0,r.Z)(t,c().flat,"flat"===w),(0,r.Z)(t,c().invalid,"outlined"===w&&v&&(S||m)),t)),B=(0,s.Z)(c().wrapperRoot,e.wrapperClassName,(n={},(0,r.Z)(n,c().wrapperShadow,"shadow"===w),(0,r.Z)(n,c().wrapperGray,"gray"===w),(0,r.Z)(n,c().wrapperFlat,"flat"===w),(0,r.Z)(n,c().wrapperShadowInvalid,v&&(S||m)&&"outlined"!==w),n)
1),F=(0,u.useState)((new Date).getTime().toString())[0];(0,u.useEffect)((function(){S||v||k(!0)}),[v]);var D=function(e){return Z(!0),d&&d(e.target.value),null},E=(0,u.useMemo)((function(){return(0,i.Z)({className:(0,s.Z)("".concat(L," peer ").concat(e.className)),onChange:D,autoComplete:"off",id:F,autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",placeholder:"outlined"===w?" ":C.placeholder||" "},C)}),[C,w,F,L,D]),R=function(e){!(null===f||void 0===f?void 0:f.onAction)||(null===f||void 0===f?void 0:f.disabled)||f.loading||"Enter"===e.code&&f.onAction(x)};return(0,a.jsxs)("div",{className:B,children:[(0,a.jsxs)("div",{className:"flex items-center",children:[j,h?(0,a.jsx)("textarea",(0,o.Z)((0,i.Z)({ref:function(e){return _?_(e):null},value:x,onKeyDown:R},E),{rows:h})):(0,a.jsx)("input",(0,o.Z)((0,i.Z)({},E),{value:x,onKeyDown:R,ref:function(e){return _?_(e):null}})),f&&(0,a.jsx)("div",{className:"pr-4 pl-1 flex",children:(0,a.jsx)(p.Z,{loading:f.loading,onClick:function(){f.onAction(x)},type:"button",variant:"naked",disabled:f.disabled,children:(0,a.jsx)("span",{className:"text-primary",children:f.text})})})]}),y&&(0,a.jsx)("label",{htmlFor:F,className:"absolute text-gray-500 duration-300 transform -translate-y-[1.2rem]  translate-x-2 scale-75 top-2 z-10 origin-[0] bg-white  px-2 peer-focus:px-2 peer-placeholder-shown:scale-100 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:top-1/2 peer-focus:top-2 peer-focus:scale-75 peer-focus:-translate-y-4 left-1 ",children:y})]})}},81504:function(e,t,n){"use strict";n.d(t,{n:function(){return s}});var r=n(61706),i=n(5972),o=n(85657),l=function(){var e=(0,r.Z)((function(e){var t,n,r;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return t=e.queryKey,n=t[1].batchIds,[4,o.KU.post("curiousjr-k8-report-service/v1/batch-report/user/batch-periods/config",{batchIds:n})];case 1:return[2,(null===(r=i.sent())||void 0===r?void 0:r.data)||(null===r||void 0===r?void 0:r.error)]}}))}));return function(t){return e.apply(this,arguments)}}(),a=n(30003),s=function(e){var t=e.batchIds,n=e.enabled,r=e.onSuccess,i=void 0===r?function(e){}:r;return(0,a.a)(["batchPeriodsConfig",{batchIds:t}],l,{enabled:n,retry:0,refetchOnWindowFocus:!1,onSuccess:i})}},4180:function(e,t,n){"use strict";n.d(t,{G:function(){return s}});var r=n(61706),i=n(5972),o=n(2563),l=function(){var e=(0,r.Z)((function(e){var t,n,r,l,a,s;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return t=e.queryKey,n=t[1],r=n.cohortId,l=n.batchId,a="v1/client/metadata/report/cohort/permissions/cohortId/".concat(r),l&&(a+="?batchId=".concat(l)),[4,o.J.get(a)];case 1:return[2,(null===(s=i.sent())||void 0===s?void 0:s.data)||(null===s||void 0===s?void 0:s.error)]}}))}));return function(t){return e.apply(this,arguments)}}(),a=n(30003),s=function(e){var t=e.cohortId,n=e.enabled,r=e.batchId,i=e.onSuccess,o=void 0===i?function(e){}:i;return(0,a.a)(["cohortPermissions",{cohortId:t,batchId:r}],l,{enabled:n&&!!t,retry:0,refetchOnWindowFocus:!1,onSuccess:o})}},30101:function(e,t,n){"use strict";var r=n(78430),i=n(80327);t.Z=function(){var e=(0,i.D)(["update-cohort"],r.jI,{retry:!1,onSuccess:function(e){console.log(e),console.log("d")}});e.data;return{data:!1,isLoading:e.isLoading,error:e.error,mutate:e.mutate}}},21571:function(e){e.exports={button:"styles_button__E_8ub",primary_button:"styles_primary_button__6KPfv",secondary_button:"styles_secondary_button__LOCWY",tertiary_button:"styles_tertiary_button__WwRxl",low_focus_button:"styles_low_focus_button__yhrPS",dark_button:"styles_dark_button__HLeiE",tiny:"styles_tiny__iDE80",small:"styles_small__VVVsv",medium:"styles_medium__Bl7IE",large:"styles_large__Lg103"}},83572:function(e){e.exports={root:"UserNav_root__ZXNbh"}},9808:function(e){e.exports={root:"Dropdown_root__S5tpF",menuItemsRoot:"Dropdown_menuItemsRoot__t2X6k"}},26174:function(e){e.exports={root:"Input_root__uQwmR",wrapperRoot:"Input_wrapperRoot__yHv1a",outlined:"Input_outlined__6onv3",noStyle:"Input_noStyle__uczmP",wrapperShadow:"Input_wrapperShadow__5JYC6",wrapperGray:"Input_wrapperGray__8D2Zq",wrapperFlat:"Input_wrapperFlat__GkxYZ",gray:"Input_gray__l7v8R",shadow:"Input_shadow__ZmABi",flat:"Input_flat__esdmF",wrapperShadowInvalid:"Input_wrapperShadowInvalid__r0Elr",wrapperGrayInvalid:"Input_wrapperGrayInvalid__KFglT",wrapperFlatInvalid:"Input_wrapperFlatInvalid__qIT8T",invalid:"Input_invalid__7qCzs"}}}]);

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.