18 lines
128 KiB
JavaScript
18 lines
128 KiB
JavaScript
|
/*! For license information please see index.js.LICENSE.txt */
|
|||
|
(()=>{var e={9487:(e,t,n)=>{"use strict";n.d(t,{X:()=>i});const r={AED:{symbol:"د.إ.",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},
|
|||
|
/* translators: placeholder is product name. */
|
|||
|
__("Add %s","jetpack-protect"),r);return h().createElement("div",{className:u()(E.Z.wrapper,t,{[E.Z["is-bundle-card"]]:g,[E.Z["is-card"]]:p||g})},g&&h().createElement(Z,null),h().createElement("div",{className:E.Z["card-container"]},h().createElement(w,{slug:n,icon:a,products:null!=k&&k.length?k:[n],size:32}),h().createElement(C.H3,null,r),s&&h().createElement(C.Dx,{mb:3},s),d&&h().createElement(C.ZP,{mb:3},d),h().createElement("ul",{className:E.Z.features},m.map(((e,t)=>h().createElement(C.ZP,{component:"li",key:`feature-${t}`,variant:"body"},h().createElement(c.Z,{icon:l.Z,size:24,className:E.Z.check}),e)))),T&&h().createElement(b.Z,{price:z,offPrice:I,currency:L}),R&&h().createElement(C.H3,null,__("Free","jetpack-protect")),h().createElement(v.Z,{level:"error",showIcon:!!V},V),(!g||g&&!N)&&h().createElement(f.Z,i()({onClick:P?null:j,isLoading:_,disabled:_,variant:_||!g?"primary":"secondary",className:E.Z["add-button"]},P?{href:P}:{}),x||A),g&&N&&h().createElement("div",{className:E.Z["product-has-required-plan"]},h().createElement(y.KM,{size:36}),h().createElement(C.ZP,null,__("Active on your site","jetpack-protect"))),M))};k.propTypes={slug:p().string.isRequired,name:p().string,icon:p().string,title:p().string,subTitle:p().string,description:p().string,features:p().arrayOf(p().string),pricing:p().object,isCard:p().bool,isBundle:p().bool,supportedProducts:p().arrayOf(p().string),className:p().string,hasRequiredPlan:p().bool,isLoading:p().bool,onAdd:p().func,error:p().string,addProductUrl:p().string,buttonText:p().string,buttonDisclaimer:p().element},k.defaultProps={trackButtonClick:()=>{},title:"",subTitle:"",isBundle:!1,pricing:{},onAdd:()=>{},isLoading:!1,buttonText:"",error:"",buttonDisclaimer:null};const S=k},5347:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(5736),i=n(5106),o=n(3789),c=n(9184);const __=r.__,a=e=>{let{price:t,offPrice:n,currency:r="",showNotOffPrice:a=!0,leyend:s=__("/month, paid yearly","jetpack-protect"),isNotConvenientPrice:l=!1}=e;return(t||n)&&r?(a=a&&Boolean(n),React.createElement(React.Fragment,null,React.createElement("div",{className:c.Z.container},a&&React.createElement(o.t,{value:t,currency:r,isOff:!1}),React.createElement(o.t,{value:n||t,currency:r,isOff:!l})),s&&React.createElement(i.ZP,{className:c.Z.leyend},s))):null}},3789:(e,t,n)=>{"use strict";n.d(t,{t:()=>s});var r=n(8899),i=n(5235),o=n.n(i),c=n(5106),a=n(9184);const s=e=>{let{value:t,currency:n,isOff:i}=e;const s=o()(a.Z.price,{[a.Z["is-not-off-price"]]:!i}),{symbol:l,integer:d,fraction:u}=(0,r.LR)(t,n);return React.createElement(c.ZP,{className:s,variant:"headline-medium",component:"p"},React.createElement(c.ZP,{component:"sup",variant:"title-medium"},l),d,React.createElement(c.ZP,{component:"sup",variant:"title-medium"},u))}},6017:(e,t,n)=>{"use strict";n.d(t,{h:()=>r,s:()=>i});const r={"headline-medium":"h1","headline-small":"h2","headline-small-regular":"h2","title-medium":"h3","title-small":"h4",body:"p","body-small":"p","body-extra-small":"p",label:"p"},i=["mt","mr","mb","ml","mx","my","m","pt","pr","pb","pl","px","py","p"]},5106:(e,t,n)=>{"use strict";n.d(t,{Dx:()=>g,H3:()=>p,ZP:()=>m});var r=n(2674),i=n.n(r),o=n(5235),c=n.n(o),a=n(9196),s=n.n(a),l=n(6017),d=n(3280);const u=e=>{let{variant:t="body",children:n,component:r,className:o,...u}=e;const m=r||l.h[t]||"span",p=(0,a.useMemo)((()=>l.s.reduce(((e,t)=>(void 0!==u[t]&&(e+=d.Z[`${t}-${u[t]}`]+" ",delete u[t]),e)),"")),[u]);return s().createElement(m,i()({className:c()(d.Z.reset,d.Z[t],o,p)},u),n)},m=u,p=e=>{let{children:t,weight:n="bold",...r}=e;const o="headline-small"+("bold"===n?"":`-${n}`);return s().createElement(u,i()({variant:o,mb:3},r),t)},g=e=>{let{children:t,size:n="medium",...r}=e;return s().createElement(u,i()({variant:`title-${n}`,mb:1},r),t)}},6016:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>u});var r=n(9196),i=n.n(r);const o={"--font-headline-medium":"48px","--font-headline-small":"36px","--font-title-medium":"24px","--font-title-small":"20px","--font-body":"16px","--font-body-small":"14px","--font-body-extra-small":"12px","--font-title-large":"var(--font-he
|
|||
|
/* translators: %s: Number of hide items */
|
|||
|
__("Show %s more","jetpack-protect"),v):(0,i.sprintf)(
|
|||
|
/* translators: %s: Number of hide items */
|
|||
|
__("Hide %s items","jetpack-protect"),v)))))}},5338:(e,t,n)=>{"use strict";n.d(t,{Dx:()=>p.Z,KB:()=>m.Z,ZP:()=>y});var r=n(5106),i=n(5609),o=n(1074),c=n(7489),a=n(2229),s=n(5235),l=n.n(s),d=n(9196),u=n.n(d),m=n(2328),p=n(6119),g=n(513),h=n(246);const v=e=>{let{children:t}=e;return u().createElement("ul",{className:g.Z.navigation,role:"menu"},t)},f=e=>{var t,n,s,m;let{children:p,data:h}=e;const v=(0,d.useRef)(),[f,y]=(0,d.useState)(!1),b=(null==h||null===(t=h.items)||void 0===t?void 0:t.find((e=>(null==e?void 0:e.id)===(null==h?void 0:h.selectedItem))))??{},{label:C,icon:E}=b,Z=(0,d.useCallback)((()=>{y((e=>!e))}),[]);return u().createElement("button",{className:g.Z["navigation-dropdown-button"],onClick:Z,ref:v},u().createElement("div",{className:g.Z["navigation-dropdown-label"]},E&&u().createElement(o.Z,{icon:E,className:g.Z["navigation-dropdown-icon"]}),u().createElement(r.ZP,null,C)),u().createElement(o.Z,{icon:f?c.Z:a.Z,size:32}),u().createElement(i.Popover,{position:"bottom center",anchorRef:null==v?void 0:v.current,className:l()({[g.Z["navigation-dropdown-open"]]:f,[g.Z["navigation-dropdown-closed"]]:!f})},u().createElement("div",{style:{width:null==v||null===(n=v.current)||void 0===n||null===(s=n.getBoundingClientRect)||void 0===s||null===(m=s.call(n))||void 0===m?void 0:m.width}},p)))},y=e=>{let{children:t,selected:n,onSelect:r,mode:i="list"}=e;const o=(0,h.Z)({selected:n,onSelect:r}),c=(e=>{switch(e){case"list":default:return v;case"dropdown":return f}})(i);return u().createElement(h.k.Provider,{value:{...o,mode:i}},u().createElement(c,{data:o},t))}},6119:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(5235),i=n.n(r),o=n(9196),c=n.n(o),a=n(5167),s=n(2389),l=n(513),d=n(246);const u=e=>{let{id:t,label:n,icon:r,badge:u,disabled:m,onClick:p,onKeyDown:g,onFocus:h,checked:v}=e;const f=(0,o.useContext)(d.k),y=(null==f?void 0:f.selectedItem)===t,b=null==f?void 0:f.registerItem,C=null==f?void 0:f.registerRef,E=null==f?void 0:f.handleClickItem,Z=null==f?void 0:f.handleKeyDownItem,w=null==f?void 0:f.handleFocusItem,k=i()(l.Z["navigation-item"],{[l.Z.clickable]:!m,[l.Z.selected]:y}),S=(0,o.useCallback)((e=>{null==p||p(e),null==E||E(t)}),[E,t,p]),N=(0,o.useCallback)((e=>{null==g||g(e),null==Z||Z(e)}),[Z,g]),j=(0,o.useCallback)((e=>{C(e,t)}),[C,t]),P=(0,o.useCallback)((e=>{null==h||h(e),null==w||w(t)}),[w,t,h]);return(0,o.useEffect)((()=>{b({id:t,disabled:m,label:n,icon:r})}),[]),c().createElement("li",{className:k,onClick:m?null:S,onKeyDown:N,onFocus:m?null:P,role:"menuitem",tabIndex:m?-1:0,ref:j},c().createElement(s.Z,{icon:r},n),c().createElement(a.Z,{count:u,checked:v}))}},2389:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(5106),i=n(1074),o=n(5235),c=n.n(o),a=n(5162),s=n.n(a),l=n(9196),d=n.n(l),u=n(513);const m=e=>{let{icon:t,children:n,className:o}=e;return d().createElement(r.ZP,{className:c()(u.Z["navigation-item-label"],o)},t&&d().createElement(i.Z,{icon:t,className:u.Z["navigation-item-icon"],size:28}),d().createElement("span",{className:u.Z["navigation-item-label-content"]},n))};m.propTypes={icon:s().node,children:s().node.isRequired};const p=m},246:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o,k:()=>i});var r=n(9196);const i=n.n(r)().createContext(),o=e=>{let{selected:t,onSelect:n}=e;const[i,o]=(0,r.useState)([]),[c,a]=(0,r.useState)([]),[s,l]=(0,r.useState)(),d=(e,t)=>{const n=e-1,r=n<0?t:n,o=i[r];return null!=o&&o.disabled?d(r,t):o},u=(e,t)=>{const n=e+1,r=n>t?0:n,o=i[r];return null!=o&&o.disabled?u(r,t):o};return{selectedItem:t,handleClickItem:e=>{n(e)},handleKeyDownItem:e=>{const r=null==e?void 0:e.code,o=i.findIndex((e=>(null==e?void 0:e.id)===t)),a=i.length-1;let l;if("ArrowUp"===r){const e=d(o,a);l=null==e?void 0:e.id}else if("ArrowDown"===r){const e=u(o,a);l=null==e?void 0:e.id}else"Enter"!==r&&"Space"!==r||!s||(l=s);if(l){const e=c[l];null==e||e.focus(),n(l)}},handleFocusItem:e=>{l(e)},registerRef:(e,t)=>{a((n=>!n[t]&&e?{...n,[t]:e}:n))},registerItem:e=>{o((t=>{const n=[...t],r=null==e?void 0:e.id,i=n.findIndex((e=>(null==e?void 0:e.id)===r));return i>=0?n[i]=e:n.push(e),n}))},items:i}}},6450:(e,t,n)=>{"use stri
|
|||
|
/* translators: %s: Latest check date */
|
|||
|
__("Latest results as of %s","jetpack-protect"),(0,a.dateI18n)("F jS",t))),e>0&&d().createElement(c.ZP,{variant:"headline-small",component:"h1"},(0,s.sprintf)(
|
|||
|
/* translators: %s: Total number of vulnerabilities */
|
|||
|
__("%s vulnerabilities found","jetpack-protect"),e))))}},9944:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(5106),i=n(5736),o=n(5773),c=n(9685);const __=i.__,a=()=>React.createElement("svg",{width:"80",height:"96",viewBox:"0 0 80 96",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M40 0.00634766L80 17.7891V44.2985C80 66.8965 65.1605 88.2927 44.2352 95.0425C41.4856 95.9295 38.5144 95.9295 35.7648 95.0425C14.8395 88.2927 0 66.8965 0 44.2985V17.7891L40 0.00634766Z",fill:"#069E08"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.9 33.6909L35.375 67.9124L19.2047 55.9263L22.7848 51.1264L34.1403 59.5436L56.0851 30.122L60.9 33.6909Z",fill:"white"})),s=()=>{const{hasUncheckedItems:e}=(0,o.Z)();return React.createElement("div",{className:c.Z.empty},React.createElement(a,null),React.createElement(r.H3,{weight:"bold",mt:8},e?__("No vulnerabilities found","jetpack-protect"):__("Don't worry about a thing","jetpack-protect",0)),React.createElement(r.ZP,null,e?__("The last Protect scan ran and we didn't find vulnerabilities.","jetpack-protect"):__("Don't worry about a thing","jetpack-protect",0)))}},5984:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(8218),i=n(2939),o=n(5106),c=n(5736),a=n(9196),s=n.n(a),l=n(9944),d=n(9055),u=n(5413),m=n(1053);const __=c.__,p=()=>{const{item:e,list:t,selected:n,setSelected:a}=(0,m.Z)();return s().createElement(r.Z,{fluid:!0,horizontalSpacing:0,horizontalGap:5},s().createElement(i.Z,{lg:4},s().createElement(u.Z,{selected:n,onSelect:a})),s().createElement(i.Z,{lg:8},(null==t?void 0:t.length)>0?s().createElement(s().Fragment,null,s().createElement(o.Dx,{mb:3},"all"===n?(0,c.sprintf)(
|
|||
|
/* translators: Translates to Update to. %1$s: Name. %2$s: Fixed version */
|
|||
|
__("All %s vulnerabilities","jetpack-protect"),t.length):(0,c.sprintf)(
|
|||
|
/* translators: Translates to Update to. %1$s: Name. %2$s: Fixed version */
|
|||
|
__("%1$s vulnerabilities in your %2$s %3$s","jetpack-protect"),t.length,null==e?void 0:e.name,null==e?void 0:e.version)),s().createElement(d.Z,{list:t})):s().createElement(l.Z,null)))}},9055:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(5106),i=n(526),o=n(6324),c=n(5736),a=n(9196),s=n.n(a),l=n(6477),d=n(545);const __=c.__,u=e=>{let{id:t,name:n,version:u,title:m,icon:p,fixedIn:g,type:h}=e;const{recordEvent:v}=(0,l.Z)();return s().createElement(d.Q,{id:t,label:`${n} (${u})`,title:m,icon:p,onOpen:(0,a.useCallback)((()=>{["core","plugin","theme"].includes(h)&&v(`jetpack_protect_${h}_vulnerability_open`)}),[v,h])},g&&s().createElement(s().Fragment,null,s().createElement(r.ZP,{variant:"title-small",mb:2},__("How to fix it?","jetpack-protect")),s().createElement(r.ZP,{mb:2},
|
|||
|
/* translators: Translates to Update to. %1$s: Name. %2$s: Fixed version */
|
|||
|
(0,c.sprintf)(__("Update to %1$s %2$s","jetpack-protect"),n,g))),s().createElement(i.Z,{variant:"link",isExternalLink:!0,weight:"regular",href:(0,o.Z)("jetpack-protect-vul-info",{path:t})},__("See more technical details of this vulnerability","jetpack-protect")))},m=e=>{let{list:t}=e;return s().createElement(d.Z,null,t.map((e=>{let{id:t,name:n,title:r,version:i,fixedIn:o,icon:c,type:a}=e;return s().createElement(u,{key:t,id:t,name:n,version:i,title:r,icon:c,fixedIn:o,type:a})})))}},5413:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(2054),i=n(5736),o=n(797),c=n(2817),a=n(7663),s=n(8960),l=n(9196),d=n(6477),u=n(5773),m=n(5338);const __=i.__,p=e=>{let{selected:t,onSelect:n}=e;const{plugins:i,themes:p,numVulnerabilities:g,numCoreVulnerabilities:h}=(0,u.Z)(),{recordEvent:v}=(0,d.Z)(),[f]=(0,r.Z)("lg","<"),y=(0,l.useCallback)((()=>{v("jetpack_protect_navigation_all_click")}),[v]),b=(0,l.useCallback)((()=>{v("jetpack_protect_navigation_core_click")}),[v]),C=(0,l.useCallback)((()=>{v("jetpack_protect_navigation_plugin_click")}),[v]),E=(0,l.useCallback)((()=>{v("jetpack_protect_navigation_theme_click")}),[v]);return React.createElement(m.ZP,{selected:t,onSelect:n,mode:f?"dropdown":"list"},React.createElement(m.Dx,{initial:!0,id:"all",label:__("All vulnerabilities","jetpack-protect"),icon:o.Z,badge:g,disabled:g<=0,onClick:y,checked:!0}),React.createElement(m.Dx,{id:"wordpress",label:__("WordPress","jetpack-protect"),icon:c.Z,badge:h,disabled:h<=0,onClick:b,checked:!0}),React.createElement(m.KB,{label:__("Plugins","jetpack-protect"),icon:a.Z},i.map((e=>{let{name:t,vulnerabilities:n,checked:r}=e;return React.createElement(m.Dx,{key:t,id:t,label:t,checked:r,badge:null==n?void 0:n.length,disabled:(null==n?void 0:n.length)<=0,onClick:C})}))),React.createElement(m.KB,{label:__("Themes","jetpack-protect"),icon:s.Z},p.map((e=>{let{name:t,vulnerabilities:n,checked:r}=e;return React.createElement(m.Dx,{key:t,id:t,label:t,checked:r,badge:null==n?void 0:n.length,disabled:(null==n?void 0:n.length)<=0,onClick:E})}))))}},1053:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(2817),i=n(7663),o=n(8960),c=n(9196),a=n(5773);const s=(e,t)=>{var n;return Array.isArray(e)?e.map((e=>s(e,t))).flat():null==e||null===(n=e.vulnerabilities)||void 0===n?void 0:n.map((n=>({...n,...e,icon:t})))},l=e=>{let{core:t,plugins:n,themes:c}=e;return[...s(t,r.Z),...s(n,i.Z),...s(c,o.Z)]},d=()=>{const{plugins:e,themes:t,core:n}=(0,a.Z)(),[d,u]=(0,c.useState)({}),[m,p]=(0,c.useState)(l({core:n,plugins:e,themes:t})),[g,h]=(0,c.useState)(null!=m&&m.length?"all":null);return{item:d,list:m,selected:g,setSelected:c=>{if(h(c),c===g)return;if("all"===c)return p(l({core:n,plugins:e,themes:t})),void u({});if("wordpress"===c)return p(s(n,r.Z)),void u(n);const a=e.find((e=>(null==e?void 0:e.name)===c));if(a)return p(s(a,i.Z)),void u(a);const d=t.find((e=>(null==e?void 0:e.name)===c));return d?(p(s(d,o.Z)),void u(d)):void 0}}}},6477:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(6975),i=n(1294),o=n(9196);const c=function(){var e;let{pageViewEventName:t,pageViewNamespace:n="jetpack",pageViewSuffix:c="page_view",pageViewEventProperties:a={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{isUserConnected:s,isRegistered:l,userConnectionData:d}=(0,i.Z)(),{login:u,ID:m}=(null===(e=d.currentUser)||void 0===e?void 0:e.wpcomUser)||{},{tracks:p}=r.Z,{recordEvent:g}=p,h=(0,o.useCallback)((async(e,t)=>{g(e,t)}),[g]),v=(0,o.useCallback)((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return n="function"==typeof t?t:n,t="function"==typeof t?{}:t,()=>h(e,t).then(n)}),[h]);(0,o.useEffect)((()=>{s&&m&&u&&r.Z.initialize(m,u)}),[s,m,u]);const f=t?`${n}_${t}_${c}`:null;return(0,o.useEffect)((()=>{l&&f&&g(f,a)}),[]),{recordEvent:h,recordEventHandler:v}}},5773:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9818),i=n(4633);function o(){var e,t;const{statusIsFetching:n,status:o,securityBundle:c,productData:a}=(0,r.useSelect)((e=>({statusIsFetching:e(i.t).getStatusIsFetching(),status:e(i.t).getStatus(),securityBundle:e(i.t).getSecurityBundle(),productData
|