"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5659],{5659:function(e,n,t){t.d(n,{m$:function(){return H},y6:function(){return Q},Mi:function(){return b},WS:function(){return P},G_:function(){return V},UX:function(){return B},kQ:function(){return X}});var o=t(47568),i=t(26042),a=t(69396),r=t(828),s=t(70655),l=t(85893),u=t(67294),c=t(41664),d=t.n(c),_=t(11163),m=t.n(_),f=t(31328),h=t(88375),p=t(31555),g=t(99287),v=t(96850),E=t(54629),A=t(33518),I=t(41993),T=t(86512),x=t(4298),N=t.n(x);var w=function(e){var n=u.useRef(null),t=(0,r.Z)(u.useState(!1),2),o=t[0],i=t[1],a=u.useCallback((function(n){if(n.credential){var t,o={medium:"google",token:n.credential};null===(t=window.google.accounts)||void 0===t||t.id.cancel(),e.onSuccess(o)}else e.onFailure("Authentication failed. Please try again.")}),[]);return u.useEffect((function(){return window&&window.google&&(window.google.accounts.id.initialize({client_id:e.clientId,callback:a,cancel_on_tap_outside:!1}),window.google.accounts.id.renderButton(n.current,{theme:"outline",size:"large",text:e.type,shape:"pill"}),window.google.accounts.id.prompt()),function(){var e;window&&window.google&&(null===(e=window.google.accounts)||void 0===e||e.id.cancel())}}),[o]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(N(),{src:"https://accounts.google.com/gsi/client",onLoad:function(){i(!0)}}),(0,l.jsx)("div",{ref:n,className:"pt-2 d-flex align-items-center justify-content-center"})]})},C=t(49395),S=t(72765),M=t(59198);var b=function(e){var n,t,c,m,x,N=function(e){return e=""+e,!isNaN(e)&&!isNaN(parseFloat(e))},b=function(){var e=L.query.next_url;e?window.location.href=Array.isArray(e)?e[0]:e:L.push("/admin")},L=(0,_.useRouter)(),Z=(0,I.Z)(""),O=(0,I.Z)("91"),y=(0,I.Z)(""),D=function(n){var t;return null===(t=e.integrationData)||void 0===t?void 0:t.find((function(e){return e.name===n}))}("google"),j=(0,r.Z)(u.useState(!1),2),R=j[0],Y=j[1],k=(0,r.Z)(u.useState(!1),2),P=k[0],U=k[1],B=(0,r.Z)(u.useState({variant:"info",show:!1,message:""}),2),H=B[0],G=B[1];u.useEffect((function(){e.geo_stack&&e.geo_stack.calling_code&&e.geo_stack.calling_code&&O.changeValue(e.geo_stack.calling_code)}),[e.geo_stack]);var F=function(e){(0,A.M4)(E.yLi(e.id)).then((function(e){1===e.length&&(0,C.oU)({userProfile:e[0]})}))},Q=function(e){(0,A.M4)(E.yLi(e.id)).then((function(e){var n=e.find((function(e){return!0===e.is_master}));(null===n||void 0===n?void 0:n.nex_id)&&(0,C.$e)({userProfile:n})}))},V=function(){var e=(0,o.Z)((function(e){var n,t,a,r,l;return(0,s.__generator)(this,(function(u){return e.preventDefault(),U(!1),(N(Z.value)||Z.value.trim().match(/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/)||(U(!0),Y(!1),0))&&(Y(!0),G({variant:"danger",show:!1,message:"Please enter valid email/mobile"}),t=window.location.host,t.includes("localhost")?n="deepak":(a=t.split("."),n=a[0]),r={},l=!0,Z.value.includes("@")?r=(0,i.Z)({email:Z.value.trim(),password:y.value.trim(),tenant:n.trim(),medium:"email"},{device_info:window.userDeviceInfo}):N(parseInt(Z.value))?r=(0,i.Z)({mobile:O.value.trim()+Z.value.trim(),password:y.value.trim(),tenant:n.trim(),medium:"mobile"},{device_info:window.userDeviceInfo}):l=!1,l?(0,A.T3)(E.PXC,r).then(function(){var e=(0,o.Z)((function(e){var n,t,o,i;return(0,s.__generator)(this,(function(a){return n=e.user,t=e.permissions,o=e.access_token,i={email:n.email,first_name:n.first_name,last_name:n.last_name,phone:n.mobile_number,platform_last_login:(new Date).toString(),is_platform_user:"Yes",email_verified:n.is_email_verified?"Yes":"No"},(0,S.sy)(i),t&&((0,v.jS)(t),delete e.permissions),(0,g.o4)(e),(0,g.M8)(o),(0,C.qz)({}),n.is_superuser?Q(n):F(n),b(),[2]}))}));return function(n){return e.apply(this,arguments)}}()).catch((function(e){Y(!1),G({variant:"danger",show:!0,message:e.error||"Something went wrong. Please try again later or contact the support team."})})):(G({variant:"danger",show:!0,message:"Oops! Something went wrong, please try again."}),Y(!1))),[2]}))}));return function(n){return e.apply(this,arguments)}}();return(0,l.jsxs)("div",{children:[(0,l.jsxs)(f.Z,{onSubmit:V,autoComplete:"off",children:[(0,l.jsx)("div",{children:(0,l.jsx)(h.Z,{style:{fontSize:"14px"},className:"mb-2",variant:H.variant,show:H.show,onClose:function(){G((0,a.Z)((0,i.Z)({},H),{show:!1}))},dismissible:!0,children:H.message})}),(0,l.jsxs)(f.Z.Row,{children:[N(Z.value)&&(0,l.jsxs)(p.Z,{sm:2,children:[(0,l.jsx)(f.Z.Label,{className:"label",children:"CC"}),(0,l.jsx)(f.Z.Control,{type:"text",value:O.value,onChange:O.onChange,required:!0,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false"})]}),(0,l.jsx)(p.Z,{children:(0,l.jsxs)(f.Z.Group,{controlId:"email",className:"mb-1",children:[(0,l.jsx)(f.Z.Label,{className:"label",children:"email / mobile"}),(0,l.jsx)(f.Z.Control,{type:"text",value:Z.value,onChange:Z.onChange,required:!0,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false"})]})}),P&&(0,l.jsx)(p.Z,{md:12,children:(0,l.jsx)(f.Z.Text,{className:"text-danger",children:"* Please enter valid email."})})]}),(0,l.jsxs)(f.Z.Group,{controlId:"password",children:[(0,l.jsx)(f.Z.Label,{className:"label",children:"Password"}),(0,l.jsx)(f.Z.Control,{type:"password",value:y.value,onChange:y.onChange,required:!0}),(0,l.jsx)(f.Z.Text,{children:(0,l.jsx)(d(),{href:"/forgot-password",children:(0,l.jsx)("a",{children:(0,l.jsx)(T.e9,{children:"Forgot your password?"})})})})]}),(0,l.jsx)("div",{className:"w-100",children:(0,l.jsx)(T.kL,{className:"w-100",type:"submit",disabled:R,style:{borderRadius:"50px"},children:R?"Logging in...":"Login"})})]}),!!(null===D||void 0===D||null===(n=D.props)||void 0===n?void 0:n.enabled)&&"string"==typeof(null===D||void 0===D||null===(t=D.props)||void 0===t||null===(c=t.key)||void 0===c?void 0:c.clientId)&&(0,l.jsx)(w,{onSuccess:function(e){var n=window.location.host,t=(0,M.qw)(n);e=(0,i.Z)((0,a.Z)((0,i.Z)({},e),{medium:"google",tenant:t.trim()}),{device_info:window.userDeviceInfo}),(0,A.T3)(E.LNd,e).then(function(){var e=(0,o.Z)((function(e){var n,t,o;return(0,s.__generator)(this,(function(i){return n=e.user,t=e.access_token,o={email:n.email,first_name:n.first_name,last_name:n.last_name,phone:n.mobile_number,platform_last_login:(new Date).toString(),is_platform_user:"Yes",email_verified:n.is_email_verified?"Yes":"No"},(0,S.sy)(o),(null===e||void 0===e?void 0:e.permissions)&&((0,v.jS)(e.permissions),delete e.permissions),(0,g.o4)(e),(0,g.M8)(t),(0,C.qz)({}),n.is_superuser?Q(n):F(n),b(),delete window.google,[2]}))}));return function(n){return e.apply(this,arguments)}}()).catch((function(e){Y(!1),G({variant:"danger",show:!0,message:e.error||"Something went wrong. Please try again later or contact the support team."})}))},onFailure:function(e){Y(!1),G({variant:"danger",show:!0,message:e})},type:"signin_with",clientId:null===D||void 0===D||null===(m=D.props)||void 0===m||null===(x=m.key)||void 0===x?void 0:x.clientId})]})},L=t(9669),Z=t.n(L),O=t(34051),y=t(34853),D=t(76208),j=t(62990),R=t(8413),Y=(t(15922),t(96505)),k=function(e,n,t,o){return!function(e,n,t){return!!n||!(!t||!e)}(e,t,o)||("email"===n?(0,j.vV)(e):"mobile"===n&&(0,R.yf)(e))};var P=function(e){var n,t,c=e.geo_stack,d=e.integrationData,_=e.signUpConfig,x=function(){m().push("/classrooms")},N=u.useRef(null),b=(0,r.Z)(u.useState(!1),2),L=b[0],j=b[1],P=(0,r.Z)(u.useState({state:!1,message:""}),2),U=P[0],B=P[1],H=(0,r.Z)(u.useState(!0),2),G=H[0],F=H[1],Q=(0,r.Z)(u.useState(!0),2),V=Q[0],z=Q[1],q=(0,r.Z)(u.useState({variant:"info",show:!1,message:""}),2),W=q[0],X=q[1],$=(0,r.Z)(u.useState("IN"),2),K=$[0],J=$[1];u.useEffect((function(){c&&c.calling_code&&c.calling_code&&J(c.country_code)}),[c]);var ee=(0,I.Z)(""),ne=(0,I.Z)(""),te=(0,I.Z)(""),oe=(0,I.Z)(""),ie=(0,I.Z)(""),ae=(0,I.Z)(""),re=u.useMemo((function(){var e=oe.value.trim();if(!e)return"";var n=(0,R.SR)(oe.value);return n?e=n.countryCallingCode+n.nationalNumber:""}),[oe.value]),se=u.useMemo((function(){if(_)return D.zx.find((function(e){return e.state===_}))}),[_]),le=function(e){(0,A.M4)(E.yLi(e.id)).then((function(e){1===e.length&&(0,C.oU)({userProfile:e[0]})}))},ue=function(e){return null===d||void 0===d?void 0:d.find((function(n){return n.name===e}))},ce=ue("google"),de=(ue("microsoft"),function(){var e=(0,o.Z)((function(e){var n,t,o,i;return(0,s.__generator)(this,(function(a){switch(a.label){case 0:if(!e)return[2];if(!te.value&&!oe.value)return[2];a.label=1;case 1:return a.trys.push([1,6,7,8]),j(!0),n={medium:te.value||oe.value,captcha:e},[4,Z()({method:"POST",url:"/api/recaptcha",baseURL:"/",data:n})];case 2:return"success"!==(t=a.sent()).data?[3,3]:(_e(),[3,5]);case 3:return[4,t&&t.data];case 4:throw o=a.sent(),new Error(o.message);case 5:return[3,8];case 6:return i=a.sent(),j(!1),alert((null===i||void 0===i?void 0:i.message)||"Something went wrong"),[3,8];case 7:return N&&N.current&&N.current.reset(),[7];case 8:return[2]}}))}));return function(n){return e.apply(this,arguments)}}()),_e=function(){var e=(0,o.Z)((function(){var e,n,t,r,l,u,c,d,_,m,f,h,p,I;return(0,s.__generator)(this,(function(T){return se?(j(!0),e=se.is_email_shown,n=se.is_email_mandatory,t=se.is_mobile_shown,r=se.is_mobile_mandatory,l=te.value.trim(),u=oe.value.trim(),c=ie.value,d=ae.value,_=k(l,"email",n,e),F(_),_?(m=k(u,"mobile",r,t),z(m),m?c.length<8?(B({state:!0,message:"Password length must be at least 8 characters."}),j(!1),[2]):c!==d?(B({state:!0,message:"The password confirmation does not match."}),j(!1),[2]):(B({state:!1,message:""}),h=window.location.host,h.includes("localhost")?f="deepak":(p=h.split("."),f=p[0]),I=(0,i.Z)((0,a.Z)((0,i.Z)({first_name:ee.value.trim(),last_name:ne.value.trim()},e&&{email:l},t&&{mobile_number:re}),{password:ie.value.trim(),tenant:f.trim()}),{device_info:window.userDeviceInfo}),(0,A.T3)(E.isY,I).then(function(){var e=(0,o.Z)((function(e){var n,t,o;return(0,s.__generator)(this,(function(i){return n=e.user,t=e.access_token,o={email:n.email,first_name:n.first_name,last_name:n.last_name,phone:n.mobile_number,platform_last_login:(new Date).toString(),is_platform_user:"Yes",email_verified:n.is_email_verified?"Yes":"No"},(0,S.sy)(o),(null===e||void 0===e?void 0:e.permissions)&&((0,v.jS)(e.permissions),delete e.permissions),(0,g.o4)(e),(0,g.M8)(t),(0,C.qz)({}),le(n),x(),[2]}))}));return function(n){return e.apply(this,arguments)}}()).catch((function(e){j(!1),X((0,a.Z)((0,i.Z)({},W),{variant:"danger",show:!0,message:e.error||"Something went wrong. Please try again later or contact the support team."}))})),[2]):(j(!1),[2])):(j(!1),[2])):[2]}))}));return function(){return e.apply(this,arguments)}}();return _?(0,l.jsxs)("div",{children:[(0,l.jsxs)(f.Z,{onSubmit:function(e){e.preventDefault(),N&&N.current&&N.current.execute()},autoComplete:"off",children:[(0,l.jsx)(O.Z,{children:(0,l.jsx)(p.Z,{children:(0,l.jsx)("div",{children:(0,l.jsx)(h.Z,{className:"mb-2",variant:W.variant,show:W.show,onClose:function(){X((0,a.Z)((0,i.Z)({},W),{show:!1}))},dismissible:!0,children:W.message})})})}),(0,l.jsxs)(f.Z.Row,{children:[(0,l.jsx)(p.Z,{children:(0,l.jsxs)(f.Z.Group,{controlId:"firstName",children:[(0,l.jsx)(f.Z.Label,{className:"label",children:"First Name *"}),(0,l.jsx)(f.Z.Control,{type:"text",value:ee.value,onChange:ee.onChange,required:!0,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false"})]})}),(0,l.jsx)(p.Z,{children:(0,l.jsxs)(f.Z.Group,{controlId:"lastName",children:[(0,l.jsx)(f.Z.Label,{className:"label",children:"Last Name *"}),(0,l.jsx)(f.Z.Control,{type:"text",value:ne.value,onChange:ne.onChange,required:!0,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false"})]})})]}),(null===se||void 0===se?void 0:se.is_email_shown)&&(0,l.jsx)(f.Z.Row,{children:(0,l.jsx)(p.Z,{children:(0,l.jsxs)(f.Z.Group,{controlId:"email",children:[(0,l.jsx)(f.Z.Label,{className:"label",children:"email ".concat(se.is_email_mandatory?"*":"")}),(0,l.jsx)(f.Z.Control,{type:"text",value:te.value,onChange:te.onChange,required:se.is_email_mandatory,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false"}),!G&&(0,l.jsx)(f.Z.Text,{className:"text-danger",children:(0,l.jsx)(T.e9,{className:"no-hover",children:"* Please enter valid email."})})]})})}),(null===se||void 0===se?void 0:se.is_mobile_shown)&&(0,l.jsx)(f.Z.Row,{children:(0,l.jsx)(p.Z,{children:(0,l.jsxs)(f.Z.Group,{controlId:"channel",children:[(0,l.jsx)(f.Z.Label,{className:"label",children:"mobile number ".concat(se.is_mobile_mandatory?"*":"")}),(0,l.jsx)(R.ZP,{international:!0,countryCallingCodeEditable:!1,defaultCountry:K,className:"signup-phone-input",value:oe.value,onChange:function(e){oe.changeValue(e||"")}}),se.is_email_shown&&(0,l.jsx)(f.Z.Text,{className:"text-primary",style:{fontSize:"10px"},children:(0,l.jsx)(T.e9,{className:"no-hover",children:"* Either email or mobile number can be used to sign in."})}),!V&&(0,l.jsx)(f.Z.Text,{className:"text-danger",children:(0,l.jsx)(T.e9,{className:"no-hover",children:"* Please enter valid mobile number."})})]})})}),(0,l.jsxs)(f.Z.Row,{children:[(0,l.jsx)(p.Z,{children:(0,l.jsxs)(f.Z.Group,{className:"m-0",controlId:"passwordOne",children:[(0,l.jsx)(f.Z.Label,{className:"label",children:"Password *"}),(0,l.jsx)(f.Z.Control,{type:"password",value:ie.value,onChange:ie.onChange,required:!0,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false"})]})}),(0,l.jsx)(p.Z,{children:(0,l.jsxs)(f.Z.Group,{className:"m-0",controlId:"passwordTwo",children:[(0,l.jsx)(f.Z.Label,{className:"label",children:"Confirm Password *"}),(0,l.jsx)(f.Z.Control,{type:"password",value:ae.value,onChange:ae.onChange,required:!0,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false"})]})}),(0,l.jsxs)(p.Z,{md:12,className:"pb-2",children:[(0,l.jsx)(f.Z.Text,{className:"text-primary",style:{fontSize:"10px"},children:(0,l.jsx)(T.e9,{className:"no-hover",children:"* Minimum length of 8 characters."})}),U.state?(0,l.jsx)(f.Z.Text,{className:"text-danger",children:U.message}):""]})]}),(0,l.jsx)("div",{style:{width:"100%"},children:(0,l.jsx)(T.kL,{className:"w-100",type:"submit",disabled:L,style:{borderRadius:"50px"},children:L?"Signing Up...":"Sign Up"})})]}),!!(null===ce||void 0===ce?void 0:ce.props.enabled)&&(0,l.jsx)(w,{onSuccess:function(e){var n=window.location.host,t=(0,M.qw)(n);e=(0,i.Z)((0,a.Z)((0,i.Z)({},e),{medium:"google",tenant:t.trim()}),{device_info:window.userDeviceInfo}),(0,A.T3)(E.LNd,e).then(function(){var e=(0,o.Z)((function(e){var n,t,o;return(0,s.__generator)(this,(function(i){return n=e.user,t=e.access_token,o={email:n.email,first_name:n.first_name,last_name:n.last_name,phone:n.mobile_number,platform_last_login:(new Date).toString(),is_platform_user:"Yes",email_verified:n.is_email_verified?"Yes":"No"},(0,S.sy)(o),(null===e||void 0===e?void 0:e.permissions)&&((0,v.jS)(e.permissions),delete e.permissions),(0,g.o4)(e),(0,g.M8)(t),(0,C.qz)({}),n.is_superuser?function(e){(0,A.M4)(E.yLi(e.id)).then((function(e){var n=e.find((function(e){return!0===e.is_master}));(null===n||void 0===n?void 0:n.nex_id)&&(0,C.$e)({userProfile:n})}))}(n):le(n),x(),delete window.google,[2]}))}));return function(n){return e.apply(this,arguments)}}()).catch((function(e){j(!1),X({variant:"danger",show:!0,message:e.error||"Something went wrong. Please try again later or contact the support team."})}))},onFailure:function(e){j(!1),X({variant:"danger",show:!0,message:e})},type:"signup_with",clientId:null===ce||void 0===ce||null===(n=ce.props)||void 0===n||null===(t=n.key)||void 0===t?void 0:t.clientId}),(0,l.jsx)(y.Z,{ref:N,size:"invisible",sitekey:"6Ledf4EbAAAAADONYdPUcsPZxptonEA8W6OlMrO0",onChange:de})]}):(0,l.jsx)(Y.a_,{})},U=t(56145);var B=function(e){return(0,l.jsx)("div",{children:(0,l.jsxs)(U.b$,{children:[(0,l.jsx)("input",{type:"text",required:Boolean(e.required),value:e.value,onChange:e.onChange,disabled:e.disabled}),(0,l.jsx)("label",{children:e.placeHolder})]})})};var H=function(e){return(0,l.jsx)("div",{children:(0,l.jsxs)(U.b$,{children:[(0,l.jsx)("input",{type:"password",required:Boolean(e.required),value:e.value,onChange:e.onChange}),(0,l.jsx)("label",{children:e.placeHolder})]})})},G=t(14924),F=t(62112),Q=function(e){var n=(0,r.Z)(u.useState({title:"",description:"",keywords:[]}),2),t=n[0],o=n[1],s=function(n,r){o((0,a.Z)((0,i.Z)({},t),(0,G.Z)({},n,r))),e.handleData((0,a.Z)((0,i.Z)({},t),(0,G.Z)({},n,r)))};return u.useEffect((function(){e.data&&o((function(n){return(0,a.Z)((0,i.Z)({},n),{title:e.data.title?e.data.title:"",description:e.data.description?e.data.description:"",keywords:e.data.keywords?e.data.keywords:[]})}))}),[e.data]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(f.Z.Group,{controlId:"meta-seo-title",children:[(0,l.jsx)(f.Z.Label,{className:"form-label-text",children:"Title"}),(0,l.jsx)(f.Z.Control,{type:"text",value:t.title,onChange:function(e){return s("title",e.target.value)}})]}),(0,l.jsxs)(f.Z.Group,{controlId:"meta-seo-description",children:[(0,l.jsx)(f.Z.Label,{className:"form-label-text",children:"Description"}),(0,l.jsx)(f.Z.Control,{as:"textarea",rows:3,value:t.description,onChange:function(e){return s("description",e.target.value)}})]}),(0,l.jsxs)(f.Z.Group,{controlId:"meta-seo-description",children:[(0,l.jsx)(f.Z.Label,{className:"form-label-text",children:"Keywords"}),(0,l.jsx)(F.I3,{data:t.keywords,handleData:s}),(0,l.jsx)(f.Z.Text,{children:"Click enter to create multiple keywords."})]})]})},V=function(e){var n=(0,r.Z)(u.useState({facebook:"",instagram:"",linked_in:"",twitter:"",youtube:""}),2),t=n[0],o=n[1],s=function(n,r){o((0,a.Z)((0,i.Z)({},t),(0,G.Z)({},n,r))),e.handleData((0,a.Z)((0,i.Z)({},t),(0,G.Z)({},n,r)))};return u.useEffect((function(){e.data&&o((function(n){return(0,a.Z)((0,i.Z)({},n),{facebook:e.data.facebook?e.data.facebook:"",instagram:e.data.instagram?e.data.instagram:"",linked_in:e.data.linked_in?e.data.linked_in:"",twitter:e.data.twitter?e.data.twitter:"",youtube:e.data.youtube?e.data.youtube:""})}))}),[e.data]),(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"row",children:[(0,l.jsxs)("div",{className:"col-sm-6",children:[(0,l.jsxs)(f.Z.Group,{controlId:"meta-seo-facebook",children:[(0,l.jsx)(f.Z.Label,{className:"form-label-text pt-2",children:"Facebook"}),(0,l.jsx)(f.Z.Control,{type:"text",value:t.facebook,onChange:function(e){return s("facebook",e.target.value)}})]}),(0,l.jsxs)(f.Z.Group,{controlId:"meta-seo-linked_in",children:[(0,l.jsx)(f.Z.Label,{className:"form-label-text pt-2",children:"LinkedIn"}),(0,l.jsx)(f.Z.Control,{type:"text",value:t.linked_in,onChange:function(e){return s("linked_in",e.target.value)}})]}),(0,l.jsxs)(f.Z.Group,{controlId:"meta-seo-youtube",children:[(0,l.jsx)(f.Z.Label,{className:"form-label-text pt-2",children:"YouTube"}),(0,l.jsx)(f.Z.Control,{type:"text",value:t.youtube,onChange:function(e){return s("youtube",e.target.value)}})]})]}),(0,l.jsxs)("div",{className:"col-sm-6",children:[(0,l.jsxs)(f.Z.Group,{controlId:"meta-seo-instagram",children:[(0,l.jsx)(f.Z.Label,{className:"form-label-text pt-2",children:"Instagram"}),(0,l.jsx)(f.Z.Control,{type:"text",value:t.instagram,onChange:function(e){return s("instagram",e.target.value)}})]}),(0,l.jsxs)(f.Z.Group,{controlId:"meta-seo-twitter",children:[(0,l.jsx)(f.Z.Label,{className:"form-label-text pt-2",children:"Twitter"}),(0,l.jsx)(f.Z.Control,{type:"text",value:t.twitter,onChange:function(e){return s("twitter",e.target.value)}})]})]})]})})},z=t(9645),q=t(713),W=function(e){var n=e.title,t=e.type,o=e.color,i=e.handler,a=(0,r.Z)(u.useState(!1),2),s=a[0],c=a[1],d=function(){c(!s)},_=(0,r.Z)(u.useState(),2),m=_[0],f=_[1];return u.useEffect((function(){o&&f(o)}),[o]),(0,l.jsx)("div",{className:"theme-dropdown",children:(0,l.jsxs)(z.Z,{show:s,onToggle:d,drop:"up",children:[(0,l.jsx)(z.Z.Toggle,{as:"div",className:"dropdown-container",children:(0,l.jsxs)("div",{className:"d-flex flex-wrap align-items-center",style:{gap:"10px",border:"1px solid #ccc",borderRadius:"4px",padding:"8px 10px",cursor:"pointer"},onClick:d,children:[(0,l.jsx)("div",{style:{fontSize:"14px",fontWeight:600},children:n}),m&&(0,l.jsx)("div",{style:{backgroundColor:"rgba(".concat(m.r,",").concat(m.g,",").concat(m.b,",").concat(m.a,")"),width:"40px",height:"40px",borderRadius:"2px",marginLeft:"auto",border:"1px solid rgba(".concat(m.r,",").concat(m.g,",").concat(m.b,",").concat(m.a,")"),cursor:"pointer"}})]})}),(0,l.jsx)(z.Z.Menu,{show:s,className:"content-wrapper p-0 mb-2",children:(0,l.jsx)("div",{children:(0,l.jsx)(q.xS,{color:m,onChangeComplete:function(e){var n=e.rgb;f(n),i(t,n)}})})})]})})},X=function(e){var n=(0,r.Z)(u.useState(),2),t=n[0],o=n[1];u.useEffect((function(){e.data&&o(e.data)}),[e.data]);var s=function(n,r){o((0,a.Z)((0,i.Z)({},t),(0,G.Z)({},n,r))),e.handleData((0,a.Z)((0,i.Z)({},t),(0,G.Z)({},n,r)))};return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"d-flex flex-wrap align-items-center mt-3 mb-3",style:{gap:"10px"},children:[t&&t.anchor&&(0,l.jsx)(W,{title:"Anchor",type:"anchor",color:t.anchor,handler:s}),t&&t.button&&(0,l.jsx)(W,{title:"Button",type:"button",color:t.button,handler:s})]})})}},72765:function(e,n,t){t.d(n,{Tk:function(){return a},sy:function(){return i}});var o=t(26042);function i(e){var n;(null===window||void 0===window||null===(n=window.EhAPI)||void 0===n?void 0:n.push)&&(null===e||void 0===e?void 0:e.email)&&window.EhAPI.push(["getContact",e.email,{success:function(n){n.error==="Contact not found with email - ".concat(e.email)&&function(e){var n;(null===window||void 0===window||null===(n=window.EhAPI)||void 0===n?void 0:n.push)&&window.EhAPI.push(["createContact",e,{success:function(n){(null===n||void 0===n?void 0:n.id)&&window.EhAPI.push(["setEmail",e.email])},error:function(e){console.log("error",e.error)}}])}(e),(null===n||void 0===n?void 0:n.id)&&(window.EhAPI.push(["setEmail",e.email]),a((0,o.Z)({email:e.email,platform_last_login:e.platform_last_login,email_verified:e.email_verified},(null===e||void 0===e?void 0:e.tags)&&{tags:e.tags})))},error:function(e){console.log("error",e.error)}}])}function a(e){var n;(null===window||void 0===window||null===(n=window.EhAPI)||void 0===n?void 0:n.push)&&window.EhAPI.push(["updateContact",e,{success:function(e){console.log("success, Contact updated",e)},error:function(e){console.log("error",e.error)}}])}},59198:function(e,n,t){t.d(n,{YT:function(){return i},qw:function(){return o}});t(99287);var o=function(e){var n;e.includes("localhost")?n="deepak":n=e.split(".")[0];return n},i=function(e,n){return{title:e&&e.info&&e.info.meta_tags&&e.info.meta_tags.title?e.info.meta_tags.title:"",description:e&&e.info&&e.info.meta_tags&&e.info.meta_tags.description?e.info.meta_tags.description:"",keywords:e&&e.info&&e.info.meta_tags&&e.info.meta_tags.keywords?e.info.meta_tags.keywords:"",url:"https://".concat(n),display_name:e.display_name?e.display_name:"",favicon:e.info&&e.info.favicon?e.info.favicon:"",image_url:e.info&&e.info.logo?e.info.logo:"",google_site_verification:e.info&&e.info.google_site_verification?e.info.google_site_verification:"",facebook_domain_verification:e.info&&e.info.facebook_domain_verification?e.info.facebook_domain_verification:""}}},77327:function(e,n,t){var o;t.d(n,{S:function(){return o}}),function(e){e.SESSION_STARTED="Session got started.",e.SESSION_ENDED="Session got ended.",e.SESSION_RESUMED="Session got resumed.",e.SESSION_VISIBILITY_HIDDEN="Session got inactive*.",e.SESSION_VISIBILITY_ACTIVE="Session got active.",e.SESSION_EXIT_USING_SAVE_N_EXIT="Session exited using Save and Exit button.",e.SESSION_EXIT_USING_BROWSER_BACK="Session exited using browser Back button.",e.FULL_SCREEN_TAMPERING="Full screen exit attempted."}(o||(o={}))},71750:function(e,n,t){var o;t.d(n,{q:function(){return o}}),function(e){e.store_page="store_page",e.store_checkout_page="store_checkout_page",e.cart_page="cart_page",e.product_page="product_page",e.product_checkout_page="product_checkout_page",e.success_page="success_page"}(o||(o={}))},76208:function(e,n,t){var o,i,a;t.d(n,{rU:function(){return c},Jn:function(){return O},rz:function(){return g},MM:function(){return i},W4:function(){return I},zM:function(){return d},Ob:function(){return p},X3:function(){return m},lQ:function(){return _},mC:function(){return u},Zp:function(){return l},gn:function(){return Z},Nq:function(){return h},Vg:function(){return v},Tm:function(){return E},R8:function(){return f},bf:function(){return r},vI:function(){return s},Ux:function(){return A},Hk:function(){return o},FI:function(){return D},xc:function(){return Y},yk:function(){return N},vb:function(){return w},Ri:function(){return a},YM:function(){return M},aY:function(){return x},XP:function(){return T},gu:function(){return L},aZ:function(){return y},Wg:function(){return j},p8:function(){return C},nC:function(){return b},zx:function(){return R},_I:function(){return S}}),function(e){e.NONE="",e.STUDENT_ENROLMENT_DATE="by_enrollment_datetime",e.STUDENT_COURSE_START_DATE="by_start_datetime",e.ON_A_SPECIFIC_DATE="by_specific_datetime"}(o||(o={})),function(e){e.DELETE="DELETE",e.ARCHIVE="ARCHIVE",e.UNARCHIVE="UNARCHIVE"}(i||(i={})),function(e){e.SUCCESS="success",e.FAIL="fail"}(a||(a={}));var r,s,l,u,c,d,_,m,f,h,p,g,v,E;!function(e){e.GENERIC="GENERIC",e.SAT="SAT",e.PSAT="PSAT",e.PSAT_8_9="PSAT_8_9"}(r||(r={})),function(e){e.GENERIC="No Scaled Score",e.SAT="Digital SAT (Weighted Average)",e.PSAT="Digital PSAT NMSQT (Weighted Average)",e.PSAT_8_9="Digital PSAT 8/9 (Weighted Average)"}(s||(s={})),function(e){e.THANK_YOU="THANK_YOU",e.RESULT="RESULT",e.PUBLIC_RESULT="PUBLIC_RESULT",e.REDIRECT_TO="REDIRECT_TO"}(l||(l={})),function(e){e.THANK_YOU="Thank You Page",e.RESULT="Summary Page",e.PUBLIC_RESULT="Public Summary Page",e.REDIRECT_TO="Redirect To"}(u||(u={})),function(e){e.STANDARD="STANDARD",e.ADAPTIVE="ADAPTIVE",e.RANDOM="RANDOM"}(c||(c={})),function(e){e.latest="latest",e.oldest="oldest"}(d||(d={})),function(e){e.Calculator="Calculator",e.ReferenceSheet="ReferenceSheet"}(_||(_={})),function(e){e.Calculator="Calculator",e.ReferenceSheet="Reference Sheet"}(m||(m={})),function(e){e.Calculator="Calculator",e.ReferenceSheet="Reference",e.Annotation="Annotate"}(f||(f={})),function(e){e.last="last",e.first="first"}(h||(h={})),function(e){e[e.AUGMENT_ATTEMPT=1]="AUGMENT_ATTEMPT"}(p||(p={})),function(e){e.DELETE="DELETE",e.DUPLICATE="DUPLICATE",e.ARCHIVE="ARCHIVE",e.UNARCHIVE="UNARCHIVE"}(g||(g={})),function(e){e[e.ONE_AND_HALF=1.5]="ONE_AND_HALF",e[e.DOUBLE=2]="DOUBLE",e[e.MORE_THAN_DOUBLE=4]="MORE_THAN_DOUBLE"}(v||(v={})),function(e){e.ONE_AND_HALF="time and one-half (+50%)",e.DOUBLE="double time (+100%)",e.MORE_THAN_DOUBLE="more than double time (>+100%)"}(E||(E={}));var A,I,T,x,N,w,C,S=[{label:"No Difficulty",value:0},{label:"Very Easy",value:1},{label:"Easy",value:2},{label:"Medium",value:3},{label:"Hard",value:4},{label:"Very Hard",value:5}];!function(e){e[e.NO_DIFFICULTY=0]="NO_DIFFICULTY",e[e.VERY_EASY=1]="VERY_EASY",e[e.EASY=2]="EASY",e[e.MEDIUM=3]="MEDIUM",e[e.HARD=4]="HARD",e[e.VERY_HARD=5]="VERY_HARD"}(A||(A={})),function(e){e.DELETE="DELETE",e.DUPLICATE="DUPLICATE"}(I||(I={})),function(e){e.MCQ_SA="MCQ-SA",e.MCQ_MA="MCQ-MA",e.NIP="NIP",e.MCQ_DROPDOWN_SA="MCQ-DROPDOWN-SA",e.MCQ_DROPDOWN_MA="MCQ-DROPDOWN-MA",e.YN="MCQ-YN",e.TF="MCQ-TF",e.TIP="TIP",e.MATCH_BY_DRAG="DRAG-MATCH",e.MATCH_BY_SELECT="MATCH-BY-SELECT",e.ESSAY="ESSAY",e.AUDIO="AUDIO",e.VIDEO="VIDEO"}(T||(T={})),function(e){e.MCQ_SA="MCQ_SA",e.MCQ_DROPDOWN_SA="MCQ_DROPDOWN_SA",e.MCQ_MA="MCQ_MA",e.NIP="NIP",e.TIP="TIP",e.TF="TF",e.YN="YN",e.MATCH_BY_DRAG="MATCH_BY_DRAG",e.MATCH_BY_SELECT="MATCH_BY_SELECT",e.ESSAY="ESSAY",e.AUDIO="AUDIO",e.VIDEO="VIDEO"}(x||(x={})),function(e){e.PARAGRAPH="P",e.IMAGE="IMG",e.TEXT="#text",e.BOLD_TEXT="B",e.ITALIC_TEXT="I",e.UNDERLINE_TEXT="U",e.MATH="math",e.MATHINLINE="MATHINLINE"}(N||(N={})),function(e){e.PARAGRAPH="paragraph",e.IMAGE="image",e.TEXT="text",e.BOLD_TEXT="bold_text",e.ITALIC_TEXT="italic_text",e.UNDERLINE_TEXT="underline_text",e.MATHINLINE="inlineEquation",e.MATH="equation"}(w||(w={})),function(e){e[e.BOLD_TEXT=1]="BOLD_TEXT",e[e.ITALIC_TEXT=2]="ITALIC_TEXT",e[e.UNDERLINE_TEXT=8]="UNDERLINE_TEXT"}(C||(C={}));var M,b,L,Z,O;t(77327);!function(e){e.CORRECT="correct",e.INCORRECT="incorrect",e.SKIPPED="skipped"}(M||(M={})),function(e){e.SUBMITTED="Submitted"}(b||(b={})),function(e){e.SESSION_SUMMARY="sessionSummary",e.SECTION_SUMMARY="sectionSummary",e.ASSESSMENT_META_INFO="assessmentMetaInfo",e.CUMULATIVE_SUMMARY="cumulativeSummary",e.DIFFICULTY_ANALYSIS="difficultyAnalysis",e.USER_RESPONSE_SUMMARY="userResponseSummary",e.EXCLUDE_SELECTOR="exclude-selector"}(L||(L={})),function(e){e.Question_ID="Question_ID",e.Question_Data="Question_Data",e.Question_Order="Question_Order",e.User_Answer="User_Answer",e.Correct_Answer="Correct_Answer",e.Status="Status",e.Difficulty="Difficulty",e.Folder_name="Folder_name",e.Question_Tag="Question_Tag",e.Question_Type="Question_Type",e.Assessment_Name="Assessment_Name",e.Section_Name="Section_Name",e.Time_Spent_Seconds="Time_Spent (Seconds)",e.Attempted_Date="Attempted_Date",e.User_Name="User_Name",e.Profile_Name="Profile_Name",e.User_Email="User_Email",e.User_Mobile="User_Mobile",e.Admin_Score="Admin_Score",e.Admin_Comment="Admin_Comment",e.Section_Time_Accommodation="Section_Time_Accommodation",e.Break_Time_Accommodation="Break_Time_Accommodation"}(Z||(Z={})),function(e){e.AdminPeopleBulk="AdminPeopleBulk",e.ClassroomUserBulk="ClassroomUserBulk",e.AssessmentUserBulk="AssessmentUserBulk"}(O||(O={}));var y;t(71750);!function(e){e.ONLY_EMAIL="ONLY_EMAIL",e.ONLY_MOBILE="ONLY_MOBILE",e.EMAIL_MOBILE_WITH_EMAIL_MANDATORY="EMAIL_MOBILE_WITH_EMAIL_MANDATORY",e.EMAIL_MOBILE_WITH_MOBILE_MANDATORY="EMAIL_MOBILE_WITH_MOBILE_MANDATORY",e.EMAIL_MANDATORY_MOBILE_MANDATORY="EMAIL_MANDATORY_MOBILE_MANDATORY"}(y||(y={}));var D,j={ONLY_EMAIL:"Only Email",ONLY_MOBILE:"Only Mobile",EMAIL_MOBILE_WITH_EMAIL_MANDATORY:"Email Mandatory, Mobile Optional",EMAIL_MOBILE_WITH_MOBILE_MANDATORY:"Mobile Mandatory, Email Optional",EMAIL_MANDATORY_MOBILE_MANDATORY:"Email and Mobile (both mandatory)"},R=[{is_email_mandatory:!0,is_email_shown:!0,is_mobile_mandatory:!1,is_mobile_shown:!1,state:"ONLY_EMAIL"},{is_email_mandatory:!1,is_email_shown:!1,is_mobile_mandatory:!0,is_mobile_shown:!0,state:"ONLY_MOBILE"},{is_email_mandatory:!0,is_email_shown:!0,is_mobile_mandatory:!1,is_mobile_shown:!0,state:"EMAIL_MOBILE_WITH_EMAIL_MANDATORY"},{is_email_mandatory:!1,is_email_shown:!0,is_mobile_mandatory:!0,is_mobile_shown:!0,state:"EMAIL_MOBILE_WITH_MOBILE_MANDATORY"},{is_email_mandatory:!0,is_email_shown:!0,is_mobile_mandatory:!0,is_mobile_shown:!0,state:"EMAIL_MANDATORY_MOBILE_MANDATORY"}];!function(e){e.ONLY_EMAIL="ONLY_EMAIL",e.ONLY_MOBILE="ONLY_MOBILE",e.EMAIL_MANDATORY_MOBILE_MANDATORY="EMAIL_MANDATORY_MOBILE_MANDATORY",e.NONE="NONE"}(D||(D={}));var Y={ONLY_EMAIL:"Only Email",ONLY_MOBILE:"Only Mobile",EMAIL_MANDATORY_MOBILE_MANDATORY:"Email and Mobile (both mandatory)",NONE:"None"}}}]);