initial
No files matched your search
@@ -0,0 +1 @@
|
||||
<?php return array('dependencies' => array('wp-api-fetch', 'wp-polyfill'), 'version' => '28dcf1c6b99dfedf9bb0');
|
||||
@@ -0,0 +1 @@
|
||||
(()=>{"use strict";var e={1455(e){e.exports=window.wp.apiFetch}},t={};function n(o){var a=t[o];if(void 0!==a)return a.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o=n(1455);n.n(o)()({path:"my-jetpack/v1/red-bubble-notifications",method:"POST"}).then(e=>{const t=Object.values(e||{}).filter(e=>!e.is_silent).length,n=document.querySelector("#toplevel_page_jetpack .wp-menu-name");if(!n)return;const o=n.querySelector(".awaiting-mod");if(t>0)if(o)o.className="awaiting-mod",o.textContent=String(t);else{const e=document.createElement("span");e.className="awaiting-mod",e.textContent=String(t),n.appendChild(document.createTextNode(" ")),n.appendChild(e)}else o&&o.remove()}).catch(e=>{console.log("[Jetpack] Red bubble notification fetch failed:",e)})})();
|
||||
@@ -0,0 +1,25 @@
|
||||
<svg width="253" height="31" viewBox="0 0 253 31" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M15.5006 31C24.0612 31 31.0012 24.0601 31.0012 15.4994C31.0012 6.93876 24.0612 0 15.5006 0C6.9399 0 0 6.9399 0 15.5006C0 24.0612 6.9399 31 15.5006 31Z" fill="#069E08"/>
|
||||
<path d="M16.2695 12.8975V27.924L24.0198 12.8975H16.2695Z" fill="white"/>
|
||||
<path d="M14.7009 18.074V3.07617L6.98047 18.074H14.7009Z" fill="white"/>
|
||||
<path d="M49.6778 5.00294L56.3817 23.5053C56.9599 25.0884 57.8482 25.6623 59.367 25.7964C59.4225 25.7991 59.4769 25.8136 59.5268 25.8392C59.5768 25.8648 59.6212 25.9009 59.6573 25.9452C59.6934 25.9895 59.7205 26.0411 59.7369 26.0968C59.7532 26.1525 59.7586 26.2112 59.7525 26.2691C59.7547 26.329 59.7456 26.3887 59.7257 26.4448C59.7058 26.501 59.6755 26.5524 59.6366 26.5962C59.5976 26.6399 59.5507 26.6751 59.4987 26.6998C59.4467 26.7244 59.3905 26.738 59.3335 26.7397H51.9906C51.9313 26.7412 51.8722 26.73 51.8171 26.7069C51.7619 26.6838 51.7118 26.6493 51.6697 26.6053C51.6276 26.5614 51.5945 26.5089 51.5722 26.4511C51.5499 26.3933 51.5391 26.3314 51.5402 26.2691C51.5359 26.2087 51.5435 26.1479 51.5626 26.0907C51.5817 26.0335 51.6119 25.981 51.6512 25.9366C51.6906 25.8922 51.7383 25.8569 51.7913 25.8327C51.8443 25.8086 51.9014 25.7962 51.9592 25.7964C52.6966 25.7964 53.5325 25.5941 53.5325 24.6509C53.526 24.2575 53.4493 23.869 53.3063 23.5053L51.6973 19.0221C51.6324 18.8198 51.601 18.7516 51.4082 18.7516H45.2804C44.3168 18.7516 43.1289 18.7516 42.5821 20.0335L41.1157 23.5053C40.9665 23.8203 40.8789 24.1635 40.858 24.5145C40.858 25.7282 42.3684 25.7964 43.1624 25.7964C43.2202 25.7962 43.2774 25.8086 43.3304 25.8327C43.3834 25.8569 43.431 25.8922 43.4704 25.9366C43.5097 25.981 43.5399 26.0335 43.559 26.0907C43.5781 26.1479 43.5858 26.2087 43.5814 26.2691C43.5826 26.3315 43.5717 26.3935 43.5492 26.4513C43.5268 26.5092 43.4934 26.5616 43.4511 26.6054C43.4088 26.6492 43.3584 26.6835 43.303 26.7062C43.2476 26.7289 43.1883 26.7396 43.1289 26.7375H36.6136C36.5543 26.739 36.4954 26.7278 36.4403 26.7047C36.3853 26.6816 36.3353 26.647 36.2934 26.603C36.2514 26.559 36.2185 26.5065 36.1964 26.4488C36.1744 26.391 36.1638 26.3291 36.1652 26.2669C36.1609 26.2065 36.1685 26.1457 36.1876 26.0885C36.2068 26.0313 36.2369 25.9788 36.2763 25.9344C36.3156 25.89 36.3633 25.8547 36.4163 25.8305C36.4693 25.8064 36.5265 25.794 36.5842 25.7942C38.1576 25.6931 38.6792 24.9147 39.2805 23.5031L47.0193 5.70873C47.3733 4.93258 48.1443 4.25977 48.8503 4.25977C49.3573 4.26196 49.5186 4.56539 49.6778 5.00294ZM43.8119 17.0674C43.7731 17.1274 43.7506 17.1973 43.7469 17.2697C43.7469 17.3379 43.8119 17.3708 43.9397 17.3708H50.2979C50.7462 17.3708 50.939 17.2697 50.939 16.9663C50.9384 16.814 50.9054 16.6638 50.8426 16.5265L49.0765 11.5376C48.6575 10.392 48.05 8.87711 47.8573 7.62823C47.8573 7.56227 47.8237 7.52709 47.7923 7.52709C47.7609 7.52709 47.7295 7.56227 47.7295 7.62823C47.4883 8.48691 47.1764 9.32192 46.7972 10.1238L43.8119 17.0674Z" fill="black"/>
|
||||
<path d="M49.6778 5.00294L56.3817 23.5053C56.9599 25.0884 57.8482 25.6623 59.367 25.7964C59.4225 25.7991 59.4769 25.8136 59.5268 25.8392C59.5768 25.8648 59.6212 25.9009 59.6573 25.9452C59.6934 25.9895 59.7205 26.0411 59.7369 26.0968C59.7532 26.1525 59.7586 26.2112 59.7525 26.2691C59.7547 26.329 59.7456 26.3887 59.7257 26.4448C59.7058 26.501 59.6755 26.5524 59.6366 26.5962C59.5976 26.6399 59.5507 26.6751 59.4987 26.6998C59.4467 26.7244 59.3905 26.738 59.3335 26.7397H51.9906C51.9313 26.7412 51.8722 26.73 51.8171 26.7069C51.7619 26.6838 51.7118 26.6493 51.6697 26.6053C51.6276 26.5614 51.5945 26.5089 51.5722 26.4511C51.5499 26.3933 51.5391 26.3314 51.5402 26.2691C51.5359 26.2087 51.5435 26.1479 51.5626 26.0907C51.5817 26.0335 51.6119 25.981 51.6512 25.9366C51.6906 25.8922 51.7383 25.8569 51.7913 25.8327C51.8443 25.8086 51.9014 25.7962 51.9592 25.7964C52.6966 25.7964 53.5325 25.5941 53.5325 24.6509C53.526 24.2575 53.4493 23.869 53.3063 23.5053L51.6973 19.0221C51.6324 18.8198 51.601 18.7516 51.4082 18.7516H45.2804C44.3168 18.7516 43.1289 18.7516 42.5821 20.0335L41.1157 23.5053C40.9665 23.8203 40.8789 24.1635 40.858 24.5145C40.858 25.7282 42.3684 25.7964 43.1624 25.7964C43.2202 25.7962 43.2774 25.8086 43.3304 25.8327C43.3834 25.8569 43.431 25.8922 43.4704 25.9366C43.5097 25.981 43.5399 26.0335 43.559 26.0907C43.5781 26.1479 43.5858 26.2087 43.5814 26.2691C43.5826 26.3315 43.5717 26.3935 43.5492 26.4513C43.5268 26.5092 43.4934 26.5616 43.4511 26.6054C43.4088 26.6492 43.3584 26.6835 43.303 26.7062C43.2476 26.7289 43.1883 26.7396 43.1289 26.7375H36.6136C36.5543 26.739 36.4954 26.7278 36.4403 26.7047C36.3853 26.6816 36.3353 26.647 36.2934 26.603C36.2514 26.559 36.2185 26.5065 36.1964 26.4488C36.1744 26.391 36.1638 26.3291 36.1652 26.2669C36.1609 26.2065 36.1685 26.1457 36.1876 26.0885C36.2068 26.0313 36.2369 25.9788 36.2763 25.9344C36.3156 25.89 36.3633 25.8547 36.4163 25.8305C36.4693 25.8064 36.5265 25.794 36.5842 25.7942C38.1576 25.6931 38.6792 24.9147 39.2805 23.5031L47.0193 5.70873C47.3733 4.93258 48.1443 4.25977 48.8503 4.25977C49.3573 4.26196 49.5186 4.56539 49.6778 5.00294ZM43.8119 17.0674C43.7731 17.1274 43.7506 17.1973 43.7469 17.2697C43.7469 17.3379 43.8119 17.3708 43.9397 17.3708H50.2979C50.7462 17.3708 50.939 17.2697 50.939 16.9663C50.9384 16.814 50.9054 16.6638 50.8426 16.5265L49.0765 11.5376C48.6575 10.392 48.05 8.87711 47.8573 7.62823C47.8573 7.56227 47.8237 7.52709 47.7923 7.52709C47.7609 7.52709 47.7295 7.56227 47.7295 7.62823C47.4883 8.48691 47.1764 9.32192 46.7972 10.1238L43.8119 17.0674Z" fill="black"/>
|
||||
<path d="M61.7565 16.2732C61.7565 17.1395 61.2894 17.6298 60.4451 17.6298C59.6008 17.6298 59.2656 17.1791 59.2656 16.4909C59.2656 15.6246 59.7538 15.1343 60.5771 15.1343C61.4004 15.1343 61.7565 15.6048 61.7565 16.2732Z" fill="black"/>
|
||||
<path d="M36.5967 16.3023C36.5967 17.1664 36.1274 17.6589 35.2852 17.6589C34.443 17.6589 34.1016 17.206 34.1016 16.5178C34.1016 15.6536 34.5897 15.1611 35.413 15.1611C36.2363 15.1611 36.5967 15.6339 36.5967 16.3023Z" fill="black"/>
|
||||
<path d="M79.7775 19.668H73.9986L72.4965 23.578H69.5039L75.5924 8.23636H78.1608L84.2493 23.578H81.2796L79.7775 19.668ZM76.8651 11.9284C76.33 13.5337 75.8523 14.8752 75.4319 15.953L74.9044 17.3175H78.8717L78.3442 15.953C77.9238 14.8676 77.4461 13.526 76.911 11.9284H76.8651Z" fill="black"/>
|
||||
<path d="M85.7288 6.9751H88.4463V16.9735H88.5036L92.7346 12.4673H96.0942L91.2211 17.6844L96.1286 23.578H92.8378L88.4922 18.4068H88.4463V23.578H85.7288V6.9751Z" fill="black"/>
|
||||
<path d="M97.3444 12.4673H100.062V23.578H97.3444V12.4673ZM97.2756 6.9751H100.131V9.92188H97.2756V6.9751Z" fill="black"/>
|
||||
<path d="M107.573 20.356C107.573 20.119 107.504 19.9241 107.366 19.7712C107.236 19.6183 107.06 19.4922 106.839 19.3928C106.617 19.2858 106.361 19.1941 106.071 19.1177C105.788 19.0412 105.49 18.9648 105.176 18.8883C104.779 18.7813 104.397 18.659 104.03 18.5214C103.663 18.3762 103.338 18.1889 103.055 17.9596C102.78 17.7303 102.558 17.4436 102.39 17.0996C102.229 16.748 102.149 16.3199 102.149 15.8154C102.149 15.1963 102.26 14.6612 102.482 14.2102C102.703 13.7515 103.001 13.3732 103.376 13.075C103.758 12.7769 104.198 12.5552 104.695 12.41C105.199 12.2648 105.73 12.1922 106.288 12.1922C106.969 12.1922 107.607 12.2495 108.203 12.3641C108.799 12.4712 109.338 12.6126 109.82 12.7884V15.0013C109.568 14.9173 109.3 14.8408 109.017 14.772C108.742 14.6956 108.459 14.6306 108.169 14.5771C107.886 14.5236 107.603 14.4815 107.32 14.451C107.038 14.4128 106.77 14.3936 106.518 14.3936C106.197 14.3936 105.925 14.4242 105.704 14.4854C105.482 14.5465 105.302 14.6306 105.165 14.7376C105.027 14.837 104.928 14.9555 104.867 15.0931C104.805 15.223 104.775 15.3606 104.775 15.5058C104.775 15.7581 104.84 15.9645 104.97 16.125C105.107 16.2855 105.295 16.4155 105.532 16.5149C105.769 16.6142 106.017 16.6983 106.277 16.7671C106.537 16.8283 106.789 16.8894 107.034 16.9506C107.416 17.0423 107.798 17.1531 108.18 17.2831C108.563 17.413 108.907 17.5965 109.212 17.8335C109.518 18.0628 109.766 18.3647 109.958 18.7393C110.156 19.1062 110.256 19.5763 110.256 20.1496C110.256 20.7764 110.137 21.323 109.9 21.7893C109.663 22.2555 109.331 22.6454 108.903 22.9588C108.482 23.2646 107.974 23.4901 107.378 23.6353C106.789 23.7882 106.139 23.8646 105.428 23.8646C104.725 23.8646 104.091 23.8073 103.525 23.6926C102.967 23.5856 102.505 23.448 102.138 23.2798V21.0898C102.734 21.3115 103.284 21.4644 103.789 21.5485C104.293 21.6249 104.763 21.6631 105.199 21.6631C105.535 21.6631 105.849 21.6402 106.139 21.5943C106.43 21.5408 106.678 21.4606 106.885 21.3535C107.099 21.2465 107.267 21.1128 107.389 20.9522C107.511 20.7841 107.573 20.5853 107.573 20.356Z" fill="black"/>
|
||||
<path d="M126.446 16.813C126.446 16.576 126.439 16.3543 126.423 16.1479C126.408 15.9416 126.381 15.7619 126.343 15.609C126.259 15.2727 126.095 15.0013 125.85 14.795C125.605 14.5886 125.261 14.4815 124.818 14.4739C124.581 14.4739 124.336 14.5083 124.084 14.5771C123.832 14.6459 123.58 14.7453 123.327 14.8752C123.083 14.9975 122.846 15.1504 122.617 15.3339C122.395 15.5097 122.192 15.7084 122.009 15.9301V23.578H119.291V16.813C119.291 16.576 119.284 16.3543 119.268 16.1479C119.253 15.9416 119.226 15.7619 119.188 15.609C119.104 15.2727 118.94 15.0013 118.695 14.795C118.458 14.5886 118.114 14.4815 117.663 14.4739C117.426 14.4739 117.182 14.5083 116.929 14.5771C116.677 14.6459 116.425 14.7453 116.173 14.8752C115.928 14.9975 115.691 15.1504 115.462 15.3339C115.24 15.5097 115.037 15.7084 114.854 15.9301V23.578H112.137V12.4673H114.384L114.636 14.0153H114.682C114.843 13.7859 115.045 13.5604 115.29 13.3388C115.534 13.1171 115.81 12.9222 116.115 12.754C116.429 12.5858 116.769 12.4521 117.136 12.3527C117.51 12.2457 117.904 12.1922 118.317 12.1922C119.051 12.1922 119.708 12.3565 120.289 12.6852C120.878 13.0062 121.325 13.5108 121.63 14.1987H121.676C121.89 13.9006 122.127 13.6292 122.387 13.3846C122.655 13.14 122.949 12.9298 123.27 12.754C123.591 12.5782 123.935 12.4406 124.302 12.3412C124.677 12.2418 125.074 12.1922 125.495 12.1922C126.29 12.1998 126.955 12.368 127.49 12.6967C128.032 13.0177 128.449 13.4611 128.739 14.0267C128.816 14.172 128.881 14.3325 128.934 14.5083C128.988 14.6765 129.03 14.8676 129.06 15.0816C129.099 15.2956 129.125 15.5326 129.141 15.7925C129.156 16.0524 129.164 16.3505 129.164 16.6869V23.578H126.446V16.813Z" fill="black"/>
|
||||
<path d="M137.408 21.6746C137.936 21.6746 138.486 21.6211 139.059 21.5141C139.633 21.4071 140.214 21.2542 140.802 21.0554V23.2225C140.451 23.3754 139.912 23.5206 139.185 23.6582C138.459 23.7958 137.706 23.8646 136.927 23.8646C136.139 23.8646 135.39 23.7652 134.679 23.5665C133.976 23.3601 133.361 23.0314 132.833 22.5804C132.306 22.1294 131.885 21.5446 131.572 20.8261C131.266 20.1076 131.113 19.2361 131.113 18.2118C131.113 17.2028 131.259 16.3199 131.549 15.5632C131.84 14.8064 132.229 14.1796 132.719 13.6827C133.208 13.1859 133.766 12.8151 134.393 12.5705C135.027 12.3183 135.681 12.1922 136.353 12.1922C137.057 12.1922 137.703 12.2992 138.291 12.5132C138.887 12.7272 139.4 13.0636 139.828 13.5222C140.263 13.9809 140.6 14.5733 140.837 15.2995C141.081 16.018 141.203 16.8703 141.203 17.8564C141.196 18.2386 141.184 18.5635 141.169 18.831H133.888C133.926 19.3432 134.041 19.7827 134.232 20.1496C134.423 20.5089 134.672 20.8032 134.977 21.0325C135.291 21.2542 135.654 21.4185 136.067 21.5255C136.479 21.6249 136.927 21.6746 137.408 21.6746ZM136.319 14.3134C135.975 14.3134 135.669 14.3784 135.402 14.5083C135.134 14.6306 134.901 14.8026 134.702 15.0243C134.511 15.2383 134.358 15.4906 134.244 15.781C134.129 16.0715 134.052 16.3811 134.014 16.7098H138.383C138.383 16.3811 138.337 16.0715 138.245 15.781C138.161 15.4906 138.031 15.2383 137.855 15.0243C137.687 14.8026 137.473 14.6306 137.213 14.5083C136.961 14.3784 136.663 14.3134 136.319 14.3134Z" fill="black"/>
|
||||
<path d="M150.044 23.5665C149.739 23.6582 149.372 23.7308 148.944 23.7843C148.523 23.8379 148.129 23.8646 147.763 23.8646C146.83 23.8646 146.066 23.7156 145.469 23.4174C144.881 23.1117 144.464 22.676 144.22 22.1103C144.044 21.7052 143.956 21.1548 143.956 20.4592V14.7032H141.88V12.4673H143.956V9.36004H146.673V12.4673H149.884V14.7032H146.673V20.1037C146.673 20.5318 146.738 20.849 146.868 21.0554C147.098 21.4071 147.552 21.5829 148.233 21.5829C148.546 21.5829 148.856 21.5599 149.161 21.5141C149.475 21.4606 149.769 21.3956 150.044 21.3191V23.5665Z" fill="black"/>
|
||||
<path d="M156.242 23.5774L162.491 8.23579H164.108L170.357 23.5774H168.327L166.493 18.9566H160.083L158.249 23.5774H156.242ZM163.282 10.6207C162.602 12.5317 161.948 14.2669 161.322 15.8263L160.748 17.271H165.828L165.255 15.8263C164.628 14.2364 163.986 12.5012 163.328 10.6207H163.282Z" fill="black"/>
|
||||
<path d="M173.74 14.1981H173.774C173.973 13.9459 174.191 13.7127 174.428 13.4987C174.672 13.277 174.944 13.0859 175.242 12.9254C175.54 12.7572 175.865 12.6273 176.217 12.5356C176.576 12.4438 176.966 12.398 177.386 12.398C177.883 12.398 178.349 12.4668 178.785 12.6044C179.221 12.742 179.599 12.9636 179.92 13.2694C180.241 13.5752 180.493 13.9765 180.677 14.4733C180.868 14.9625 180.963 15.5664 180.963 16.285V23.5774H179.186V16.5716C179.186 15.6314 179.003 14.9549 178.636 14.5421C178.277 14.1293 177.749 13.923 177.054 13.923C176.442 13.923 175.85 14.0949 175.276 14.4389C174.703 14.7753 174.21 15.2416 173.797 15.8378V23.5774H172.02V12.6846H173.396L173.74 14.1981Z" fill="black"/>
|
||||
<path d="M189.678 23.6003C189.525 23.6615 189.292 23.7188 188.979 23.7723C188.665 23.8258 188.291 23.8564 187.855 23.864C187.282 23.864 186.785 23.7914 186.364 23.6462C185.944 23.5086 185.592 23.3098 185.31 23.0499C185.034 22.7824 184.828 22.4614 184.69 22.0868C184.553 21.7122 184.484 21.2956 184.484 20.837V14.2096H182.386V12.6846H184.484V9.70344H186.261V12.6846H189.518V14.2096H186.261V20.5618C186.261 20.8141 186.296 21.0472 186.364 21.2612C186.441 21.4753 186.556 21.6626 186.708 21.8231C186.869 21.976 187.072 22.0983 187.316 22.19C187.561 22.2741 187.855 22.3161 188.199 22.3161C188.436 22.3161 188.684 22.297 188.944 22.2588C189.212 22.2206 189.456 22.1709 189.678 22.1097V23.6003Z" fill="black"/>
|
||||
<path d="M191.743 23.5774V12.6846H193.52V23.5774H191.743ZM191.697 10.1506V8.16699H193.566V10.1506H191.697Z" fill="black"/>
|
||||
<path d="M196.272 17.0303H201.329V18.6928H196.272V17.0303Z" fill="black"/>
|
||||
<path d="M205.113 15.5855C205.113 15.8837 205.178 16.1283 205.308 16.3194C205.438 16.5105 205.61 16.6672 205.824 16.7895C206.045 16.9041 206.298 16.9997 206.581 17.0761C206.871 17.1526 207.169 17.2214 207.475 17.2825C207.895 17.3742 208.293 17.4774 208.667 17.5921C209.042 17.6991 209.386 17.8635 209.699 18.0851C210.02 18.3068 210.276 18.6088 210.468 18.991C210.666 19.3655 210.766 19.8547 210.766 20.4586C210.766 21.009 210.659 21.4982 210.445 21.9263C210.231 22.3467 209.929 22.7021 209.539 22.9926C209.149 23.2754 208.683 23.4895 208.14 23.6347C207.597 23.7876 207.001 23.864 206.351 23.864C205.954 23.864 205.591 23.8411 205.262 23.7952C204.941 23.757 204.654 23.7035 204.402 23.6347C204.157 23.5736 203.947 23.5086 203.771 23.4398C203.596 23.371 203.45 23.306 203.336 23.2449V21.7543C203.794 21.9377 204.249 22.083 204.7 22.19C205.151 22.297 205.648 22.3505 206.191 22.3505C206.619 22.3505 207.005 22.3123 207.349 22.2359C207.693 22.1594 207.987 22.0486 208.232 21.9033C208.484 21.7505 208.675 21.5632 208.805 21.3415C208.943 21.1122 209.011 20.8485 209.011 20.5503C209.011 20.2446 208.95 19.9923 208.828 19.7936C208.706 19.5948 208.541 19.4305 208.335 19.3005C208.128 19.1706 207.888 19.0636 207.612 18.9795C207.345 18.8954 207.062 18.819 206.764 18.7502C206.374 18.6661 205.977 18.5667 205.571 18.4521C205.174 18.3374 204.811 18.1769 204.482 17.9705C204.154 17.7641 203.886 17.4851 203.68 17.1335C203.481 16.7742 203.381 16.3155 203.381 15.7575C203.381 15.1842 203.485 14.6874 203.691 14.2669C203.897 13.8465 204.176 13.4987 204.528 13.2235C204.88 12.9483 205.289 12.742 205.755 12.6044C206.221 12.4668 206.714 12.398 207.234 12.398C207.838 12.398 208.396 12.4553 208.908 12.57C209.428 12.6846 209.898 12.8299 210.318 13.0057V14.5192C209.86 14.3434 209.394 14.202 208.92 14.0949C208.453 13.9803 207.972 13.9191 207.475 13.9115C207.054 13.9115 206.695 13.9535 206.397 14.0376C206.099 14.1217 205.854 14.2402 205.663 14.3931C205.472 14.5383 205.331 14.7141 205.239 14.9205C205.155 15.1192 205.113 15.3409 205.113 15.5855Z" fill="black"/>
|
||||
<path d="M220.787 18.0278C220.787 17.3934 220.719 16.8239 220.581 16.3194C220.451 15.8149 220.252 15.3868 219.985 15.0352C219.717 14.6759 219.389 14.4007 218.999 14.2096C218.609 14.0185 218.158 13.923 217.646 13.923C217.279 13.923 216.942 13.9726 216.637 14.072C216.339 14.1714 216.067 14.2975 215.823 14.4504C215.578 14.6033 215.368 14.7676 215.192 14.9434C215.016 15.1192 214.875 15.276 214.768 15.4135V21.1122C215.142 21.4944 215.567 21.7963 216.04 22.018C216.522 22.2397 217.038 22.3505 217.588 22.3505C217.925 22.3505 218.28 22.2894 218.655 22.1671C219.029 22.0371 219.373 21.8116 219.687 21.4906C220.008 21.1619 220.271 20.7185 220.478 20.1605C220.684 19.6025 220.787 18.8916 220.787 18.0278ZM222.645 18.0049C222.645 18.7616 222.568 19.4343 222.416 20.0229C222.27 20.6039 222.075 21.1122 221.831 21.5479C221.586 21.9836 221.3 22.3505 220.971 22.6486C220.642 22.9391 220.302 23.1761 219.95 23.3595C219.599 23.5353 219.24 23.6615 218.873 23.7379C218.513 23.822 218.173 23.864 217.852 23.864C217.187 23.864 216.61 23.757 216.121 23.543C215.632 23.3213 215.192 22.9964 214.802 22.5684H214.768V28.9091H212.99V12.6846H214.332L214.71 13.923H214.745C214.844 13.7701 214.97 13.621 215.123 13.4758C215.284 13.3305 215.494 13.1777 215.754 13.0171C216.021 12.849 216.339 12.7037 216.706 12.5814C217.08 12.4591 217.485 12.398 217.921 12.398C218.532 12.398 219.121 12.5012 219.687 12.7076C220.26 12.9139 220.764 13.2426 221.2 13.6936C221.636 14.1446 221.984 14.7256 222.244 15.4365C222.511 16.1397 222.645 16.9959 222.645 18.0049Z" fill="black"/>
|
||||
<path d="M231.371 22.3734H231.325C231.18 22.5569 230.997 22.7404 230.775 22.9238C230.553 23.0996 230.297 23.2602 230.007 23.4054C229.716 23.543 229.399 23.6538 229.055 23.7379C228.711 23.822 228.344 23.864 227.954 23.864C227.427 23.864 226.941 23.7838 226.498 23.6232C226.062 23.4704 225.684 23.2449 225.363 22.9468C225.049 22.641 224.805 22.2703 224.629 21.8345C224.453 21.3988 224.365 20.9058 224.365 20.3554C224.365 19.8127 224.461 19.3273 224.652 18.8992C224.851 18.4712 225.126 18.1081 225.478 17.81C225.829 17.5118 226.25 17.2825 226.739 17.122C227.236 16.9615 227.782 16.8812 228.378 16.8812C228.944 16.8888 229.468 16.9385 229.949 17.0303C230.431 17.122 230.859 17.2366 231.233 17.3742H231.279V16.6175C231.279 16.3194 231.26 16.0556 231.222 15.8263C231.184 15.597 231.119 15.3944 231.027 15.2186C230.828 14.8517 230.511 14.5498 230.075 14.3128C229.64 14.0682 229.051 13.9459 228.31 13.9459C227.759 13.9459 227.239 13.9994 226.75 14.1064C226.269 14.2058 225.787 14.3472 225.306 14.5307V13.0401C225.489 12.9483 225.703 12.8643 225.948 12.7878C226.2 12.7037 226.464 12.6349 226.739 12.5814C227.014 12.5203 227.304 12.4744 227.61 12.4438C227.916 12.4133 228.222 12.398 228.527 12.398C229.628 12.398 230.526 12.5929 231.222 12.9827C231.925 13.3726 232.43 13.8886 232.736 14.5307C232.85 14.7753 232.93 15.0466 232.976 15.3447C233.03 15.6352 233.057 15.9563 233.057 16.3079V23.5774H231.566L231.371 22.3734ZM231.279 18.796C230.951 18.7043 230.561 18.6164 230.11 18.5323C229.659 18.4482 229.162 18.4024 228.619 18.3947C227.862 18.3947 227.27 18.5552 226.842 18.8763C226.414 19.1973 226.2 19.6904 226.2 20.3554C226.2 20.6918 226.253 20.9861 226.36 21.2383C226.467 21.4906 226.613 21.7008 226.796 21.8689C226.987 22.0295 227.209 22.1518 227.461 22.2359C227.721 22.3123 227.996 22.3505 228.287 22.3505C228.669 22.3505 229.024 22.297 229.353 22.19C229.682 22.0753 229.972 21.9416 230.224 21.7887C230.484 21.6358 230.702 21.4829 230.878 21.33C231.061 21.1772 231.195 21.0587 231.279 20.9746V18.796Z" fill="black"/>
|
||||
<path d="M244.936 23.5774H243.159V16.5716C243.159 16.0977 243.105 15.6964 242.998 15.3677C242.899 15.0313 242.75 14.7562 242.551 14.5421C242.36 14.3281 242.127 14.1714 241.852 14.072C241.584 13.9726 241.282 13.923 240.946 13.923C240.311 13.923 239.734 14.0949 239.214 14.4389C238.695 14.7753 238.228 15.2416 237.815 15.8378V23.5774H236.038V12.6846H237.414L237.758 14.1981H237.793C237.991 13.9459 238.205 13.7127 238.435 13.4987C238.672 13.277 238.931 13.0859 239.214 12.9254C239.505 12.7572 239.822 12.6273 240.166 12.5356C240.51 12.4438 240.885 12.398 241.29 12.398C242.1 12.398 242.773 12.5929 243.308 12.9827C243.843 13.3726 244.256 13.9038 244.546 14.5765H244.592C245.073 13.8962 245.624 13.3649 246.243 12.9827C246.862 12.5929 247.585 12.398 248.41 12.398C248.792 12.398 249.197 12.4515 249.625 12.5585C250.054 12.6655 250.447 12.8643 250.807 13.1547C251.166 13.4376 251.464 13.8312 251.701 14.3357C251.938 14.8402 252.056 15.49 252.056 16.285V23.5774H250.291V16.5716C250.291 16.0977 250.237 15.6964 250.13 15.3677C250.031 15.0313 249.882 14.7562 249.683 14.5421C249.492 14.3281 249.259 14.1714 248.983 14.072C248.716 13.9726 248.414 13.923 248.078 13.923C247.443 13.923 246.862 14.0949 246.335 14.4389C245.815 14.7753 245.349 15.2416 244.936 15.8378V23.5774Z" fill="black"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 21 KiB |
@@ -0,0 +1,3 @@
|
||||
<svg width="14" height="17" viewBox="0 0 14 17" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M9.3584 2.68018C9.85059 2.08545 10.1992 1.26514 10.1992 0.444824C10.1992 0.332031 10.189 0.219238 10.1685 0.126953C9.36865 0.157715 8.39453 0.660156 7.82031 1.33691C7.35889 1.85986 6.93848 2.68018 6.93848 3.51074C6.93848 3.63379 6.95898 3.75684 6.96924 3.79785C7.02051 3.80811 7.10254 3.81836 7.18457 3.81836C7.9126 3.81836 8.8252 3.33643 9.3584 2.68018ZM9.92236 3.99268C8.7124 3.99268 7.72803 4.73096 7.10254 4.73096C6.43604 4.73096 5.5542 4.03369 4.49805 4.03369C2.49854 4.03369 0.478516 5.69482 0.478516 8.80176C0.478516 10.75 1.22705 12.7905 2.1499 14.1133C2.94971 15.231 3.64697 16.1538 4.6416 16.1538C5.63623 16.1538 6.06689 15.4873 7.29736 15.4873C8.54834 15.4873 8.83545 16.1333 9.92236 16.1333C11.0093 16.1333 11.7373 15.1387 12.4141 14.1543C13.1831 13.0264 13.501 11.9395 13.5112 11.8779C13.4497 11.8574 11.3682 11.0166 11.3682 8.6377C11.3682 6.57666 13.0088 5.66406 13.1011 5.59229C12.0244 4.03369 10.3838 3.99268 9.92236 3.99268Z" fill="black"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.0 KiB |
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 27.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 42 28.9" style="enable-background:new 0 0 42 28.9;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill-rule:evenodd;clip-rule:evenodd;}
|
||||
</style>
|
||||
<path class="st0" d="M10.2,8.7c-0.1,0-0.3,0-0.4,0C4.4,8.7,0,13.2,0,18.8s4.4,10.1,9.8,10.1l0.1,0h23.7l0,0c4.6,0,8.4-3.9,8.4-8.7
|
||||
c0-4.3-3-7.9-7-8.5l0-0.1C35,5.2,29.4,0,22.4,0C16.5,0,11.6,3.7,10.2,8.7L10.2,8.7z M31,15l0-3.4l0-0.1c0-3.9-3.5-7.6-8.7-7.6
|
||||
c-4.3,0-7.5,2.7-8.4,5.8l-0.8,3L10,12.6c-0.1,0-0.2,0-0.2,0c-3.1,0-5.9,2.6-5.9,6.2c0,3.5,2.7,6.2,5.9,6.2l0.1,0h23.7l0,0
|
||||
c2.4,0,4.5-2,4.5-4.7c0-2.4-1.7-4.3-3.7-4.7L31,15z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 856 B |
|
After Width: | Height: | Size: 190 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 3.9 KiB |
@@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 27.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 36 36" style="enable-background:new 0 0 36 36;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:#FFFFFF;stroke:#FFFFFF;stroke-width:2;}
|
||||
.st1{clip-path:url(#SVGID_00000131361309518468547900000009062464345318814348_);}
|
||||
.st2{fill:#F6F7F7;filter:url(#Adobe_OpacityMaskFilter);}
|
||||
.st3{mask:url(#mask0_2900_10877_00000159448472586931246160000013733448166778715831_);}
|
||||
.st4{fill:#F0F2EB;}
|
||||
.st5{fill-rule:evenodd;clip-rule:evenodd;fill:#646970;}
|
||||
</style>
|
||||
<circle class="st0" cx="18" cy="18" r="17"/>
|
||||
<g>
|
||||
<defs>
|
||||
<rect id="SVGID_1_" width="36" height="36"/>
|
||||
</defs>
|
||||
<clipPath id="SVGID_00000143603845024951162640000013916798552048052664_">
|
||||
<use xlink:href="#SVGID_1_" style="overflow:visible;"/>
|
||||
</clipPath>
|
||||
<g style="clip-path:url(#SVGID_00000143603845024951162640000013916798552048052664_);">
|
||||
<defs>
|
||||
<filter id="Adobe_OpacityMaskFilter" filterUnits="userSpaceOnUse" x="0" y="0" width="36" height="36">
|
||||
<feColorMatrix type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"/>
|
||||
</filter>
|
||||
</defs>
|
||||
|
||||
<mask maskUnits="userSpaceOnUse" x="0" y="0" width="36" height="36" id="mask0_2900_10877_00000159448472586931246160000013733448166778715831_">
|
||||
<circle class="st2" cx="18" cy="18" r="18"/>
|
||||
</mask>
|
||||
<g class="st3">
|
||||
<circle class="st4" cx="18" cy="18" r="18"/>
|
||||
<path class="st5" d="M12.7,23c-1.2-1.3-2-3.1-2-5c0-4,3.3-7.3,7.3-7.3s7.3,3.3,7.3,7.3c0,1.9-0.7,3.7-2,5v-0.5
|
||||
c0-1.7-1.4-3.1-3.1-3.1h-4.5c-1.7,0-3.1,1.4-3.1,3.1V23z M14.3,24.3c1.1,0.6,2.3,1,3.7,1s2.6-0.4,3.7-1v-1.8
|
||||
c0-0.8-0.6-1.4-1.4-1.4h-4.5c-0.8,0-1.4,0.6-1.4,1.4V24.3z M9,18c0-5,4-9,9-9s9,4,9,9s-4,9-9,9S9,23,9,18z M20.2,15.8
|
||||
c0,1.2-1,2.2-2.2,2.2s-2.2-1-2.2-2.2s1-2.2,2.2-2.2S20.2,14.5,20.2,15.8z"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 24 KiB |
@@ -0,0 +1,3 @@
|
||||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.0083 0C4.47395 0 0 4.58332 0 10.2535C0 14.786 2.86662 18.6226 6.84337 19.9805C7.34057 20.0826 7.52269 19.7599 7.52269 19.4885C7.52269 19.2508 7.5063 18.436 7.5063 17.5871C4.72224 18.1983 4.14249 16.3648 4.14249 16.3648C3.69507 15.1764 3.03214 14.871 3.03214 14.871C2.12092 14.2428 3.09852 14.2428 3.09852 14.2428C4.1093 14.3107 4.63969 15.2954 4.63969 15.2954C5.53431 16.857 6.97592 16.4158 7.55588 16.1442C7.63864 15.482 7.90393 15.0237 8.18562 14.7691C5.96514 14.5315 3.62891 13.6487 3.62891 9.71017C3.62891 8.58976 4.02633 7.67309 4.65608 6.96018C4.55672 6.7056 4.20866 5.65289 4.75563 4.24394C4.75563 4.24394 5.60069 3.97227 7.50609 5.29644C8.32187 5.072 9.16316 4.95781 10.0083 4.95686C10.8533 4.95686 11.7148 5.07581 12.5102 5.29644C14.4159 3.97227 15.2609 4.24394 15.2609 4.24394C15.8079 5.65289 15.4596 6.7056 15.3602 6.96018C16.0066 7.67309 16.3876 8.58976 16.3876 9.71017C16.3876 13.6487 14.0514 14.5144 11.8143 14.7691C12.1789 15.0916 12.4936 15.7026 12.4936 16.6704C12.4936 18.0454 12.4772 19.1489 12.4772 19.4883C12.4772 19.7599 12.6596 20.0826 13.1566 19.9808C17.1334 18.6224 20 14.786 20 10.2535C20.0163 4.58332 15.526 0 10.0083 0Z" fill="#24292F"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.3 KiB |
@@ -0,0 +1 @@
|
||||
<svg class="social-icons social-icons__google social-icons--enabled" width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M19.6 10.227c0-.709-.064-1.39-.182-2.045H10v3.868h5.382a4.6 4.6 0 0 1-1.996 3.018v2.51h3.232c1.891-1.742 2.982-4.305 2.982-7.35z" fill="#4285F4"></path><path d="M10 20c2.7 0 4.964-.895 6.618-2.423l-3.232-2.509c-.895.6-2.04.955-3.386.955-2.605 0-4.81-1.76-5.595-4.123H1.064v2.59A9.996 9.996 0 0 0 10 20z" fill="#34A853"></path><path d="M4.405 11.9c-.2-.6-.314-1.24-.314-1.9 0-.66.114-1.3.314-1.9V5.51H1.064A9.996 9.996 0 0 0 0 10c0 1.614.386 3.14 1.064 4.49l3.34-2.59z" fill="#FBBC05"></path><path d="M10 3.977c1.468 0 2.786.505 3.823 1.496l2.868-2.868C14.959.99 12.695 0 10 0 6.09 0 2.71 2.24 1.064 5.51l3.34 2.59C5.192 5.736 7.396 3.977 10 3.977z" fill="#EA4335"></path></g></svg>
|
||||
|
After Width: | Height: | Size: 873 B |
@@ -0,0 +1,17 @@
|
||||
<svg width="380" height="183" viewBox="0 0 380 183" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g opacity="0.75" filter="url(#filter0_f_5953_11924)">
|
||||
<path d="M360 -60C360 7.93102 304.931 63 237 63C169.069 63 114 7.93102 114 -60C114 -127.931 169.069 -183 237 -183C304.931 -183 360 -127.931 360 -60Z" fill="url(#paint0_linear_5953_11924)"/>
|
||||
</g>
|
||||
<defs>
|
||||
<filter id="filter0_f_5953_11924" x="-6" y="-303" width="486" height="486" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
||||
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
||||
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
|
||||
<feGaussianBlur stdDeviation="60" result="effect1_foregroundBlur_5953_11924"/>
|
||||
</filter>
|
||||
<linearGradient id="paint0_linear_5953_11924" x1="360" y1="-60" x2="114" y2="-60" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#48FF50"/>
|
||||
<stop offset="0.471846" stop-color="#108642"/>
|
||||
<stop offset="1" stop-color="#2E38FA"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 990 B |
@@ -0,0 +1,10 @@
|
||||
<svg width="105" height="105" viewBox="0 0 105 105" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect x="0.190476" y="0.19043" width="103.91" height="104" rx="12.1905" fill="#2C3338"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.1456 33.3356C32.1456 32.6707 32.6857 32.1306 33.3506 32.1306H60.9406C61.6055 32.1306 62.1456 32.6707 62.1456 33.3356V36.1306H64.1456V33.3356C64.1456 31.5661 62.7101 30.1306 60.9406 30.1306H33.3506C31.5812 30.1306 30.1456 31.5661 30.1456 33.3356V60.9256C30.1456 62.6951 31.5812 64.1306 33.3506 64.1306H36.1456V62.1306H33.3506C32.6857 62.1306 32.1456 61.5905 32.1456 60.9256V33.3356Z" fill="white"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M37.1456 38.3356C37.1456 37.6701 37.6851 37.1306 38.3506 37.1306H65.9406C66.6061 37.1306 67.1456 37.6701 67.1456 38.3356V41.1306H69.1456V38.3356C69.1456 36.5655 67.7107 35.1306 65.9406 35.1306H38.3506C36.5806 35.1306 35.1456 36.5655 35.1456 38.3356V65.9256C35.1456 67.6957 36.5806 69.1306 38.3506 69.1306H41.1456V67.1306H38.3506C37.6851 67.1306 37.1456 66.5911 37.1456 65.9256V38.3356Z" fill="white"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M43.3506 42.1306C42.6851 42.1306 42.1456 42.6701 42.1456 43.3356V70.9256C42.1456 71.5911 42.6851 72.1306 43.3506 72.1306H70.9406C71.6061 72.1306 72.1456 71.5911 72.1456 70.9256V43.3356C72.1456 42.6701 71.6061 42.1306 70.9406 42.1306H43.3506ZM40.1456 43.3356C40.1456 41.5655 41.5805 40.1306 43.3506 40.1306H70.9406C72.7107 40.1306 74.1456 41.5655 74.1456 43.3356V70.9256C74.1456 72.6957 72.7107 74.1306 70.9406 74.1306H43.3506C41.5805 74.1306 40.1456 72.6957 40.1456 70.9256V43.3356Z" fill="white"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M66.7775 63.5483H47.1456V61.7073H66.7775V63.5483Z" fill="white"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M47.1456 51.2786H66.7775V53.1195H47.1456V51.2786Z" fill="white"/>
|
||||
<path d="M60.029 65.6962C61.7236 65.6962 63.0973 64.3224 63.0973 62.6279C63.0973 60.9333 61.7236 59.5596 60.029 59.5596C58.3344 59.5596 56.9607 60.9333 56.9607 62.6279C56.9607 64.3224 58.3344 65.6962 60.029 65.6962Z" fill="white"/>
|
||||
<path d="M53.8941 55.2672C55.5887 55.2672 56.9624 53.8935 56.9624 52.1989C56.9624 50.5043 55.5887 49.1306 53.8941 49.1306C52.1996 49.1306 50.8258 50.5043 50.8258 52.1989C50.8258 53.8935 52.1996 55.2672 53.8941 55.2672Z" fill="white"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.3 KiB |
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 27.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 32 32" style="enable-background:new 0 0 32 32;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{clip-path:url(#SVGID_00000115494289508776443440000006419494924222942340_);}
|
||||
.st1{stroke:#FFFFFF;stroke-width:2;}
|
||||
.st2{fill:#FFFFFF;}
|
||||
</style>
|
||||
<g>
|
||||
<defs>
|
||||
<rect id="SVGID_1_" x="0" y="0" width="32" height="32"/>
|
||||
</defs>
|
||||
<clipPath id="SVGID_00000114031482566589492640000009417605807093364883_">
|
||||
<use xlink:href="#SVGID_1_" style="overflow:visible;"/>
|
||||
</clipPath>
|
||||
<g style="clip-path:url(#SVGID_00000114031482566589492640000009417605807093364883_);">
|
||||
<path class="st1" d="M16,33c9.4,0,17-7.6,17-17c0-9.4-7.6-17-17-17C6.6-1-1,6.6-1,16C-1,25.4,6.6,33,16,33z"/>
|
||||
<path class="st2" d="M16.8,13.3v15.5l8-15.5H16.8z"/>
|
||||
<path class="st2" d="M15.2,18.7V3.2l-8,15.5H15.2z"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.0 KiB |
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 27.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 32 32" style="enable-background:new 0 0 32 32;fill:#C4C4C4" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{clip-path:url(#SVGID_00000115494289508776443440000006419494924222942340_);}
|
||||
.st1{stroke:#FFFFFF;stroke-width:2;}
|
||||
.st2{fill:#FFFFFF;}
|
||||
</style>
|
||||
<g>
|
||||
<defs>
|
||||
<rect id="SVGID_1_" x="0" y="0" width="32" height="32"/>
|
||||
</defs>
|
||||
<clipPath id="SVGID_00000114031482566589492640000009417605807093364883_">
|
||||
<use xlink:href="#SVGID_1_" style="overflow:visible;"/>
|
||||
</clipPath>
|
||||
<g style="clip-path:url(#SVGID_00000114031482566589492640000009417605807093364883_);">
|
||||
<path class="st1" d="M16,33c9.4,0,17-7.6,17-17c0-9.4-7.6-17-17-17C6.6-1-1,6.6-1,16C-1,25.4,6.6,33,16,33z"/>
|
||||
<path class="st2" d="M16.8,13.3v15.5l8-15.5H16.8z"/>
|
||||
<path class="st2" d="M15.2,18.7V3.2l-8,15.5H15.2z"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 123 KiB |
|
After Width: | Height: | Size: 122 KiB |
|
After Width: | Height: | Size: 8.8 KiB |
|
After Width: | Height: | Size: 3.8 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 8.9 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 190 KiB |
@@ -0,0 +1,3 @@
|
||||
<svg width="22" height="26" viewBox="0 0 22 26" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.1538 1L21.3077 5.45957V12.1076C21.3077 17.7747 17.5408 23.1405 12.2289 24.8332C11.531 25.0556 10.7767 25.0556 10.0787 24.8332C4.76694 23.1405 1 17.7747 1 12.1076V5.45957L11.1538 1Z" stroke="#A7AAAD"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 357 B |
@@ -0,0 +1,5 @@
|
||||
<svg width="21" height="24" viewBox="0 0 21 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.1538 0L20.3077 4.45957V11.1076C20.3077 16.7747 16.5408 22.1405 11.2289 23.8332C10.531 24.0556 9.77674 24.0556 9.07875 23.8332C3.76694 22.1405 0 16.7747 0 11.1076V4.45957L10.1538 0Z" fill="#A7AAAD"/>
|
||||
<rect x="8.63086" y="15.5" width="3.04615" height="3" rx="1.5" fill="white"/>
|
||||
<path d="M8.69834 7.06333C8.66178 6.48729 9.11913 6 9.69633 6H10.6115C11.1887 6 11.6461 6.48729 11.6095 7.06333L11.2288 13.0633C11.1953 13.59 10.7585 14 10.2308 14H10.0771C9.54941 14 9.11253 13.59 9.07911 13.0633L8.69834 7.06333Z" fill="white"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 679 B |
@@ -0,0 +1,4 @@
|
||||
<svg width="21" height="23" viewBox="0 0 21 23" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.3077 0.541687L19.6154 4.62962V10.7237C19.6154 15.9185 16.1624 20.8371 11.2932 22.3888C10.6534 22.5927 9.96201 22.5927 9.32218 22.3888C4.45303 20.8371 1 15.9185 1 10.7237V4.62962L10.3077 0.541687Z" fill="white" stroke="#00A32A" stroke-width="0.916667" stroke-dasharray="3.67 0.92"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.1708 8.28525L9.23134 16.1521L5.46863 13.3968L6.30169 12.2933L8.94402 14.2283L14.0504 7.46481L15.1708 8.28525Z" fill="#069E08"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 619 B |
@@ -0,0 +1,4 @@
|
||||
<svg width="21" height="25" viewBox="0 0 21 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.1538 0.5L20.3077 4.95957V11.6076C20.3077 17.2747 16.5408 22.6405 11.2289 24.3332C10.531 24.5556 9.77674 24.5556 9.07875 24.3332C3.76694 22.6405 0 17.2747 0 11.6076V4.95957L10.1538 0.5Z" fill="#069E08"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.4591 8.94752L8.97971 17.5296L4.87493 14.5237L5.78373 13.32L8.66627 15.4308L14.2369 8.05249L15.4591 8.94752Z" fill="white"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 536 B |
|
After Width: | Height: | Size: 112 KiB |
|
After Width: | Height: | Size: 127 KiB |
|
After Width: | Height: | Size: 277 KiB |
@@ -0,0 +1 @@
|
||||
<svg width="110" height="18" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#a)" fill="#000"><path d="M79.42 9.335c0-.484.523-.672 1.085-.672.908 0 1.769.282 1.769.282V7.628c-.59-.174-1.193-.241-1.89-.241-1.528 0-2.6.725-2.6 1.908 0 2.299 3.162 1.708 3.162 2.823 0 .551-.495.7-1.218.7-.51 0-1.327-.2-1.916-.406v1.304c.49.195 1.18.378 1.862.378 1.487 0 2.907-.444 2.907-2.043 0-2.218-3.162-1.64-3.162-2.715l.001-.001Zm8.337 1.345c0-1.491.817-2.003 1.783-2.003.643 0 1.32.19 1.774.364V7.696c-.536-.174-1.01-.31-1.802-.31-2.104 0-3.404 1.291-3.404 3.375 0 1.975.938 3.333 3.31 3.333.75 0 1.333-.148 1.976-.364v-1.317c-.723.282-1.279.39-1.775.39-1.044 0-1.862-.484-1.862-2.124v.001ZM42.273 8.596h-.054V7.548h-1.474v6.384h1.581v-3.804c.496-.94 1.099-1.25 2.105-1.25h.16V7.494s-.227-.027-.428-.027c-.858 0-1.448.336-1.89 1.13Zm19.837 0h-.053V7.548h-1.474v6.384h1.58v-3.804c.497-.94 1.1-1.25 2.105-1.25h.16V7.494s-.227-.027-.428-.027c-.857 0-1.447.336-1.889 1.13Zm45.76-1.21c-.682 0-1.46.377-2.171.848l-.187.12c-.335-.712-1.005-.967-1.742-.967-.683 0-1.461.35-2.171.82v-.66h-1.501v6.385h1.594V9.35c.59-.39 1.219-.632 1.676-.632.523 0 .844.282.844 1.183v4.032h1.581v-4.57c.59-.39 1.219-.645 1.676-.645.523 0 .845.282.845 1.183v4.032h1.581V9.524c0-1.237-.738-2.137-2.024-2.137h-.001Zm-12.262 5.431c-1.032 0-1.58-.671-1.58-2.07 0-1.398.548-2.07 1.58-2.07s1.568.673 1.568 2.07c0 1.398-.536 2.07-1.568 2.07Zm0-5.43c-2.184 0-3.216 1.411-3.216 3.36 0 1.95 1.032 3.347 3.216 3.347s3.216-1.399 3.216-3.347-1.045-3.36-3.216-3.36ZM73.664 9.336c0-.484.523-.672 1.086-.672.907 0 1.768.282 1.768.282V7.63c-.59-.174-1.193-.241-1.889-.241-1.527 0-2.6.725-2.6 1.908 0 2.299 3.163 1.708 3.163 2.823 0 .551-.496.7-1.22.7-.508 0-1.325-.2-1.915-.406v1.304c.491.195 1.178.378 1.862.378 1.487 0 2.908-.444 2.908-2.043 0-2.218-3.163-1.64-3.163-2.715v-.001Zm-6.86.7c.094-.887.576-1.452 1.366-1.452.845 0 1.099.673 1.099 1.452h-2.466Zm1.38-2.648c-2.037 0-3.096 1.586-3.096 3.32 0 2.38 1.245 3.387 3.267 3.387.817 0 1.523-.109 2.347-.363v-1.32c-.664.244-1.263.391-1.905.391-1.178 0-1.967-.323-2.008-1.72h4.074c.027-.256.054-.497.054-.94 0-1.345-.71-2.756-2.734-2.756ZM56.3 9.483h-1.254V6.257H56.3c1.019 0 1.527.564 1.527 1.573s-.469 1.653-1.527 1.653Zm-.013-4.556h-2.928v9.004h1.688V10.8h1.24c1.916 0 3.31-1.035 3.31-2.97 0-1.935-1.394-2.903-3.31-2.903ZM49.82 12.09c-.51.47-.992.725-1.5.725-.871 0-1.435-.578-1.435-1.935 0-1.465.697-2.231 1.903-2.231.375 0 .764.094 1.032.202v3.239Zm0-4.557c-.47-.094-.805-.149-1.193-.149-2.184 0-3.377 1.466-3.377 3.603 0 2.137 1.193 3.105 2.6 3.105.697 0 1.54-.323 2.05-.753v.591h1.5V4.926h-1.58v2.608Zm-13.565 5.282c-1.031 0-1.58-.671-1.58-2.07 0-1.398.549-2.07 1.58-2.07 1.032 0 1.569.673 1.569 2.07 0 1.397-.537 2.07-1.569 2.07Zm0-5.43c-2.184 0-3.216 1.41-3.216 3.36s1.032 3.347 3.216 3.347c2.185 0 3.216-1.399 3.216-3.347s-1.044-3.36-3.215-3.36Zm47.372 6.545h1.587v-1.64h-1.587v1.64ZM31.608 4.926 29.82 11.82 28.03 4.926h-1.805l.42 1.477-1.575 5.65-1.712-7.128H21.62l2.441 9.005h1.892l1.462-4.815 1.37 4.815h1.892l2.563-9.005h-1.634.001ZM8.973 0C4.025 0 0 4.037 0 9s4.025 9 8.973 9 8.973-4.038 8.973-9-4.026-9-8.973-9ZM.906 9c0-1.173.25-2.287.698-3.293l3.849 10.575A8.095 8.095 0 0 1 .906 9Zm8.067 8.092a8.052 8.052 0 0 1-2.28-.329l2.42-7.055 2.48 6.814c.017.04.037.076.059.112a8.02 8.02 0 0 1-2.68.458Zm1.111-11.885a16 16 0 0 0 .924-.077c.435-.052.383-.693-.051-.667 0 0-1.307.103-2.15.103-.793 0-2.126-.103-2.126-.103-.435-.026-.485.64-.051.667 0 0 .411.052.846.077L8.733 8.66l-1.766 5.311L4.03 5.206c.486-.026.924-.077.924-.077.434-.052.383-.693-.052-.667 0 0-1.306.103-2.15.103-.151 0-.33-.004-.519-.01A8.049 8.049 0 0 1 14.42 3.033c-.035-.003-.069-.007-.105-.007-.792 0-1.355.693-1.355 1.436 0 .667.384 1.231.792 1.897.307.54.666 1.232.666 2.232 0 .692-.266 1.496-.614 2.615l-.806 2.697-2.915-8.698.002.002Zm5.967-.088a8.077 8.077 0 0 1 .989 3.882 8.09 8.09 0 0 1-4.012 6.994l2.464-7.146c.461-1.155.614-2.078.614-2.9 0-.297-.02-.573-.055-.831v.001Z"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h109.895v18H0z"/></clipPath></defs></svg>
|
||||
|
After Width: | Height: | Size: 4.0 KiB |
@@ -0,0 +1 @@
|
||||
<?php return array('dependencies' => array('jetpack-connection', 'jetpack-script-data', 'react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-url', 'wp-warning'), 'version' => '56e31b72cf51b5cbe5e6');
|
||||
@@ -0,0 +1 @@
|
||||
.admin-ui-page{background-color:var(--wpds-color-bg-surface-neutral-strong,#fff);color:var(--wpds-color-fg-content-neutral,#1e1e1e);display:flex;flex-flow:column;height:100%;position:relative;text-wrap:pretty;z-index:1}.admin-ui-page__header{background:var(--wpds-color-bg-surface-neutral-strong,#fff);border-bottom:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral-weak,#e0e0e0);padding:var(--wpds-dimension-padding-md,12px) var(--wpds-dimension-padding-2xl,24px);position:sticky;top:0;z-index:1}.admin-ui-page__header-title{font-family:var(--wpds-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-font-size-lg,15px);font-weight:var(--wpds-font-weight-medium,499);line-height:var(--wpds-font-line-height-lg,28px);margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-ui-page__sidebar-toggle-slot:empty{display:none}.admin-ui-page__header-subtitle{color:var(--wpds-color-fg-content-neutral-weak,#6d6d6d);font-size:var(--wpds-font-size-md,13px);line-height:var(--wpds-font-line-height-md,24px);margin:0;padding-block-end:var(--wpds-dimension-padding-xs,4px)}.admin-ui-page__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto}.admin-ui-page__content.has-padding{padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px)}.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon{padding:0 var(--wpds-dimension-padding-xs,4px);width:auto}.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon svg{display:none}.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon:after{content:attr(aria-label);font-size:var(--wpds-font-size-sm,12px)}.admin-ui-breadcrumbs__list{font-family:var(--wpds-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-font-size-lg,15px);font-weight:var(--wpds-font-weight-medium,499);gap:0;line-height:var(--wpds-font-line-height-lg,28px);list-style:none;margin:0;min-height:32px;padding:0}.admin-ui-breadcrumbs__list li:not(:last-child):after{content:"/";margin:0 8px}.admin-ui-breadcrumbs__list h1{font-size:inherit;line-height:inherit}.jetpack-footer{border-top:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral-weak,#e0e0e0);box-sizing:border-box;font-size:var(--wpds-font-size-md,13px);padding:var(--wpds-dimension-padding-xl) var(--wpds-dimension-padding-2xl);width:100%}.jetpack-footer .jetpack-footer__menu-item:any-link,.jetpack-footer .jetpack-footer__menu-item[role=button]{color:var(--wpds-color-fg-interactive-neutral-weak);cursor:pointer;text-decoration:none}.jetpack-footer .jetpack-footer__menu-item:hover{text-decoration:underline}.jetpack-footer>ul{list-style:none;margin:0;padding:0}.jetpack-footer>ul>li{margin:0}.jetpack-footer__logo{flex-shrink:0}@media(min-width:480px){a.jetpack-footer__a8c{margin-inline-start:auto}}a.jetpack-footer__a8c svg{fill:var(--wpds-color-fg-interactive-neutral-weak)}@media(max-width:599px){.RuVLl3q4lxTQa3wbhBJB{grid-column-end:span 1}.f9LZTRG4MMK42rS89afW{grid-column-start:1}.bHe_zKxjjpUwHw_MdYE1{grid-column-end:2}.QZbNrOqE2aNSn50xVhpU{grid-column-end:span 2}.ev7W3z7zVYPeHAlYqZjf{grid-column-start:2}.NJWd1m_e7lOiPYru2ZMP{grid-column-end:3}.Xc6nt1Qc1DI0Z2A3gt1r{grid-column-end:span 3}.UIcN_GXiPRoIsin8Kohg{grid-column-start:3}.GRKCyqb5LufCSCgykKFc{grid-column-end:4}.i_qTq8gqhhC3vIUepVRB{grid-column-end:span 4}.G3qaZ3Jpbvam_1XvGxgc{grid-column-start:4}.VRCNYKZtO9zukEwmgP1y{grid-column-end:5}}@media(min-width:600px)and (max-width:959px){.tRm008K_WJL79WoNZTNL{grid-column-end:span 1}.l5T2P_bgKts4tdaRkS1d{grid-column-start:1}.zOCxfLZpF6BlgC7a_Yq1{grid-column-end:2}.F80DdgVn0m5OpvtSQWka{grid-column-end:span 2}.oI1c7JYfiJtMQHbhngtU{grid-column-start:2}.pMQtA_4jh1_1lVknqEP5{grid-column-end:3}.VenqMpdgyKQVUNNQcfqd{grid-column-end:span 3}.seNYL99uoczf9V4MxBxT{grid-column-start:3}.YKfF1HFhI9KygA5l3b2J{grid-column-end:4}.yAi0Cv1xDWkoqsaUhvhR{grid-column-end:span 4}.ubhnyZOnkgxNhh6XtVWv{grid-column-start:4}.RGOPGQbWMJ9Ei5oFxS7X{grid-column-end:5}.Sz1E2aWbX483ijdi6yge{grid-column-end:span 5}.tku6_bRYrX9tMbgYGmIl{grid-column-start:5}.b5JHttOhSEcI1WBlqAjk{grid-column-end:6}.FboSx5MoKTAWbxXyYlCw{grid-column-end:span 6}.Jhs8yEEmodG30edbJvag{grid-column-start:6}.IpzbbKVqEqPcfIGkXkwt{grid-column-end:7}.mhCPwfAZ4Kmm_empzJAq{grid-column-end:span 7}.x034ilrJF7rO9UJB2rI1{grid-column-start:7}.Wt8t2e16viRrOJ1lLA5v{grid-column-end:8}.S6pIrEy9AMLKx9bgh_Ae{grid-column-end:span 8}.kEfI4tGyuWfHTlRnvIab{grid-column-start:8}.PUzX4RRsKq1dnsz3gebS{grid-column-end:9}}@media(min-width:960px){.X_pdcLJikd8LS_YAdJlB{grid-column-end:span 1}.tl936d14Huby4khYp05X{grid-column-start:1}.hnge0LnR69d3NXEtEE1t{grid-column-end:2}.fj0NUMuyZQcPNgKcjp5Z{grid-column-end:span 2}.R2ncBX7a2NigdYCcV1OX{grid-column-start:2}.t8vMSDVYno9k9itRwnXb{grid-column-end:3}.wsDuEN2GqHLine truncated
|
||||
@@ -0,0 +1,275 @@
|
||||
/*! For license information please see index.js.LICENSE.txt */
|
||||
(()=>{var e,t,n={28288(e,t,n){"use strict";n.d(t,{A:()=>y});var r=n(51609),a=n.n(r),i=n(5868),s=n.n(i),o=n(27350),c=n(68228),l=n(61562),u=n(26547),d=n(80399),p=n(97796),h=n(97935),m=n(14739),f=n(23716),g=["children","axisClassName","hideAxisLine","hideTicks","hideZero","innerRef","left","numTicks","orientation","rangePadding","scale","tickFormat","tickLength","tickValues","top"];function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}function y(e){var t=e.children,n=void 0===t?u.A:t,r=e.axisClassName,i=e.hideAxisLine,y=void 0!==i&&i,b=e.hideTicks,w=void 0!==b&&b,j=e.hideZero,k=void 0!==j&&j,x=e.innerRef,C=e.left,A=void 0===C?0:C,_=e.numTicks,M=void 0===_?10:_,S=e.orientation,E=void 0===S?m.A.bottom:S,N=e.rangePadding,O=void 0===N?0:N,P=e.scale,L=e.tickFormat,T=e.tickLength,V=void 0===T?8:T,I=e.tickValues,z=e.top,H=void 0===z?0:z,D=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,g),R=null!=L?L:(0,p.A)(P),F=E===m.A.left,B=E===m.A.top,U=B||E===m.A.bottom,q=(0,d.A)(P),W=F||B?-1:1,$=P.range(),Z=(0,f.A)(O),G=(0,h.A)({x:Number($[0])+.5-Z.start,y:0},U),Y=(0,h.A)({x:Number($[$.length-1])+.5+Z.end,y:0},U),J=(null!=I?I:(0,l.A)(P,M)).filter(function(e){return!k||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),Q=J.map(function(e){var t=e.value,n=e.index,r=(0,c.A)(q(t));return{value:t,index:n,from:(0,h.A)({x:r,y:0},U),to:(0,h.A)({x:r,y:V*W},U),formattedValue:R(t,n,J)}});return a().createElement(o.A,{className:s()("visx-axis",r),innerRef:x,top:H,left:A},n(v({},D,{axisFromPoint:G,axisToPoint:Y,hideAxisLine:y,hideTicks:w,hideZero:k,horizontal:U,numTicks:M,orientation:E,rangePadding:O,scale:P,tickFormat:R,tickLength:V,tickPosition:q,tickSign:W,ticks:Q})))}},26547(e,t,n){"use strict";n.d(t,{A:()=>m});var r=n(51609),a=n.n(r),i=n(5868),s=n.n(i),o=n(75058),c=n(54302),l=n(54271),u=n(14739),d=n(83615);function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}var h={textAnchor:"middle",fontFamily:"Arial",fontSize:10,fill:"#222"};function m(e){var t=e.axisFromPoint,n=e.axisLineClassName,r=e.axisToPoint,i=e.hideAxisLine,m=e.hideTicks,f=e.horizontal,g=e.label,v=void 0===g?"":g,y=e.labelClassName,b=e.labelOffset,w=void 0===b?14:b,j=e.labelProps,k=e.orientation,x=void 0===k?u.A.bottom:k,C=e.scale,A=e.stroke,_=void 0===A?"#222":A,M=e.strokeDasharray,S=e.strokeWidth,E=void 0===S?1:S,N=e.tickClassName,O=e.tickComponent,P=e.tickLineProps,L=e.tickLabelProps,T=e.tickLength,V=void 0===T?8:T,I=e.tickStroke,z=void 0===I?"#222":I,H=e.tickTransform,D=e.ticks,R=e.ticksComponent,F=void 0===R?d.A:R,B=p({},h,j),U=p({},h,"object"==typeof L?L:null),q=D.map(function(e){var t=e.value,n=e.index;return"function"==typeof L?L(t,n,D):U}),W=Math.max.apply(Math,[10].concat(q.map(function(e){return"number"==typeof e.fontSize?e.fontSize:0})));return a().createElement(a().Fragment,null,F({hideTicks:m,horizontal:f,orientation:x,scale:C,tickClassName:N,tickComponent:O,tickLabelProps:q,tickStroke:z,tickTransform:H,ticks:D,strokeWidth:E,tickLineProps:P}),!i&&a().createElement(o.A,{className:s()("visx-axis-line",n),from:t,to:r,stroke:_,strokeWidth:E,strokeDasharray:M}),v&&a().createElement(c.A,p({className:s()("visx-axis-label",y)},(0,l.A)({labelOffset:w,labelProps:B,orientation:x,range:C.range(),tickLabelFontSize:W,tickLength:V}),B),v))}},83615(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(51609),a=n.n(r),i=n(5868),s=n.n(i),o=n(75058),c=n(27350),l=n(54302),u=n(14739);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}function p(e){var t=e.hideTicks,n=e.horizontal,r=e.orientation,i=e.tickClassName,p=e.tickComponent,h=e.tickLabelProps,m=e.tickStroke,f=void 0===m?"#222":m,g=e.tickTransform,v=e.ticks,y=e.strokeWidth,b=e.tickLineProps;return v.map(function(e){var m,v=e.value,w=e.index,j=e.from,k=e.to,x=e.formattedValue,C=null!=(m=h[w])?m:{},A=Math.max(10,"number"==typeof C.fontSize&&C.fontSize||0),_=k.y+(n&&r!==u.A.top?A:0);return a().createElement(c.A,{key:"visx-tick-"+v+"-"+w,className:s()("visx-axis-tick",i),transform:g},!t&&a().createElement(o.A,d({from:j,to:k,stroke:f,strokeWidth:y,strokeLinecap:"square"},b)),p?p(d({},C,{x:k.x,y:_,formattedValue:x})):a().createElement(l.A,d({x:k.x,y:_},C),x))})}},14739(e,t,n){"use strict";n.d(t,{A:()=>r});const r={top:"top",left:"left",right:"right",bottom:"bottom"}},97935(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(48698);function a(e,t){var n=e.x,a=e.y;return new r.A(t?{x:n,y:a}:{x:a,y:n})}},23716(e,t,n){"use strict";functionLine truncated
|
||||
__("Received invalid response while communicating with your WordPress site: %s","jetpack-my-jetpack"),this.parseError.message)}return(0,r.sprintf)(/* Translators: %d refers to numeric HTTP error code */
|
||||
__("HTTP %d error received while communicating with the server.","jetpack-my-jetpack"),this.httpCode)}getDisplayBody(){return(0,i.O)(this.body)?JSON.stringify(this.body,null," "):(0,a.w)(this.body,"").substring(0,1e3)}getRestApiErrorMessage(){return __("Your site's REST API does not seem to be accessible. Jetpack Boost requires access to your REST API in order to receive site performance scores. Please make sure that your site's REST API is active and accessible, and try again.","jetpack-my-jetpack")}}},15098(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(27723),a=n(21197),i=n(18882);const __=r.__;async function s(e,t,n,a=null,s){const o={method:e,mode:"cors",headers:{"X-WP-Nonce":s}};"post"!==e&&"delete"!==e||!a||(o.body=JSON.stringify(a),o.headers["Content-Type"]="application/json");const c=function(e,t){return t+i.K+i.L+e}(n,t);let l;try{l=await fetch(c,o)}catch(e){const t=o;delete t.body,delete t.headers["X-WP-Nonce"];const n={requestInitiator:window.location.href,requestUrl:c,requestArgs:t,originalErrorMessage:e.toString()};throw new Error((0,r.sprintf)(/* Translators: %s refers to a string representation of an error object containing useful debug information */
|
||||
__("An error occurred while trying to communicate with the site REST API. Extra debug info: %s","jetpack-my-jetpack"),JSON.stringify(n)))}return l}async function o(e,t,n,r=null,i){const o=await s(e,t,n,r,i);let c,l;try{c=await o.text()}catch(e){throw new a.h(o.status,null,e)}try{l=JSON.parse(c)}catch(e){throw new a.h(o.status,c,e)}if(!o.ok)throw new a.h(o.status,l,null);return l}const c={get:function(e,t,n){return o("get",e,t,null,n)},post:function(e,t,n=null,r){return o("post",e,t,n,r)}}},18882(e,t,n){"use strict";n.d(t,{K:()=>r,L:()=>a});const r="jetpack-boost/v1",a=""},58454(e,t,n){"use strict";n.d(t,{T:()=>h,US:()=>m,sE:()=>d});var r=n(27723),a=n(15098),i=n(4753),s=n(75289),o=n(34144),c=n(28991),l=n(93470);const __=r.__,u=12e4;async function d(e=!1,t,n,r){const i=p(await a.A.post(t,e?"/speed-scores/refresh":"/speed-scores",{url:n},r));return i.scores?i.scores:await async function(e,t,n){return(0,c.A)({timeout:u,interval:5e3,timeoutError:__("Timed out while waiting for speed-score.","jetpack-my-jetpack"),callback:async r=>{const i=p(await a.A.post(e,"/speed-scores",{url:t},n));i.scores&&r(i.scores)}})}(t,n,r)}function p(e){if(e.error){const t=__("An unknown error occurred while requesting metrics","jetpack-my-jetpack");throw(0,l.g)(e.error,t)}if((0,o.O)(e.scores))return{status:"success",scores:{current:(0,o.O)(e.scores.current)?{mobile:(0,i.G)(e.scores.current.mobile,0),desktop:(0,i.G)(e.scores.current.desktop,0)}:{mobile:0,desktop:0},noBoost:(0,o.O)(e.scores.noBoost)?{mobile:(0,i.G)(e.scores.noBoost.mobile,0),desktop:(0,i.G)(e.scores.noBoost.desktop,0)}:null,isStale:!!e.scores.isStale}};const t=(0,s.w)(e.status);if(!t)throw new Error(__("Invalid response while requesting metrics","jetpack-my-jetpack"));return{status:t}}function h(e,t){const n=(e+t)/2;return n>90?"A":n>75?"B":n>50?"C":n>35?"D":n>25?"E":"F"}function m(e){const t=new Date(e),n=(new Date).valueOf()-t.valueOf();return Math.floor(n/864e5)}},4753(e,t,n){"use strict";function r(e,t=void 0){if("number"==typeof e)return e;if("string"==typeof e){const t=parseFloat(e);if(!isNaN(t))return t}return t}n.d(t,{G:()=>r})},75289(e,t,n){"use strict";function r(e,t=void 0){return"string"==typeof e?e:e&&e.toString instanceof Function?e.toString():t}n.d(t,{w:()=>r})},34144(e,t,n){"use strict";function r(e){return!!e&&e instanceof Object&&!(e instanceof Array)}n.d(t,{O:()=>r})},28991(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(27723);const __=r.__;async function a({interval:e,callback:t,timeout:n,timeoutError:r}){let a,i;return new Promise((s,o)=>{a=setTimeout(()=>{o(new Error(r||__("Timed out","jetpack-my-jetpack")))},n||12e4),i=setInterval(async()=>{try{await Promise.resolve(t(s))}catch(e){o(e)}},e)}).finally(()=>{clearTimeout(a),clearInterval(i)})}},93470(e,t,n){"use strict";function r(e,t){return e instanceof Error?e:"string"==typeof e||e instanceof String?new Error(e.toString()):e.message?new Error(e.message):t?new Error(t):new Error(JSON.stringify(e))}n.d(t,{g:()=>r})},96047(e,t,n){"use strict";n.d(t,{A:()=>R});var r=n(54268),a=n(66453),i=n(54291),s=n(70276),o=n(14117),c=n(62643),l=n(7401),u=n(27917),d=n(26954),p=n(95732),h=n(27723),m=n(13022),f=n(51609),g=n(47068),v=n(22265),y=n(53849),b=n(88662),w=n(88165),j=n(5742),k=n(24046),x=n(29446),C=n(33181),A=n(11590),_=n(85565),M=n(6973),S=n(43113),E=n(66906),N=n(18479),O=n(74051),P=n(56495),L=n(39851),T=n(13509),V=n(72800),I=n(10790);const __=h.__,z=(e,t)=>`bar-pattern-${e}-${t}`,H=({data:e,chartId:t,width:n,height:h,className:C,margin:S,withTooltips:L=!1,showLegend:H=!1,legend:D={},gridVisibility:R,renderTooltip:F,options:B={},orientation:U="vertical",withPatterns:q=!1,showZeroValues:W=!1,animation:$,children:Z,gap:G="md"})=>{const Y=D.interactive??!1,J="horizontal"===U,Q=(0,_.R)(t),K=(0,b.O)(e),X=(0,w.E)(e),ee=(0,k.D)(X,{enabled:W,valueAxisLength:J?n:h}),te=(0,v.f)(X),ne=(0,V.F)(ee,J,B),re=(0,j.a)(h,ne,X,K,J),ae=(0,f.useRef)(null),{legendChildren:ie,nonLegendChildren:se}=(0,E.n)(Z,"BarChart"),[oe,ce]=(0,f.useState)(),le=(0,f.useCallback)(e=>{ce(e>0?e:h)},[h]),[ue,de]=(0,f.useState)(void 0),[pe,he]=(0,f.useState)(!1),me=Math.max(0,...e.map(e=>e.data?.length||0))*e.length,{tooltipRef:fe,onChartFocus:ge,onChartBlur:ve,onChartKeyDown:ye}=(0,y.JZ)({selectedIndex:ue,setSelectedIndex:de,isNavigating:pe,setIsNavigating:he,chartRef:ae,totalPoints:me}),{getElementStyles:be,isSeriesVisible:we}=(0,A.j)(),je=(0,f.useMemo)(()=>Q&&Y?ee.map((e,t)=>({series:e,index:t,isVisible:we(Q,e.label)})):ee.map((e,t)=>({series:e,index:t,isVisible:!0})),[ee,Q,we,Y]),ke=(0,f.useMemo)(()=>je.every(({isVisible:e})=>!e),[je]),xe=(0,f.useCallback)(e=>()=>q?`url(#${z(Q,e)})`:be({data:X[e],index:e}).color,[q,be,X,Q]),Ce=(0,f.useCallback)(({tooltipData:e})=>{const t=e?.nearestDatum?.datum;return t?(0,I.jsxs)("div",{className:T.A["bar-chart__tooltip"],children:[(0,I.jsx)("div",{className:T.A["bar-chart__tooltip-header"],children:e?.nearestDatum?.key}),(0,I.jsxs)("div",{className:T.A["bar-chart__tooltip-row"],children:[(0,I.jsxs)("span",{classLine truncated
|
||||
__("There was an error testing Jetpack. Error: %s","jetpack-my-jetpack"),e.message))}},[]),O=k?(0,m.jsxs)(i.__experimentalHStack,{spacing:2,justify:"left",children:[C||(0,m.jsx)(u.A,{showText:!1,height:20}),(0,m.jsx)("span",{children:k})]}):void 0;return n&&(O||_)?(0,m.jsx)("div",{className:E,children:(0,m.jsxs)(a.A,{ariaLabel:k,breadcrumbs:_,title:O,subTitle:x,actions:A,showSidebarToggle:!1,children:[M,(0,m.jsx)(p.A,{fluid:!0,horizontalSpacing:0,children:(0,m.jsx)(d.A,{children:e})}),f&&(0,m.jsx)(l.A,{menu:w})]})}):(0,m.jsxs)("div",{className:E,children:[n&&(0,m.jsx)(p.A,{horizontalSpacing:5,children:(0,m.jsxs)(d.A,{className:(0,o.A)(h.A["admin-page-header"],"jp-admin-page-header"),children:[j||(0,m.jsx)(u.A,{}),v&&(0,m.jsx)("code",{className:h.A["sandbox-domain-badge"],onClick:N,onKeyDown:N,role:"button",tabIndex:0,title:`Sandboxing via ${v}. Click to test connection.`,children:"API Sandboxed"})]})}),(0,m.jsx)(p.A,{fluid:!0,horizontalSpacing:0,children:(0,m.jsx)(d.A,{children:e})}),f&&(0,m.jsx)(l.A,{menu:w})]})}},42266(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(13109),a=n(84699),i=n(88901),s=n(28847),o=n(13022),c=n(37751),l=n(10790);const u=e=>{switch(e){case"error":case"warning":default:return a.A;case"info":return s.A;case"success":return i.A}},d=({level:e="warning",children:t,showIcon:n=!0,className:a})=>{const i=(0,o.A)(c.A.container,c.A[`is-${e}`],a);return(0,l.jsxs)("div",{className:i,children:[n&&(0,l.jsx)("div",{className:c.A["icon-wrapper"],children:(0,l.jsx)(r.A,{icon:u(e),className:c.A.icon})}),(0,l.jsx)("div",{children:t})]})}},48907(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(27723),a=n(13022),i=n(10790);const __=r.__,s=({title:e=__("An Automattic Airline","jetpack-my-jetpack"),height:t=7,className:n,...r})=>(0,i.jsxs)("svg",{role:"img",x:"0",y:"0",viewBox:"0 0 935 38.2",enableBackground:"new 0 0 935 38.2","aria-labelledby":"jp-automattic-byline-logo-title",height:t,className:(0,a.A)("jp-automattic-byline-logo",n),...r,children:[(0,i.jsx)("desc",{id:"jp-automattic-byline-logo-title",children:e}),(0,i.jsx)("path",{d:"M317.1 38.2c-12.6 0-20.7-9.1-20.7-18.5v-1.2c0-9.6 8.2-18.5 20.7-18.5 12.6 0 20.8 8.9 20.8 18.5v1.2C337.9 29.1 329.7 38.2 317.1 38.2zM331.2 18.6c0-6.9-5-13-14.1-13s-14 6.1-14 13v0.9c0 6.9 5 13.1 14 13.1s14.1-6.2 14.1-13.1V18.6zM175 36.8l-4.7-8.8h-20.9l-4.5 8.8h-7L157 1.3h5.5L182 36.8H175zM159.7 8.2L152 23.1h15.7L159.7 8.2zM212.4 38.2c-12.7 0-18.7-6.9-18.7-16.2V1.3h6.6v20.9c0 6.6 4.3 10.5 12.5 10.5 8.4 0 11.9-3.9 11.9-10.5V1.3h6.7V22C231.4 30.8 225.8 38.2 212.4 38.2zM268.6 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H268.6zM397.3 36.8V8.7l-1.8 3.1 -14.9 25h-3.3l-14.7-25 -1.8-3.1v28.1h-6.5V1.3h9.2l14 24.4 1.7 3 1.7-3 13.9-24.4h9.1v35.5H397.3zM454.4 36.8l-4.7-8.8h-20.9l-4.5 8.8h-7l19.2-35.5h5.5l19.5 35.5H454.4zM439.1 8.2l-7.7 14.9h15.7L439.1 8.2zM488.4 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H488.4zM537.3 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H537.3zM569.3 36.8V4.6c2.7 0 3.7-1.4 3.7-3.4h2.8v35.5L569.3 36.8 569.3 36.8zM628 11.3c-3.2-2.9-7.9-5.7-14.2-5.7 -9.5 0-14.8 6.5-14.8 13.3v0.7c0 6.7 5.4 13 15.3 13 5.9 0 10.8-2.8 13.9-5.7l4 4.2c-3.9 3.8-10.5 7.1-18.3 7.1 -13.4 0-21.6-8.7-21.6-18.3v-1.2c0-9.6 8.9-18.7 21.9-18.7 7.5 0 14.3 3.1 18 7.1L628 11.3zM321.5 12.4c1.2 0.8 1.5 2.4 0.8 3.6l-6.1 9.4c-0.8 1.2-2.4 1.6-3.6 0.8l0 0c-1.2-0.8-1.5-2.4-0.8-3.6l6.1-9.4C318.7 11.9 320.3 11.6 321.5 12.4L321.5 12.4z"}),(0,i.jsx)("path",{d:"M37.5 36.7l-4.7-8.9H11.7l-4.6 8.9H0L19.4 0.8H25l19.7 35.9H37.5zM22 7.8l-7.8 15.1h15.9L22 7.8zM82.8 36.7l-23.3-24 -2.3-2.5v26.6h-6.7v-36H57l22.6 24 2.3 2.6V0.8h6.7v35.9H82.8z"}),(0,i.jsx)("path",{d:"M719.9 37l-4.8-8.9H694l-4.6 8.9h-7.1l19.5-36h5.6l19.8 36H719.9zM704.4 8l-7.8 15.1h15.9L704.4 8zM733 37V1h6.8v36H733zM781 37c-1.8 0-2.6-2.5-2.9-5.8l-0.2-3.7c-0.2-3.6-1.7-5.1-8.4-5.1h-12.8V37H750V1h19.6c10.8 0 15.7 4.3 15.7 9.9 0 3.9-2 7.7-9 9 7 0.5 8.5 3.7 8.6 7.9l0.1 3c0.1 2.5 0.5 4.3 2.2 6.1V37H781zM778.5 11.8c0-2.6-2.1-5.1-7.9-5.1h-13.8v10.8h14.4c5 0 7.3-2.4 7.3-5.2V11.8zM794.8 37V1h6.8v30.4h28.2V37H794.8zM836.7 37V1h6.8v36H836.7zM886.2 37l-23.4-24.1 -2.3-2.5V37h-6.8V1h6.5l22.7 24.1 2.3 2.6V1h6.8v36H886.2zM902.3 37V1H935v5.6h-26v9.2h20v5.5h-20v10.1h26V37H902.3z"})]})},10580(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(27723),a=n(13022),i=n(11883),s=(n(92417),n(10790));const __=r.__,o=({score:e,isLoading:t,showPrevScores:n,active:r,prevScore:o=0,scoreBarType:c,noBoostScoreTooltip:l})=>{if(!r)return null;const u=o/e*100,d=__("Desktop score","jetpack-my-jetpack"),p=__("Mobile score","jetpack-my-jetpack");return(0,s.jsxs)("div",{className:(0,a.A)("jb-score-bar",`jb-score-bar--${c}`),children:[(0,s.jsxs)("div",{className:"jb-score-bar__label",children:["desktop"===c?(0,s.jsx)(i.A,{icon:"computer",size:24}):(0,s.jsx)(i.A,{icon:"phone",size:24}),(0,s.jsx)("div",{children:"desktop"===c?d:p})]}),(0,s.jsx)("div",{className:"jb-score-bar__bounds",children:(0,s.jsxs)("div",{className:(0,a.A)("jb-score-bar__filler",t&&!e?"fill-loading":e>70?"fill-good":e>50?"fill-mediocre":"fill-bad"),style:{width:`${e}%
Line truncated
|
||||
__("(opens in a new tab)","jetpack-my-jetpack")})]}),A=v?"_blank":void 0,_=n?.[0]&&null!==n[0]&&"components-tooltip"!==n?.[0]?.props?.className,M={ref:t,target:A,variant:a,className:(0,o.A)(k,{"has-text":!!p&&_}),icon:v?void 0:p,iconSize:h,disabled:m,"aria-disabled":m,isDestructive:f,text:b,...j};return(0,u.jsxs)(r.Button,{...M,children:[g&&(0,u.jsx)(r.Spinner,{}),(0,u.jsx)("span",{children:n}),C]})});d.displayName="Button";const p=d},39707(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(56427),a=n(27723),i=n(13022),s=n(51609),o=n(30898),c=(n(65e3),n(10790));const __=a.__,l=({currentPage:e,numberOfPages:t,setCurrentPage:n,tracksPrefix:o,tracksFn:l})=>{const u=(0,s.useMemo)(()=>Array.from({length:t},(t,r)=>()=>{l(o+"_dot_click",{current_page:e,destination_page:r}),n(r)}),[t,e,l,o,n]);return t<2?null:(0,c.jsx)("ul",{className:"dot-pager__controls","aria-label":__("Pager controls","jetpack-my-jetpack"),children:Array.from({length:t},(n,s)=>(0,c.jsx)("li",{"aria-current":s===e?"page":void 0,children:(0,c.jsx)(r.Button,{className:(0,i.A)("dot-pager__control-choose-page",{"dot-pager__control-current":s===e}),disabled:s===e,"aria-label":(0,a.sprintf)(/* translators: %1$d: current page number, %2$d: total number of pages */
|
||||
__("Page %1$d of %2$d","jetpack-my-jetpack"),s+1,t),onClick:u[s]},s.toString())},`page-${s}`))})},u=({hasDynamicHeight:e=!1,children:t,className:n="",onPageSelected:r,isClickEnabled:a=!1,rotateTime:u=0,tracksPrefix:d="",tracksFn:p=()=>{},...h})=>{const m=s.Children.toArray(t).filter(Boolean),[f,g]=(0,s.useState)(0),[v,y]=(0,s.useState)(!1),b=s.Children.count(m);(0,s.useEffect)(()=>{if(u>0&&b>1&&!v){const e=setTimeout(()=>{g((f+1)%(b+1))},1e3*u);return()=>clearTimeout(e)}},[f,b,u,v]);const w=(0,s.useCallback)(e=>{g(e),r?.(e)},[r]),j=(0,s.useCallback)(()=>{y(!0)},[]),k=(0,s.useCallback)(()=>{y(!1)},[]);return(0,c.jsxs)("div",{className:(0,i.A)("dot-pager",n),onMouseEnter:j,onMouseLeave:k,...h,children:[(0,c.jsx)(l,{currentPage:f,numberOfPages:b,setCurrentPage:w,tracksPrefix:d,tracksFn:p}),(0,c.jsx)(o.H,{hasDynamicHeight:e,onPageSelect:w,currentPage:f,pageClassName:"dot-pager__page",containerClassName:"dot-pager__pages",isClickEnabled:a,children:m})]})}},59244(e,t,n){"use strict";n.d(t,{D:()=>o});var r=n(56427),a=n(81837),i=n(63406),s=n(10790);function o({maxVisibleNotices:e=3}){const{getNotices:t,removeNotice:n}=(0,i.I)(),o=t().filter(({type:e})=>"snackbar"===e).slice(-e);return(0,s.jsx)(r.SnackbarList,{notices:o,className:a.A["global-notices"],onRemove:n})}},63406(e,t,n){"use strict";n.d(t,{I:()=>i});var r=n(47143),a=n(692);function i(){const e=(0,r.useDispatch)(a.store),t=(0,r.useSelect)(e=>e(a.store).getNotices(),[]);return{...e,createNotice:(t,n,r)=>e.createNotice(t,n,{type:"snackbar",...r}),createErrorNotice:(t,n)=>e.createErrorNotice(t,{type:"snackbar",...n}),createInfoNotice:(t,n)=>e.createInfoNotice(t,{type:"snackbar",...n}),createSuccessNotice:(t,n)=>e.createSuccessNotice(t,{type:"snackbar",...n}),createWarningNotice:(t,n)=>e.createWarningNotice(t,{type:"snackbar",...n}),getNotices:()=>t}}},11883(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(27723),a=n(13022),i=n(51609),s=(n(30778),n(10790));const __=r.__;class o extends i.Component{static defaultProps={"aria-hidden":"false",focusable:"true"};needsOffset(e,t){return["gridicons-arrow-left","gridicons-arrow-right","gridicons-calendar","gridicons-cart","gridicons-folder","gridicons-help-outline","gridicons-info","gridicons-info-outline","gridicons-posts","gridicons-star-outline","gridicons-star"].indexOf(e)>=0&&t%18==0}getSVGDescription(e){if("description"in this.props)return this.props.description;switch(e){default:return"";case"gridicons-audio":return __("Has audio","jetpack-my-jetpack");case"gridicons-arrow-left":return __("Arrow left","jetpack-my-jetpack");case"gridicons-arrow-right":return __("Arrow right","jetpack-my-jetpack");case"gridicons-calendar":return __("Is an event","jetpack-my-jetpack");case"gridicons-cart":return __("Is a product","jetpack-my-jetpack");case"chevron-down":return __("Show filters","jetpack-my-jetpack");case"gridicons-comment":return __("Matching comment","jetpack-my-jetpack");case"gridicons-cross":return __("Close","jetpack-my-jetpack");case"gridicons-domains":return __("Website","jetpack-my-jetpack");case"gridicons-filter":return __("Toggle search filters","jetpack-my-jetpack");case"gridicons-folder":return __("Category","jetpack-my-jetpack");case"gridicons-help-outline":return __("Help","jetpack-my-jetpack");case"gridicons-info":case"gridicons-info-outline":return __("Information","jetpack-my-jetpack");case"gridicons-image-multiple":return __("Has multiple images","jetpack-my-jetpack");case"gridicons-image":return __("Has an image","jetpack-my-jetpack");case"gridicons-page":return __("Page","jetpack-my-jetpack");case"gridicons-post":return __("Post","jetpack-my-jetpack");case"gridicons-jetpack-search":case"gridicons-search":return __("Magnifying Glass","jetpack-my-jetpack");case"gridicons-tag":return __("Tag","jetpack-my-jetpack");case"gridicons-video":return __("Has a video","jetpack-my-jetpack")}}renderIcon(e){switch(e){default:return null;case"gridicons-audio":return(0,s.jsx)("g",{children:(0,s.jsx)("path",{d:"M8 4v10.184C7.686 14.072 7.353 14 7 14c-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V7h7v4.184c-.314-.112-.647-.184-1-.184-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V4H8z"})});case"gridicons-arrow-left":return(0,s.jsx)("g",{children:(0,s.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"})});case"gridicons-arrow-right":return(0,s.jsx)("g",{children:(0,s.jsx)("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"})});case"gridicons-block":return(0,s.jsx)("g",{children:(0,s.jsx)("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM4 12c0-4.418 3.582-8 8-8 1.848 0 3.545.633 4.9 1.686L5.686 16.9C4.633 15.545 4 13.848 4 12zm8 8c-1.848 0-3.546-.633-4.9-1.686L18.314 7.1C19.367 8.455 20 10.152 20 12c0 4.418-3.582 8-8 8z"})});case"gridicons-calendar":return(0,s.jsx)("g",{children:(0,s.jsx)("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.105 0-2 .896-2 2v13c0 1.104.895 2 2 2h14c1.104 0 2-.896 2-2V6c0-1.104-.896-2-2-2zm0 15H5V8h14v11z"})});case"gridicons-Line truncated
|
||||
// translators: %s: Name of the current feature
|
||||
default:(0,r.sprintf)(__("%s coming soon","jetpack-my-jetpack"),n)}:{lg:t?f:g,default:t?n:(0,r.sprintf)(/* translators: %s: Name of the current feature */
|
||||
__("%s not included","jetpack-my-jetpack"),n)})(t,e,_),O=k?N.lg:N.default;return C?(0,m.jsx)("div",{className:(0,o.A)(h.A.item,h.A.value,h.A.empty)}):(0,m.jsxs)("div",{className:(0,o.A)(h.A.item,h.A.value),children:[(0,m.jsx)(a.A,{className:(0,o.A)(h.A.icon,A?h.A["icon-check"]:h.A["icon-cross"]),size:32,icon:A?i.A:s.A}),(0,m.jsx)(p.Ay,{variant:"body-small",children:d||O}),E&&(0,m.jsx)(l.A,{title:w||S,iconClassName:h.A["popover-icon"],className:(0,o.A)(h.A.popover,j),placement:"bottom-end",iconSize:14,offset:4,wide:Boolean(w&&b),children:(0,m.jsx)(p.Ay,{variant:"body-small",component:"div",children:b||M})})]})},w=({title:e,children:t})=>(0,m.jsxs)("div",{className:h.A.headerContainer,children:[e&&(0,m.jsx)(p.Ay,{variant:"headline-small",className:h.A.title,children:e}),(0,m.jsx)("div",{className:h.A.header,children:t})]}),j=({primary:e=!1,children:t,className:n})=>{let r=0;return(0,m.jsx)("div",{className:(0,o.A)(h.A.card,{[h.A["is-primary"]]:e},n),children:c.Children.map(t,e=>{const t=e;return t.type===b?(r++,(0,c.cloneElement)(t,{index:r-1})):t})})},k=({title:e,headerLogo:t,items:n,children:r,showIntroOfferDisclaimer:a=!1})=>{const[i]=(0,u.A)("lg");return(0,m.jsxs)(y.Provider,{value:n,children:[(0,m.jsx)("div",{className:(0,o.A)(h.A.container,{[h.A["is-viewport-large"]]:i}),style:{"--rows":n.length+1,"--columns":c.Children.toArray(r).length+1},children:(0,m.jsxs)("div",{className:h.A.table,children:[(0,m.jsxs)("div",{children:[t&&(0,m.jsx)("div",{className:h.A["header-logo"],children:t}),(0,m.jsx)(p.Ay,{variant:"headline-small",className:h.A.tableTitle,children:e})]}),i&&n.map((e,t)=>e.name?(0,m.jsxs)("div",{className:(0,o.A)(h.A.item,h.A.feature,{[h.A["last-feature"]]:t===n.length-1}),children:[(0,m.jsx)(p.Ay,{variant:"body-small",children:(0,m.jsx)("strong",{children:e.name})}),e.tooltipInfo&&(0,m.jsx)(l.A,{title:e.tooltipTitle,iconClassName:h.A["popover-icon"],className:h.A.popover,placement:e.tooltipPlacement?e.tooltipPlacement:"bottom-end",iconSize:14,offset:4,wide:Boolean(e.tooltipTitle&&e.tooltipInfo),children:(0,m.jsx)(p.Ay,{variant:"body-small",children:e.tooltipInfo})})]},t):(0,m.jsx)("div",{className:(0,o.A)(h.A.item,h.A.feature,h.A.empty)},t)),r]})}),(0,m.jsx)("div",{className:h.A["tos-container"],children:(0,m.jsxs)("div",{className:h.A.tos,children:[a&&(0,m.jsx)(p.Ay,{variant:"body-small",children:__("Reduced pricing is a limited offer for the first year and renews at regular price.","jetpack-my-jetpack")}),(0,m.jsx)(d.A,{multipleButtons:!0})]})})]})}},489(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(27723),a=n(13022),i=n(47425),s=n(50365),o=n(65304),c=n(10790);const __=r.__,l=({price:e,offPrice:t,currency:n="",showNotOffPrice:r=!0,hideDiscountLabel:l=!0,promoLabel:u="",legend:d=__("/month, paid yearly","jetpack-my-jetpack"),isNotConvenientPrice:p=!1,hidePriceFraction:h=!1,children:m,variant:f="default"})=>{if(null==e&&null==t||!n)return null;r=r&&null!=t;const g="number"==typeof e&&"number"==typeof t?Math.floor((e-t)/e*100):0,v=!l&&g&&g>0?g+__("% off","jetpack-my-jetpack"):null;return"simple"===f?(0,c.jsxs)("div",{className:o.A.simple,children:[(0,c.jsxs)("div",{className:o.A.currentPrice,children:[(0,c.jsx)(s.g,{value:t??e,currency:n,isOff:!p,hidePriceFraction:h,inline:!0}),(0,c.jsx)("div",{children:d})]}),r&&(0,c.jsxs)("div",{className:o.A.originalPrice,children:[(0,c.jsx)(s.g,{value:e,currency:n,isOff:!1,hidePriceFraction:h,inline:!0}),(0,c.jsx)("div",{children:g&&g>0&&g+__("% off the first year","jetpack-my-jetpack")})]})]}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:o.A.container,children:(0,c.jsxs)("div",{className:(0,a.A)(o.A["price-container"],"product-price_container"),children:[(0,c.jsx)(s.g,{value:t??e,currency:n,isOff:!p,hidePriceFraction:h}),r&&(0,c.jsx)(s.g,{value:e,currency:n,isOff:!1,hidePriceFraction:h}),v&&(0,c.jsx)(i.Ay,{className:(0,a.A)(o.A["promo-label"],"product-price_promo_label"),children:v})]})}),(0,c.jsxs)("div",{className:o.A.footer,children:[m||(0,c.jsx)(i.Ay,{className:(0,a.A)(o.A.legend,"product-price_legend"),children:d}),u&&(0,c.jsx)(i.Ay,{className:(0,a.A)(o.A["promo-label"],"product-price_promo_label"),children:u})]})]})}},50365(e,t,n){"use strict";n.d(t,{g:()=>c});var r=n(54268),a=n(13022),i=n(47425),s=n(65304),o=n(10790);const c=({value:e,currency:t,isOff:n,hidePriceFraction:c,inline:l=!1})=>{const u=(0,a.A)(s.A.price,"product-price_price",{[s.A["is-not-off-price"]]:!n,[s.A["price-inline"]]:l}),{symbol:d,integer:p,fraction:h}=(0,r.vA)(e,t),m=!c||!h.endsWith("00");return(0,o.jsxs)(i.Ay,{className:u,variant:"headline-medium",component:"p",children:[l?(0,o.jsxs)(o.Fragment,{children:[d,p]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.Ay,{className:s.A.symbol,component:"sup",variant:"title-medium",children:d}),p]}),m&&(0,o.jsx)(i.Ay,{component:"sup",variant:"body-small","data-testid":"PriceFraction",children:(0,o.jsx)("strong",{children:h})})]})}},46951(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(28120),a=n.n(r),i=(n(99752),n(10790));constLine truncated
|
||||
__("By clicking <strong>%1$s</strong> or <strong>%2$s</strong>, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>sync your site‘s data</shareDetailsLink> with us.","jetpack-my-jetpack"),e[0],e[1]),{strong:(0,l.jsx)("strong",{}),tosLink:(0,l.jsx)(h,{slug:"wpcom-tos"}),shareDetailsLink:(0,l.jsx)(h,{slug:"jetpack-support-what-data-does-jetpack-sync"})}):(0,a.createInterpolateElement)(__("By clicking the buttons above, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>sync your site‘s data</shareDetailsLink> with us.","jetpack-my-jetpack"),{tosLink:(0,l.jsx)(h,{slug:"wpcom-tos"}),shareDetailsLink:(0,l.jsx)(h,{slug:"jetpack-support-what-data-does-jetpack-sync"})}),d=({agreeButtonLabel:e})=>(0,a.createInterpolateElement)((0,i.sprintf)(/* translators: %s is a button label */
|
||||
__("By clicking <strong>%s</strong>, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>sync your site‘s data</shareDetailsLink> with us.","jetpack-my-jetpack"),e),{strong:(0,l.jsx)("strong",{}),tosLink:(0,l.jsx)(h,{slug:"wpcom-tos"}),shareDetailsLink:(0,l.jsx)(h,{slug:"jetpack-support-what-data-does-jetpack-sync"})}),p=()=>(0,a.createInterpolateElement)(__("By continuing you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>sync your site’s data</shareDetailsLink> with us. We’ll check if that email is linked to an existing WordPress.com account or create a new one instantly.","jetpack-my-jetpack"),{tosLink:(0,l.jsx)(h,{slug:"wpcom-tos"}),shareDetailsLink:(0,l.jsx)(h,{slug:"jetpack-support-what-data-does-jetpack-sync"})}),h=({slug:e,children:t})=>(0,l.jsx)(r.ExternalLink,{className:"terms-of-service__link",href:(0,o.A)(e),children:t}),m=({className:e,multipleButtons:t,agreeButtonLabel:n,isTextOnly:r,...a})=>(0,l.jsx)(c.Ay,{className:(0,s.A)(e,"terms-of-service"),...a,children:r?(0,l.jsx)(p,{}):t?(0,l.jsx)(u,{multipleButtonsLabels:t}):(0,l.jsx)(d,{agreeButtonLabel:n})})},10110(e,t,n){"use strict";n.d(t,{Q:()=>r,Z:()=>a});const r={"headline-medium":"h1","headline-small":"h2","headline-small-regular":"h2","title-medium":"h3","title-medium-semi-bold":"h3","title-small":"h4",body:"p","body-small":"p","body-extra-small":"p","body-extra-small-bold":"p",label:"p"},a=["mt","mr","mb","ml","mx","my","m","pt","pr","pb","pl","px","py","p"]},47425(e,t,n){"use strict";n.d(t,{Ay:()=>l,H3:()=>u});var r=n(13022),a=n(51609),i=n(10110),s=n(2642),o=n(10790);const c=(0,a.forwardRef)(({variant:e="body",children:t,component:n,className:c,...l},u)=>{const d=n||i.Q[e]||"span",p=(0,a.useMemo)(()=>i.Z.reduce((e,t)=>(void 0!==l[t]&&(e+=s.A[`${t}-${l[t]}`]+" ",delete l[t]),e),""),[l]);return(0,o.jsx)(d,{className:(0,r.A)(s.A.reset,s.A[e],c,p),...l,ref:u,children:t})});c.displayName="Text";const l=c,u=({children:e,weight:t="bold",...n})=>{const r="headline-small"+("bold"===t?"":`-${t}`);return(0,o.jsx)(c,{variant:r,mb:3,...n,children:e})}},50723(e,t,n){"use strict";n.d(t,{Ay:()=>p});var r=n(51609),a=n(50215),i=n(10790);const s={"--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-headline-small)","--font-label":"var(--font-body-extra-small)"},o={"--jp-black":"#000000","--jp-black-80":"#2c3338","--jp-white":"#ffffff","--jp-white-off":"#f9f9f6","--jp-gray":"#dcdcde","--jp-gray-0":"#F6F7F7","--jp-gray-5":"var(--jp-gray)","--jp-gray-10":"#C3C4C7","--jp-gray-20":"#A7AAAD","--jp-gray-40":"#787C82","--jp-gray-50":"#646970","--jp-gray-60":"#50575E","--jp-gray-70":"#3C434A","--jp-gray-80":"#2C3338","--jp-gray-90":"#1d2327","--jp-gray-off":"#e2e2df","--jp-red-0":"#F7EBEC","--jp-red-5":"#FACFD2","--jp-red-40":"#E65054","--jp-red-50":"#D63638","--jp-red-60":"#B32D2E","--jp-red-70":"#8A2424","--jp-red-80":"#691C1C","--jp-red":"#d63639","--jp-yellow-5":"#F5E6B3","--jp-yellow-10":"#F2CF75","--jp-yellow-20":"#F0C930","--jp-yellow-30":"#DEB100","--jp-yellow-40":"#C08C00","--jp-yellow-50":"#9D6E00","--jp-yellow-60":"#7D5600","--jp-blue-20":"#68B3E8","--jp-blue-40":"#1689DB","--jp-pink":"#C9356E","--jp-green-0":"#f0f2eb","--jp-green-5":"#d0e6b8","--jp-green-10":"#9dd977","--jp-green-20":"#64ca43","--jp-green-30":"#2fb41f","--jp-green-40":"#069e08","--jp-green-50":"#008710","--jp-green-60":"#007117","--jp-green-70":"#005b18","--jp-green-80":"#004515","--jp-green-90":"#003010","--jp-green-100":"#001c09","--jp-green":"#069e08","--jp-green-primary":"var( --jp-green-40 )","--jp-green-secondary":"var( --jp-green-30 )"},c={"--jp-border-radius":"4px","--jp-menu-border-height":"1px","--jp-underline-thickness":"2px"},l={"--spacing-base":"8px"},u={},d=(e,t,n)=>{const r={...s,...o,...c,...l};for(const t in r)e.style.setProperty(t,r[t]);n&&e.classList.add(a.A.global),t&&(u[t]={provided:!0,root:e})},p=({children:e=null,targetDom:t,id:n,withGlobalStyles:a=!0})=>{const s=(0,r.useRef)(),o=u?.[n]?.provided;return(0,r.useLayoutEffect)(()=>{if(!o)return t?d(t,n,a):void(s?.current&&d(s.current,n,a))},[t,s,o,n,a]),t?(0,i.jsx)(i.Fragment,{children:e}):(0,i.jsx)("div",{ref:s,children:e})}},67506(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(56427),a=n(86087),i=n(51112),s=(n(3359),n(10790));const o=e=>{const{icon:t,title:n,description:o,primaryCtaLabel:c,primaryCtaURL:l,primaryCtaIsExternalLink:u,primaryCtaOnClick:d,secondaryCtaLabel:p,secondaryCtaURL:h,secondaryCtaIsExternalLink:m,secondaryCtaOnClick:f}=e;return(0,s.jsx)(r.Card,{isRounded:!0,size:"large",children:(0,s.jsxs)(r.CardBody,{className:"upsell-banner",size:"large",children:[t&&(0,s.jsx)("div",{className:"upsell-banner--icon",children:(0,s.jsx)("img",{src:t,alt:""})}),(0,s.jsxs)("div",{className:"upsell-banner--content",children:[(0,s.jsxs)("div",{className:"upsell-banner--content-info",Line truncated
|
||||
__("%1$s - %2$s","jetpack-my-jetpack"),e,t),value:t})),{label:__("I want to add a license key manually","jetpack-my-jetpack"),value:""}],[n,u]);(0,d.useEffect)(()=>{l(p?.length?p[0].value:"")},[p]);const h=(0,d.useCallback)(e=>{l(e),a(e)},[a]);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(s.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,className:t,disabled:r,label:__("Select a license key","jetpack-my-jetpack"),value:o,options:p,onChange:h}),!u&&!o&&(0,m.jsx)(s.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,className:t,label:__("Input a license key","jetpack-my-jetpack"),value:i,onChange:a,disabled:r})]})},v=e=>{const{activateLicense:t,availableLicenses:n,fetchingAvailableLicenses:c,isActivating:l,license:u,licenseError:v,onLicenseChange:y}=e;(0,d.useEffect)(()=>{r.A.tracks.recordEvent("jetpack_wpa_license_key_activation_view")},[]);const b="string"==typeof v?v?.match(/\[[a-z_]+\]/):null,w=b&&b[0],{ACTIVE_ON_SAME_SITE:j}=h.a,k=j===w,x=(0,d.useMemo)(()=>v?k?"jp-license-activation-screen-controls--license-field-with-success":"jp-license-activation-screen-controls--license-field-with-error":"jp-license-activation-screen-controls--license-field",[v,k]),C=n&&n.length;return(0,m.jsxs)("div",{className:"jp-license-activation-screen-controls",children:[(0,m.jsxs)("div",{className:"jp-license-activation-screen-controls--content",children:[(0,m.jsx)(a.A,{showText:!1,height:48}),(0,m.jsx)("h1",{children:__("Add a license key","jetpack-my-jetpack")}),(0,m.jsx)("p",{children:(0,o.createInterpolateElement)(__("<strong>Purchased a plan?</strong><br />Check your email for your license key and paste it below.","jetpack-my-jetpack"),{strong:(0,m.jsx)("strong",{}),br:(0,m.jsx)("br",{})})}),c||C?(0,m.jsx)(g,{className:x,disabled:c||l,onChange:y,availableLicenses:c?null:n,value:u}):(0,m.jsx)(f,{className:x,disabled:l,onChange:y,value:u}),v&&(0,m.jsx)(p.A,{licenseError:v,errorType:w})]}),(0,m.jsx)("div",{children:(0,m.jsx)(s.Button,{className:"jp-license-activation-screen-controls--button",onClick:t,disabled:!u,children:l?(0,m.jsx)(i.A,{}):__("Activate","jetpack-my-jetpack")})})]})};v.propTypes={activateLicense:u().func.isRequired,availableLicenses:u().array,fetchingAvailableLicenses:u().bool,isActivating:u().bool.isRequired,license:u().string.isRequired,licenseError:u().oneOfType([u().string,u().element]),onLicenseChange:u().func.isRequired,siteUrl:u().string.isRequired};const y=v},18269(e,t,n){"use strict";n.d(t,{a:()=>r});const r={NOT_SAME_OWNER:"[not_same_owner]",ACTIVE_ON_SAME_SITE:"[active_on_same_site]",ATTACHED_LICENSE:"[attached_license]",PRODUCT_INCOMPATIBILITY:"[product_incompatibility]",REVOKED_LICENSE:"[revoked_license]",INVALID_INPUT:"[invalid_input]",MULTISITE_INCOMPATIBILITY:"[multisite_incompatibility]"}},9144(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(90372),a=n(13109),i=n(84699),s=n(88901),o=n(51609),c=n(18269),l=n(40635),u=(n(76411),n(10790));const d=({licenseError:e,errorType:t})=>{(0,o.useEffect)(()=>{e&&r.A.tracks.recordEvent("jetpack_wpa_license_activation_error_view",{error:e,error_type:t})},[e,t]);const{errorMessage:n,errorInfo:d}=(0,l.d)(e,t);if(!e)return null;const{ACTIVE_ON_SAME_SITE:p}=c.a,h=p===t,m=h?"activation-screen-error__message--success":"activation-screen-error__message--error";return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{className:`activation-screen-error__message ${m}`,children:[(0,u.jsx)(a.A,{icon:h?s.A:i.A,size:20}),(0,u.jsx)("span",{children:n})]}),d&&(0,u.jsx)("div",{className:"activation-screen-error__info",children:d})]})}},40635(e,t,n){"use strict";n.d(t,{d:()=>l});var r=n(3924),a=n(56427),i=n(86087),s=n(27723),o=n(18269),c=n(10790);const __=s.__,l=(e,t)=>{if(!e)return{errorMessage:null,errorInfo:null};const n=(0,i.createInterpolateElement)(__("Need help? <a>Get in touch</a>.","jetpack-my-jetpack"),{a:(0,c.jsx)(a.ExternalLink,{href:(0,r.A)("jetpack-support-license-activation"),rel:"noopener noreferrer",children:null})});switch(t){case o.a.NOT_SAME_OWNER:return{errorMessage:__("The account that purchased the plan and the account managing this site are different.","jetpack-my-jetpack"),errorInfo:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("p",{children:(0,i.createInterpolateElement)(__("Follow these <a>steps</a> to resolve it.","jetpack-my-jetpack"),{a:(0,c.jsx)(a.ExternalLink,{rel:"noopener noreferrer",href:(0,r.A)("jetpack-support-activate-license",{anchor:"different-user"}),children:null})})}),(0,c.jsxs)("ol",{children:[(0,c.jsx)("li",{children:__("Disconnect Jetpack from your site.","jetpack-my-jetpack")}),(0,c.jsx)("li",{children:__("Log in to the WordPress.com account that purchased the plan.","jetpack-my-jetpack")}),(0,c.jsx)("li",{children:__("Reconnect Jetpack.","jetpack-my-jetpack")})]}),(0,c.jsx)("p",{children:n})]})};case o.a.ACTIVE_ON_SAME_SITE:return{errorMessage:__("This license is already active on your site.","jetpack-my-jetpack"),errorInfo:null};case o.a.ATTACHED_LICENSE:return{errorMessage:__("This license is aLine truncated
|
||||
__("We’re sorry, %s is not compatible with multisite WordPress installations at this time.","jetpack-my-jetpack"),r),errorInfo:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("p",{children:__("This Jetpack plan doesn’t work with Multisite WordPress setups. Please use it on a single-site installation or consider canceling for a refund.","jetpack-my-jetpack")}),(0,c.jsx)("p",{children:n})]})}}default:return{errorMessage:e,errorInfo:(0,c.jsx)("p",{children:n})}}}},5986(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(3924),a=n(86087),i=n(27723),s=n(28120),o=n.n(s),c=(n(8917),n(10790));const __=i.__,l=e=>{const{imageUrl:t,showSupportLink:n=!1}=e;return(0,c.jsxs)("div",{className:"jp-license-activation-screen-illustration",children:[(0,c.jsx)("div",{className:"jp-license-activation-screen-illustration--wrapper",children:(0,c.jsx)("img",{className:"jp-license-activation-screen-illustration--img",src:t,alt:""})}),n&&(0,c.jsx)("p",{className:"jp-license-activation-screen-illustration--support-link",children:(0,a.createInterpolateElement)(__("Do you need help? <a>Contact us.</a>","jetpack-my-jetpack"),{a:(0,c.jsx)("a",{href:(0,r.A)("jetpack-support-license-activation")})})})]})};l.propTypes={imageUrl:o().string.isRequired,showSupportLink:o().bool};const u=l},23806(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(67142),a=n(28120),i=n.n(a),s=n(48354),o=n(88560),c=n(28547),l=(n(36637),n(10790));const u=e=>{const{productId:t,siteRawUrl:n,siteAdminUrl:a,currentRecommendationsStep:i}=e;return(0,l.jsxs)("div",{className:"jp-license-activation-screen-success-info",children:[(0,l.jsx)("div",{className:"jp-license-activation-screen-success-info--content",children:(0,l.jsx)(r.A,{showText:!1,height:48})}),(0,l.jsx)(o.A,{siteRawUrl:n,productId:t}),(0,l.jsxs)("div",{className:"jp-license-activation-screen-success-info--buttons",children:[(0,l.jsx)(s.F,{currentRecommendationsStep:i,siteAdminUrl:a,siteRawUrl:n,productId:t}),(0,l.jsx)(c.m,{siteRawUrl:n,productId:t})]})]})};u.propTypes={siteRawUrl:i().string,productId:i().number,siteAdminUrl:i().string,currentRecommendationsStep:i().string};const d=u},48354(e,t,n){"use strict";n.d(t,{F:()=>p});var r=n(3924),a=n(46951),i=n(56427),s=n(27723),o=n(28120),c=n.n(o),l=n(73010),u=n(21183),d=(n(85855),n(10790));const __=s.__,p=e=>{const{currentRecommendationsStep:t,siteAdminUrl:n,siteRawUrl:s,productId:o}=e,[c,p]=(0,l.A)(),h=e=>c.map(e=>e.name).includes(e),m=(0,u.p)(o),f=h("Jetpack"),g=h("Jetpack Social"),v="jetpack_social_advanced"===m||"jetpack_social_basic"===m,y=h("Jetpack Protect");if(p)return(0,d.jsx)(i.Button,{className:"jp-license-activation-screen-success-info--button",children:(0,d.jsx)(a.A,{})});if(v&&(f||g))return(0,d.jsx)(i.Button,{className:"jp-license-activation-screen-success-info--button",href:n+(f?"admin.php?page=jetpack#/recommendations/"+("jetpack_social_advanced"===m?"welcome-social-advanced":"welcome-social-basic"):"admin.php?page=jetpack-social"),children:__("Configure my site","jetpack-my-jetpack")});if("jetpack_scan"===m){const e=y?n+"admin.php?page=jetpack-protect":(0,r.A)("jetpack-license-activation-success-scan",{site:s});return(0,d.jsx)(i.Button,{className:"jp-license-activation-screen-success-info--button",href:e,children:__("View scan results","jetpack-my-jetpack")})}return"not-started"===t?(0,d.jsx)(i.Button,{className:"jp-license-activation-screen-success-info--button",href:n+"admin.php?page=jetpack#/recommendations",children:__("Configure my site","jetpack-my-jetpack")}):(0,d.jsx)(i.Button,{className:"jp-license-activation-screen-success-info--button",href:(0,r.A)("license-activation-view-my-plans",{site:s}),children:__("View my plans","jetpack-my-jetpack")})};p.propTypes={siteAdminUrl:c().string.isRequired,currentRecommendationsStep:c().string,siteRawUrl:c().string.isRequired}},28547(e,t,n){"use strict";n.d(t,{m:()=>u});var r=n(3924),a=n(56427),i=n(27723),s=n(28120),o=n.n(s),c=n(21183),l=(n(89648),n(10790));const __=i.__,u=e=>{const{productId:t,siteRawUrl:n}=e,i={jetpack_backup:{text:__("View latest backup","jetpack-my-jetpack"),redirectSource:"jetpack-license-activation-success-backup"},jetpack_complete:{text:__("View latest backup","jetpack-my-jetpack"),redirectSource:"jetpack-license-activation-success-backup"},jetpack_scan:{text:__("View my plans","jetpack-my-jetpack"),redirectSource:"license-activation-view-my-plans"},jetpack_search:{text:__("Configure search","jetpack-my-jetpack"),redirectSource:"jetpack-license-activation-success-search"},jetpack_security:{text:__("View latest backup","jetpack-my-jetpack"),redirectSource:"jetpack-license-activation-success-backup"},default:null}[(0,c.p)(t)];return(0,l.jsx)(l.Fragment,{children:i&&(0,l.jsx)(a.ExternalLink,{className:"jp-license-activation-screen-success-info--external-link",href:(0,r.A)(i.redirectSource,{site:n}),children:i.text})})};u.propTypes={siteRawUrl:o().string,productId:o().number}},49051(e,t,n){"use strict";n.d(t,{A:()=>v});var r=n(90372),a=n(5932),i=n(27723),s=n(28120),o=n.n(s),c=n(51609),l=n(59534)Line truncated
|
||||
__("Hey, %s","jetpack-my-jetpack"),t)}),(0,f.jsx)("h2",{className:m.A.headline,children:__("You have been gifted a Jetpack Golden Token.","jetpack-my-jetpack")}),(0,f.jsxs)("p",{children:[d&&__("This unlocked a lifetime of Jetpack powers for your website. Your exclusive Jetpack Experience is already active.","jetpack-my-jetpack"),!d&&__("This unlocks a lifetime of Jetpack powers for your website. Your exclusive Jetpack Experience awaits.","jetpack-my-jetpack")]})]}),(0,f.jsxs)(o.A,{variant:"primary",weight:"regular",onClick:j,className:m.A.button,children:[d&&__("Awesome!","jetpack-my-jetpack"),!d&&__("Redeem your token","jetpack-my-jetpack")]})]}),(0,f.jsxs)("div",{className:`${m.A["powers-wrap"]} ${m.A["content-wrap"]}`,children:[(0,f.jsxs)("div",{className:m.A["content-wrap-text"],children:[(0,f.jsx)("h2",{className:m.A.headline,children:__("Super powers are ready!","jetpack-my-jetpack")}),(0,f.jsx)("p",{className:m.A.paragraph,children:__("Your Jetpack Golden Token provides a lifetime license for this website and includes the following products:","jetpack-my-jetpack")})]}),(0,f.jsxs)("div",{className:m.A["jetpack-products"],children:[(0,f.jsxs)("div",{children:[(0,f.jsx)(w,{}),(0,f.jsx)("h3",{children:__("VaultPress Backup","jetpack-my-jetpack")}),(0,f.jsx)("p",{children:__("Save every change and get back online quickly with one‑click restores.","jetpack-my-jetpack")})]}),(0,f.jsxs)("div",{children:[(0,f.jsx)(b,{}),(0,f.jsx)("h3",{children:_x("Scan","Plugin name (noun).","jetpack-my-jetpack")}),(0,f.jsx)("p",{children:__("Automated scanning and one‑click fixes to keep your site ahead of security threats.","jetpack-my-jetpack")})]})]}),(0,f.jsx)(o.A,{variant:"primary",weight:"regular",onClick:j,href:window?.myJetpackInitialState?.myJetpackUrl,className:m.A.button,children:__("Explore your new powers","jetpack-my-jetpack")})]})]})})})})}v.propTypes={redeemClick:p().func,tokenRedeemed:p().bool,displayName:p().string,onModalClose:p().func};const y=v},41040(e,t,n){"use strict";n.d(t,{_:()=>a.A,b:()=>r.A});var r=n(49051),a=n(47129)},63673(e,t,n){"use strict";n.d(t,{FALLBACK_CURRENCY:()=>a,FALLBACK_LOCALE:()=>r});n(38443);const r="en",a="USD"},11452(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(63673),a=n(49980),i=n(91167);const s=function(){let e,t;const n=()=>{const t="undefined"!=typeof window?window.wp?.date?.getSettings?.()?.l10n?.locale:void 0,n="undefined"!=typeof window?window?.navigator?.language:void 0;return(e??(t||n)??r.FALLBACK_LOCALE).split("_")[0]};return{setLocale:t=>{e=t},setGeoLocation:e=>{t=e},formatNumber:(e,{decimals:t=0,forceLatin:r=!0,numberFormatOptions:a={}}={})=>{try{return(0,i.j)({browserSafeLocale:n(),decimals:t,forceLatin:r,numberFormatOptions:a}).format(e)}catch{return String(e)}},formatNumberCompact:(e,{decimals:t=0,forceLatin:r=!0,numberFormatOptions:a={}}={})=>{try{return(0,i.c)({browserSafeLocale:n(),decimals:t,forceLatin:r,numberFormatOptions:a}).format(e)}catch{return String(e)}},formatCurrency:(e,r,{stripZeros:i=!1,isSmallestUnit:s=!1,signForPositive:o=!1,forceLatin:c=!0}={})=>(0,a.u)({number:e,currency:r,browserSafeLocale:n(),stripZeros:i,isSmallestUnit:s,signForPositive:o,geoLocation:t,forceLatin:c}),getCurrencyObject:(e,r,{stripZeros:i=!1,isSmallestUnit:s=!1,signForPositive:o=!1,forceLatin:c=!0}={})=>(0,a.v)({number:e,currency:r,browserSafeLocale:n(),stripZeros:i,isSmallestUnit:s,signForPositive:o,geoLocation:t,forceLatin:c})}}},3328(e,t,n){"use strict";n.d(t,{J:()=>c});var r=n(46941),a=n.n(r),i=n(63673);const s=a()("number-formatters:get-cached-formatter"),o=new Map;function c({locale:e,fallbackLocale:t=i.FALLBACK_LOCALE,options:n,retries:r=1}){const a=JSON.stringify([e,n]);try{return o.get(a)??o.set(a,new Intl.NumberFormat(e,n)).get(a)}catch(a){if(s(`Intl.NumberFormat was called with a non-existent locale "${e}"; falling back to ${t}`),r)return c({locale:t,options:n,retries:r-1});throw a}}},54268(e,t,n){"use strict";n.d(t,{ZV:()=>s,qe:()=>o,vA:()=>l,vv:()=>c});const r=(0,n(11452).A)(),{setLocale:a,setGeoLocation:i,formatNumber:s,formatNumberCompact:o,formatCurrency:c,getCurrencyObject:l}=r},76673(e,t,n){"use strict";n.d(t,{a:()=>r});const r={AED:{symbol:"د.إ."},AFN:{symbol:"؋"},ALL:{symbol:"Lek"},AMD:{symbol:"֏"},ANG:{symbol:"ƒ"},AOA:{symbol:"Kz"},ARS:{symbol:"$"},AUD:{symbol:"A$"},AWG:{symbol:"ƒ"},AZN:{symbol:"₼"},BAM:{symbol:"КМ"},BBD:{symbol:"Bds$"},BDT:{symbol:"৳"},BGN:{symbol:"лв."},BHD:{symbol:"د.ب."},BIF:{symbol:"FBu"},BMD:{symbol:"$"},BND:{symbol:"$"},BOB:{symbol:"Bs"},BRL:{symbol:"R$"},BSD:{symbol:"$"},BTC:{symbol:"Ƀ"},BTN:{symbol:"Nu."},BWP:{symbol:"P"},BYR:{symbol:"р."},BZD:{symbol:"BZ$"},CAD:{symbol:"C$"},CDF:{symbol:"FC"},CHF:{symbol:"CHF"},CLP:{symbol:"$"},CNY:{symbol:"¥"},COP:{symbol:"$"},CRC:{symbol:"₡"},CUC:{symbol:"CUC"},CUP:{symbol:"$MN"},CVE:{symbol:"$"},CZK:{symbol:"Kč"},DJF:{symbol:"Fdj"},DKK:{symbol:"kr."},DOP:{symbol:"RD$"},DZD:{symbol:"د.ج."},EGP:{symbol:"ج.م."},ERN:{symbol:"Nfk"},ETB:{symbol:"ETB"},EURLine truncated
|
||||
__("(opens in a new tab)","jetpack-my-jetpack")})]})]})]})})}},85242(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(27723),a=n(42822),i=n(35975),s=n(35519),o=n(52373),c=n(6579),l=n(10790);const __=r.__,u=()=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:o.A["account-description"],children:__("On the next screen, you can connect with an existing account from any of these services or create a new one.","jetpack-my-jetpack")}),(0,l.jsxs)("ul",{className:o.A["account-images"],role:"list",children:[(0,l.jsx)("li",{children:(0,l.jsx)("img",{src:c,className:o.A.wordpress,alt:"WordPress.com"})}),(0,l.jsx)("li",{children:(0,l.jsx)("img",{src:s,className:o.A.google,alt:"Google"})}),(0,l.jsx)("li",{children:(0,l.jsx)("img",{src:a,className:o.A.apple,alt:"Apple"})}),(0,l.jsx)("li",{children:(0,l.jsx)("img",{src:i,className:o.A.github,alt:"GitHub"})})]})]})},91499(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(42947),a=n(28509),i=n(75918),s=n(27723),o=n(63287),c=n(51870),l=n(25994),u=n(72191),d=n(15403),p=n(85242),h=n(52373),m=n(10790);const __=s.__,f=()=>{const[e]=(0,o.ok)(),t="true"===e.get("skip_pricing"),n=(0,l.A)(),{apiRoot:s,apiNonce:f,registrationNonce:g}=(0,c.A)();return(0,m.jsx)(r.A,{showHeader:!1,showBackground:!1,children:(0,m.jsxs)(i.A,{horizontalSpacing:8,horizontalGap:0,children:[(0,m.jsx)(a.A,{className:h.A["relative-col"],children:(0,m.jsx)(u.A,{className:h.A["close-link"],accessibleName:__("Go back to previous screen","jetpack-my-jetpack")})}),(0,m.jsx)(a.A,{children:(0,m.jsx)(d.A,{from:"my-jetpack",redirectUri:n,apiRoot:s,apiNonce:f,registrationNonce:g,skipPricingPage:t,footer:(0,m.jsx)(p.A,{})})})]})})}},15630(e,t,n){"use strict";n.d(t,{L:()=>o});var r=n(27723),a=n(51870),i=n(12660),s=n(10790);const __=r.__;function o(){const{userConnectionData:e}=(0,a.A)();return e.currentUser?.possibleAccountErrors&&Object.keys(e.currentUser.possibleAccountErrors).length>0&&(0,s.jsx)("span",{style:{display:"inline-flex",verticalAlign:"middle"},children:(0,s.jsx)(i.I,{tracksEventName:"my_jetpack_account_error_tooltip_open",tracksEventProps:{location:"connection_status_card",context:"non_owner",error_types:Object.keys(e.currentUser.possibleAccountErrors).join(",")},iconSize:16,className:"account-error-tooltip",children:(0,s.jsx)("div",{children:Object.values(e.currentUser.possibleAccountErrors).map((e,t)=>(0,s.jsx)("p",{style:{marginBottom:"1em"},children:e.message||__("We noticed a possible issue with your account connection that might lead to connection issues.","jetpack-my-jetpack")},`error-${t}`))})})})}},45371(e,t,n){"use strict";n.d(t,{K:()=>o});var r=n(27723),a=n(51870),i=n(15630),s=n(10790);const __=r.__;function o(){const{userConnectionData:e,isUserConnected:t,hasConnectedOwner:n}=(0,a.A)();if(!t&&!n)return null;const o=e.currentUser?.wpcomUser?.display_name||"",c=e.currentUser?.wpcomUser?.email||"",l=e.currentUser?.isMaster;return(0,s.jsxs)("ul",{children:[t?(0,s.jsxs)("li",{children:[l?(0,s.jsx)(s.Fragment,{children:o?(0,r.sprintf)(/* translators: 1 is user name, 2 is email address */
|
||||
__("Connected as owner: %1$s (%2$s)","jetpack-my-jetpack"),o,c):__("User connected (Owner).","jetpack-my-jetpack")}):(0,s.jsx)(s.Fragment,{children:o?(0,r.sprintf)(/* translators: 1 is user name, 2 is email address */
|
||||
__("Connected as %1$s (%2$s)","jetpack-my-jetpack"),o,c):__("User connected.","jetpack-my-jetpack")}),(0,s.jsx)(i.L,{})]}):null,!l&&e?.connectionOwner?(0,s.jsx)("li",{children:(0,r.sprintf)(/* translators: %s: the username of the Jetpack connection owner */
|
||||
__("Also connected: %s (Owner).","jetpack-my-jetpack"),e.connectionOwner)}):null]})}},84596(e,t,n){"use strict";n.d(t,{A:()=>C});var r=n(47425),a=n(39384),i=n(97999),s=n(56427),o=n(47143),c=n(27723),l=n(13022),u=n(51609),d=n(488),p=n(68242),h=n(18117),m=n(64526),f=n(51870),g=n(95042),v=n(45371),y=n(33168),b=n(17757),w=n(87319),j=n(65050),k=n(39428),x=n(10790);const __=c.__,C=({apiRoot:e,apiNonce:t,redirectUri:n=null,title:c=__("Connection","jetpack-my-jetpack"),onDisconnected:C,onUnlinked:A,connectedPlugins:_,connectedSiteId:M,context:S,onConnectUser:E=null})=>{const{isRegistered:N,isUserConnected:O,userConnectionData:P}=(0,f.A)({redirectUri:n}),{lifecycleStats:L}=(0,p.A$)(),{recordEvent:T}=(0,m.A)(),[V,I]=(0,u.useState)(!1),{setConnectionStatus:z,setUserIsConnecting:H}=(0,o.useDispatch)(a.CONNECTION_STORE_ID),D=E||H,R=P.currentUser?.wpcomUser?.avatar,{brokenModules:F}=L||{},{data:B,isLoading:U,isError:q}=(0,d.V)(),W=(0,u.useMemo)(()=>!U&&!q&&(0,h.A)(B).length>0,[U,q,B]),$=F?.needs_user_connection.length>0,Z=(0,u.useMemo)(()=>({user_connection_broken_modules:F?.needs_user_connection.join(", "),site_connection_broken_modules:F?.needs_site_connection.join(", ")}),[F]),G=(0,u.useCallback)(e=>t=>{t&&t.preventDefault(),T("jetpack_myjetpack_connection_manage_dialog_click",{...Z,connection_type:e}),I(!0)},[T,I,Z])("site"),Y=(0,u.useCallback)(e=>{e&&e.preventDefault(),I(!1)},[I]),J=(0,u.useCallback)(e=>{e&&e.preventDefault(),z({isActive:!1,isRegistered:!1,isUserConnected:!1}),C?.()},[C,z]),Q=(0,u.useCallback)(e=>{e&&e.preventDefault(),z({isUserConnected:!1}),A?.()},[A,z]),K=(0,u.useCallback)(e=>{e&&e.preventDefault(),T("jetpack_myjetpack_connection_connect_user_click",Z),D()},[D,T,Z]),X=(0,k.j)(),ee=P.currentUser?.isMaster,te=(0,i.isWoASite)()&&ee,ne=((0,i.currentUserCan)("manage_options")||O)&&O&&!te;return(0,x.jsxs)("section",{className:j.A["connection-status-card"],children:[(0,x.jsx)("h3",{children:c}),(0,x.jsxs)("div",{className:j.A.status,children:[(0,x.jsxs)("div",{className:j.A["avatar-wrapper"],children:[(0,x.jsx)("img",{src:N?w:b,alt:"",className:j.A.jetpack}),(W||$)&&(0,x.jsx)("img",{src:O&&R?R:y,alt:"",className:j.A.avatar})]}),(0,x.jsx)("div",{className:(0,l.A)(j.A.line,j.A[X.status])}),(0,x.jsx)("img",{src:g,alt:"",className:j.A.cloud})]}),(0,x.jsxs)("section",{className:j.A["connection-state"],children:[(0,x.jsx)("h4",{children:(0,x.jsxs)(s.Button,{variant:"tertiary",onClick:G,disabled:!ne,children:[X.label,ne&&(0,x.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",role:"presentation",children:(0,x.jsx)("path",{d:"M10.6004 6L9.40039 7L14.0004 12L9.40039 17L10.6004 18L16.0004 12L10.6004 6Z",fill:"currentColor"})})]})}),(0,x.jsxs)("div",{children:[(0,x.jsx)(r.Ay,{variant:"body",className:j.A.description,children:X.description}),"CONNECT_USER"===X.action?(0,x.jsx)(s.Button,{variant:"link",onClick:K,children:__("Connect my account","jetpack-my-jetpack")}):null]})]}),(0,x.jsx)(v.K,{}),(0,x.jsx)(a.ManageConnectionDialog,{apiRoot:e,apiNonce:t,onDisconnected:J,onUnlinked:Q,connectedPlugins:_,connectedSiteId:M,connectedUser:P,isOpen:V,onClose:Y,context:S})]})}},39428(e,t,n){"use strict";n.d(t,{j:()=>s});var r=n(97999),a=n(27723),i=n(51870);const __=a.__;function s(){const{isRegistered:e,isUserConnected:t,hasConnectedOwner:n}=(0,i.A)();return e?t?{label:__("Site and account connected","jetpack-my-jetpack"),description:__("Everything looks good.","jetpack-my-jetpack"),status:"success"}:(0,r.currentUserCan)("manage_options")||n?{label:__("Site connected","jetpack-my-jetpack"),description:__("Connect your account to unlock all the features.","jetpack-my-jetpack"),action:"CONNECT_USER",status:"warning"}:{label:__("Site connected","jetpack-my-jetpack"),description:__("A site admin will need to connect their account before you can connect yours.","jetpack-my-jetpack"),status:"warning"}:{label:__("Site not connected","jetpack-my-jetpack"),description:__("Connect your site with one click.","jetpack-my-jetpack"),action:"CONNECT_SITE",status:"error"}}},379(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(39384),a=n(51609),i=n(68242),s=n(51870),o=n(84596),c=n(10790);function l(){const{apiRoot:e,apiNonce:t,topJetpackMenuItemUrl:n,connectedPlugins:l}=(0,s.A)(),{adminUrl:u}=(0,i.A$)(),d=(0,a.useCallback)(()=>{window.location.href=(0,r.getUserConnectionUrl)()},[]);return(0,c.jsx)(o.A,{apiRoot:e,apiNonce:t,redirectUri:n,onConnectUser:d,connectedPlugins:l,onDisconnected:()=>{u?window.location.href=u:document?.location?.reload()},onUnlinked:()=>{document?.location?.reload()}})}},35167(e,t,n){"use strict";n.d(t,{A:()=>b});var r=n(28509),a=n(75918),i=n(47425),s=n(56427),o=n(27723),c=n(39558),l=n(48329),u=n(24285),d=n(13022),p=n(51609),h=n(83804),m=n(64526),f=n(81434),g=n(89674),v=n(95864),y=n(10790);const __=o.__,_n=o._n,b=()=>{const e=(0,p.useRef)(null),{recordEvent:t}=(0,m.A)(),{recommendedModules:n,redoEvaluation:o,removeEvaluationResult:b,isProductOwnershipLoading:w}=(0,h.A)(),[j,k]=(0,p.uLine truncated
|
||||
// translators: %1$s is a product name, %2$s is the date the product was gifted.
|
||||
__("%1$s was gifted on %2$s. It gives you access to a lifetime subscription of Jetpack VaultPress Backup and Jetpack Scan.","jetpack-my-jetpack"),e,(0,s.dateI18n)("F j, Y",t))})]})})})]})}},16710(e,t,n){"use strict";n.d(t,{g:()=>o});var r=n(56427),a=n(13022),i=n(37574),s=n(10790);function o({icon:e,title:t,headingTag:n="h3",description:o,link:c,className:l,onClick:u}){return(0,s.jsxs)("section",{className:(0,a.A)(i.A.wrapper,l),children:[e?(0,s.jsx)("div",{className:i.A.icon,children:e}):null,(0,s.jsx)(n,{className:i.A.heading,children:c?(0,s.jsx)(r.ExternalLink,{href:c,onClick:u,children:t}):t}),o?(0,s.jsx)("p",{className:i.A.description,children:o}):null]})}},11017(e,t,n){"use strict";n.d(t,{l:()=>a});var r=n(10790);function a(){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",children:(0,r.jsx)("path",{d:"M21.1333 10.7004L16.8333 6.40039L15.7333 7.50039L20.0333 11.8004C20.1333 11.9004 20.1333 12.1004 20.0333 12.2004L15.7333 16.5004L16.8333 17.6004L21.1333 13.3004C21.8333 12.5004 21.8333 11.4004 21.1333 10.7004ZM4.5333 11.8004L8.8333 7.50039L7.8333 6.50039L3.5333 10.8004C2.8333 11.5004 2.8333 12.6004 3.5333 13.3004L7.8333 17.6004L8.9333 16.5004L4.6333 12.2004C4.4333 12.1004 4.4333 11.9004 4.5333 11.8004Z",fill:"currentColor"})})}},36319(e,t,n){"use strict";n.d(t,{T:()=>a});var r=n(10790);function a(){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,r.jsx)("path",{d:"M18 4H6C4.9 4 4 4.9 4 6V18.9C4 19.5 4.5 20 5.1 20C5.4 20 5.6 19.9 5.9 19.7L8.5 17H18C19.1 17 20 16.1 20 15V6C20 4.9 19.1 4 18 4ZM18.5 15C18.5 15.3 18.3 15.5 18 15.5H7.9L5.5 17.9V6C5.5 5.7 5.7 5.5 6 5.5H18C18.3 5.5 18.5 5.7 18.5 6V15Z",fill:"currentColor"})})}},85580(e,t,n){"use strict";n.d(t,{s:()=>a});var r=n(10790);function a(){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",children:(0,r.jsx)("path",{d:"M14.7694 7.12815L17.0294 4.86815C16.3421 4.62306 15.6009 4.57062 14.886 4.71651C14.1711 4.8624 13.5097 5.20107 12.9734 5.69584C12.4371 6.19061 12.0464 6.82264 11.8435 7.52352C11.6406 8.2244 11.6333 8.96742 11.8224 9.67215L6.49437 15.0002C6.30334 15.1846 6.15098 15.4053 6.04616 15.6493C5.94134 15.8934 5.88617 16.1558 5.88386 16.4214C5.88156 16.6869 5.93216 16.9503 6.03272 17.1961C6.13328 17.4419 6.28179 17.6652 6.46958 17.8529C6.65736 18.0407 6.88066 18.1892 7.12646 18.2898C7.37225 18.3904 7.63561 18.441 7.90117 18.4387C8.16673 18.4363 8.42917 18.3812 8.67317 18.2764C8.91718 18.1715 9.13787 18.0192 9.32237 17.8282L14.6514 12.5002C15.3562 12.6893 16.0994 12.682 16.8004 12.4791C17.5014 12.2762 18.1335 11.8854 18.6283 11.3489C19.1231 10.8125 19.4618 10.151 19.6076 9.43588C19.7533 8.7208 19.7007 7.97946 19.4554 7.29215L17.1944 9.55215L15.2824 9.04015L14.7694 7.12815ZM7.55537 16.7682C7.50761 16.722 7.46952 16.6669 7.44331 16.6059C7.41711 16.5449 7.40332 16.4792 7.40274 16.4129C7.40216 16.3465 7.41481 16.2806 7.43995 16.2192C7.46509 16.1577 7.50222 16.1019 7.54917 16.055C7.59611 16.008 7.65194 15.9709 7.71339 15.9457C7.77484 15.9206 7.84068 15.908 7.90707 15.9085C7.97346 15.9091 8.03907 15.9229 8.10007 15.9491C8.16107 15.9753 8.21624 16.0134 8.26237 16.0612C8.35344 16.1555 8.40384 16.2818 8.4027 16.4129C8.40156 16.544 8.34898 16.6694 8.25627 16.7621C8.16357 16.8548 8.03816 16.9073 7.90707 16.9085C7.77597 16.9096 7.64967 16.8592 7.55537 16.7682Z",fill:"currentColor"})})}},56894(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(56427),a=n(51609),i=n(7604),s=n(10790);const o=function(){const[e,t]=(0,a.useState)(!0),n=(0,a.useCallback)(()=>t(!1),[]);if(!e)return null;if(!Object.hasOwn(window,"JP_IDENTITY_CRISIS__INITIAL_STATE"))return null;const{containerID:o,isSafeModeConfirmed:c}=window.JP_IDENTITY_CRISIS__INITIAL_STATE;return!o||c?null:(0,s.jsx)(r.Modal,{onRequestClose:n,overlayClassName:i.A.modal,children:(0,s.jsx)("div",{id:o,className:i.A.container})})}},12660(e,t,n){"use strict";n.d(t,{I:()=>l});var r=n(11883),a=n(56427),i=n(29491),s=n(51609),o=n(64526),c=(n(43979),n(10790));const l=({children:e,className:t,icon:n="info-outline",iconSize:l=14,tracksEventName:u,tracksEventProps:d={},...p})=>{const{recordEvent:h}=(0,o.A)(),m=(0,s.useRef)(),f=(0,i.useViewportMatch)("medium","<"),[g,v]=(0,s.useState)(!1),y=(0,s.useCallback)(()=>v(e=>(!0==!e&&u&&h(`jetpack_${u}`,{page:"my-jetpack",...d}),!e)),[h,u,d]),b=(0,s.useCallback)(()=>{m.current&&!m.current.contains(m.current.ownerDocument.activeElement)&&v(!1)},[v,m]);return(0,c.jsxs)("span",{className:t,children:[(0,c.jsx)("button",{className:"info-tooltip__button",onClick:y,ref:m,children:(0,c.jsx)(r.A,{icon:n,size:l})}),g&&(0,c.jsx)(a.Popover,{placement:f?"top-end":"right",noArrow:!1,offset:10,focusOnMount:"firstElement",onClose:b,...p,children:(0,c.jsx)("div",{className:"info-tooltip__content",children:e})})]})}},81434(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(13022),a=n(92767),i=n(10790);const s=({heightLine truncated
|
||||
__("%s has been deactivated.","jetpack-my-jetpack"),e.name);p(t)}else{const t="activation"===n?(0,o.sprintf)(/* translators: %s is the module name */
|
||||
__("Failed to activate %s.","jetpack-my-jetpack"),e.name):(0,o.sprintf)(/* translators: %s is the module name */
|
||||
__("Failed to deactivate %s.","jetpack-my-jetpack"),e.name);h(t)}},[e.module,e.name,h,p]),v=(0,c.useCallback)(async t=>{const r=t.target.checked;m&&m({action:r?"activate":"deactivate",productSlug:e.module,productType:"module",productStatus:e.activated?"active":"inactive",productData:e});const a=await n({name:e.module,active:r});await g({noticeType:a?"success":"error",action:r?"activation":"deactivation"})},[n,e,g,m]);return(0,d.jsx)(i.FormToggle,{disabled:f,checked:e.activated,onChange:v,"aria-label":(0,o.sprintf)(/* translators: %s is the module name */
|
||||
__("Toggle %s module","jetpack-my-jetpack"),e.name),"aria-describedby":t})}},84202(e,t,n){"use strict";n.d(t,{s:()=>f});var r=n(2395),a=n(56427),i=n(64414),s=n(27723),o=n(51609),c=n(94549),l=n(2651),u=n(64936),d=n(97707),p=(n(405),n(10790));const __=s.__,h=()=>{},m=e=>e.module;function f({modules:e}){const t=(0,o.useId)(),n=(0,o.useMemo)(()=>[{id:"title",label:__("Title","jetpack-my-jetpack"),getValue:({item:e})=>e.name,render:({item:e})=>(0,p.jsxs)("div",{className:u.A["module-title-wrapper"],children:[(0,p.jsx)("span",{className:u.A["module-name"],children:e.name}),(0,p.jsx)("span",{id:`${t}-description-${e.module}`,className:u.A["module-description"],children:e.description})]})},{id:"toggle",label:__("Toggle","jetpack-my-jetpack"),render:({item:e})=>{const{isAvailable:n,reason:i}=(0,d.X)(e);return n?(0,p.jsxs)(a.Flex,{gap:4,className:u.A["toggle-wrap"],children:[(0,p.jsx)(c.f,{module:e}),(0,p.jsx)(l.j,{module:e,describedby:`${t}-description-${e.module}`})]}):(0,p.jsx)(r.Ex,{intent:"warning",children:i})}}],[t]);return(0,p.jsx)("div",{className:u.A.wrapper,children:(0,p.jsx)(i.A,{data:e,fields:n,view:{type:"table",titleField:"title",fields:["toggle"]},getItemId:m,paginationInfo:{totalItems:e.length,totalPages:1},onChangeView:h,defaultLayouts:{table:{}}})})}},97707(e,t,n){"use strict";n.d(t,{X:()=>s});var r=n(97999),a=n(27723);const __=a.__,i=["waf","wordads"];function s(e){return(0,r.getScriptData)().site.is_multisite&&i.includes(e.module)?{isAvailable:!1,reason:__("Not available on multisite","jetpack-my-jetpack")}:{isAvailable:!0}}},52912(e,t,n){"use strict";n.d(t,{A:()=>V});var r=n(59244),a=n(74875),i=n(42947),s=n(28509),o=n(75918),c=n(60442),l=n(47656),u=n(27723),d=n(13022),p=n(51609),h=n(63287),m=n(76007),f=n(83804),g=n(58402),v=n(62902),y=n(68242),b=n(16700),w=n(13244),j=n(64526),k=n(31368),x=n(51870),C=n(7436),A=n(20720),_=n(35167),M=n(56894),S=n(8298),E=n(35935),N=n(86955),O=n(51944),P=n(89910),L=n(10790);const __=u.__,T=({message:e,title:t,options:n})=>{const{recordEvent:r}=(0,j.A)();(0,p.useEffect)(()=>{const e=n?.tracksArgs||{};r("jetpack_myjetpack_global_notice_view",{notice_id:n.id,...e})},[n.id,r,n?.tracksArgs]);const[i]=(0,c.A)(["md"],[">"]),s=n.actions?.map(e=>(0,L.jsx)(a.A,{customClass:P.A.cta,...e},e.key||e.label));return(0,L.jsx)("div",{className:(0,d.A)(P.A.notice,{[P.A["bigger-than-medium"]]:i}),children:(0,L.jsx)(l.A,{hideCloseButton:!0,...n,title:t,actions:s,children:(0,L.jsx)("div",{className:P.A.message,children:e})})})};function V(){(0,C.A)();const{adminUrl:e,sandboxedDomain:t,isDevVersion:n,userIsAdmin:a}=(0,y.A$)(),{isSectionVisible:c}=(0,f.A)(),{apiRoot:l,apiNonce:u}=(0,x.A)(),{currentNotice:d}=(0,p.useContext)(m.g),{message:V,title:I,options:z}=d||{},{data:H,isLoading:D,isError:R}=(0,v.A)(),F=(0,g.A)();(0,p.useEffect)(()=>{F()},[F]);const B=(0,k.A)(),{recordEvent:U}=(0,j.A)(),[q,W]=(0,p.useState)(!1),$=(0,h.g)(),Z=(0,p.useRef)(null),G=(0,N.I)($.section)?$.section:E.Yd;(0,p.useLayoutEffect)(()=>{let e={};!R&&Object.keys(H)?.length&&(e={red_bubble_alerts:Object.keys(H).join(",")}),D||(U("jetpack_myjetpack_page_view",{...e,tab_name:G,previous_tab:Z.current}),Z.current=G)},[U,H,R,D,G]),window.location.hash.includes("?reload=true")&&(window.history.replaceState(null,"",window.location.href.replace("?reload=true","")),window.location.reload(),W(!0));const Y="jetpack-onboarding"===(0,A.x)("from");if(q)return null;const J={label:"Reset options (devs)",role:"button",onClick:()=>(0,w.A)(),onKeyDown:e=>(0,b.A)(e,()=>(0,w.A)())};return(0,L.jsxs)(i.A,{siteAdminUrl:e,sandboxedDomain:t,apiRoot:l,apiNonce:u,title:"Jetpack",optionalMenuItems:n&&a?[J]:[],className:P.A["my-jetpack-screen"],showBottomBorder:!1,children:[(0,L.jsx)("h1",{className:"screen-reader-text",children:__("My Jetpack","jetpack-my-jetpack")}),(0,L.jsx)(M.A,{}),c&&a&&(0,L.jsx)(_.A,{}),Y&&(0,L.jsx)(O.A,{}),(0,L.jsx)(S.E,{beforeContent:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(r.D,{}),!B&&(0,L.jsx)(o.A,{horizontalSpacing:0,children:(0,L.jsx)(s.A,{children:(0,L.jsx)("div",{id:"jp-admin-notices",className:"my-jetpack-jitm-card"})})}),V&&(0,L.jsx)(o.A,{horizontalSpacing:3,horizontalGap:3,children:(0,L.jsx)(s.A,{children:(0,L.jsx)(T,{message:V,title:I,options:z})})})]})})]})}},35935(e,t,n){"use strict";n.d(t,{Yd:()=>r,pd:()=>a,y8:()=>i});const r="overview",a="products",i="help"},10726(e,t,n){"use strict";n.d(t,{x:()=>s});var r=n(13022),a=n(45340),i=n(10790);function s(e){return(0,i.jsx)("div",{...e,className:(0,r.$)(a.A["full-width-separator"],e.className)})}},78873(e,t,n){"use strict";n.d(t,{B:()=>h});var r=n(3924),a=n(27723),i=n(51609),s=n(16710),o=n(11017),c=n(36319),l=n(85580),u=n(70616),d=n(34101),p=n(10790);const __=a.__;function h(){const{trackHelpRequest:e}=(0,d.k)(),t=(0,i.useCallback)(()=>{e("contact_support","clicked_ask_us_a_question_card")},[e]),n=(0,i.useCallback)(()=>{e("documentation","clicked_troubleshooting_card")},[e]),a=(0,i.useCallback)(()=>{e("documentation","clicked_developer_resources_card")},[e]);return(Line truncated
|
||||
__("Deactivate %s","jetpack-my-jetpack"),e.name):(0,i.sprintf)(/* translators: %s is the product name */
|
||||
__("Activate %s","jetpack-my-jetpack"),e.name)})]})}function v({product:e,module:t}){const{data:n}=(0,p.G)();if(!e.hasPaidPlanForProduct&&!n?.[e.slug])return(0,m.jsx)(f,{product:e});if(c.EO.includes(e.slug)&&e.standalonePluginInfo?.isStandaloneInstalled)return(0,m.jsx)(g,{product:e,active:e.standalonePluginInfo.isStandaloneActive});switch(e.status){case c.hp.INACTIVE:case c.hp.MODULE_DISABLED:case c.hp.NEEDS_ACTIVATION:case c.hp.ABSENT_WITH_PLAN:case c.hp.ABSENT:case c.hp.NEEDS_PLAN:return(0,m.jsx)(f,{product:e});default:return(0,m.jsx)(g,{product:e,disabled:!t?.available})}}},77801(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(2395),a=n(56427),i=n(132),s=n(75506),o=n(37087),c=n(32462),l=n(10790);function u({product:e,headingLevel:t=3,module:n}){const u=`h${t}`,d=i.py[e.slug],{isAvailable:p,reason:h}=(0,c.G8)(e);return(0,l.jsxs)(a.Card,{className:o.A["product-card"],children:[(0,l.jsx)(a.CardHeader,{children:(0,l.jsxs)(a.Flex,{children:[(0,l.jsx)(a.FlexBlock,{children:(0,l.jsxs)(a.Flex,{justify:"start",gap:4,children:[d?(0,l.jsx)(a.Flex,{className:o.A["icon-wrapper"],children:(0,l.jsx)(d,{})}):null,(0,l.jsx)(u,{className:o.A["card-title"],children:e.name})]})}),p?(0,l.jsx)(a.FlexItem,{children:(0,l.jsx)(s.e,{product:e,module:n})}):null]})}),(0,l.jsx)(a.CardBody,{children:(0,l.jsx)("span",{className:o.A["card-description"],children:e.description})}),p?null:(0,l.jsx)(a.CardFooter,{children:(0,l.jsx)(r.Ex,{intent:"warning",children:h})})]})}},21774(e,t,n){"use strict";n.d(t,{Z:()=>c});var r=n(56427),a=n(84202),i=n(77801),s=n(37087),o=n(10790);function c({section:e}){return e.cards?.length||e.modules?.length?(0,o.jsxs)(r.Flex,{as:"section",direction:"column",justify:"start",gap:6,expanded:!1,className:s.A["product-section"],children:[(0,o.jsx)("h2",{className:s.A["section-heading"],children:e.title}),e.cards?.length?(0,o.jsx)(r.__experimentalGrid,{as:"ul",gap:6,className:s.A["product-cards"],children:e.cards.map(e=>(0,o.jsx)("li",{children:(0,o.jsx)(i.A,{product:e.product,module:e.module})},e.product.slug))}):null,e.modules?.length?(0,o.jsx)(a.s,{modules:e.modules}):null]}):null}},43429(e,t,n){"use strict";n.d(t,{K:()=>o,n:()=>c});var r=n(51609),a=n(64526),i=n(10790);const s=(0,r.createContext)(null),o=({children:e,currentFilter:t,searchTerm:n})=>{const{recordEvent:o}=(0,a.A)(),c={trackFilterChange:(0,r.useCallback)(e=>{o("jetpack_myjetpack_products_filter_change",{filter_type:e.filterType,previous_filter:e.previousFilter,new_filter:e.newFilter,search_term:e.searchTerm||""})},[o]),trackProductAction:(0,r.useCallback)(e=>{const r="name"in e.productData?e.productData.name:"";o("jetpack_myjetpack_product_action",{action:e.action,product_slug:e.productSlug,product_name:r,product_type:e.productType,product_status:e.productStatus,current_filter:t,search_term:n||""})},[o,t,n]),trackEmptyResults:(0,r.useCallback)(e=>{o("jetpack_myjetpack_products_empty_results",{empty_state_type:e.emptyStateType,search_term:e.searchTerm||"",active_filter:e.activeFilter,sections_checked:e.sectionsChecked})},[o])};return(0,i.jsx)(s.Provider,{value:c,children:e})},c=()=>(0,r.useContext)(s)},51597(e,t,n){"use strict";n.d(t,{l:()=>h});var r=n(51609),a=n(63287),i=n(66291),s=n(84127),o=n(37260),c=n(43429),l=n(37087),u=n(32462),d=n(10790);const p=({selectedFilter:e,setSelectedFilter:t,search:n,setSearch:a})=>{const u=(0,r.useRef)(null),p=(0,r.useRef)(""),{trackFilterChange:h}=(0,c.n)(),m=(0,r.useCallback)(n=>{h({filterType:"category",previousFilter:e,newFilter:n}),t(n)},[e,h,t]),f=(0,r.useCallback)(t=>{a(t),u.current&&clearTimeout(u.current),u.current=setTimeout(()=>{t!==p.current&&(h({filterType:"search",previousFilter:e,newFilter:e,searchTerm:t}),p.current=t)},500)},[e,h,a]);return(0,r.useEffect)(()=>()=>{u.current&&clearTimeout(u.current)},[]),(0,d.jsxs)("div",{className:l.A["products-wrapper"],children:[(0,d.jsx)("div",{className:l.A["filters-wrapper"],children:(0,d.jsx)(o.C,{onChangeFilter:m,onSearch:f,search:n,selectedFilter:e})}),(0,d.jsx)("div",{className:l.A["filtered-products-wrapper"],children:"included"===e?(0,d.jsx)(i.s,{search:n}):(0,d.jsx)(s.U,{search:n,selectedFilter:e})})]})},h=()=>{const[e,t]=(0,a.ok)(),n=e.get("filter"),i=(0,u.rm)(n)?n:"all",s=e.get("search")||"",o=(0,r.useCallback)(n=>{const r=new URLSearchParams(e);r.set("filter",n),t(r,{replace:!0})},[e,t]),l=(0,r.useCallback)(n=>{const r=new URLSearchParams(e);n?r.set("search",n):r.delete("search"),t(r,{replace:!0})},[e,t]);return(0,d.jsx)(c.K,{currentFilter:i,searchTerm:s,children:(0,d.jsx)(p,{selectedFilter:i,setSelectedFilter:o,search:s,setSearch:l})})}},28968(e,t,n){"use strict";n.d(t,{E:()=>o});var r=n(11876),a=n(56427),i=n(10790);const s=[{cards:["card-1","card-2","card-3"]},{cards:["card-1","card-2"]}];function o(){return(0,i.jsx)(a.Flex,{gap:12,direction:"column",children:s.map((e,t)=>(0,i.jsx)(a.FlexItem,{children:(0,i.jsxs)(a.Flex,{gap:6,direction:"column",children:[(0,i.jsx)(a.FlexItem,{style:{width:"128px",borderRadius:"8px",overflow:"hidden"},children:(0,i.jLine truncated
|
||||
// translators: %1$s is the formatted date to display, i.e.- November 24th, 2024
|
||||
__("Expiring soon on %1$s","jetpack-my-jetpack"),t):(0,l.sprintf)(
|
||||
// translators: %1$s is the formatted date to display, i.e.- November 24th, 2024
|
||||
__("Expired on %1$s","jetpack-my-jetpack"),t):!n&&s?(0,l.sprintf)(
|
||||
// translators: %1$s is the name of the hosting partner. i.e.- Bluehost, InMotion, Pressable, Jurassic Ninja, etc..
|
||||
__("Managed by: %1$s","jetpack-my-jetpack"),s):(0,l.sprintf)(
|
||||
// translators: %1$s is the formatted date to display, i.e.- November 24th, 2024
|
||||
__("Expires on %1$s","jetpack-my-jetpack"),t)},[n,w,b,s,m]),M=(0,d.useCallback)(()=>w?b?(0,C.jsx)(a.A,{href:v,isExternalLink:!0,variant:"link",weight:"regular",children:__("Renew subscription","jetpack-my-jetpack")}):(0,C.jsx)(a.A,{href:g,isExternalLink:!0,variant:"link",weight:"regular",children:__("Resume subscription","jetpack-my-jetpack")}):null,[w,b,g,v]);return(0,j.b)(e)?(0,C.jsxs)(r.Ay,{variant:"body",className:x.A["expire-date"],children:[(0,C.jsx)("span",{className:x.A["expire-date--with-icon"],children:__("Never Expires","jetpack-my-jetpack")}),(0,C.jsx)(k.k,{productName:o,giftedDate:m})]}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(r.Ay,{variant:"body",className:(0,u.A)(x.A["expire-date"],A),children:_()}),w&&(0,C.jsx)(r.Ay,{children:M()})]})},M=({numberOfPurchases:e=0})=>(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("h3",{children:_n("Plan","Plans",e||1,"jetpack-my-jetpack")}),(0,C.jsx)("div",{className:x.A.logo,children:(0,C.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,C.jsx)("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H20C22.2091 0 24 1.79086 24 4V20C24 22.2091 22.2091 24 20 24H4C1.79086 24 0 22.2091 0 20V4Z",fill:"#003010"}),(0,C.jsx)("path",{d:"M12 4C7.58779 4 4 7.58779 4 12C4 16.4122 7.58779 20 12 20C16.4122 20 20 16.4122 20 12C20 7.58779 16.4122 4 12 4ZM11.5878 13.3282H7.60305L11.5878 5.57252V13.3282ZM12.3969 18.4122V10.6565H16.3817L12.3969 18.4122Z",fill:"#0CED57"})]})})]}),S=({numberOfPurchases:e})=>{const{recordEvent:t}=(0,v.A)(),{isUserConnected:n}=(0,y.A)(),{detail:r}=(0,m.A)("complete"),c=r.hasPaidPlanForProduct,l=_n("Manage your plan","Manage your plans",e,"jetpack-my-jetpack"),u=__("Purchase a plan","jetpack-my-jetpack"),p=(0,d.useCallback)(()=>{t("jetpack_myjetpack_plans_manage_click")},[t]),h=(0,d.useCallback)(()=>{t("jetpack_myjetpack_plans_view_included_features_click")},[t]),f=(0,d.useCallback)(()=>{t("jetpack_myjetpack_plans_purchase_click")},[t]),j=(0,d.useCallback)(()=>{t("jetpack_myjetpack_activate_license_click")},[t]);let k;k=n?e>0?_x("Activate a new license","Activate a new license button text","jetpack-my-jetpack"):_x("Activate a license","Activate a license button text","jetpack-my-jetpack"):_x("Activate a license (requires a user connection)","Activate a license button text","jetpack-my-jetpack");const{loadAddLicenseScreen:A=""}=(0,g.A$)();return(0,C.jsxs)("ul",{className:x.A["actions-list"],children:[e>0&&(0,C.jsx)("li",{className:x.A["actions-list-item"],children:(0,C.jsx)(o.ExternalLink,{onClick:p,href:(0,b.A)(),children:l})}),e>0&&(0,C.jsx)("li",{className:x.A["actions-list-item"],children:(0,C.jsx)(a.A,{onClick:h,href:(0,s.getMyJetpackUrl)("#/products?filter=included"),variant:"link",weight:"regular",children:__("View included features","jetpack-my-jetpack")})}),!c&&(0,C.jsx)("li",{className:x.A["actions-list-item"],children:(0,C.jsx)(a.A,{onClick:f,href:(0,w.A)(),weight:"regular",variant:"link",isExternalLink:!0,children:u})}),!c&&A&&(0,C.jsx)("li",{className:x.A["actions-list-item"],children:(0,C.jsx)(a.A,{onClick:j,href:n?(0,s.getMyJetpackUrl)("#/add-license"):(0,i.getUserConnectionUrl)(),variant:"link",weight:"regular",children:k})})]})},E=()=>{const e=!!(0,g.A$)("userIsAdmin"),{isSiteConnected:t}=(0,y.A)(),n=(0,f.A)({name:h.Ck,query:{path:h.tb},options:{enabled:t}}),{isLoading:a,isError:i}=n,s=n.data,o=s&&!a&&!i,c=o?s.length:0;return(0,C.jsxs)("section",{className:x.A.container,children:[(0,C.jsx)(M,{numberOfPurchases:c}),(0,C.jsx)("div",{className:x.A["plans-wrapper"],children:o&&(c?s.map(e=>(0,C.jsx)(A,{purchase:e},`purchase-${e.product_name}`)):(0,C.jsxs)("section",{className:x.A["plan-container"],children:[(0,C.jsxs)("h4",{children:[__("Jetpack Essentials","jetpack-my-jetpack"),(0,C.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",role:"presentation",children:(0,C.jsx)("path",{d:"M10.6004 6L9.40039 7L14.0004 12L9.40039 17L10.6004 18L16.0004 12L10.6004 6Z",fill:"black"})})]}),(0,C.jsx)(r.Ay,{variant:"body",className:(0,u.A)(x.A["expire-date"]),children:__("Free","jetpack-my-jetpack")})]}))}),e&&(0,C.jsx)(S,{numberOfPurchases:c})]})}},5410(e,t,n){"use strict";n.d(t,{Ay:()=>k});var r=n(27723),a=n(13022),i=n(51609),s=n(38837),o=n(488),c=n(65350),l=n(64526),u=n(36312),d=n(51870),p=n(17885),h=n(96214),m=n(62450),f=n(81434),g=n(56710),v=n(27879),y=n(12854),b=n(45681),w=n(10790);const __=r.__,j=e=>`product-card-title-${e}`,k=e=>{const{name:t,Description:n,status:r,admin:k,isDataLoading:x,slug:C,additionalActions:A,primaryActionOverride:_,children:M,onMouseEnter:S,onMouseLeave:E,recommendation:N,customLoadTracks:O,manageUrl:P,variant:L="default"}=e;let{secondaryAction:T}=e;const[V,I]=(0,i.useState)(!1),{data:{ownedProducts:z}}=(0,c.A)(),H=z?.includes(C),D=r===s.hp.EXPIRED||r===s.hp.NEEDS_ATTENTION__ERROR,R=r===s.hp.EXPIRING_SOON||r===s.hp.NEEDS_ATTENTION__WARNING,F=r===s.hp.ABSENT||r===s.hp.ABSENT_WITH_PLAN,B=r===s.hp.NEEDS_PLAN,U=(0,a.A)({[b.A.plugin_absent]Line truncated
|
||||
// translators: %s is the number of days since the last backup
|
||||
_n("%s day ago","%s days ago",e,"jetpack-my-jetpack"),e):n>0?(0,o.sprintf)(
|
||||
// translators: %s is the number of hours since the last backup
|
||||
_n("%s hour ago","%s hours ago",n,"jetpack-my-jetpack"),n):r>0?(0,o.sprintf)(
|
||||
// translators: %s is the number of minutes since the last backup
|
||||
_n("%s minute ago","%s minutes ago",r,"jetpack-my-jetpack"),r):(0,o.sprintf)(
|
||||
// translators: %s is the number of seconds since the last backup
|
||||
_n("%s second ago","%s seconds ago",a,"jetpack-my-jetpack"),a)}},A=e=>{const{detail:t}=(0,h.A)(x),{status:n,doesModuleNeedAttention:o}=t,l=!!o,u=o?.data?.status||"",p=n===d.hp.ACTIVE||n===d.hp.CAN_UPGRADE,{siteUrl:m=""}=(0,f.A$)(),{reasonContent:g,isLoading:C}=(0,v.A)()||{},{title:A,text:M}=g||{};if(p)return(0,k.jsx)(_,{slug:x,...e});const S=n===d.hp.INACTIVE&&"backups-deactivated"===u,E=n===d.hp.NEEDS_ATTENTION__ERROR&&l,N=(0,r.A)("jetpack-backup-support-reactivate",{site:m,query:`subject=${encodeURIComponent(__("Please reactivate Backup on my site","jetpack-my-jetpack"))}`});return(0,k.jsxs)(y.A,{...e,slug:x,Description:(E||S)&&(()=>null),admin:!S&&e.admin,children:[C&&(0,k.jsx)(w.A,{height:"75px",width:"100%"}),S&&!C&&(0,k.jsx)("div",{className:j.A.backupErrorContainer,children:(0,k.jsx)("div",{className:j.A.contentContainer,children:(0,k.jsx)(a.Ay,{variant:"body-small",children:(0,s.createInterpolateElement)(__("Backup was manually turned off. Please <a>contact support</a> to reactivate it.","jetpack-my-jetpack"),{a:(0,k.jsx)(i.ExternalLink,{href:N})})})})}),E&&!C&&(0,k.jsxs)("div",{className:j.A.backupErrorContainer,children:[(0,k.jsx)("div",{className:j.A.iconContainer,children:(0,k.jsx)(c.A,{icon:"notice",size:16,className:j.A.iconError})}),(0,k.jsxs)("div",{className:j.A.contentContainer,children:[(0,k.jsxs)(a.Ay,{variant:"body-small",className:"value-section__heading",children:[__("The last backup attempt failed.","jetpack-my-jetpack"),(0,k.jsx)(b.I,{tracksEventName:"backup_card_tooltip_open",tracksEventProps:{location:"backup-error",status:n,backup_status:u,feature:"jetpack-backup"},expandOnMobile:!0,children:(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("h3",{children:A}),(0,k.jsx)("p",{children:M}),(0,k.jsx)("p",{children:__("Check out our troubleshooting guide or contact your hosting provider to resolve the issue.","jetpack-my-jetpack")})]})})]}),(0,k.jsx)(a.Ay,{variant:"body-small",className:j.A.error_description,children:__("Check out our troubleshooting guide.","jetpack-my-jetpack")})]})]})]})},_=e=>{const{data:t,isLoading:n}=(0,m.A)({name:p.Dz,query:{path:p.DB}}),i=t?.last_rewindable_event,s=i?.published,l=t?.undo_backup_id,{recordEvent:u}=(0,g.A)(),{siteSuffix:d=""}=(0,f.A$)(),h={href:(0,r.A)("jetpack-backup-undo-cta",{path:l,site:d}),size:"small",variant:"primary",weight:"regular",label:__("Undo","jetpack-my-jetpack"),onClick:()=>{u("jetpack_myjetpack_backup_card_undo_click",{product:e.slug,undo_backup_id:l})},isExternalLink:!0};return(0,k.jsx)(y.A,{...e,showMenu:!0,isDataLoading:n,Description:i?()=>(0,k.jsxs)(a.Ay,{variant:"body-small",className:j.A.description,children:[(0,k.jsx)("span",{children:__("Activity Detected","jetpack-my-jetpack")}),(0,k.jsx)("span",{className:j.A.time,children:C(s)})]}):null,additionalActions:i?[h]:[],children:i?(0,k.jsxs)("div",{className:j.A.activity,children:[(0,k.jsx)(c.A,{icon:i.gridicon,size:24}),(0,k.jsxs)("p",{className:j.A.summary,children:[i.summary,i.actor?.is_mcp_agent&&(0,k.jsxs)(k.Fragment,{children:[" ",(0,k.jsx)("span",{className:j.A.mcpBadge,children:(0,o.sprintf)(/* translators: %s: The name of the MCP client application. */
|
||||
__("via %s (MCP)","jetpack-my-jetpack"),i.actor?.mcp_client||i.actor?.mcp_client_name||__("MCP client","jetpack-my-jetpack"))})]})]})]}):null})};A.propTypes={admin:u().bool};const M=A},79520(e,t,n){"use strict";n.d(t,{A:()=>w});var r=n(58454),a=n(46951),i=n(10580),s=n(56427),o=n(29491),c=n(27723),l=n(13109),u=n(87756),d=n(51609),p=n(38837),h=n(74923),m=n(68242),f=n(64526),g=n(51870),v=n(76683),y=(n(48701),n(10790));const __=c.__,b=(e,t,n,r)=>{if(!e||"number"!=typeof t)return"";const a=[];return a.push((0,c.sprintf)(
|
||||
// translators: %1$s: speed grade (e.g. 'A'), %2$s: numerical speed score (e.g. '95').
|
||||
__("Your website’s overall speed score is %1$s, or %2$d out of 100.","jetpack-my-jetpack"),e,t)),"number"==typeof n&&a.push(n>0?(0,c.sprintf)(
|
||||
// translators: %d: score increase (e.g. '10')
|
||||
__("Your website’s overall speed score increased by %d.","jetpack-my-jetpack"),n):(0,c.sprintf)(
|
||||
// translators: %d: score increase (e.g. '10')
|
||||
__("Your website’s overall speed score decreased by %d.","jetpack-my-jetpack"),n)),r&&a.push(r),a.join(" ")},w=()=>{const{recordEvent:e}=(0,f.A)(),[t,n]=(0,d.useState)(!1),[c,w]=(0,d.useState)(""),[j,k]=(0,d.useState)(null),[x,C]=(0,d.useState)(null),[A,_]=(0,d.useState)(!1),[M,S]=(0,d.useState)(!1),[E,N]=(0,d.useState)(!1),O=(0,o.useViewportMatch)("medium","<"),{siteUrl:P="",latestBoostSpeedScores:L}=(0,m.A$)(),{apiRoot:T,apiNonce:V,isSiteConnected:I}=(0,g.A)(),{detail:z}=(0,h.A)("boost"),{status:H}=z,D=H===p.hp.ACTIVE||H===p.hp.CAN_UPGRADE,R=(e,t)=>{const{mobile:n,desktop:r}=t||{};var a,i;n&&r&&e((a=n,i=r,Math.round((a+i)/2)))},F=e=>{const{scores:t,previousScores:n}=e||{};R(k,t),R(C,n),(e=>{const{mobile:t,desktop:n}=e||{};t&&n&&w((0,r.T)(t,n))})(t)},B=async()=>{I?(n(!0),(0,r.sE)(!0,T,P,V).then(e=>{const t=(0,r.T)(e.current.mobile,e.current.desktop);w(t),R(k,e.current),R(C,L.scores),n(!1)}).catch(t=>{e("jetpack_boost_speed_score_error",{feature:"jetpack-boost",position:"my-jetpack",error:t}),L&&L.scores?F(L):_(!0),n(!1)})):_(!0)},U=(0,d.useMemo)(()=>x&&j?j<x?null:j-x:null,[j,x]),q=(0,v.R)({speedLetterGrade:c,boostScoreIncrease:U}),W=(0,d.useCallback)(()=>{S(!0)},[S]),$=(0,d.useCallback)(()=>{S(!1)},[S]);return(0,d.useEffect)(()=>{L?D?(0,r.US)(1e3*L.timestamp)<1?F(L):B():(0,r.US)(1e3*L.timestamp)<14?F(L):B():B()},[]),(0,d.useEffect)(()=>{t||!M||E||(e("jetpack_boost_card_tooltip_viewed",{feature:"jetpack-boost",position:"my-jetpack"}),N(!0))},[t,M,e,E]),!A&&(0,y.jsx)("div",{className:"mj-boost-speed-score",role:"presentation",onMouseEnter:W,onMouseLeave:$,onClick:M?$:W,onFocus:W,onBlur:$,children:t?(0,y.jsx)(a.A,{color:"#23282d",size:16}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:"screen-reader-text",children:b(c,j,U,q)}),(0,y.jsxs)("div",{"aria-hidden":"true",children:[(0,y.jsxs)("div",{className:"mj-boost-speed-score__grade",children:[(0,y.jsx)("span",{children:__("Your website’s overall speed score:","jetpack-my-jetpack")}),(0,y.jsxs)("span",{className:"mj-boost-speed-score__grade--letter",children:[c,!t&&M&&(0,y.jsx)(s.Popover,{placement:O?"top-end":"top-start",noArrow:!1,offset:10,children:(0,y.jsxs)("div",{className:"boost-score-tooltip__parent",children:[(0,y.jsxs)("p",{className:"boost-score-tooltip__heading",children:[__("Site speed performance:","jetpack-my-jetpack")," ",c]}),(0,y.jsx)("p",{className:"boost-score-tooltip__content",children:q})]})})]})]}),(0,y.jsx)("div",{className:"mj-boost-speed-score__bar",children:(0,y.jsx)(i.A,{score:j,active:j>0,isLoading:t,showPrevScores:!1,scoreBarType:"desktop",noBoostScoreTooltip:null})}),!!U&&(0,y.jsxs)("div",{className:"mj-boost-speed-score__increase",children:[(0,y.jsx)(l.A,{size:18,icon:u.A}),(0,y.jsx)("span",{children:U})]})]})]})})}},59838(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(27723),a=n(38837),i=n(31504),s=n(6176),o=n(79520),c=n(10790);const __=r.__,l=e=>{const t={[a.hp.ABSENT]:{label:__("Boost your site","jetpack-my-jetpack")}};return(0,c.jsx)(s.A,{slug:i.D_.BOOST,primaryActionOverride:t,...e,children:(0,c.jsx)(o.A,{})})}},76683(e,t,n){"use strict";n.d(t,{R:()=>i});var r=n(27723),a=n(74923);const __=r.__;function i({speedLetterGrade:e,boostScoreIncrease:t}){const{detail:n}=(0,a.A)("boost"),{isPluginActive:i,hasPaidPlanForProduct:s}=n;if(i){if(s){if(t)return(0,r.sprintf)(/* translators: %d is the number (positive integer) of points the speed has increased */
|
||||
__("Your speed has improved by %d points! Boost is working to enhance your performance with automated tools.","jetpack-my-jetpack"),t);switch(e){case"A":return __("Your site is fast! Boost is working to enhance your performance with automated tools.","jetpack-my-jetpack");case"B":case"C":case"D":case"E":case"F":return __("Visit the Boost dashboard to view your historical speed scores and manage your product settings.","jetpack-my-jetpack");default:return __("Visit the Boost dashboard to view your site’s speed scores and manage your product settings.","jetpack-my-jetpack")}}if(t)return(0,r.sprintf)(/* translators: %d is the number (integer) of points the speed has increased */
|
||||
__("Your speed has improved by %d points! Upgrade Boost to unlock automated CSS and image optimization tools to maintain your high score.","jetpack-my-jetpack"),t);switch(e){case"A":return __("Your site is fast! But maintaining a high speed isn’t easy. Upgrade Boost to use automated CSS and image optimization tools to improve your performance on the go.","jetpack-my-jetpack");case"B":return __("You are one step away from making your site blazing fast. Upgrade Boost to use automated CSS and image optimization tools to improve your performance.","jetpack-my-jetpack");default:return __("Improve your performance with automated CSS and image optimization tools by upgrading Boost.","jetpack-my-jetpack")}}switch(e){case"A":return __("Your site is fast! But maintaining a high speed isn’t easy. Use Boost’s automated acceleration tools to optimize your performance on the go.","jetpack-my-jetpack");case"B":return __("You are one step away from making your site blazing fast. Install Boost to enhance your site’s performance like top websites, no developer needed.","jetpack-my-jetpack");default:return __("Your site needs performance improvements. Make your site blazing fast with Boost’s simple dashboard and acceleration tools.","jetpack-my-jetpack")}}},15375(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(31504),a=n(6176),i=n(10790);const s=({admin:e,recommendation:t})=>(0,i.jsx)(a.A,{slug:r.D_.COMPLETE,showMenu:!0,admin:e,recommendation:t})},91686(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(28120),a=n.n(r),i=n(31504),s=n(6176),o=n(10790);const c=e=>(0,o.jsx)(s.A,{slug:i.D_.CRM,...e});c.propTypes={admin:a().bool};const l=c},95383(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(31504),a=n(6176),i=n(10790);const s=({admin:e,recommendation:t})=>(0,i.jsx)(a.A,{slug:r.D_.GROWTH,showMenu:!0,admin:e,recommendation:t})},25487(e,t,n){"use strict";n.d(t,{A:()=>x});var r=n(28509),a=n(75918),i=n(31504),s=n(68242),o=n(55628),c=n(81434),l=n(1035),u=n(48412),d=n(36724),p=n(30161),h=n(59838),m=n(91686),f=n(74274),g=n(30414),v=n(57769),y=n(4073),b=n(91926),w=n(7631),j=n(10790);const k=({slugs:e,isLoading:t})=>{const n=[...Array(9).keys()],{showFullJetpackStatsCard:o=!1}=(0,s.A$)("myJetpackFlags"),{userIsAdmin:k=!1}=(0,s.A$)(),x={backup:p.A,protect:f.A,"anti-spam":d.A,boost:h.A,search:g.A,videopress:w.A,stats:y.A,crm:m.A,social:v.A,"jetpack-ai":u.A},C=e.filter(e=>(e!==i.D_.STATS||!o)&&!!x[e]);return(0,j.jsxs)(j.Fragment,{children:[t&&(0,j.jsx)(r.A,{className:b.A.fullStatsCard,children:(0,j.jsx)(c.A,{width:"100%",height:"350px"})}),!t&&e.includes("stats")&&o&&(0,j.jsx)(r.A,{className:b.A.fullStatsCard,children:(0,j.jsx)(l.A,{})}),(0,j.jsx)(a.A,{className:b.A.cardlist,tagName:"ul",fluid:!0,horizontalSpacing:0,horizontalGap:3,children:t?n.map((e,t)=>(0,j.jsx)(r.A,{tagName:"li",sm:4,md:4,lg:4,children:(0,j.jsx)(c.A,{width:"100%",height:"200px"})},t)):C.map(e=>{const t=x[e];return(0,j.jsx)(r.A,{tagName:"li",sm:4,md:4,lg:4,children:(0,j.jsx)(t,{admin:"1"===k})},e)})})]})},x=({noticeMessage:e})=>{const{filteredOwnedProducts:t,isLoading:n}=(0,o.A)();return(0,j.jsx)(j.Fragment,{children:(n||t.length>0)&&(0,j.jsx)(a.A,{horizontalSpacing:0,horizontalGap:e?3:6,className:b.A["products-container"],children:(0,j.jsx)(r.A,{children:(0,j.jsx)(k,{isLoading:n,slugs:t})})})})}},55243(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(31504),a=n(6176),i=n(10790);const s=({admin:e,recommendation:t})=>(0,i.jsx)(a.A,{slug:r.D_.NEWSLETTER,admin:e,recommendation:t})},23293(e,t,n){"use strict";n.d(t,{Q:()=>f});var r=n(29491),a=n(27723),i=n(13022),s=n(74923),o=n(51870),c=n(12660),l=n(91926),u=n(96068),d=n(90850),p=n(24516),h=n(57915),m=n(10790);const __=a.__,f=({data:e})=>{const{detail:t}=(0,s.A)("protect"),{isPluginActive:n=!1}=t||{},{isSiteConnected:r}=(0,o.A)(),{jetpack_waf_automatic_rules:a,waf_enabled:i}=e?.wafConfig||{};return n&&r?a&&i?(0,m.jsx)(g,{data:e,status:"active"}):(0,m.jsx)(g,{data:e,status:"inactive"}):(0,m.jsx)(g,{data:e,status:"off"})},g=({status:e,data:t})=>{const n=(0,r.useViewportMatch)("medium","<"),{detail:a}=(0,s.A)("protect"),{hasPaidPlanForProduct:o=!1}=a||{},f=(0,h.T)(t),{autoFirewallTooltip:g}=f;return"active"===e?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{className:l.A.valueSectionHeading,children:__("Auto-Firewall","jetpack-my-jetpack")}),(0,m.jsxs)("div",{className:"value-section__data",children:[(0,m.jsx)("div",{children:(0,m.jsx)("img",{className:"value-section__status-icon",src:p,alt:__("Shield icon - Auto-Firewall Status: On","jetpack-my-jetpack")})}),(0,m.jsx)("div",{className:"value-section__status-text",children:__("On","jetpack-my-jetpack")})]})]}):"inactive"===e?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)("div",{className:(0,i.A)(l.A.valueSectionHeading,"value-section__heading"),children:[__("Auto-Firewall","jetpack-my-jetpack"),(0,m.jsxs)(c.I,{tracksEventName:"protect_card_tooltip_open",tracksEventProps:{location:"auto-firewall",status:e,feature:"jetpack-protect",has_paid_plan:o},placement:n?"top":"right",children:[(0Line truncated
|
||||
__("Last scan: %s","jetpack-my-jetpack"),f):null:(0,r.sprintf)(/* translators: %d is the number of plugins installed on the site. */
|
||||
_n("%d plugin","%d plugins",h,"jetpack-my-jetpack"),h)+" "+/* translators: The ampersand symbol here (&) is meaning "and". */
|
||||
__("&","jetpack-my-jetpack")+" "+(0,r.sprintf)(/* translators: %d is the number of themes installed on the site. */
|
||||
_n("%d theme","%d themes",m,"jetpack-my-jetpack"),m).replace(" "," "),[n,f,h,m])}},57915(e,t,n){"use strict";n.d(t,{T:()=>d});var r=n(86087),a=n(27723),i=n(51609),s=n(31504),o=n(74923),c=n(68242),l=n(64526),u=n(23658);const __=a.__,_n=a._n,d=e=>{const t=s.D_.PROTECT,{detail:n}=(0,o.A)(t),{standalonePluginInfo:d,hasPaidPlanForProduct:p,manageUrl:h}=n||{},{isStandaloneActive:m}=d||{},{recordEvent:f}=(0,l.A)(),{plugins:g,themes:v}=(0,c.A$)(),{plugins:y,themes:b,num_threats:w=0,threats:j=[]}=e?.scanData||{},{jetpack_waf_automatic_rules:k,blocked_logins:x,brute_force_protection:C,waf_supported:A,waf_enabled:_}=e?.wafConfig||{},M=y?.length||Object.keys(g).length,S=b?.length||Object.keys(v).length,E=(0,i.useMemo)(()=>j.length?j.reduce((e,t)=>t.severity>=5?e+=1:e,0):0,[j]),N=(0,i.useMemo)(()=>m?"admin.php?page=jetpack-protect#/firewall":(0,u.w)()?"admin.php?page=jetpack#/settings":null,[m]),O=(0,i.useCallback)(()=>{f("jetpack_protect_card_tooltip_content_link_click",{page:"my-jetpack",feature:"jetpack-protect",location:"auto-firewall-tooltip",path:N})},[f,N]),P=(0,i.useCallback)(()=>{f("jetpack_protect_card_tooltip_content_link_click",{page:"my-jetpack",feature:"jetpack-protect",location:"scan-threats-tooltip",path:h})},[f,h]),L=m||(0,u.w)(),T=(0,i.useMemo)(()=>0===x?C?{title:__("Brute Force Protection: Active","jetpack-my-jetpack"),text:__("Brute Force Protection is actively blocking malicious login attempts. The number of blocked login attempts will display here soon!","jetpack-my-jetpack")}:{title:__("Brute Force Protection: Inactive","jetpack-my-jetpack"),text:N?(0,r.createInterpolateElement)((0,a.sprintf)(/* translators: %s is the location/page where the settings are located. Either "firewall settings" or "Jetpack settings". */
|
||||
__("Brute Force Protection is disabled and not actively blocking malicious login attempts. Go to <a>%s</a> to activate it.","jetpack-my-jetpack"),m?"firewall settings":"Jetpack settings"),{a:(0,i.createElement)("a",{href:N,onClick:O})}):__("Brute Force Protection is disabled and not actively blocking malicious login attempts.","jetpack-my-jetpack")}:C?void 0:L?{title:__("Brute Force Protection: Inactive","jetpack-my-jetpack"),text:N?(0,r.createInterpolateElement)((0,a.sprintf)(/* translators: %s is the location/page where the settings are located. Either "firewall settings" or "Jetpack settings". */
|
||||
__("Brute Force Protection is disabled and not actively blocking malicious login attempts. Go to <a>%s</a> to activate it.","jetpack-my-jetpack"),m?"firewall settings":"Jetpack settings"),{a:(0,i.createElement)("a",{href:N,onClick:O})}):__("Brute Force Protection is disabled and not actively blocking malicious login attempts.","jetpack-my-jetpack")}:{title:__("Brute Force Protection: Inactive","jetpack-my-jetpack"),text:__("For Brute Force Protection, activate the Jetpack or Protect plugin and enable it in settings.","jetpack-my-jetpack")},[x,C,L,m,N,O]);return{pluginsThemesTooltip:{title:__("Improve site safety: secure plugins & themes","jetpack-my-jetpack"),text:(0,a.sprintf)(/* translators: %1$s the singular or plural of number of plugin(s), and %2$s is the singular or plural of the number of theme(s). */
|
||||
__("Your site has %1$s and %2$s lacking security measures. Improve your site’s safety by adding protection at no cost.","jetpack-my-jetpack"),(0,a.sprintf)(/* translators: %d is the number of plugins installed on the site. */
|
||||
_n("%d plugin","%d plugins",M,"jetpack-my-jetpack"),M),(0,a.sprintf)(/* translators: %d is the number of themes installed on the site. */
|
||||
_n("%d theme","%d themes",S,"jetpack-my-jetpack"),S))},scanThreatsTooltip:p&&w?{title:__("Auto-fix threats","jetpack-my-jetpack"),text:E?(0,r.createInterpolateElement)((0,a.sprintf)(/* translators: %1$s is the number of threats, %2$s is the numner of critical threats on the site, and %3$s is either "Scan" or "Protect" (the type of dashboard). */
|
||||
__("The last scan identified %1$s (%2$d critical). But don’t worry, Protect is usually able to “Auto-fix” threats, in most cases. Visit the <a>%3$s dashboard</a> to view more details.","jetpack-my-jetpack"),(0,a.sprintf)(/* translators: %d is the number of detected scan threats on the site. */
|
||||
_n("%d threat","%d threats",w,"jetpack-my-jetpack"),w),E,m?"Protect":"Scan"),{a:(0,i.createElement)("a",{href:h,onClick:P})}):(0,r.createInterpolateElement)((0,a.sprintf)(/* translators: %1$s is the singular or plural of number of detected threats on the site, and %2$s is either "Scan" or "Protect" (the type of dashboard). */
|
||||
__("The last scan identified %1$s. But don’t worry, Protect is usually able to “Auto-fix” threats, in most cases. Visit the <a>%2$s dashboard</a> to view more details.","jetpack-my-jetpack"),(0,a.sprintf)(/* translators: %d is the number of detected scan threats on the site. */
|
||||
_n("%d threat","%d threats",w,"jetpack-my-jetpack"),w),m?"Protect":"Scan"),{a:(0,i.createElement)("a",{href:h,onClick:P})})}:{title:__("Elevate your malware protection","jetpack-my-jetpack"),text:__("We’ve checked items against our database, and all appears well. For a more detailed, line-by-line malware scan, consider upgrading your plan.","jetpack-my-jetpack")},autoFirewallTooltip:(!p||k&&_)&&A?{title:__("Auto-Firewall: Inactive","jetpack-my-jetpack"),text:__("Upgrade required for activation. Manual rules available.","jetpack-my-jetpack")}:{title:__("Auto-Firewall: Inactive","jetpack-my-jetpack"),text:A?(0,r.createInterpolateElement)(__("You have Auto-Firewall disabled, visit your Protect <a>firewall settings</a> to activate.","jetpack-my-jetpack"),{a:(0,i.createElement)("a",{href:N,onClick:O})}):__("Auto-Firewall is disabled as your hosting provider already includes a built-in firewall with similar rules for your site.","jetpack-my-jetpack")},blockedLoginsTooltip:T}}},32917(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(31504),a=n(6176),i=n(10790);const s=({admin:e,recommendation:t})=>(0,i.jsx)(a.A,{slug:r.D_.RELATED_POSTS,admin:e,recommendation:t})},30414(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(28120),a=n.n(r),i=n(31504),s=n(6176),o=n(10790);const c=e=>(0,o.jsx)(s.A,{slug:i.D_.SEARCH,showMenu:!0,...e});c.propTypes={admin:a().bool};const l=c},37014(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(31504),a=n(6176),i=n(10790);const s=({admin:e,recommendation:t})=>(0,i.jsx)(a.A,{slug:r.D_.SECURITY,showMenu:!0,admin:e,recommendation:t})},44169(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(31504),a=n(6176),i=n(10790);const s=({admin:e,recommendation:t})=>(0,i.jsx)(a.A,{slug:r.D_.SITE_ACCELERATOR,admin:e,recommendation:t})},57769(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(28120),a=n.n(r),i=n(31504),s=n(6176),o=n(10790);const c=e=>(0,o.jsx)(s.A,{slug:i.D_.SOCIAL,showMenu:!0,...e});c.propTypes={admin:a().bool};const l=c},4073(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(28120),a=n.n(r),i=n(31504),s=n(6176),o=n(10790);const c=e=>(0,o.jsx)(s.A,{slug:i.D_.STATS,showMenu:!0,...e});c.propTypes={admin:a().bool};const l=c},7631(e,t,n){"use strict";n.d(t,{A:()=>g});var r=n(47425),a=n(51609),i=n(38837),s=n(31504),o=n(74923),c=n(280),l=n(6176),u=n(12660),d=n(56544),p=n(83554),h=n(77167),m=(n(64504),n(10790));const f=s.D_.VIDEOPRESS,g=e=>{const{detail:t,isLoading:n}=(0,o.A)(f),{data:g,isLoading:v}=(0,c.A)({name:s.Yr,query:{path:s.PM}}),y=n||v,{status:b}=t||{},{activeAndNoVideos:w}=(0,d.A)(g),{videoCount:j=0,featuredStats:k}=g||{},x=b===i.hp.ACTIVE||b===i.hp.CAN_UPGRADE,C=(0,p.A)({isPluginActive:x,videoCount:j}),A=(0,a.useMemo)(()=>({stats_period:k?.period,video_count:j}),[k,j]),_=(0,a.useCallback)(()=>(0,m.jsxs)(r.Ay,{variant:"body-small",className:"description",children:[C||t.description,x&&!j&&(0,m.jsxs)(u.I,{className:"videopress-card__no-video-tooltip",tracksEventName:"videopress_card_tooltip_open",tracksEventProps:{location:"description",feature:"jetpack-videopress",status:b,video_count:j},children:[(0,m.jsx)("h3",{children:w.title}),(0,m.jsx)("p",{children:w.text})]})]}),[C,t.description,j,b,w,x]);return(0,m.jsx)(l.A,{...e,slug:f,showMenu:!0,Description:_,customLoadTracks:A,children:(0,m.jsx)(h.A,{isPluginActive:x,data:g,isLoading:y})})}},56544(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(3924),a=n(86087),i=n(27723),s=n(51609),o=n(64526);const __=i.__,_n=i._n,c=e=>{const{recordEvent:t}=(0,o.A)(),{featuredStats:n,videoCount:c=0}=e||{},{period:l}=n||{},u=(0,r.A)("jetpack-videopress-my-jetpack-tooltip"),d=(0,s.useCallback)(()=>{t("jetpack_videopress_card_tooltip_content_link_click",{location:"video_count",feature:"jetpack-videopress",page:"my-jetpack",path:u})},[t,u]),p={title:__("The finest video for WordPress","jetpack-my-jetpack"),text:(0,a.createInterpolateElement)((0,i.sprintf)(
|
||||
// translators: %d is the number of videos in the Media Library that could benefit from VideoPress.
|
||||
_n("You have %d video in your Media Library that could benefit from VideoPress. Start <a>hosting</a> it today to unlock multiple benefits: enhanced quality add-free streaming, faster load times, customizable player controls.","You have %d videos in your Media Library that could benefit from VideoPress. Start <a>hosting</a> them today to unlock multiple benefits: enhanced quality add-free streaming, faster load times, customizable player controls.",c,"jetpack-my-jetpack"),c),{a:(0,s.createElement)("a",{href:u,target:"_blank",rel:"noreferrer noopener",onClick:d})})},h={title:__("The finest video for WordPress","jetpack-my-jetpack"),text:__("Give your videos a boost! 🚀 Try hosting with VideoPress for superior quality and performance.","jetpack-my-jetpack")},m={title:__("High-quality video, wherever your audience is","jetpack-my-jetpack"),text:__("Success! 🌟 Your video is live and gathering views.","jetpack-my-jetpack")},f=__("30-Day views","jetpack-my-jetpack"),g=__("Yearly views","jetpack-my-jetpack"),v=__("This metric shows your total video views over the past 30 days, compared to the previous 30 days.","jetpack-my-jetpack"),y=__("This metric shows your total video views over the past year.","jetpack-my-jetpack"),b={title:"day"===l?f:g,text:"day"===l?v:y},w=__("This metric shows your total video viewing time over the past 30 days, compared to the previous 30 days.","jetpack-my-jetpack"),j=__("This metric shows total video viewing time for the last year.","jetpack-my-jetpack");return{inactiveWithVideos:p,activeAndNoVideos:h,viewsWithoutPlan:m,viewsWithPlan:b,watchTime:{title:__("Total time watched","jetpack-my-jetpack"),text:"day"===l?w:j}}}},83554(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(27723),a=n(72434);const __=r.__,i=({isPluginActive:e,videoCount:t})=>!e&&t?(0,a.A)(__("Load your existing videos faster and without ads.","jetpack-my-jetpack")):e&&!t?(0,a.A)(__("Stunning-quality, ad-free video in the WordPress Editor. Begin by uploading your first video.","jetpack-my-jetpack")):""},77167(e,t,n){"use strict";n.d(t,{A:()=>y});var r=n(27723),a=n(13109),i=n(62107),s=n(87756),o=n(13022),c=n(31504),l=n(74923),u=n(56581),d=n(32753),p=n(12660),h=n(81434),m=n(91926),f=n(56544),g=(n(64504),n(10790));const __=r.__,v=({value:e,previousValue:t,formattedValue:n,formattedDifference:r,period:c})=>{const l=e>t;return(0,g.jsxs)("div",{className:"videopress-card__value-section__value-container",children:[(0,g.jsx)("span",{className:"videopress-card__value-section__value",children:n}),e!==t&&"day"===c&&(0,g.jsxs)("div",{className:(0,o.A)("videopress-card__value-section__previous-value",l?"increase":"decrease"),children:[(0,g.jsx)(a.A,{size:18,icon:l?s.A:i.A}),(0,g.jsx)("span",{children:r})]})]})},y=({isPluginActive:e,data:t,isLoading:n})=>{const{detail:r}=(0,l.A)(c.D_.VIDEOPRESS),{status:a,hasPaidPlanForProduct:i}=r||{},{videoCount:s,featuredStats:y}=t||{},{inactiveWithVideos:b,viewsWithoutPlan:w,viewsWithPlan:j,watchTime:k}=(0,f.A)(t);if(!s&&!n)return null;const x={feature:"jetpack-videopress",has_paid_plan:i,status:a};if(!e)return(0,g.jsx)("div",{className:"videopress-card__value-section",children:(0,g.jsxs)("div",{className:"videopress-card__value-section__container",children:[(0,g.jsxs)("span",{className:m.A.valueSectionHeading,children:[__("Existing videos","jetpack-my-jetpack"),n?(0,g.jsx)(h.A,{height:"32px",width:"100%"}):(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)(p.I,{className:"videopress-card__no-video-tooltip",tracksEventName:"videopress_card_tooltip_open",tracksEventProps:{location:"existing_videos",feature:"jetpack-videopress",status:a,video_count:s},children:[(0,g.jsx)("h3",{children:b.title}),(0,g.jsx)("p",{children:b.text})]})})]}),(0,g.jsx)("span",{className:"videopress-card__video-count",children:s})]})});const C=y?.data?.views?.current,A=y?.data?.watch_time?.current,_=y?.data?.views?.previous,M=y?.data?.watch_time?.previous,S=y?.period,E=Math.abs(C-_),N=Math.abs(A-M);if(!n&&(void 0===C||void 0===A))return null;const O=__("30-Day views","jetpack-my-jetpack"),P=__("Yearly views","jetpack-my-jetpack");return(0,g.jsxs)("div",{className:"videopress-card__value-section",children:[(0,g.jsxs)("div",{className:"videopress-card__value-section__container",children:[(0,g.jsxs)("span",{className:(0,o.A)(m.A.valueSectionHeading,"videopress-card__value-section__heading"),children:["day"===S?O:P,(0,g.jsx)(p.I,{tracksEventName:"videopress_card_tooltip_open",tracksEventProps:{location:"views",current_views:C,previous_views:_,period:S,...x},children:i||0===C?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("h3",{children:j.title}),(0,g.jsx)("p",{children:j.text})]}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("h3",{children:w.title}),(0,g.jsx)("p",{children:w.text})]})})]}),n?(0,g.jsx)(h.A,{height:"32px",width:"100%"}):(0,g.jsx)(v,{value:C,previousValue:_,formattedValue:(0,u.A)(C),formattedDifference:(0,u.A)(E),period:S})]}),(0,g.jsxs)("div",{className:"videopress-card__value-section__container",children:[(0,g.jsxs)("span",Line truncated
|
||||
// translators: %s is the monthly price for a product
|
||||
__("trial for the first month, then $%s /month, billed yearly","jetpack-my-jetpack"),re):"year"===le?__("/month, paid yearly","jetpack-my-jetpack"):__("/month","jetpack-my-jetpack",0);const we=(0,f.useCallback)(t=>{ue("jetpack_myjetpack_product_card_disclaimer_click",{id:t,product:e})},[e,ue]);function je({slug:e}){const t=(0,r.Wy)(e);return t?(0,x.jsx)("div",{className:k.A["product-icon"],children:(0,x.jsx)(t,{})}):null}const ke=(!X||X&&!Y)&&ne,xe=F&&_?F:B,Ce=!X&&Y?(0,u.sprintf)(/* translators: %s: product name. */
|
||||
__("Install %s","jetpack-my-jetpack"),xe):(0,u.sprintf)(/* translators: %s: the product name. */
|
||||
__("Get %s","jetpack-my-jetpack"),xe),Ae=S||Ce,_e=(0,f.useCallback)(()=>{n({cta_text:Ae}),t?.(me,D)},[t,n,me,D,Ae]),Me=(0,f.useCallback)(()=>{n({custom_slug:oe,cta_text:"Start for free"}),t?.(ge,D)},[t,n,ge,oe,D]),Se=ce?.reason?re:ie;return(0,x.jsxs)("div",{className:(0,m.A)(k.A.card,c,{[k.A["is-bundle-card"]]:X}),children:[X&&(0,x.jsxs)("div",{className:k.A["card-header"],children:[(0,x.jsx)(r.Gg,{className:k.A["product-bundle-icon"],size:16}),(0,x.jsx)(a.Ay,{variant:"label",children:__("Popular upgrade","jetpack-my-jetpack")})]}),(0,x.jsxs)("div",{className:k.A.container,children:[X&&(0,x.jsx)("div",{className:k.A["product-bundle-icons"],children:ye}),(0,x.jsx)(je,{slug:e}),(0,x.jsx)(a.H3,{children:xe}),R?(0,x.jsx)(w.A,{width:"100%",height:"75px",spaceBelow:!0}):(0,x.jsx)(a.Ay,{mb:3,children:U}),R?(0,x.jsx)(w.A,{width:"100%",height:"250px",spaceBelow:!0}):(0,x.jsx)("ul",{className:(0,m.A)(k.A.features,{[k.A["highlight-last-feature"]]:O}),children:q.map((e,t)=>(0,x.jsxs)(a.Ay,{component:"li",variant:"body",children:[(0,x.jsx)(d.A,{icon:p.A,size:24}),e]},`feature-${t}`))}),R&&(0,x.jsx)(w.A,{width:"100%",height:"70px",spaceBelow:!0}),de&&Se&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)("div",{className:k.A["price-container"],children:[(0,x.jsx)(C,{value:Se,currency:ae,isOld:!1}),Se<re&&(0,x.jsx)(C,{value:re,currency:ae,isOld:!0})]}),(0,x.jsx)(a.Ay,{className:k.A["price-description"],children:be})]}),te&&(0,x.jsx)(a.H3,{children:__("Free","jetpack-my-jetpack")}),ee&&(0,x.jsx)(s.A,{children:(0,x.jsxs)(a.Ay,{children:[(0,u.sprintf)(
|
||||
// translators: %s is the plugin name.
|
||||
__("Due to your server settings, we can't automatically install the plugin for you. Please manually install the %s plugin.","jetpack-my-jetpack"),xe)," ",(0,x.jsx)(l.ExternalLink,{href:`https://wordpress.org/plugins/${Q}`,children:__("Get plugin","jetpack-my-jetpack")})]})}),!E&&(0,x.jsx)("div",{className:k.A["tos-container"],children:(0,x.jsx)(i.A,{agreeButtonLabel:ke?(0,u.sprintf)(/* translators: %s: the call-to-action label. */
|
||||
__("%s or Start for free","jetpack-my-jetpack"),Ae):Ae})}),(!X||X&&!Y)&&(0,x.jsx)(A,{component:j.A,onClick:_e,hasMainCheckoutStarted:fe,isFetching:P,isFetchingSuccess:L,cantInstallPlugin:ee,isPrimary:!X,className:k.A["checkout-button"],label:Ae}),!X&&ne&&!Y&&(0,x.jsx)(A,{component:j.A,onClick:Me,hasMainCheckoutStarted:ve,isFetching:P,isFetchingSuccess:L,cantInstallPlugin:ee,isPrimary:!1,className:[k.A["checkout-button"],k.A["free-product-checkout-button"]],label:__("Start for free","jetpack-my-jetpack")}),W.length>0&&(0,x.jsx)("div",{className:k.A.disclaimers,children:W.map((e,t)=>{const{text:n,link_text:r=null,url:i=null}=e;return(0,x.jsxs)(a.Ay,{component:"p",variant:"body-small",children:[`${n} `,i&&r&&(0,x.jsx)(l.ExternalLink,{onClick:()=>we(t),href:i,target:"_blank",rel:"noopener noreferrer",children:r})]},`disclaimer-${t}`)})}),X&&Y&&(0,x.jsxs)("div",{className:k.A["product-has-required-plan"],children:[(0,x.jsx)(r.Nr,{size:36}),(0,x.jsx)(a.Ay,{children:__("Active on your site","jetpack-my-jetpack")})]}),M&&(0,x.jsx)(a.Ay,{className:k.A["supporting-info"],variant:"body-extra-small",children:M})]})]})}},33574(e,t,n){"use strict";n.d(t,{A:()=>k});var r=n(47425),a=n(51112),i=n(79245),s=n(489),o=n(47656),c=n(39384),l=n(27723),u=n(28120),d=n.n(u),p=n(51609),h=n(488),m=n(74923),f=n(68242),g=n(1524),v=n(81434),y=n(43443),b=n(10790);const __=l.__,w=({cantInstallPlugin:e,onProductButtonClick:t,detail:n,isFetching:r,isFetchingSuccess:o,tier:u,trackProductButtonClick:d,preferProductName:m,feature:y})=>{const[w,j]=(0,p.useState)(!1),{isLoading:k}=(0,h.V)(),{siteSuffix:x="",myJetpackCheckoutUri:C="",adminUrl:A=""}=(0,f.A$)(),{name:_,featuresByTier:M=[],title:S,postCheckoutUrl:E,postCheckoutUrlsByFeature:N,isBundle:O,hasPaidPlanForProduct:P}=n,L=n?.pricingForUi?.tiers||{},{callToAction:T,currencyCode:V,fullPrice:I,introductoryOffer:z,isFree:H,wpcomProductSlug:D,quantity:R=null}=L[u]||{};(0,p.useEffect)(()=>{r||o||j(!1)},[r,o]);const F=(0,g.y)(),B=(0,p.useCallback)(()=>y&&N?.[y]?N[y]:E||(F||C),[y,N,E,F,C])(),{run:U,hasCheckoutStarted:q}=(0,c.useProductCheckoutWorkflow)({from:"my-jetpack",productSlug:D,redirectUrl:B,connectAfterCheckout:!0,siteSuffix:x,useBlogIdSuffix:!0,quantity:R,adminUrl:A}),W=I?Math.round(I/12*100)/100:null,$=z?.costPerInterval?Math.round(z.costPerInterval/12*100)/100:null,Z="month"===z?.intervalUnit&&1===z?.intervalCount,G=Z?(0,l.sprintf)(
|
||||
// translators: %s is the monthly price for a product
|
||||
__("trial for the first month, then $%s /month, billed yearly","jetpack-my-jetpack"),W):__("/month, paid yearly","jetpack-my-jetpack",0),Y=_&&m?_:S,J=!O&&P?(0,l.sprintf)(/* translators: %s: the product name. */
|
||||
__("Install %s","jetpack-my-jetpack"),Y):(0,l.sprintf)(/* translators: %s: the product name. */
|
||||
__("Get %s","jetpack-my-jetpack"),Y),Q=T||(H?__("Start for Free","jetpack-my-jetpack"):J),K=(0,p.useCallback)(()=>{j(!0),d({is_free_plan:H,cta_text:Q}),t?.(U,n,u)},[d,t,U,n,u,H,Q]),X=q||w,ee=q||e||r||o,te=!z?.reason;return(0,b.jsxs)(i.N0,{primary:!H,children:[(0,b.jsxs)(i.i7,{children:[k&&(0,b.jsx)(v.A,{width:"100%",height:"70px",spaceBelow:!0}),H?(0,b.jsx)(s.A,{price:0,legend:"",currency:"USD",hidePriceFraction:!0}):!P&&(0,b.jsx)(s.A,{price:W,offPrice:te?$:W,legend:G,currency:V,hideDiscountLabel:Z,showNotOffPrice:te,hidePriceFraction:!0}),(0,b.jsx)(a.A,{fullWidth:!0,variant:H?"secondary":"primary",onClick:K,isLoading:X,disabled:ee,children:Q})]}),M.map((e,t)=>{const{included:n,description:r,struck_description:a,info:s}=e.tiers[u],o=a||r?(0,b.jsxs)(b.Fragment,{children:[a?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("del",{children:a})," "]}):null,r?(0,b.jsx)("strong",{children:r}):null]}):null;return(0,b.jsx)(i.eY,{isIncluded:n,label:o,tooltipTitle:s?.title,tooltipInfo:s?.content?(0,b.jsx)("div",{dangerouslySetInnerHTML:{__html:s?.content}}):null,tooltipClassName:s?.class},t)})]})};w.propTypes={cantInstallPlugin:d().bool.isRequired,onProductButtonClick:d().func.isRequired,detail:d().object.isRequired,tier:d().string.isRequired,trackProductButtonClick:d().func.isRequired,preferProductName:d().bool.isRequired};const j=({slug:e,onProductButtonClick:t,trackProductButtonClick:n,isFetching:s,isFetchingSuccess:c,preferProductName:u,feature:d})=>{const{fileSystemWriteAccess:h="no"}=(0,f.A$)(),{detail:g,isLoading:j}=(0,m.A)(e),{description:k,featuresByTier:x=[],pluginSlug:C,status:A,tiers:_=[],hasPaidPlanForProduct:M,title:S}=g,E=g?.pricingForUi||{},N=[...Array(3).keys()],O="plugin_absent"===A&&"no"===h,P=O&&(0,b.jsx)(o.A,{level:"error",hideCloseButton:!0,title:(0,b.jsx)(r.Ay,{children:(0,l.sprintf)(
|
||||
// translators: %s is the plugin name.
|
||||
__("Due to your server settings, we can't automatically install the plugin for you. Please manually install the %s plugin.","jetpack-my-jetpack"),S)}),actions:[(0,b.jsx)(a.A,{variant:"secondary",href:`https://wordpress.org/plugins/${C}`,isExternalLink:!0,children:__("Get plugin","jetpack-my-jetpack")},"get")]}),L=(0,p.useMemo)(()=>x.map(e=>({name:e?.name,tooltipTitle:e?.info?.title,tooltipInfo:e?.info?.content?(0,b.jsx)("div",{dangerouslySetInnerHTML:{__html:e?.info?.content}}):null})),[x]);return(0,b.jsxs)(b.Fragment,{children:[P,j?(0,b.jsx)("div",{className:y.A.loadingBlockContainer,children:N.map((e,t)=>(0,b.jsx)(v.A,{width:"100%",height:"700px"},t))}):(0,b.jsx)(i.Ay,{title:k,items:L,children:_.map((e,r)=>M&&(e=>{if(j)return!1;const{isFree:t}=E?.[e]||{};return t})(e)?null:(0,b.jsx)(w,{tier:e,feature:d,detail:g,isFetching:s,isFetchingSuccess:c,onProductButtonClick:t,trackProductButtonClick:n,primary:0===r,cantInstallPlugin:O,preferProductName:u},r))})]})};j.propTypes={slug:d().string.isRequired,onProductButtonClick:d().func.isRequired,trackProductButtonClick:d().func.isRequired,isFetching:d().bool.isRequired,preferProductName:d().bool.isRequired};const k=j},21022(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(47425),a=n(13109),i=n(88901),s=n(13022),o=n(81434),c=n(58685),l=n(10790);const u=({features:e,isLoading:t,className:n})=>{if(!t&&!e?.length)return null;const u=[...Array(8).keys()];return(0,l.jsx)("ul",{className:(0,s.A)(c.A.features,n),children:t?u.map((e,t)=>(0,l.jsx)(o.A,{height:"25px",width:"100%",spaceBelow:!0},t)):e.map((e,t)=>(0,l.jsxs)(r.Ay,{component:"li",variant:"body",children:[(0,l.jsx)(a.A,{icon:i.A,size:24}),e]},`feature-${t}`))})}},46397(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(51112),a=n(39384),i=n(27723),s=n(51609),o=n(74923),c=n(68242),l=n(1524),u=n(58685),d=n(10790);const __=i.__,p=({slug:e,buttonLabel:t,disabled:n,isExternalLink:i,href:p})=>{const{siteSuffix:h="",adminUrl:m="",myJetpackCheckoutUri:f=""}=(0,c.A$)(),{detail:g,isLoading:v}=(0,o.A)(e),{pricingForUi:y,postCheckoutUrl:b}=g,{wpcomProductSlug:w,tiers:j}=y||{},k="boost"!==e?w:j?.upgraded?.wpcomProductSlug,x=(0,l.y)(),C=(0,s.useCallback)(()=>b||(x||f),[b,x,f])(),{run:A,hasCheckoutStarted:_}=(0,a.useProductCheckoutWorkflow)({productSlug:k,redirectUrl:C,siteSuffix:h,adminUrl:m,connectAfterCheckout:!0,from:"my-jetpack",quantity:null,useBlogIdSuffix:!0});return(0,d.jsx)(r.A,{variant:"primary",className:u.A["action-button"],isLoading:v||_,onClick:A,isExternalLink:i,href:p,disabled:n||v,children:t||__("Upgrade","jetpack-my-jetpack")})}},39368(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(28509),a=n(75918),i=n(50723),s=n(47425),o=n(51112),c=n(56427),l=n(27723),u=n(13022),d=n(51609),p=n(81434),h=n(58685),m=n(10790);const __=l.__,f=e=>{const{title:t,description:n,className:l,children:f,customModalTrigger:g,modalTriggerButtonLabel:v,modalTriggerButtonVariant:y="primary",onOpen:b,onClose:w,onModalMainButtonClick:j,modalMainButton:k,isButtonDisabled:x,buttonHasExternalLink:C=!1,buttonHref:A,buttonLabel:_,secondaryButtonHasExternalLink:M=!0,secondaryButtonHref:S,secondaryColumn:E,isWithVideo:N=!0,additionalColumn:O=!1,priceComponent:P,isLoading:L}=e,[T,V]=(0,d.useState)(!1),I=(0,d.useCallback)(()=>{b?.(),V(!0)},[b]),z=(0,d.useCallback)(()=>{w?.(),V(!1)},[w]);if(!t||!v&&!g)return null;const H=g?(0,d.cloneElement)(g,{onClick:()=>{g.props.onClick?.(),I()}}):(0,m.jsx)(o.A,{variant:y,onClick:I,children:v}),D=k&&(0,d.cloneElement)(k,{onClick:j,buttonLabel:_,disabled:x,isExternalLink:C,href:A});return(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)(i.Ay,{children:[H,T&&(0,m.jsx)(c.Modal,{onRequestClose:z,className:(0,u.A)(h.A["component-product-interstitial-modal"],l),overlayClassName:h.A["component-product-interstitial-modal__overlay"],children:(0,m.jsxs)(a.A,{className:h.A.wrapper,horizontalSpacing:1,horizontalGap:2,fluid:!1,children:[(0,m.jsxs)(r.A,{sm:4,md:8,lg:4,className:h.A.primary,children:[(0,m.jsxs)("div",{className:h.A["primary-content"],children:[(0,m.jsx)("div",{className:h.A.header,children:(0,m.jsx)(s.Ay,{variant:"headline-small",className:h.A.title,children:t})}),L?(0,m.jsx)(p.A,{height:"50px",width:"100%"}):n&&(0,m.jsx)(s.Ay,{variant:"body",className:h.A.description,children:n}),f,L?(0,m.jsx)(p.A,{height:"100px",width:"100%"}):P&&(0,m.jsx)("div",{className:h.A["price-container"],children:P})]}),(0,m.jsxs)("div",{className:h.A["primary-footer"],children:[D,(0,m.jsx)(o.A,{variant:"link",isExternalLink:M,href:S,children:__("Learn more","jetpack-my-jetpack")})]})]}),(0,m.jsx)(r.A,{sm:4,md:O?4:8,lg:O?4:8,className:(0,u.A)(h.A.secondary,{[h.A["modal-with-video"]]:N}),children:E}),O&&(0,m.jsx)(r.A,{sm:4,md:4,lg:4,className:h.A.additional,children:O})]})})]})})}},23116(e,t,n){"use strict";n.d(t,{A:()=>b});var r=n(3924),a=n(51112),i=n(489),s=n(70116),o=n(77115),c=n(86087),l=n(27723),u=n(51609),d=n(74923),p=n(64526),h=n(81434),m=n(39368),f=n(21022),g=n(46397),v=n(10790);const __=l.__,_x=l._x,y=({slug:e,children:t,onOpen:n,onClose:s,descriptiLine truncated
|
||||
// translators: %s is the monthly price for a product
|
||||
__("trial for the first month, then $%s /month, billed yearly","jetpack-my-jetpack"),N):"year"===T?__("/month, paid yearly","jetpack-my-jetpack"):_x("/month",'Price description representing "per month" price',"jetpack-my-jetpack");const I=L?.reason?N:O,z=k?(0,v.jsx)(h.A,{width:"100%",height:"100px"}):(0,v.jsx)(i.A,{currency:P,price:N,offPrice:I,showNotOffPrice:N>I,isNotConvenientPrice:!1,hidePriceFraction:!1,hideDiscountLabel:I>=N,legend:V}),H=(0,u.useCallback)(()=>{w("jetpack_modal_interstitial_open",{placement:"product-page",context:"my-jetpack",product_slug:e}),n?.()},[w,e,n]),D=(0,u.useCallback)(()=>{w("jetpack_modal_interstitial_close",{placement:"product-page",context:"my-jetpack",product_slug:e}),s?.()},[w,e,s]);let R=null;return"jetpack-ai"===e&&(R=(0,v.jsx)("p",{children:(0,c.createInterpolateElement)(__("* Limits apply for high request capacity. <link>Learn more about it here</link>.","jetpack-my-jetpack"),{link:(0,v.jsx)(a.A,{href:(0,r.A)("ai-assistant-fair-usage-policy"),variant:"link",weight:"regular",size:"small",target:"_blank"})})})),(0,v.jsx)(m.A,{title:x,description:M,priceComponent:z,modalMainButton:(0,v.jsx)(g.A,{slug:e}),onOpen:H,onClose:D,isLoading:k,...b,children:(0,v.jsxs)(v.Fragment,{children:[(k||S)&&(0,v.jsx)(f.A,{isLoading:k,features:S}),R,t]})})},b=e=>{const t=new s.E;return(0,v.jsx)(o.Ht,{client:t,children:(0,v.jsx)(y,{...e})})}},28286(e,t,n){"use strict";n.d(t,{V:()=>p});var r=n(49387),a=n(96529),i=n(40396),s=n(12509),o=n(12784),c=n(25988),l=n(17599),u=n(84964),d=n(19877);const p=()=>({"anti-spam":(0,r.c)(),backup:(0,a.r)(),boost:(0,i.Y)(),crm:(0,s.r)(),protect:(0,c.c)(),social:(0,u.g)(),search:(0,l.H)(),videopress:(0,d.V)(),"jetpack-ai":(0,o.D)()})},36092(e,t,n){"use strict";n.d(t,{C:()=>y,Gf:()=>w,JM:()=>j,Ml:()=>x,NC:()=>k,QX:()=>m,Qt:()=>C,VY:()=>f,X7:()=>h,og:()=>v,qT:()=>g,t7:()=>b,wU:()=>u,xE:()=>d,yX:()=>p});var r=n(17380),a=n(46059),i=n(10245),s=n(12829),o=n(55751),c=n(72278),l=n(10790);function u(){return(0,l.jsx)(o.A,{slug:"anti-spam"})}function d(){return(0,l.jsx)(o.A,{slug:"backup"})}function p(){return(0,l.jsx)(o.A,{slug:"boost"})}function h(){return(0,l.jsx)(o.A,{slug:"crm"})}function m(){return(0,l.jsx)(c.A,{slug:"extras",installsPlugin:!0,children:(0,l.jsx)("img",{src:a,alt:"Extras"})})}function f(){return(0,l.jsx)(o.A,{slug:"jetpack-ai"})}function g(){return(0,l.jsx)(o.A,{slug:"protect"})}function v(){return(0,l.jsx)(c.A,{slug:"scan",installsPlugin:!0,bundle:"security"})}function y(){return(0,l.jsx)(o.A,{slug:"social"})}function b(){return(0,l.jsx)(o.A,{slug:"search"})}function w(){return(0,l.jsx)(o.A,{slug:"stats"})}function j(){return(0,l.jsx)(o.A,{slug:"videopress"})}function k(){return(0,l.jsx)(c.A,{slug:"security",installsPlugin:!0,children:(0,l.jsx)("img",{src:i,alt:"Security"})})}function x(){return(0,l.jsx)(c.A,{slug:"growth",installsPlugin:!0,children:(0,l.jsx)("img",{src:s,alt:"Growth"})})}function C(){return(0,l.jsx)(c.A,{slug:"complete",installsPlugin:!0,children:(0,l.jsx)("img",{src:r,alt:"Complete"})})}},8823(e,t,n){"use strict";n.d(t,{A:()=>P});var r=n(67142),a=n(3924),i=n(42947),s=n(28509),o=n(75918),c=n(78478),l=n(47656),u=n(56427),d=n(86087),p=n(27723),h=n(13109),m=n(88901),f=n(114),g=n(60167),v=n(13022),y=n(46941),b=n.n(y),w=n(51609),j=n(74923),k=n(64526),x=n(13588),C=n(51870),A=n(33981),_=n(19753),M=n(81434),S=n(23116),E=n(20373),N=n(10790);const __=p.__,O=b()("my-jetpack:product-interstitial:jetpack-ai-product-page");function P(){const{onClickGoBack:e}=(0,x.L)("jetpack-ai"),{detail:t,isLoading:n}=(0,j.A)("jetpack-ai"),{description:y,aiAssistantFeature:b}=t,[P,L]=(0,w.useState)(!1),{isRegistered:T}=(0,C.A)(),V=__("Generate and edit content faster with Jetpack AI Assistant","jetpack-my-jetpack"),I=__("Create featured images with one click","jetpack-my-jetpack"),z=__("Optimize your titles effortlessly","jetpack-my-jetpack"),H=__("Build forms using prompts","jetpack-my-jetpack"),D=__("Get feedback on posts","jetpack-my-jetpack");O(b);const{requestsCount:R=0,currentTier:F,nextTier:B,usagePeriod:U,isOverLimit:q,tierPlansEnabled:W}=b||{},$=0===F?.value,Z=1===F?.value,G=!$&&!Z||Z&&!W,Y=!Z&&G&&!B&&F,J=$&&20-R>=0?20-R:0,Q=G&&!$&&U,K=G||Z,X=(0,a.A)("jetpack-ai-tiers-more-requests-contact"),ee=(0,a.A)("jetpack-ai-feedback"),te=(0,a.A)("jetpack-ai-product-page-featured-image-link"),ne=(0,a.A)("jetpack-ai-product-page-title-optimization-link"),re=(0,a.A)("jetpack-ai-product-page-form-link"),ae=(0,a.A)("jetpack-ai-product-page-content-feedback-link"),ie=T?"post-new.php?use_ai_block=1&_wpnonce="+window?.jetpackAi?.nonce:"#/connection",se=__("Create new post","jetpack-my-jetpack"),oe=__("Connect to Jetpack to start using the AI Assistant","jetpack-my-jetpack"),ce=q&&G,le=q&&$,ue=F?.limit||0,de=U?.requestsCount||0,pe=W?ue-de>=0?ue-de:0:de,he=__("Requests this month","jetpack-my-jetpack"),me=__("Requests for this month","jetpack-my-jetpack"),fe=__("You've reached your request limit for this month","jetpack-my-jetpack"),ge=__("You've used all your free requLine truncated
|
||||
// translators: %d is the number of days left in the month.
|
||||
__("Wait for %d days to reset your limit, or upgrade now to a higher tier for additional requests and keep your work moving forward.","jetpack-my-jetpack"),Math.floor((new Date(U?.nextStart||null)-new Date)/864e5)),ye=(0,d.createInterpolateElement)((0,p.sprintf)(
|
||||
// translators: %d is the number of days left in the month.
|
||||
__("Wait for %d days to reset your limit, per our <link>fair usage</link> policy.","jetpack-my-jetpack"),Math.floor((new Date(U?.nextStart||null)-new Date)/864e5)),{link:(0,N.jsx)("a",{href:(0,a.A)("ai-product-page-fair-usage-policy"),target:"_blank",rel:"noreferrer"})}),be=W?ve:ye,we=__("Reach for More with Jetpack AI! Upgrade now for additional requests and keep your momentum going.","jetpack-my-jetpack"),je=(0,p.sprintf)(
|
||||
// translators: %s is the next upgrade value
|
||||
__("Get %s requests","jetpack-my-jetpack"),B?.value||"more"),ke=__("Upgrade now","jetpack-my-jetpack"),xe=(0,A.A)("/add-jetpack-ai"),{recordEvent:Ce}=(0,k.A)(),Ae=(0,w.useCallback)(()=>{Ce("jetpack_ai_upgrade_contact_us",{placement:"product-page"})},[Ce]),_e=(0,w.useCallback)(()=>{Ce("jetpack_ai_upgrade_button",{placement:"product-page",context:"my-jetpack",current_tier_slug:F?.slug||"",requests_count:R}),xe()},[Ce,R,F,xe]),Me=(0,w.useCallback)(()=>{Ce("jetpack_ai_upgrade_button",{placement:"product-page",context:"my-jetpack",current_tier_slug:F?.slug||"",requests_count:R})},[Ce,R,F]),Se=(0,w.useCallback)(()=>L(!1),[]);return(0,w.useEffect)(()=>{Ce("jetpack_ai_myjetpack_product_page_view",{current_tier_slug:F?.slug||"",requests_count:R})},[R,F?.slug,Ce]),(0,w.useEffect)(()=>{L(ce||le)},[ce,le]),(0,N.jsx)(i.A,{showHeader:!1,showBackground:!0,children:(0,N.jsxs)(o.A,{fluid:!0,horizontalSpacing:3,horizontalGap:2,children:[(0,N.jsxs)(s.A,{className:(0,v.A)(E.A["product-interstitial__section"]),children:[(0,N.jsx)("div",{className:E.A["product-interstitial__section-wrapper-wide"],children:(0,N.jsx)(_.A,{onClick:e})}),(0,N.jsxs)("div",{className:(0,v.A)(E.A["product-interstitial__section-wrapper-wide"],E.A["product-interstitial__product-header"]),children:[(0,N.jsx)(r.A,{}),(0,N.jsx)("div",{className:E.A["product-interstitial__product-header-name"],children:__("AI Assistant","jetpack-my-jetpack")})]})]}),(0,N.jsx)(s.A,{className:(0,v.A)(E.A["product-interstitial__section"]),children:(0,N.jsxs)("div",{className:E.A["product-interstitial__hero-section"],children:[(0,N.jsxs)("div",{className:E.A["product-interstitial__hero-content"],children:[n?(0,N.jsx)(M.A,{height:"80px",width:"100%"}):(0,N.jsx)("h1",{className:E.A["product-interstitial__hero-heading"],children:y}),(0,N.jsx)("div",{className:E.A["product-interstitial__hero-sub-heading"],children:__("Draft, transform, translate, and alter both new and existing content leveraging the capabilities of AI, inside the block editor.","jetpack-my-jetpack")}),!Y&&!Z&&(0,N.jsx)(N.Fragment,{children:(0,N.jsx)(S.A,{slug:"jetpack-ai",onOpen:Me,modalTriggerButtonLabel:__("Get more requests","jetpack-my-jetpack"),buttonLabel:__("Upgrade","jetpack-my-jetpack"),isWithVideo:!0,secondaryColumn:(0,N.jsxs)("div",{children:[(0,N.jsx)("iframe",{width:"621",height:"447",src:"https://video.wordpress.com/embed/whyeZF1t?cover=1&autoPlay=0&controls=0&loop=1&muted=0&persistVolume=1&playsinline=0&preloadContent=metadata&useAverageColor=1&posterUrl=https%3A%2F%2Fjetpack.com%2Fwp-content%2Fuploads%2F2024%2F09%2Fthumbnail-1.png&hd=1",allowFullScreen:!0,allow:"clipboard-write",title:__("Discover Jetpack AI","jetpack-my-jetpack")}),(0,N.jsx)("script",{src:"https://videopress.com/videopress-iframe.js"})]}),secondaryButtonHref:"https://jetpack.com/ai/"})}),Y&&(0,N.jsx)(u.Button,{variant:"primary",onClick:Ae,href:X,className:E.A["product-interstitial__hero-cta"],children:__("Contact Us","jetpack-my-jetpack")})]}),(0,N.jsxs)("div",{className:E.A["product-interstitial__hero-side"],children:[Q&&(0,N.jsxs)(u.Card,{className:E.A["stats-card"],children:[(0,N.jsx)(c.KH,{}),(0,N.jsxs)("div",{children:[(0,N.jsx)("div",{className:E.A["product-interstitial__stats-card-text"],children:W?me:he}),(0,N.jsx)("div",{className:E.A["product-interstitial__stats-card-value"],children:pe})]})]}),K&&(0,N.jsxs)(u.Card,{className:E.A["stats-card"],children:[(0,N.jsx)(h.A,{icon:m.A,className:E.A["stats-card-icon-check"]}),(0,N.jsxs)("div",{children:[(0,N.jsx)("div",{className:E.A["product-interstitial__stats-card-text"],children:__("All-time requests used","jetpack-my-jetpack")}),(0,N.jsx)("div",{className:E.A["product-interstitial__stats-card-value"],children:R})]})]}),$&&(0,N.jsxs)(u.Card,{className:E.A["stats-card"],children:[(0,N.jsx)(h.A,{icon:m.A,className:E.A["stats-card-icon-check"]}),(0,N.jsxs)("div",{children:[(0,N.jsx)("div",{className:E.A["product-interstitial__stats-card-text"],children:__("Free requests available","jetpack-my-jetpack")}),(0,N.jsx)("div",{className:E.A["product-interstitial__stats-card-value"],children:J})]})]})]})]})}),(0,N.jsx)(s.A,{className:E.A["product-interstitial__section"],children:(0,N.jsxs)("div",{className:E.A["product-interstitial__section-wrapper"],children:[P&&(0,N.jsx)("div",{className:E.A["product-interstitial__ai-notice"],children:(0,N.jsx)(l.A,{actions:W?[(0,N.jsx)(u.Button,{isPrimary:!0,onClick:_e,children:ce?je:ke},"upgrade")]:{},onClose:Se,level:ce?"warning":"error",title:ce?fe:ge,children:ce?be:we})}),(0,N.jsx)("h2",{className:E.A["product-interstitial__section-heading"],children:__("AI Features","jetpack-my-jetpack")}),(0,N.jsx)("p",{className:E.A["product-interstitial__section-sub-heading"],children:__("Discover all the Jetpack features powered by AI","jetpack-my-jetpack")}),(0,N.jsxs)("div",{className:E.A["product-interstitial__usage-videos"],children:[(0,N.jsxs)("div",{className:E.A["product-interstitial__usage-videos-item"],children:[(0,N.jsxs)("div",{className:E.A["proLine truncated
|
||||
(0,d.sprintf)(__("Get %s","jetpack-my-jetpack"),X),/* translators: %s is the bundled product name */ /* translators: %s is the bundled product name */
|
||||
(0,d.sprintf)(__("Get %s","jetpack-my-jetpack"),ee)];(0,h.useEffect)(()=>{Z("jetpack_myjetpack_product_interstitial_view",{product:_})},[Z,_]);const ne=(0,h.useCallback)((e=!1)=>e?"":"crm"===_?"jetpack-crm":W?.tiers?.upgraded?.wpcomProductSlug?W.tiers.upgraded.wpcomProductSlug:W?.wpcomProductSlug,[_,W]),re=(0,h.useCallback)(t=>{const{customSlug:n=null,isFreePlan:r=!1,ctaText:a=null}=t||{};Z("jetpack_myjetpack_product_interstitial_add_link_click",{product:n||(e??_),product_slug:ne(r),cta_text:a})},[Z,_,ne,e]),ae=(0,w.A)(m.NM.Home),ie=(0,h.useCallback)((e,t,n)=>{I?.({slug:_,product:t,tier:n}),t?.isBundle||T?e?.():R({productId:_},{onSettled:r=>{let a=r?.post_checkout_url||Y;z&&r?.post_checkout_urls_by_feature?.[z]&&(a=r.post_checkout_urls_by_feature[z]);const i=t?.hasPaidPlanForProduct,s=n?t?.pricingForUi?.tiers?.[n]?.isFree:t?.pricingForUi?.isFree,o=!s&&!i||n&&t?.pricingForUi?.tiers?.[n]&&!s&&t?.isUpgradable;"zero-bs-crm"!==t.pluginSlug||i?o?e?.(null,a):Q().then(e=>{if(!e)return ae()}):window.location.href="https://jetpackcrm.com/pricing/"}})},[Y,z,I,_,T,R,Q,ae]);return(0,A.jsx)(r.A,{showHeader:!1,showBackground:!1,children:(0,A.jsxs)(i.A,{horizontalSpacing:3,horizontalGap:3,children:[(0,A.jsxs)(a.A,{className:C.A["product-interstitial__header"],children:[(0,A.jsx)(j.A,{onClick:G}),t&&(0,A.jsx)(s.Ay,{variant:"body-small",children:(0,u.createInterpolateElement)(__("Already have an existing plan or license key? <a>Click here to get started</a>.","jetpack-my-jetpack"),{a:(0,A.jsx)(o.A,{className:C.A["product-interstitial__license-activation-link"],href:t,variant:"link"})})})]}),(0,A.jsx)(a.A,{children:$?(0,A.jsx)(x.A,{slug:_,clickHandler:ie,onProductButtonClick:ie,trackProductButtonClick:re,preferProductName:S,isFetching:F||J,isFetchingSuccess:B,feature:z}):(0,A.jsxs)(i.A,{className:q?null:C.A.container,horizontalSpacing:0,horizontalGap:0,fluid:!0,children:[(0,A.jsx)(a.A,{sm:4,md:4,lg:7,children:(0,A.jsx)(k.A,{slug:_,trackButtonClick:re,onClick:n?ie:void 0,className:q?C.A.container:null,supportingInfo:M,preferProductName:S,ctaButtonLabel:O,hideTOS:P||K,quantity:L,highlightLastFeature:V,isFetching:F||J,isFetchingSuccess:B})}),(0,A.jsx)(a.A,{sm:4,md:4,lg:5,className:(0,p.A)(C.A.imageContainer,N),children:e?(0,A.jsx)(k.A,{slug:e,trackButtonClick:re,onClick:ie,className:q?C.A.container:null,hideTOS:P||K,quantity:L,highlightLastFeature:V,isFetching:F,isFetchingSuccess:B,isUpsell:!0}):E})]})}),(0,A.jsx)(a.A,{children:K&&(0,A.jsx)("div",{className:C.A["tos-container"],children:(0,A.jsx)(c.A,{multipleButtons:te})})})]})})}},49387(e,t,n){"use strict";n.d(t,{c:()=>c});var r=n(27723),a=n(48799),i=n(89160),s=n(10790);const __=r.__,o=({height:e=42})=>(0,s.jsx)("img",{src:a,alt:"Anti-Spam Logo",height:e});function c(){const{INCLUDED:e,NOT_INCLUDED:t,FREE:n,START_FOR_FREE:r,GET_SECURITY:a,PRIORITY_SUPPORT:s}=(0,i.TR)();return{title:__("Automatically stop comment and form spam","jetpack-my-jetpack"),logo:o,bundle:i.ld,features:[{name:__("Commercial usage","jetpack-my-jetpack"),free:{included:!1,label:t},paid:{included:!0,label:e},bundle:{included:!0,label:__("Akismet spam protection","jetpack-my-jetpack")}},{name:__("Comment and form protection","jetpack-my-jetpack"),free:{included:!0,label:e},paid:{included:!0,label:e},bundle:{included:!0,label:__("Real-time cloud backups","jetpack-my-jetpack")}},{name:__("Block spam without CAPTCHAs","jetpack-my-jetpack"),free:{included:!0,label:e},paid:{included:!0,label:e},bundle:{included:!0,label:__("10GB of backup storage","jetpack-my-jetpack")}},{name:__("API Calls / Month","jetpack-my-jetpack"),free:{included:!0,label:__("10K","jetpack-my-jetpack")},paid:{included:!0,label:__("10K","jetpack-my-jetpack")},bundle:{included:!0,label:__("Automated malware scan","jetpack-my-jetpack")}},{name:s,free:{included:!1,label:t},paid:{included:!0,label:e},bundle:{included:!0,label:"One-click fixes for threats"}}],tiers:{free:{name:n,cta:r},paid:{name:"Anti-Spam",cta:__("Get Anti-Spam","jetpack-my-jetpack")},bundle:{name:i.l5,cta:a}}}}},96529(e,t,n){"use strict";n.d(t,{r:()=>s});var r=n(27723),a=n(8937),i=n(89160);const __=r.__;function s(){const{INCLUDED:e,GET_SECURITY:t}=(0,i.TR)();return{title:__("The best real-time WordPress backup plugin","jetpack-my-jetpack"),logo:a.A,bundle:i.ld,features:[{name:__("Real-time backups","jetpack-my-jetpack"),paid:{included:!0,label:e},bundle:{included:!0,label:__("All Backup features","jetpack-my-jetpack")}},{name:__("Cloud backup storage","jetpack-my-jetpack"),paid:{included:!0,label:__("10 GB","jetpack-my-jetpack")},bundle:{included:!0,label:__("Real-time cloud backups","jetpack-my-jetpack")}},{name:__("One-click restores","jetpack-my-jetpack"),paid:{included:!0,label:__("30-day history","jetpack-my-jetpack")},bundle:{included:!0,label:__("10GB of backup storage","jetpack-my-jetpack")}},{name:__("Backup history","jetpack-my-jetpack"),tooltipInfo:__("Backup retention is still subject to the overall storage limit and usage.","jetpack-my-jetpack"),paid:{included:Line truncated
|
||||
__("%s Records","jetpack-my-jetpack"),(0,r.qe)(5e3))},paid:{included:!0,label:(0,a.sprintf)(/* translators: %s: Number of records in compact form, e.g., "10k" */
|
||||
__("%s Records","jetpack-my-jetpack"),(0,r.qe)(1e4))},bundle:{included:!0,label:__("All Search features","jetpack-my-jetpack")}},{name:__("Monthly Requests","jetpack-my-jetpack"),free:{included:!0,label:(0,a.sprintf)(/* translators: %s: Number of requests in compact form, e.g., "500" */
|
||||
__("%s Requests","jetpack-my-jetpack"),(0,r.qe)(500))},paid:{included:!0,label:(0,a.sprintf)(/* translators: %s: Number of requests in compact form, e.g., "10k" */
|
||||
__("%s Requests","jetpack-my-jetpack"),(0,r.qe)(1e4))},bundle:{included:!0,label:"Detailed stats and insights"}},{name:__("Unbranded Search","jetpack-my-jetpack"),free:{included:!1,label:__("Not Included","jetpack-my-jetpack")},paid:{included:!0,label:__("Branding Removed","jetpack-my-jetpack")},bundle:{included:!0,label:"AI-powered writing and image generation"}},{name:__("Instant Search and indexing","jetpack-my-jetpack"),free:{included:!0,label:e},paid:{included:!0,label:e},bundle:{included:!0,label:"Real-time backups and one-click restores"}},{name:__("Powerful filtering","jetpack-my-jetpack"),free:{included:!0,label:e},paid:{included:!0,label:e},bundle:{included:!0,label:"Malware scanning and security protection"}},{name:__("Supports 38 languages","jetpack-my-jetpack"),free:{included:!0,label:e},paid:{included:!0,label:e},bundle:{included:!0,label:"Spam filtering for comments and forms"}},{name:__("Spelling Correction","jetpack-my-jetpack"),free:{included:!0,label:e},paid:{included:!0,label:e},bundle:{included:!0,label:"Site performance and SEO optimization"}},{name:u,free:{included:!1,label:t},paid:{included:!0,label:e},bundle:{included:!0,label:l}},{name:"",free:{included:!1,label:""},paid:{included:!1,label:""},bundle:{included:!0,label:u}}],tiers:{free:{name:n,cta:o},paid:{name:"Search",cta:__("Get Search","jetpack-my-jetpack")},bundle:{name:s.Wz,cta:c}}}}},89160(e,t,n){"use strict";n.d(t,{TR:()=>c,Ux:()=>s,Wz:()=>o,l5:()=>i,ld:()=>a});var r=n(27723);const __=r.__,a="security",i="Security",s="complete",o="Complete",c=()=>({FREE:__("Free","jetpack-my-jetpack"),START_FOR_FREE:__("Start for Free","jetpack-my-jetpack"),INCLUDED:__("Included","jetpack-my-jetpack"),NOT_INCLUDED:__("Not included","jetpack-my-jetpack"),
|
||||
/* translators: "Security" here shouldn't be translated as its the name of the bundle */
|
||||
GET_SECURITY:__("Get Security","jetpack-my-jetpack"),
|
||||
/* translators: "Complete" here shouldn't be translated as its the name of the bundle */
|
||||
GET_COMPLETE:__("Get Complete","jetpack-my-jetpack"),PRIORITY_SUPPORT:__("Priority support","jetpack-my-jetpack"),REAL_TIME_BACKUPS:__("Real-time backups and restores","jetpack-my-jetpack"),DETAILED_STATS:__("Detailed stats and insights","jetpack-my-jetpack"),MALWARE_SCANNING:__("Malware scanning and protection","jetpack-my-jetpack"),VIDEO_HOSTING_1TB:__("Video hosting (1TB, ad-free)","jetpack-my-jetpack"),INSTANT_SITE_SEARCH:__("Instant site search","jetpack-my-jetpack"),SOCIAL_TOOLS:__("Social tools","jetpack-my-jetpack")})},84964(e,t,n){"use strict";n.d(t,{g:()=>s});var r=n(27723),a=n(12382),i=n(89160);const __=r.__;function s(){const{INCLUDED:e,NOT_INCLUDED:t,FREE:n,START_FOR_FREE:r,GET_COMPLETE:s,DETAILED_STATS:o,INSTANT_SITE_SEARCH:c,VIDEO_HOSTING_1TB:l,PRIORITY_SUPPORT:u}=(0,i.TR)();return{title:__("Publish once. Share everywhere.","jetpack-my-jetpack"),logo:a.A,bundle:i.Ux,features:[{name:__("Automatically share your posts and products on social media","jetpack-my-jetpack"),free:{included:!0,label:e},paid:{included:!0,label:e},bundle:{included:!0,label:__("All Social features","jetpack-my-jetpack")}},{name:__("Post to multiple channels at once","jetpack-my-jetpack"),free:{included:!0,label:e},paid:{included:!0,label:e},bundle:{included:!0,label:o}},{name:__("Manage all of your channels from a single hub","jetpack-my-jetpack"),free:{included:!0,label:e},paid:{included:!0,label:e},bundle:{included:!0,label:__("AI-powered writing and image generation","jetpack-my-jetpack")}},{name:__("Scheduled posts","jetpack-my-jetpack"),tooltipInfo:__("Schedule your social media posts to publish at optimal times.","jetpack-my-jetpack"),free:{included:!0,label:e},paid:{included:!0,label:e},bundle:{included:!0,label:c}},{name:__("Share to 8 social networks","jetpack-my-jetpack"),tooltipInfo:__("Share to Facebook, Instagram, Threads, Bluesky, LinkedIn, Mastodon, Tumblr, and Nextdoor.","jetpack-my-jetpack"),free:{included:!0,label:e},paid:{included:!0,label:e},bundle:{included:!0,label:__("Real-time backups and one-click restores","jetpack-my-jetpack")}},{name:__("Recycle content","jetpack-my-jetpack"),tooltipInfo:__("Repurpose, reuse or republish already published content.","jetpack-my-jetpack"),free:{included:!0,label:e},paid:{included:!0,label:e},bundle:{included:!0,label:__("Malware scanning and security protection","jetpack-my-jetpack")}},{name:__("Automatically generate images for posts","jetpack-my-jetpack"),tooltipInfo:__("Automatically create custom images, saving you hours of tedious work.","jetpack-my-jetpack"),free:{included:!1,label:t},paid:{included:!0,label:e},bundle:{included:!0,label:__("Spam filtering for comments and forms","jetpack-my-jetpack")}},{name:__("Upload custom images or videos with your posts","jetpack-my-jetpack"),free:{included:!1,label:t},paid:{included:!0,label:e},bundle:{included:!0,label:__("Site performance and SEO optimization","jetpack-my-jetpack")}},{name:u,free:{included:!1,label:t},paid:{included:!0,label:e},bundle:{included:!0,label:l}},{name:"",free:{included:!1,label:""},paid:{included:!1,label:""},bundle:{included:!0,label:u}}],tiers:{free:{name:n,cta:r},paid:{name:"Social",cta:__("Get Social","jetpack-my-jetpack")},bundle:{name:i.Wz,cta:s}}}}},19877(e,t,n){"use strict";n.d(t,{V:()=>s});var r=n(27723),a=n(4957),i=n(89160);const __=r.__;function s(){const{INCLUDED:e,NOT_INCLUDED:t,FREE:n,START_FOR_FREE:r,GET_COMPLETE:s,INSTANT_SITE_SEARCH:o,DETAILED_STATS:c,SOCIAL_TOOLS:l,PRIORITY_SUPPORT:u}=(0,i.TR)();return{title:__("Stunning‑quality video for WordPress","jetpack-my-jetpack"),logo:a.A,bundle:i.Ux,features:[{name:__("Video Storage","jetpack-my-jetpack"),free:{included:!0,label:__("One video","jetpack-my-jetpack")},paid:{included:!0,label:__("1TB of storage","jetpack-my-jetpack")},bundle:{included:!0,label:__("All VideoPress features","jetpack-my-jetpack")}},{name:__("Built into WordPress editor","jetpack-my-jetpack"),free:{included:!0,label:e},paid:{included:!0,label:e},bundle:{included:!0,label:__("Site performance and SEO optimization","jetpack-my-jetpack")}},{name:__("Ad-free and customizable player","jetpack-my-jetpack"),free:{included:!1,label:t},paid:{included:!0,label:e},bundle:{included:!0,label:__("Real-time backups and one-click restores","jetpack-my-jetpack")}},{name:__("Unlimited users","jetpack-my-jetpack"),free:{included:!1,label:t},paid:{included:!0,label:e},bundle:{included:!0,label:__("Malware scanning and security protection","jetpack-my-jetpack")}},{name:u,free:{included:!1,label:t},paid:{included:!0,label:e},bundle:{included:!0,label:__("Spam filtering for comments and forms","jetpack-my-jetpack")}},{name:"",free:{included:!1,label:""},paid:{included:!1,label:""},bundle:{included:!0,label:__("AI-powered writing and image generation","jetpack-my-jetpack")}},{name:"",free:{included:!1,label:""},paid:{included:!1,label:""},bundle:{included:!0,label:o}},{name:"",free:{included:!1,label:""},paid:{included:!1,label:""},bundle:{included:!0,label:c}},{name:"",Line truncated
|
||||
// translators: %s: number of views
|
||||
e=>_n("%s view","%s views",e,"jetpack-my-jetpack"),e?.views,t?.views),icon:(0,v.jsx)(a.A,{icon:m.A}),count:e?.views,previousCount:t?.views,as:"li",isSelected:"views"===j,onClick:A}),(0,v.jsx)(p.A,{heading:__("Visitors","jetpack-my-jetpack"),srText:y(
|
||||
// translators: %s: number of visitors
|
||||
e=>_n("%s visitor","%s visitors",e,"jetpack-my-jetpack"),e?.visitors,t?.visitors),icon:(0,v.jsx)(a.A,{icon:o.A}),count:e?.visitors,previousCount:t?.visitors,as:"li",isSelected:"visitors"===j,onClick:_}),(0,v.jsx)(p.A,{heading:__("Likes","jetpack-my-jetpack"),srText:y(
|
||||
// translators: %s: number of likes
|
||||
e=>_n("%s like","%s likes",e,"jetpack-my-jetpack"),e?.likes,t?.likes),icon:(0,v.jsx)(a.A,{icon:c.A}),count:e?.likes,previousCount:t?.likes,as:"li",isSelected:"likes"===j,onClick:M}),(0,v.jsx)(p.A,{heading:__("Comments","jetpack-my-jetpack"),srText:y(
|
||||
// translators: %s: number of comments
|
||||
e=>_n("%s comment","%s comments",e,"jetpack-my-jetpack"),e?.comments,t?.comments),icon:(0,v.jsx)(a.A,{icon:s.A}),count:e?.comments,previousCount:t?.comments,as:"li",isSelected:"comments"===j,onClick:S})]})]})}},90003(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(56427),a=n(13109),i=n(62107),s=n(87756),o=n(13022),c=n(28120),l=n.n(c),u=n(51609),d=n(56581),p=n(76752),h=n(10790);const m=({count:e=0,previousCount:t=0,as:n="div",icon:c,heading:l,srText:m,isSelected:f=!1,onClick:g})=>{const v=(b=t,"number"!=typeof(y=e)||"number"!=typeof b?null:y-b);var y,b;const w=Math.abs(v),j=Number.isFinite(v)?((e,t)=>{if("number"!=typeof e||"number"!=typeof t)return null;if(0===e&&0===t)return 0;const n=e/t*100;return Math.abs(n)===1/0?100:Math.round(n)})(w,t):null,k=(0,o.A)(p.A["stats-card"],{[p.A["stats-card--selected"]]:f,[p.A["stats-card--clickable"]]:g}),x=(0,u.useCallback)(()=>{g&&g()},[g]),C=(0,u.useCallback)(e=>{!g||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),g())},[g]);return(0,h.jsxs)(r.Card,{className:k,as:n,onClick:x,onKeyDown:C,tabIndex:g?0:void 0,role:g?"button":void 0,"aria-pressed":g?f:void 0,children:[(0,h.jsx)("span",{className:"screen-reader-text",children:m}),(0,h.jsxs)("div",{className:p.A["stats-card-content"],children:[(0,h.jsxs)("div",{className:p.A["stats-card-header"],children:[c&&(0,h.jsx)("div",{className:p.A["stats-card-icon"],children:c}),l&&(0,h.jsx)("div",{className:p.A["stats-card-heading"],children:l})]}),(0,h.jsxs)("div",{className:p.A["stats-card-count"],children:[(0,h.jsx)("span",{className:p.A["stats-card-count-value"],title:Number.isFinite(e)?String(e):void 0,children:(0,d.A)(e)}),null!==v&&0!==v?(0,h.jsxs)("span",{className:(0,o.A)(p.A["stats-card-difference"],{[p.A["stats-card-difference--positive"]]:v<0,[p.A["stats-card-difference--negative"]]:v>0}),children:[(0,h.jsxs)("span",{className:p.A["stats-card-difference-icon"],title:String(v),children:[v<0&&(0,h.jsx)(a.A,{size:18,icon:i.A}),v>0&&(0,h.jsx)(a.A,{size:18,icon:s.A})]}),(0,h.jsx)("span",{className:p.A["stats-card-difference-absolute-value"],children:w>9999?(0,d.A)(w):(0,d.A)(w,{})}),null!==j&&0!==j&&(0,h.jsxs)("span",{className:p.A["stats-card-difference-absolute-percentage"],children:["(",j,"%)"]})]}):null]})]})]})};m.propTypes={count:l().number,heading:l().node,icon:l().node,previousCount:l().number,srText:l().string,isSelected:l().bool,onClick:l().func};const f=m},0(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(27723),a=n(56581),i=n(88496);const __=r.__,s=(e,t,n)=>{if("number"!=typeof t||"number"!=typeof n)return"";const s=t-n;if(0===s)return __("No change since the previous period.","jetpack-my-jetpack");const o=e(Math.abs(s)),c=(0,r.sprintf)(o,(0,a.A)(Math.abs(s))),l=0!==n?Math.abs(s/n):null;return l?s>0?(0,r.sprintf)(
|
||||
// translators: %1$s: stat difference (e.g. `5 views`), %2$s: stat difference percentage (e.g. `10%`)
|
||||
__("An increase of %1$s or %2$s since the previous period.","jetpack-my-jetpack"),c,(0,i.A)(l)):(0,r.sprintf)(
|
||||
// translators: %1$s: stat difference (e.g. `5 views`), %2$s: stat difference percentage (e.g. `10%`)
|
||||
__("A decrease of %1$s or %2$s since the previous period.","jetpack-my-jetpack"),c,(0,i.A)(l)):s>0?(0,r.sprintf)(
|
||||
// translators: %s: stat difference (e.g. `5 views`)
|
||||
__("An increase of %s since the previous period.","jetpack-my-jetpack"),c):(0,r.sprintf)(
|
||||
// translators: %s: stat difference (e.g. `5 views`)
|
||||
__("A decrease of %s since the previous period.","jetpack-my-jetpack"),c)}},93336(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(56427),a=n(10790);const i=(0,a.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(r.Path,{d:"m4 13 .67.336.003-.005a2.42 2.42 0 0 1 .094-.17c.071-.122.18-.302.329-.52.298-.435.749-1.017 1.359-1.598C7.673 9.883 9.498 8.75 12 8.75s4.326 1.132 5.545 2.293c.61.581 1.061 1.163 1.36 1.599a8.29 8.29 0 0 1 .422.689l.002.005L20 13l.67-.336v-.003l-.003-.005-.008-.015-.028-.052a9.752 9.752 0 0 0-.489-.794 11.6 11.6 0 0 0-1.562-1.838C17.174 8.617 14.998 7.25 12 7.25S6.827 8.618 5.42 9.957c-.702.669-1.22 1.337-1.563 1.839a9.77 9.77 0 0 0-.516.845l-.008.015-.002.005-.001.002v.001L4 13Zm8 3a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z"})})},1035(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(27723),a=n(51609),i=n(38837),s=n(74923),o=n(68242),c=n(64526),l=n(51870),u=n(84956),d=n(6176),p=n(49654),h=n(10790);const __=r.__,m={period:"day",quantity:14,date:new Date(Date.now()+6e4*(new Date).getTimezoneOffset())},f=()=>{const e="stats",{blogID:t,isSiteConnected:n}=(0,l.A)(),{detail:r}=(0,s.A)(e),{status:f}=r,g=!!(0,o.A$)("userIsAdmin"),{recordEvent:v}=(0,c.A)(),{data:y,isLoading:b}=(0,u.A)(t,n,m),w=(0,a.useMemo)(()=>(e=>{if(!(e&&e.fields&&e.data&&Array.isArray(e.data)))return{counts:{},previousCounts:{},chartData:null};const{fields:t,data:n}=e,r=t.indexOf("period");if(-1===r)return{counts:{},previousCounts:{},chartData:null};const a=t.indexOf("views"),i=t.indexOf("visitors"),s=t.indexOf("likes"),o=t.indexOf("comments"),c=[...n].sort((e,t)=>new Date(t[r])-new Date(e[r])),l=c.slice(0,7),u=c.slice(7,14);return{counts:{views:-1!==a?l.reduce((e,t)=>e+(t[a]||0),0):0,visitors:-1!==i?l.reduce((e,t)=>e+(t[i]||0),0):0,likes:-1!==s?l.reduce((e,t)=>e+(t[s]||0),0):0,comments:-1!==o?l.reduce((e,t)=>e+(t[o]||0),0):0},previousCounts:{views:-1!==a?u.reduce((e,t)=>e+(t[a]||0),0):0,visitors:-1!==i?u.reduce((e,t)=>e+(t[i]||0),0):0,likes:-1!==s?u.reduce((e,t)=>e+(t[s]||0),0):0,comments:-1!==o?u.reduce((e,t)=>e+(t[o]||0),0):0},chartData:{fields:t,data:l.reverse()}}})(y),[y]),{counts:j,previousCounts:k,chartData:x}=w,C=(0,a.useCallback)(()=>{v("jetpack_myjetpack_stats_card_seedetailedstats_click",{product:e}),window.location.href="admin.php?page=stats&force_refresh=1"},[v]),A=(0,a.useCallback)(()=>!(f!==i.hp.CAN_UPGRADE),[f]),_={href:"admin.php?page=stats",label:__("View detailed stats","jetpack-my-jetpack"),onClick:C,shouldShowButton:A},M={[i.hp.ACTIVE]:{label:__("View detailed stats","jetpack-my-jetpack")},[i.hp.SITE_CONNECTION_ERROR]:{label:__("Connect Jetpack to use Stats","jetpack-my-jetpack")},[i.hp.NEEDS_FIRST_SITE_CONNECTION]:{href:`#/add-${e}`}};return(0,h.jsx)(d.A,{admin:g,slug:e,primaryActionOverride:M,secondaryAction:_,showMenu:!0,variant:"slim",children:(0,h.jsx)(p.A,{counts:j,previousCounts:k,headingLevel:3,chartData:x,isLoading:b,onDetailedStatsClick:C})})}},39477(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(13022),a=n(56581),i=n(97451),s=n(10790);const o=({tooltipData:e,metricIcon:t})=>{const n=e?.nearestDatum?.datum;if(!n||!e)return null;const o=Object.entries(e?.datumByKey||{}).map(([e,{datum:t}])=>({key:e,value:t.value})),c=n.label||n.date&&new Date(n.date).toLocaleDateString(void 0,{month:"short",day:"numeric"})||"";return(0,s.jsxs)("div",{className:i.A["stats-line-chart-tooltip"],children:[(0,s.jsx)("div",{className:(0,r.A)(i.A["module-content-list-item"],i.A["is-date-label"]),children:c}),(0,s.jsx)("ul",{children:o.map(e=>(0,s.jsx)("li",{className:(0,r.A)(i.A["module-content-list-item"]),children:(0,s.jsxs)("span",{className:(0,r.A)(i.A["chart__tooltip-wrapper"],i.A.wrapper),children:[(0,s.jsxs)("span",{className:(0,r.A)(i.A["chart__tooltip-label"],i.A.label),children:[(0,s.jsx)("span",{className:i.A.gridicon,children:t}),(0,s.jsx)("span",{children:e.key})]}),(0,s.jsx)("span",{className:(0,r.A)(i.A["chart__tooltip-value"],i.A.value),children:(0,a.A)(e.value)})]})},e.key))})]})}},18123(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(96047),a=n(27723),i=n(13109),s=n(28847),o=n(51609),c=n(81434),l=n(39477),u=n(61853),d=n(10790);const __=a.__,p=({data:e,isLoading:t,onClick:n,onKeyDown:a,metricIcon:p})=>{const h=(0,o.useMemo)(()=>!t&&e?.[0]?.data?.every(e=>0===e.value),[e,t]),m=(0,o.useMemo)(()=>{if(h||!e?.[0]?.data?.length)return[0,1];const t=Math.max(...e[0].data.map(e=>e.value));return[0,Math.max(1,1.1*t)]},[e,h]),f=(0,o.useCallback)(({tooltipData:e})=>(0,d.jsx)(l.A,{tooltipData:e,metricIcon:p}),[p]);return(0,d.jsxs)("div",{className:u.A["chart-container"],onClick:n,role:"button",tabIndex:0,onKeyDown:a,children:[h&&(0,d.jsx)("div",{className:u.A["chart-empty"],children:(0,d.jsxs)("div",{className:u.A["empty-state-card"],title:__("No data in this period","jetpack-my-jetpack"),children:[(0,d.jsx)(i.A,{className:u.A["empty-state-card__icon"],icon:s.A,size:32}),(0,d.jsxs)("div",{className:u.A["empty-state-card__content"],children:[(0,d.jsx)("div",{className:u.A["empty-state-card-heading"Line truncated
|
||||
// translators: %s is the name of the information being fetched, e.g. "site purchases".
|
||||
__("There was an error fetching your %s information. Check your site connectivity and try again.","jetpack-my-jetpack"),e);(0,a.useEffect)(()=>{t&&c.includes(e)&&o({message:l,options:{id:"fetching-error-notice",level:"error",priority:i.PG}})},[l,o,t,e])}},41526(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(63406),a=n(27723),i=n(64526),s=n(31504),o=n(10929),c=n(68242),l=n(4682);const __=a.__,u=e=>{const t=Array.isArray(e)?e:[e],{products:n,refetch:u}=(0,l.A)(t),{recordEvent:d}=(0,i.A)(),{createSuccessNotice:p}=(0,r.I)(),{mutate:h,isPending:m,isSuccess:f}=(0,o.A)({name:s.FW,query:{path:`${s.jf}/activate`,method:"POST",data:{products:t}},options:{onSuccess:()=>{n?.forEach(e=>{(e=>{const{standalonePluginInfo:t,isPluginActive:n}=e;return t?.hasStandalonePlugin?t?.isStandaloneActive:n})(e)||(d("jetpack_myjetpack_product_activated",{product:e.slug}),(e=>{const{items:t}=(0,c.A$)("products");"jetpack"!==t[e]?.plugin_slug&&t[e]?.standalone_plugin_info.has_standalone_plugin&&(window.myJetpackInitialState.products.items[e].standalone_plugin_info.is_standalone_active=!0,window.myJetpackInitialState.products.items[e].standalone_plugin_info.is_standalone_installed=!0)})(e.slug))}),u().then(()=>{p((0,a.sprintf)(/* translators: %s is either the product name, i.e.- "Jetpack Backup" or the word "Plugins". */
|
||||
__("%s activated successfully!","jetpack-my-jetpack"),1===n?.length?n[0].title:__("Plugins","jetpack-my-jetpack")))})}},errorMessage:(0,a.sprintf)(
|
||||
// translators: %s is the Jetpack product name or comma-separated list of multiple Jetpack product names.
|
||||
__("There was a problem activating %s.","jetpack-my-jetpack"),n?.map(e=>e?.name).join(", "))});return{activate:h,isPending:m,isSuccess:f}}},488(e,t,n){"use strict";n.d(t,{V:()=>o});var r=n(31504),a=n(280),i=n(68242),s=n(87451);const o=()=>{const{items:e}=(0,i.A$)("products"),{data:t,isLoading:n,isRefetching:o,isError:c,refetch:l}=(0,a.A)({name:`${r.xF}`,query:{path:`${r.jf}`},options:{enabled:!0}});if(!n&&!c)for(const[n,r]of Object.entries(e))t&&t[n]&&(e[n]={...r,...t[n]});return e?{data:Object.entries(e).reduce((e,[t,n])=>({...e,[t]:(0,s.l)(n)}),{}),refetch:l,isLoading:n,isRefetching:o,isError:c}:{data:{},isLoading:!1,isError:!1,isRefetching:o,refetch:l}}},50901(e,t,n){"use strict";n.d(t,{m:()=>u});var r=n(63406),a=n(27723),i=n(64526),s=n(31504),o=n(10929),c=n(68242),l=n(4682);const __=a.__,u=e=>{const t=Array.isArray(e)?e:[e],{products:n,refetch:u}=(0,l.A)(t),{recordEvent:d}=(0,i.A)(),{createSuccessNotice:p}=(0,r.I)(),{mutate:h,isPending:m,isSuccess:f}=(0,o.A)({name:s.FW,query:{path:`${s.jf}/deactivate`,method:"DELETE",data:{products:t}},options:{onSuccess:()=>{n?.forEach(e=>{(e=>{const{standalonePluginInfo:t}=e;return t?.hasStandalonePlugin?t?.isStandaloneActive:e.isPluginActive})(e)&&(d("jetpack_myjetpack_product_deactivated",{product:e.slug}),(e=>{const{items:t}=(0,c.A$)("products");"jetpack"!==t[e]?.plugin_slug&&t[e]?.standalone_plugin_info.has_standalone_plugin&&(window.myJetpackInitialState.products.items[e].standalone_plugin_info.is_standalone_active=!1)})(e.slug))}),u().then(()=>{p((0,a.sprintf)(/* translators: %s is either the product name, i.e.- "Jetpack Backup" or the word "Plugins". */
|
||||
__("%s deactivated successfully!","jetpack-my-jetpack"),1===n?.length?n[0].title:__("Plugins","jetpack-my-jetpack")))})}},errorMessage:(0,a.sprintf)(
|
||||
// translators: %s is the Jetpack product name or comma-separated list of multiple Jetpack product names.
|
||||
__("There was a problem deactivating %s.","jetpack-my-jetpack"),n?.map(e=>e?.name).join(", "))});return{deactivate:h,isPending:m,isSuccess:f}}},55394(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(63406),a=n(27723),i=n(31504),s=n(10929),o=n(4682);const __=a.__,c=e=>{const t=Array.isArray(e)?e:[e],{products:n,refetch:c}=(0,o.A)(t),{createSuccessNotice:l}=(0,r.I)(),u=(0,a.sprintf)(/* translators: %s is the name of a Jetpack plugin, i.e.- "VaultPress Backup" or "Boost" or "Social" or "Search" or "VideoPress", etc. */
|
||||
__("%s installed successfully!","jetpack-my-jetpack"),n[0]?.title),d=__("Plugins installed successfully!","jetpack-my-jetpack"),p=1===n?.length?u:d,{mutate:h,isPending:m}=(0,s.A)({name:i.jE,query:{path:`${i.jf}/install`,method:"POST",data:{products:t}},options:{onSuccess:()=>{c().then(()=>{l(p)})}},errorMessage:(0,a.sprintf)(
|
||||
// translators: %s is the Jetpack plugin name or comma-separated list of multiple Jetpack plugin names.
|
||||
__("There was a problem installing and activating %s.","jetpack-my-jetpack"),n?.map(e=>e?.name).join(", "))});return{install:h,isPending:m}}},74923(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(4682);const a=e=>{const{products:t,refetch:n,isLoading:a,isRefetching:i}=(0,r.A)([e]);return{detail:t[0],refetch:n,isLoading:a,isRefetching:i}}},65350(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(51609),a=n(56077),i=n(31504),s=n(280);const o=()=>{const[e,t]=(0,a._)("productsOwnership",{ownedProducts:[],unownedProducts:[]}),{data:n,refetch:o,isLoading:c}=(0,s.A)({name:`${i.Rx}`,query:{path:i.g_}});return(0,r.useEffect)(()=>{if(!c&&n){const{ownedProducts:e=[],unownedProducts:r=[]}=n;t({ownedProducts:e,unownedProducts:r})}},[n,c,t]),{refetch:o,data:e,isLoading:c}}},4682(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(51609),a=n(31504),i=n(280),s=n(488);const o=e=>{const t=Array.isArray(e)?e:[e],{data:n,isLoading:o}=(0,s.V)(),c=t?.map(e=>n?.[e]),{refetch:l,isLoading:u,isRefetching:d}=(e=>{const t=e&&e?.length?`?products=${e?.join(",")}`:"";return(0,i.A)({name:`${a.xF}`,query:{path:`${a.jf}${t}`},options:{enabled:!1}})})(t);return{products:c,refetch:(0,r.useCallback)(()=>(async e=>{const{data:t,isError:n,isLoading:r}=await e(),a=window.myJetpackInitialState.products.items;n||r||Object.keys(t).forEach(e=>{window.myJetpackInitialState.products.items[e]={...a[e],...t[e]}})})(l),[l]),isLoading:u||o,isRefetching:d}}},58402(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(31504),a=n(10929);const i=()=>{const{mutate:e}=(0,a.A)({name:r.E4,query:{path:r.Hm,method:"POST"},options:{onSuccess:e=>{e.length>0&&(window.myJetpackInitialState.lifecycleStats.historicallyActiveModules=e)}}});return e}},40357(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(5932),a=n(35104),i=n(72447),s=n(68242);const o=({name:e,queryFn:t,errorMessage:n})=>{const o=(0,a.I)({queryKey:[e],queryFn:()=>{const{apiRoot:e,apiNonce:n}=(0,s.qG)();return r.Ay.setApiRoot(e),r.Ay.setApiNonce(n),t(r.Ay)},refetchOnWindowFocus:!1,refetchIntervalInBackground:!1}),{isError:c,isLoading:l}=o;return(0,i.M)({infoName:e,isError:!l&&c,overrideMessage:n}),o}},62902(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(31504),a=n(280);const i=()=>{const e=document.cookie.split(";").map(e=>e.trim()).filter(e=>e.includes("_dismissed")),{data:t={},isLoading:n,isError:i,refetch:s}=(0,a.A)({name:r.MX,query:{path:r.dL,method:"POST",data:{dismissal_cookies:e}}});return{data:t,isLoading:n,isError:i,refetch:s}}},10929(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(34613),a=n(1455),i=n.n(a),s=n(93832),o=n(72447);const c=({name:e,query:t,options:n,errorMessage:a})=>{const c=(0,r.n)({mutationKey:[e],mutationFn:e=>{const n=Object.assign({},t);return e&&"queryParams"in e&&(n.path=(0,s.addQueryArgs)(n.path,e.queryParams),delete e.queryParams),i()({...n,...e})},...n}),{isError:l,isPending:u}=c;return(0,o.M)({infoName:e,isError:!u&&l,overrideMessage:a}),c}},280(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(35104),a=n(1455),i=n.n(a),s=n(72447);const o=({name:e,query:t,options:n,errorMessage:a})=>{const o=(0,r.I)({queryKey:[e,t],queryFn:()=>i()(t),refetchOnWindowFocus:!1,refetchIntervalInBackground:!1,...n}),{error:c,isError:l,isLoading:u}=o;return(0,s.M)({infoName:e,isError:!u&&l&&"not_connected"!==c.code,overrideMessage:a}),o}},68242(e,t,n){"use strict";n.d(t,{A$:()=>r,SF:()=>i,qG:()=>a});const r=e=>e?window?.myJetpackInitialState?.[e]??{}:window?.myJetpackInitialState,a=()=>window?.myJetpackRest??{},i=e=>e?window?.JP_CONNECTION_INITIAL_STATE?.[e]??{}:window?.JP_CONNECTION_INITIAL_STATE},18117(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(38837);const a=e=>Object.values(e).filter(({requiresUserConnection:e,status:t})=>e&&(t===r.hp.ACTIVE||r.hp.USER_CONNECTION_ERROR)).map(({name:e})=>e)},16700(e,t,n){"use strict";n.d(t,{A:()=>r});const r=(e,t)=>{"Enter"!==e.key&&" "!==e.key||t()}},87451(e,t,n){"use strict";n.d(t,{l:()=>a});var r=n(68405);const a=e=>{const t=(0,r.A)(e);return t.features=t.features||[],t.supportedProducts=t.supportedProducts||[],t.pricingForUi&&(t.pricingForUi.fullPricePerMonth=(e=>"year"===e.pricingForUi.productTerm?Math.round(e.pricingForUi.fullPrice/12*100)/100:e.pricingForUi.fullPrice)(t),t.pricingForUi.discountPricePerMonth=(e=>"year"===e.pricingForUi.productTerm?Math.round(e.pricingForUi.discountPrice/12*100)/100:e.pricingForUi.discountPrice)(t)),t}},13244(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5932),a=n(27723),i=n(68242);const __=a.__,s=async()=>{const{apiRoot:e,apiNonce:t}=(0,i.qG)();if(r.Ay.setApiRoot(e),r.Ay.setApiNonce(t),window.confirm(__("This will reset all Jetpack options, are you sure?","jetpack-my-jetpack")))try{"success"===(await r.Ay.resetOptions("options")).code&&window.alert(__("Options reset! Have fun messing them up again :-)","jetpack-my-jetpack"))}catch{window.alert(__("Options failed to reset.","jetpack-my-jetpack"))}}},68405(e,t,n){"use strict";n.d(t,{A:()=>a});const r=e=>Array.isArray(e)?e.map(e=>r(e)):"object"==typeof e&&null!==e?Object.fromEntries(Object.entries(e).map(([e,Line truncated
|
||||
// translators: %1$s is the name of the Jetpack paid plan, i.e.- "Jetpack Security", and %2$s word "plugin" as singular, or plural ("plugins").
|
||||
__("To get the most out of your <link>%1$s paid subscription</link> and have access to all it’s features, we recommend you install and/or activate the following %2$s:","jetpack-my-jetpack"),t,_n("plugin","plugins",p,"jetpack-my-jetpack")),{link:(0,l.jsx)(a.ExternalLink,{href:(0,r.A)("jetpack-subscription-renew",{site:h,path:n}),children:null})}),install:(0,i.createInterpolateElement)((0,s.sprintf)(
|
||||
// translators: %1$s is the name of the Jetpack paid plan, i.e.- "Jetpack Security", and %2$s word "plugin" as singular, or plural ("plugins").
|
||||
__("To get the most out of your <link>%1$s paid subscription</link> and have access to all it’s features, we recommend you install and activate the following %2$s:","jetpack-my-jetpack"),t,_n("plugin","plugins",p,"jetpack-my-jetpack")),{link:(0,l.jsx)(a.ExternalLink,{href:(0,r.A)("jetpack-subscription-renew",{site:h,path:n}),children:null})}),activate:(0,i.createInterpolateElement)((0,s.sprintf)(
|
||||
// translators: %1$s is the name of the Jetpack paid plan, i.e.- "Jetpack Security", and %2$s word "plugin" as singular, or plural ("plugins").
|
||||
__("To get the most out of your <link>%1$s paid subscription</link> and have access to all it’s features, we recommend you activate the following %2$s:","jetpack-my-jetpack"),t,_n("plugin","plugins",p,"jetpack-my-jetpack")),{link:(0,l.jsx)(a.ExternalLink,{href:(0,r.A)("jetpack-subscription-renew",{site:h,path:n}),children:null})})},y={install_activate:(0,s.sprintf)(/* translators: %1$s is "plugin" or "plugins" (singular/plural) */
|
||||
__("Install and/or activate %1$s in one click","jetpack-my-jetpack"),_n("plugin","plugins",p,"jetpack-my-jetpack")),install:(0,s.sprintf)(/* translators: %1$s is "plugin" or "plugins" (singular/plural) */
|
||||
__("Install and activate %1$s in one click","jetpack-my-jetpack"),_n("plugin","plugins",p,"jetpack-my-jetpack")),activate:(0,s.sprintf)(/* translators: %1$s is "plugin" or "plugins" (singular/plural) */
|
||||
__("Activate %1$s in one click","jetpack-my-jetpack"),_n("plugin","plugins",p,"jetpack-my-jetpack"))};return{noticeTitle:1===p?f[m]:g[m],noticeMessage:v[m],buttonLabel:y[m]}}},7436(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(62902),a=n(37898),i=n(15048),s=n(68245),o=n(75782),c=n(53866),l=n(247),u=n(52963);const d=()=>{const{isLoading:e,data:t}=(0,r.A)();(0,c.A)(t,e),(0,l.A)(t,e),(0,o.A)(t,e),(0,a.A)(t,e),(0,s.A)(),(0,u.A)(t,e),(0,i.A)(t,e)}},50977(e,t,n){"use strict";n.d(t,{j:()=>a});var r=n(10790);const a=({products:e})=>e?(0,r.jsx)("ul",{className:"products-list",children:e.map((e,t)=>(0,r.jsx)("li",{className:"product-badge",children:e},t))}):null},37898(e,t,n){"use strict";n.d(t,{A:()=>y});var r=n(3924),a=n(28509),i=n(47425),s=n(97999),o=n(38443),c=n(27723),l=n(51609),u=n(73537),d=n(76007),p=n(88220),h=n(79131),m=n(72434),f=n(64526),g=n(40271),v=n(10790);const __=c.__,y=(e,t)=>{const{recordEvent:n}=(0,f.A)(),{setNotice:y,resetNotice:b}=(0,l.useContext)(d.g),{type:w,data:{status:j,last_updated:k}}=e?.backup_failure||{type:"error",data:{}},{reasonContent:x}=(0,g.A)()||{},{text:C}=x||{},{timezone:{offset:A}}=(0,o.getSettings)()||{offset:0},_=(0,o.dateI18n)("F jS, Y g:ia",(0,p.w)(k,"string"==typeof A?parseInt(A):A)),M=(0,r.A)("jetpack-support-troubleshooting-backup"),S=(0,r.A)("jetpack-support"),E=__("Oops! We couldn’t back up your site","jetpack-my-jetpack"),N=(0,l.useCallback)(()=>{(0,h.A)("backup_failure_dismissed",7),delete e?.backup_failure,b()},[e?.backup_failure,b]),O=(0,l.useCallback)(()=>{window.open(M),n("jetpack_my_jetpack_backup_needs_attention_notice_primary_cta_click",{backup_status:j})},[n,j,M]),P=(0,l.useCallback)(()=>{window.open(S),n("jetpack_my_jetpack_backup_needs_attention_notice_secondary_cta_click",{backup_status:j})},[n,j,S]);(0,l.useEffect)(()=>{if(!e?.backup_failure||"backups-deactivated"===j||"multisite_not_supported"===j||(0,s.getScriptData)().site.is_multisite)return;const n=(0,v.jsxs)(a.A,{children:[(0,v.jsx)(i.Ay,{mb:1,children:(0,m.A)((0,c.sprintf)(
|
||||
// Translators: %1$s is the date the last backup took place, i.e.- "Dec 7, 2024"
|
||||
__("The last backup attempted on %1$s was unsuccessful.","jetpack-my-jetpack"),_))}),!t&&C&&(0,v.jsx)(i.Ay,{mb:1,children:(0,m.A)(C)}),(0,v.jsx)(i.Ay,{mb:1,children:(0,m.A)(__("Check out our troubleshooting guide or contact your hosting provider to resolve the issue.","jetpack-my-jetpack"))})]}),r={id:"backup-needs-attention-notice",level:w,actions:[{label:__("Read troubleshooting guide","jetpack-my-jetpack"),onClick:O,noDefaultClasses:!0},{label:__("Contact support","jetpack-my-jetpack"),onClick:P,isExternalLink:!0}],onClose:N,hideCloseButton:!1,priority:u.pv};t||y({title:E,message:n,options:r})},[e,y,n,N,O,P,E,_,w,C,t,j])}},15048(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(27723),a=n(51609),i=n(73537),s=n(76007),o=n(64526);const __=r.__,c=(e,t)=>{const{setNotice:n}=(0,a.useContext)(s.g),{recordEvent:c}=(0,o.A)();(0,a.useEffect)(()=>{const a=t?[]:Object.keys(e).filter(e=>e.endsWith("-bad-installation"));if(0===a.length)return;const s=e[a[0]],{plugin:o}=s.data,l=(0,r.sprintf)(
|
||||
// translators: %1$s: the name of the plugin that has a bad installation.
|
||||
__("Your installation of %1$s is incomplete. If you installed %1$s from GitHub, please refer to the developer documentation to set up your development environment.","jetpack-my-jetpack"),o),u={id:"bad-installation-notice",level:"error",actions:[{label:__("See documentation","jetpack-my-jetpack"),onClick:()=>{window.open("https://github.com/Automattic/jetpack/blob/trunk/docs/development-environment.md"),c("jetpack_my_jetpack_bad_installation_notice_cta_click",{plugin:o})},noDefaultClasses:!0}],priority:i.EX};t||n({message:l,options:u})},[e,n,c,t])}},68245(e,t,n){"use strict";n.d(t,{A:()=>h});var r=n(28509),a=n(47425),i=n(39384),s=n(27723),o=n(51609),c=n(73537),l=n(76007),u=n(64526),d=n(18198),p=n(10790);const __=s.__,h=(e={})=>{const{setNotice:t}=(0,o.useContext)(l.g),{hasConnectionError:n,connectionError:h}=(0,i.useConnectionErrorNotice)(),{restoreConnection:m,isRestoringConnection:f,restoreConnectionError:g}=(0,i.useRestoreConnection)(),{recordEvent:v}=(0,u.A)(),y=(0,o.useCallback)((e,t)=>{t&&t.startsWith("jetpack_")&&v(t,{}),(0,d.d)(e)},[v]);(0,o.useEffect)(()=>{if(!n||!h)return;let i=h.error_message;g&&(i=(0,p.jsxs)(r.A,{children:[(0,p.jsx)(a.Ay,{mb:2,children:(0,s.sprintf)(/* translators: %s: the error. */
|
||||
__("There was an error reconnecting Jetpack. Error: %s","jetpack-my-jetpack"),g)}),(0,p.jsx)(a.Ay,{mb:2,children:h.error_message})]}));let o=[];const l=h?.error_data||{},u=l.action,d=e[u],b=l.action_url,w=l.action_label,j=l.tracking_event;if(u&&d)o=[{label:w||__("Take Action","jetpack-my-jetpack"),onClick:()=>{j&&j.startsWith("jetpack_")&&v(j,{}),d(h)},noDefaultClasses:!0}];else if(b&&w)o=[{label:w,onClick:()=>y(b,j),noDefaultClasses:!0}];else{const e=()=>{m(),v("jetpack_my_jetpack_connection_error_notice_reconnect_cta_click")};o=[{label:__("Restore Connection","jetpack-my-jetpack"),onClick:e,isLoading:f,loadingText:__("Reconnecting Jetpack…","jetpack-my-jetpack"),noDefaultClasses:!0}]}if(o.length>0&&(u||b)){const t=l.secondary_action,n=e[t],r=l.secondary_action_url,a=l.secondary_action_label,i=l.secondary_tracking_event;t&&n&&a?o.push({label:a,onClick:()=>{i&&i.startsWith("jetpack_")&&v(i,{}),n(h)},noDefaultClasses:!0,variant:"secondary"}):r&&a&&o.push({label:a,onClick:()=>y(r,i),noDefaultClasses:!0,variant:"secondary"})}const k={id:"connection-error-notice",level:"error",actions:o,priority:c.pv+(f?1:0)};t({message:i,options:k})},[t,v,n,h,m,f,g,y,e])}},75782(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(27723),a=n(51609),i=n(73537),s=n(76007),o=n(79131),c=n(64526),l=n(18198),u=n(77068);const __=r.__,d=(e,t)=>{const{setNotice:n,resetNotice:r}=(0,a.useContext)(s.g),{recordEvent:d}=(0,c.A)(),p=t?[]:Object.keys(e).filter(e=>e.endsWith("--plan_expiring_soon")||e.endsWith("--plan_expired")),h=p.length&&p.filter(e=>e.endsWith("--plan_expired")),m=p.length&&p.filter(e=>e.endsWith("--plan_expiring_soon")),f=h.length?h[0]:m[0],g=f&&f.endsWith("--plan_expired"),v=g?"expired":"expiring-soon",{product_slug:y,product_name:b,expiry_date:w,manage_url:j,products_effected:k}=e?.[f]||{},{noticeTitle:x,noticeMessage:C,learnMoreUrl:A}=(0,u.t)({productSlug:y,expiredAlertType:v,productName:b,expiryDate:w,productsEffected:k})||{},_=(0,a.useMemo)(()=>g?`${y}--plan_expired`:`${y}--plan_expiring_soon`,[g,y]),M=(0,a.useCallback)(()=>{(0,o.A)(`${_}_dismissed`,7),delete e[f],r()},[f,e,r,_]),S=(0,a.useCallback)(()=>{(0,l.d)(j),d(g?"jetpack_my_jetpack_plan_expired_notice_primary_cta_click":"jetpack_my_jetpack_plan_expiring_soon_notice_primary_cta_click",{product_slug:y})},[g,j,y,d]),E=(0,a.useCallback)(()=>{window.open(A),d(g?"jetpack_my_jetpack_plan_expired_notice_secondary_cta_click":"jetpack_my_jetpack_plan_expiring_soon_notice_secondary_cta_click",{product_slug:y})},[A,g,y,d]);(0,a.useEffect)(()=>{if(!f)return;const e=__("Resume my plan","jetpack-my-jetpack"),r=__("Renew my plan","jetpack-my-jetpack"),a={id:g?"plan-expired-notice":"plan-expiring-soon-notice",level:g?"error":"warning",actions:[{label:g?e:r,onClick:S,noDefaultClasses:!0},{label:__("Learn more","jetpack-my-jetpack"),onClick:E,isExternalLink:!0}],onClose:M,hideCloseButton:!1,priority:i.EX};t||n({title:x,message:C,options:a})},[e,n,d,f,M,S,E,x,C,g,y,_,t])}},77068(e,t,n){"use strict";n.d(t,{t:()=>l});var r=n(28509),a=n(47425),i=n(38443),s=n(27723),o=n(50977),c=n(10790);const __=s.__,l=({productSlug:e,expiredAlertType:t,productName:n,expiryDate:l,productsEffected:u})=>{if(!e)return null;const d=e.replace(/(?:_t1|_t2|_bi)?(?:_yearly|_monthly)/,""),p=(0,i.gmdateI18n)("M j, Y",l),h="expired"===t?(0,s.sprintf)(
|
||||
// translators: %1$s is the Jetpack product name (e.g. Jetpack Backup, Jetpack Security, etc.)
|
||||
__("Your %1$s plan has expired","jetpack-my-jetpack"),n):(0,s.sprintf)(
|
||||
// translators: %1$s is the Jetpack product name, (e.g. Jetpack Backup, Jetpack Security, etc.)
|
||||
__("Heads up! Your %1$s plan is about to expire","jetpack-my-jetpack"),n);switch(d){case"jetpack_videopress":return{noticeTitle:h,noticeMessage:"expired"===t?(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)(r.A,{children:[(0,c.jsx)(a.Ay,{mt:2,mb:2,children:__("Your videos are no longer visible to your viewers, and you won’t be able to upload new content.","jetpack-my-jetpack")}),(0,c.jsx)(a.Ay,{mb:2,children:__("Don’t worry—you can resume your plan anytime to restore your video library and continue uploading.","jetpack-my-jetpack")})]})}):(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)(r.A,{children:[(0,c.jsx)(a.Ay,{mt:2,mb:2,children:__("Your videos will soon stop showing for your viewers, and you won’t be able to upload new content.","jetpack-my-jetpack")}),(0,c.jsx)(a.Ay,{mb:2,children:(0,s.sprintf)(
|
||||
// translators: %1$s is the product's expiration date, i.e.- "Nov 11, 2024"
|
||||
__("To keep everything running smoothly, renew your plan by %1$s!","jetpack-my-jetpack"),p)})]})}),learnMoreUrl:"https://jetpack.com/support/jetpack-videopress/#canceled-or-expired-videopress-plan"};case"jetpack_complete":case"jetpack_security":case"jetpack_growth":return{noticeTitle:h,noticeMessage:"expired"===t?(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)(r.A,{children:[(0,c.jsx)(a.Ay,{mt:2,children:(0,s.sprintf)(
|
||||
// translators: %1$s is the Jetpack product name, i.e.- Jetpack Backup, Jetpack Security, etc..
|
||||
__("%1$s provides paid features for the following products:","jetpack-my-jetpack"),n)}),(0,c.jsx)(o.j,{products:u}),(0,c.jsx)(a.Ay,{mb:2,children:(0,s.sprintf)(
|
||||
// translators: %1$s is the Jetpack product name, i.e.- Jetpack Backup, Jetpack Security, etc..
|
||||
__("Since your %1$s plan is expired, the paid features for these products are no longer available for your site.","jetpack-my-jetpack"),n)}),(0,c.jsx)(a.Ay,{mb:2,children:__("But don’t worry—you can resume your plan to restore your access to your plan’s paid features.","jetpack-my-jetpack")})]})}):(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)(r.A,{children:[(0,c.jsx)(a.Ay,{mt:2,children:(0,s.sprintf)(
|
||||
// translators: %1$s is the Jetpack product name, i.e.- Jetpack Backup, Jetpack Security, etc..
|
||||
__("%1$s provides paid features for the following products:","jetpack-my-jetpack"),n)}),(0,c.jsx)(o.j,{products:u}),(0,c.jsx)(a.Ay,{mb:2,children:(0,s.sprintf)(
|
||||
// translators: %1$s is the product's expiration date, i.e.- "Nov 11, 2024"
|
||||
__("Renew your plan by %1$s to continue to have access to the paid features of these products.","jetpack-my-jetpack"),p)})]})}),learnMoreUrl:"https://jetpack.com/support/jetpack-billing-payments/"};default:return{noticeTitle:h,noticeMessage:"expired"===t?(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)(r.A,{children:[(0,c.jsx)(a.Ay,{mt:2,mb:2,children:(0,s.sprintf)(
|
||||
// translators: %1$s is the Jetpack product name, i.e.- Jetpack Backup, Jetpack Security, etc..
|
||||
__("Your %1$s subcription has expired. The paid features are no longer available.","jetpack-my-jetpack"),n)}),(0,c.jsx)(a.Ay,{mb:2,children:__("Don’t worry—you can resume your plan anytime to restore your access to the upgraded features.","jetpack-my-jetpack")})]})}):(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)(r.A,{children:[(0,c.jsx)(a.Ay,{mt:2,mb:2,children:(0,s.sprintf)(
|
||||
// translators: %1$s is the Jetpack product name, i.e.- Jetpack Backup, Jetpack Security, etc.., %2$s is the product's expiration date, i.e.- "Nov 11, 2024".
|
||||
__("Your %1$s subcription will be expiring soon on %2$s, and the paid features for this product will no longer be available.","jetpack-my-jetpack"),n,p)}),(0,c.jsx)(a.Ay,{mb:2,children:__("To keep everything running smoothly, renew your plan today!","jetpack-my-jetpack")})]})}),learnMoreUrl:"https://jetpack.com/support/jetpack-billing-payments/"}}}},40271(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(27723),a=n(51609),i=n(62902);const __=r.__,s=()=>{const{data:e,isLoading:t}=(0,i.A)(),{backup_failure:n}=e,s=n?.data?.status;return{isLoading:t,reasonContent:(0,a.useMemo)(()=>{switch(s){case"missing_plan":return{title:__("Missing Backup plan","jetpack-my-jetpack"),text:__("The site does not appear to have a valid Backup plan. Please purchase a Backup plan in order activate the features of Jetpack Backup.","jetpack-my-jetpack")};case"no_connected_jetpack":return{title:__("Not connected","jetpack-my-jetpack"),text:__("The site doesn’t appear to be connected. Backup requires an active Jetpack connection in order to function properly.","jetpack-my-jetpack")};case"no_connected_jetpack_with_credentials":return{title:__("Not connected","jetpack-my-jetpack"),text:__("The site doesn’t appear to be connected. Backup requires an active Jetpack connection in order to function properly, although successful Backups may still appear in the logs.","jetpack-my-jetpack")};case"vp_active_on_site":return{title:__("Backup plugin conflict","jetpack-my-jetpack"),text:__("We’ve detected VaultPress is currently active on the site. VaultPress and Jetpack Backup cannot run simultaneously. In order to activate Jetpack Backup, you will first need to deactivate VaultPress.","jetpack-my-jetpack")};case"vp_can_transfer":return{title:__("Transfer VaultPress","jetpack-my-jetpack"),text:__("We’ve detected VaultPress is currently active on the site, and we can automatically transfer it over to Jetpack Backup (Rewind), but you will need to trigger the transfer manually.","jetpack-my-jetpack")};case"host_not_supported":return{title:__("Host not supported","jetpack-my-jetpack"),text:__("Backup doesn’t currently support the host that the site is hosted on.","jetpack-my-jetpack")};case"multisite_not_supported":return{title:__("Multi-site not supported","jetpack-my-jetpack"),text:__("Backup can’t be activated on multi-site installations, neither the network site or its sub-sites.","jetpack-my-jetpack")};case"no_site_found":return{title:__("No site record","jetpack-my-jetpack"),text:__("The VaultPress API could not recognize the site ID associated with your site, or multiple site ID’s are associated with the same site domain.","jetpack-my-jetpack")};case"no-credentials":return{title:__("No credentials found","jetpack-my-jetpack"),text:__("No remote server credentials were found. Please add your website’s server credentials in Backup settings so Backup can fully function properly.","jetpack-my-jetpack")};case"no-credentials-atomic":return{title:__("No credentials (Atomic)","jetpack-my-jetpack"),text:__("There appears to be some issue with the Atomic API or a networking type issue. Please try again shortly to see if the issue has resolved.","jetpack-my-jetpack")};case"credential-error":return{title:__("Backup error","jetpack-my-jetpack"),text:__("Although the site appears to be up and accessible, and remote server credentials are set, Backup still encountered an error during the last backup attempt.","jetpack-my-jetpack")};case"http-only-error":return{title:__("Backup error","jetpack-my-jetpack"),text:__("Although the site appears to be up and accessible, Backup still encountered an error during the last backup attempt.","jetpack-my-jetpack")};case"not-accessible":return{title:__("Site unavailable","jetpack-my-jetpack"),text:__("Backup was unable to access your site during the last backup attempt. This could be due to networking issues, a block from your host, or other server issues.","jetpack-my-jetpack")};case"Kill switch active":case"backups-deactivated":return{title:__("Backup is deactivated","jetpack-my-jetpack"),text:__("It appears that the backups have been manually deactivated for the site.","jetpack-my-jetpack")};case"error":return{title:__("Backup system error","jetpack-my-jetpack"),text:__("Backup has encountered a general system error and was unable to complete the last backup attempt.","jetpack-my-jetpack")};default:{if(!s)return{title:null,text:null};const e=s.split(/[_\s-]/);e[0]=e[0].charAt(0).toUpperCase()+e[0].slice(1);const t=e.join(" ");return{title:(0,r.sprintf)(
|
||||
// translators: %s is the error code coming from the server (formatted, i.e.- first word capitalized, hypen's removed, etc. ) i.e.- 'Invalid credentials', 'File not found', etc.
|
||||
__("%s error","jetpack-my-jetpack"),t),text:(0,r.sprintf)(
|
||||
// translators: %s is the error code coming from the server. i.e.- 'invalid-credentials', 'file-not-found', etc.
|
||||
__("Error code: %s","jetpack-my-jetpack"),s)}}}},[s])}}},53866(e,t,n){"use strict";n.d(t,{A:()=>w});var r=n(28509),a=n(47425),i=n(56427),s=n(27723),o=n(51609),c=n(73537),l=n(76007),u=n(31504),d=n(41526),p=n(55394),h=n(280),m=n(68242),f=n(51870),g=n(79131),v=n(64526),y=n(38318),b=n(10790);const __=s.__,_n=s._n,w=(e,t)=>{const{setNotice:n,resetNotice:w}=(0,o.useContext)(l.g),{recordEvent:j}=(0,v.A)(),{isSiteConnected:k}=(0,f.A)(),x=(0,h.A)({name:u.Ck,query:{path:u.tb},options:{enabled:k}}),{isLoading:C,isError:A}=x,_=x.data,M=_&&!C&&!A,S="object"==typeof e?Object.keys(e).length:0,E=(0,o.useMemo)(()=>t||0===S?[]:Object.keys(e).filter(e=>e.endsWith("--plugins_needing_installed_activated")),[t,S,e]),N=e?.[E[0]],O=E[0],P=O?.split("--")[0],L=(0,o.useMemo)(()=>M&&_.find(e=>e.product_slug===P),[M,P,_]),T=L&&L.product_name,{needs_installed:V,needs_activated_only:I}=N||{},z=(V?.length??0)+(I?.length??0),{products:{items:H}}=(0,m.A$)(),D=(0,o.useMemo)(()=>V&&I?"install_activate":V?"install":"activate",[I,V]),R=(0,o.useCallback)((e,t)=>({productSlug:e,pluginSlug:H[e].plugin_slug,pluginName:"jetpack"===H[e].plugin_slug?"Jetpack":H[e].title,action:t,pluginUri:`https://wordpress.org/plugins/${H[e].plugin_slug}/`}),[H]),F=(0,o.useMemo)(()=>{if(V&&I){const e=new Set;return[...[...V].map(e=>R(e,"install")),...[...I].map(e=>R(e,"activate"))].filter(({pluginSlug:t})=>!e.has(t)&&e.add(t))}if(V){const e=new Set;return V.map(e=>R(e,"install")).filter(({pluginSlug:t})=>!e.has(t)&&e.add(t))}const e=new Set;return I?.map(e=>R(e,"activate")).filter(({pluginSlug:t})=>!e.has(t)&&e.add(t))},[R,I,V]),{noticeTitle:B,noticeMessage:U,buttonLabel:q}=(0,y.n)({alert:N,planName:T,planPurchaseId:L?.ID}),W=(0,o.useCallback)(e=>{if(!e)return[];return[...e].map(e=>({productSlug:e,pluginSlug:H[e].plugin_slug})).sort((e,t)=>"jetpack"===e.pluginSlug?1:"jetpack"===t.pluginSlug?-1:e.productSlug-t.productSlug).map(({productSlug:e})=>e)},[H]),$=W(V),Z=W(I),G=$.find(e=>"jetpack"===H[e].plugin_slug),Y=(0,o.useCallback)(()=>{(0,g.A)(`${P}--plugins_needing_installed_dismissed`,14),delete e[E[0]],w()},[P,E,e,w]),{install:J,isPending:Q}=(0,p.A)($),{activate:K,isPending:X}=(0,d.A)(Z),ee=(0,o.useCallback)(()=>{if(j("jetpack_my_jetpack_plugin_needs_installed_notice_cta_click"),$.length&&Z.length)return G?void K(null,{onSuccess:()=>{J(null,{onSuccess:()=>{delete e[E[0]],w()}})}}):void J(null,{onSuccess:()=>{K(null,{onSuccess:()=>{delete e[E[0]],w()}})}});$.length?J(null,{onSuccess:()=>{delete e[E[0]],w()}}):Z.length&&K(null,{onSuccess:()=>{delete e[E[0]],w()}})},[j,$,Z,G,J,K,e,E,w]);(0,o.useEffect)(()=>{if(0===E.length||!M)return;const e={install:__("Needs installation and activation","jetpack-my-jetpack"),activate:__("Needs activation","jetpack-my-jetpack")},o=(0,b.jsx)(b.Fragment,{children:(0,b.jsxs)(r.A,{children:[(0,b.jsx)(a.Ay,{mt:2,mb:2,children:U}),(0,b.jsx)("ul",{className:"plugins-list",children:F?.length>0&&F.map((t,n)=>(0,b.jsxs)("li",{className:"plugin-item",children:["activate"===t.action?(0,b.jsx)("a",{href:"/wp-admin/plugins.php",children:t.pluginName}):(0,b.jsx)(i.ExternalLink,{href:t.pluginUri,children:t.pluginName}),(0,b.jsxs)("span",{children:["(",e[t.action],")"]})]},n))})]})}),l=X||Q,u={id:"plugin_needs_installed_activated",level:"warning",actions:[{label:q,onClick:ee,isLoading:l,loadingText:"activate"===D?(0,s.sprintf)(/* translators: %s is the singular or plural "plugin" or "plugins". */
|
||||
__("Activating %s…","jetpack-my-jetpack"),_n("plugin","plugins",z,"jetpack-my-jetpack")):(0,s.sprintf)(/* translators: %s is the singular or plural "plugin" or "plugins". */
|
||||
__("Installing and activating %s…","jetpack-my-jetpack"),_n("plugin","plugins",z,"jetpack-my-jetpack")),noDefaultClasses:!0}],onClose:Y,hideCloseButton:!1,priority:c.EX+(l?1:0)};t||n({title:B,message:o,options:u})},[D,B,U,q,M,z,Y,ee,T,L,F,E.length,n,Q,X,P,t])}},247(e,t,n){"use strict";n.d(t,{A:()=>g});var r=n(3924),a=n(28509),i=n(47425),s=n(97999),o=n(27723),c=n(51609),l=n(73537),u=n(76007),d=n(74923),p=n(79131),h=n(72434),m=n(64526),f=n(10790);const __=o.__,g=(e,t)=>{const{recordEvent:n}=(0,m.A)(),{setNotice:g,resetNotice:v}=(0,c.useContext)(u.g),{detail:y}=(0,d.A)("protect"),{hasPaidPlanForProduct:b,standalonePluginInfo:w,manageUrl:j}=y||{},{isStandaloneActive:k}=w||{},{type:x,data:{threat_count:C,critical_threat_count:A,fixable_threat_ids:_}}=e?.protect_has_threats||{type:"warning",data:{}},M=(0,r.A)("protect-footer-learn-more-scan",{anchor:"how-do-i-fix-threats"}),S=(0,o.sprintf)(
|
||||
// translators: %s is the product name. Can be either "Scan" or "Protect".
|
||||
__("%s found threats on your site","jetpack-my-jetpack"),b&&k?"Protect":"Scan"),E=(0,c.useCallback)(()=>{(0,p.A)("protect_threats_detected_dismissed",7),delete e?.protect_has_threats,v()},[e?.protect_has_threats,v]),N=(0,c.useCallback)(()=>{window.open(j),n("jetpack_my_jetpack_protect_threats_detected_notice_primary_cta_click",{threat_count:C,critical_threat_count:A,fixable_threat_ids:_})},[A,_,j,n,C]),O=(0,c.useCallback)(()=>{window.open(M),n("jetpack_my_jetpack_protect_threats_detected_notice_secondary_cta_click",{threat_count:C,critical_threat_count:A,fixable_threat_ids:_})},[A,M,_,n,C]);(0,c.useEffect)(()=>{if(!e?.protect_has_threats||(0,s.getScriptData)().site.is_multisite)return;const n=(0,f.jsxs)(a.A,{children:[(0,f.jsx)(i.Ay,{mb:1,children:(0,h.A)(__("We’ve detected some security threats that need your attention.","jetpack-my-jetpack"))}),(0,f.jsx)(i.Ay,{mb:1,children:(0,h.A)((0,o.sprintf)(
|
||||
// translators: %s is the product name. Can be either "Scan" or "Protect".
|
||||
__("Visit the %s dashboard to view threat details, auto-fix threats, and keep your site safe.","jetpack-my-jetpack"),b&&k?"Protect":"Scan"))})]}),r={id:"protect-threats-detected-notice",level:x,actions:[{label:__("Fix threats","jetpack-my-jetpack"),onClick:N,noDefaultClasses:!0},{label:__("Learn more","jetpack-my-jetpack"),onClick:O,isExternalLink:!0}],onClose:E,hideCloseButton:!1,priority:l.EX};t||g({title:S,message:n,options:r})},[b,k,S,E,N,O,e?.protect_has_threats,g,x,t])}},52963(e,t,n){"use strict";n.d(t,{A:()=>y});var r=n(28509),a=n(47425),i=n(85879),s=n(39384),o=n(27723),c=n(51609),l=n(73537),u=n(76007),d=n(488),p=n(65350),h=n(18117),m=n(64526),f=n(36312),g=n(51870),v=n(10790);const __=o.__,y=(e,t)=>{const{recordEvent:n}=(0,m.A)(),{setNotice:y,resetNotice:b}=(0,c.useContext)(u.g),{siteIsRegistering:w,isSiteConnected:j}=(0,g.A)({skipUserConnection:!0}),{data:k,isLoading:x,isError:C}=(0,d.V)(),A="missing-connection",_=e?.[A],{connectSite:M}=(0,f.A)({tracksInfo:{event:"jetpack_my_jetpack_site_connection_notice_cta",properties:{}}}),{refetch:S}=(0,p.A)(),E=(0,c.useMemo)(()=>t||x||C?[]:(0,h.A)(k),[t,C,x,k]);(0,c.useEffect)(()=>{if(!_)return;const e="user"===_.type,c=(0,o.sprintf)(/* translators: %s: the product name. */
|
||||
__("Jetpack %s needs a user connection to WordPress.com to be able to work.","jetpack-my-jetpack"),E[0]),u={message:1===E.length?c:__("Some products need a user connection to WordPress.com to be able to work.","jetpack-my-jetpack"),buttonLabel:__("Connect your user account","jetpack-my-jetpack"),title:__("Missing user connection","jetpack-my-jetpack")},d={message:__("Some products need a connection to WordPress.com to be able to work.","jetpack-my-jetpack"),buttonLabel:__("Connect your site","jetpack-my-jetpack"),title:__("Missing site connection","jetpack-my-jetpack")},p={id:A,level:_.is_error?"error":"info",actions:[{label:e?u.buttonLabel:d.buttonLabel,isLoading:w,loadingText:__("Connecting…","jetpack-my-jetpack"),onClick:t=>{e?(n("jetpack_my_jetpack_user_connection_notice_cta_click"),window.location.href=(0,s.getUserConnectionUrl)()):M(t)},noDefaultClasses:!0}],priority:l.pv+(w?1:0),isRedBubble:!0,tracksArgs:{type:_.type,is_error:_.is_error}},h=e?u.message:(0,v.jsxs)(r.A,{children:[(0,v.jsx)(a.Ay,{mb:2,children:d.message}),(0,v.jsx)(i.A,{agreeButtonLabel:d.buttonLabel})]});t||y({message:h,title:e?u.title:d.title,options:p})},[j,M,k,n,e,b,y,w,_,S,E,t])}},51413(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(51609);const a=(e,t)=>{(0,r.useEffect)(()=>{const n=n=>{n.target instanceof Element&&e.current&&!e.current.contains(n.target)&&t(n)};return document.addEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)}},[e,t])}},20720(e,t,n){"use strict";function r(e){const t=window.location.search,n=new URLSearchParams(t);return n.has(e)?n.get(e):null}n.d(t,{x:()=>r})},1524(e,t,n){"use strict";function r(){const e=window.location.search;return new URLSearchParams(e).has("redirect_to_referrer","1")&&""!==document.referrer?document.referrer:null}n.d(t,{y:()=>r})},84956(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(51609),a=n(31504),i=n(280);const s=(e,t,n={})=>{const{period:s="day",quantity:o=7,date:c}=n,l=(0,r.useMemo)(()=>{const e=new URLSearchParams;if(e.set("unit",s),e.set("quantity",o.toString()),e.set("stat_fields",["visitors","views","likes","comments"].join(",")),c){const t=new Date(c),n=new Date(c);n.setDate(n.getDate()-o+1);const r=e=>`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`;e.set("date",r(t)),e.set("start_date",r(n))}return e.toString()},[s,o,c]),u=(0,r.useCallback)(()=>{if(!e)return"";return`${(0,a.Z1)(e)}?${l}`},[e,l]),{data:d,isLoading:p,error:h}=(0,i.A)({name:a.UH,query:{path:u()},options:{enabled:t,gcTime:5e3,refetchOnMount:"always"}});return{data:d,isLoading:p,error:h}}},90926(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(50723),a=n(70116),i=n(77115),s=n(76007),o=n(56077),c=n(10790);const l=({children:e})=>{const t=new a.E;return(0,c.jsx)(r.Ay,{children:(0,c.jsx)(s.A,{children:(0,c.jsx)(o.A,{children:(0,c.jsx)(i.Ht,{client:t,children:e})})})})}},88220(e,t,n){"use strict";n.d(t,{w:()=>a});var r=n(38443);function a(e,t){const n=(0,r.getDate)(e);return n.setHours(n.getHours()+t),n}},79131(e,t,n){"use strict";n.d(t,{A:()=>r});const r=(e,t)=>{const n=new Date(Date.now()+864e5*t);document.cookie=`${e}=1; expires=${n.toString()}; SameSite=None; Secure`}},56581(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(54268);const a={maximumFractionDigits:1,notation:"compact"},i=(e,t=a)=>null!==e&&Number.isFinite(e)?(0,r.ZV)(e,{numberFormatOptions:t}):"-"},88496(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(54268);const a={style:"percent"},i=(e,t=a)=>null!==e&&Number.isFinite(e)?(t.style="percent",(0,r.ZV)(e,{numberFormatOptions:t})):"-"},32753(e,t,n){"use strict";n.d(t,{A:()=>r});const r=e=>{e=Math.floor(e);const t=Math.floor(e/24),n=Math.floor(t/365);if(n>0)return`${n}y ${t%365}d`;if(t>0)return`${t}d ${e%24}h`;const r=Math.floor(3600*e),a=Math.floor(r/60);return e>0?`${e}h ${a%60}m`:a>0?`${a}m ${r%60}s`:`${Math.floor(r)}s`}},46256(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(3924),a=n(38837),i=n(68242);const s=()=>{const{siteSuffix:e="",blogID:t}=(0,i.A$)();return(0,r.A)(a.OM,{site:t??e})}},93542(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(3924),a=n(38837),i=n(68242);const s=()=>{const{siteSuffix:e="",blogID:t,myJetpackCheckoutUri:n,lifecycleStats:s,siteSuffix:o,adminUrl:c}=(0,i.A$)(),{isSiteConnected:l,isUserConnected:u}=s,d=l&&u,p=d?a.ED:a.mk;return(0,r.A)(p,(()=>{const r=`${`redirect_to=${n}`}${d?"":`&connect_after_checkout=true&from_site_slug=${o}&admin_url=${c}&unlinked=1`}`;return d?{site:t??e,query:r}:{query:r}})())}},23658(e,t,n){"use strict";n.d(t,{w:()=>a});var r=n(68242);const a=()=>{const{plugins:e}=(0,r.A$)()||{},t=Object.values(e).find(e=>"Jetpack"===e?.Name);return t&&t.active}},28252(e,t,n){"use strict";n.d(t,{M:()=>a,b:()=>r});const r=({partner_slug:e})=>!!e&&"goldenticket"===e;function a(e){return!!Array.isArray(e)&&e.filter(e=>r(e)).length>0}},26343(e,t,n){"use strict";n.d(t,{c:()=>a});var r=n(27723);const __=r.__,_x=r._x;function a(e,t){const n={"account-protection":__("Your login page now has rate-limiting and secuLine truncated
|
||||
_x("%1$s activated! %2$s","Message shown when a module is activated. 1: Module name, 2: The benefit of the module","jetpack-my-jetpack"),t,n):(0,r.sprintf)(/* translators: %s: Jetpack module name */
|
||||
_x("%s has been activated.","%s: Jetpack module name","jetpack-my-jetpack"),t)}},72434(e,t,n){"use strict";n.d(t,{A:()=>a});const r=/\s+(\S*)$/,a=(e,t=2)=>((e,t)=>{let n=0;if(e&&e.length>0){let a=e,i="";for(;n<t&&r.test(a);)i=" "+r.exec(a)[1]+i,a=a.replace(r,""),n++;return i=a+i,{part:i,substituted:n}}return{part:e,substituted:n}})("string"==typeof e?e.trim():e,Math.max(1,t-1)).part},14542(e,t,n){"use strict";n.d(t,{_:()=>a});var r=n(27723);const _n=r._n,__=r.__;function a(e){const t=new Date,n=6e4*t.getTimezoneOffset(),a=Math.floor((new Date(t.getTime()+n).getTime()-e)/1e3);let i=a/31536e3;return i>1?(0,r.sprintf)(
|
||||
// translators: %d: the number of years ago (e.g. "5 years ago").
|
||||
_n("%d year ago","%d years ago",Math.floor(i),"jetpack-my-jetpack"),Math.floor(i)):(i=a/2592e3,i>1?(0,r.sprintf)(
|
||||
// translators: %d: the number of months ago (e.g. "5 months ago").
|
||||
_n("%d month ago","%d months ago",Math.floor(i),"jetpack-my-jetpack"),Math.floor(i)):(i=a/86400,i>1?(0,r.sprintf)(
|
||||
// translators: %d: the number of days ago (e.g. "5 days ago").
|
||||
_n("%d day ago","%d days ago",Math.floor(i),"jetpack-my-jetpack"),Math.floor(i)):(i=a/3600,i>1?(0,r.sprintf)(
|
||||
// translators: %d: the number of hours ago (e.g. "5 hours ago").
|
||||
_n("%d hour ago","%d hours ago",Math.floor(i),"jetpack-my-jetpack"),Math.floor(i)):(i=a/60,i>1?(0,r.sprintf)(
|
||||
// translators: %d: the number of minutes ago (e.g. "5 minutes ago").
|
||||
_n("%d minute ago","%d minutes ago",Math.floor(i),"jetpack-my-jetpack"),Math.floor(i)):__("a few seconds ago","jetpack-my-jetpack")))))}},61937(e,t,n){"use strict";var r=n(51609);var a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,s=r.useEffect,o=r.useLayoutEffect,c=r.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!a(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),a=r[0].inst,u=r[1];return o(function(){a.value=n,a.getSnapshot=t,l(a)&&u({inst:a})},[e,n,t]),s(function(){return l(a)&&u({inst:a}),e(function(){l(a)&&u({inst:a})})},[e]),c(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},22484(e,t,n){"use strict";e.exports=n(61937)},96309(e,t,n){"use strict";e.exports=n.p+"images/jetpack-license-activation-with-lock-cef570e11997f185e23d.png"},97139(e,t,n){"use strict";e.exports=n.p+"images/jetpack-license-activation-with-success-c5c132e713a79e05985f.png"},39315(e,t,n){"use strict";e.exports=n.p+"images/icon-3a7ecaa604823c98c3cf.svg"},42822(e,t,n){"use strict";e.exports=n.p+"images/apple-92dacafad84e79708a74.svg"},81024(e,t,n){"use strict";e.exports=n.p+"images/connect-2c6074d3871077bf2622.webp"},35975(e,t,n){"use strict";e.exports=n.p+"images/github-45c648158e3e86b560f5.svg"},35519(e,t,n){"use strict";e.exports=n.p+"images/google-dec2a429bf1d8e83f9ad.svg"},6579(e,t,n){"use strict";e.exports=n.p+"images/wordpress-1fc3e0ba6c52e9707900.svg"},95042(e,t,n){"use strict";e.exports=n.p+"images/cloud-81ac85ba680343200f54.svg"},33168(e,t,n){"use strict";e.exports=n.p+"images/empty-avatar-fea23feddfa99b07c2e8.svg"},17757(e,t,n){"use strict";e.exports=n.p+"images/jetpack-gray-7eeb5eb060c8adea8622.svg"},87319(e,t,n){"use strict";e.exports=n.p+"images/jetpack-9de1caef5eb5c22da5d6.svg"},2970(e,t,n){"use strict";e.exports=n.p+"images/jp_onboarding_tour_1-2x-6f51b17d99351e9c6676.webp"},91829(e,t,n){"use strict";e.exports=n.p+"images/jp_onboarding_tour_1-7f3c144ccf14d2c14d13.webp"},86969(e,t,n){"use strict";e.exports=n.p+"images/jp_onboarding_tour_2-2x-47557ba451d3c2f4817a.webp"},52424(e,t,n){"use strict";e.exports=n.p+"images/jp_onboarding_tour_2-aaec90820d759d489606.webp"},54487(e,t,n){"use strict";e.exports=n.p+"images/jp_onboarding_tour_4-2x-026913dfb03bf379dfaa.webp"},31238(e,t,n){"use strict";e.exports=n.p+"images/jp_onboarding_tour_4-5abe6c6ef638d57666f2.webp"},96068(e,t,n){"use strict";e.exports=n.p+"images/shield-inactive-cba3b43d918377b506e5.svg"},90850(e,t,n){"use strict";e.exports=n.p+"images/shield-off-47426e7b562ef20ae513.svg"},64538(e,t,n){"use strict";e.exports=n.p+"images/shield-partial-48b279219c6389a129b9.svg"},24516(e,t,n){"use strict";e.exports=n.p+"images/shield-success-e64a26c3a6d0888fba06.svg"},17380(e,t,n){"use strict";e.exports=n.p+"images/complete-891a534d0215298bfd91.webp"},46059(e,t,n){"use strict";e.exports=n.p+"images/extras-c6bd0796750901faa7fd.png"},10245(e,t,n){"use strict";e.exports=n.p+"images/security-27550b44f9e107f53365.webp"},12829(e,t,n){"use strict";e.exports=n.p+"images/stats-95b42796ede4f632b642.png"},48799(e,t,n){"use strict";e.exports=n.p+"images/antispam-logo-3ed9150e231df6ccf21f.svg"},14793(e,t,n){"use strict";e.exports=n.p+"images/crm-logo-44168487be53fc4238c0.png"},25990(e){"use strict";e.exports={consumer_slug:"my_jetpack"}},39384(e){"use strict";e.exports=window.JetpackConnection},97999(e){"use strict";e.exports=window.JetpackScriptDataModule},51609(e){"use strict";e.exports=window.React},75795(e){"use strict";e.exports=window.ReactDOM},10790(e){"use strict";e.exports=window.ReactJSXRuntime},1455(e){"use strict";e.exports=window.wp.apiFetch},56427(e){"use strict";e.exports=window.wp.components},29491(e){"use strict";e.exports=window.wp.compose},47143(e){"use strict";e.exports=window.wp.data},38443(e){"use strict";e.exports=window.wp.date},98490(e){"use strict";e.exports=window.wp.domReady},86087(e){"use strict";e.exports=window.wp.element},52619(e){"use strict";e.exports=window.wp.hooks},27723(e){"use strict";e.exports=window.wp.i18n},48558(e){"use strict";e.exports=window.wp.keycodes},692(e){"use strict";e.exports=window.wp.notices},92279(e){"use strict";e.exports=window.wp.plugins},5573(e){"use strict";e.exports=window.wp.primitives},13053(e){"use strict";e.exports=window.wp.privateApis},93832(e){"use strict";e.exports=window.wp.url},10979(e){"use strict";e.exports=window.wp.warning},5868(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=s(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return a.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toStringLine truncated
|
||||
(0,i.__)("Unknown status for %1$s","jetpack-my-jetpack"),n.name)};function v({filter:e,view:t,onChangeView:n}){const r=e.operators?.map(e=>({value:e,label:(0,d.bx)(e)?.label||e})),s=t.filters?.find(t=>t.field===e.field),o=s?.operator||e.operators[0];return r.length>1&&(0,h.jsxs)(c.B,{direction:"row",gap:"sm",justify:"flex-start",className:"dataviews-filters__summary-operators-container",align:"center",children:[(0,h.jsx)(a.FlexItem,{className:"dataviews-filters__summary-operators-filter-name",children:e.name}),(0,h.jsx)(a.SelectControl,{className:"dataviews-filters__summary-operators-filter-select",label:(0,i.__)("Conditions","jetpack-my-jetpack"),value:o,options:r,onChange:r=>{const a=r,i=s?.operator,o=s?[...(t.filters??[]).map(t=>{if(t.field===e.field){const e=(0,d.bx)(i)?.selection,n=(0,d.bx)(a)?.selection,r=e!==n||[e,n].includes("custom");return{...t,value:r?void 0:t.value,operator:a}}return t})]:[...t.filters??[],{field:e.field,operator:a,value:void 0}];n({...t,page:1,filters:o})},size:"small",variant:"minimal",hideLabelFromVision:!0})]})}function y({addFilterRef:e,openedFilter:t,fields:n,...d}){const y=(0,s.useRef)(null),{filter:b,view:w,onChangeView:j}=d,k=w.filters?.find(e=>e.field===b.field);let x=[];const C=(0,s.useMemo)(()=>{const e=n.find(e=>e.id===b.field);return e?{...e,getValue:({item:t})=>t[e.id]}:e},[n,b.field]),{elements:A}=(0,p.A)({elements:b.elements,getElements:b.getElements});if(A.length>0)x=A.filter(e=>b.singleSelection?e.value===k?.value:k?.value?.includes(e.value));else if(Array.isArray(k?.value)){const e=k.value.map(e=>{const t=C?.getValueFormatted({item:{[C.id]:e},field:C});return t||String(e)});x=[{value:k.value,label:e}]}else if("object"==typeof k?.value)x=[{value:k.value,label:k.value}];else if(void 0!==k?.value){const e=void 0!==C?C.getValueFormatted({item:{[C.id]:k.value},field:C}):String(k.value);x=[{value:k.value,label:e}]}const _=b.isPrimary,M=k?.isLocked,S=!M&&void 0!==k?.value,E=!M&&(!_||S);return(0,h.jsx)(a.Dropdown,{defaultOpen:t===b.field,contentClassName:"dataviews-filters__summary-popover",popoverProps:{placement:"bottom-start",role:"dialog"},onClose:()=>{y.current?.focus()},renderToggle:({isOpen:t,onToggle:n})=>(0,h.jsxs)("div",{className:"dataviews-filters__summary-chip-container",children:[(0,h.jsx)(a.Tooltip,{text:(0,i.sprintf)(/* translators: 1: Filter name. */ /* translators: 1: Filter name. */
|
||||
(0,i.__)("Filter by: %1$s","jetpack-my-jetpack"),b.name.toLowerCase()),placement:"top",children:(0,h.jsx)("div",{className:(0,r.A)("dataviews-filters__summary-chip",{"has-reset":E,"has-values":S,"is-not-clickable":M}),role:"button",tabIndex:M?-1:0,onClick:()=>{M||n()},onKeyDown:e=>{!M&&[m,f].includes(e.key)&&(n(),e.preventDefault())},"aria-disabled":M,"aria-pressed":t,"aria-expanded":t,ref:y,children:(0,h.jsx)(g,{activeElements:x,filterInView:k,filter:b})})}),E&&(0,h.jsx)(a.Tooltip,{text:_?(0,i.__)("Reset","jetpack-my-jetpack"):(0,i.__)("Remove","jetpack-my-jetpack"),placement:"top",children:(0,h.jsx)("button",{className:(0,r.A)("dataviews-filters__summary-chip-remove",{"has-values":S}),onClick:()=>{j({...w,page:1,filters:w.filters?.filter(e=>e.field!==b.field)}),_?y.current?.focus():e.current?.focus()},children:(0,h.jsx)(a.Icon,{icon:o.A})})})]}),renderContent:()=>(0,h.jsxs)(c.B,{direction:"column",justify:"flex-start",children:[(0,h.jsx)(v,{...d}),d.filter.hasElements?(0,h.jsx)(l.A,{...d,filter:{...d.filter,elements:A}}):(0,h.jsx)(u.A,{...d,fields:n})]})})}},40497(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(86087),a=n(62427),i=n(15670),s=n(10790);var o=function(e){const{isShowingFilter:t}=(0,r.useContext)(a.A);return t?(0,s.jsx)(i.A,{...e}):null}},15670(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(86087),a=n(21220),i=n(24463),s=n(17381),o=n(56496),c=n(17580),l=n(62427),u=n(10790);var d=(0,r.memo)(function({className:e}){const{fields:t,view:n,onChangeView:d,openedFilter:p,setOpenedFilter:h}=(0,r.useContext)(l.A),m=(0,r.useRef)(null),f=(0,c.A)(t,n),g=(0,u.jsx)(s.A,{filters:f,view:n,onChangeView:d,ref:m,setOpenedFilter:h},"add-filter"),v=f.filter(e=>e.isVisible);if(0===v.length)return null;const y=[...v.map(e=>(0,u.jsx)(i.A,{filter:e,view:n,fields:t,onChangeView:d,addFilterRef:m,openedFilter:p},e.field)),g];return y.push((0,u.jsx)(o.A,{filters:f,view:n,onChangeView:d},"reset-filters")),(0,u.jsx)(a.B,{direction:"row",justify:"flex-start",gap:"sm",style:{width:"fit-content"},wrap:"wrap",className:e,children:y})})},78264(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(64168),a=n(29491),i=n(86087),s=n(56427),o=n(68416),c=n(10790);function l({filter:e,view:t,onChangeView:n,fields:l}){const u=t.filters?.find(t=>t.field===e.field),d=(0,o.L)(e,u),p=(0,i.useMemo)(()=>{const t=l.find(t=>t.id===e.field);return t?{...t,isValid:{},getValue:({item:e})=>e[t.id],setValue:({value:e})=>({[t.id]:e})}:t},[l,e.field]),h=(0,i.useMemo)(()=>(t.filters??[]).reduce((e,t)=>(e[t.field]=t.value,e),{}),[t.filters]),m=(0,a.useEvent)(a=>{if(!p||!u)return;const i=p.getValue({item:a});r(i,d)||n({...t,filters:(t.filters??[]).map(t=>t.field===e.field?{...t,operator:u.operator||e.operators[0],value:""===i?void 0:i}:t)})});return p&&p.Edit&&u?(0,c.jsx)(s.Flex,{className:"dataviews-filters__user-input-widget",gap:2.5,direction:"column",children:(0,c.jsx)(p.Edit,{hideLabelFromVision:!0,data:h,field:p,operator:u.operator,onChange:m})}):null}},56496(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(56427),a=n(27723),i=n(10790);function s({filters:e,view:t,onChangeView:n}){const s=!t.search&&!t.filters?.some(t=>{return!(t.isLocked||void 0===t.value&&(n=t.field,e.some(e=>e.field===n&&e.isPrimary)));var n});return(0,i.jsx)(r.Button,{disabled:s,accessibleWhenDisabled:!0,size:"compact",variant:"tertiary",className:"dataviews-filters__reset-button",onClick:()=>{n({...t,page:1,search:"",filters:t.filters?.filter(e=>!!e.isLocked)||[]})},children:(0,a.__)("Reset","jetpack-my-jetpack")})}},33818(e,t,n){"use strict";n.d(t,{A:()=>M});var r=n(14804),a=n(25063),i=n(32553),s=n(78202),o=n(94747),c=n(4960),l=n(44775),u=n(13022),d=n(29491),p=n(27723),h=n(86087),m=n(56427),f=n(88901),g=n(20907),v=n(68416),y=n(32869),b=n(10790);function w(e=""){return l(e.trim().toLowerCase())}var j=(e,t,n)=>e.singleSelection?n:Array.isArray(t?.value)?t.value.includes(n)?t.value.filter(e=>e!==n):[...t.value,n]:[n];function k(e,t){return`${e}-${t}`}var x=({selected:e})=>(0,b.jsx)("span",{className:(0,u.A)("dataviews-filters__search-widget-listitem-multi-selection",{"is-selected":e}),children:e&&(0,b.jsx)(m.Icon,{icon:f.A})}),C=({selected:e})=>(0,b.jsx)("span",{className:(0,u.A)("dataviews-filters__search-widget-listitem-single-selection",{"is-selected":e})});function A({view:e,filter:t,onChangeView:n}){const r=(0,d.useInstanceId)(A,"dataviews-filter-list-box"),[a,i]=(0,h.useState)(1===t.operators?.length?void 0:null),s=e.filters?.find(e=>e.field===t.field),o=(0,v.L)(t,s);return(0,b.jsx)(m.Composite,{virtualFocus:!0,focusLoop:!0,activeId:a,setActiveId:i,role:"listbox",className:"dataviews-filters__search-widget-listbox","aria-label":(0,p.sprintf)(/* translators: List of items for a filter. 1: Filter name. e.g.: "List of: Author". */ /* translators: List of items for a filter. 1: Filter name. e.g.: "List of: Author". */
|
||||
(0,p.__)("List of: %1$s","jetpack-my-jetpack"),t.name),onFocusVisible:()=>{!a&&t.elements.length&&i(k(r,t.elements[0].value))},render:(0,b.jsx)(m.Composite.Typeahead,{}),children:t.elements.map(a=>(0,b.jsxs)(m.Composite.Hover,{render:(0,b.jsx)(m.Composite.Item,{id:k(r,a.value),render:(0,b.jsx)("div",{"aria-label":a.label,role:"option",className:"dataviews-filters__search-widget-listitem"}),onClick:()=>{const r=s?[...(e.filters??[]).map(e=>e.field===t.field?{...e,operator:s.operator||t.operators[0],value:j(t,s,a.value)}:e)]:[...e.filters??[],{field:t.field,operator:t.operators[0],value:j(t,s,a.value)}];n({...e,page:1,filters:r})}}),children:[t.singleSelection&&(0,b.jsx)(C,{selected:o===a.value}),!t.singleSelection&&(0,b.jsx)(x,{selected:o.includes(a.value)}),(0,b.jsx)("span",{className:"dataviews-filters__search-widget-listitem-value",title:a.label,children:a.label})]},a.value))})}function _({view:e,filter:t,onChangeView:n}){const[l,u]=(0,h.useState)(""),d=(0,h.useDeferredValue)(l),f=e.filters?.find(e=>e.field===t.field),y=(0,v.L)(t,f),j=(0,h.useMemo)(()=>{const e=w(d);return t.elements.filter(t=>w(t.label).includes(e))},[t.elements,d]);return(0,b.jsxs)(c.v,{selectedValue:y,setSelectedValue:r=>{const a=f?[...(e.filters??[]).map(e=>e.field===t.field?{...e,operator:f.operator||t.operators[0],value:r}:e)]:[...e.filters??[],{field:t.field,operator:t.operators[0],value:r}];n({...e,page:1,filters:a})},setValue:u,children:[(0,b.jsxs)("div",{className:"dataviews-filters__search-widget-filter-combobox__wrapper",children:[(0,b.jsx)(o.u,{render:(0,b.jsx)(m.VisuallyHidden,{children:(0,p.__)("Search items","jetpack-my-jetpack")}),children:(0,p.__)("Search items","jetpack-my-jetpack")}),(0,b.jsx)(r.G,{autoSelect:"always",placeholder:(0,p.__)("Search","jetpack-my-jetpack"),className:"dataviews-filters__search-widget-filter-combobox__input"}),(0,b.jsx)("div",{className:"dataviews-filters__search-widget-filter-combobox__icon",children:(0,b.jsx)(m.Icon,{icon:g.A})})]}),(0,b.jsxs)(a.e,{className:"dataviews-filters__search-widget-filter-combobox-list",alwaysVisible:!0,children:[j.map(e=>(0,b.jsxs)(i.x,{resetValueOnSelect:!1,value:e.value,className:"dataviews-filters__search-widget-listitem",hideOnClick:!1,setValueOnClick:!1,focusOnHover:!0,children:[t.singleSelection&&(0,b.jsx)(C,{selected:y===e.value}),!t.singleSelection&&(0,b.jsx)(x,{selected:y.includes(e.value)}),(0,b.jsxs)("span",{className:"dataviews-filters__search-widget-listitem-value",title:e.label,children:[(0,b.jsx)(s.K,{className:"dataviews-filters__search-widget-filter-combobox-item-value",value:e.label}),!!e.description&&(0,b.jsx)("span",{className:"dataviews-filters__search-widget-listitem-description",children:e.description})]})]},e.value)),!j.length&&(0,b.jsx)("p",{children:(0,p.__)("No results found","jetpack-my-jetpack")})]})]})}function M(e){const{elements:t,isLoading:n}=(0,y.A)({elements:e.filter.elements,getElements:e.filter.getElements});if(n)return(0,b.jsx)("div",{className:"dataviews-filters__search-widget-no-elements",children:(0,b.jsx)(m.Spinner,{})});if(0===t.length)return(0,b.jsx)("div",{className:"dataviews-filters__search-widget-no-elements",children:(0,p.__)("No elements found","jetpack-my-jetpack")});const r=t.length>10?_:A;return(0,b.jsx)(r,{...e,filter:{...e.filter,elements:t}})}},40333(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(86087),a=n(56427),i=n(63371),s=n(27723),o=n(17381),c=n(62427),l=n(10790);function u({buttonRef:e,filtersCount:t,children:n}){return(0,r.useEffect)(()=>()=>{e.current?.focus()},[e]),(0,l.jsxs)(l.Fragment,{children:[n,!!t&&(0,l.jsx)("span",{className:"dataviews-filters-toggle__count",children:t})]})}var d=function(){const{filters:e,view:t,onChangeView:n,setOpenedFilter:d,isShowingFilter:p,setIsShowingFilter:h}=(0,r.useContext)(c.A),m=(0,r.useRef)(null),f=(0,r.useCallback)(e=>{n(e),h(!0)},[n,h]);if(0===e.length)return null;const g=e.some(e=>e.isVisible),v={label:(0,s.__)("Add filter","jetpack-my-jetpack"),"aria-expanded":!1,isPressed:!1},y={label:(0,s._x)("Filter","verb","jetpack-my-jetpack"),"aria-expanded":p,isPressed:p,onClick:()=>{p||d(null),h(!p)}},b=e.some(e=>e.isPrimary||e.isLocked),w=(0,l.jsx)(a.Button,{ref:m,className:"dataviews-filters__visibility-toggle",size:"compact",icon:i.A,disabled:b,accessibleWhenDisabled:!0,...g?y:v});return(0,l.jsx)("div",{className:"dataviews-filters__container-visibility-toggle",children:g?(0,l.jsx)(u,{buttonRef:m,filtersCount:t.filters?.length,children:w}):(0,l.jsx)(o.L,{filters:e,view:t,onChangeView:f,setOpenedFilter:d,triggerProps:{render:w}})})}},17580(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(86087),a=n(71e3);var i=function(e,t){return(0,r.useMemo)(()=>{const n=[];return e.forEach(e=>{if(!1===e.filterBy||!e.hasElements&&!e.Edit)return;const r=e.filterBy.operators,i=!!e.filterBy?.isPrimary,s=t.filters?.some(t=>t.field===e.id&&!!t.isLocked)??!1;n.push({field:e.id,name:e.label,elements:e.elements,getElements:e.getElements,hasElements:e.hasElements,singleSelection:r.some(e=>(0,Line truncated
|
||||
// translators: %s: The label of the field e.g. "Status".
|
||||
// translators: %s: The label of the field e.g. "Status".
|
||||
(0,r.sprintf)((0,r.__)("%s: <groupName />","jetpack-my-jetpack"),n.label).trim(),{groupName:(0,s.jsx)(n.render,{item:t[0],field:n})}):(0,s.jsx)(n.render,{item:t[0],field:n});return(0,s.jsxs)(i.B,{direction:"column",className:"dataviews-view-activity__group",children:[(0,s.jsx)("h3",{className:"dataviews-view-activity__group-header",children:l}),c]},e)}},19890(e,t,n){"use strict";n.d(t,{A:()=>h});var r=n(13022),a=n(56427),i=n(86087),s=n(47143),o=n(29491),c=n(21220),l=n(87895),u=n(62427),d=n(75411),p=n(10790);var h=function(e){const{view:t,actions:n,item:h,titleField:m,mediaField:f,descriptionField:g,otherFields:v,posinset:y,onClickItem:b,renderItemLink:w,isItemClickable:j}=e,{showTitle:k=!0,showMedia:x=!0,showDescription:C=!0,infiniteScrollEnabled:A}=t,_=(0,i.useRef)(null),M=(0,s.useRegistry)(),{paginationInfo:S}=(0,i.useContext)(u.A),{primaryActions:E,eligibleActions:N}=(0,i.useMemo)(()=>{const e=n.filter(e=>!e.isEligible||e.isEligible(h));return{primaryActions:e.filter(e=>e.isPrimary),eligibleActions:e}},[n,h]),O=(0,o.useViewportMatch)("medium","<"),P=t.layout?.density??"balanced",L=x&&"compact"!==P&&f?.render?(0,p.jsx)(f.render,{item:h,field:f,config:{sizes:"comfortable"===P?"32px":"24px"}}):null,T=(0,p.jsx)("div",{className:"dataviews-view-activity__item-type-icon",children:L||(0,p.jsx)("span",{className:"dataviews-view-activity__item-bullet","aria-hidden":"true"})}),V=k&&m?.render?(0,p.jsx)(m.render,{item:h,field:m}):null,I=(0,i.useMemo)(()=>"comfortable"===P?"md":"sm",[P]);return(0,p.jsx)("div",{ref:_,role:A?"article":void 0,"aria-posinset":y,"aria-setsize":A?S.totalItems:void 0,className:(0,r.A)("dataviews-view-activity__item","compact"===P&&"is-compact","balanced"===P&&"is-balanced","comfortable"===P&&"is-comfortable"),children:(0,p.jsxs)(c.B,{direction:"row",gap:"lg",justify:"start",align:"flex-start",children:[(0,p.jsx)(c.B,{direction:"column",gap:"xs",align:"center",className:"dataviews-view-activity__item-type",children:T}),(0,p.jsxs)(c.B,{direction:"column",gap:I,align:"flex-start",className:"dataviews-view-activity__item-content",children:[V&&(0,p.jsx)(d.V,{item:h,isItemClickable:j,onClickItem:b,renderItemLink:w,className:"dataviews-view-activity__item-title",children:V}),C&&g&&(0,p.jsx)("div",{className:"dataviews-view-activity__item-description",children:(0,p.jsx)(g.render,{item:h,field:g})}),(0,p.jsx)("div",{className:"dataviews-view-activity__item-fields",children:v.map(e=>(0,p.jsxs)("div",{className:"dataviews-view-activity__item-field",children:[(0,p.jsx)(a.VisuallyHidden,{as:"span",className:"dataviews-view-activity__item-field-label",children:e.label}),(0,p.jsx)("span",{className:"dataviews-view-activity__item-field-value",children:(0,p.jsx)(e.render,{item:h,field:e})})]},e.id))}),!!E?.length&&(0,p.jsx)(l.UV,{item:h,actions:E,registry:M,buttonVariant:"secondary"})]}),(E.length<N.length||O&&N.length>0)&&(0,p.jsx)("div",{className:"dataviews-view-activity__item-actions",children:(0,p.jsx)(l.Ay,{item:h,actions:N,isCompact:!0})})]})})}},25065(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(19890),a=n(51609);function i(e){return!!e}function s(e){const{data:t,fields:n,getItemId:s,view:o}=e,c=n.find(e=>e.id===o.titleField),l=n.find(e=>e.id===o.mediaField),u=n.find(e=>e.id===o.descriptionField),d=(o?.fields??[]).map(e=>n.find(t=>e===t.id)).filter(i);return t.map((t,n)=>(0,a.createElement)(r.A,{...e,key:s(t),item:t,mediaField:l,titleField:c,descriptionField:u,otherFields:d,posinset:o.infiniteScrollEnabled?n+1:void 0}))}},78935(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(13022),a=n(56427),i=n(21220),s=n(29494),o=n(56400),c=n(25065),l=n(29183),u=n(10790);function d(e){const{empty:t,data:n,fields:d,isLoading:p,view:h,className:m}=e,f=(0,l.o)(!!p),g=!!n?.length,v=h.groupBy?.field?d.find(e=>e.id===h.groupBy?.field):null,y=g&&v?(0,s.A)(n,v):null,b=h.infiniteScrollEnabled&&!y;if(!g)return(0,u.jsx)("div",{className:(0,r.A)("dataviews-no-results",{"is-refreshing":f}),children:t});const w=!b&&!!p,j=(0,r.A)("dataviews-view-activity",m,{"is-refreshing":!b&&f}),k=y?Array.from(y.entries()):[];return g&&v&&y?(0,u.jsx)(i.B,{direction:"column",gap:"sm",className:j,inert:w?"true":void 0,children:k.map(([t,n])=>(0,u.jsx)(o.A,{groupName:t,groupData:n,groupField:v,showLabel:!1!==h.groupBy?.showLabel,children:(0,u.jsx)(c.A,{...e,data:n})},t))}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:j,role:h.infiniteScrollEnabled?"feed":void 0,inert:w?"true":void 0,children:(0,u.jsx)(c.A,{...e})}),b&&p&&(0,u.jsx)("p",{className:"dataviews-loading-more",children:(0,u.jsx)(a.Spinner,{})})]})}},20478(e,t,n){"use strict";n.d(t,{A:()=>j});var r=n(13022),a=n(56427),i=n(21220),s=n(27723),o=n(29491),c=n(48558),l=n(86087),u=n(80115),d=n(87895),p=n(31020),h=n(62427),m=n(51638),f=n(75411),g=n(48069),v=n(10790),{Badge:y}=(0,u.T)(a.privateApis);function b(e,t){const n=[];for(let r=0,a=e.length;r<a;r+=t)n.push(e.slice(r,r+t));return n}var w=(0,l.forwardRef)(function e({view:t,selection:n,onChangeSelection:l,onClickItem:u,isItemLine truncated
|
||||
(0,s.__)("Row %d","jetpack-my-jetpack"),n+1),className:"dataviews-view-grid__row",style:{gridTemplateColumns:`repeat( ${_}, minmax(0, 1fr) )`}}),children:e.map((e,r)=>{const i=n*_+r;return(0,v.jsx)(a.Composite.Item,{render:n=>(0,v.jsx)(w,{...n,role:t?"article":"gridcell","aria-setsize":t?C.totalItems:void 0,"aria-posinset":t?i+1:void 0,view:c,selection:d,onChangeSelection:p,onClickItem:f,isItemClickable:y,renderItemLink:j,getItemId:k,item:e,actions:x,mediaField:E,titleField:S,descriptionField:N,regularFields:P,badgeFields:L,hasBulkActions:M,config:{sizes:"900px"}})},k(e))})},n))})}},78936(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(13022),a=n(56427),i=n(27723),s=n(21220),o=n(29494),c=n(20478),l=n(29183),u=n(10790);var d=function({actions:e,data:t,fields:n,getItemId:d,isLoading:p,onChangeSelection:h,onClickItem:m,isItemClickable:f,renderItemLink:g,selection:v,view:y,className:b,empty:w}){const j=(0,l.o)(!!p),k=!!t?.length,x=y.groupBy?.field?n.find(e=>e.id===y.groupBy?.field):null,C=x?(0,o.A)(t,x):null,A=y.infiniteScrollEnabled&&!C;if(!k)return(0,u.jsx)("div",{className:(0,r.A)("dataviews-no-results",{"is-refreshing":j}),children:w});const _={className:(0,r.A)(b,{"is-refreshing":!A&&j}),inert:!A&&p?"true":void 0,isLoading:p,view:y,fields:n,selection:v,onChangeSelection:h,onClickItem:m,isItemClickable:f,renderItemLink:g,getItemId:d,actions:e};return(0,u.jsxs)(u.Fragment,{children:[k&&x&&C&&(0,u.jsx)(s.B,{direction:"column",gap:"lg",children:Array.from(C.entries()).map(([e,t])=>(0,u.jsxs)(s.B,{direction:"column",gap:"sm",children:[(0,u.jsx)("h3",{className:"dataviews-view-grid__group-header",children:!1===y.groupBy?.showLabel?e:(0,i.sprintf)(
|
||||
// translators: 1: The label of the field e.g. "Date". 2: The value of the field, e.g.: "May 2022".
|
||||
// translators: 1: The label of the field e.g. "Date". 2: The value of the field, e.g.: "May 2022".
|
||||
(0,i.__)("%1$s: %2$s","jetpack-my-jetpack"),x.label,e)}),(0,u.jsx)(c.A,{..._,data:t,isInfiniteScroll:!1})]},e))}),!C&&(0,u.jsx)(c.A,{..._,data:t,isInfiniteScroll:!!A}),A&&p&&(0,u.jsx)("p",{className:"dataviews-loading-more",children:(0,u.jsx)(a.Spinner,{})})]})}},48069(e,t,n){"use strict";n.d(t,{Z:()=>o});n(56427),n(27723);var r=n(86087),a=n(62427),i=(n(10790),[{value:120,breakpoint:1},{value:170,breakpoint:1},{value:230,breakpoint:1},{value:290,breakpoint:1112},{value:350,breakpoint:1636},{value:430,breakpoint:588}]),s=i[2].value;function o(){const e=(0,r.useContext)(a.A),t=e.view;return(0,r.useMemo)(()=>{const n=e.containerWidth,r=t.layout?.previewSize??s,a=Math.floor((n+32)/(r+32));return Math.max(1,a)},[e.containerWidth,t.layout?.previewSize])}},73123(e,t,n){"use strict";n.d(t,{A:()=>y});var r=n(27723),a=n(55565),i=n(40599),s=n(77174),o=n(40743),c=n(55620),l=n(78774),u=n(78936),d=n(45704),p=n(78935),h=n(39881),m=n(65581),f=n(43929),g=n(6660),v=n(44491),y=[{type:f.Ad,label:(0,r.__)("Table","jetpack-my-jetpack"),component:l.A,icon:a.A,viewConfigOptions:g.A},{type:f.Ul,label:(0,r.__)("Grid","jetpack-my-jetpack"),component:u.A,icon:i.A,viewConfigOptions:v.A},{type:f.mA,label:(0,r.__)("List","jetpack-my-jetpack"),component:d.A,icon:(0,r.isRTL)()?s.A:o.A,viewConfigOptions:g.A},{type:f.br,label:(0,r.__)("Activity","jetpack-my-jetpack"),component:p.A,icon:c.A,viewConfigOptions:g.A},{type:f.dL,label:(0,r.__)("Grid","jetpack-my-jetpack"),component:h.A,icon:i.A,viewConfigOptions:v.A,isPicker:!0},{type:f.Ry,label:(0,r.__)("Table","jetpack-my-jetpack"),component:m.A,icon:a.A,viewConfigOptions:g.A,isPicker:!0}]},45704(e,t,n){"use strict";n.d(t,{A:()=>x});var r=n(13022),a=n(29491),i=n(56427),s=n(86087),o=n(27723),c=n(57855),l=n(47143),u=n(21220),d=n(80115),p=n(87895),h=n(62427),m=n(29183),f=n(29494),g=n(10790),{Menu:v}=(0,d.T)(i.privateApis);function y(e){return`${e}-item-wrapper`}function b(e){return`${e}-dropdown`}function w({idPrefix:e,primaryAction:t,item:n}){const r=(0,l.useRegistry)(),[a,o]=(0,s.useState)(!1),c=function(e,t){return`${e}-primary-action-${t}`}(e,t.id),u="string"==typeof t.label?t.label:t.label([n]);return"RenderModal"in t?(0,g.jsx)("div",{role:"gridcell",children:(0,g.jsx)(i.Composite.Item,{id:c,render:(0,g.jsx)(i.Button,{disabled:!!t.disabled,accessibleWhenDisabled:!0,text:u,size:"small",onClick:()=>o(!0)}),children:a&&(0,g.jsx)(p.cX,{action:t,items:[n],closeModal:()=>o(!1)})})},t.id):(0,g.jsx)("div",{role:"gridcell",children:(0,g.jsx)(i.Composite.Item,{id:c,render:(0,g.jsx)(i.Button,{disabled:!!t.disabled,accessibleWhenDisabled:!0,size:"small",onClick:()=>{t.callback([n],{registry:r})},children:u})})},t.id)}function j({view:e,actions:t,idPrefix:n,isSelected:a,item:d,titleField:m,mediaField:f,descriptionField:j,onSelect:k,otherFields:x,onDropdownTriggerKeyDown:C,posinset:A}){const{showTitle:_=!0,showMedia:M=!0,showDescription:S=!0,infiniteScrollEnabled:E}=e,N=(0,s.useRef)(null),O=`${n}-label`,P=`${n}-description`,L=(0,l.useRegistry)(),[T,V]=(0,s.useState)(!1),[I,z]=(0,s.useState)(null),H=({type:e})=>{V("mouseenter"===e)},{paginationInfo:D}=(0,s.useContext)(h.A);(0,s.useEffect)(()=>{a&&N.current?.scrollIntoView({behavior:"auto",block:"nearest",inline:"nearest"})},[a]);const{primaryAction:R,eligibleActions:F}=(0,s.useMemo)(()=>{const e=t.filter(e=>!e.isEligible||e.isEligible(d));return{primaryAction:e.filter(e=>e.isPrimary)[0],eligibleActions:e}},[t,d]),B=R&&1===t.length,U=M&&f?.render?(0,g.jsx)("div",{className:"dataviews-view-list__media-wrapper",children:(0,g.jsx)(f.render,{item:d,field:f,config:{sizes:"52px"}})}):null,q=_&&m?.render?(0,g.jsx)(m.render,{item:d,field:m}):null,W=S&&j?.render,$=!!U&&!W&&!x.length,Z=F?.length>0&&(0,g.jsxs)(u.B,{direction:"row",gap:"md",className:"dataviews-view-list__item-actions",children:[R&&(0,g.jsx)(w,{idPrefix:n,primaryAction:R,item:d}),!B&&(0,g.jsxs)("div",{role:"gridcell",children:[(0,g.jsxs)(v,{placement:"bottom-end",children:[(0,g.jsx)(v.TriggerButton,{render:(0,g.jsx)(i.Composite.Item,{id:b(n),render:(0,g.jsx)(i.Button,{size:"small",icon:c.A,label:(0,o.__)("Actions","jetpack-my-jetpack"),accessibleWhenDisabled:!0,disabled:!t.length,onKeyDown:C})})}),(0,g.jsx)(v.Popover,{children:(0,g.jsx)(p.oK,{actions:F,item:d,registry:L,setActiveModalAction:z})})]}),!!I&&(0,g.jsx)(p.cX,{action:I,items:[d],closeModal:()=>z(null)})]})]});return(0,g.jsx)(i.Composite.Row,{ref:N,render:(0,g.jsx)("div",{"aria-posinset":A,"aria-setsize":E?D.totalItems:void 0}),role:E?"article":"row",className:(0,r.A)({"is-selected":a,"is-hovered":T}),onMouseEnter:H,onMouseLeave:H,children:(0,g.jsxs)(u.B,{direction:"row",className:"dataviews-view-list__item-wrapper",children:[(0,g.jsx)("div",{role:"gridcell",children:(0,g.jsx)(i.Composite.Item,{id:y(n),"aria-pressed":a,"aria-labelledby":O,"aria-describedby":P,className:"dataviews-view-list__item",onClick:()=>k(d)})}),(0,g.jsxs)(u.B,{direction:"row",gap:"md",justify:"start",align:$?"center":"flex-start",style:{flex:1,minWidth:0},children:[U,(0,gLine truncated
|
||||
// translators: 1: The label of the field e.g. "Date". 2: The value of the field, e.g.: "May 2022".
|
||||
// translators: 1: The label of the field e.g. "Date". 2: The value of the field, e.g.: "May 2022".
|
||||
(0,o.__)("%1$s: %2$s","jetpack-my-jetpack"),q.label,e)}),n.map(e=>{const n=L(e);return(0,g.jsx)(j,{view:v,idPrefix:n,actions:t,item:e,isSelected:e===M,onSelect:P,mediaField:E,titleField:S,descriptionField:N,otherFields:O,onDropdownTriggerKeyDown:B},n)})]},e))})}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(i.Composite,{ref:z,id:A,render:(0,g.jsx)("div",{}),className:(0,r.A)("dataviews-view-list",w,{[`has-${v.layout?.density}-density`]:v.layout?.density&&["compact","comfortable"].includes(v.layout.density),"is-refreshing":!$&&_}),role:v.infiniteScrollEnabled?"feed":"grid",activeId:V,setActiveId:I,inert:!$&&d?"true":void 0,children:n.map((e,n)=>{const r=L(e);return(0,g.jsx)(j,{view:v,idPrefix:r,actions:t,item:e,isSelected:e===M,onSelect:P,mediaField:E,titleField:S,descriptionField:N,otherFields:O,onDropdownTriggerKeyDown:B,posinset:v.infiniteScrollEnabled?n+1:void 0},r)})}),$&&d&&(0,g.jsx)("p",{className:"dataviews-loading-more",children:(0,g.jsx)(i.Spinner,{})})]}):(0,g.jsx)("div",{className:(0,r.A)("dataviews-no-results",{"is-refreshing":_}),children:C})}},39881(e,t,n){"use strict";n.d(t,{A:()=>b});var r=n(13022),a=n(56427),i=n(27723),s=n(29491),o=n(86087),c=n(21220),l=n(80115),u=n(31020),d=n(62427),p=n(14820),h=n(73388),m=n(29494),f=n(10790),{Badge:g}=(0,l.T)(a.privateApis);function v({view:e,multiselect:t,selection:n,onChangeSelection:s,getItemId:o,item:l,mediaField:d,titleField:p,descriptionField:h,regularFields:m,badgeFields:v,config:y,posinset:b,setsize:w}){const{showTitle:j=!0,showMedia:k=!0,showDescription:x=!0}=e,C=o(l),A=n.includes(C),_=d?.render?(0,f.jsx)(d.render,{item:l,field:d,config:y}):null,M=j&&p?.render?(0,f.jsx)(p.render,{item:l,field:p}):null;return(0,f.jsxs)(a.Composite.Item,{"aria-label":p?p.getValue({item:l})||(0,i.__)("(no title)","jetpack-my-jetpack"):void 0,render:({children:e,...t})=>(0,f.jsx)(c.B,{direction:"column",children:e,...t}),role:"option","aria-posinset":b,"aria-setsize":w,className:(0,r.A)("dataviews-view-picker-grid__card",{"is-selected":A}),"aria-selected":A,onClick:()=>{if(A)s(n.filter(e=>C!==e));else{const e=t?[...n,C]:[C];s(e)}},children:[k&&_&&(0,f.jsx)("div",{className:"dataviews-view-picker-grid__media",children:_}),k&&_&&(0,f.jsx)(u.A,{item:l,selection:n,onChangeSelection:s,getItemId:o,titleField:p,disabled:!1,"aria-hidden":!0,tabIndex:-1}),j&&(0,f.jsx)(c.B,{direction:"row",justify:"space-between",className:"dataviews-view-picker-grid__title-actions",children:(0,f.jsx)("div",{className:"dataviews-view-picker-grid__title-field dataviews-title-field",children:M})}),(0,f.jsxs)(c.B,{direction:"column",gap:"xs",children:[x&&h?.render&&(0,f.jsx)(h.render,{item:l,field:h}),!!v?.length&&(0,f.jsx)(c.B,{direction:"row",className:"dataviews-view-picker-grid__badge-fields",gap:"sm",wrap:"wrap",align:"top",justify:"flex-start",children:v.map(e=>(0,f.jsx)(g,{className:"dataviews-view-picker-grid__field-value",children:(0,f.jsx)(e.render,{item:l,field:e})},e.id))}),!!m?.length&&(0,f.jsx)(c.B,{direction:"column",className:"dataviews-view-picker-grid__fields",gap:"xs",children:m.map(e=>(0,f.jsx)(a.Flex,{className:"dataviews-view-picker-grid__field",gap:1,justify:"flex-start",expanded:!0,style:{height:"auto"},direction:"row",children:(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(a.FlexItem,{className:"dataviews-view-picker-grid__field-name",children:e.header}),(0,f.jsx)(a.FlexItem,{className:"dataviews-view-picker-grid__field-value",style:{maxHeight:"none"},children:(0,f.jsx)(e.render,{item:l,field:e})})]})},e.id))})]})]},C)}function y({groupName:e,groupField:t,showLabel:n=!0,children:r}){const a=(0,s.useInstanceId)(y,"dataviews-view-picker-grid-group__header");return(0,f.jsxs)(c.B,{direction:"column",gap:"sm",role:"group","aria-labelledby":a,children:[(0,f.jsx)("h3",{className:"dataviews-view-picker-grid-group__header",id:a,children:n?(0,i.sprintf)(
|
||||
// translators: 1: The label of the field e.g. "Date". 2: The value of the field, e.g.: "May 2022".
|
||||
// translators: 1: The label of the field e.g. "Date". 2: The value of the field, e.g.: "May 2022".
|
||||
(0,i.__)("%1$s: %2$s","jetpack-my-jetpack"),t.label,e):e}),r]},e)}var b=function({actions:e,data:t,fields:n,getItemId:i,isLoading:s,onChangeSelection:l,selection:u,view:g,className:b,empty:w}){const{resizeObserverRef:j,paginationInfo:k,itemListLabel:x}=(0,o.useContext)(d.A),C=n.find(e=>e.id===g?.titleField),A=n.find(e=>e.id===g?.mediaField),_=n.find(e=>e.id===g?.descriptionField),M=g.fields??[],{regularFields:S,badgeFields:E}=M.reduce((e,t)=>{const r=n.find(e=>e.id===t);if(!r)return e;return e[g.layout?.badgeFields?.includes(t)?"badgeFields":"regularFields"].push(r),e},{regularFields:[],badgeFields:[]}),N=!!t?.length,O=g.layout?.previewSize,P=(0,p.T)(e),L="900px",T=g.groupBy?.field?n.find(e=>e.id===g.groupBy?.field):null,V=T?(0,m.A)(t,T):null,I=g.infiniteScrollEnabled&&!V,z=g?.page??1,H=g?.perPage??0,D=I?k?.totalItems:void 0;return(0,f.jsxs)(f.Fragment,{children:[N&&T&&V&&(0,f.jsx)(a.Composite,{virtualFocus:!0,orientation:"horizontal",role:"listbox","aria-multiselectable":P,className:(0,r.A)("dataviews-view-picker-grid",b,{[`has-${g.layout?.density}-density`]:g.layout?.density&&["compact","comfortable"].includes(g.layout.density)}),"aria-label":x,render:({children:e,...t})=>(0,f.jsx)(c.B,{direction:"column",gap:"lg",children:e,...t}),children:Array.from(V.entries()).map(([e,n])=>(0,f.jsx)(y,{groupName:e,groupField:T,showLabel:!1!==g.groupBy?.showLabel,children:(0,f.jsx)(h.L,{previewSize:O,style:{gridTemplateColumns:O&&`repeat(auto-fill, minmax(${O}px, 1fr))`},"aria-busy":s,ref:j,children:n.map(e=>{const n=(z-1)*H+t.indexOf(e)+1;return(0,f.jsx)(v,{view:g,multiselect:P,selection:u,onChangeSelection:l,getItemId:i,item:e,mediaField:A,titleField:C,descriptionField:_,regularFields:S,badgeFields:E,config:{sizes:L},posinset:n,setsize:D},i(e))})})},e))}),N&&!V&&(0,f.jsx)(a.Composite,{render:(0,f.jsx)(h.L,{className:(0,r.A)("dataviews-view-picker-grid",b,{[`has-${g.layout?.density}-density`]:g.layout?.density&&["compact","comfortable"].includes(g.layout.density)}),previewSize:O,"aria-busy":s,ref:j}),virtualFocus:!0,orientation:"horizontal",role:"listbox","aria-multiselectable":P,"aria-label":x,children:t.map((e,t)=>{let n=I?t+1:void 0;return I||(n=(z-1)*H+t+1),(0,f.jsx)(v,{view:g,multiselect:P,selection:u,onChangeSelection:l,getItemId:i,item:e,mediaField:A,titleField:C,descriptionField:_,regularFields:S,badgeFields:E,config:{sizes:L},posinset:n,setsize:D},i(e))})}),!N&&(0,f.jsx)("div",{className:(0,r.A)({"dataviews-loading":s,"dataviews-no-results":!s}),children:s?(0,f.jsx)("p",{children:(0,f.jsx)(a.Spinner,{})}):w}),N&&s&&(0,f.jsx)("p",{className:"dataviews-loading-more",children:(0,f.jsx)(a.Spinner,{})})]})}},65581(e,t,n){"use strict";n.d(t,{A:()=>y});var r=n(13022),a=n(27723),i=n(56427),s=n(86087),o=n(62427),c=n(31020),l=n(14820),u=n(51638),d=n(43929),p=n(9306),h=n(95753),m=n(29494),f=n(10790);function g({item:e,fields:t,column:n,align:a}){const i=t.find(e=>e.id===n);if(!i)return null;const s=(0,r.A)("dataviews-view-table__cell-content-wrapper",{"dataviews-view-table__cell-align-end":"end"===a,"dataviews-view-table__cell-align-center":"center"===a});return(0,f.jsx)("div",{className:s,children:(0,f.jsx)(i.render,{item:e,field:i})})}function v({item:e,fields:t,id:n,view:a,titleField:l,mediaField:u,descriptionField:d,selection:p,getItemId:m,onChangeSelection:v,multiselect:y,posinset:b}){const{paginationInfo:w}=(0,s.useContext)(o.A),j=p.includes(n),[k,x]=(0,s.useState)(!1),{showTitle:C=!0,showMedia:A=!0,showDescription:_=!0,infiniteScrollEnabled:M}=a,S=()=>{x(!0)},E=()=>{x(!1)},N=a.fields??[],O=l&&C||u&&A||d&&_;return(0,f.jsxs)(i.Composite.Item,{render:({children:e,...t})=>(0,f.jsx)("tr",{className:(0,r.A)("dataviews-view-table__row",{"is-selected":j,"is-hovered":k}),onMouseEnter:S,onMouseLeave:E,children:e,...t}),"aria-selected":j,"aria-setsize":w.totalItems||void 0,"aria-posinset":b,role:M?"article":"option",onClick:()=>{if(j)v(p.filter(e=>n!==e));else{const e=y?[...p,n]:[n];v(e)}},children:[(0,f.jsx)("td",{className:"dataviews-view-table__checkbox-column",role:"presentation",children:(0,f.jsx)("div",{className:"dataviews-view-table__cell-content-wrapper",children:(0,f.jsx)(c.A,{item:e,selection:p,onChangeSelection:v,getItemId:m,titleField:l,disabled:!1,"aria-hidden":!0,tabIndex:-1})})}),O&&(0,f.jsx)("td",{role:"presentation",children:(0,f.jsx)(h.A,{item:e,titleField:C?l:void 0,mediaField:A?u:void 0,descriptionField:_?d:void 0,isItemClickable:()=>!1})}),N.map(n=>{const{width:r,maxWidth:i,minWidth:s,align:o}=a.layout?.styles?.[n]??{};return(0,f.jsx)("td",{style:{width:r,maxWidth:i,minWidth:s},role:"presentation",children:(0,f.jsx)(g,{fields:t,item:e,column:n,align:o})},n)})]},n)}var y=function({actions:e,data:t,fields:n,getItemId:o,isLoading:c=!1,onChangeView:h,onChangeSelection:g,selection:y,setOpenedFilter:b,view:w,className:j,empty:k}){const x=(0,s.useRef)(new Map),C=(0,s.useRef)(void 0),[A,_]=(0,s.useState)(),M=(0,l.T)(e)??!1;(0,s.useEffect)(()=>{C.current&&(C.current.focus(),C.current=void 0)});const S=(0,s.useLine truncated
|
||||
// translators: 1: The label of the field e.g. "Date". 2: The value of the field, e.g.: "May 2022".
|
||||
// translators: 1: The label of the field e.g. "Date". 2: The value of the field, e.g.: "May 2022".
|
||||
(0,a.__)("%1$s: %2$s","jetpack-my-jetpack"),T.label,e)})}),t.map((e,t)=>(0,f.jsx)(v,{item:e,fields:n,id:o(e)||t.toString(),view:w,titleField:O,mediaField:P,descriptionField:L,selection:y,getItemId:o,onChangeSelection:g,multiselect:M},o(e)))]},`group-${e}`)):(0,f.jsx)(i.Composite,{render:(0,f.jsx)("tbody",{role:"presentation"}),virtualFocus:!0,orientation:"vertical",children:N&&t.map((e,t)=>(0,f.jsx)(v,{item:e,fields:n,id:o(e)||t.toString(),view:w,titleField:O,mediaField:P,descriptionField:L,selection:y,getItemId:o,onChangeSelection:g,multiselect:M,posinset:t+1},o(e)))})]}),(0,f.jsxs)("div",{className:(0,r.A)({"dataviews-loading":c,"dataviews-no-results":!N&&!c}),id:S,children:[!N&&(c?(0,f.jsx)("p",{children:(0,f.jsx)(i.Spinner,{})}):k),N&&c&&(0,f.jsx)("p",{className:"dataviews-loading-more",children:(0,f.jsx)(i.Spinner,{})})]})]})}},9306(e,t,n){"use strict";n.d(t,{A:()=>v});var r=n(27723),a=n(62344),i=n(98595),s=n(63371),o=n(28755),c=n(56427),l=n(86087),u=n(80115),d=n(43929),p=n(62427),h=n(41338),m=n(10790),{Menu:f}=(0,u.T)(c.privateApis);function g({children:e}){return l.Children.toArray(e).filter(Boolean).map((e,t)=>(0,m.jsxs)(l.Fragment,{children:[t>0&&(0,m.jsx)(f.Separator,{}),e]},t))}var v=(0,l.forwardRef)(function({fieldId:e,view:t,fields:n,onChangeView:u,onHide:v,setOpenedFilter:y,canMove:b=!0,canInsertLeft:w=!0,canInsertRight:j=!0},k){const x=t.fields??[],C=x?.indexOf(e),A=t.sort?.field===e;let _=!1,M=!1,S=!1,E=[];const N=n.find(t=>t.id===e),{setIsShowingFilter:O}=(0,l.useContext)(p.A);if(!N)return null;_=!1!==N.enableHiding,M=!1!==N.enableSorting;const P=N.header;if(E=!!N.filterBy&&N.filterBy?.operators||[],S=!(t.filters?.some(t=>e===t.field)||!N.hasElements&&!N.Edit||!1===N.filterBy||N.filterBy?.isPrimary),!(M||b||_||S))return P;const L=(0,h.A)(t,n).filter(e=>!x.includes(e.id)),T=(w||j)&&!!L.length,V=(0,r.isRTL)();return(0,m.jsxs)(f,{children:[(0,m.jsxs)(f.TriggerButton,{render:(0,m.jsx)(c.Button,{size:"compact",className:"dataviews-view-table-header-button",ref:k,variant:"tertiary"}),children:[P,t.sort&&A&&(0,m.jsx)("span",{"aria-hidden":"true",children:d.vI[t.sort.direction]})]}),(0,m.jsx)(f.Popover,{style:{minWidth:"240px"},children:(0,m.jsxs)(g,{children:[M&&(0,m.jsx)(f.Group,{children:d.GJ.map(n=>{const r=t.sort&&A&&t.sort.direction===n,a=`${e}-${n}`;return(0,m.jsx)(f.RadioItem,{name:"view-table-sorting",value:a,checked:r,onChange:()=>{u({...t,sort:{field:e,direction:n},showLevels:!1})},children:(0,m.jsx)(f.ItemLabel,{children:d.CL[n]})},a)})}),S&&(0,m.jsx)(f.Group,{children:(0,m.jsx)(f.Item,{prefix:(0,m.jsx)(c.Icon,{icon:s.A}),onClick:()=>{y(e),O(!0),u({...t,page:1,filters:[...t.filters||[],{field:e,value:void 0,operator:E[0]}]})},children:(0,m.jsx)(f.ItemLabel,{children:(0,r.__)("Add filter","jetpack-my-jetpack")})})}),(b||_||T)&&N&&(0,m.jsxs)(f.Group,{children:[b&&(0,m.jsx)(f.Item,{prefix:(0,m.jsx)(c.Icon,{icon:a.A}),disabled:V?C>=x.length-1:C<1,onClick:()=>{const n=V?C+1:C-1,r=[...x];r.splice(C,1),r.splice(n,0,e),u({...t,fields:r})},children:(0,m.jsx)(f.ItemLabel,{children:(0,r.__)("Move left","jetpack-my-jetpack")})}),b&&(0,m.jsx)(f.Item,{prefix:(0,m.jsx)(c.Icon,{icon:i.A}),disabled:V?C<1:C>=x.length-1,onClick:()=>{const n=V?C-1:C+1,r=[...x];r.splice(C,1),r.splice(n,0,e),u({...t,fields:r})},children:(0,m.jsx)(f.ItemLabel,{children:(0,r.__)("Move right","jetpack-my-jetpack")})}),w&&!!L.length&&(0,m.jsxs)(f,{children:[(0,m.jsx)(f.SubmenuTriggerItem,{children:(0,m.jsx)(f.ItemLabel,{children:(0,r.__)("Insert left","jetpack-my-jetpack")})}),(0,m.jsx)(f.Popover,{children:L.map(e=>{const n=V?C+1:C;return(0,m.jsx)(f.Item,{onClick:()=>{u({...t,fields:[...x.slice(0,n),e.id,...x.slice(n)]})},children:(0,m.jsx)(f.ItemLabel,{children:e.label})},e.id)})})]}),j&&!!L.length&&(0,m.jsxs)(f,{children:[(0,m.jsx)(f.SubmenuTriggerItem,{children:(0,m.jsx)(f.ItemLabel,{children:(0,r.__)("Insert right","jetpack-my-jetpack")})}),(0,m.jsx)(f.Popover,{children:L.map(e=>{const n=V?C:C+1;return(0,m.jsx)(f.Item,{onClick:()=>{u({...t,fields:[...x.slice(0,n),e.id,...x.slice(n)]})},children:(0,m.jsx)(f.ItemLabel,{children:e.label})},e.id)})})]}),_&&N&&(0,m.jsx)(f.Item,{prefix:(0,m.jsx)(c.Icon,{icon:o.A}),onClick:()=>{v(N),u({...t,fields:x.filter(t=>t!==e)})},children:(0,m.jsx)(f.ItemLabel,{children:(0,r.__)("Hide column","jetpack-my-jetpack")})})]})]})})]})})},95753(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(21220),a=n(75411),i=n(10790);var s=function({item:e,level:t,titleField:n,mediaField:s,descriptionField:o,onClickItem:c,renderItemLink:l,isItemClickable:u}){return(0,i.jsxs)(r.B,{direction:"row",gap:"md",align:"flex-start",justify:"flex-start",children:[s&&(0,i.jsx)(a.V,{item:e,isItemClickable:u,onClickItem:c,renderItemLink:l,className:"dataviews-view-table__cell-content-wrapper dataviews-column-primary__media","aria-label":u(e)&&(c||l)&&n?n.getValue?.({item:e}):void 0,children:(0,i.jsx)(s.render,{item:e,field:s,config:{sizes:"32px"}})}),(0,i.jsxs)(r.B,{direction:"column",align:"flex-start",className:"dataviews-vieLine truncated
|
||||
// translators: 1: The label of the field e.g. "Date". 2: The value of the field, e.g.: "May 2022".
|
||||
// translators: 1: The label of the field e.g. "Date". 2: The value of the field, e.g.: "May 2022".
|
||||
(0,a.__)("%1$s: %2$s","jetpack-my-jetpack"),Y.label,t)})}),r.map((t,r)=>(0,b.jsx)(k,{item:t,level:S.showLevels&&"function"==typeof l?l(t):void 0,hasBulkActions:B,actions:e,fields:n,id:o(t)||r.toString(),view:S,titleField:$,mediaField:Z,descriptionField:G,selection:x,getItemId:o,onChangeSelection:j,onClickItem:A,renderItemLink:M,isItemClickable:_,isActionsColumnSticky:!R},o(t)))]},`group-${t}`)):(0,b.jsx)("tbody",{children:W&&t.map((t,r)=>(0,b.jsx)(k,{item:t,level:S.showLevels&&"function"==typeof l?l(t):void 0,hasBulkActions:B,actions:e,fields:n,id:o(t)||r.toString(),view:S,titleField:$,mediaField:Z,descriptionField:G,selection:x,getItemId:o,onChangeSelection:j,onClickItem:A,renderItemLink:M,isItemClickable:_,isActionsColumnSticky:!R,posinset:re?r+1:void 0},o(t)))})]}),re&&u&&(0,b.jsx)("div",{className:"dataviews-loading",id:D,children:(0,b.jsx)("p",{className:"dataviews-loading-more",children:(0,b.jsx)(i.Spinner,{})})})]}):(0,b.jsx)("div",{className:(0,r.A)("dataviews-no-results",{"is-refreshing":P}),id:D,children:N})}},24751(e,t,n){"use strict";n.d(t,{Y:()=>i});var r=n(86087),a=n(27723);function i({scrollContainerRef:e,enabledHorizontal:t=!1}){const[n,i]=(0,r.useState)(!1),[s,o]=(0,r.useState)(!1),c=(0,r.useCallback)(()=>{const n=e.current;n&&(t&&i((e=>{if((0,a.isRTL)())return Math.abs(e.scrollLeft)<=1;return e.scrollLeft+e.clientWidth>=e.scrollWidth-1})(n)),o(n.scrollTop>0))},[e,t]);return(0,r.useEffect)(()=>{if("undefined"==typeof window||!e.current)return()=>{};const t=e.current;return c(),t.addEventListener("scroll",c),window.addEventListener("resize",c),()=>{t.removeEventListener("scroll",c),window.removeEventListener("resize",c)}},[e,t,c]),{isHorizontalScrollEnd:n,isVerticallyScrolled:s}}},6660(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(56427),a=n(27723),i=n(86087),s=n(62427),o=n(10790);function c(){const e=(0,i.useContext)(s.A),t=e.view;return(0,o.jsxs)(r.__experimentalToggleGroupControl,{size:"__unstable-large",label:(0,a.__)("Density","jetpack-my-jetpack"),value:t.layout?.density||"balanced",onChange:n=>{e.onChangeView({...t,layout:{...t.layout,density:n}})},isBlock:!0,children:[(0,o.jsx)(r.__experimentalToggleGroupControlOption,{value:"comfortable",label:(0,a._x)("Comfortable","Density option for DataView layout","jetpack-my-jetpack")},"comfortable"),(0,o.jsx)(r.__experimentalToggleGroupControlOption,{value:"balanced",label:(0,a._x)("Balanced","Density option for DataView layout","jetpack-my-jetpack")},"balanced"),(0,o.jsx)(r.__experimentalToggleGroupControlOption,{value:"compact",label:(0,a._x)("Compact","Density option for DataView layout","jetpack-my-jetpack")},"compact")]})}},29494(e,t,n){"use strict";function r(e,t){return e.reduce((e,n)=>{const r=t.getValue({item:n});return e.has(r)||e.set(r,[]),e.get(r)?.push(n),e},new Map)}n.d(t,{A:()=>r})},44491(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(6660),a=n(2760),i=n(10790);function s(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.A,{}),(0,i.jsx)(a.A,{})]})}},73388(e,t,n){"use strict";n.d(t,{L:()=>s});var r=n(86087),a=n(13022),i=n(10790),s=(0,r.forwardRef)(({className:e,previewSize:t,...n},r)=>(0,i.jsx)("div",{ref:r,className:(0,a.A)("dataviews-view-grid-items",e),style:{gridTemplateColumns:t&&`repeat(auto-fill, minmax(${t}px, 1fr))`},...n}))},75411(e,t,n){"use strict";n.d(t,{V:()=>i});var r=n(86087),a=n(10790);function i({item:e,isItemClickable:t,onClickItem:n,renderItemLink:i,className:s,children:o,...c}){if(!t(e))return(0,a.jsx)("div",{className:s,...c,children:o});if(i){const t=i({item:e,className:`${s} ${s}--clickable`,...c,children:o});return(0,r.cloneElement)(t,{onClick:e=>{e.stopPropagation(),t.props.onClick&&t.props.onClick(e)},onKeyDown:e=>{"Enter"!==e.key&&""!==e.key&&" "!==e.key||(e.stopPropagation(),t.props.onKeyDown&&t.props.onKeyDown(e))}})}const l=function({item:e,isItemClickable:t,onClickItem:n,className:r}){return t(e)&&n?{className:r?`${r} ${r}--clickable`:void 0,role:"button",tabIndex:0,onClick:t=>{t.stopPropagation(),n(e)},onKeyDown:t=>{"Enter"!==t.key&&""!==t.key&&" "!==t.key||(t.stopPropagation(),n(e))}}:{className:r}}({item:e,isItemClickable:t,onClickItem:n,className:s});return(0,a.jsx)("div",{...l,...c,children:o})}},2760(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(56427),a=n(27723),i=n(86087),s=n(62427),o=n(10790),c=[{value:120,breakpoint:1},{value:170,breakpoint:1},{value:230,breakpoint:1},{value:290,breakpoint:1112},{value:350,breakpoint:1636},{value:430,breakpoint:588}];function l(){const e=(0,i.useContext)(s.A),t=e.view,n=c.filter(t=>e.containerWidth>=t.breakpoint),l=t.layout?.previewSize??230,u=n.map((e,t)=>({...e,index:t})).filter(e=>e.value<=l).sort((e,t)=>t.value-e.value)[0]?.index??0,d=n.map((e,t)=>({value:t}));return(0,o.jsx)(r.RangeControl,{__next40pxDefaultSize:!0,showTooltip:!1,label:(0,a.__)("Preview size","jetpack-my-jetpack"),value:u,min:0,max:n.length-1,withInputField:!1,onChange:(r=0)=>{e.onChangeView({...t,layout:{...t.layout,previewSize:n[r].value}})},step:1,marks:d})}},24988(e,t,n){"use stLine truncated
|
||||
// translators: 1: current page number. 2: total number of pages.
|
||||
// translators: 1: current page number. 2: total number of pages.
|
||||
(0,i.__)("Page %1$d of %2$d","jetpack-my-jetpack"),p,d):n.toString()}});return!!n&&1!==d&&(0,u.jsxs)(c.B,{direction:"row",className:"dataviews-pagination",justify:"end",align:"center",gap:"xl",children:[(0,u.jsx)(c.B,{direction:"row",justify:"flex-start",align:"center",gap:"xs",className:"dataviews-pagination__page-select",children:(0,a.createInterpolateElement)((0,i.sprintf)(
|
||||
// translators: 1: Current page number, 2: Total number of pages.
|
||||
// translators: 1: Current page number, 2: Total number of pages.
|
||||
(0,i._x)("<div>Page</div>%1$s<div>of %2$d</div>","paging","jetpack-my-jetpack"),"<CurrentPage />",d),{div:(0,u.jsx)("div",{"aria-hidden":!0}),CurrentPage:(0,u.jsx)(r.SelectControl,{"aria-label":(0,i.__)("Current page","jetpack-my-jetpack"),value:p.toString(),options:h,onChange:n=>{t({...e,page:+n})},size:"small",variant:"minimal"})})}),(0,u.jsxs)(c.B,{direction:"row",gap:"xs",align:"center",children:[(0,u.jsx)(r.Button,{onClick:()=>t({...e,page:p-1}),disabled:1===p,accessibleWhenDisabled:!0,label:(0,i.__)("Previous page","jetpack-my-jetpack"),icon:(0,i.isRTL)()?s.A:o.A,showTooltip:!0,size:"compact",tooltipPosition:"top"}),(0,u.jsx)(r.Button,{onClick:()=>t({...e,page:p+1}),disabled:p>=d,accessibleWhenDisabled:!0,label:(0,i.__)("Next page","jetpack-my-jetpack"),icon:(0,i.isRTL)()?o.A:s.A,showTooltip:!0,size:"compact",tooltipPosition:"top"})]})]})}var p=(0,a.memo)(d)},14820(e,t,n){"use strict";n.d(t,{T:()=>a});n(56427),n(47143);var r=n(86087);n(27723),n(10790);function a(e){return(0,r.useMemo)(()=>e?.every(e=>e.supportsBulk),[e])}},29212(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(27723),a=n(86087),i=n(56427),s=n(29491),o=n(62427),c=n(10790),l=(0,a.memo)(function({label:e}){const{view:t,onChangeView:n}=(0,a.useContext)(o.A),[l,u,d]=(0,s.useDebouncedInput)(t.search);(0,a.useEffect)(()=>{t.search!==d&&u(t.search??"")},[t.search,u]);const p=(0,a.useRef)(n),h=(0,a.useRef)(t);(0,a.useEffect)(()=>{p.current=n,h.current=t},[n,t]),(0,a.useEffect)(()=>{d!==h.current?.search&&p.current({...h.current,page:1,search:d})},[d]);const m=e||(0,r.__)("Search","jetpack-my-jetpack");return(0,c.jsx)(i.SearchControl,{className:"dataviews-search",onChange:u,value:l,label:m,placeholder:m,size:"compact"})})},31020(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(56427),a=n(27723),i=n(10790);function s({selection:e,onChangeSelection:t,item:n,getItemId:s,titleField:o,disabled:c,...l}){const u=s(n),d=!c&&e.includes(u),p=o?.getValue?.({item:n})||(0,a.__)("(no title)","jetpack-my-jetpack");return(0,i.jsx)(r.CheckboxControl,{className:"dataviews-selection-checkbox","aria-label":p,"aria-disabled":c,checked:d,onChange:()=>{c||t(e.includes(u)?e.filter(e=>u!==e):[...e,u])},...l})}},17160(e,t,n){"use strict";n.d(t,{Ay:()=>_,DM:()=>C,hn:()=>b});var r=n(56427),a=n(27723),i=n(86087),s=n(93312),o=n(10979),c=n(29491),l=n(21220),u=n(43929),d=n(73123),p=n(62427),h=n(68915),m=n(83393),f=n(80115),g=n(10790),{Menu:v}=(0,f.T)(r.privateApis),y={className:"dataviews-config__popover",placement:"bottom-end",offset:9};function b(){const{view:e,onChangeView:t,defaultLayouts:n}=(0,i.useContext)(p.A),s=Object.keys(n);if(s.length<=1)return null;const c=d.A.find(t=>e.type===t.type);return(0,g.jsxs)(v,{children:[(0,g.jsx)(v.TriggerButton,{render:(0,g.jsx)(r.Button,{size:"compact",icon:c?.icon,label:(0,a.__)("Layout","jetpack-my-jetpack")})}),(0,g.jsx)(v.Popover,{children:s.map(r=>{const a=d.A.find(e=>e.type===r);return a?(0,g.jsx)(v.RadioItem,{value:r,name:"view-actions-available-view",checked:r===e.type,hideOnClick:!0,onChange:r=>{switch(r.target.value){case"list":case"grid":case"table":case"pickerGrid":case"pickerTable":case"activity":const a={...e};return"layout"in a&&delete a.layout,t({...a,type:r.target.value,...n[r.target.value]})}o("Invalid dataview")},children:(0,g.jsx)(v.ItemLabel,{children:a.label})},r):null})})]})}function w(){const{view:e,fields:t,onChangeView:n}=(0,i.useContext)(p.A),s=(0,i.useMemo)(()=>t.filter(e=>!1!==e.enableSorting).map(e=>({label:e.label,value:e.id})),[t]);return(0,g.jsx)(r.SelectControl,{__next40pxDefaultSize:!0,label:(0,a.__)("Sort by","jetpack-my-jetpack"),value:e.sort?.field,options:s,onChange:t=>{n({...e,sort:{direction:e?.sort?.direction||"desc",field:t},showLevels:!1})}})}function j(){const{view:e,fields:t,onChangeView:n}=(0,i.useContext)(p.A);if(0===t.filter(e=>!1!==e.enableSorting).length)return null;let s=e.sort?.direction;return!s&&e.sort?.field&&(s="desc"),(0,g.jsx)(r.__experimentalToggleGroupControl,{className:"dataviews-view-config__sort-direction",__next40pxDefaultSize:!0,isBlock:!0,label:(0,a.__)("Order","jetpack-my-jetpack"),value:s,onChange:r=>{"asc"!==r&&"desc"!==r?o("Invalid direction"):n({...e,sort:{direction:r,field:e.sort?.field||t.find(e=>!1!==e.enableSorting)?.id||""},showLevels:!1})},children:u.GJ.map(e=>(0,g.jsx)(r.__experimentalToggleGroupControlOptionIcon,{value:e,icon:u.ls[e],label:u.CL[e]},e))})}function k(){const{view:e,config:t,onChangeView:n}=(0,i.useContext)(p.A),{infiniteScrollEnabled:s}=e;return!t||!t.perPageSizes||t.perPageSizes.length<2||t.perPageSizes.length>6||s?null:(0,g.jsx)(r.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,isBlock:!0,label:(0,a.__)("Items per page","jetpack-my-jetpack"),value:e.perPage||10,disabled:!e?.sort?.field,onChange:t=>{const r="number"==typeof t||void 0===t?t:parseInt(t,10);n({...e,perPage:r,page:1})},children:t.perPageSizes.map(e=>(0,g.jsx)(r.__experimentalToggleGroupControlOption,{value:e,label:e.toString()},e))})}function x(){const{onReset:e}=(0,i.useCoLine truncated
|
||||
(0,r._n)("%d Item selected","%d Items selected",e,"jetpack-my-jetpack"),e):n>t?(0,r.sprintf)(/* translators: %1$d: number of items. %2$d: total number of items. */ /* translators: %1$d: number of items. %2$d: total number of items. */
|
||||
(0,r._n)("%1$d of %2$d Item","%1$d of %2$d Items",n,"jetpack-my-jetpack"),t,n):(0,r.sprintf)(/* translators: %d: number of items. */ /* translators: %d: number of items. */
|
||||
(0,r._n)("%d Item","%d Items",t,"jetpack-my-jetpack"),t)}},41338(e,t,n){"use strict";function r(e,t){const n=[e?.titleField,e?.mediaField,e?.descriptionField].filter(Boolean);return t.filter(e=>!n.includes(e.id)&&"media"!==e.type&&!1!==e.enableHiding)}n.d(t,{A:()=>r})},71e3(e,t,n){"use strict";n.d(t,{Df:()=>b,LX:()=>y,bx:()=>g,os:()=>v});var r=n(23403),a=n(53899),i=n(79719),s=n(21988),o=n(27723),c=n(86087),l=n(38443),u=n(43929),d=n(10790),p={Name:(0,d.jsx)("span",{className:"dataviews-filters__summary-filter-text-name"}),Value:(0,d.jsx)("span",{className:"dataviews-filters__summary-filter-text-value"})};function h(e,t){switch(t){case"days":return(0,r.e)(new Date,e);case"weeks":return(0,i.k)(new Date,e);case"months":return(0,a.a)(new Date,e);case"years":return(0,s.d)(new Date,e);default:return new Date}}var m={
|
||||
/* translators: DataViews operator name */
|
||||
label:(0,o.__)("Is none of","jetpack-my-jetpack"),filterText:(e,t)=>(0,c.createInterpolateElement)((0,o.sprintf)(/* translators: 1: Filter name (e.g. "Author"). 2: Filter value (e.g. "Admin"): "Author is none of: Admin, Editor". */ /* translators: 1: Filter name (e.g. "Author"). 2: Filter value (e.g. "Admin"): "Author is none of: Admin, Editor". */
|
||||
(0,o.__)("<Name>%1$s is none of: </Name><Value>%2$s</Value>","jetpack-my-jetpack"),e.name,t.map(e=>e.label).join(", ")),p),filter:(e,t,n)=>{if(!n?.length)return!0;const r=t.getValue({item:e});return Array.isArray(r)?!n.some(e=>r.includes(e)):"string"==typeof r&&!n.includes(r)},selection:"multi"},f=[{name:u.ld,
|
||||
/* translators: DataViews operator name */
|
||||
label:(0,o.__)("Includes","jetpack-my-jetpack"),filterText:(e,t)=>(0,c.createInterpolateElement)((0,o.sprintf)(/* translators: 1: Filter name (e.g. "Author"). 2: Filter value (e.g. "Admin"): "Author is any: Admin, Editor". */ /* translators: 1: Filter name (e.g. "Author"). 2: Filter value (e.g. "Admin"): "Author is any: Admin, Editor". */
|
||||
(0,o.__)("<Name>%1$s includes: </Name><Value>%2$s</Value>","jetpack-my-jetpack"),e.name,t.map(e=>e.label).join(", ")),p),filter(e,t,n){if(!n?.length)return!0;const r=t.getValue({item:e});return Array.isArray(r)?n.some(e=>r.includes(e)):"string"==typeof r&&n.includes(r)},selection:"multi"},{name:u.Vw,...m},{name:u.y5,
|
||||
/* translators: DataViews operator name */
|
||||
label:(0,o.__)("Includes all","jetpack-my-jetpack"),filterText:(e,t)=>(0,c.createInterpolateElement)((0,o.sprintf)(/* translators: 1: Filter name (e.g. "Author"). 2: Filter value (e.g. "Admin"): "Author includes all: Admin, Editor". */ /* translators: 1: Filter name (e.g. "Author"). 2: Filter value (e.g. "Admin"): "Author includes all: Admin, Editor". */
|
||||
(0,o.__)("<Name>%1$s includes all: </Name><Value>%2$s</Value>","jetpack-my-jetpack"),e.name,t.map(e=>e.label).join(", ")),p),filter:(e,t,n)=>!n?.length||n.every(n=>t.getValue({item:e})?.includes(n)),selection:"multi"},{name:u.UX,...m},{name:u.CX,
|
||||
/* translators: DataViews operator name */
|
||||
label:(0,o.__)("Between (inc)","jetpack-my-jetpack"),filterText:(e,t)=>(0,c.createInterpolateElement)((0,o.sprintf)(/* translators: 1: Filter name (e.g. "Item count"). 2: Filter value min. 3: Filter value max. e.g.: "Item count between (inc): 10 and 180". */ /* translators: 1: Filter name (e.g. "Item count"). 2: Filter value min. 3: Filter value max. e.g.: "Item count between (inc): 10 and 180". */
|
||||
(0,o.__)("<Name>%1$s between (inc): </Name><Value>%2$s and %3$s</Value>","jetpack-my-jetpack"),e.name,t[0].label[0],t[0].label[1]),p),filter(e,t,n){if(!Array.isArray(n)||2!==n.length||void 0===n[0]||void 0===n[1])return!0;const r=t.getValue({item:e});return("number"==typeof r||r instanceof Date||"string"==typeof r)&&(r>=n[0]&&r<=n[1])},selection:"custom"},{name:u._h,
|
||||
/* translators: DataViews operator name */
|
||||
label:(0,o.__)("In the past","jetpack-my-jetpack"),filterText:(e,t)=>(0,c.createInterpolateElement)((0,o.sprintf)(/* translators: 1: Filter name (e.g. "Date"). 2: Filter value (e.g. "7 days"): "Date is in the past: 7 days". */ /* translators: 1: Filter name (e.g. "Date"). 2: Filter value (e.g. "7 days"): "Date is in the past: 7 days". */
|
||||
(0,o.__)("<Name>%1$s is in the past: </Name><Value>%2$s</Value>","jetpack-my-jetpack"),e.name,`${t[0].value.value} ${t[0].value.unit}`),p),filter(e,t,n){if(void 0===n?.value||void 0===n?.unit)return!0;const r=h(n.value,n.unit),a=(0,l.getDate)(t.getValue({item:e}));return a>=r&&a<=new Date},selection:"custom"},{name:u.MD,
|
||||
/* translators: DataViews operator name */
|
||||
label:(0,o.__)("Over","jetpack-my-jetpack"),filterText:(e,t)=>(0,c.createInterpolateElement)((0,o.sprintf)(/* translators: 1: Filter name (e.g. "Date"). 2: Filter value (e.g. "7 days"): "Date is over: 7 days". */ /* translators: 1: Filter name (e.g. "Date"). 2: Filter value (e.g. "7 days"): "Date is over: 7 days". */
|
||||
(0,o.__)("<Name>%1$s is over: </Name><Value>%2$s</Value>","jetpack-my-jetpack"),e.name,`${t[0].value.value} ${t[0].value.unit}`),p),filter(e,t,n){if(void 0===n?.value||void 0===n?.unit)return!0;const r=h(n.value,n.unit);return(0,l.getDate)(t.getValue({item:e}))<r},selection:"custom"},{name:u.gm,
|
||||
/* translators: DataViews operator name */
|
||||
label:(0,o.__)("Is","jetpack-my-jetpack"),filterText:(e,t)=>(0,c.createInterpolateElement)((0,o.sprintf)(/* translators: 1: Filter name (e.g. "Author"). 2: Filter value (e.g. "Admin"): "Author is: Admin". */ /* translators: 1: Filter name (e.g. "Author"). 2: Filter value (e.g. "Admin"): "Author is: Admin". */
|
||||
(0,o.__)("<Name>%1$s is: </Name><Value>%2$s</Value>","jetpack-my-jetpack"),e.name,t[0].label),p),filter:(e,t,n)=>n===t.getValue({item:e})||void 0===n,selection:"single"},{name:u._k,
|
||||
/* translators: DataViews operator name */
|
||||
label:(0,o.__)("Is not","jetpack-my-jetpack"),filterText:(e,t)=>(0,c.createInterpolateElement)((0,o.sprintf)(/* translators: 1: Filter name (e.g. "Author"). 2: Filter value (e.g. "Admin"): "Author is not: Admin". */ /* translators: 1: Filter name (e.g. "Author"). 2: Filter value (e.g. "Admin"): "Author is not: Admin". */
|
||||
(0,o.__)("<Name>%1$s is not: </Name><Value>%2$s</Value>","jetpack-my-jetpack"),e.name,t[0].label),p),filter:(e,t,n)=>n!==t.getValue({item:e}),selection:"single"},{name:u.X4,
|
||||
/* translators: DataViews operator name */
|
||||
label:(0,o.__)("Less than","jetpack-my-jetpack"),filterText:(e,t)=>(0,c.createInterpolateElement)((0,o.sprintf)(/* translators: 1: Filter name (e.g. "Count"). 2: Filter value (e.g. "10"): "Count is less than: 10". */ /* translators: 1: Filter name (e.g. "Count"). 2: Filter value (e.g. "10"): "Count is less than: 10". */
|
||||
(0,o.__)("<Name>%1$s is less than: </Name><Value>%2$s</Value>","jetpack-my-jetpack"),e.name,t[0].label),p),filter(e,t,n){if(void 0===n)return!0;return t.getValue({item:e})<n},selection:"single"},{name:u.u5,
|
||||
/* translators: DataViews operator name */
|
||||
label:(0,o.__)("Greater than","jetpack-my-jetpack"),filterText:(e,t)=>(0,c.createInterpolateElement)((0,o.sprintf)(/* translators: 1: Filter name (e.g. "Count"). 2: Filter value (e.g. "10"): "Count is greater than: 10". */ /* translators: 1: Filter name (e.g. "Count"). 2: Filter value (e.g. "10"): "Count is greater than: 10". */
|
||||
(0,o.__)("<Name>%1$s is greater than: </Name><Value>%2$s</Value>","jetpack-my-jetpack"),e.name,t[0].label),p),filter(e,t,n){if(void 0===n)return!0;return t.getValue({item:e})>n},selection:"single"},{name:u.Ie,
|
||||
/* translators: DataViews operator name */
|
||||
label:(0,o.__)("Less than or equal","jetpack-my-jetpack"),filterText:(e,t)=>(0,c.createInterpolateElement)((0,o.sprintf)(/* translators: 1: Filter name (e.g. "Count"). 2: Filter value (e.g. "10"): "Count is less than or equal to: 10". */ /* translators: 1: Filter name (e.g. "Count"). 2: Filter value (e.g. "10"): "Count is less than or equal to: 10". */
|
||||
(0,o.__)("<Name>%1$s is less than or equal to: </Name><Value>%2$s</Value>","jetpack-my-jetpack"),e.name,t[0].label),p),filter(e,t,n){if(void 0===n)return!0;return t.getValue({item:e})<=n},selection:"single"},{name:u.x4,
|
||||
/* translators: DataViews operator name */
|
||||
label:(0,o.__)("Greater than or equal","jetpack-my-jetpack"),filterText:(e,t)=>(0,c.createInterpolateElement)((0,o.sprintf)(/* translators: 1: Filter name (e.g. "Count"). 2: Filter value (e.g. "10"): "Count is greater than or equal to: 10". */ /* translators: 1: Filter name (e.g. "Count"). 2: Filter value (e.g. "10"): "Count is greater than or equal to: 10". */
|
||||
(0,o.__)("<Name>%1$s is greater than or equal to: </Name><Value>%2$s</Value>","jetpack-my-jetpack"),e.name,t[0].label),p),filter(e,t,n){if(void 0===n)return!0;return t.getValue({item:e})>=n},selection:"single"},{name:u.Xd,
|
||||
/* translators: DataViews operator name */
|
||||
label:(0,o.__)("Before","jetpack-my-jetpack"),filterText:(e,t)=>(0,c.createInterpolateElement)((0,o.sprintf)(/* translators: 1: Filter name (e.g. "Date"). 2: Filter value (e.g. "2024-01-01"): "Date is before: 2024-01-01". */ /* translators: 1: Filter name (e.g. "Date"). 2: Filter value (e.g. "2024-01-01"): "Date is before: 2024-01-01". */
|
||||
(0,o.__)("<Name>%1$s is before: </Name><Value>%2$s</Value>","jetpack-my-jetpack"),e.name,t[0].label),p),filter(e,t,n){if(void 0===n)return!0;const r=(0,l.getDate)(n);return(0,l.getDate)(t.getValue({item:e}))<r},selection:"single"},{name:u.QF,
|
||||
/* translators: DataViews operator name */
|
||||
label:(0,o.__)("After","jetpack-my-jetpack"),filterText:(e,t)=>(0,c.createInterpolateElement)((0,o.sprintf)(/* translators: 1: Filter name (e.g. "Date"). 2: Filter value (e.g. "2024-01-01"): "Date is after: 2024-01-01". */ /* translators: 1: Filter name (e.g. "Date"). 2: Filter value (e.g. "2024-01-01"): "Date is after: 2024-01-01". */
|
||||
(0,o.__)("<Name>%1$s is after: </Name><Value>%2$s</Value>","jetpack-my-jetpack"),e.name,t[0].label),p),filter(e,t,n){if(void 0===n)return!0;const r=(0,l.getDate)(n);return(0,l.getDate)(t.getValue({item:e}))>r},selection:"single"},{name:u.o8,
|
||||
/* translators: DataViews operator name */
|
||||
label:(0,o.__)("Before (inc)","jetpack-my-jetpack"),filterText:(e,t)=>(0,c.createInterpolateElement)((0,o.sprintf)(/* translators: 1: Filter name (e.g. "Date"). 2: Filter value (e.g. "2024-01-01"): "Date is on or before: 2024-01-01". */ /* translators: 1: Filter name (e.g. "Date"). 2: Filter value (e.g. "2024-01-01"): "Date is on or before: 2024-01-01". */
|
||||
(0,o.__)("<Name>%1$s is on or before: </Name><Value>%2$s</Value>","jetpack-my-jetpack"),e.name,t[0].label),p),filter(e,t,n){if(void 0===n)return!0;const r=(0,l.getDate)(n);return(0,l.getDate)(t.getValue({item:e}))<=r},selection:"single"},{name:u.NN,
|
||||
/* translators: DataViews operator name */
|
||||
label:(0,o.__)("After (inc)","jetpack-my-jetpack"),filterText:(e,t)=>(0,c.createInterpolateElement)((0,o.sprintf)(/* translators: 1: Filter name (e.g. "Date"). 2: Filter value (e.g. "2024-01-01"): "Date is on or after: 2024-01-01". */ /* translators: 1: Filter name (e.g. "Date"). 2: Filter value (e.g. "2024-01-01"): "Date is on or after: 2024-01-01". */
|
||||
(0,o.__)("<Name>%1$s is on or after: </Name><Value>%2$s</Value>","jetpack-my-jetpack"),e.name,t[0].label),p),filter(e,t,n){if(void 0===n)return!0;const r=(0,l.getDate)(n);return(0,l.getDate)(t.getValue({item:e}))>=r},selection:"single"},{name:u.Py,
|
||||
/* translators: DataViews operator name */
|
||||
label:(0,o.__)("Contains","jetpack-my-jetpack"),filterText:(e,t)=>(0,c.createInterpolateElement)((0,o.sprintf)(/* translators: 1: Filter name (e.g. "Title"). 2: Filter value (e.g. "Hello"): "Title contains: Hello". */ /* translators: 1: Filter name (e.g. "Title"). 2: Filter value (e.g. "Hello"): "Title contains: Hello". */
|
||||
(0,o.__)("<Name>%1$s contains: </Name><Value>%2$s</Value>","jetpack-my-jetpack"),e.name,t[0].label),p),filter(e,t,n){if(void 0===n)return!0;const r=t.getValue({item:e});return"string"==typeof r&&n&&r.toLowerCase().includes(String(n).toLowerCase())},selection:"single"},{name:u.Vm,
|
||||
/* translators: DataViews operator name */
|
||||
label:(0,o.__)("Doesn't contain","jetpack-my-jetpack"),filterText:(e,t)=>(0,c.createInterpolateElement)((0,o.sprintf)(/* translators: 1: Filter name (e.g. "Title"). 2: Filter value (e.g. "Hello"): "Title doesn't contain: Hello". */ /* translators: 1: Filter name (e.g. "Title"). 2: Filter value (e.g. "Hello"): "Title doesn't contain: Hello". */
|
||||
(0,o.__)("<Name>%1$s doesn't contain: </Name><Value>%2$s</Value>","jetpack-my-jetpack"),e.name,t[0].label),p),filter(e,t,n){if(void 0===n)return!0;const r=t.getValue({item:e});return"string"==typeof r&&n&&!r.toLowerCase().includes(String(n).toLowerCase())},selection:"single"},{name:u.YH,
|
||||
/* translators: DataViews operator name */
|
||||
label:(0,o.__)("Starts with","jetpack-my-jetpack"),filterText:(e,t)=>(0,c.createInterpolateElement)((0,o.sprintf)(/* translators: 1: Filter name (e.g. "Title"). 2: Filter value (e.g. "Hello"): "Title starts with: Hello". */ /* translators: 1: Filter name (e.g. "Title"). 2: Filter value (e.g. "Hello"): "Title starts with: Hello". */
|
||||
(0,o.__)("<Name>%1$s starts with: </Name><Value>%2$s</Value>","jetpack-my-jetpack"),e.name,t[0].label),p),filter(e,t,n){if(void 0===n)return!0;const r=t.getValue({item:e});return"string"==typeof r&&n&&r.toLowerCase().startsWith(String(n).toLowerCase())},selection:"single"},{name:u.xz,
|
||||
/* translators: DataViews operator name */
|
||||
label:(0,o.__)("On","jetpack-my-jetpack"),filterText:(e,t)=>(0,c.createInterpolateElement)((0,o.sprintf)(/* translators: 1: Filter name (e.g. "Date"). 2: Filter value (e.g. "2024-01-01"): "Date is: 2024-01-01". */ /* translators: 1: Filter name (e.g. "Date"). 2: Filter value (e.g. "2024-01-01"): "Date is: 2024-01-01". */
|
||||
(0,o.__)("<Name>%1$s is: </Name><Value>%2$s</Value>","jetpack-my-jetpack"),e.name,t[0].label),p),filter(e,t,n){if(void 0===n)return!0;const r=(0,l.getDate)(n),a=(0,l.getDate)(t.getValue({item:e}));return r.getTime()===a.getTime()},selection:"single"},{name:u.Ld,
|
||||
/* translators: DataViews operator name */
|
||||
label:(0,o.__)("Not on","jetpack-my-jetpack"),filterText:(e,t)=>(0,c.createInterpolateElement)((0,o.sprintf)(/* translators: 1: Filter name (e.g. "Date"). 2: Filter value (e.g. "2024-01-01"): "Date is not: 2024-01-01". */ /* translators: 1: Filter name (e.g. "Date"). 2: Filter value (e.g. "2024-01-01"): "Date is not: 2024-01-01". */
|
||||
(0,o.__)("<Name>%1$s is not: </Name><Value>%2$s</Value>","jetpack-my-jetpack"),e.name,t[0].label),p),filter(e,t,n){if(void 0===n)return!0;const r=(0,l.getDate)(n),a=(0,l.getDate)(t.getValue({item:e}));return r.getTime()!==a.getTime()},selection:"single"}],g=e=>f.find(t=>t.name===e),v=()=>f.map(e=>e.name),y=e=>f.filter(e=>"single"===e.selection).some(t=>t.name===e),b=e=>f.some(t=>t.name===e)},79654(e,t,n){"use strict";n.d(t,{N:()=>p});var r=n(93196),a=n(49300),i=n(13022),s=n(86087),o=n(27723),c=n(10790);if("undefined"!=typeof document&&!document.head.querySelector("style[data-wp-hash='671ebfc62d']")){const e=document.createElement("style");e.setAttribute("data-wp-hash","671ebfc62d"),e.appendChild(document.createTextNode("@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}")),document.head.appendChild(e)}var l="_336cd3e4e743482f__box-sizing";if("undefined"!=typeof document&&!document.head.querySelector("style[data-wp-hash='6db1282653']")){const e=document.createElement("style");e.setAttribute("data-wp-hash","6db1282653"),e.appendChild(document.createTextNode("@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._08e8a2e44959f892__outset-ring--focus,._970d04df7376df67__outset-ring--focus-within-except-active,.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible,.cd83dfc2126a0846__outset-ring--focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active,.ecadb9e080e2dfa5__outset-ring--focus-parent-visible{@media not (prefers-reduced-motion){transition:outline .1s ease-out}outline-color:#0000;outline-offset:1px;outline-style:solid;outline-width:0}._08e8a2e44959f892__outset-ring--focus:focus,._970d04df7376df67__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.cd83dfc2126a0846__outset-ring--focus-within:focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible:focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active:focus:not(:active),:focus-visible .ecadb9e080e2dfa5__outset-ring--focus-parent-visible{outline-color:var(--wpds-color-stroke-focus-brand,var(--wp-admin-theme-color,#3858e9));outline-width:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}")),document.head.appendChild(e)}var u="_08e8a2e44959f892__outset-ring--focus";if("undefined"!=typeof document&&!document.head.querySelector("style[data-wp-hash='fb2485c572']")){const e=document.createElement("style");e.setAttribute("data-wp-hash","fb2485c572"),e.appendChild(document.createTextNode('@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{.d4250949359b05ce__link{text-decoration-thickness:.5px;text-underline-offset:.2em}.c6055659b8e2cd2c__is-brand,.c6055659b8e2cd2c__is-brand:visited{color:var(--wpds-color-fg-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.c6055659b8e2cd2c__is-brand:active,.c6055659b8e2cd2c__is-brand:hover{color:var(--wpds-color-fg-interactive-brand-active,var(--wp-admin-theme-color,#3858e9))}._92e0dfcaeee15b88__is-neutral,._92e0dfcaeee15b88__is-neutral:visited{color:var(--wpds-color-fg-interactive-neutral,#1e1e1e);text-decoration-color:var(--wpds-color-stroke-interactive-neutral,#8a8a8a)}._92e0dfcaeee15b88__is-neutral:active,._92e0dfcaeee15b88__is-neutral:hover{color:var(--wpds-color-fg-interactive-neutral-active,#1e1e1e)}.cf122a9bf1035d42__is-unstyled{color:inherit;text-decoration:none}.e6ad7c380ee337fe__has-link-icon{text-decoration:none}._8dc7567f9ff415bf__link-contents{text-decoration:underline;text-decoration-color:inherit;text-decoration-thickness:.5px}._0cb411afac4c86c7__link-icon{font-weight:var(--wpds-font-weight-regular,400);margin-inline-start:var(--wpds-dimension-padding-xs,4px)}._0cb411afac4c86c7__link-icon:after{content:"\\2197"}._0cb411afac4c86c7__link-icon:dir(rtl):after{content:"\\2196"}}')),document.head.appendChild(e)}var d={link:"d4250949359b05ce__link","is-brand":"c6055659b8e2cd2c__is-brand","is-neutral":"_92e0dfcaeee15b88__is-neutral","is-unstyled":"cf122a9bf1035d42__is-unstyled","has-link-icon":"e6ad7c380ee337fe__has-link-icon","link-contents":"_8dc7567f9ff415bf__link-contents","link-icon":"_0cb411afac4c86c7__link-icon"},p=(0,s.forwardRef)(function({children:e,variant:t="default",tone:n="brand",openInNewTab:s=!1,render:p,className:h,onClick:m,...f},g){const v=!!f.href?.startsWith("#");return(0,r.C)({render:p,defaultTagName:"a",ref:g,props:(0,a.v6)(f,{className:(0,i.A)(l,u,"unstyled"!==t&&d.link,"unstyled"!==t&&d[`is-${n}`],"unstyled"===t&&d["is-unstyled"],s&&d["has-link-icon"],h),onClick:e=>{s&&v&&e.preventDefault(),m?.(e)},target:s?"_blank":void 0,children:s?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:d["link-contents"],children:e}),(0,c.jsx)("span",{className:d["link-icLine truncated
|
||||
@@ -0,0 +1,26 @@
|
||||
/*!
|
||||
Copyright (c) 2018 Jed Watson.
|
||||
Licensed under the MIT License (MIT), see
|
||||
http://jedwatson.github.io/classnames
|
||||
*/
|
||||
|
||||
/**
|
||||
* @license React
|
||||
* use-sync-external-store-shim.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
/**
|
||||
* react-router v7.12.0
|
||||
*
|
||||
* Copyright (c) Remix Software Inc.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE.md file in the root directory of this source tree.
|
||||
*
|
||||
* @license MIT
|
||||
*/
|
||||
@@ -0,0 +1 @@
|
||||
.admin-ui-page{background-color:var(--wpds-color-bg-surface-neutral-strong,#fff);color:var(--wpds-color-fg-content-neutral,#1e1e1e);display:flex;flex-flow:column;height:100%;position:relative;text-wrap:pretty;z-index:1}.admin-ui-page__header{background:var(--wpds-color-bg-surface-neutral-strong,#fff);border-bottom:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral-weak,#e0e0e0);padding:var(--wpds-dimension-padding-md,12px) var(--wpds-dimension-padding-2xl,24px);position:sticky;top:0;z-index:1}.admin-ui-page__header-title{font-family:var(--wpds-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-font-size-lg,15px);font-weight:var(--wpds-font-weight-medium,499);line-height:var(--wpds-font-line-height-lg,28px);margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-ui-page__sidebar-toggle-slot:empty{display:none}.admin-ui-page__header-subtitle{color:var(--wpds-color-fg-content-neutral-weak,#6d6d6d);font-size:var(--wpds-font-size-md,13px);line-height:var(--wpds-font-line-height-md,24px);margin:0;padding-block-end:var(--wpds-dimension-padding-xs,4px)}.admin-ui-page__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto}.admin-ui-page__content.has-padding{padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px)}.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon{padding:0 var(--wpds-dimension-padding-xs,4px);width:auto}.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon svg{display:none}.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon:after{content:attr(aria-label);font-size:var(--wpds-font-size-sm,12px)}.admin-ui-breadcrumbs__list{font-family:var(--wpds-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-font-size-lg,15px);font-weight:var(--wpds-font-weight-medium,499);gap:0;line-height:var(--wpds-font-line-height-lg,28px);list-style:none;margin:0;min-height:32px;padding:0}.admin-ui-breadcrumbs__list li:not(:last-child):after{content:"/";margin:0 8px}.admin-ui-breadcrumbs__list h1{font-size:inherit;line-height:inherit}.jetpack-footer{border-top:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral-weak,#e0e0e0);box-sizing:border-box;font-size:var(--wpds-font-size-md,13px);padding:var(--wpds-dimension-padding-xl) var(--wpds-dimension-padding-2xl);width:100%}.jetpack-footer .jetpack-footer__menu-item:any-link,.jetpack-footer .jetpack-footer__menu-item[role=button]{color:var(--wpds-color-fg-interactive-neutral-weak);cursor:pointer;text-decoration:none}.jetpack-footer .jetpack-footer__menu-item:hover{text-decoration:underline}.jetpack-footer>ul{list-style:none;margin:0;padding:0}.jetpack-footer>ul>li{margin:0}.jetpack-footer__logo{flex-shrink:0}@media(min-width:480px){a.jetpack-footer__a8c{margin-inline-start:auto}}a.jetpack-footer__a8c svg{fill:var(--wpds-color-fg-interactive-neutral-weak)}@media(max-width:599px){.RuVLl3q4lxTQa3wbhBJB{grid-column-end:span 1}.f9LZTRG4MMK42rS89afW{grid-column-start:1}.bHe_zKxjjpUwHw_MdYE1{grid-column-end:2}.QZbNrOqE2aNSn50xVhpU{grid-column-end:span 2}.ev7W3z7zVYPeHAlYqZjf{grid-column-start:2}.NJWd1m_e7lOiPYru2ZMP{grid-column-end:3}.Xc6nt1Qc1DI0Z2A3gt1r{grid-column-end:span 3}.UIcN_GXiPRoIsin8Kohg{grid-column-start:3}.GRKCyqb5LufCSCgykKFc{grid-column-end:4}.i_qTq8gqhhC3vIUepVRB{grid-column-end:span 4}.G3qaZ3Jpbvam_1XvGxgc{grid-column-start:4}.VRCNYKZtO9zukEwmgP1y{grid-column-end:5}}@media(min-width:600px)and (max-width:959px){.tRm008K_WJL79WoNZTNL{grid-column-end:span 1}.l5T2P_bgKts4tdaRkS1d{grid-column-start:1}.zOCxfLZpF6BlgC7a_Yq1{grid-column-end:2}.F80DdgVn0m5OpvtSQWka{grid-column-end:span 2}.oI1c7JYfiJtMQHbhngtU{grid-column-start:2}.pMQtA_4jh1_1lVknqEP5{grid-column-end:3}.VenqMpdgyKQVUNNQcfqd{grid-column-end:span 3}.seNYL99uoczf9V4MxBxT{grid-column-start:3}.YKfF1HFhI9KygA5l3b2J{grid-column-end:4}.yAi0Cv1xDWkoqsaUhvhR{grid-column-end:span 4}.ubhnyZOnkgxNhh6XtVWv{grid-column-start:4}.RGOPGQbWMJ9Ei5oFxS7X{grid-column-end:5}.Sz1E2aWbX483ijdi6yge{grid-column-end:span 5}.tku6_bRYrX9tMbgYGmIl{grid-column-start:5}.b5JHttOhSEcI1WBlqAjk{grid-column-end:6}.FboSx5MoKTAWbxXyYlCw{grid-column-end:span 6}.Jhs8yEEmodG30edbJvag{grid-column-start:6}.IpzbbKVqEqPcfIGkXkwt{grid-column-end:7}.mhCPwfAZ4Kmm_empzJAq{grid-column-end:span 7}.x034ilrJF7rO9UJB2rI1{grid-column-start:7}.Wt8t2e16viRrOJ1lLA5v{grid-column-end:8}.S6pIrEy9AMLKx9bgh_Ae{grid-column-end:span 8}.kEfI4tGyuWfHTlRnvIab{grid-column-start:8}.PUzX4RRsKq1dnsz3gebS{grid-column-end:9}}@media(min-width:960px){.X_pdcLJikd8LS_YAdJlB{grid-column-end:span 1}.tl936d14Huby4khYp05X{grid-column-start:1}.hnge0LnR69d3NXEtEE1t{grid-column-end:2}.fj0NUMuyZQcPNgKcjp5Z{grid-column-end:span 2}.R2ncBX7a2NigdYCcV1OX{grid-column-start:2}.t8vMSDVYno9k9itRwnXb{grid-column-end:3}.wsDuEN2GqHLine truncated
|
||||