1"use strict";(globalThis.webpackChunkverisure_owa=globalThis.webpackChunkverisure_owa||[]).push([[1381],{12129(e,t,l){l.d(t,{H_:()=>o,T_:()=>r,zM:()=>d});l(5247);var n=l(61884),i=l(40630),a=l(51367);const o=e=>{let{triggerChat:t,onClose:l}=e;return(0,a.jsx)(i.mt,{idOwa:"Chat-dialog-modal",title:(0,n.t)("Chat.dialogModal.title.label"),hasAcceptButton:!0,acceptText:(0,n.t)("Chat.dialogModal.accept.button"),onAccept:t,hasCancelButton:!0,cancelText:(0,n.t)("Chat.dialogModal.cancel.button"),onCancel:l,children:(0,a.jsx)("p",{children:(0,n.t)("Chat.dialogModal.text.label")})})},c=e=>"no_agents"===e?(0,n.t)("ChatOffline.modal.no_agents.description.label"):(0,n.t)("ChatOffline.modal.description.label"),s=e=>"no_agents"===e?(0,n.t)("ChatOffline.modal.no_agents.title.label"):(0,n.t)("ChatOffline.modal.title.label"),r=e=>{let{chatState:t,onClose:l}=e;return(0,a.jsx)(i.mt,{"id-owa":"Chat-Offline-modal",title:s(t),hasCancelButton:!0,onCancel:l,cancelText:(0,n.t)("ChatOffline.modal.acceptButton.label"),children:c(t)})},d=e=>{let{onClose:t,sendToContactUs:l}=e;return(0,a.jsx)(i.mt,{"id-owa":"Chat-Offline-modal",title:(0,n.t)("ChatOffline.modal.title.label"),hasAcceptButton:!0,onAccept:t,acceptText:(0,n.t)("ChatOffline.modal.acceptButton.label"),hasCancelButton:!0,onCancel:l,cancelText:(0,n.t)("PersonalAssistant.modal.cancelButton.label"),children:(0,n.t)("PersonalAssistantOffline.modal.description.label")})}},11381(e,t,l){l.r(t),l.d(t,{default:()=>u});var n=l(5247),i=l(61884),a=l(47378),o=l(42730),c=l(40630),s=l(45258),r=l(40840),d=l(85867),h=l(5151),C=l(51367);const v=e=>{let{advices:t,idOwa:l}=e;return t.map(e=>(0,C.jsxs)("div",{children:[(0,C.jsx)("p",{className:h.A.title,children:(0,i.t)(e.title)}),(0,C.jsx)("div",{className:h.A.imgWrapper,children:(0,C.jsx)("img",{className:h.A.img,alt:"powercut-unplugged-img",src:(0,i.t)(e.img)})}),(0,C.jsx)("p",{className:h.A.text,children:(0,i.t)(e.text)})]},`${l}-${e.id}`))},u=()=>{const[e,t]=(0,n.useState)(void 0),l="Powercut",{country:u}=(0,a.Ym)(),{customClassImage:m,unpluggedImage:g}=(0,s.YO)(u),p=(0,s.I9)(u),x=[{id:"section1",sectionTitle:"Powercut.view.advice1.title",children:(0,C.jsx)("div",{className:h.A.text,children:(0,i.t)("Powercut.view.advice1.text")})},{id:"section2",sectionTitle:"Powercut.view.advice2.title",children:(0,C.jsx)(v,{advices:p,idOwa:l})},{id:"section3",sectionTitle:"Powercut.view.advice3.title",children:(0,C.jsx)(d.A,{})}];return(0,C.jsxs)(o.U3,{"id-owa":l,title:(0,i.t)("Powercut.view.title"),contentArea:{type:o.U3.contentArea.MAIN},children:[(0,C.jsxs)("div",{className:h.A.headerWrapper,children:[(0,C.jsx)("img",{className:m,alt:"powercut-unplugged-img",src:g}),(0,C.jsx)("p",{className:h.A.headerText,children:(0,i.t)("Powercut.view.subtitle")})]}),x.map((l,n)=>{const a=(null===e||void 0===e?void 0:e.index)===n;return(0,C.jsxs)(c.Zp,{children:[(0,C.jsx)(c.E7,{text:(0,i.t)(l.sectionTitle),icon:a?"icon-arrow-up":"icon-arrow-down",iconColor:r.Tj.RED,onClick:()=>{t(a?void 0:{advice:(0,i.t)(l.text),index:n})}}),a&&l.children]},l.id)})]})}},85867(e,t,l){l.d(t,{A:()=>w});var n=l(5247),i=l(43433),a=l(69884),o=l(61884),c=l(42730),s=l(99117),r=l(47378),d=l(40630),h=l(12129),C=l(34366),v=l(84151),u=l(42866),m=l(44837),g=l(74798),p=l(9177),x=l(83144),I=l(65942),b=l(51367);const w=()=>{const[e,t]=(0,n.useState)(!1),[l,w]=(0,n.useState)(!1),N=(0,i.wA)(),{lang:O}=(0,r.Ym)(),T=(0,i.d4)(e=>e.chat.chatState),{pathname:f}=(0,a.zy)(),A=(0,p.df)(x.HH),{loading:_,data:{connected:j,available:E,services:U}={connected:!1,available:!1,services:[]}}=(0,C.X4)();if(_)return(0,b.jsx)(d.Zp,{noPadding:!0,className:I.A.liveChatLoading,children:(0,b.jsx)(c.Rh,{})});return E&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(d.Zp,{noPadding:!0,onClick:()=>{(0,v.logUserEvent)(u.SUPPORT_HUB_VIEWS)({functionality:"LIVE_CHAT"}),(0,v.logUserEvent)(u.INIT_ONLINE_CHAT_START)({pathname:f,attributes:{lang:O}}),j&&(null===U||void 0===U?void 0:U.length)>0?T!==s.Ve.messenger_opened&&t(!0):((0,v.logUserEvent)(u.INIT_ONLINE_CHAT_KO)({error:"Chat offline",errorType:m.$I.CLIENT}),w(!0))},title:(0,o.t)("SupportHub.liveChat.title.label"),className:I.A.liveChat,icon:"icon-sms",iconClassName:I.A.liveChatIcon,iconContainerClassName:j?I.A.liveChatIconContainerOnline:I.A.liveChatIconContainerOffline,"id-owa":"supportHub-liveChat",children:(0,b.jsx)("div",{className:I.A.text,children:(0,o.t)("SupportHub.liveChat.content.label")})}),e&&(0,b.jsx)(h.H_,{triggerChat:()=>{A?((0,v.logUserEvent)(u.INIT_ONLINE_CHAT_OK)(),N((0,g.$y)(s.Ve.messenger_opening))):T!==s.Ve.opened&&((0,v.logUserEvent)(u.INIT_ONLINE_CHAT_OK)(),N((0,g.$y)(s.Ve.opening)),(0,s.JJ)()),t(!1)},onClose:()=>{(0,v.logUserEvent)(u.INIT_ONLINE_CHAT_CANCEL)(),t(!1)},children:(0,b.jsx)("p",{children:(0,o.t)("Chat.dialogModal.text.label")})}),l&&(0,b.jsx)(h.T_,{chatState:T,onClose:()=>{(0,v.logUserEvent)(u.INIT_ONLINE_CHAT_KO)({error:"Chat offline",errorType:m.$I.CLIENT}),w(!1)}})]})}},65942(e,t,l){l.d(t,{A:()=>n});const n={"not-visible-in-small":"vitZdb",notVisibleInSmall:"vitZdb","visible-in-small-only":"Oxwk6C",visibleInSmallOnly:"Oxwk6C","not-visible-in-medium":"OWRTLR",notVisibleInMedium:"OWRTLR","visible-in-medium-only":"M6PUOw",visibleInMediumOnly:"M6PUOw","not-visible-in-large":"i95l9W",notVisibleInLarge:"i95l9W","visible-in-large-only":"MN1RqU",visibleInLargeOnly:"MN1RqU",row:"B1DEXV",colspan2:"rw_0Dl",card:"qxsWMH",title:"RPIQGb",content:"fM6G2_",contactUs:"cM5iNa",text:"o0Gg6d",liveChat:"ShulsI","live-chat-icon-container":"delloL",liveChatIconContainer:"delloL","live-chat-icon-container-offline":"XcVEJh",liveChatIconContainerOffline:"XcVEJh","live-chat-icon-container-online":"lemuC4",liveChatIconContainerOnline:"lemuC4","whatsapp-icon-container":"jPMJUK",whatsappIconContainer:"jPMJUK","live-chat-icon":"GFzvqa",liveChatIcon:"GFzvqa","live-chat-loading":"HpRh05",liveChatLoading:"HpRh05"}}}]);
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.