PageSourceSearch

https://start.enboq.com/static/js/3512.68d8e218.chunk.js

js enboq.com collected 2026-10-08 07:51:24 UTC 12,428 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkriddlestory=self.webpackChunkriddlestory||[]).push([[3512],{11374(e,t,r){r.d(t,{A:()=>v});var o=r(92577),a=r(6154),i=r(50888),n=r(77081),s=r(10982),l=r(11264),d=r(28076),c=r(87486),m=r(54967),g=r(49198),u=r(90705),p=r(90109),f=r(2205),h=r(29529),x=r(85582);const b=(0,s.Ay)("div")(e=>{let{theme:t}=e;return{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",background:t.organization.backgroundURI?"no-repeat center center fixed url(".concat(t.organization.backgroundURI,")"):"linear-gradient(135deg, ".concat(t.palette.primary.main," 0%, ").concat(t.palette.secondary.main," 100%)"),backgroundSize:"cover",position:"relative",overflow:"auto",[t.breakpoints.down("mobile")]:{background:(0,f.sM)(t.palette.primary.main,.52),overflow:"hidden"}}}),v=e=>{var t;let{children:r,tips:s}=e;const l=(0,n.A)(),f=(0,p.Zp)(),v=(0,p.zy)(),[y,j]=(0,g.useState)(!1),A=(0,g.useRef)(null),[z,k]=(0,g.useState)(0),M=w({height:z});return(0,g.useLayoutEffect)(()=>{var e;A.current&&k(window.innerHeight-(null===(e=A.current)||void 0===e?void 0:e.offsetHeight)+12)},[null===(t=A.current)||void 0===t?void 0:t.offsetHeight]),(0,g.useEffect)(()=>{v.pathname.includes("reset-password")?j(!0):j(!1)},[v.pathname]),(0,x.jsxs)(b,{children:[u.Fr&&(0,x.jsx)("div",{className:M.layer,children:(0,x.jsx)("div",{className:M.mirror,children:(0,x.jsx)(d.N,{size:{margin:"5px 0 0 0 ",width:"80%",height:"90%"}})})}),u.Fr&&y&&(0,x.jsx)(h.oq,{variant:"contained",onClick:()=>f(-1),children:(0,x.jsx)(o.A,{})}),(0,x.jsx)("div",{className:M.container,ref:A,children:u.xl?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(a.Ay,{item:!0,md:7,lg:6}),(0,x.jsx)(a.Ay,{item:!0,md:5,lg:6,className:M.resizeContainer,children:r})]}):(0,x.jsx)(x.Fragment,{children:r})}),u.xl&&(0,x.jsx)(i.A,{position:"fixed",bottom:"9vh",left:"5vw",maxWidth:"30vw",zIndex:2,children:s&&s.length>0&&(0,x.jsx)(m.H,{tipsTexts:s})}),u.xl&&(0,x.jsx)(c.M,{zIndex:1,opacity:.8,color:l.palette.primary.main})]})},w=(0,l.A)(e=>({container:{position:"fixed",display:"flex",width:"100%",zIndex:2,alignItems:"center",[e.breakpoints.up("desktop")]:{height:"100%",justifyContent:"flex-end"},[e.breakpoints.down("mobile")]:{position:"absolute",bottom:0,left:0,overflowY:"scroll",paddingTop:"16px",backgroundColor:"white",borderTopLeftRadius:"15px",borderTopRightRadius:"15px"}},resizeContainer:{[e.breakpoints.up("desktop")]:{display:"flex",justifyContent:"space-around",transform:"scale(80%)"}},layer:{[e.breakpoints.down("mobile")]:{position:"absolute",top:0,left:0,width:"100%",display:"flex",justifyContent:"center",alignItems:"center",background:"no-repeat linear-gradient(".concat((0,f.sM)(e.palette.primary.main,.52),", ").concat((0,f.sM)(e.palette.primary.main,.52),"), center center url(").concat(e.organization.backgroundURI,")"),backgroundSize:"cover",backgroundColor:(0,f.sM)(e.palette.primary.main,.52),height:e=>{let{height:t}=e;return t}}},mirror:{display:"flex",justifyContent:"center",width:"80%",marginBottom:12,background:"linear-gradient(to bottom right, ".concat((0,f.sM)("#FFFFFF",.42),",  ").concat((0,f.sM)("#FFFFFF",.06),") "),backdropFilter:"blur(6px)",WebkitBackdropFilter:"blur(6px)",borderRadius:10,height:"80%",maxHeight:120}}))},93512(e,t,r){r.r(t),r.d(t,{default:()=>x});var o=r(54499),a=r(60644),i=r(75260),n=r(49198),s=r(31284),l=r(34145),d=r(73432),c=r(90109),m=r(11374),g=r(23316),u=r(63649),p=r(29529),f=r(85582);const h=e=>{var t,r,i,n;let{isLoading:s,submit:c}=e;const{register:m,handleSubmit:g,errors:u,watch:h}=(0,l.mN)(),x=h("password",""),b=(0,d.A)();return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)("div",{style:{marginBottom:16},children:[(0,f.jsx)(o.A,{variant:"h5",style:{fontWeight:800,fontSize:"32px",margin:0,marginBottom:16},children:b.formatMessage({id:"AUTH.reset-password-confirm-screen.reset_your_password"})}),(0,f.jsx)(o.A,{variant:"caption",style:{fontWeight:"normal",fontSize:"18px"},children:b.formatMessage({id:"AUTH.reset-password-confirm-screen.please_enter_new"})})]}),(0,f.jsx)("form",{onSubmit:g(c),children:(0,f.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[(0,f.jsx)(p.MG,{children:(0,f.jsx)(a.A,{id:"field-password",inputRef:m({required:!0}),variant:"outlined",fullWidth:!0,type:"password",name:"password",label:b.formatMessage({id:"AUTH.login.input.password.label"}),autoComplete:"off",disabled:s,helperText:null===(t=u.password)||void 0===t?void 0:t.message,size:"small",error:!(null===(r=u.password)||void 0===r||!r.message),sx:{"& .MuiFormLabel-root":{fontSize:"18px"},"& .MuiInputBase-root":{fontWeight:500,fontSize:"18px",borderRadius:"8px"}}})}),(0,f.jsx)(p.MG,{children:(0,f.jsx)(a.A,{id:"field-confirm-password",inputRef:m({required:!0,validate:e=>e===x||"The passwords do not match"}),variant:"outlined",fullWidth:!0,type:"password",name:"confirmPassword",label:b.formatMessage({id:"AUTH.reset-password-confirm.confirm-password.label"}),autoComplete:"off",disabled:s,helperText:null===(i=u.confirmPassword)||void 0===i?void 0:i.message,size:"small",error:!(null===(n=u.confirmPassword)||void 0===n||!n.message),sx:{"& .MuiFormLabel-root":{fontSize:"18px"},"& .MuiInputBase-root":{fontWeight:500,fontSize:"18px",borderRadius:"8px"}}})}),(0,f.jsx)("div",{style:{margin:"8px 0px"}}),(0,f.jsx)(p.MG,{children:(0,f.jsx)(p.Mu,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,disableElevation:!0,disabled:s,children:b.formatMessage({id:"AUTH.reset-password-confirm-screen.change_password"})})})]})})]})},x=e=>{const t=(0,i.W)(),r=(0,d.A)(),a=(0,c.Zp)(),[l,x]=n.useState(!1),[b,v]=n.useState(!1),[w,y]=n.useState(null),j=new URLSearchParams(window.location.search),A=n.useRef(j.get("token"));return n.useEffect(()=>{A.current||t.loading||a("/".concat(t.value.slug),{replace:!0})},[a,t.value,t.loading]),t.loading?null:(0,f.jsxs)(m.A,{children:[(0,f.jsx)(s.m,{children:(0,f.jsx)("title",{children:r.formatMessage({id:"RESET_PASSWORD.page.confirm_title"})})}),(0,f.jsx)(p.j$,{children:(0,f.jsxs)(p.mA,{children:[b?(0,f.jsxs)("div",{children:[(0,f.jsx)(o.A,{variant:"h5",style:{fontWeight:800,fontSize:"32px",margin:0,marginBottom:16},children:r.formatMessage({id:"RESET_PASSWORD.success-confirm-form.title"})}),(0,f.jsx)(o.A,{variant:"caption",style:{fontWeight:"normal",fontSize:"18px"},children:r.formatMessage({id:"RESET_PASSWORD.success-confirm-form.description"},{a:e=>(0,f.jsx)("a",{href:"/".concat(t.value.slug),children:e})})})]}):(0,f.jsx)(h,{isLoading:l,submit:async e=>{x(!0),y("");try{await g.rO(A.current,e.password),v(!0)}catch(t){const e=(0,u.u)(t.json.message);y(e)}finally{x(!1)}}}),w]})})]})}},63649(e,t,r){r.d(t,{u:()=>a});var o=r(59228);function a(e){return{"Please re-authenticate.":(0,o.UX)().formatMessage({id:"AUTH.error.invali
1d-credentials"}),"validation-error.":(0,o.UX)().formatMessage({id:"AUTH.error.invalid-credentials"}),"auth/email-already-exists":(0,o.UX)().formatMessage({id:"AUTH.error.email-already-exists"}),"auth/invalid-credentials":(0,o.UX)().formatMessage({id:"AUTH.error.invalid-credentials"}),"auth/room-not-available":(0,o.UX)().formatMessage({id:"AUTH.error.room-not-available"}),"auth/room-inaccessible":(0,o.UX)().formatMessage({id:"AUTH.error.room-inaccessible"}),"auth/room-not-exist":(0,o.UX)().formatMessage({id:"AUTH.error.room-not-exist"}),"auth/passwordless-registration-not-allowed":(0,o.UX)().formatMessage({id:"AUTH.error.passwordless-registration-not-allowed"}),"auth/email-not-part-of-organization":(0,o.UX)().formatMessage({id:"AUTH.error.email-not-part-of-organization"})}[e]||(0,o.UX)().formatMessage({id:"AUTH.error.internal-server-error"})}},28076(e,t,r){r.d(t,{N:()=>m});var o=r(89379),a=r(49198),i=r(77081),n=r(11264),s=r(78063),l=r(22481),d=r(76657),c=r(85582);const m=e=>{let{type:t="backgroundImg",size:r}=e;const o=(0,i.A)().organization.logoURI,n=g({size:r,logoUrl:o}),m=(0,a.useRef)(null),u=(0,a.useRef)(null);return(0,a.useEffect)(()=>{const e=setTimeout(()=>{(0,s.C)(m.current),(0,s.C)(u.current)},50);return()=>clearTimeout(e)},[]),(0,c.jsx)(c.Fragment,{children:"backgroundImg"===t?"https://riddlestory-common-assets.s3.eu-central-1.amazonaws.com/logo/Enboq-Logo-NoPayoff-Svg.svg"===o?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(l.h,{ref:m,"data-testid":"organization_logo",className:n.backgroundImg+" EnboqLogo"}),(0,c.jsx)(d.h,{ref:u,"data-testid":"organization_logo",className:n.backgroundImg+" EnboqWhiteLogo"})]}):(0,c.jsx)("div",{"data-testid":"organization_logo",className:n.backgroundImg}):(0,c.jsx)("img",{src:"".concat(o),className:n.img,alt:"company logo"})})},g=(0,n.A)(e=>({backgroundImg:t=>{let{logoUrl:r}=t;return(0,o.A)((0,o.A)({},"https://riddlestory-common-assets.s3.eu-central-1.amazonaws.com/logo/Enboq-Logo-NoPayoff-Svg.svg"!==r?{background:"url(".concat(e.organization.logoURI,") no-repeat center"),backgroundSize:"contain",width:"428px",height:"96px"}:{width:"300px","&.EnboqWhiteLogo":{display:"none"}}),{},{[e.breakpoints.down("mobile")]:(0,o.A)((0,o.A)({"&.EnboqWhiteLogo":{display:"block"},"&.EnboqLogo":{display:"none"},width:e=>{let{size:t}=e;return null!==t&&void 0!==t&&t.width?t.width:"55%"}},"https://riddlestory-common-assets.s3.eu-central-1.amazonaws.com/logo/Enboq-Logo-NoPayoff-Svg.svg"!==r&&{height:e=>{let{size:t}=e;return null!==t&&void 0!==t&&t.height?t.height:"65px"}}),{},{margin:e=>{let{size:t}=e;return null!==t&&void 0!==t&&t.margin?t.margin:"0 0 0 22.5%"}})})},img:{marginBottom:16,[e.breakpoints.down("mobile")]:{width:"100%",maxWidth:e=>{let{size:t}=e;return t?t.maxWidth:120}}}}))},87486(e,t,r){r.d(t,{M:()=>g});var o=r(11264),a=r(49198);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},i.apply(null,arguments)}var n=a.createElement("defs",null,a.createElement("style",null,".a{fill:url(#a);}"),a.createElement("linearGradient",{id:"a",x1:.5,x2:.5,y2:1,gradientUnits:"objectBoundingBox"},a.createElement("stop",{offset:0,stopColor:"#2b4673",stopOpacity:.902}),a.createElement("stop",{offset:1,stopColor:"#16233a",stopOpacity:.902}))),s=a.createElement("path",{className:"a",d:"M2176.281,1649.029c-132.318-27.377-151-2.589-271.614-50.555-135.654-53.946-421.988-14.881-622.342-57.666s-198.375-113.474-349.458-206.484-360.33-81.85-507.686-132.075c-87.532-29.835-140.4-65.577-168.9-89.681v589.9l1920-1.372Z",transform:"translate(-256.281 -1112.567)"});function l(e,t){let{title:r,titleId:o}=e,l=function(e,t){if(null==e)return{};var r,o,a=function(e,t){if(null==e)return{};var r={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;r[o]=e[o]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["title","titleId"]);return a.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:1920,height:589.895,viewBox:"0 0 1920 589.895",ref:t,"aria-labelledby":o},l),r?a.createElement("title",{id:o},r):null,n,s)}const d=a.forwardRef(l);r.p;var c=r(85582);const m=(0,o.A)(e=>({root:{"& .a":{fill:t=>{let{color:r}=t;return r||e.palette.primary.main}}}})),g=e=>{let{color:t,zIndex:r,opacity:o}=e;const a=m({color:t});return(0,c.jsx)("div",{style:{position:"fixed",bottom:-72,left:0,opacity:o||.7,zIndex:r||-1},children:(0,c.jsx)(d,{className:a.root,width:"100vw",preserveAspectRatio:"none"})})}},54967(e,t,r){r.d(t,{H:()=>d});var o=r(73432),a=r(50888),i=r(54499),n=r(10982),s=r(81973),l=r(85582);const d=e=>{let{tipsTexts:t,intervalMS:r=5e3}=e;const i=(0,o.A)();return(0,l.jsxs)(a.A,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",textAlign:"left",children:[(0,l.jsx)(c,{"data-testid":"tips_title",children:i.formatMessage({id:"TIPS.game-tips.tips"})}),(0,l.jsx)(m,{"data-testid":"tips_content",children:t[0]})]})},c=(0,n.Ay)(i.A)(e=>{let{theme:t}=e;return{fontSize:"32px",fontWeight:800,color:(0,s.WZ)(t.palette.primary.main),marginBottom:16,marginTop:8}}),m=(0,n.Ay)(i.A)(e=>{let{theme:t}=e;return{fontSize:20,fontWeight:800,lineHeight:1.3,color:(0,s.WZ)(t.palette.primary.main)}})},92577(e,t,r){r.d(t,{A:()=>i});var o=r(96815),a=r(85582);const i=(0,o.A)((0,a.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack")}}]);
2//# sourceMappingURL=3512.68d8e218.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.