PageSourceSearch

https://studycafe.se/_next/static/chunks/pages/rooms/private-7df371d448320033.js

js studycafe.se collected 2026-10-08 03:21:04 UTC 7,462 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7383],{50594:function(e,t,r){"use strict";var o=r(64836);t.Z=void 0;var n=o(r(64938)),i=r(85893),a=(0,n.default)((0,i.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");t.Z=a},64938:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.createSvgIcon}});var o=r(58372)},58372:function(e,t,r){"use strict";r.r(t),r.d(t,{capitalize:function(){return n.Z},createChainedFunction:function(){return i.Z},createSvgIcon:function(){return a.Z},debounce:function(){return s.Z},deprecatedPropType:function(){return u},isMuiElement:function(){return l.Z},ownerDocument:function(){return c.Z},ownerWindow:function(){return d.Z},requirePropFactory:function(){return p},setRef:function(){return f},unstable_ClassNameGenerator:function(){return F},unstable_useEnhancedEffect:function(){return g.Z},unstable_useId:function(){return x.Z},unsupportedProp:function(){return m},useControlled:function(){return h.Z},useEventCallback:function(){return b.Z},useForkRef:function(){return v.Z},useIsFocusVisible:function(){return Z.Z}});var o=r(37078),n=r(98216),i=r(35893),a=r(82066),s=r(57144),u=function(e,t){return()=>null},l=r(71579),c=r(8038),d=r(5340);r(87462);var p=function(e,t){return()=>null},f=r(7960).Z,g=r(58974),x=r(27909),m=function(e,t,r,o,n){return null},h=r(49299),b=r(2068),v=r(51705),Z=r(79674);let F={configure:e=>{o.Z.configure(e)}}},63805:function(e){"use strict";e.exports=n,e.exports.isMobile=n,e.exports.default=n;let t=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,r=/CrOS/,o=/android|ipad|playbook|silk/i;function n(e){e||(e={});let n=e.ua;if(n||"undefined"==typeof navigator||(n=navigator.userAgent),n&&n.headers&&"string"==typeof n.headers["user-agent"]&&(n=n.headers["user-agent"]),"string"!=typeof n)return!1;let i=t.test(n)&&!r.test(n)||!!e.tablet&&o.test(n);return!i&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&-1!==n.indexOf("Macintosh")&&-1!==n.indexOf("Safari")&&(i=!0),i}},22437:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/rooms/private",function(){return r(7213)}])},31535:function(e,t,r){"use strict";var o=r(63805),n=r.n(o);let i=()=>{let e=n()({tablet:!0,featureDetect:!0}),t=!!navigator.userAgent.match(/CriOS/),r=!!navigator.userAgent.match(/FxiOS/),o=!!navigator.userAgent.match(/OPT/),i=!!navigator.userAgent.match(/Android/i);return{isMobileOrTablet:e,isChromeOnAppleDevice:t,isFirefoxOnAppleDevice:r,isOperaTouchOnAppleDevice:o,isAndroidDevice:i}};t.Z=i},50328:function(e,t,r){"use strict";var o=r(85893),n=r(67294),i=r(99226),a=r(93946),s=r(50594),u=r(22120);let l="mobileInfoTextDismissed",c=()=>{let[e,t]=(0,n.useState)(!0),{t:r}=(0,u.$G)();(0,n.useEffect)(()=>{let e="true"===localStorage.getItem(l);t(!e)},[]);let c=()=>{t(!1),localStorage.setItem(l,"true")};return e?(0,o.jsxs)(i.Z,{sx:{backgroundColor:"#FFEDF0",borderRadius:"5px",border:"1px solid #E5E5E5",textAlign:"center",color:"text.primary",width:"100%",fontSize:"16px",lineHeight:"24px",padding:2,marginLeft:"auto",marginRight:"auto",position:"relative"},children:[r("components.mobileInfoText.bestExperienceMessage"),(0,o.jsx)(a.Z,{size:"small",sx:{position:"absolute",top:"8px",right:"8px"},onClick:c,"aria-label":"close",children:(0,o.jsx)(s.Z,{fontSize:"small"})})]}):null};t.Z=c},13754:function(e,t,r){"use strict";r.d(t,{a:function(){return a}});var o=r(85893),n=r(2734),i=r(50135);r(67294);let a=e=>{let t=(0,n.Z)(),r={textFieldStyles:{"& .MuiInput-underline:after":{borderColor:t.palette.green[500],boder:"2px"},"& label.Mui-focused":{color:"gray"},"& .MuiOutlinedInput-root":{"&:hover fieldset":{borderColor:"white"},"&.Mui-focused fieldset":{borderColor:"gray"}}}};return(0,o.jsx)(i.Z,{...e,sx:[r.textFieldStyles,...Array.isArray(e.sx)?e.sx:[e.sx]]})}},7213:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return j}});var o=r(85893),n=r(67294),i=r(2734),a=r(98396),s=r(99226),u=r(15861),l=r(83321),c=r(7631),d=r(11163),p=r(55008),f={src:"/_next/static/media/privateRoomPageBackgroun
1d.37809424.svg",height:467,width:715,blurWidth:0,blurHeight:0},g=r(22120),x=r(45013),m=r(13754),h=r(51049),b=r(25675),v=r.n(b),Z=r(31535),F=r(50328);let y=()=>{let{t:e}=(0,g.$G)(),t=(0,d.useRouter)(),r=(0,c.m)(),x=(0,i.Z)(),b=(0,a.Z)(x.breakpoints.up("md"),{defaultMatches:!0}),y=(0,Z.Z)(),[j,w]=n.useState(""),[R,k]=n.useState(""),C={container:{borderRadius:"6px",padding:"100px",width:"100%",height:"100%",margin:"15px",backgroundColor:"#FFFFFF",display:"flex"},contentWrapper:{zIndex:1},title:{fontSize:"34px",fontWeight:"500",lineHeight:"42px",marginBottom:"24px"},description:{fontSize:"16px",lineHeight:"24px",color:"#7E8182"},createRoomButton:{backgroundColor:x.palette.green[500]},joinRoomButton:{backgroundColor:"#787878"},buttonText:{fontSize:"14px",fontWeight:"500",color:"#FFFFFF"},errorMessage:{color:"#FF0000",fontSize:"12px"}},_=async()=>{try{let e=await r.room.save({name:"private-room",type:p.nW.Private});if(e.error)throw console.error(e.error),Error("Failed to create room");await t.push("/rooms/".concat(e.data.roomKey))}catch(e){console.error(e)}},P=async()=>{try{let e=await r.room.getByRoomCode(j);if(e.error)throw Error(e.error.message);await t.push("/rooms/".concat(e.data.roomKey))}catch(t){var o,n;(null===(o=t.error)||void 0===o?void 0:o.message)==="no-room-found"?k(e("privateRoomsPage.invalidRoomCodeErrorMessage")):k(null===(n=t.error)||void 0===n?void 0:n.message)}};return(0,o.jsxs)(s.Z,{sx:{...C.container,padding:b?25:void 0,flexDirection:b?"row":"column",backgroundColor:b?"#FFFFFF":"transparent"},children:[y.isMobileOrTablet&&(0,o.jsx)(s.Z,{sx:{marginRight:"8%",marginBottom:"20px"},children:(0,o.jsx)(F.Z,{})}),(0,o.jsxs)(s.Z,{sx:C.contentWrapper,children:[(0,o.jsx)(u.Z,{sx:C.title,children:e("privateRoomsPage.title")}),(0,o.jsx)(u.Z,{sx:C.description,children:e("privateRoomsPage.description")}),(0,o.jsx)(s.Z,{sx:{marginTop:12,marginBottom:6},children:(0,o.jsx)(l.Z,{variant:"contained",color:"primary",onClick:_,sx:C.createRoomButton,children:e("privateRoomsPage.createRoomButtonLabel")})}),(0,o.jsx)(u.Z,{sx:C.description,children:e("privateRoomsPage.orLabel")}),(0,o.jsxs)(s.Z,{sx:{marginTop:"10px"},children:[(0,o.jsx)(m.a,{margin:"none",size:"small",variant:"outlined",sx:{marginRight:"10px"},label:e("privateRoomsPage.joinRoomTextfieldLabel"),value:j,onChange:e=>{k(""),w(e.target.value)}}),(0,o.jsx)(h.KM,{onClick:P,disabled:j.length<4,children:e("privateRoomsPage.joinRoomButtonLabel")}),(0,o.jsx)(u.Z,{sx:C.errorMessage,children:R})]})]}),(0,o.jsx)(s.Z,{sx:{width:b?"50%":void 0,height:b?"400px":void 0,position:b?"absolute":void 0,right:b?0:void 0},children:(0,o.jsx)(v(),{src:f,alt:"Private Room Background",style:{width:"90%",objectFit:"contain"}})})]})};y.acl={action:x.H.Read,subject:x.D.StudentPage};var j=y},64836:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}},function(e){e.O(0,[2395,135,9774,2888,179],function(){return e(e.s=22437)}),_N_E=e.O()}]);

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.