"use strict";(("undefined"!=typeof self?self:global).webpackChunkopen=("undefined"!=typeof self?self:global).webpackChunkopen||[]).push([[994],{34725:(e,t,a)=>{a.r(t),a.d(t,{AboutSpotifyModal:()=>T});var n=a(67294),l=a.n(n),o=a(65858),s=a(28760),r=a(20657),c=a(58548),i=a(98742),u=a(98871),m=a(85105),p=a(14466),g=a(30806),d=a(35225),b=a(35291);const E="hbpwhf54ljdKrhNTq4mA",f=()=>{const e=(0,n.useContext)(g.z),t=(0,d.g)(),a=(0,n.useCallback)((()=>{e.prepareUpdate()}),[e]),o=(0,n.useCallback)((()=>{e.applyUpdate()}),[e]);switch(null==t?void 0:t.state){case b.J.UPDATE_AVAILABLE:return l().createElement("div",null,r.ag.get("about.upgrade.pending",t.version)," ",l().createElement("button",{className:E,onClick:a},r.ag.get("about.upgrade.pending_link")));case b.J.UPDATE_PROCESSING:return l().createElement("div",null,r.ag.get("about.upgrade.downloading"));case b.J.UPDATE_READY:return l().createElement("div",null,r.ag.get("about.upgrade.downloaded",t.version)," ",l().createElement("button",{className:E,onClick:o},r.ag.get("about.upgrade.restart_link")));case b.J.UPDATE_NONE:default:return null}};var k=a(25853),v=a(40122);const h="qi0hX8uXrbQyS6tvdDBt",C="WomzHWnDO_yFyjnkd49P",N="R83hOohwVshnd6bEkDO4",_=new Map([["Win32",r.ag.get("desktop-about.platform-win-x86")],["Win32_ARM64",r.ag.get("desktop-about.platform-win-arm-64")],["OSX",r.ag.get("desktop-about.platform-mac-x86")],["OSX_ARM64",r.ag.get("desktop-about.platform-mac-arm-64")],["Linux",r.ag.get("desktop-about.platform-linux")]]),y=()=>{var e;const t=(0,n.useRef)(null),{settings:a}=(0,v.useSettings)(),o=function(){const e=(0,n.useContext)(g.z),[t,a]=(0,n.useState)(null);return(0,n.useEffect)((()=>{let t=!0;return e.getVersionInfo().then((e=>{t&&a(e)})),()=>{t=!1}}),[e,a]),t}(),s=r.ag.get("desktop-about.platform-unknown");if(null===o)return null;const c="1"===a.values.employee,i=c?o.containerBuildType:"",u=null!==(e=_.get(o.containerPlatform))&&void 0!==e?e:s,m=r.ag.get("desktop-about.platform",{employee_build_type:i},{platform:u}),p=r.ag.get("desktop-about.copy-version-info-tooltip");return l().createElement("div",{className:h},l().createElement("div",{className:C,ref:t},l().createElement("div",null,m),l().createElement("div",null,o.containerVersion),c&&l().createElement("div",null,o.uiVersion)),l().createElement("button",{title:p,className:N,onClick:()=>{t.current&&(0,k.v)(t.current.innerText)}},"⎘"))},O="UnLGG6p932k7WyjkB9Vo",A="GSFvITwD84dS2JA62Mtj",w="KlzblASEYfUfaykBFZgM",D="Ifnz1lh1jjvqPqJ4KPo8",S="XF1XXenkrbdAK2rRoxoU",T=l().memo((()=>{const e=(0,o.I0)(),{isOpen:t}=(0,o.v9)((e=>e.aboutSpotify)),a=new Date("2022-04-22").getUTCFullYear().toString(),g=(0,n.useCallback)((()=>{e((0,u.se)())}),[e]);return l().createElement(m.Z,{animated:!0,isOpen:t,onRequestClose:g,contentLabel:r.ag.get("about.title_label")},l().createElement("div",{className:O},l().createElement("main",{className:w},l().createElement(p.Z,{noLink:!0,hasText:!0}),l().createElement(y,null),l().createElement(f,null),l().createElement(s.Dy,{as:"div",variant:"finale",className:D},l().createElement(c.kf,{source:r.ag.get("about.copyright",a),paragraphClassName:S}))),l().createElement("button",{"aria-label":r.ag.get("close_button_action"),className:A,onClick:g},l().createElement(i.T,{size:24}))))}))},53573:(e,t,a)=>{a.r(t),a.d(t,{default:()=>d,mapDispatchToProps:()=>g});var n=a(67294),l=a.n(n),o=a(65858),s=a(62504),r=a(28760),c=a(99450),i=a(20657),u=a(85105);const m={container:"uYKs_kQMPOziaeDj877B",content:"i8qeSJJVx4PXb7fsvOTd",licensesFrame:"WhIzm3S3R6Ker3XvpYW6",buttonContainer:"qsKpcFrhrA8KtuTVIN_y"},p=({isOpen:e,onClose:t})=>l().createElement(u.Z,{isOpen:e,onRequestClose:t,contentLabel:i.ag.get("licenses.title")},l().createElement("div",{className:m.container},l().createElement("main",{className:m.content},l().createElement(r.Dy,{as:"h1",variant:"alto",className:m.header,semanticColor:"textBase"},i.ag.get("licenses.title")),l().createElement("iframe",{className:m.licensesFrame,title:i.ag.get("licenses.title"),src:"/licenses.html"})),l().createElement("div",{className:m.buttonContainer},l().createElement(c.D,{onClick:t},i.ag.get("close_button_action")))));const g=e=>({hide:()=>e((0,s.xh)())}),d=(0,o.$j)((e=>({isOpen:e.licenses.isOpen})),g)((function({isOpen:e,hide:t}){return l().createElement(p,{isOpen:e,onClose:t})}))}}]);
//# sourceMappingURL=xpui-desktop-modals.js.map