File "dashboard.js"
Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/better-wp-security/dist/promos/dashboard.js
File size: 5.41 KB
MIME-type: text/plain
Charset: utf-8
(globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[7309],{42552:(e,t,r)=>{"use strict";r.r(t);var n=r(6293),i=r(3571),o=r(95122),s=r(12614),a=r(65202),l=r(71930),c=r(10906),m=r(1528),p=r(34450),u=r(65813),d=r(52117),h=r(64893),f=r(60976);const g=(0,d.Z)("aside",{target:"e1lkp3186"})("display:flex;flex-direction:column;position:relative;overflow:hidden;margin:1.25rem 1.25rem 0;padding:0 2.5rem 0 2.5rem;background:linear-gradient(90deg, #00010C 0%, #8533FF 100%);@media screen and (min-width: ",(({theme:e})=>e.breaks.small),"px){flex-direction:row;justify-content:space-between;gap:60px;}"),w=(0,d.Z)("div",{target:"e1lkp3185"})("display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:0.5rem;margin-top:2.5rem;@media screen and (min-width: ",(({theme:e})=>e.breaks.small),"px){margin-top:0;}"),x=(0,d.Z)(l.X6,{target:"e1lkp3184"})({name:"dvodxn",styles:"font-size:1.625rem;font-family:'PolySans',sans-serif"}),b=(0,d.Z)(l.xv,{target:"e1lkp3183"})({name:"1fmf7g3",styles:"font-size:1.375rem;line-height:1.5rem;font-family:'PolySans',sans-serif"}),v=(0,d.Z)(h.Button,{target:"e1lkp3182"})({name:"jfp1m3",styles:"height:47px;width:200px;margin-top:1.25rem;padding:15px 20px;justify-content:center;font-size:1rem;border-radius:50px;background:#F9FAF9;color:#8533FF"}),y=(0,d.Z)(f.fX,{target:"e1lkp3181"})("max-width:245px;margin-top:2rem;margin-right:-1rem;align-self:flex-end;@media screen and (min-width: ",(({theme:e})=>e.breaks.medium),"px){margin-top:2rem;}@media screen and (min-width: ",(({theme:e})=>e.breaks.xlarge),"px){margin-top:1.25rem;margin-right:90px;}"),E=(0,d.Z)(h.Button,{target:"e1lkp3180"})({name:"1owrvd2",styles:"position:absolute;top:2px;right:2px;&:hover,&:active,&:focus{color:#6817c5;}& svg{background:white;border-radius:25px;}"});function k(){const{installType:e}=(0,m.useConfigContext)();return(0,n.createElement)(React.Fragment,null,(0,n.createElement)(c.BelowToolbarFill,null,(({page:t,dashboardId:r})=>r>0&&"view-dashboard"===t&&(0,n.createElement)(React.Fragment,null,(0,n.createElement)(p.StellarSale,{installType:e}),(0,n.createElement)(S,{installType:e})))),"free"===e&&(0,n.createElement)(c.EditCardsFill,null,(0,n.createElement)(m.PromoCard,{title:(0,o.__)("Trusted Devices","better-wp-security")}),(0,n.createElement)(m.PromoCard,{title:(0,o.__)("Updates Summary","better-wp-security")}),(0,n.createElement)(m.PromoCard,{title:(0,o.__)("User Security Profiles","better-wp-security")})))}const P=Date.UTC(2024,10,26,0,0,0),F=Date.UTC(2024,11,9,9,59,59);function S({installType:e}){const[t,r]=(0,u._)("solidSecurityBFCM2024"),i=(0,s.u)(),c=(0,n.useMemo)((()=>({...i,colors:{...i.colors,text:{...i.colors.text,white:"#F9FAF9"}}})),[i]);return P>Date.now()||F<Date.now()||t?null:(0,n.createElement)(s.a,{theme:c},(0,n.createElement)(g,null,(0,n.createElement)(w,null,(0,n.createElement)(x,{level:2,variant:l.rK.WHITE,weight:l.fs.HEAVY,text:(0,o.__)("Save 40% on SolidWP","better-wp-security")}),(0,n.createElement)(b,{variant:l.rK.WHITE,text:(0,o.__)("Purchase new products during the Black Friday Sale.")}),(0,n.createElement)(v,{href:"free"===e?"https://go.solidwp.com/bfcm24-go-pro":"https://go.solidwp.com/bfcm24-solid-security-pro-get-solid-suite",weight:500},(0,o.__)("Get Solid Suite","better-wp-security"))),(0,n.createElement)(E,{label:(0,o.__)("Dismiss","better-wp-security"),icon:a.Z,onClick:()=>r(!0)}),(0,n.createElement)(y,null)))}r.p=window.itsecWebpackPublicPath,(0,o.setLocaleData)({"":{}},"ithemes-security-pro"),(0,i.registerPlugin)("itsec-promos-dashboard",{render:()=>(0,n.createElement)(k,null)})},65202:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(6293),i=r(14776);const o=(0,n.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,n.createElement)(i.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}))},10906:e=>{e.exports=function(){return this.itsec.dashboard.api}()},1528:e=>{e.exports=function(){return this.itsec.dashboard.dashboard}()},31600:e=>{e.exports=function(){return this.itsec.packages.data}()},34450:e=>{e.exports=function(){return this.itsec.promos.components}()},64893:e=>{e.exports=function(){return this.wp.components}()},9576:e=>{e.exports=function(){return this.wp.compose}()},48015:e=>{e.exports=function(){return this.wp.data}()},82521:e=>{e.exports=function(){return this.wp.date}()},6293:e=>{e.exports=function(){return this.wp.element}()},95122:e=>{e.exports=function(){return this.wp.i18n}()},81019:e=>{e.exports=function(){return this.wp.keycodes}()},3571:e=>{e.exports=function(){return this.wp.plugins}()},14776:e=>{e.exports=function(){return this.wp.primitives}()},73470:e=>{e.exports=function(){return this.wp.url}()},99196:e=>{"use strict";e.exports=window.React},92819:e=>{"use strict";e.exports=window.lodash},4942:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(49142);function i(e,t,r){return(t=(0,n.Z)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},49142:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(71002);function i(e){var t=function(e,t){if("object"!==(0,n.Z)(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,"string");if("object"!==(0,n.Z)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===(0,n.Z)(t)?t:String(t)}}},e=>{e.O(0,[1930,976,5813],(()=>(42552,e(e.s=42552))));var t=e.O();((window.itsec=window.itsec||{}).promos=window.itsec.promos||{}).dashboard=t}]);