PageSourceSearch

https://customers.verisure.es/3.4.2/static/js/467.c17ab085.chunk.js

js verisure.es collected 2026-10-01 16:31:59 UTC 7,730 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkverisure_owa=globalThis.webpackChunkverisure_owa||[]).push([[467],{28494(e,t,a){a.d(t,{N:()=>i});const i={unprotectedHome:"legal_uh_device_",guardian:"legal_guardian_",carcrash:"legal_carcrash_",terms:"terms_",scheduler:"legal_organizer_",shockSensor:"terms_",renovationMode:"legal_devicedeactivation_"}},57450(e,t,a){a.d(t,{A:()=>m});var i=a(5247),c=a(43433),n=a(69884),o=a(25922),s=a(10438),l=a(87013),d=a(33300),r=a(47378),v=a(8055),D=a(34366),h=a(56432),u=a(52918);const m=function(e){let{idSch:t,onSuccess:a,onError:m}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const[x,g]=(0,i.useState)(null),p=(0,c.wA)(),j=(0,n.Zp)(),{installation:{panel:b,numinst:C}}=(0,r.eC)(),E=(0,v.oY)(e),[S,{loading:A}]=(0,D.uM)(u.Lm,{queryStatus:u.gq,variablesFromData:(0,d.U6)({numinst:C,panel:b,device:E,idSch:t}),onError:e=>{const t=(0,l.Jq)(e);g(t),null===m||void 0===m||m(t)},onCompleted:t=>{"OK"===(null===t||void 0===t?void 0:t.res)?(p((0,o.D)({type:"completed",title:t.msg})),a?a(t):j(h.J.DEVICES_DETAILS,{state:{device:e}})):(g(t.msg),null===m||void 0===m||m(t.msg))}});return{deactivate:(e,t)=>{p((0,s.tJ)()),S({variables:{numinst:C,panel:b,device:E,action:"DEACTIVATE",datetime:e,reason:t}})},activate:()=>{p((0,s.tJ)()),S({variables:{numinst:C,panel:b,device:E,action:"ACTIVATE",idSch:t}})},loading:A,error:x,setError:g}}},40467(e,t,a){a.r(t),a.d(t,{default:()=>X});var i=a(5247),c=a(61884),n=a(43433),o=a(69884),s=a(20347),l=a(40630),d=a(42730),r=a(56432),v=a(34366),D=a(47378),h=a(8055),u=a(46827),m=a(87013),x=a(52918),g=a(57450),p=a(24694),j=a.n(p),b=a(847),C=a(2172),E=a(71070),S=a(61347),A=a(28494),w=a(35600);const T="J_Xm6x",y="IFA5nk",N="HWTXxh",_="Djgpn5",f="W6cHMC",k="RiYWF8",L="whoMHs",I="LychTm",J="g_dqhX",M="iLTENZ",O="xAzbnO",F="JyhZob";var V=a(51367);const H="LEGALS",R="DATE",W=i.memo(e=>{let{checked:t,onToggle:a}=e;const{country:i}=(0,D.Ym)(),n=(0,w.Kr)({domain:A.N.renovationMode});return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)("span",{className:O,children:(0,V.jsx)("iframe",{src:n,title:"legals",sandbox:"allow-top-navigation allow-scripts allow-same-origin"})}),(0,V.jsxs)("div",{className:F,children:[(0,V.jsx)(l.QW,{text:(0,c.t)("common.downloadLegals"),color:E.v.RED,icon:"icon-download",hasReverseIcon:!0,onClick:()=>(0,C.KN)((0,w.Kn)(i))}),(0,V.jsx)(l.YJ,{"id-owa":"LegalConditionsCheckbox",checked:t,text:(0,c.t)("Guardian.AcceptLegal.checkbox.label"),onToggle:a})]})]})}),Y=e=>{let{date:t,setDate:a,error:i,setError:n}=e;const o=e=>n((e=>{let{day:t,hour:a}=e;if(!t||!a)return;const i=j()(),n=j()(`${t} ${a}:00`),o=0===n.diff(i,"days"),s=n.diff(i,"hours")<2;return o&&s?(0,c.t)("DeviceDeactivation.hourError.label"):n.diff(i,"days")<0?(0,c.t)("Form.Input.pastDay.label"):n.diff(i,"days")>30?(0,c.t)("DeviceDeactivation.dateError.label"):void 0})(e)),s=(0,D.Iu)(),{app:{os:l}={}}=(0,D.E8)();return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)("p",{className:T,children:[(0,c.t)("DeviceDeactivation.reactivation.descOne"),(0,V.jsx)("strong",{children:(0,c.t)("DeviceDeactivation.reactivation.descTwo")}),(0,c.t)("DeviceDeactivation.reactivation.descThree")]}),(0,V.jsx)("div",{className:N,children:(0,c.t)("DeviceDeactivation.date.title")}),(0,V.jsx)(b.l,{"id-owa":"DeviceDeactivation-date",value:t.day,label:(0,c.t)("common.date"),onChange:e=>{o({...t,day:e}),a({...t,day:e})},validate:()=>!i,isMobile:s,os:l}),(0,V.jsx)("div",{className:_}),(0,V.jsx)(b.l,{"id-owa":"DeviceDeactivation-hour",value:t.hour,label:(0,c.t)("common.hours"),type:"time",onChange:e=>{o({...t,hour:e}),a({...t,hour:e})},validate:(0,S.XT)(t.hour),isMobile:s,os:l}),i&&(0,V.jsx)("div",{className:f,children:i})]})},q=e=>{let{onCancel:t,onAccept:a}=e;const[n,o]=(0,i.useState)(!1),[s,d]=(0,i.useState)({day:"",hour:""}),[r,v]=(0,i.useState)(),[D,h]=(0,i.useState)((0,u.gD)()?R:H);return D===H?(0,V.jsx)(l.VE,{"id-owa":"DeviceDeactivationLegalsModal",title:(0,c.t)("common.legalsTitle"),hasAcceptButton:!0,onAccept:()=>h(R),acceptDisabled:!n,hasCancelButton:!0,onCancel:t,children:(0,V.jsx)(W,{checked:n,onToggle:()=>o(!n)})}):(0,V.jsx)(l.VE,{"id-owa":"DeviceDeactivationDateModal",title:(0,c.t)("DeviceDeactivation.reactivation.title"),hasAcceptButton:!0,onAccept:()=>a(s),acceptDisabled:!s.day||!s.hour||!!(0,S.XT)(s.hour)||!!r,hasCancelButton:!0,onCancel:t,children:(0,V.jsx)(Y,{date:s,setDate:d,error:r,setError:v})})},B=i.memo(q),K=e=>{let{device:t}=e;const[a,p]=(0,i.useState)(!1),[j,b]=(0,i.useState)(!1),[C,E]=(0,i.useState)(!1),[S,A]=(0,i.useState)(),{installation:{panel:w,numinst:T}={}}=(0,D.eC)(),N=(0,o.Zp)(),_=(0,n.d4)(e=>e.sessionInfo.disabledDeactivation),f=(0,h.oY)(t),{loading:O,data:F}=(0,v.Je)(x.fT,{fetchPolicy:v.bV.NETWORK_ONLY,variables:{numinst:T,panel:w,device:f},onCompleted:e=>{if("OK"===(null===e||void 0===e?void 0:e.res)){const t=null===e||void 0===e?void 0:e.sc
1hList[0];p(!t||!Object.keys(t)||e.active)}else A(e.msg)},onError:e=>A((0,m.Jq)(e))}),{schList:H,active:R}=F||{},{startDate:W,startHour:Y,idSch:q}=(null===H||void 0===H?void 0:H[0])||{},{deactivate:K,activate:Z,loading:X,error:z}=(0,g.A)(t,{idSch:q,onError:A}),P=(0,u.gD)();return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(l.Zp,{noPadding:!0,children:[(0,V.jsxs)("div",{className:L,children:[(0,V.jsx)("div",{className:I,children:(0,V.jsx)("img",{width:"100%",height:"auto",alt:t.name,className:J,src:(0,h.RO)(t.type)})}),(0,V.jsx)("div",{className:M,children:(0,V.jsx)(s.f,{"id-owa":"DeviceDeactivation",text:t.name,disabled:_,subText:(0,h.JF)(t.type),isChecked:a||!1,onClick:()=>a?b(!0):Z(),loading:O})})]}),P&&(0,V.jsxs)(l.e2,{children:[(0,V.jsx)(l.QW,{"id-owa":"DeviceDeactivation-Deactivate",text:(0,c.t)("common.deactivate"),disabled:_,onClick:()=>E(!0)}),(0,V.jsx)(l.QW,{"id-owa":"DeviceDeactivation-Activate",text:(0,c.t)("common.activate"),disabled:_,onClick:()=>Z()})]})]}),P&&(0,V.jsx)("div",{className:k,children:(0,c.t)("DeviceDeactivation.activation.atcHint.label")}),W&&Y&&!R&&(0,V.jsx)("div",{className:y,children:(0,c.t)("DeviceDeactivation.dateInfo.label",{startDate:W,startHour:Y})}),j&&(0,V.jsx)(l.mt,{"id-owa":"DeviceDeactivation-check",title:(0,c.t)("DeviceDeactivation.title.label"),hasAcceptButton:!0,hasCancelButton:!0,acceptText:(0,c.t)("common.disconnect"),onAccept:()=>{E(!0),b(!1)},onCancel:()=>b(!1),children:(0,c.t)("DeviceDeactivation.reminderModal.description")}),C&&(0,V.jsx)(B,{onCancel:()=>E(!1),onAccept:e=>K(e)}),X&&(0,V.jsx)(d.ld,{"id-owa":"DeviceDeactivation",text:(0,c.t)("DeviceDeactivation.loadingSpinner.title"),subtext:(0,c.t)("DeviceDeactivation.loadingSpinner.subtitle")}),!!S&&(0,V.jsx)(l.AA,{"id-owa":"DeviceDeactivationErrorModal",description:S,onCancel:()=>N(r.J.DEVICES_DETAILS,{state:{device:t}})})]})},Z=()=>{const{installation:{panel:e,numinst:t}={}}=(0,D.eC)(),a=(0,o.zy)(),{device:i}=(null===a||void 0===a?void 0:a.state)||{},{loading:n,error:s,data:l}=(0,v.Je)(x.Z$,{variables:{numinst:t,panel:e}}),u=null!==l&&void 0!==l&&l.devices&&l.devices.length?l.devices.filter(e=>(0,h.Sd)(e.type)):[],m=!!i&&u.find(e=>e.code===i);return(0,V.jsxs)(d.U3,{title:(0,c.t)("DeviceDeactivation.mainPage.title"),services:["DEVICESCONF"],contentArea:{type:d.U3.contentArea.SECONDARY,breadcrumbs:[{name:(0,c.t)("Device.DeviceDetails.title.label"),path:{pathname:r.J.DEVICES_DETAILS,state:{device:m}}}]},children:[(0,V.jsx)(d.cq,{icon:"icon-power",text:(0,c.t)("DeviceDeactivation.title.label")}),(0,V.jsx)("div",{className:T,children:(0,c.t)("DeviceDeactivation.description.label")}),(0,V.jsx)("div",{className:N,children:(0,c.t)("DeviceDeactivation.devices.title")}),n&&(0,V.jsx)(d.Rh,{withSomeHeight:!0}),(s||l&&!m)&&(0,V.jsx)("div",{className:T,children:(0,c.t)("Device.DeviceList.noDevices.label")}),m&&(0,V.jsx)(K,{device:m})]})},X=i.memo(Z)}}]);

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.