"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[82179],{84385(e,t,n){n.d(t,{A:()=>l});var r=n(296540),i=n(722860);(0,n(349005).A)(".divider__HJLxc4rP{border:none}.divider-horizontal-light__HJLxc4rP{border-top:1px solid rgba(33,35,39,.07)}.divider-horizontal-dark__HJLxc4rP{border-top:1px solid hsla(214,8%,98%,.07)}.divider-vertical__HJLxc4rP{height:100%;width:1px}.divider-vertical-light__HJLxc4rP{border-left:1px solid rgba(33,35,39,.07)}.divider-vertical-dark__HJLxc4rP{border-left:1px solid hsla(214,8%,98%,.07)}");var a=n(325898);const o=(0,i.c)({divider:"divider__HJLxc4rP","divider-horizontal-light":"divider-horizontal-light__HJLxc4rP","divider-horizontal-dark":"divider-horizontal-dark__HJLxc4rP","divider-vertical":"divider-vertical__HJLxc4rP","divider-vertical-light":"divider-vertical-light__HJLxc4rP","divider-vertical-dark":"divider-vertical-dark__HJLxc4rP"}),l=r.forwardRef((e,t)=>{const{orientation:n="horizontal",style:i,className:l,motif:d,...m}=e,{motif:s}=(0,a.A)(d);return r.createElement("vertical"===n?"div":"hr",{style:i,className:o.concat(l)("divider",`divider-${n}`,`divider-${n}-${s}`),ref:t,...m})})},639188(e,t,n){n.d(t,{VG:()=>r,Vm:()=>a,z7:()=>i});const r=80,i="22:00",a="08:00"},889764(e,t,n){n.d(t,{H5:()=>d,Lq:()=>l,n0:()=>o});var r=n(849513),i=n(276907),a=n(919952);const o=e=>e[a.U.SHARED][i.N.PROPERTY_PANEL]?.[r.Io.TAB_GET_DATA_FUNCTION]||{},l=e=>e[a.U.SHARED][i.N.PROPERTY_PANEL]?.[r.Io.TAB_SUBMIT_FUNCTION]||{},d=e=>e[a.U.SHARED][i.N.PROPERTY_PANEL]?.[r.Io.TAB_RESET_FUNCTION]||{}},689965(e,t,n){n.d(t,{A:()=>u,I:()=>r});var r,i=n(296540),a=n(822336),o=n(963724),l=n(71479),d=n(825032),m=n(566723),s=n(294303),c=n(311785);!function(e){e.ACCORDION="accordion",e.BUTTON_LIST="buttonList"}(r||(r={}));const g=(0,l.A)(s.A,(0,c.A)("marginBottom","isButtonList","margin","flex","width","padding","nested","background"))`
  background-color: ${({background:e,nested:t,theme:{themeName:n}})=>e||a.Ay[n===d.S.DARK?`desktop-color-neutral-${t?"00":"01"}-dark`:`desktop-color-neutral-${t?"01":"00"}-light`]};
  padding: ${({theme:e,isButtonList:t,padding:n})=>n||(t?`0 ${e.spacing["spacing-l"]}`:e.spacing["spacing-l"])};
  margin-bottom: ${({theme:e,marginBottom:t})=>t||e.spacing["spacing-l"]};
  ${({margin:e})=>e?`margin: ${e};`:""}
  border-radius: 8px;
  flex-direction: column;
  width: ${({width:e="100%"})=>e};
  flex: ${({flex:e=0})=>e};
  > :last-child {
    margin-bottom: 0;
  }
  thead {
    tr {
      height: 32px !important;
    }
    th {
      text-transform: none;
    }
  }
  ${({isButtonList:e})=>e?`\n    > div {\n      display: flex;\n      height: 48px;\n      border-bottom: ${({theme:{themeName:e}})=>a.Ay[`desktop-border-divider-${e}`]};\n      &:last-child {\n        border-bottom: none;\n      }\n    }\n  `:""}
