PageSourceSearch

https://portal.findingfocus.app/_next/static/chunks/pages/portal/focus/presets-d8f3338ee6cf55b7.js

js findingfocus.app collected 2026-10-05 05:08:25 UTC 8,840 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6634],{48451:function(e,t,n){"use strict";var r=n(88169),o=n(85893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M18.6 6.62c-1.44 0-2.8.56-3.77 1.53L12 10.66 10.48 12h.01L7.8 14.39c-.64.64-1.49.99-2.4.99-1.87 0-3.39-1.51-3.39-3.38S3.53 8.62 5.4 8.62c.91 0 1.76.35 2.44 1.03l1.13 1 1.51-1.34L9.22 8.2C8.2 7.18 6.84 6.62 5.4 6.62 2.42 6.62 0 9.04 0 12s2.42 5.38 5.4 5.38c1.44 0 2.8-.56 3.77-1.53l2.83-2.5.01.01L13.52 12h-.01l2.69-2.39c.64-.64 1.49-.99 2.4-.99 1.87 0 3.39 1.51 3.39 3.38s-1.52 3.38-3.39 3.38c-.9 0-1.76-.35-2.44-1.03l-1.14-1.01-1.51 1.34 1.27 1.12c1.02 1.01 2.37 1.57 3.82 1.57 2.98 0 5.4-2.41 5.4-5.38s-2.42-5.37-5.4-5.37z"}),"AllInclusive")},42096:function(e,t,n){"use strict";var r=n(88169),o=n(85893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown")},87361:function(e,t,n){"use strict";var r=n(88169),o=n(85893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"m7 14 5-5 5 5z"}),"ArrowDropUp")},47212:function(e,t,n){"use strict";var r=n(88169),o=n(85893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"}),"ArrowForwardIos")},62026:function(e,t,n){"use strict";var r=n(88169),o=n(85893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check")},51797:function(e,t,n){"use strict";var r=n(88169),o=n(85893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit")},61665:function(e,t,n){"use strict";var r=n(88169),o=n(85893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"m6 2 .01 6L10 12l-3.99 4.01L6 22h12v-6l-4-4 4-3.99V2H6zm10 14.5V20H8v-3.5l4-4 4 4z"}),"HourglassTop")},36804:function(e,t,n){"use strict";var r=n(88169),o=n(85893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined")},26600:function(e,t,n){"use strict";var r=n(88169),o=n(85893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M12.99 9.18c0-.06.01-.12.01-.18 0-2.21-1.79-4-4-4-.06 0-.12.01-.18.01l4.17 4.17zm-6.1-3.56L4.27 3 3 4.27l2.62 2.62C5.23 7.5 5 8.22 5 9c0 2.21 1.79 4 4 4 .78 0 1.5-.23 2.11-.62L19.73 21 21 19.73l-8.62-8.62-5.49-5.49zM9 15c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4zm7.76-9.64-1.68 1.69c.84 1.18.84 2.71 0 3.89l1.68 1.69c2.02-2.02 2.02-5.07 0-7.27zM20.07 2l-1.63 1.63c2.77 3.02 2.77 7.56 0 10.74L20.07 16c3.9-3.89 3.91-9.95 0-14z"}),"VoiceOverOff")},75699:function(e,t,n){"use strict";var r=n(90948),o=n(15861),s=n(25675),i=n.n(s),a=n(85893),l=(0,r.ZP)("div")((function(e){var t=e.theme;return{display:"flex",backgroundColor:t.palette.background.tileBackgroundColor,justifyContent:"space-between",alignItems:"center",columnGap:"6px",border:t.palette.dashboardV2.headerButton.border,borderRadius:"4px",padding:"4px 8px",width:"fit-content",boxShadow:t.palette.dashboardV2.headerButton.boxShadow}})),c=(0,r.ZP)(o.Z)((function(e){return{fontSize:"14px",color:e.theme.palette.dashboardV2.headerButton.textColor,marginRight:"6px"}})),u=(0,r.ZP)("div")({}),d=(0,r.ZP)(i())({});t.Z=function(e){var t=e.testId,n=e.onClick,r=e.buttonStyle,o=e.MuiIcon,s=e.muiIconStyle,i=e.imageSrc,h=e.imageContainerStyle,f=e.imageStyle,p=e.text,x=e.textStyle;return(0,a.jsxs)(l,{"data-testid":t,onClick:n,sx:r,children:[i&&(0,a.jsx)(u,{sx:h,children:(0,a.jsx)(d,{src:i,layout:"fill",sx:f})}),o&&(0,a.jsx)(o,{sx:s}),p&&(0,a.jsx)(c,{variant:"body1",sx:x,children:p})]})}},72056:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return N}});var r=n(84278),o=n(66814),s=n(9473),i=n(67294),a=n(25946),l=n(5267),c=n(5801),u=n(42834),d=n(85518),h=n(54159),f=n(40320),p=n(75699),x=n(62026),g=n(51797),C=n(98396),Z=n(37074),v=n(16582),y=n(85893),m=function(e,t){return c.Z.create({card:{height:158,width:150,borderStyle:"dashed",borderWidth:2,borderColor:e.focusSeshDashboard.darkGreyBackgroundColor,borderRadius:16,opacity:t?.8:1,transition:"opacity 0.1s"},cardContentContainer:{height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",paddingHorizontal:4},addIconContainer:{height:54,width:54,alignItems:"center",justifyContent:"center",borderRadius:50,backgroundColor:e.focu
1sSeshDashboard.darkGreyBackgroundColor},addIcon:{fontSize:40,color:e.focusSeshDashboard.pageBodyBackgroundColor}})},w=function(e){var t=e.onClick,n=(0,i.useState)(!1),r=n[0],o=n[1],s=(0,f.Fg)(),a=m(s,r);return(0,y.jsx)(Z.Z,{activeOpacity:.6,onPress:t,onMouseEnter:function(){return o(!0)},onMouseLeave:function(){return o(!1)},testID:"createNewPresetCard",children:(0,y.jsx)(l.Z,{style:a.card,children:(0,y.jsx)(l.Z,{style:a.cardContentContainer,children:(0,y.jsx)(l.Z,{style:a.addIconContainer,children:(0,y.jsx)(v.Z,{content:"+",style:a.addIcon})})})})})},S=n(14736),b=n(58073),j=n(72458),D=n(50029),k=n(87794),P=n.n(k),I=n(49817),z=n(72929),E=n(46119),M=n(69180),L=function(e){return c.Z.create({deleteConfirmationDialogText:{fontSize:15,color:e.v2General.fontColor,marginBottom:12},deleteConfirmationDialogButtonsContainer:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",columnGap:16,width:"100%"},buttons:{width:"40%",minHeight:42,paddingVertical:10}})},B=function(e){var t=e.showDialog,n=e.setShowDialog,r=e.setDisplayDeletingPresetError,o=e.deletingPresetId,a=e.setDeletingPresetId,c=e.displayDeletingPresetError,d=e.user,h=(0,s.I0)(),p=(0,f.Fg)(),x=L(p),g=(0,i.useState)(!1),C=g[0],Z=g[1],m=(0,i.useCallback)((0,D.Z)(P().mark((function e(){var t;return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Z(!0),r(!1),e.prev=2,t=o,e.next=6,(0,E.dU)({userId:d.id,presetId:t});case 6:h((0,u.UK)(t)),a(null),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(2),r(!0);case 13:return e.prev=13,Z(!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[2,10,13,16]])}))),[o,d,h]);return(0,y.jsx)(z.Z,{showDialog:t,setShowDialog:n,disableClickOnShadeToExit:!0,hideCloseDialogIcon:!0,customBody:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(v.Z,{content:"Delete this preset?",variant:"body1",style:x.deleteConfirmationDialogText}),(0,y.jsxs)(l.Z,{style:x.deleteConfirmationDialogButtonsContainer,children:[(0,y.jsx)(M.Z,{title:"Delete",flat:!0,loading:C,onClick:m,style:x.buttons}),(0,y.jsx)(I.Z,{title:"Cancel",onClick:function(){return a(null)},style:x.buttons})]})]}),errorMessage:c?"There was an error deleting your preset.":""})},_=n(39038),F=function(){return c.Z.create({container:{width:"100%",maxWidth:672},presetsContainer:{width:"100%",minWidth:324,display:"flex",flexDirection:"row",justifyContent:"flex-start",flexWrap:"wrap",columnGap:24,rowGap:24}})},O=function(){(0,i.useEffect)((function(){d.nI||o.ZP.navigate(o.pd.FocusSeshPreview)}),[]);var e=(0,s.v9)(a.dy),t=(0,s.v9)(_.AJ),n=(0,i.useMemo)((function(){return"student"===e.role&&t.length>0}),[e,t]),r=(0,s.v9)(u.WK),c=(0,i.useMemo)((function(){return(0,S.jO)(r)}),[r]),Z=(0,f.Fg)(),v=(0,s.I0)(),m=F(),D=(0,C.Z)((function(e){return e.breakpoints.down("sm")})),k=(0,i.useState)(!1),P=k[0],I=k[1],z=(0,i.useState)(null),E=z[0],M=z[1],L=(0,i.useState)(!1),O=L[0],N=L[1],T=(0,i.useState)(!1),V=T[0],A=T[1],G=(0,i.useState)(!1),H=G[0],W=G[1],R=(0,i.useState)(!1),U=R[0],X=R[1],J=(0,i.useCallback)((function(){n?(A(!0),N(!0)):e.seenFocusSeshPreSeshOrientationStatus===a.fY.HAS_NOT_SEEN?o.ZP.navigate(o.pd.FocusSeshPreSeshOrientation):o.ZP.navigate(o.Aq.FocusSeshPlayer)}),[n,e,o.ZP]),K=(0,i.useCallback)((function(){(0,b.MX)(v),A(!1),N(!0)}),[v]);return(0,i.useEffect)((function(){W(null!==E),X(!1)}),[E]),(0,y.jsxs)(l.Z,{style:m.container,children:[(0,y.jsx)(p.Z,{onClick:function(){return I(!P)},MuiIcon:P?x.Z:g.Z,muiIconStyle:{height:"20px",width:"20px",color:Z.activeBlueColor},text:P?"Done":"Edit Presets",buttonStyle:{position:"absolute",top:-66,right:D?"10%":"0%"}}),(0,y.jsxs)(l.Z,{style:m.presetsContainer,children:[(0,y.jsx)(w,{onClick:K}),c.map((function(e,t){return(0,y.jsx)(h.Z,{cardNumber:t,preset:e,isEditingPresets:P,isDisplayingDeleteConfirmationDialog:H,setDeletingPresetId:M,onSelect:J},e.id)}))]}),(0,y.jsx)(B,{showDialog:H,setShowDialog:W,setDisplayDeletingPresetError:X,deletingPresetId:E,setDeletingPresetId:M,displayDeletingPresetError:U,user:e}),(0,y.jsx)(j.Z,{showDialog:O,setShowDialog:N,addNewPreset:!V,isClassLinkingEnabled:n,skipToClassLinking:V})]})},N=function(){return(0,y.jsx)(r.Z,{title:"Presets",showBackButton:!0,backPath:o.FJ.FocusSeshDashboard,renderedComponent:(0,y.jsx)(O,{})})}},41521:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/portal/focus/preset
1s",function(){return n(72056)}])}},function(e){e.O(0,[296,4040,6953,1006,991,4299,4559,908,320,4908,6119,3261,8400,9774,2888,179],(function(){return t=41521,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
2//# sourceMappingURL=presets-d8f3338ee6cf55b7.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.