File "components.js"

Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/better-wp-security/dist/promos/components.js
File size: 6.1 KB
MIME-type: text/plain
Charset: utf-8

(globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[2646],{70805:(e,t,r)=>{"use strict";r.r(t),r.d(t,{StellarSale:()=>E});var i=r(6293),l=r(12614),n=r(9576),s=r(95122),a=r(65202),o=r(71930),c=r(65813),m=r(52117),u=r(64893);const p=(0,m.Z)("aside",{target:"ewt4ngy6"})({name:"kcaghk",styles:"position:relative;display:flex;margin:1.25rem 1.25rem 0;background:#1D202F;color:#F9FAF9;padding:1rem;justify-content:space-between;overflow:hidden"}),w=(0,m.Z)(u.Button,{target:"ewt4ngy5"})({name:"191m2wv",styles:"color:white;z-index:2;&:hover,&:active,&:focus{color:white!important;}"}),g=(0,m.Z)("div",{target:"ewt4ngy4"})("max-width:60rem;display:grid;grid-template-columns:",(({isSmall:e})=>e?"1fr 1fr":"auto"),";gap:1rem 1.5rem;align-items:end;justify-items:start;padding:",(({isSmall:e})=>e?"1.25rem 4.45rem 0.65rem 2.9rem":"1.25rem 4.45rem 0.65rem 0.25rem"),";"),h=(0,m.Z)(o.X6,{target:"ewt4ngy3"})("grid-column:",(({isSmall:e})=>!e&&"span 2"),";strong{font-size:1.5rem;}"),d=(0,m.Z)("a",{target:"ewt4ngy2"})({name:"shjizp",styles:"display:inline-flex;min-width:max-content;padding:0.75rem 1.75rem;justify-content:center;align-items:center;color:#ffffff;font-size:0.83569rem;text-align:center;text-transform:uppercase;text-decoration:none;border-radius:7.8125rem;background:#6817C5;&:hover,&:active,&:focus{color:inherit;opacity:0.75;}"}),f=(0,m.Z)(o.xv,{target:"ewt4ngy1"})("text-decoration:underline;align-self:",(({isSmall:e})=>e?"start":"center"),";&:hover,&:active,&:focus{color:inherit;font-style:oblique;}"),v=(0,m.Z)(x,{target:"ewt4ngy0"})("position:absolute;right:0;bottom:",(({isHuge:e})=>e?"-1rem":"-2rem"),";");function x({className:e,isHuge:t}){return t?(0,i.createElement)("svg",{className:e,width:"280",height:"154",viewBox:"0 0 280 154",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)("g",{clipPath:"url(#clip0_1482_390)"},(0,i.createElement)("circle",{cx:"10.2895",cy:"9.58348",r:"9.58348",fill:"#F9FAF9"}),(0,i.createElement)("circle",{cx:"245.085",cy:"46.9587",r:"4.79174",fill:"#F9FAF9"}),(0,i.createElement)("path",{d:"M245.085 46.0009L103.249 220.42L9.33105 7.66699L245.085 46.0009ZM245.085 46.0009L306.419 124.586",stroke:"#F9FAF9",strokeWidth:"1.43752"})),(0,i.createElement)("defs",null,(0,i.createElement)("clipPath",{id:"clip0_1482_390"},(0,i.createElement)("rect",{width:"280",height:"154",fill:"white"})))):(0,i.createElement)("svg",{className:e,width:"116",height:"167",viewBox:"0 0 116 167",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)("circle",{cx:"9.58348",cy:"9.58348",r:"9.58348",fill:"#F9FAF9"}),(0,i.createElement)("path",{d:"M245.378 48.0009L103.543 222.42L9.625 9.66699L245.378 48.0009ZM245.378 48.0009L306.713 126.586",stroke:"#F9FAF9",strokeWidth:"1.43752"}))}const y=Date.UTC(2024,6,23,8,0,0),b=Date.UTC(2024,6,31,4,0,0),S=Date.now();function E({installType:e}){const t=(0,n.useViewportMatch)("small"),r=(0,n.useViewportMatch)("huge"),[m,u]=(0,c._)("itsecPromoStellarSale24"),x=(0,l.u)(),E=(0,i.useMemo)((()=>({...x,colors:{...x.colors,text:{...x.colors.text,white:"#F9FAF9"}}})),[x]);if(y>S||b<S)return null;if(m)return null;const F="free"===e?(0,s.__)("Save 40% on Solid Security Pro.","better-wp-security"):(0,s.__)("Save 40% on Solid Suite.","better-wp-security"),_="free"===e?"https://go.solidwp.com/stellar-sale-plugin-solid-security-basic":"https://go.solidwp.com/stellar-sale-plugin-solid-security-pro",Z="free"===e?"https://go.solidwp.com/stellar-sale-plugin-solid-security-basic-stellar-wp":"https://go.solidwp.com/stellar-sale-plugin-solid-security-pro-stellar-wp";return(0,i.createElement)(l.a,{theme:E},(0,i.createElement)(p,null,(0,i.createElement)(g,{isSmall:t},(0,i.createElement)(h,{level:2,variant:"white",weight:300,size:"extraLarge",isSmall:t},(0,i.createElement)("strong",null,(0,s.__)("Make it yours.","better-wp-security")),(0,i.createElement)("br",null),F),t&&(0,i.createElement)(o.xv,{variant:"white",size:"subtitleSmall",weight:300,text:(0,i.createInterpolateElement)((0,s.__)("Take <b>40%</b> off all StellarWP brands during the annual Stellar Sale. Now through July 30.","better-wp-security"),{b:(0,i.createElement)("strong",null)})}),(0,i.createElement)(d,{href:_,weight:600},(0,s.__)("Shop Now","better-wp-security")),(0,i.createElement)(f,{as:"a",href:Z,variant:"white",weight:700,size:"subtitleSmall",isSmall:t},(0,s.__)("View all StellarWP Deals","better-wp-security"))),(0,i.createElement)(w,{label:(0,s.__)("Dismiss","better-wp-security"),icon:a.Z,onClick:()=>u(!0)}),(0,i.createElement)(v,{isHuge:r})))}r.p=window.itsecWebpackPublicPath},65202:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});var i=r(6293),l=r(14776);const n=(0,i.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(l.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"}))},31600:e=>{e.exports=function(){return this.itsec.packages.data}()},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}()},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:()=>l});var i=r(49142);function l(e,t,r){return(t=(0,i.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:()=>l});var i=r(71002);function l(e){var t=function(e,t){if("object"!==(0,i.Z)(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var l=r.call(e,"string");if("object"!==(0,i.Z)(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===(0,i.Z)(t)?t:String(t)}}},e=>{e.O(0,[1930,5813],(()=>(70805,e(e.s=70805))));var t=e.O();((window.itsec=window.itsec||{}).promos=window.itsec.promos||{}).components=t}]);