`,_=(0,l.A)(o.A,(0,c.A)("marginBottom","margin","flex","padding","nested","background"))`
  background-color: ${({background:e,nested:t,theme:{themeName:n}})=>e||a.Ay[n===d.S.DARK?`desktop-color-neutral-${t?"00":"01"}-dark`:`desktop-color-neutral-${t?"01":"00"}-light`]};
  margin-bottom: ${({theme:e,marginBottom:t})=>t||e.spacing["spacing-l"]};
  ${({margin:e})=>e?`margin: ${e};`:""}
  ${({padding:e})=>e?`padding: ${e};`:""}
  border-radius: 8px;
  flex-direction: column;
  flex: ${({flex:e=0})=>e};
  > :last-child {
    margin-bottom: 0;
  }
  thead {
    tr {
      height: 32px !important;
    }
    th {
      text-transform: none;
    }
  }
  > li {
    > div:first-child {
      background: ${({background:e,theme:{themeName:t}})=>e||a.Ay[t===d.S.DARK?"desktop-color-neutral-01-dark":"desktop-color-neutral-00-light"]};
      height: 48px;
      padding: 0 ${m.Ln};
    }
    > div:nth-child(2) {
      margin-bottom: 0;
      padding: 0;
      > div {
        padding: 0 ${m.Ln} ${m.Ln};
      }
    }
  }
`,u=({type:e,marginBottom:t,margin:n,padding:a,flex:o,width:l,nested:d,...m})=>"items"in m?i.createElement(_,{marginBottom:t,margin:n,padding:a,flex:o,nested:d,...m}):i.createElement(g,{nested:d,width:l,marginBottom:t,margin:n,padding:a,flex:o,isButtonList:e===r.BUTTON_LIST,...m},m.children)},403116(e,t,n){n.d(t,{A:()=>P,h:()=>C});var r=n(82960),i=n(469733),a=n(296540),o=n(951272),l=n(429252),d=n.n(l),m=n(271856),s=n(217439),c=n(802),g=n(162420),_=n(71479),u=n(870443),h=n(860631),A=n(566723),p=n(143811),E=n(294303),v=n(845030),b=n(916537),f=n(302167),x=n(457311),O=n(602021),N=n(639188),M=n(389651);const C="lcmScreen",I=(0,_.A)(s.A)`
  flex: 1;
  margin-right: ${A.xO};
`,T=(0,_.A)("div")`
  margin-right: 2px;
`,L=(0,_.A)(g.A)`
  margin-left: 6px;
  margin-bottom: 3px;
`,S=(0,_.A)(m.A)`
  top: 2px;
