"use strict";(self.webpackChunkcentreon=self.webpackChunkcentreon||[]).push([["6922"],{89835:function(A,m,N){var z=N(48065),V=N(87146),n=N(45749),a=N(82022),Z=N(97267),T=N(1975),q=(0,V.ZL)()(function(A){return{contentBackground:{alignItems:"center",backgroundColor:"transparent",display:"flex",filter:"brightness(1)",flexDirection:"column",height:"100vh",justifyContent:"center",rowGap:A.spacing(2),width:"100%"},contentPaper:{alignItems:"center",display:"grid",flexDirection:"column",justifyItems:"center",maxWidth:"60%",minWidth:A.spacing(30),padding:A.spacing(4,5),rowGap:A.spacing(4)},wallpaper:{height:"100%",position:"absolute",width:"100%"}}});m.Z=function(A){var m=A.wallpaperSource,N=A.wallpaperAlt,V=A.children,r=q().classes,t=!(0,z.Z)(m);return T.createElement("div",null,t&&T.createElement(a.Z,{alt:N,className:r.wallpaper,fallback:T.createElement(Z.Z,{className:r.wallpaper}),imagePath:m}),T.createElement("div",{className:r.contentBackground},T.createElement(n.Z,{className:r.contentPaper},V)))}},47836:function(A,m,N){var z=N(73726),V=N(1975);m.Z=function(A){var m=A.loginPageCustomisation;return V.createElement(z.Z,{editable:!1,editorState:m.customText||void 0,minInputHeight:0,namespace:"Preview".concat(m.textPosition),disabled:!0})}},485:function(A,m,N){N.d(m,{CX:function(){return a},F8:function(){return V},xm:function(){return Z}});var z=N(45067),V=z.hM.object({passwordIsExpired:z.hM.optional(z.hM.boolean),redirectUri:z.hM.string},"Redirect Decoder",{passwordIsExpired:"password_is_expired",redirectUri:"redirect_uri"}),n=z.hM.object({authenticationUri:z.hM.string,id:z.hM.number,isActive:z.hM.boolean,isForced:z.hM.optional(z.hM.boolean),name:z.hM.string},"Provider Condifugration",{authenticationUri:"authentication_uri",isActive:"is_active",isForced:"is_forced"}),a=z.hM.object({customText:z.hM.nullable(z.hM.string),iconSource:z.hM.nullable(z.hM.string),imageSource:z.hM.nullable(z.hM.string),platformName:z.hM.nullable(z.hM.string),textPosition:z.hM.nullable(z.hM.string)},"Provider Condifugration",{customText:"custom_text",iconSource:"icon_source",imageSource:"image_source",platformName:"platform_name",textPosition:"text_position"}),Z=z.hM.array(n,"Providers Configuration List")},83823:function(A,m,N){var z=N(26017),V=N(88),n=N(35883),a=N(90635),Z=N(85530),T=N(485),q=N(63896),r=N(53321),t={customText:null,iconSource:Z,imageSource:null,platformName:null,textPosition:null};m.Z=function(){var A=(0,r.Z)(),m=(0,z.useAtomValue)(a.platformVersionsAtom),N=(0,n.Z)({decoder:T.CX,getEndpoint:function(){return q.HI},getQueryKey:function(){return["loginPageCustomisation"]},httpCodesBypassErrorSnackbar:[404,401],queryOptions:{enabled:!!(0,V.Z)(["modules","centreon-it-edition-extensions"],m),retry:!1,suspense:!1}}),Z=N.data;return{loginPageCustomisation:N.isFetching?t:{customText:(null==Z?void 0:Z.customText)||t.customText,iconSource:(null==Z?void 0:Z.iconSource)||t.iconSource,imageSource:(null==Z?void 0:Z.imageSource)||A,platformName:(null==Z?void 0:Z.platformName)||t.platformName,textPosition:(null==Z?void 0:Z.textPosition)||t.textPosition}}}},28656:function(A,m,N){var z=N(35719),V=N(485),n=N(63896);m.Z=function(){return{sendLogin:(0,z.Z)({decoder:V.F8,getEndpoint:function(){return n.gs},httpCodesBypassErrorSnackbar:[401],method:z.n.POST}).mutateAsync}}},53321:function(A,m,N){var z=N(1975),V=N(66014),n=N(92838),a=N(87117),Z=N(3299),T=N(21294),q=N(64702),r=N(90200),t=N(52488);m.Z=function(){var A=(0,T.Z)();return(0,z.useMemo)(function(){return(0,V.Z)([[(0,n.Z)(A.breakpoints.values.sm),(0,a.Z)(r)],[(0,n.Z)(A.breakpoints.values.lg),(0,a.Z)(q)],[Z.Z,(0,a.Z)(t)]])(window.innerWidth)},[])}},45621:function(A,m,N){N.d(m,{S:function(){return z}});var z=(0,N(26017).atom)(null)},64702:function(A){A.exports="data:image/jpeg;base64,[encoded data, 99972 characters]"},90200:function(A){A.exports="data:image/jpeg;base64,[encoded data, 62000 characters]"},52488:function(A){A.exports="data:image/jpeg;base64,[encoded data, 201208 characters]"}}]);
//# sourceMappingURL=6922.f17802bb92180d394530.2d80b3c6656ac633fa72.1956bc7e7bc1c00175ba.js.map