PageSourceSearch

https://customers.verisure.es/3.4.2/static/js/2750.80fadd3b.chunk.js

js verisure.es collected 2026-10-01 16:34:34 UTC 4,382 bytes, 24 lines download raw bytes

1"use strict";(globalThis.webpackChunkverisure_owa=globalThis.webpackChunkverisure_owa||[]).push([[2750],{40683(i,e,t){t.d(e,{$P:()=>o,Hl:()=>v,Nz:()=>c,RN:()=>u,eA:()=>l,hZ:()=>a,op:()=>s,wx:()=>d,x8:()=>n,ye:()=>r});t(61884);const n="Notifications",o="GB",c=20,a={PHOTOREQUEST:"photorequest",ACCESS:"access",POWERCUTS:"powercuts",VIDEO:"videocams",SMS:"sms",NEWINVOICES:"newInvoices"},s={EMAIL:"EMAIL",PHONE:"PHONE"},r={[a.PHOTOREQUEST]:1,[a.ACCESS]:2,[a.VIDEO]:17,[a.POWERCUTS]:23,[a.SMS]:5,[a.NEWINVOICES]:51},l={1:{type:a.PHOTOREQUEST,icon:"icon-multiple-images"},2:{type:a.ACCESS,icon:"icon-system-access"},17:{type:a.VIDEO,icon:"icon-ipcam-video-motion-v2"},23:{type:a.POWERCUTS,icon:"icon-energy"},5:{type:a.SMS,icon:"icon-sms"},51:{type:a.NEWINVOICES,icon:"icon-invoice-warning"}},d=i=>{let{srv:e,data:t}=i;const n=[...new Set(e.map(i=>i.idService))];return t&&0!==t?n.map(i=>{const e=t.filter(e=>e.idService===i&&e.contact);return{idService:i,contacts:e}}):n.map(i=>({idService:i,contacts:[]}))},v=i=>Object.entries(i).reduce((i,e)=>{let[t,n]=e;return n&&i.push(r[t]),i},[]),u=i=>Object.entries(i).reduce((i,e)=>{let[t,n]=e;return t!==a.NEWINVOICES&&n&&i.push(r[t]),i},[])},63823(i,e,t){t.d(e,{A:()=>d});var n=t(5247),o=t(56670),c=t(20347),a=t(40683),s=t(33054),r=t(51367);const l=i=>{let{text:e,icon:t,subtext:n,hasToggle:l,toggle:d,onChange:v}=i;return(0,r.jsxs)("div",{className:s.A.margin,children:[l?(0,r.jsx)(c.f,{"id-owa":"Notifications",icon:t,iconSize:"iconSmall",text:e,isChecked:d,onClick:v}):(0,r.jsxs)("div",{className:s.A.titleBar,children:[(0,r.jsx)(o.I,{"id-owa":a.x8,icon:t,className:s.A.icon}),(0,r.jsx)("div",{className:s.A.text,children:e})]}),(0,r.jsx)("div",{className:s.A.subtext,children:n})]})},d=n.memo(l)},2750(i,e,t){t.r(e),t.d(e,{default:()=>E});t(5247);var n=t(61884),o=t(34366),c=t(69884),a=t(61294),s=t(42730),r=t(40630),l=t(63823),d=t(56432),v=t(40683),u=t(47378),S=t(40840),N=t(33054),m=t(51367);const E=()=>{const{country:i}=(0,u.Ym)(),e=(0,c.Zp)(),t=(0,u.wP)(),{data:E,loading:x,error:h}=(0,o.Je)(a.$,{fetchPolicy:o.bV.CACHE_AND_NETWORK,variables:{numinst:t},outputTransform:i=>{if("OK"===(null===i||void 0===i?void 0:i.res))return{notifications:(0,v.wx)({srv:null===i||void 0===i?void 0:i.availableServices,data:null===i||void 0===i?void 0:i.notifications}),newInvoices:null===i||void 0===i?void 0:i.billingNotificationsConfig}}}),{newInvoices:p,notifications:C}=E||{},f=null===C||void 0===C?void 0:C.map(i=>i.idService);return(0,m.jsxs)(s.U3,{title:(0,n.t)("Notification.overview.title"),contentArea:{type:s.U3.contentArea.MAIN},services:["NOTCONF"],children:[x&&(0,m.jsx)(s.Rh,{withSomeHeight:!0}),h&&(0,m.jsx)(r.AA,{"id-owa":"NotificationErrorModal",error:h,onCancel:()=>e(d.J.HOME,{replace:!0,state:{}})}),!x&&!h&&!f&&(0,m.jsx)("div",{children:(0,n.t)("Notification.noServices.label")}),!x&&f&&(0,m.jsxs)(m.Fragment,{children:[C.map(i=>{const{type:t,icon:o}=v.eA[i.idService];return i.contacts.length>0&&(0,m.jsxs)("div",{children:[(0,m.jsx)(l.A,{icon:o,text:(0,n.t)(`Notification.${t}.title`),subtext:(0,n.t)(`Notification.${t}.description`)}),(0,m.jsx)("div",{className:N.A.margin,children:i.contacts.map(t=>(0,m.jsx)(r.E7,{"id-owa":`${v.x8}-${t.alias}-${i.idService}`,text:t.alias,subText:t.contact,iconLeft:"icon-users",icon:"icon-arrow-right",iconColor:S.Tj.RED,iconLeftClass:N.A.icon,onClick:()=>e(d.J.NOTIF_EDIT,{state:{contact:t}}),className:N.A.actionBar},`${t.contact}-${i.idService}`))})]},`${t}-${i.idService}`)}),i!==v.$P&&(0,m.jsx)("div",{className:N.A.addUser,children:(0,m.jsx)(r.$n,{"id-owa":"Notification",text:(0,n.t)("Notification.addContact.button"),onClick:()=>{e(d.J.NOTIF_ADD,{state:{services:f,newInvoices:p}})}})})]})]})}},61294(i,e,t){t.d(e,{$:()=>n});const n=t(76901).gql`
2  query mkNotifications($numinst: String!) {
3    xSNotifications(numinst: $numinst) {
4      res
5      availableServices {
6        idService
7        type
8      }
9      billingNotificationsConfig {
10        emailEnabled
11        billingEmail
12        phoneEnabled
13        billingPhone
14      }
15      notifications {
16        idService
17        type
18        contact
19        alias
20        language
21      }
22    }
23  }
24`},33054(i,e,t){t.d(e,{A:()=>n});const n={"title-bar":"QgcUou",titleBar:"QgcUou",icon:"CTFJVO",text:"kpvQTo",subtext:"lu_8bZ",margin:"dqt5b_","action-bar":"fP7hEv",actionBar:"fP7hEv","add-user":"WfBnuC",addUser:"WfBnuC"}}}]);

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.