`,R=(0,o.bk)({enableReinitialize:!0,isInitialValid:!0,mapPropsToValues:({lcmSettings:e,activeItem:{lcm_brightness:t=N.VG,lcm_brightness_override:n=!1,lcm_night_mode_enabled:r=!1,lcm_night_mode_begins:i=N.z7,lcm_night_mode_ends:a=N.Vm}})=>({lcm:e,lcm_brightness:t,lcm_brightness_override:n,lcm_night_mode_enabled:r,lcm_night_mode_begins:i,lcm_night_mode_ends:a}),validationSchema:u.A.object().shape({lcm:u.A.object().shape({sync:u.A.boolean()}),lcm_brightness_override:u.A.boolean(),lcm_brightness:u.A.number().label("COMMON_BRIGHTNESS").min(1).max(100).required(),lcm_night_mode_begins:u.A.string(),lcm_night_mode_ends:u.A.string()}),handleSubmit:()=>null}),$=e=>a.createElement(s.A,{size:"medium"},e),P=(0,r.Zz)((0,i.connect)(e=>({lcmSettings:(0,f.ml)(e)}),{}),R)(({values:e,setFieldValue:t,resetForm:n,setFormDirty:r,setFormInvalid:o,dirty:l,isValid:m,initialValues:g,activeItem:_})=>{const u=(0,i.useDispatch)(),f=(0,i.useSelector)(O.EL);return(0,a.useEffect)(()=>{r(C,l),o(C,!m)},[r,o,m,l]),(0,a.useEffect)(()=>(u((0,v.uo)({[C]:()=>({...e,lcm_brightness_override:e.lcm_brightness!==N.VG,lcm_night_mode_begins:e.lcm_night_mode_begins,lcm_night_mode_ends:e.lcm_night_mode_ends})})),u((0,v.Oo)({[C]:()=>{d()(g.lcm,e.lcm)||u((0,x.vd)(e.lcm)),n({values:e})}})),u((0,v.rW)({[C]:n})),()=>{u((0,v.uo)({[C]:null})),u((0,v.Oo)({[C]:null})),u((0,v.rW)({[C]:null}))}),[n,e,g.lcm]),a.createElement(a.Fragment,null,(0,h.TY)(_)?a.createElement(a.Fragment,null,a.createElement(E.A,{justifyContent:"space-between",marginBottom:A.Ln},a.createElement(s.A,{color:"text-1",size:"medium"},a.createElement(b.sA,{id:"COMMON_BRIGHTNESS"})),a.createElement(c.A,{width:"50%",value:e.lcm_brightness||N.VG,withValueIndicator:!0,min:1,valueIndicatorPosition:"right",formatValueIndicatorContent:$,onChange:e=>{t("lcm_brightness",+e.target.value)},disabled:f})),a.createElement(M.A,null)):null,a.createElement(E.A,{justifyContent:"space-between",alignItems:"center"},a.createElement(p.A,{type:"realCheckbox",name:"lcm.sync"},a.createElement(I,{color:"text-1",size:"medium"},a.createElement(E.A,{alignItems:"center"},a.createElement(T,null,a.createElement(b.sA,{id:"COMMON_RACK_MULTI_SCREEN_SYNC"})),a.createElement(S,{tooltipClassName:"tooltip-position-fixer",width:200,description:a.createElement(b.sA,{id:"DEVICE_PROPERTIES_LABEL_RACK_MULTI_SCREEN_SYNCHRONIZATION_TOOLTIP"})},a.createElement(L,{isActive:!0,size:"original"})))))))})},389651(e,t,n){n.d(t,{A:()=>E});var r=n(469733),i=n(296540),a=n(951272),o=n(217439),l=n(71479),d=n(834042),m=n(566723),s=n(143811),c=n(916537),g=n(198494),_=n(766624),u=n(294303);const h=(0,l.A)(u.A)`
  margin-bottom: 24px;
