1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9096],{95195:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/ResourceConfig",function(){return r(89213)}])},32951:function(e,t,r){"use strict";r.d(t,{Z:function(){return o},u:function(){return u}});var n=r(97458),a=r(52983),l=r(57291),i=r(14517);let s=(0,l.j)("rounded-md",{defaultVariants:{hasSections:!1,theme:"primary"},variants:{hasSections:{false:"p-6",true:"divide-y"},theme:{alternative:"border border-border-default bg-background-alternative",primary:"border border-border-muted bg-background-default"}}}),o=a.forwardRef(function(e,t){let{children:r,className:a,dataTestId:l,hasSections:o,theme:u}=e;return(0,n.jsx)("div",{className:(0,i.Z)(s({hasSections:o,theme:u}),a),"data-testid":l,ref:t,children:r})});o.displayName="Card";let u=e=>{let{children:t,className:r}=e;return(0,n.jsx)("div",{className:(0,i.Z)(r,"p-6"),children:t})}},35006:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(97458),a=r(99737);r(52983);var l=r(57291);let i=(0,l.j)("relative inline-flex h-7 w-12 items-center rounded-full transition-colors duration-200 ease-in-out",{variants:{disabled:{false:"cursor-pointer",true:"cursor-not-allowed opacity-50"},isOn:{false:"bg-icon-muted",true:"bg-primary-default"}}}),s=(0,l.j)("inline-block h-6 w-6 transform rounded-full bg-white transition duration-200 ease-in-out",{variants:{isOn:{false:"translate-x-0.5",true:"translate-x-[22px]"}}}),o=e=>{let{"aria-label":t,disabled:r,handleToggle:l,isOn:o,...u}=e;return(0,n.jsx)(a.r,{"aria-label":t,checked:o,className:i({disabled:r,isOn:o}),disabled:r,onChange:()=>null==l?void 0:l(),children:(0,n.jsx)("span",{className:s({isOn:o})})})}},89213:function(e,t,r){"use strict";r.r(t);var n=r(97458),a=r(52983),l=r(14321),i=r(68957),s=r(32951),o=r(72201),u=r(61026),c=r(35006),d=r(33397);t.default=function(){let[e,t]=(0,d.ZP)(d.b9),[r,f]=(0,a.useState)(!1);(0,a.useMemo)(()=>{f(e)},[e]);let{addToast:p}=(0,l.e1)();return(0,n.jsxs)(s.Z,{children:[(0,n.jsx)(o.X,{as:"h4",className:"mb-1",children:"Resource Hub"}),(0,n.jsxs)("div",{className:"mb-6 flex flex-wrap items-center",children:[(0,n.jsx)(u.x,{className:"w-full py-2 pr-4 md:w-auto",children:"Click on the toggle button to display or hide the Resource Hub in your homepage"}),(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)(c.Z,{handleToggle:()=>{f(!r)},isOn:r}),(0,n.jsx)(u.x,{className:"ml-3",children:r?"ON":"OFF"})]})]}),(0,n.jsx)(i.z,{onClick:()=>{t(r),p("Dashboard Configurations Updated",{appearance:"success",autoDismiss:!0})},children:"Save"})]})}},60815:function(e,t,r){"use strict";r.d(t,{_:function(){return d},b:function(){return c}});var n=r(52983),a=r(57464),l=r(66753),i=r(83581),s=r(96939),o=r(23584);let u=(0,n.createContext)(null);function c(){let[e,t]=(0,n.useState)([]);return[e.length>0?e.join(" "):void 0,(0,n.useMemo)(()=>function(e){let r=(0,a.z)(e=>(t(t=>[...t,e]),()=>t(t=>{let r=t.slice(),n=r.indexOf(e);return -1!==n&&r.splice(n,1),r}))),l=(0,n.useMemo)(()=>({register:r,slot:e.slot,name:e.name,props:e.props}),[r,e.slot,e.name,e.props]);return n.createElement(u.Provider,{value:l},e.children)},[t])]}let d=Object.assign((0,o.yV)(function(e,t){let r=(0,l.M)(),{id:a="headlessui-label-".concat(r),passive:c=!1,...d}=e,f=function e(){let t=(0,n.useContext)(u);if(null===t){let t=Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),p=(0,s.T)(t);(0,i.e)(()=>f.register(a),[a,f.register]);let m={ref:p,...f.props,id:a};return c&&("onClick"in m&&(delete m.htmlFor,delete m.onClick),"onClick"in d&&delete d.onClick),(0,o.sY)({ourProps:m,theirProps:d,slot:f.slot||{},defaultTag:"label",name:f.name||"Label"})}),{})},99737:function(e,t,r){"use strict";r.d(t,{r:function(){return x}});var n=r(52983),a=r(30856),l=r(58062),i=r(57464),s=r(66753),o=r(96173),u=r(96939),c=r(75304),d=r(70397),f=r(49630),p=r(23584),m=r(57778),b=r(67197),h=r(60815);let v=(0,n.createContext)(null);v.displayName="GroupContext";let g=n.Fragment,x=Object.assign((0,p.yV)(function(e,t){var r;let m=(0,s.M)(),{id:h="headlessui-switch-".concat(m),checked:g,defaultChecked:x=!1,onChange:k,disabled:w=!1,name:y,value:C,form:j,...E}=e,N=(0,n.useContext)(v),S=(0,n.useRef)(null),_=(0,u.T)(S,t,null===N?null:N.setSwitch),[P,T]=(0,a.q)(g,k,x),O=(0,i.z)(()=>null==T?void 0:T(!P)),D=(0,i.z)(e=>{if((0,d.P)(e.currentTarget))return e.preventDefault();e.preventDefault(),O()}),L=(0,i.z)(e=>{e.key===b.R.Space?(e.preventDefault(),O()):e.key===b.R.Enter&&(0,f.g)(e.currentTarget)}),M=(0,i.z)(e=>e.preventDefault()),R=(0,n.useMemo)(()=>({checked:P}),[P]),Z={id:h,ref:_,role:"switch",type:(0,o.f)(e,S),tabIndex:-1===e.tabIndex?0:null!=(r=e.tabIndex)?r:0,"aria-checked":P,"aria-labelledby":null==N?void 0:N.labelledby,"aria-describedby":null==N?void 0:N.describedby,disabled:w,onClick:D,onKeyUp:L,onKeyPress:M},z=(0,l.G)();return(0,n.useEffect)(()=>{var e;let t=null==(e=S.current)?void 0:e.closest("form");t&&void 0!==x&&z.addEventListener(t,"reset",()=>{T(x)})},[S,T]),n.createElement(n.Fragment,null,null!=y&&P&&n.createElement(c._,{features:c.A.Hidden,...(0,p.oA)({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:w,form:j,checked:P,name:y,value:C})}),(0,p.sY)({ourProps:Z,theirProps:E,slot:R,defaultTag:"button",name:"Switch"}))}),{Group:function(e){var t;
1let[r,a]=(0,n.useState)(null),[l,i]=(0,h.b)(),[s,o]=(0,m.f)(),u=(0,n.useMemo)(()=>({switch:r,setSwitch:a,labelledby:l,describedby:s}),[r,a,l,s]);return n.createElement(o,{name:"Switch.Description"},n.createElement(i,{name:"Switch.Label",props:{htmlFor:null==(t=u.switch)?void 0:t.id,onClick(e){r&&("LABEL"===e.currentTarget.tagName&&e.preventDefault(),r.click(),r.focus({preventScroll:!0}))}}},n.createElement(v.Provider,{value:u},(0,p.sY)({ourProps:{},theirProps:e,defaultTag:g,name:"Switch.Group"}))))},Label:h._,Description:m.d})}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=95195)}),_N_E=e.O()}]); 2//# sourceMappingURL=ResourceConfig-39c30abf31aba42f.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.