PageSourceSearch

https://madchemclasses.online/_next/static/chunks/pages/sharable-test/[testId]-fa75903ac64d6c1f.js

js madchemclasses.online collected 2026-09-26 16:42:50 UTC 28,303 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4746],{45077:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=(0,n(91373).Z)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},55780:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=(0,n(91373).Z)("dot",[["circle",{cx:"12.1",cy:"12.1",r:"1",key:"18d7e5"}]])},13766:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=(0,n(91373).Z)("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},9560:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=(0,n(91373).Z)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])},75111:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/sharable-test/[testId]",function(){return n(57066)}])},9987:function(e,t,n){"use strict";n.d(t,{e:function(){return l}});var r=n(85893),a=(n(67294),n(70499)),s=n(35739),l=function(e){var t=e.isOpen,n=e.onClose,l=e.title,o=void 0===l?"Select Test Interface":l,i=e.description,c=void 0===i?"Which Test Interface do you want to use?":i,u=e.options,d=void 0===u?[]:u;return(0,r.jsx)(a.Vq,{open:t,onOpenChange:n,children:(0,r.jsxs)(a.cZ,{closeButton:!0,className:"bg-muted rounded-2xl max-h-[95dvh] p-8 flex flex-col overflow-hidden gap-0.5",onClick:function(e){return e.stopPropagation()},children:[(0,r.jsxs)(a.fK,{className:"text-center",children:[(0,r.jsx)(a.$N,{className:"text-xl font-semibold text-foreground",children:o}),c&&(0,r.jsx)(a.Be,{className:"text-muted-foreground mt-2",children:c})]}),(0,r.jsx)("div",{className:"flex justify-center gap-4 flex-wrap py-4",children:d.map((function(e,t){return(0,r.jsx)(s.z,{variant:"secondary"===e.variant?"secondary":"default",className:"px-6",onClick:function(t){var n;t.stopPropagation(),null===(n=e.onClick)||void 0===n||n.call(e)},children:e.label},t)}))})]})})}},76891:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(29815),a=n(85893),s=n(11163),l=n(19201),o=n(95719),i=n(83024),c=n(60766),u=n(23149),d=n(84082),f=n(44898);function p(e){var t=e.isSectionSelectorOpen,n=e.toggleSectionSelector,p=e.selectedTest,m=e.sections,h=void 0===m?[]:m,g=e.setSections,v=(0,s.useRouter)();if(!p||!h)return null;return(0,a.jsxs)(o.Z,{isOpen:t,toggle:n,children:[(0,a.jsx)(i.Z,{toggle:n,children:"Select Sections"}),(0,a.jsxs)(c.Z,{children:[(0,a.jsxs)("div",{className:"text-danger mb-3",children:["Please select atleast ",p.minimumsection," sections"]}),h.filter((function(e){return"1"==e.is_optional})).map((function(e,t){return(0,a.jsx)("div",{className:"".concat(e.selected?"bg-secondary ":"bg-light"," p-3  mb-3 cursor-pointer rounded"),onClick:function(t){e.selected=1!=e.selected,g((0,r.Z)(h))},children:e.section_title},e.section_id)}))]}),(0,a.jsx)(u.Z,{children:(0,a.jsx)(d.Z,{onClick:function(){var e=h.filter((function(e){return e.selected||"1"!=e.is_optional})).map((function(e){return e.section_id}));e.length<p.minimumsection?l.A.error("Please attempt atleast ".concat(p.minimumsection," sections")):(h.filter((function(e){return"1"==e.is_optional})),e.length>p.maximumsection?l.A.error("Maximum only ".concat(p.maximumsection," sections are allowed")):(localStorage.setItem("selected_sections",e.join(",")),(0,f.NX)(p,v)))},children:"Select"})})]})}},50723:function(e,t,n){"use strict";n.d(t,{Zn:function(){return f},cY:function(){return m},hf:function(){return p}});var r=n(40872),a=n(26042),s=n(69396),l=n(99534),o=n(85893),i=n(67294),c=n(28058),u=n(55780),d=n(62461),f=i.forwardRef((function(e,t){var n=e.className,r=e.containerClassName,s=(0,l.Z)(e,["className","containerClassName"]);return(0,o.jsx)(c.uZ,(0,a.Z)({ref:t,containerClassName:(0,d.cn)("flex items-center gap-2 has-[:disabled]:opacity-50",r),className:(0,d.cn)("disabled:cursor-not-allowed",n)},s))}));f.displayName="InputOTP";var p=i.forwardRef((function(e,t){var n=e.className,r=(0,l.Z)(e,["className"]);return(0,o.jsx)("div",(0,a.Z)({ref:t,className:(0,d.cn)("flex items-center",n)},r))}));p.displayName="InputOTPGroup";var m=i.forwardRef((function(e,t){var n=e.index,r=e.className,u=(0,l.Z)(e,["index","className"]),f=i.useContext(c.VM).slots[n],p=f.char,m=f.hasFakeCaret,h=f.isActive;return(0,o.jsxs)("div",(0,s.Z)((0,a.Z)({ref:t,className:(0,d.cn)("relative flex h-10 w-10 items-center justify-center border-y border-r border-input bg-background text-foreground text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",h&&"z-10 ring-2 ring-ring ring-offset-background",r)},u),{children:[p,(m||h&&!p)&&(0,o.jsx)("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:(0,o.jsx)("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]}))}));m.displayName="InputOTPSlot",i.forwardRef((function(e,t){var n=(0,r.Z)({},e);return(0,o.jsx)("div",(0,s.Z)((0,a.Z)({ref:t,role:"separator"}
1,n),{children:(0,o.jsx)(u.Z,{})}))})).displayName="InputOTPSeparator"},72685:function(e,t,n){"use strict";n.d(t,{I:function(){return i}});var r=n(26042),a=n(99534),s=n(85893),l=n(67294),o=n(62461),i=l.forwardRef((function(e,t){var n=e.className,l=e.type,i=(0,a.Z)(e,["className","type"]);return(0,s.jsx)("input",(0,r.Z)({type:l,className:(0,o.cn)("flex h-10 w-full rounded-md border border-foreground/50 bg-background px-3 py-2 text-base text-foreground file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:border-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-[13px]",n),ref:t},i))}));i.displayName="Input"},93223:function(e,t,n){"use strict";n.d(t,{_:function(){return d}});var r=n(26042),a=n(99534),s=n(85893),l=n(67294),o=n(49102),i=n(12003),c=n(62461),u=(0,i.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=l.forwardRef((function(e,t){var n=e.className,l=(0,a.Z)(e,["className"]);return(0,s.jsx)(o.f,(0,r.Z)({ref:t,className:(0,c.cn)(u(),n)},l))}));d.displayName=o.f.displayName},57066:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return R},default:function(){return A}});var r=n(26042),a=n(85893),s=n(47568),l=n(97582),o=n(67294),i=n(11163),c=n(19201),u=n(96486),d=n(47041),f=n(29061),p=n(28058),m=n(50723),h=n(72685),g=n(93223),v=n(35739),x=n(13766),b=n(9560),y=n(45077),w=n(89885),j=n(96076),S=n(69875),N=n(49902),E=n(73716),k=n(7386),C=n(44898),P=n(93520),_=n(9987),T=n(76891),O=n(30381),Z=n.n(O),M=n(3751);function I(e){var t=e.test,n=(e.courseId,e.lcId),r=(0,i.useRouter)(),O=(0,o.useContext)(w.Z),I=O.appConfig,R=(O.hasSession,O.currentUser),A=O.setCurrentUser,D=O.setHasSession,L=(0,o.useState)(!1),W=L[0],B=L[1],F=(0,o.useState)(""),H=F[0],z=F[1],V=(0,o.useState)(""),q=V[0],$=V[1],K=(0,o.useState)(""),U=K[0],G=K[1],Y=(0,o.useState)(!1),X=Y[0],J=Y[1],Q=(0,o.useState)(!1),ee=Q[0],te=Q[1],ne=(0,o.useState)({}),re=ne[0],ae=ne[1],se=(0,o.useState)(!1),le=se[0],oe=se[1],ie=(0,o.useState)(!1),ce=ie[0],ue=ie[1],de=(0,M.useTimer)({autoStart:X,expiryTimestamp:new Date(Date.now()+3e4),onExpire:function(){return B(!0)}}),fe=(0,o.useState)(!1),pe=fe[0],me=fe[1],he=(0,o.useState)(!1),ge=he[0],ve=he[1],xe=(0,o.useState)([]),be=xe[0],ye=xe[1],we=(0,o.useMemo)((function(){return(0,P.hb)(null===I||void 0===I?void 0:I.web_enableTestInterfaceSelector)}),[null===I||void 0===I?void 0:I.web_enableTestInterfaceSelector]),je=function(e){var t;e.userid=null!==(t=e.id)&&void 0!==t?t:e.userid,A(e),localStorage.setItem(j.gm,JSON.stringify(e)),D(!0),(0,d.setCookie)(j.KH,e.token,{sameSite:"none",secure:!0}),(0,d.setCookie)(j.JR,e.userid,{sameSite:"none",secure:!0}),f.Z.defaults.headers[j.KH]=e.token,f.Z.defaults.headers[j.JR]=e.userid},Se=function(){var e=(0,s.Z)((function(){var e;return(0,l.__generator)(this,(function(t){switch(t.label){case 0:if(e=function(){var e={};return(0,u.isEmpty)(H)?e.phone="Please enter your phone number":(0,E.n6)(H)||(e.phone="Please enter a valid mobile number"),e}(),!(0,u.isEmpty)(e))return ae(e),[2];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,(0,S.XL)(H)];case 2:return t.sent(),c.A.success("OTP sent successfully."),J(!0),B(!1),de.restart(new Date(Date.now()+3e4)),ae({}),[3,4];case 3:return t.sent(),c.A.error("OTP not sent. Please try again."),[3,4];case 4:return[2]}}
1))}));return function(){return e.apply(this,arguments)}}(),Ne=function(){var e=(0,s.Z)((function(){var e;return(0,l.__generator)(this,(function(t){switch(t.label){case 0:if(4!==q.length)return ae({otp:"Please enter the 4-digit OTP."}),[2];oe(!0),t.label=1;case 1:return t.trys.push([1,3,4,5]),[4,(0,S.Mu)(H,Number(q))];case 2:return e=t.sent(),je(e.user),c.A.success("OTP verified successfully."),te(!0),ae({}),[3,5];case 3:return t.sent(),ae({otp:"Invalid OTP. Please try again."}),[3,5];case 4:return oe(!1),[7];case 5:return[2]}}))}));return function(){return e.apply(this,arguments)}}(),Ee=function(){var e=t.test_series_id,n=t.id,r=t.ui_type,a="/test-series/".concat(e);switch(r){case"CTET":return"".concat(a,"/tests-2/").concat(n,"/terms");case"KVS":return"".concat(a,"/test-kvs/").concat(n,"/terms");case"GATE":return"".concat(a,"/test-gate/").concat(n,"/terms");case"RRB":return"".concat(a,"/test-rrb/").concat(n,"/terms");case"SSC":return"".concat(a,"/test-ssc/").concat(n,"/terms");default:return"".concat(a,"/tests/").concat(n,"/terms")}},ke=function(){var e=(0,s.Z)((function(){var e,a,s,o,i,u,f,p;return(0,l.__generator)(this,(function(l){switch(l.label){case 0:ue(!0),l.label=1;case 1:return l.trys.push([1,8,9,10]),(e=R)?!U.trim()||e.name===U&&e.phone===H?[3,3]:[4,(0,N.m)({name:U,phone:H},e)]:[2];case 2:a=l.sent().updatedUser,je(e=a),l.label=3;case 3:return s=(0,C.vL)(t),o=s.isTestActive,i=s.isTestToBeLive,s.hasTestEnded?(c.A.error("Test has ended"),[2]):i?(c.A.warning("Test will be live on: ".concat(Z()(t.date_time).format("D MMM yyyy, hh:mm A"))),[2]):o?(u=(0,d.getCookie)(j.z1),[4,(0,k.k3)(u,t.id)]):(c.A.error("Test hasn't started yet"),[2]);case 4:return l.sent().can_attempt?(localStorage.setItem(j.xj,t.id),"SSC"===t.ui_type&&we?(me(!0),[2]):"1"!==t.show_sectionselector?[3,6]:[4,(0,k.vl)(u,t.id)]):(c.A.error("You have exceeded maximum attempts on this test."),[2]);case 5:return f=l.sent(),ye(null!==f&&void 0!==f?f:[]),ve(!0),[2];case 6:return p=n?{lcId:n,baseUrl:u}:{},[4,r.push({pathname:Ee(),query:p})];case 7:return l.sent(),[3,10];case 8:return l.sent(),c.A.error("Failed to start test. Please try again."),[3,10];case 9:return ue(!1),[7];case 10:return[2]}}
1))}));return function(){return e.apply(this,arguments)}}();return(0,a.jsxs)("main",{className:"min-h-screen grid grid-cols-1 md:grid-cols-2 bg-white",children:[(0,a.jsx)("div",{className:"flex flex-col items-center justify-center p-8 gap-6",children:(0,a.jsxs)("div",{className:"w-full max-w-md flex flex-col gap-6",children:[(0,a.jsx)("div",{children:!(0,u.isEmpty)(I.web_logo)&&(0,a.jsx)("img",{src:I.web_logo,alt:"logo",className:"w-auto max-h-[45px] object-contain"})}),(0,a.jsx)("div",{children:(0,a.jsx)("img",{src:"/ic_test_record.png",className:"w-full max-w-[280px]"})}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("h2",{className:"text-xl font-semibold mb-0",children:t.title}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-3 mt-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm text-gray-600",children:[(0,a.jsx)(x.Z,{className:"w-4 h-4 text-primary"}),t.questions," Questions"]}),(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm text-gray-600",children:[(0,a.jsx)(b.Z,{className:"w-4 h-4 text-primary"}),t.marks," Marks"]}),(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm text-gray-600",children:[(0,a.jsx)(y.Z,{className:"w-4 h-4 text-primary"}),t.time," Minutes"]})]})]})]})}),(0,a.jsx)("div",{className:"flex flex-col items-center justify-center p-8 bg-[#f5f7f9] border-l",children:(0,a.jsxs)("div",{className:"w-full max-w-md flex flex-col gap-5",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("h2",{className:"text-lg font-semibold mb-0",children:ee?"One last step":X?"Verify OTP":"Register to Attempt"}),(0,a.jsx)("p",{className:"text-sm text-gray-500 mb-0",children:ee?"Enter your name to continue":X?"OTP sent to ".concat(H):"Enter your phone number to continue"})]}),ee?(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,u.isEmpty)(I.web_nameLabel)?"Full name":I.web_nameLabel,(0,a.jsx)(h.I,{placeholder:(0,u.isEmpty)(I.web_nameLabel)?"Enter your full name":"Enter your ".concat(I.web_nameLabel.toLowerCase()),value:U,onChange:function(e){return G(e.target.value)},onKeyDown:function(e){return"Enter"===e.key&&ke()},autoFocus:!0})]}),(0,a.jsx)(v.z,{className:"w-full",disabled:!U.trim()||ce,onClick:ke,children:ce?"Redirecting...":"Attempt Test"})]}):X?(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)(g._,{children:"Enter OTP"}),(0,a.jsx)(m.Zn,{maxLength:4,value:q,onChange:$,pattern:p.Ww,onKeyDown:function(e){return"Enter"===e.key&&Ne()},children:(0,a.jsxs)(m.hf,{children:[(0,a.jsx)(m.cY,{index:0}),(0,a.jsx)(m.cY,{index:1}),(0,a.jsx)(m.cY,{index:2}),(0,a.jsx)(m.cY,{index:3})]})}),re.otp&&(0,a.jsx)("p",{className:"text-sm text-red-500",children:re.otp})]}),(0,a.jsxs)("div",{className:"flex gap-3",children:[(0,a.jsx)(v.z,{variant:"outline",className:"flex-1",onClick:function(){return J(!1)},children:"Back"}),(0,a.jsx)(v.z,{className:"flex-1",onClick:Ne,disabled:le||4!==q.length,children:le?"Verifying...":"Verify OTP"})]}),W?(0,a.jsx)("button",{onClick:Se,className:"text-sm text-primary text-center font-medium",children:"Resend OTP"}):(0,a.jsxs)("p",{className:"text-center text-sm text-muted-foreground",children:["Request new OTP in ",de.seconds," seconds"]})]}):(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)(g._,{children:"Phone number"}),(0,a.jsx)(h.I,{type:"tel",placeholder:"Enter your phone number",value:H,onChange:function(e){return z(e.target.value)},onKeyDown:function(e){return"Enter"===e.key&&Se()},className:re.phone?"border-red-500":""}),re.phone&&(0,a.jsx)("p",{className:"text-sm text-red-500",children:re.phone})]}),(0,a.jsx)(v.z,{onClick:Se,disabled:!(0,E.n6)(H),className:"w-full",children:"Send OTP"})]})]})}),(0,a.jsx)(_.e,{isOpen:pe,onClose:function(){return me(!1)},title:"Select Test Interface",description:"Which Test Interface do you want to use?",options:[{label:"New Pattern",onClick:function(){me(!1),r.push({pathname:"/test-series/".concat(t.test_series_id,"/test-ssc/").concat(t.id,"/terms"),query:n?{lcId:n}:{}})}},{label:"Old Pattern",variant:"secondary",onClick:function(){me(!1),r.push({pathname:"/test-series/".concat(t.test_series_id,"/tests-2/").concat(t.id,"/terms"),query:n?{lcId:n}:{}})}}]}),ge&&(0,a.jsx)(T.Z,{isSectionSelectorOpen:ge,toggleSectionSelector:function(){return ve(!1)},selectedTest:t,sections:be,setSections:ye})]})}var R=!0;function A(e){return(0,a.jsx)(I,(0,r.Z)({},e))}A.layout=function(e){var t=e.children;return(0,a.jsx)("div",{children:t})},A.layoutTagmango=function(e){var t=e.children;return(0,a.jsx)("div",{children:t})}},49902:function(e,t,n){"use strict";n.d(t,{m:function(){return u}});var r=n(47568),a=n(26042),s=n(29815),l=n(97582),o=n(96486),i=n(69875),c=n(96076),u=function(){var e=(0,r.Z)((function(e,t){var n,r,u,d;return(0,l.__generator)(this,(function(l){switch(l.label){case 0:if(!("user"===t.name.toLowerCase()||(0,o.isEmpty)(t.name)||(0,o.isEmpty)(t.state)||(f=e,c.vE.some((function(e){return void 0!==f[e]&&""!==f[e]})))))return[3,4];l.label=1;case 1:return l.trys.push([1,3,,4]),n=["name","email","phone","username","state","info_1","password","gender","dob","height","weight"].concat((0,s.Z)(c.vE)),r={}
1,n.forEach((function(n){r[n]="password"===n?void 0!==e.password?e.password:"":e[n]||t[n]})),[4,(0,i.ck)(r)];case 2:return l.sent(),u=JSON.parse(localStorage.getItem(c.gm)||"{}"),[2,{updatedUser:(0,a.Z)({},u,r)}];case 3:return d=l.sent(),console.error("Failed to update user profile",d),[3,4];case 4:return[2,{updatedUser:t}]}var f}))}));return function(t,n){return e.apply(this,arguments)}}()},23149:function(e,t,n){"use strict";var r=n(67294),a=n(45697),s=n.n(a),l=n(93967),o=n.n(l),i=n(22040),c=["className","cssModule","tag"];function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function d(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var f={className:s().string,cssModule:s().object,tag:i.iC};function p(e){var t=e.className,n=e.cssModule,a=e.tag,s=void 0===a?"div":a,l=d(e,c),f=(0,i.mx)(o()(t,"modal-footer"),n);return r.createElement(s,u({},l,{className:f}))}p.propTypes=f,t.Z=p},49102:function(e,t,n){"use strict";n.d(t,{f:function(){return i}});var r=n(67294),a=n(75320),s=n(85893),l=Object.defineProperty,o=(e,t)=>l(e,"name",{value:t,configurable:!0}),i=r.forwardRef(o((function(e,t){return(0,s.jsx)(a.WV.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})}),"Label"))},28058:function(e,t,n){"use strict";n.d(t,{VM:function(){return p},Ww:function(){return v},uZ:function(){return m}});var r=n(67294),a=Object.defineProperty,s=Object.defineProperties,l=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,u=(e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function d(e){let t=e.getBoundingClientRect().right,n=e;for(;n;){if("visible"!==getComputedStyle(n).overflowX)return n.getBoundingClientRect().left+n.clientLeft+n.clientWidth-t;n=n.parentElement}return document.documentElement.clientWidth-t}var f=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");var p=r.createContext({}),m=r.forwardRef(((e,t)=>{var n,a,m,v,x,b=e,{value:y,onChange:w,maxLength:j,textAlign:S="left",pattern:N,placeholder:E,inputMode:k="numeric",onComplete:C,pushPasswordManagerStrategy:P="increase-width",pasteTransformer:_,containerClassName:T,noScriptCSSFallback:O=g,nonce:Z,render:M,children:I}=b,R=((e,t)=>{var n={};for(var r in e)i.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&o)for(var r of o(e))t.indexOf(r)<0&&c.call(e,r)&&(n[r]=e[r]);return n})(b,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","nonce","render","children"]);let[A,D]=r.useState("string"==typeof R.defaultValue?R.defaultValue:""),L=null!=y?y:A,W=function(e){let t=r.useRef();return r.useEffect((()=>{t.current=e})),t.current}(L),B=r.useCallback((e=>{null==w||w(e),D(e)}),[w]),F=r.useMemo((()=>N?"string"==typeof N?new RegExp(N):N:null),[N]),H=r.useRef(null),z=r.useRef(null),V=r.useRef({value:L,onChange:B,isIOS:"undefined"!=typeof window&&(null==(a=null==(n=null==window?void 0:window.CSS)?void 0:n.supports)?void 0:a.call(n,"-webkit-touch-callout","none"))}),q=r.useRef({prev:[null==(m=H.current)?void 0:m.selectionStart,null==(v=H.current)?void 0:v.selectionEnd,null==(x=H.current)?void 0:x.selectionDirection]});r.useImperativeHandle(t,(()=>H.current),[]),r.useEffect((()=>{let e=H.current,t=z.current;if(!e||!t)return;function n(){if(document.activeElement!==e)return X(null),void Q(null);let t,n=e.selectionStart,r=e.selectionEnd,a=e.selectionDirection,s=e.maxLength,l=e.value,o=q.current.prev,i=-1,c=-1;if(0!==l.length&&null!==n&&null!==r){let a=n===r,u=n===l.length&&l.length<s;if(a&&!u){let e=n;if(0===e)i=0,c=1,t="forward";else if(e===s)i=e-1,c=e,t="backward";else if(s>1&&l.length>1){let n=0;if(null!==o[0]&&null!==o[1]){t=e<o[1]?"backward":"forward";let r=o[0]===o[1]&&o[0]<s;"backward"===t&&!r&&(n=-1)}i=n+e,c=n+e+1}}-1!==i&&-1!==c&&i!==c&&e.setSelectionRange(i,c,t)}let u=-1!==i?i:n,d=-1!==c?c:r,f=null!=t?t:a;X(u),Q(d),q.current.prev=[u,d,f]}if(V.current.value!==e.value&&V.current.onChange(e.value),q.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection],document.addEventListener("selectionchange",n,{
1capture:!0}),n(),document.activeElement===e&&G(!0),!document.getElementById("input-otp-style")){let e=document.createElement("style");if(e.id="input-otp-style",Z&&e.setAttribute("nonce",Z),document.head.appendChild(e),e.sheet){let t="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";h(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),h(e.sheet,`[data-input-otp]:autofill { ${t} }`),h(e.sheet,`[data-input-otp]:-webkit-autofill { ${t} }`),h(e.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),h(e.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let r=()=>{t&&t.style.setProperty("--root-height",`${e.clientHeight}px`)};r();let a="undefined"==typeof ResizeObserver?null:new ResizeObserver(r);return null==a||a.observe(e),()=>{document.removeEventListener("selectionchange",n,{capture:!0}),null==a||a.disconnect()}}),[]);let[$,K]=r.useState(!1),[U,G]=r.useState(!1),[Y,X]=r.useState(null),[J,Q]=r.useState(null);r.useEffect((()=>{let e=function(e){return[setTimeout(e,0),setTimeout(e,10),setTimeout(e,50)]}((()=>{var e,t,n,r;null==(e=H.current)||e.dispatchEvent(new Event("input"));let a=null==(t=H.current)?void 0:t.selectionStart,s=null==(n=H.current)?void 0:n.selectionEnd,l=null==(r=H.current)?void 0:r.selectionDirection;null!==a&&null!==s&&(X(a),Q(s),q.current.prev=[a,s,l])}));return()=>{e.forEach((e=>clearTimeout(e)))}}),[L,U]),r.useEffect((()=>{void 0!==W&&L!==W&&W.length<j&&L.length===j&&(null==C||C(L))}),[j,C,W,L]);let ee=function({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:a}){let[s,l]=r.useState(!1),[o,i]=r.useState(!1),[c,u]=r.useState(!1),p=r.useMemo((()=>"none"!==n&&("increase-width"===n||"experimental-no-flickering"===n)&&s&&o),[s,o,n]),m=r.useCallback((()=>{let r=e.current,a=t.current;if(!r||!a||c||"none"===n)return;let s=r,o=s.getBoundingClientRect().left+s.offsetWidth-18,p=s.getBoundingClientRect().top+s.offsetHeight/2;0===document.querySelectorAll(f).length&&document.elementFromPoint(o,p)===r||(i(d(r)>=40),l(!0),u(!0))}),[e,t,c,n]);return r.useEffect((()=>{let t=e.current;if(!t||"none"===n)return;function r(){i(d(t)>=40)}r();let a=setInterval(r,1e3);return()=>{clearInterval(a)}}),[e,n]),r.useEffect((()=>{let e=a||document.activeElement===t.current;if("none"===n||!e)return;let r=setTimeout(m,0),s=setTimeout(m,2e3),l=setTimeout(m,5e3),o=setTimeout((()=>{u(!0)}),6e3);return()=>{clearTimeout(r),clearTimeout(s),clearTimeout(l),clearTimeout(o)}}),[t,a,n,m]),{hasPWMBadge:s,willPushPWMBadge:p,PWM_BADGE_SPACE_WIDTH:"40px"}}({containerRef:z,inputRef:H,pushPasswordManagerStrategy:P,isFocused:U}),te=r.useCallback((e=>{let t=e.currentTarget.value.slice(0,j);t.length>0&&F&&!F.test(t)?e.preventDefault():("string"==typeof W&&t.length<W.length&&document.dispatchEvent(new Event("selectionchange")),B(t))}),[j,B,W,F]),ne=r.useCallback((()=>{var e;if(H.current){let t=Math.min(H.current.value.length,j-1),n=H.current.value.length;null==(e=H.current)||e.setSelectionRange(t,n),X(t),Q(n)}G(!0)}),[j]),re=r.useCallback((e=>{var t,n;let r=H.current;if(!_&&(!V.current.isIOS||!e.clipboardData||!r))return;let a=e.clipboardData.getData("text/plain"),s=_?_(a):a;e.preventDefault();let l=null==(t=H.current)?void 0:t.selectionStart,o=null==(n=H.current)?void 0:n.selectionEnd,i=(l!==o?L.slice(0,l)+s+L.slice(o):L.slice(0,l)+s+L.slice(l)).slice(0,j);if(i.length>0&&F&&!F.test(i))return;r.value=i,B(i);let c=Math.min(i.length,j-1),u=i.length;r.setSelectionRange(c,u),X(c),Q(u)}),[j,B,_,F,L]),ae=r.useMemo((()=>({position:"relative",cursor:R.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"})),[R.disabled]),se=r.useMemo((()=>({position:"absolute",inset:0,width:ee.willPushPWMBadge?`calc(100% + ${ee.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:ee.willPushPWMBadge?`inset(0 ${ee.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:S,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height, 16px)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"})),[ee.PWM_BADGE_SPACE_WIDTH,ee.willPushPWMBadge,S]),le=r.useMemo((()=>{var e;return r.createElement("input",((e,t)=>
1s(e,l(t)))(((e,t)=>{for(var n in t||(t={}))i.call(t,n)&&u(e,n,t[n]);if(o)for(var n of o(t))c.call(t,n)&&u(e,n,t[n]);return e})({autoComplete:R.autoComplete||"one-time-code"},R),{"data-input-otp":!0,"data-input-otp-placeholder-shown":0===L.length||void 0,"data-input-otp-mss":Y,"data-input-otp-mse":J,inputMode:k,pattern:null==F?void 0:F.source,"aria-placeholder":E,style:se,maxLength:j,value:L,ref:H,spellCheck:null!=(e=R.spellCheck)&&e,onPaste:e=>{var t;re(e),null==(t=R.onPaste)||t.call(R,e)},onChange:te,onMouseOver:e=>{var t;K(!0),null==(t=R.onMouseOver)||t.call(R,e)},onMouseLeave:e=>{var t;K(!1),null==(t=R.onMouseLeave)||t.call(R,e)},onFocus:e=>{var t;ne(),null==(t=R.onFocus)||t.call(R,e)},onBlur:e=>{var t;G(!1),null==(t=R.onBlur)||t.call(R,e)}}))}),[te,ne,re,k,se,j,J,Y,E,R,null==F?void 0:F.source,L]),oe=r.useMemo((()=>({slots:Array.from({length:j}).map(((e,t)=>{var n;let r=U&&null!==Y&&null!==J&&(Y===J&&t===Y||t>=Y&&t<J),a=void 0!==L[t]?L[t]:null;return{char:a,placeholderChar:void 0!==L[0]?null:null!=(n=null==E?void 0:E[t])?n:null,isActive:r,hasFakeCaret:r&&null===a}})),isFocused:U,isHovering:!R.disabled&&$})),[U,$,j,J,Y,E,R.disabled,L]),ie=r.useMemo((()=>M?M(oe):r.createElement(p.Provider,{value:oe},I)),[I,oe,M]);return r.createElement(r.Fragment,null,null!==O&&r.createElement("noscript",null,r.createElement("style",null,O)),r.createElement("div",{ref:z,"data-input-otp-container":!0,translate:"no",style:ae,className:T},ie,r.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},le)))}));function h(e,t){try{e.insertRule(t)}catch(n){console.warn("input-otp could not insert CSS rule:",t)}}m.displayName="Input";var g="\n[data-input-otp] {\n  --nojs-bg: white !important;\n  --nojs-fg: black !important;\n\n  background-color: var(--nojs-bg) !important;\n  color: var(--nojs-fg) !important;\n  caret-color: var(--nojs-fg) !important;\n  letter-spacing: .25em !important;\n  text-align: center !important;\n  border: 1px solid var(--nojs-fg) !important;\n  border-radius: 4px !important;\n  width: 100% !important;\n}\n@media (prefers-color-scheme: dark) {\n  [data-input-otp] {\n    --nojs-bg: black !important;\n    --nojs-fg: white !important;\n  }\n}",v="^\\d+$"}},function(e){e.O(0,[4885,4898,9774,2888,179],(function(){return t=75111,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.