`,A=e=>{const[t,n]=e.split(":");return 60*Number(t)+Number(n)},p=e=>`${Math.floor(e/d.t).toString().padStart(2,"0")}:${(e%d.t).toString().padStart(2,"0")}`,E=(0,i.memo)(()=>{const{values:{lcm_night_mode_begins:e,lcm_night_mode_ends:t},setFieldValue:n}=(0,a.j7)(),{formatMessage:l}=(0,c.tz)(),E=(0,r.useSelector)(g.jc),v=(0,i.useMemo)(()=>(0,d.gy)(E,15,l),[E,l]),b=(0,i.useMemo)(()=>"string"==typeof e?A(e):e,[e]),f=(0,i.useMemo)(()=>"string"==typeof t?A(t):t,[t]),x=(0,i.useCallback)(({value:e})=>{n("lcm_night_mode_begins",p(+e))},[n]),O=(0,i.useCallback)(({value:e})=>{n("lcm_night_mode_ends",p(+e))},[n]);return!b&&0!==b||!f&&0!==f?null:i.createElement(i.Fragment,null,i.createElement(u.A,{justifyContent:"flex-start",marginBottom:m.kc,alignItems:"center",gap:m.YC},i.createElement(o.A,{color:"text-1",size:"medium"},i.createElement(c.sA,{id:"DEVICE_PROPERTIES_LABEL_LCM_NIGHT_MODE"})),i.createElement(_.A,{description:i.createElement(c.sA,{id:"DEVICE_PROPERTIES_LABEL_LCM_NIGHT_MODE_DESCRIPTION"})})),i.createElement(h,{justifyContent:"space-between",flexDirection:"column"},i.createElement(u.A,{gap:m.Ln},i.createElement(s.A,{type:"dropdown",variant:"secondary",label:"COMMON_START_TIME",translateLabel:!0,name:"lcm_night_mode_begins",placeholder:v.some(({value:e})=>e===b)?void 0:(0,d.oP)({formatMessage:l,minuteOfDay:b,use24HourFormat:E}),translatePlaceholder:!1,options:v,value:b,onChange:x,full:!0}),i.createElement(s.A,{type:"dropdown",variant:"secondary",label:"COMMON_END_TIME",translateLabel:!0,name:"lcm_night_mode_ends",placeholder:v.some(({value:e})=>e===f)?void 0:(0,d.oP)({formatMessage:l,minuteOfDay:f,use24HourFormat:E}),translatePlaceholder:!1,options:v,value:f,onChange:O,full:!0}))))})},372737(e,t,n){var r;n.d(t,{U:()=>r}),function(e){e.ARROW_LEFT="ArrowLeft",e.ARROW_RIGHT="ArrowRight",e.ARROW_DOWN="ArrowDown",e.ARROW_UP="ArrowUp",e.ENTER="Enter",e.ESCAPE="Escape",e.BACKSPACE="Backspace",e.DELETE="Delete",e.TAB="Tab"}(r||(r={}))},449688(e,t,n){n.d(t,{A:()=>i});var r=n(296540);const i=function(e){return t=>n=>{const[i,a]=(0,r.useState)(Object.fromEntries(e.map(e=>[e,!1]))),[o,l]=(0,r.useState)(Object.fromEntries(e.map(e=>[e,!1]))),d=(0,r.useCallback)((e,t)=>{a(n=>({...n,[e]:t}))},[]),m=(0,r.useCallback)((e,t)=>{l(n=>({...n,[e]:t}))},[]),s=!!Object.values(i).find(e=>e),c=!!Object.values(o).find(e=>e);return r.createElement(t,{isDirty:s,isInvalid:c,formStates:i,setFormDirty:d,setFormInvalid:m,...n})}}},834042(e,t,n){n.d(t,{EJ:()=>m,gy:()=>l,oP:()=>o,pi:()=>a,q8:()=>d,t:()=>i});var r=n(621690);const i=60,a=24,o=({minuteOfDay:e,use24HourFormat:t,formatMessage:n})=>{const r=Math.floor(e/60);return`${String(t?r:r%12||12).padStart(2,"0")}:${String(e%i).padStart(2,"0")}${t?"":` ${n({id:r>=12?"COMMON_PM":"COMMON_AM"})}`}`},l=(e,t,n)=>{const a=Math.max(1,Math.min(60,Math.floor(60/t))),l=Math.floor(60/a);return(0,r.A)(0,24).flatMap(t=>(0,r.A)(a).map(r=>{const a=r*l;return{label:o({use24HourFormat:e,formatMessage:n,minuteOfDay:t*i+a}),value:60*t+ +a}}))},d=e=>6e4*Math.round(e/6e4),m=(e,t)=>{const n=+(e/1e3).toFixed(1),r=+(n/1e3).toFixed(1),i=+(n/6e4).toFixed(1);return n<1e3?`${n} ${t({id:"COMMON_UNIT_MS"})}`:r<60?`${r} ${t({id:"COMMON_UNIT_S"})}`:`${i} ${t({id:"COMMON_UNIT_MIN"})}`}},383149(e,t,n){n.d(t,{A:()=>i});var r=n(885205);const i=function(e,t){return!(null==e||!e.length)&&(0,r.A)(e,t,0)>-1}},887809(e,t,n){n.d(t,{A:()=>r});const r=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}},458043(e,t,n){n.d(t,{A:()=>m});var r=n(8300),i=n(383149),a=n(887809),o=n(45572),l=n(552789),d=n(764099);const m=function(e,t,n,m){var s=-1,c=i.A,g=!0,_=e.length,u=[],h=t.length;if(!_)return u;n&&(t=(0,o.A)(t,(0,l.A)(n))),m?(c=a.A,g=!1):t.length>=200&&(c=d.A,g=!1,t=new r.A(t));e:for(;++s<_;){var A=e[s],p=null==n?A:n(A);if(A=m||0!==A?A:0,g&&p==p){for(var E=h;E--;)if(t[E]===p)continue e;u.push(A)}else c(t,p,m)||u.push(A)}return u}},144757(e,t,n){n.d(t,{A:()=>l});var r=n(458043),i=n(187671),a=n(224326),o=n(153533);const l=(0,a.A)(function(e,t){return(0,o.A)(e)?(0,r.A)(e,(0,i.A)(t,1,o.A,!0)):[]})},46996(e,t,n){n.d(t,{A:()=>i});var r=n(874130);const i=function(e,t){return(0,r.A)(e,t)}}}]);