PageSourceSearch

https://account.quotidianodipuglia.it/assets/MyDevices-CjDyDtx4.js

js quotidianodipuglia.it collected 2026-09-27 21:31:32 UTC 2,817 bytes, 1 lines download raw bytes

1import{r as e,a as s,h as t,j as r,C as i,t as c,B as o,e as a,N as n,g as l,b as d,m,p as u}from"./index-r-KClxtY.js";import h from"./ScrollToAnchor-J8N2xJVa.js";import{D as p}from"./DevicesList-CgTx_pbr.js";import"./Paginator-Bi6ARBma.js";import"./Toast-DuPXoAKZ.js";import"./BannerCta-DUfs0O4K.js";const v=()=>{const[l,d]=e.useState(!1),{addNotice:m}=s();t();return r.jsxs("div",{className:"GetMemberForm-wrapper",children:[l&&r.jsx(i,{}),r.jsxs("div",{className:"GetMemberTexts",children:[r.jsx("h3",{className:"GetMemberForm-title",children:c.user.get_member.need_more_devs}),r.jsx("h5",{className:"GetMemberForm-description",children:c.user.get_member.buy_other_subscription})]}),r.jsx(o,{onClick:()=>{d(!0);a("/api/user/invite-member",{}).then((e=>{const s=null==e?void 0:e.data;if(!s||!1===(null==s?void 0:s.success))throw new Error(s.error.code);m({title:c.notices.mail_sent_successfully,type:n.success,timeout:5e3})})).catch((e=>{console.warn(e),m({title:c.notices.generic_error,type:n.error,timeout:5e3})})).finally((()=>{d(!1)}))},label:c.user.get_member.cta,color:"cta"})]})},x=i=>{var o,a;const[n,x]=e.useState(null),[b,_]=e.useState(null),[g,j]=e.useState(null),[f,w]=e.useState(null),[y,S]=e.useState(null),{user:N}=t(),{subscribed:F,slaveSubscribed:C}=l(),B=c.user.subscriptions,{domain:E,testata:M}=d(),{addNotice:T,removeNoticeById:D}=s(),G=m(),[P,k]=e.useState(null),[A,I]=e.useState(null);return e.useEffect((()=>{Promise.resolve(G.browsers).then((e=>{x(e),_("".concat(e.length," browser"))})),Promise.resolve(G.devices).then((e=>{j(e),w("".concat(e.length," ").concat(1!==e.length?c.common.devices:c.common.device))})),Promise.resolve(G.devicesConfig).then(S)}),[G]),e.useEffect((()=>{if(console.log(E),E){const e={description:u(B.disconnect_browsers_message,[E]),cta:B.disconnect_browsers};k(e);const s={description:u(B.disconnect_devices_message,[E]),cta:B.disconnect_devices};I(s)}}),[E]),r.jsxs(r.Fragment,{children:[N&&r.jsxs("div",{className:"DevicesManagement-wrapper",children:[(1==(null==(o=null==N?void 0:N.limitsExceeded)?void 0:o.browser_mobile_desktop_limit_exceeded)||1==(null==(a=null==N?void 0:N.limitsExceeded)?void 0:a.devices_limit_exceeded))&&r.jsxs(r.Fragment,{children:[C&&r.jsx("p",{children:u(B.contact_administrator)}),F&&!C&&r.jsxs(r.Fragment,{children:[r.jsx(v,{}),r.jsx("h4",{className:"FamilySuggestion-title",children:B.family_suggestion_new}),r.jsx("a",{href:"".concat("https://shop.placeholder.it".replace("placeholder",M),"/family?codiceBundle=FAMILY"),children:r.jsx("img",{src:"https://shopasset.cedscdn.it/campagna/_CED/mapp/994x249-family-202404",alt:"family promo",style:{maxWidth:"100%"}})})]})]}),n&&g&&b&&f&&r.jsx(p,{browsers:n,devices:g,browsersCount:b,devicesCount:f,browserBannerTexts:P,devicesBannerTexts:A})]}),r.jsx(h,{})]})};export{x as default};

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.