diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6db4038..05ed203 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,7 @@ This is an alpha version! The changes listed here are not final.
### Changed
- Admin: Changed initialization load order for menu items to prevent translation error.
+- Components: Add __nextHasNoMarginBottom to BaseControl-based components, preventing deprecation notices.
- Updated package dependencies.
## [0.24.13] - 2024-10-21
diff --git a/build/admin/index.asset.php b/build/admin/index.asset.php
index a49e886..4d7d9e3 100644
--- a/build/admin/index.asset.php
+++ b/build/admin/index.asset.php
@@ -1 +1 @@
- array('jetpack-connection', 'jetpack-script-data', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '64e7ccf9bfc7f218a051');
+ array('jetpack-connection', 'jetpack-script-data', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '54c4d88da0a71f08c5a9');
diff --git a/build/admin/index.js b/build/admin/index.js
index 4604c81..fba6079 100644
--- a/build/admin/index.js
+++ b/build/admin/index.js
@@ -9,10 +9,10 @@ __("%s not included","jetpack-videopress-pkg"),n)})(t,e,C),j=A?P.lg:P.default;re
__("By clicking %1$s or %2$s, you agree to our Terms of Service and to sync your site‘s data with us.","jetpack-videopress-pkg"),e[0],e[1]),{strong:React.createElement("strong",null),tosLink:React.createElement(p,{slug:"wpcom-tos"}),shareDetailsLink:React.createElement(p,{slug:"jetpack-support-what-data-does-jetpack-sync"})}):(0,o.createInterpolateElement)(__("By clicking the buttons above, you agree to our Terms of Service and to sync your site‘s data with us.","jetpack-videopress-pkg"),{tosLink:React.createElement(p,{slug:"wpcom-tos"}),shareDetailsLink:React.createElement(p,{slug:"jetpack-support-what-data-does-jetpack-sync"})}),u=({agreeButtonLabel:e})=>(0,o.createInterpolateElement)((0,i.sprintf)(/* translators: %s is a button label */
__("By clicking %s, you agree to our Terms of Service and to sync your site‘s data with us.","jetpack-videopress-pkg"),e),{strong:React.createElement("strong",null),tosLink:React.createElement(p,{slug:"wpcom-tos"}),shareDetailsLink:React.createElement(p,{slug:"jetpack-support-what-data-does-jetpack-sync"})}),p=({slug:e,children:t})=>React.createElement("a",{className:"terms-of-service__link",href:(0,c.A)(e),rel:"noopener noreferrer",target:"_blank"},t),m=({className:e,multipleButtons:t,agreeButtonLabel:n,...r})=>React.createElement(l.Ay,a()({className:(0,s.A)(e,"terms-of-service")},r),t?React.createElement(d,{multipleButtonsLabels:t}):React.createElement(u,{agreeButtonLabel:n}))},110:(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"]},7425:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>u,hE:()=>p});var r=n(6072),a=n.n(r),o=n(3022),i=n(1609),s=n.n(i),c=n(110),l=n(2073);const d=(0,i.forwardRef)((({variant:e="body",children:t,component:n,className:r,...d},u)=>{const p=n||c.Q[e]||"span",m=(0,i.useMemo)((()=>c.Z.reduce(((e,t)=>(void 0!==d[t]&&(e+=l.A[`${t}-${d[t]}`]+" ",delete d[t]),e)),"")),[d]);return d.ref=u,s().createElement(p,a()({className:(0,o.A)(l.A.reset,l.A[e],r,m)},d),t)}));d.displayName="Text";const u=d,p=({children:e,size:t="medium",...n})=>s().createElement(d,a()({variant:`title-${t}`,mb:1},n),e)},723:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>p});var r=n(1609),a=n.n(r),o=n(5196);const i={"--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)"},s={"--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"},d={},u=(e,t,n)=>{const r={...i,...s,...c,...l};for(const t in r)e.style.setProperty(t,r[t]);n&&e.classList.add(o.A.global),t&&(d[t]={provided:!0,root:e})},p=({children:e=null,targetDom:t,id:n,withGlobalStyles:o=!0})=>{const i=(0,r.useRef)(),s=d?.[n]?.provided;return(0,r.useLayoutEffect)((()=>{if(!s)return t?u(t,n,o):void(i?.current&&u(i.current,n,o))}),[t,i,s,n,o]),t?a().createElement(a().Fragment,null,e):a().createElement("div",{ref:i},e)}},1437:(e,t,n)=>{"use strict";n.d(t,{Y:()=>a});var r=n(8443);const a=()=>{const{l10n:{locale:e}}=(0,r.getSettings)();if(e)return(e=>{const t=e.match(/^([a-z]{2,3})(_[a-z]{2}|_[a-z][a-z0-9]{4,7})?(?:_.*)?$/i);return t?`${t[1]}${t[2]?t[2]:""}`.replace("_","-"):"en-US"})(e);return window?.window?.navigator?.language??"en-US"}},1069:(e,t,n)=>{"use strict";function r(){return window.Initial_State?.adminUrl||window.Jetpack_Editor_Initial_State?.adminUrl||window?.myJetpackInitialState?.adminUrl||null}n.d(t,{A:()=>r})},3924:(e,t,n)=>{"use strict";function r(e,t={}){const n={};let r;if("undefined"!=typeof window&&(r=window?.JP_CONNECTION_INITIAL_STATE?.calypsoEnv),0===e.search("https://")){const t=new URL(e);e=`https://${t.host}${t.pathname}`,n.url=encodeURIComponent(e)}else n.source=encodeURIComponent(e);for(const e in t)n[e]=encodeURIComponent(t[e]);!Object.keys(n).includes("site")&&"undefined"!=typeof jetpack_redirects&&Object.hasOwn(jetpack_redirects,"currentSiteRawUrl")&&(n.site=jetpack_redirects.currentBlogID??jetpack_redirects.currentSiteRawUrl),r&&(n.calypso_env=r);return"https://jetpack.com/redirect/?"+Object.keys(n).map((e=>e+"="+n[e])).join("&")}n.d(t,{A:()=>r})},6439:(e,t,n)=>{let r={};try{r=n(3018)}catch{console.error("jetpackConfig is missing in your webpack config file. See @automattic/jetpack-config"),r={missingConfig:!0}}const a=e=>Object.hasOwn(r,e);e.exports={jetpackConfigHas:a,jetpackConfigGet:e=>{if(!a(e))throw'This app requires the "'+e+'" Jetpack Config to be defined in your webpack configuration file. See details in @automattic/jetpack-config package docs.';return r[e]}}},3935:(e,t,n)=>{"use strict";n.d(t,{A1:()=>c,Ay:()=>A,DO:()=>s,Ij:()=>i,Kl:()=>m,LW:()=>l,MU:()=>h,XY:()=>d,ZO:()=>o,dz:()=>u,gH:()=>p,v_:()=>a});var r=n(5932);const a="SET_CONNECTION_STATUS",o="SET_CONNECTION_STATUS_IS_FETCHING",i="SET_SITE_IS_REGISTERING",s="SET_USER_IS_CONNECTING",c="SET_REGISTRATION_ERROR",l="CLEAR_REGISTRATION_ERROR",d="SET_AUTHORIZATION_URL",u="DISCONNECT_USER_SUCCESS",p="SET_CONNECTED_PLUGINS",m="SET_CONNECTION_ERRORS",h="SET_IS_OFFLINE_MODE",g=e=>({type:a,connectionStatus:e}),v=e=>({type:i,isRegistering:e}),f=e=>({type:s,isConnecting:e}),y=e=>({type:c,registrationError:e}),w=()=>({type:l}),b=e=>({type:d,authorizationUrl:e}),E=e=>({type:p,connectedPlugins:e});const A={setConnectionStatus:g,setConnectionStatusIsFetching:e=>({type:o,isFetching:e}),fetchConnectionStatus:()=>({type:"FETCH_CONNECTION_STATUS"}),fetchAuthorizationUrl:e=>({type:"FETCH_AUTHORIZATION_URL",redirectUri:e}),setSiteIsRegistering:v,setUserIsConnecting:f,setRegistrationError:y,clearRegistrationError:w,setAuthorizationUrl:b,registerSite:function*({registrationNonce:e,redirectUri:t,from:n=""}){yield w(),yield v(!0);try{const r=yield{type:"REGISTER_SITE",registrationNonce:e,redirectUri:t,from:n};return yield g({isRegistered:!0}),yield b(r.authorizeUrl),yield v(!1),Promise.resolve(r)}catch(e){return yield y(e),yield v(!1),Promise.reject(e)}},connectUser:function*({from:e,redirectFunc:t,redirectUri:n}={}){yield f(!0),yield{type:"CONNECT_USER",from:e,redirectFunc:t,redirectUri:n}},disconnectUserSuccess:()=>({type:u}),setConnectedPlugins:E,refreshConnectedPlugins:()=>async({dispatch:e})=>await new Promise((t=>r.Ay.fetchConnectedPlugins().then((n=>{e(E(n)),t(n)})))),setConnectionErrors:e=>({type:m,connectionErrors:e}),setIsOfflineMode:e=>({type:h,isOfflineMode:e})}},113:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(5932),a=n(7143),o=n(4660);const i={FETCH_AUTHORIZATION_URL:({redirectUri:e})=>r.Ay.fetchAuthorizationUrl(e),REGISTER_SITE:({registrationNonce:e,redirectUri:t,from:n})=>r.Ay.registerSite(e,t,n),CONNECT_USER:(0,a.createRegistryControl)((({resolveSelect:e})=>({from:t,redirectFunc:n,redirectUri:r}={})=>new Promise(((a,i)=>{e(o.A).getAuthorizationUrl(r).then((e=>{const r=n||(e=>window.location.assign(e)),o=new URL(e);t&&o.searchParams.set("from",encodeURIComponent(t));const i=o.toString();r(i),a(i)})).catch((e=>{i(e)}))}))))}},5051:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(7143),a=n(3935);const o=(0,r.combineReducers)({connectionStatus:(e={},t)=>{switch(t.type){case a.v_:return{...e,...t.connectionStatus};case a.dz:return{...e,isUserConnected:!1}}return e},connectionStatusIsFetching:(e=!1,t)=>t.type===a.ZO?t.isFetching:e,siteIsRegistering:(e=!1,t)=>t.type===a.Ij?t.isRegistering:e,userIsConnecting:(e=!1,t)=>t.type===a.DO?t.isConnecting:e,registrationError:(e,t)=>{switch(t.type){case a.LW:return!1;case a.A1:return t.registrationError;default:return e}},authorizationUrl:(e,t)=>t.type===a.XY?t.authorizationUrl:e,userConnectionData:(e,t)=>(t.type,e),connectedPlugins:(e={},t)=>t.type===a.gH?t.connectedPlugins:e,connectionErrors:(e={},t)=>t.type===a.Kl?t.connectionErrors:e,isOfflineMode:(e=!1,t)=>t.type===a.MU?t.isConnecting:e})},8019:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7143),a=n(3935),o=n(4660);const i={...{getAuthorizationUrl:{isFulfilled:(e,...t)=>{const n=Boolean(e.authorizationUrl),a=(0,r.select)(o.A).hasFinishedResolution("getAuthorizationUrl",t);return n&&!a&&(0,r.dispatch)(o.A).finishResolution("getAuthorizationUrl",t),n},*fulfill(e){const t=yield a.Ay.fetchAuthorizationUrl(e);yield a.Ay.setAuthorizationUrl(t.authorizeUrl)}}}}},2676:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={...{getConnectionStatus:e=>e.connectionStatus||{},getConnectionStatusIsFetching:()=>!1,getSiteIsRegistering:e=>e.siteIsRegistering||!1,getUserIsConnecting:e=>e.userIsConnecting||!1,getRegistrationError:e=>e.registrationError||!1,getAuthorizationUrl:e=>e.authorizationUrl||!1,getUserConnectionData:e=>e.userConnectionData||!1,getConnectedPlugins:e=>e.connectedPlugins||[],getConnectionErrors:e=>e.connectionErrors||[],getIsOfflineMode:e=>e.isOfflineMode||!1,getWpcomUser:e=>e?.userConnectionData?.currentUser?.wpcomUser,getBlogId:e=>e?.userConnectionData?.currentUser?.blogId}}},8734:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(7143);class a{static store=null;static mayBeInit(e,t){null===a.store&&(a.store=(0,r.createReduxStore)(e,t),(0,r.register)(a.store))}}const o=a},4660:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r="jetpack-connection"},4293:(e,t,n)=>{"use strict";n.d(t,{a:()=>d.A});var r=n(7999),a=n(3935),o=n(113),i=n(5051),s=n(8019),c=n(2676),l=n(8734),d=n(4660);const u=window.JP_CONNECTION_INITIAL_STATE||(0,r.getScriptData)()?.connection;u||console.error("Jetpack Connection package: Initial state is missing. Check documentation to see how to use the Connection composer package to set up the initial state."),l.A.mayBeInit(d.A,{__experimentalUseThunks:!0,reducer:i.A,actions:a.Ay,selectors:c.A,resolvers:s.A,controls:o.A,initialState:u||{}})},4705:(e,t,n)=>{"use strict";n(8992),n(1135)},1135:(e,t,n)=>{"use strict";n.d(t,{$:()=>r});const r=[{name:"amazon",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M13.582 8.182c-1.648.185-3.802.308-5.344.984-1.781.769-3.03 2.337-3.03 4.644 0 2.953 1.86 4.429 4.253 4.429 2.02 0 3.125-.477 4.685-2.065.516.747.685 1.109 1.629 1.894a.59.59 0 0 0 .672-.066l.006.006c.567-.505 1.599-1.401 2.18-1.888.231-.188.19-.496.009-.754-.52-.718-1.072-1.303-1.072-2.634V8.305c0-1.876.133-3.599-1.249-4.891C15.23 2.369 13.422 2 12.04 2 9.336 2 6.318 3.01 5.686 6.351c-.068.355.191.542.423.594l2.754.298c.258-.013.445-.266.494-.523.236-1.151 1.2-1.706 2.284-1.706.584 0 1.249.215 1.595.738.398.584.346 1.384.346 2.061zm-.533 5.906c-.451.8-1.169 1.291-1.967 1.291-1.09 0-1.728-.83-1.728-2.061 0-2.42 2.171-2.86 4.227-2.86v.615c.001 1.108.027 2.031-.532 3.015m7.634 5.251C18.329 21.076 14.917 22 11.979 22c-4.118 0-7.826-1.522-10.632-4.057-.22-.199-.024-.471.241-.317 3.027 1.762 6.771 2.823 10.639 2.823 2.608 0 5.476-.541 8.115-1.66.397-.169.73.262.341.55m.653 1.704c-.194.163-.379.076-.293-.139.284-.71.92-2.298.619-2.684s-1.99-.183-2.749-.092c-.23.027-.266-.173-.059-.319 1.348-.946 3.555-.673 3.811-.356.26.32-.066 2.533-1.329 3.59"})))},{name:"behance",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M7.799 5.698c.589 0 1.12.051 1.606.156q.722.155 1.241.507.516.351.804.938c.188.387.281.871.281 1.443q0 .93-.421 1.551-.424.62-1.255 1.014 1.133.328 1.689 1.146.559.822.557 1.975 0 .935-.359 1.612a3.14 3.14 0 0 1-.973 1.114q-.613.432-1.399.637A6.1 6.1 0 0 1 7.963 18H2V5.698zm-.35 4.97q.721 0 1.192-.345.465-.344.463-1.119 0-.43-.152-.707a1.1 1.1 0 0 0-.416-.427 1.7 1.7 0 0 0-.596-.216 3.6 3.6 0 0 0-.697-.06H4.709v2.874zm.151 5.237q.401.001.759-.077c.243-.053.457-.137.637-.261.182-.12.332-.283.441-.491q.164-.31.163-.798-.002-.948-.533-1.357c-.356-.27-.83-.404-1.413-.404H4.709v3.388zm8.562-.041q.552.538 1.583.538.74 0 1.277-.374c.354-.248.571-.514.654-.79h2.155c-.347 1.072-.872 1.838-1.589 2.299-.708.463-1.572.693-2.58.693q-1.05 0-1.899-.337a4 4 0 0 1-1.439-.958 4.4 4.4 0 0 1-.904-1.484 5.4 5.4 0 0 1-.32-1.899q0-1 .329-1.863a4.4 4.4 0 0 1 .933-1.492q.607-.63 1.444-.994a4.6 4.6 0 0 1 1.857-.363q1.131-.001 1.98.44a3.94 3.94 0 0 1 1.389 1.181 4.8 4.8 0 0 1 .783 1.69q.24.947.171 1.983h-6.428c-.001.706.237 1.372.604 1.73m2.811-4.68c-.291-.321-.783-.496-1.384-.496q-.585 0-.973.2a2 2 0 0 0-.621.491 1.8 1.8 0 0 0-.328.628 2.7 2.7 0 0 0-.111.587h3.98c-.058-.625-.271-1.085-.563-1.41m-3.916-3.446h4.985V6.524h-4.985z"})))},{name:"blogger-alt",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M19.779 9.904h-.981l-.021.001a1.163 1.163 0 0 1-1.16-1.079l-.001-.013A5.813 5.813 0 0 0 11.803 3H8.871a5.813 5.813 0 0 0-5.813 5.813v6.375a5.813 5.813 0 0 0 5.813 5.813h6.257a5.814 5.814 0 0 0 5.813-5.813l.002-4.121a1.164 1.164 0 0 0-1.164-1.163M8.726 7.713h3.291a1.117 1.117 0 1 1 0 2.234H8.726a1.117 1.117 0 1 1 0-2.234m6.601 8.657H8.72a1.057 1.057 0 1 1 0-2.114h6.607a1.057 1.057 0 1 1 0 2.114"})))},{name:"blogger",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M14.722 14.019a.654.654 0 0 1-.654.654H9.977a.654.654 0 0 1 0-1.308h4.091c.361 0 .654.293.654.654m-4.741-3.321h2.038a.692.692 0 0 0 0-1.384H9.981a.692.692 0 0 0 0 1.384M21 5v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2m-3.456 6.39a.72.72 0 0 0-.72-.72h-.607l-.013.001a.72.72 0 0 1-.718-.668l-.001-.008a3.6 3.6 0 0 0-3.599-3.599H10.07a3.6 3.6 0 0 0-3.599 3.599v3.947a3.6 3.6 0 0 0 3.599 3.599h3.874a3.6 3.6 0 0 0 3.599-3.599z"})))},{name:"bluesky",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M21.2 3.3c-.5-.2-1.4-.5-3.6 1C15.4 6 12.9 9.2 12 11c-.9-1.8-3.4-5-5.7-6.7-2.2-1.6-3-1.3-3.6-1S2 4.6 2 5.1s.3 4.7.5 5.4c.7 2.3 3.1 3.1 5.3 2.8-3.3.5-6.2 1.7-2.4 5.9 4.2 4.3 5.7-.9 6.5-3.6.8 2.7 1.7 7.7 6.4 3.6 3.6-3.6 1-5.4-2.3-5.9 2.2.2 4.6-.5 5.3-2.8.4-.7.7-4.8.7-5.4 0-.5-.1-1.5-.8-1.8"})))},{name:"codepen",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"m22.016 8.84-.007-.037q-.006-.037-.015-.072-.007-.022-.013-.042l-.023-.062-.02-.042a.4.4 0 0 0-.03-.057l-.025-.038-.035-.052-.03-.037q-.021-.026-.043-.045-.015-.018-.035-.035a.4.4 0 0 0-.048-.04l-.037-.03-.015-.012-9.161-6.096a.86.86 0 0 0-.955 0L2.359 8.237l-.015.012-.038.028-.048.04a.638.638 0 0 0-.078.082q-.018.018-.03.037-.018.026-.035.052l-.025.038q-.016.031-.03.059l-.02.041a1 1 0 0 0-.034.106q-.01.034-.016.071-.003.02-.006.037a1 1 0 0 0-.009.114v6.093q0 .056.008.112l.007.038q.006.035.015.072a.2.2 0 0 0 .013.04q.01.032.022.063l.02.04a.4.4 0 0 0 .055.096l.035.052.03.037.042.045.035.035q.023.02.048.04l.038.03.013.01 9.163 6.095a.858.858 0 0 0 .959.004l9.163-6.095.015-.01q.02-.015.037-.03l.048-.04q.02-.017.035-.035.025-.024.043-.045l.03-.037.035-.052.025-.038a.4.4 0 0 0 .03-.058l.02-.04.023-.063c.003-.013.01-.027.013-.04q.009-.037.015-.072l.007-.037q.006-.062.007-.117V8.954a1 1 0 0 0-.008-.114m-9.154-4.376 6.751 4.49-3.016 2.013-3.735-2.492zm-1.724 0v4.009l-3.735 2.494-3.014-2.013zm-7.439 6.098L5.853 12l-2.155 1.438zm7.439 8.974-6.749-4.491 3.015-2.011 3.735 2.492zM12 14.035 8.953 12 12 9.966 15.047 12zm.862 5.501v-4.009l3.735-2.492 3.016 2.011zm7.441-6.098L18.147 12l2.156-1.438z"})))},{name:"deezer",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M20.129 3.662c.222-1.287.548-2.096.909-2.098h.001c.673.002 1.219 2.809 1.219 6.274s-.546 6.274-1.22 6.274c-.276 0-.531-.477-.736-1.276-.324 2.926-.997 4.937-1.776 4.937-.603 0-1.144-1.208-1.507-3.114-.248 3.624-.872 6.195-1.602 6.195-.458 0-.875-1.019-1.184-2.678C13.861 21.6 13.003 24 12.002 24s-1.861-2.399-2.231-5.824c-.307 1.659-.724 2.678-1.184 2.678-.73 0-1.352-2.571-1.602-6.195-.363 1.905-.903 3.114-1.507 3.114-.778 0-1.452-2.011-1.776-4.937-.204.802-.46 1.276-.736 1.276-.674 0-1.22-2.809-1.22-6.274s.546-6.274 1.22-6.274c.362 0 .685.812.91 2.098.357-2.22.94-3.662 1.6-3.662.784 0 1.463 2.04 1.784 5.002.314-2.156.791-3.53 1.325-3.53.749 0 1.385 2.703 1.621 6.474.443-1.933 1.085-3.146 1.795-3.146s1.352 1.214 1.795 3.146c.237-3.771.872-6.474 1.621-6.474.533 0 1.009 1.374 1.325 3.53.321-2.962 1-5.002 1.784-5.002.658 0 1.244 1.443 1.603 3.662M0 7.221c0-1.549.31-2.805.692-2.805s.692 1.256.692 2.805-.31 2.805-.692 2.805S0 8.77 0 7.221m22.616 0c0-1.549.31-2.805.692-2.805S24 5.672 24 7.221s-.31 2.805-.692 2.805-.692-1.256-.692-2.805"})))},{name:"discord",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M20.33 4.523A20 20 0 0 0 15.379 3a14 14 0 0 0-.634 1.289 18.4 18.4 0 0 0-5.495 0A14 14 0 0 0 8.615 3 20 20 0 0 0 3.66 4.527C.527 9.163-.323 13.684.102 18.141a20 20 0 0 0 6.073 3.049 14.7 14.7 0 0 0 1.301-2.097 13 13 0 0 1-2.048-.978q.258-.189.502-.378a14.27 14.27 0 0 0 12.142 0q.247.202.502.378a13 13 0 0 1-2.052.98 14.5 14.5 0 0 0 1.301 2.095 19.9 19.9 0 0 0 6.076-3.047c.498-5.168-.851-9.648-3.568-13.62M8.013 15.4c-1.183 0-2.161-1.074-2.161-2.395S6.796 10.6 8.01 10.6s2.183 1.083 2.163 2.405S9.22 15.4 8.013 15.4m7.974 0c-1.186 0-2.16-1.074-2.16-2.395s.944-2.405 2.16-2.405 2.178 1.083 2.157 2.405-.951 2.395-2.158 2.395"})))},{name:"dribbble",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10m8.434-8.631c-.292-.092-2.644-.794-5.32-.365 1.117 3.07 1.572 5.57 1.659 6.09a8.56 8.56 0 0 0 3.661-5.725m-5.098 6.507c-.127-.749-.623-3.361-1.822-6.477l-.056.019c-4.818 1.679-6.547 5.02-6.701 5.334A8.5 8.5 0 0 0 12 20.555a8.5 8.5 0 0 0 3.336-.679m-9.682-2.152c.193-.331 2.538-4.213 6.943-5.637q.167-.054.337-.102a29 29 0 0 0-.692-1.45c-4.266 1.277-8.405 1.223-8.778 1.216a8.497 8.497 0 0 0 2.19 5.973m-2.015-7.46c.382.005 3.901.02 7.897-1.041a55 55 0 0 0-3.167-4.94 8.57 8.57 0 0 0-4.73 5.981m6.359-6.555a46 46 0 0 1 3.187 5c3.037-1.138 4.323-2.867 4.477-3.085a8.51 8.51 0 0 0-7.664-1.915m8.614 2.903c-.18.243-1.612 2.078-4.77 3.367a27 27 0 0 1 .751 1.678c2.842-.357 5.666.215 5.948.275a8.5 8.5 0 0 0-1.929-5.32"})))},{name:"dropbox",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12 6.134 6.069 9.797 2 6.54l5.883-3.843zm-10 6.92 5.883 3.843L12 13.459 6.069 9.797zm10 .405 4.116 3.439L22 13.054l-4.069-3.257zM22 6.54l-5.884-3.843L12 6.134l5.931 3.663zm-9.989 7.66-4.129 3.426-1.767-1.153v1.291l5.896 3.539 5.897-3.539v-1.291l-1.769 1.153z"})))},{name:"eventbrite",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M18.041 3.931 5.959 3A2.96 2.96 0 0 0 3 5.959v12.083A2.96 2.96 0 0 0 5.959 21l12.083-.931C19.699 19.983 21 18.744 21 17.11V6.89c0-1.634-1.259-2.863-2.959-2.959M16.933 8.17c-.082.215-.192.432-.378.551-.188.122-.489.132-.799.132-1.521 0-3.062-.048-4.607-.048q-.23 1.061-.451 2.128c.932-.004 1.873.005 2.81.005.726 0 1.462-.069 1.586.525.04.189-.001.426-.052.615-.105.38-.258.676-.625.783-.185.054-.408.058-.646.058-1.145 0-2.345.017-3.493.02-.169.772-.328 1.553-.489 2.333 1.57-.005 3.067-.041 4.633-.058.627-.007 1.085.194 1.009.85a2.2 2.2 0 0 1-.211.725c-.102.208-.248.376-.488.452-.237.075-.541.064-.862.078-.304.014-.614.008-.924.016-.309.009-.619.022-.919.022-1.253 0-2.429.08-3.683.073-.603-.004-1.014-.249-1.124-.757-.059-.273-.018-.58.036-.841a3543 3543 0 0 1 1.629-7.763c.056-.265.114-.511.225-.714a1.24 1.24 0 0 1 .79-.62c.368-.099.883-.047 1.344-.047.305 0 .612.008.914.016.925.026 1.817.03 2.747.053.304.007.615.016.915.016.621 0 1.17.073 1.245.614.039.288-.051.567-.132.783"})))},{name:"facebook",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12c0 5 3.7 9.1 8.4 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.3c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.3v7C18.3 21.1 22 17 22 12c0-5.5-4.5-10-10-10"})))},{name:"fediverse",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 743 743"},React.createElement("g",null,React.createElement("path",{d:"M181.131 275.137a68.9 68.9 0 0 1-29.465 29.328l161.758 162.389 38.998-19.764zm213.363 214.187-38.998 19.764 81.963 82.283a68.9 68.9 0 0 1 29.471-29.332zM581.646 339.391l-91.576 46.41 6.752 43.189 103.616-52.513a68.9 68.9 0 0 1-18.792-37.086m-144.738 73.351L220.383 522.477a68.9 68.9 0 0 1 18.795 37.089L443.66 455.934zM367.275 142.438l-104.48 203.97 30.848 30.967 110.623-215.957a68.9 68.9 0 0 1-36.991-18.98M235.621 399.459l-52.922 103.314a68.9 68.9 0 0 1 36.987 18.979l46.781-91.328zM150.768 304.918a68.9 68.9 0 0 1-34.416 7.195 69 69 0 0 1-6.651-.695l30.903 197.662a68.9 68.9 0 0 1 34.416-7.195 69 69 0 0 1 6.646.695zM239.342 560.545c.707 4.589.949 9.239.72 13.877a68.9 68.9 0 0 1-7.267 27.18l197.629 31.712c-.708-4.59-.95-9.24-.723-13.878a68.9 68.9 0 0 1 7.27-27.178zM601.133 377.199l-91.219 178.082a68.9 68.9 0 0 1 36.994 18.983l91.217-178.08a68.9 68.9 0 0 1-36.992-18.985M476.723 125.33a68.9 68.9 0 0 1-29.471 29.332l141.266 141.811a68.9 68.9 0 0 1 29.468-29.332zM347.787 104.631l-178.576 90.498a68.9 68.9 0 0 1 18.793 37.086l178.574-90.502a68.9 68.9 0 0 1-18.791-37.082M446.926 154.826a68.9 68.9 0 0 1-34.983 7.483 69 69 0 0 1-6.029-.633l15.818 101.291 43.163 6.926zm-16 167.028 37.4 239.482a68.9 68.9 0 0 1 33.914-6.943q3.625.206 7.207.791L474.09 328.777zM188.131 232.975c.734 4.66.988 9.383.758 14.095a68.9 68.9 0 0 1-7.16 26.983l101.369 16.281 19.923-38.908zm173.736 27.9-19.926 38.912 239.514 38.467a69 69 0 0 1-.695-13.719 68.9 68.9 0 0 1 7.349-27.324z"}),React.createElement("path",{fillOpacity:".996",d:"M412.284 156.054c34.538 1.882 64.061-24.592 65.943-59.13s-24.592-64.062-59.131-65.943c-34.538-1.882-64.061 24.592-65.943 59.13s24.593 64.062 59.131 65.943M646.144 390.82c34.538 1.881 64.062-24.593 65.943-59.131s-24.592-64.061-59.13-65.943-64.062 24.593-65.943 59.131 24.592 64.061 59.13 65.943M495.086 685.719c34.538 1.881 64.062-24.592 65.943-59.13s-24.592-64.062-59.13-65.943-64.062 24.592-65.943 59.13 24.592 64.062 59.13 65.943M167.866 633.211c34.538 1.882 64.062-24.592 65.943-59.13s-24.592-64.062-59.13-65.943-64.062 24.592-65.943 59.13 24.592 64.062 59.13 65.943M116.692 305.86c34.538 1.882 64.062-24.592 65.943-59.13s-24.592-64.062-59.131-65.943c-34.538-1.881-64.061 24.592-65.943 59.13s24.593 64.062 59.131 65.943"})))},{name:"feed",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M2 8.667V12c5.515 0 10 4.485 10 10h3.333c0-7.363-5.97-13.333-13.333-13.333M2 2v3.333c9.19 0 16.667 7.477 16.667 16.667H22C22 10.955 13.045 2 2 2m2.5 15a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5"})))},{name:"flickr",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5m11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5"})))},{name:"foursquare",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M17.573 2H6.905C5.434 2 5 3.107 5 3.805v16.948c0 .785.422 1.077.66 1.172.238.097.892.177 1.285-.275 0 0 5.035-5.843 5.122-5.93.132-.132.132-.132.262-.132h3.26c1.368 0 1.588-.977 1.732-1.552.078-.318.692-3.428 1.225-6.122l.675-3.368C19.56 2.893 19.14 2 17.573 2m-1.078 5.22c-.053.252-.372.518-.665.518h-4.157c-.467 0-.802.318-.802.787v.508c0 .467.337.798.805.798h3.528c.331 0 .655.362.583.715s-.407 2.102-.448 2.295c-.04.193-.262.523-.655.523h-2.88c-.523 0-.683.068-1.033.503-.35.437-3.505 4.223-3.505 4.223-.032.035-.063.027-.063-.015V4.852c0-.298.26-.648.648-.648h8.562c.315 0 .61.297.528.683z"})))},{name:"ghost",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M10.203 20.997H3.005v-3.599h7.198zm10.792-3.599h-7.193v3.599h7.193zm.003-7.198H3v3.599h17.998zm-7.195-7.197H3.005v3.599h10.798zm7.197 0h-3.599v3.599H21z"})))},{name:"git",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M23.519 10.947 13.053.482a1.543 1.543 0 0 0-2.183 0L8.696 2.656l2.756 2.756a1.83 1.83 0 0 1 1.886.439 1.84 1.84 0 0 1 .436 1.898l2.656 2.657a1.83 1.83 0 0 1 1.899.436 1.837 1.837 0 0 1 0 2.597 1.84 1.84 0 0 1-2.599 0 1.84 1.84 0 0 1-.4-1.998l-2.478-2.477v6.521a1.837 1.837 0 0 1 .485 2.945 1.837 1.837 0 0 1-2.597 0 1.837 1.837 0 0 1 0-2.598 1.8 1.8 0 0 1 .602-.401V8.85a1.8 1.8 0 0 1-.602-.4 1.84 1.84 0 0 1-.395-2.009L7.628 3.723.452 10.898a1.544 1.544 0 0 0 0 2.184l10.467 10.467a1.544 1.544 0 0 0 2.183 0l10.417-10.418a1.546 1.546 0 0 0 0-2.184"})))},{name:"github",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12c0 4.419 2.865 8.166 6.839 9.489.5.09.682-.218.682-.484 0-.236-.009-.866-.014-1.699-2.782.602-3.369-1.34-3.369-1.34-.455-1.157-1.11-1.465-1.11-1.465-.909-.62.069-.608.069-.608 1.004.071 1.532 1.03 1.532 1.03.891 1.529 2.341 1.089 2.91.833.091-.647.349-1.086.635-1.337-2.22-.251-4.555-1.111-4.555-4.943 0-1.091.39-1.984 1.03-2.682-.103-.254-.447-1.27.097-2.646 0 0 .84-.269 2.75 1.025A9.6 9.6 0 0 1 12 6.836c.85.004 1.705.114 2.504.336 1.909-1.294 2.748-1.025 2.748-1.025.546 1.376.202 2.394.1 2.646.64.699 1.026 1.591 1.026 2.682 0 3.841-2.337 4.687-4.565 4.935.359.307.679.917.679 1.852 0 1.335-.012 2.415-.012 2.741 0 .269.18.579.688.481A10 10 0 0 0 22 12c0-5.523-4.477-10-10-10"})))},{name:"google-alt",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m-.05 16c-3.312 0-6-2.688-6-6s2.688-6 6-6c1.62 0 2.976.594 4.014 1.566L14.26 9.222c-.432-.408-1.188-.888-2.31-.888-1.986 0-3.606 1.65-3.606 3.672s1.62 3.672 3.606 3.672c2.298 0 3.144-1.59 3.3-2.532h-3.306v-2.238h5.616c.084.378.15.732.15 1.23 0 3.426-2.298 5.862-5.76 5.862"})))},{name:"google-plus-alt",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M8 11h6.61c.06.35.11.7.11 1.16 0 4-2.68 6.84-6.72 6.84-3.87 0-7-3.13-7-7s3.13-7 7-7c1.89 0 3.47.69 4.69 1.83l-1.9 1.83c-.52-.5-1.43-1.08-2.79-1.08-2.39 0-4.34 1.98-4.34 4.42S5.61 16.42 8 16.42c2.77 0 3.81-1.99 3.97-3.02H8zm15 0h-2V9h-2v2h-2v2h2v2h2v-2h2"})))},{name:"google-plus",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m-1.919 14.05a4.051 4.051 0 0 1 0-8.1c1.094 0 2.009.401 2.709 1.057l-1.15 1.118a2.23 2.23 0 0 0-1.559-.599c-1.341 0-2.434 1.114-2.434 2.479s1.094 2.479 2.434 2.479c1.551 0 2.122-1.073 2.227-1.709h-2.232v-1.511h3.791c.057.255.101.494.101.83.001 2.312-1.55 3.956-3.887 3.956M19 12.75h-1.25V14h-1.5v-1.25H15v-1.5h1.25V10h1.5v1.25H19z"})))},{name:"google",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12.02 10.18v3.73h5.51c-.26 1.57-1.67 4.22-5.5 4.22-3.31 0-6.01-2.75-6.01-6.12s2.7-6.12 6.01-6.12c1.87 0 3.13.8 3.85 1.48l2.84-2.76C16.99 2.99 14.73 2 12.03 2c-5.52 0-10 4.48-10 10s4.48 10 10 10c5.77 0 9.6-4.06 9.6-9.77 0-.83-.11-1.42-.25-2.05z"})))},{name:"instagram",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12 4.622c2.403 0 2.688.009 3.637.052.877.04 1.354.187 1.671.31.42.163.72.358 1.035.673s.51.615.673 1.035c.123.317.27.794.31 1.671.043.949.052 1.234.052 3.637s-.009 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.671-.163.42-.358.72-.673 1.035s-.615.51-1.035.673c-.317.123-.794.27-1.671.31-.949.043-1.233.052-3.637.052s-2.688-.009-3.637-.052c-.877-.04-1.354-.187-1.671-.31a2.8 2.8 0 0 1-1.035-.673 2.8 2.8 0 0 1-.673-1.035c-.123-.317-.27-.794-.31-1.671-.043-.949-.052-1.234-.052-3.637s.009-2.688.052-3.637c.04-.877.187-1.354.31-1.671.163-.42.358-.72.673-1.035s.615-.51 1.035-.673c.317-.123.794-.27 1.671-.31.949-.043 1.234-.052 3.637-.052M12 3c-2.444 0-2.751.01-3.711.054-.958.044-1.612.196-2.184.418a4.4 4.4 0 0 0-1.594 1.039c-.5.5-.808 1.002-1.038 1.594-.223.572-.375 1.226-.419 2.184C3.01 9.249 3 9.556 3 12s.01 2.751.054 3.711c.044.958.196 1.612.418 2.185.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.267.054 3.711.054s2.751-.01 3.711-.054c.958-.044 1.612-.196 2.185-.418a4.4 4.4 0 0 0 1.594-1.038c.5-.5.808-1.002 1.038-1.594.222-.572.375-1.227.418-2.185.044-.96.054-1.267.054-3.711s-.01-2.751-.054-3.711c-.044-.958-.196-1.612-.418-2.185A4.4 4.4 0 0 0 19.49 4.51c-.5-.5-1.002-.808-1.594-1.038-.572-.222-1.227-.375-2.185-.418C14.751 3.01 14.444 3 12 3m0 4.378a4.622 4.622 0 1 0 0 9.244 4.622 4.622 0 0 0 0-9.244M12 15a3 3 0 1 1 0-6 3 3 0 0 1 0 6m4.804-8.884a1.08 1.08 0 1 0 .001 2.161 1.08 1.08 0 0 0-.001-2.161"})))},{name:"json-feed",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"m8.522 17.424.027.027c1.076-1.076 1.854-.993 3.154.306l2.053 2.053c2.136 2.136 4.131 2.028 6.515-.356l.729-.728-1.548-1.548-.373.373c-1.349 1.349-2.293 1.366-3.585.075l-2.409-2.409c-1.242-1.242-2.475-1.366-3.659-.381l-.232-.232c1.01-1.225.911-2.368-.29-3.568l-2.16-2.162c-1.317-1.317-1.308-2.236.058-3.602l.372-.372-1.54-1.54-.728.729c-2.393 2.393-2.525 4.346-.439 6.433l1.78 1.78c1.3 1.3 1.383 2.095.315 3.163l.008.008a1.384 1.384 0 0 0 1.952 1.951"}),React.createElement("circle",{cx:"13.089",cy:"10.905",r:"1.383"}),React.createElement("circle",{cx:"16.349",cy:"7.644",r:"1.383"}),React.createElement("circle",{cx:"19.61",cy:"4.383",r:"1.383"})))},{name:"line",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M14.255 9.572v3.333c0 .084-.066.15-.15.15h-.534a.16.16 0 0 1-.122-.061l-1.528-2.063v1.978c0 .084-.066.15-.15.15h-.534a.15.15 0 0 1-.15-.15V9.576c0-.084.066-.15.15-.15h.529a.14.14 0 0 1 .122.066l1.528 2.063V9.577c0-.084.066-.15.15-.15h.534a.15.15 0 0 1 .155.145m-3.844-.15h-.534a.15.15 0 0 0-.15.15v3.333c0 .084.066.15.15.15h.534c.084 0 .15-.066.15-.15V9.572c0-.08-.066-.15-.15-.15m-1.289 2.794H7.664V9.572a.15.15 0 0 0-.15-.15H6.98a.15.15 0 0 0-.15.15v3.333q0 .062.042.103a.16.16 0 0 0 .103.042h2.142c.084 0 .15-.066.15-.15v-.534a.15.15 0 0 0-.145-.15m7.945-2.794h-2.142c-.08 0-.15.066-.15.15v3.333c0 .08.066.15.15.15h2.142c.084 0 .15-.066.15-.15v-.534a.15.15 0 0 0-.15-.15h-1.458v-.563h1.458c.084 0 .15-.066.15-.15v-.539a.15.15 0 0 0-.15-.15h-1.458v-.563h1.458c.084 0 .15-.066.15-.15v-.534c-.005-.08-.07-.15-.15-.15M22.5 5.33v13.373c-.005 2.1-1.725 3.802-3.83 3.797H5.297c-2.1-.005-3.802-1.73-3.797-3.83V5.297c.005-2.1 1.73-3.802 3.83-3.797h13.373c2.1.005 3.802 1.725 3.797 3.83m-2.888 5.747c0-3.422-3.431-6.206-7.645-6.206s-7.645 2.784-7.645 6.206c0 3.066 2.719 5.634 6.394 6.122.895.192.792.52.591 1.725-.033.192-.155.755.661.413s4.402-2.592 6.009-4.439c1.106-1.219 1.636-2.452 1.636-3.82"})))},{name:"link",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M17 13H7v-2h10zm1-6h-1c-1.631 0-3.065.792-3.977 2H18c1.103 0 2 .897 2 2v2c0 1.103-.897 2-2 2h-4.977c.913 1.208 2.347 2 3.977 2h1a4 4 0 0 0 4-4v-2a4 4 0 0 0-4-4M2 11v2a4 4 0 0 0 4 4h1c1.63 0 3.065-.792 3.977-2H6c-1.103 0-2-.897-2-2v-2c0-1.103.897-2 2-2h4.977C10.065 7.792 8.631 7 7 7H6a4 4 0 0 0-4 4"})))},{name:"linkedin",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M19.7 3H4.3A1.3 1.3 0 0 0 3 4.3v15.4A1.3 1.3 0 0 0 4.3 21h15.4a1.3 1.3 0 0 0 1.3-1.3V4.3A1.3 1.3 0 0 0 19.7 3M8.339 18.338H5.667v-8.59h2.672zM7.004 8.574a1.548 1.548 0 1 1-.002-3.096 1.548 1.548 0 0 1 .002 3.096m11.335 9.764H15.67v-4.177c0-.996-.017-2.278-1.387-2.278-1.389 0-1.601 1.086-1.601 2.206v4.249h-2.667v-8.59h2.559v1.174h.037c.356-.675 1.227-1.387 2.526-1.387 2.703 0 3.203 1.779 3.203 4.092v4.711z"})))},{name:"mail",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2m0 4.236-8 4.882-8-4.882V6h16z"})))},{name:"mastodon",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M11.973 2.352c-2.468.02-4.842.286-6.225.921 0 0-2.742 1.229-2.742 5.415 0 .958-.018 2.105.012 3.32.1 4.094.75 8.128 4.535 9.129 1.745.462 3.244.56 4.45.494 2.19-.122 3.417-.781 3.417-.781l-.072-1.588s-1.565.491-3.32.431c-1.74-.06-3.576-.188-3.858-2.324a4 4 0 0 1-.04-.598s1.709.416 3.874.516c1.324.06 2.563-.076 3.824-.226 2.418-.29 4.524-1.78 4.79-3.141.416-2.144.38-5.232.38-5.232 0-4.186-2.74-5.415-2.74-5.415-1.383-.635-3.76-.9-6.227-.921zM9.18 5.622c1.028 0 1.804.395 2.318 1.185l.502.84.5-.84c.514-.79 1.292-1.186 2.32-1.186.888 0 1.605.313 2.15.922q.795.915.794 2.469v5.068h-2.008V9.16c0-1.037-.438-1.562-1.31-1.562-.966 0-1.448.622-1.448 1.857v2.693h-1.996V9.455c0-1.235-.484-1.857-1.45-1.857-.872 0-1.308.525-1.308 1.562v4.92H6.236V9.012q-.001-1.554.793-2.469c.547-.609 1.263-.922 2.15-.922"})))},{name:"medium-alt",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{fillRule:"nonzero",d:"M7.423 6c3.27 0 5.922 2.686 5.922 6s-2.651 6-5.922 6S1.5 15.313 1.5 12s2.652-6 5.923-6m9.458.351c1.635 0 2.961 2.53 2.961 5.65 0 3.118-1.325 5.648-2.96 5.648S13.92 15.119 13.92 12s1.325-5.649 2.96-5.649m4.577.589c.576 0 1.042 2.265 1.042 5.06s-.466 5.06-1.042 5.06c-.575 0-1.04-2.265-1.04-5.06s.465-5.06 1.04-5.06"})))},{name:"medium",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M3 3v18h18V3zm15 4.26-1 .93a.28.28 0 0 0-.11.27v6.8a.27.27 0 0 0 .11.27l.94.93v.2h-4.75v-.2l1-1c.09-.1.09-.12.09-.27V9.74l-2.71 6.9h-.37L8 9.74v4.62a.67.67 0 0 0 .17.54l1.27 1.54v.2H5.86v-.2l1.27-1.54a.64.64 0 0 0 .17-.54V9a.5.5 0 0 0-.16-.4L6 7.26v-.2h3.52L12.23 13l2.38-5.94H18z"})))},{name:"messenger",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12.026.375C5.462.375.375 5.172.375 11.652c0 3.389 1.393 6.318 3.66 8.341.391.352.311.556.377 2.73a.934.934 0 0 0 1.307.823c2.48-1.092 2.512-1.178 2.933-1.064 7.185 1.977 14.973-2.621 14.973-10.83 0-6.48-5.035-11.277-11.599-11.277m6.996 8.678L15.6 14.47a1.75 1.75 0 0 1-2.527.465l-2.723-2.038a.7.7 0 0 0-.844 0l-3.674 2.786c-.49.372-1.133-.216-.802-.735l3.422-5.417a1.75 1.75 0 0 1 2.527-.465l2.722 2.037a.7.7 0 0 0 .844 0L18.22 8.32c.489-.374 1.132.213.801.732"})))},{name:"microblog",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M19.641 17.086c1.294-1.522 2.067-3.438 2.067-5.521 0-4.957-4.371-8.972-9.763-8.972s-9.763 4.015-9.763 8.972 4.371 8.972 9.763 8.972a10.5 10.5 0 0 0 3.486-.59.315.315 0 0 1 .356.112c.816 1.101 2.09 1.876 3.506 2.191a.194.194 0 0 0 .192-.309 3.82 3.82 0 0 1 .162-4.858zm-3.065-6.575-2.514 1.909.912 3.022a.286.286 0 0 1-.437.317l-2.592-1.802-2.592 1.802a.285.285 0 0 1-.436-.317l.912-3.022-2.515-1.909a.285.285 0 0 1 .167-.513l3.155-.066 1.038-2.981a.285.285 0 0 1 .539 0l1.038 2.981 3.155.066a.285.285 0 0 1 .17.513"})))},{name:"nextdoor",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",strokeMiterlimit:"10",viewBox:"0 0 130 130"},React.createElement("g",null,React.createElement("path",{d:"M64.25 3.531c-31.144.337-57.596 24.22-60.469 55.907-3.064 33.799 21.857 63.685 55.657 66.75s63.685-21.857 66.75-55.657-21.857-63.686-55.657-66.75a62 62 0 0 0-6.281-.25m3.938 34.907C82.468 38.438 93.5 48.58 93.5 61.5v27c0 .685-.565 1.25-1.25 1.25H80.906a1.267 1.267 0 0 1-1.25-1.25V63.375c0-5.58-4.309-11.937-11.469-11.937-7.47 0-11.468 6.357-11.468 11.937V88.5c0 .685-.565 1.25-1.25 1.25H44.125c-.68 0-1.219-.57-1.219-1.25V64.156c0-.74-.529-1.364-1.25-1.531-13.13-2.93-15.115-10.285-15.375-21.125-.005-.332.142-.67.375-.906.233-.237.543-.375.875-.375l11.688.062c.66.01 1.187.529 1.218 1.188.13 4.44.438 9.406 4.438 9.406.83 0 1.443-1.179 1.813-1.719 4.41-6.48 12.28-10.718 21.5-10.718"})))},{name:"patreon",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M20 7.408c-.003-2.299-1.746-4.182-3.79-4.862-2.54-.844-5.888-.722-8.312.453-2.939 1.425-3.862 4.545-3.896 7.656-.028 2.559.22 9.297 3.92 9.345 2.75.036 3.159-3.603 4.43-5.356.906-1.247 2.071-1.599 3.506-1.963 2.465-.627 4.146-2.626 4.142-5.273"})))},{name:"pinterest-alt",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12.289 2C6.617 2 3.606 5.648 3.606 9.622c0 1.846 1.025 4.146 2.666 4.878.25.111.381.063.439-.169.044-.175.267-1.029.365-1.428a.37.37 0 0 0-.091-.362c-.54-.63-.975-1.791-.975-2.873 0-2.777 2.194-5.464 5.933-5.464 3.23 0 5.49 2.108 5.49 5.122 0 3.407-1.794 5.768-4.13 5.768-1.291 0-2.257-1.021-1.948-2.277.372-1.495 1.089-3.112 1.089-4.191 0-.967-.542-1.775-1.663-1.775-1.319 0-2.379 1.309-2.379 3.059 0 1.115.394 1.869.394 1.869s-1.302 5.279-1.54 6.261c-.405 1.666.053 4.368.094 4.604.021.126.167.169.25.063.129-.165 1.699-2.419 2.142-4.051.158-.59.817-2.995.817-2.995.43.784 1.681 1.446 3.013 1.446 3.963 0 6.822-3.494 6.822-7.833C20.394 5.112 16.849 2 12.289 2"})))},{name:"pinterest",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12c0 4.236 2.636 7.855 6.356 9.312-.087-.791-.166-2.005.035-2.869.182-.78 1.173-4.971 1.173-4.971s-.299-.599-.299-1.484c0-1.39.806-2.429 1.809-2.429.853 0 1.265.641 1.265 1.409 0 .858-.546 2.141-.828 3.329-.236.996.499 1.807 1.481 1.807 1.777 0 3.144-1.874 3.144-4.579 0-2.394-1.72-4.068-4.177-4.068-2.845 0-4.515 2.134-4.515 4.34 0 .859.331 1.781.744 2.282a.3.3 0 0 1 .069.287c-.077.316-.246.995-.279 1.134-.044.183-.145.222-.334.134-1.249-.581-2.03-2.407-2.03-3.874 0-3.154 2.292-6.051 6.607-6.051 3.469 0 6.165 2.472 6.165 5.775 0 3.446-2.173 6.22-5.189 6.22-1.013 0-1.966-.526-2.292-1.148l-.623 2.377c-.226.869-.835 1.957-1.243 2.622.936.289 1.93.445 2.961.445 5.523 0 10-4.477 10-10S17.523 2 12 2"})))},{name:"pocket",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M21.927 4.194A1.82 1.82 0 0 0 20.222 3H3.839a1.823 1.823 0 0 0-1.813 1.814v6.035l.069 1.2c.29 2.73 1.707 5.115 3.899 6.778l.119.089.025.018a9.9 9.9 0 0 0 3.91 1.727 10.06 10.06 0 0 0 4.049-.014.3.3 0 0 0 .064-.023 9.9 9.9 0 0 0 3.753-1.691l.025-.018q.06-.043.119-.089c2.192-1.664 3.609-4.049 3.898-6.778l.069-1.2V4.814a1.8 1.8 0 0 0-.098-.62m-4.235 6.287-4.704 4.512a1.37 1.37 0 0 1-1.898 0l-4.705-4.512a1.371 1.371 0 1 1 1.898-1.979l3.756 3.601 3.755-3.601a1.372 1.372 0 0 1 1.898 1.979"})))},{name:"polldaddy",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12 2C6.487 2 2 6.487 2 12c0 5.514 4.487 10 10 10 5.514 0 10-4.486 10-10 0-5.513-4.486-10-10-10m.991 1.68c2.361.084 4.657 1.251 6.197 3.136.283.334.541.693.774 1.067a7.78 7.78 0 0 0-6.094-2.94 7.76 7.76 0 0 0-5.896 2.703q-.008.006-.016.014l-.152.159-.031.032a6.12 6.12 0 0 0-1.633 4.165 6.15 6.15 0 0 0 6.143 6.143c.57 0 1.123-.081 1.649-.227-1.849.839-4.131.747-5.926-.324-1.841-1.089-3.171-3.111-3.433-5.313A7.39 7.39 0 0 1 6.69 6.137C8.294 4.5 10.634 3.563 12.991 3.68m3.373 8.519c-.049-2.024-1.587-3.889-3.544-4.174-1.927-.343-3.917.857-4.451 2.661a3.67 3.67 0 0 0 .2 2.653c.39.8 1.067 1.451 1.894 1.759 1.664.654 3.63-.27 4.173-1.863.593-1.58-.396-3.423-1.94-3.776-1.52-.407-3.161.757-3.204 2.243a2.36 2.36 0 0 0 .753 1.879c.501.476 1.23.667 1.871.529a2.07 2.07 0 0 0 1.469-1.134 1.91 1.91 0 0 0-.087-1.767c-.297-.513-.859-.863-1.429-.881a1.7 1.7 0 0 0-1.437.679 1.53 1.53 0 0 0-.18 1.489q.006.016.016.03c.193.634.774 1.1 1.467 1.117a1.6 1.6 0 0 1-.97-.183c-.466-.244-.809-.747-.893-1.29a1.8 1.8 0 0 1 .499-1.539 2.02 2.02 0 0 1 1.58-.606c.593.04 1.159.35 1.517.859.364.496.51 1.156.383 1.773-.116.62-.529 1.174-1.093 1.514a2.52 2.52 0 0 1-1.914.286c-.65-.161-1.226-.606-1.584-1.206a2.83 2.83 0 0 1-.341-2.031c.143-.7.573-1.321 1.176-1.753 1.193-.883 3.056-.751 4.106.411 1.106 1.1 1.327 3.027.406 4.371-.877 1.376-2.74 2.086-4.374 1.594-1.639-.449-2.913-2.079-3.031-3.853-.07-.884.13-1.797.583-2.577.445-.777 1.155-1.432 1.972-1.862 1.64-.88 3.816-.743 5.349.424 1.251.924 2.083 2.42 2.236 4.009l.001.03c0 2.9-2.359 5.26-5.26 5.26a5.2 5.2 0 0 1-1.947-.376 5 5 0 0 0 2.613-.079 4.96 4.96 0 0 0 2.514-1.751c.618-.828.95-1.861.901-2.869M12 21.113c-5.024 0-9.111-4.087-9.111-9.113 0-4.789 3.713-8.723 8.411-9.081a7 7 0 0 0-.397.06c-2.644.453-5.017 2.106-6.32 4.409-1.309 2.301-1.391 5.19-.3 7.527 1.056 2.34 3.253 4.156 5.776 4.553 2.497.44 5.133-.483 6.787-2.301 1.719-1.797 2.269-4.529 1.486-6.796-.583-1.81-1.976-3.331-3.7-4.046 3.417.594 6.174 3.221 6.174 6.781 0 1.004-.241 2.02-.657 2.966-1.498 2.984-4.586 5.041-8.149 5.041"})))},{name:"print",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M9 16h6v2H9zm13 1h-3v3a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3H2V9a2 2 0 0 1 2-2h1V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v2h1a2 2 0 0 1 2 2zM7 7h10V5H7zm10 7H7v6h10zm3-3.5a1.5 1.5 0 1 0-3.001.001A1.5 1.5 0 0 0 20 10.5"})))},{name:"quora",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M47.736 16.521c-.41-.81-.898-1.631-1.846-1.631a1 1 0 0 0-.527.107l-.322-.644a2.93 2.93 0 0 1 1.836-.595c1.26 0 1.914.605 2.431 1.397a6.8 6.8 0 0 0 .449-2.675c0-2.773-.869-4.199-2.929-4.199-1.992 0-2.851 1.465-2.851 4.199s.859 4.17 2.851 4.17a4 4 0 0 0 .869-.107zm.498.966a6 6 0 0 1-1.367.185 5.27 5.27 0 0 1-5.263-5.204c0-3.114 2.558-5.233 5.263-5.233s5.282 2.109 5.282 5.233a5.08 5.08 0 0 1-1.992 4.072c.381.566.781.956 1.319.956.595 0 .839-.459.878-.82h.781c.049.488-.195 2.48-2.373 2.48-1.319 0-2.012-.761-2.529-1.66zm5.624-2.646v-3.563c0-.371-.146-.586-.615-.586h-.498v-.956h3.251v5.048c0 .849.459 1.231 1.161 1.231a1.56 1.56 0 0 0 1.465-.839V11.28c0-.371-.146-.586-.615-.586h-.527v-.957h3.28v5.302c0 .527.195.732.8.732h.107v.976l-2.929.468V16.21h-.057a3.12 3.12 0 0 1-2.509 1.152c-1.28 0-2.304-.644-2.304-2.558zm12.059 1.611c1.152 0 1.592-1.005 1.611-3.027.02-1.982-.459-2.929-1.611-2.929-1.005 0-1.641.956-1.641 2.929 0 2.021.625 3.027 1.641 3.027m0 .956a3.906 3.906 0 0 1-3.974-3.974c0-2.334 1.836-3.886 3.974-3.886 2.226 0 4.004 1.582 4.004 3.886a3.867 3.867 0 0 1-4.004 3.974m4.072-.146v-.956h.312c.781 0 .859-.224.859-.908v-4.121c0-.371-.215-.586-.732-.586h-.42v-.955h2.968l.146 1.553h.108c.371-1.113 1.221-1.699 2.051-1.699.693 0 1.221.39 1.221 1.181 0 .547-.264 1.093-1.005 1.093-.664 0-.8-.449-1.358-.449-.488 0-.869.468-.869 1.152v2.783c0 .673.166.908.937.908h.439v.956h-4.658zm9.901-1.093c.956 0 1.338-.898 1.338-1.797v-1.211c-.732.722-2.304.742-2.304 2.021 0 .625.371.986.966.986m1.387 0c-.39.752-1.191 1.26-2.314 1.26-1.309 0-2.148-.732-2.148-1.914 0-2.451 3.417-1.797 4.423-3.427v-.185c0-1.25-.488-1.445-1.035-1.445-1.524 0-.83 1.631-2.226 1.631-.673 0-.937-.371-.937-.859 0-.927 1.093-1.67 3.173-1.67 1.963 0 3.163.537 3.163 2.49v3.114q-.02.742.595.742a1 1 0 0 0 .449-.127l.254.615c-.205.312-.752.869-1.836.869-.908 0-1.465-.42-1.543-1.113h-.01zm-68.554 2.558c-.83-1.641-1.807-3.3-3.711-3.3a2.9 2.9 0 0 0-1.093.215l-.644-1.299a5.66 5.66 0 0 1 3.662-1.211c2.548 0 3.857 1.231 4.892 2.792q.917-2.012.908-5.38c0-5.585-1.748-8.417-5.829-8.417-4.033 0-5.76 2.87-5.76 8.417s1.738 8.397 5.76 8.397a5.9 5.9 0 0 0 1.748-.224zm.996 1.953a9.8 9.8 0 0 1-2.744.371C5.614 21.041.371 16.764.371 10.545.371 4.277 5.614 0 10.965 0c5.448 0 10.642 4.248 10.642 10.545a10.25 10.25 0 0 1-4.013 8.201c.732 1.152 1.563 1.914 2.665 1.914 1.201 0 1.689-.927 1.768-1.66h1.572c.088.966-.4 4.999-4.775 4.999-2.646 0-4.052-1.543-5.106-3.339z"})))},{name:"reddit",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M22 11.816a2.28 2.28 0 0 0-2.277-2.277c-.593 0-1.122.24-1.526.614-1.481-.965-3.455-1.594-5.647-1.69l1.171-3.702 3.18.748a1.88 1.88 0 0 0 1.876 1.862 1.88 1.88 0 0 0 1.877-1.878 1.88 1.88 0 0 0-1.877-1.877c-.769 0-1.431.466-1.72 1.13l-3.508-.826a.386.386 0 0 0-.46.261l-1.35 4.268c-2.316.038-4.411.67-5.97 1.671a2.24 2.24 0 0 0-1.492-.581A2.28 2.28 0 0 0 2 11.816c0 .814.433 1.523 1.078 1.925a4 4 0 0 0-.061.672c0 3.292 4.011 5.97 8.941 5.97s8.941-2.678 8.941-5.97q-.002-.32-.053-.632A2.26 2.26 0 0 0 22 11.816m-3.224-7.422a1.1 1.1 0 1 1-.001 2.199 1.1 1.1 0 0 1 .001-2.199M2.777 11.816c0-.827.672-1.5 1.499-1.5.313 0 .598.103.838.269-.851.676-1.477 1.479-1.812 2.36a1.48 1.48 0 0 1-.525-1.129m9.182 7.79c-4.501 0-8.164-2.329-8.164-5.193S7.457 9.22 11.959 9.22s8.164 2.329 8.164 5.193-3.663 5.193-8.164 5.193m8.677-6.605c-.326-.89-.948-1.701-1.797-2.384.248-.186.55-.301.883-.301.827 0 1.5.673 1.5 1.5.001.483-.23.911-.586 1.185m-11.64 1.703c-.76 0-1.397-.616-1.397-1.376s.637-1.397 1.397-1.397 1.376.637 1.376 1.397-.616 1.376-1.376 1.376m7.405-1.376c0 .76-.616 1.376-1.376 1.376s-1.399-.616-1.399-1.376.639-1.397 1.399-1.397 1.376.637 1.376 1.397m-1.172 3.38a.39.39 0 0 1 0 .55c-.674.674-1.727 1.002-3.219 1.002l-.011-.002-.011.002c-1.492 0-2.544-.328-3.218-1.002a.389.389 0 1 1 .55-.55c.521.521 1.394.775 2.669.775l.011.002.011-.002c1.275 0 2.148-.253 2.669-.775a.387.387 0 0 1 .549 0"})))},{name:"share",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M18 16c-.788 0-1.499.31-2.034.807L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.048 4.118A3 3 0 0 0 15 19a3 3 0 1 0 3-3"})))},{name:"skype",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"m10.113 2.699.1-.02q.05.025.098.051zM2.72 10.223l-.017.103q.025.048.051.095zm18.555 3.548q.009-.053.018-.106-.025-.047-.052-.095zm-7.712 7.428q.049.027.096.053l.105-.017zM22 16.386a5.55 5.55 0 0 1-1.637 3.953 5.55 5.55 0 0 1-3.953 1.637 5.6 5.6 0 0 1-2.75-.725l.105-.017-.202-.035q.049.027.096.053a9.5 9.5 0 0 1-1.654.147 9.4 9.4 0 0 1-3.676-.743 9.4 9.4 0 0 1-3.002-2.023 9.4 9.4 0 0 1-2.023-3.002 9.4 9.4 0 0 1-.743-3.676c0-.546.049-1.093.142-1.628q.025.048.051.095l-.034-.199-.017.103A5.6 5.6 0 0 1 2 7.615c0-1.493.582-2.898 1.637-3.953A5.56 5.56 0 0 1 7.59 2.024c.915 0 1.818.228 2.622.655l-.1.02.199.031q-.049-.026-.098-.051l.004-.001a9.5 9.5 0 0 1 1.788-.169 9.41 9.41 0 0 1 6.678 2.766 9.4 9.4 0 0 1 2.024 3.002 9.4 9.4 0 0 1 .743 3.676c0 .575-.054 1.15-.157 1.712q-.025-.047-.052-.095l.034.201q.009-.053.018-.106c.461.829.707 1.767.707 2.721m-5.183-2.248c0-1.331-.613-2.743-3.033-3.282l-2.209-.49c-.84-.192-1.807-.444-1.807-1.237s.679-1.348 1.903-1.348c2.468 0 2.243 1.696 3.468 1.696.645 0 1.209-.379 1.209-1.031 0-1.521-2.435-2.663-4.5-2.663-2.242 0-4.63.952-4.63 3.488 0 1.221.436 2.521 2.839 3.123l2.984.745c.903.223 1.129.731 1.129 1.189 0 .762-.758 1.507-2.129 1.507-2.679 0-2.307-2.062-3.743-2.062-.645 0-1.113.444-1.113 1.078 0 1.236 1.501 2.886 4.856 2.886 3.195 0 4.776-1.538 4.776-3.599"})))},{name:"sms",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M17.696 4C20.069 4 22 5.973 22 8.398v4.357c0 2.04-1.368 3.783-3.261 4.266v4.427l-5.234-4.295h-7.2C3.93 17.153 2 15.18 2 12.755V8.398C2 5.973 3.931 4 6.304 4zM7.028 8.515c-.98 0-1.66.562-1.66 1.349-.009.497.322.91.985 1.178l.39.142c.242.097.305.171.305.297 0 .162-.131.251-.442.251s-.76-.135-1.004-.284l-.112.046-.215.868c.359.258.832.364 1.33.364 1.104 0 1.764-.523 1.764-1.333-.008-.574-.305-.956-.954-1.216l-.393-.146c-.266-.108-.341-.181-.341-.287 0-.152.131-.243.387-.243.274 0 .587.093.808.214l.109-.047.214-.837c-.315-.224-.741-.316-1.171-.316m10.302 0c-.98 0-1.66.562-1.66 1.349-.008.497.322.91.985 1.178l.39.142c.243.097.305.171.305.297 0 .162-.13.251-.442.251-.311 0-.76-.135-1.004-.284l-.112.046-.215.868c.359.258.832.364 1.33.364 1.104 0 1.764-.523 1.764-1.333-.008-.574-.305-.956-.954-1.216l-.393-.146c-.266-.108-.341-.181-.341-.287 0-.152.131-.243.387-.243.274 0 .587.093.808.214l.109-.047.214-.837c-.316-.224-.741-.316-1.171-.316m-3.733 0c-.297 0-.55.066-.78.202l-.144.098a2 2 0 0 0-.264.247l-.078.095-.027-.077c-.15-.34-.55-.565-1.033-.565l-.169.007a1.36 1.36 0 0 0-.896.42l-.08.09-.038-.363-.075-.067H8.994l-.075.079.024.634c.005.2.008.397.008.604v2.652l.075.075h1.178l.075-.075v-2.269q-.002-.168.042-.274c.083-.23.262-.392.496-.392.314 0 .483.267.483.753v2.182l.075.075h1.179l.075-.075v-2.277c0-.097.016-.213.043-.285.077-.224.26-.373.486-.373.33 0 .5.272.5.817v2.118l.074.075h1.179l.075-.075v-2.293c0-1.131-.537-1.763-1.39-1.763Z"})))},{name:"snapchat",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M11.989 1.728c3.221.001 5.904 2.683 5.908 5.912q.002 1.133.067 2.094a.737.737 0 0 0 .902.669l1.009-.237a.6.6 0 0 1 .129-.015c.256 0 .492.175.55.434a.74.74 0 0 1-.479.861l-1.532.618a.823.823 0 0 0-.485.98c1.229 4.543 4.661 4.071 4.661 4.662 0 .743-2.587.848-2.821 1.082s-.01 1.368-.532 1.588a1.1 1.1 0 0 1-.409.056c-.393 0-.95-.077-1.536-.077-.509 0-1.04.058-1.507.273-1.239.572-2.433 1.641-3.914 1.641S9.325 21.2 8.086 20.628c-.467-.216-.998-.273-1.507-.273-.586 0-1.143.077-1.536.077-.17 0-.31-.014-.409-.056-.522-.22-.299-1.354-.532-1.588s-2.821-.337-2.821-1.08c0-.592 3.432-.119 4.661-4.662a.824.824 0 0 0-.486-.98l-1.532-.618a.74.74 0 0 1-.479-.861.56.56 0 0 1 .679-.419l1.009.237q.086.02.169.02a.737.737 0 0 0 .733-.689q.065-.961.067-2.094c.004-3.229 2.666-5.91 5.887-5.912m0-1.281c-.961 0-1.898.194-2.784.574A7.2 7.2 0 0 0 6.93 2.572a7.2 7.2 0 0 0-1.539 2.282A7.1 7.1 0 0 0 4.82 7.64a33 33 0 0 1-.029 1.369l-.375-.088a2 2 0 0 0-.421-.049 1.86 1.86 0 0 0-1.135.389 1.84 1.84 0 0 0-.666 1.049 2.024 2.024 0 0 0 1.271 2.335l1.124.454c-.744 2.285-2.117 2.723-3.041 3.018a5 5 0 0 0-.659.246C.087 16.76 0 17.436 0 17.708c0 .521.247.996.694 1.339.223.17.499.311.844.43.47.162 1.016.265 1.459.347.021.164.053.341.106.518.22.738.684 1.069 1.034 1.217.332.14.676.156.905.156.224 0 .462-.018.713-.036.269-.02.548-.041.823-.041.426 0 .743.051.97.155.311.144.64.337.989.542.972.571 2.073 1.217 3.462 1.217s2.49-.647 3.462-1.217c.349-.205.679-.399.989-.542.226-.105.544-.155.97-.155.275 0 .554.021.823.041.251.019.488.036.713.036.229 0 .573-.016.905-.156.35-.147.814-.478 1.034-1.217.053-.178.084-.354.106-.518.443-.082.989-.185 1.459-.347.345-.119.621-.259.844-.43.448-.342.694-.818.694-1.339 0-.272-.087-.948-.891-1.347a5 5 0 0 0-.659-.246c-.924-.295-2.297-.733-3.041-3.018l1.124-.454a2.025 2.025 0 0 0 1.271-2.335 1.83 1.83 0 0 0-.666-1.049 1.86 1.86 0 0 0-1.556-.34l-.375.088a33 33 0 0 1-.029-1.369 7.1 7.1 0 0 0-.575-2.789c-.365-.853-.886-1.62-1.547-2.282s-1.428-1.182-2.28-1.547a7.1 7.1 0 0 0-2.786-.574"})))},{name:"soundcloud",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M23.587 13.923a3.303 3.303 0 0 1-3.344 3.117h-8.037a.674.674 0 0 1-.667-.67V7.717a.74.74 0 0 1 .444-.705s.739-.512 2.296-.512a5.27 5.27 0 0 1 2.702.742 5.35 5.35 0 0 1 2.516 3.485 3.1 3.1 0 0 1 .852-.116 3.217 3.217 0 0 1 3.237 3.312m-13.05-5.659c.242 2.935.419 5.612 0 8.538a.261.261 0 0 1-.519 0c-.39-2.901-.221-5.628 0-8.538a.26.26 0 0 1 .398-.25.26.26 0 0 1 .12.25zm-1.627 8.541a.273.273 0 0 1-.541 0 32.7 32.7 0 0 1 0-7.533.274.274 0 0 1 .544 0 29.4 29.4 0 0 1-.003 7.533m-1.63-7.788c.264 2.69.384 5.099-.003 7.782a.262.262 0 0 1-.522 0c-.374-2.649-.249-5.127 0-7.782a.264.264 0 0 1 .525 0m-1.631 7.792a.268.268 0 0 1-.532 0 27.6 27.6 0 0 1 0-7.034.27.27 0 1 1 .541 0 25.8 25.8 0 0 1-.01 7.034zm-1.63-5.276c.412 1.824.227 3.435-.015 5.294a.255.255 0 0 1-.504 0c-.22-1.834-.402-3.482-.015-5.295a.268.268 0 0 1 .535 0m-1.626-.277c.378 1.869.254 3.451-.01 5.325-.031.277-.506.28-.531 0-.239-1.846-.352-3.476-.01-5.325a.277.277 0 0 1 .551 0m-1.643.907c.396 1.239.261 2.246-.016 3.517a.258.258 0 0 1-.514 0c-.239-1.246-.336-2.274-.021-3.517a.276.276 0 0 1 .55 0z"})))},{name:"spotify",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424a.62.62 0 0 1-.857.207c-2.348-1.435-5.304-1.76-8.785-.964a.622.622 0 1 1-.277-1.215c3.809-.871 7.077-.496 9.713 1.115a.623.623 0 0 1 .206.857M17.81 13.7a.78.78 0 0 1-1.072.257c-2.687-1.652-6.785-2.131-9.965-1.166A.779.779 0 1 1 6.32 11.3c3.632-1.102 8.147-.568 11.234 1.328a.78.78 0 0 1 .256 1.072m.105-2.835c-3.223-1.914-8.54-2.09-11.618-1.156a.935.935 0 1 1-.542-1.79c3.532-1.072 9.404-.865 13.115 1.338a.936.936 0 1 1-.955 1.608"})))},{name:"squarespace",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M20.87 9.271a3.86 3.86 0 0 0-5.458 0l-6.141 6.141a.964.964 0 1 0 1.365 1.364l6.14-6.14a1.929 1.929 0 1 1 2.729 2.729l-6.022 6.022a1.93 1.93 0 0 0 2.729 0l4.658-4.658a3.86 3.86 0 0 0 0-5.458m-2.047 2.047a.965.965 0 0 0-1.365 0l-6.14 6.14a1.93 1.93 0 0 1-2.729 0 .964.964 0 1 0-1.364 1.364 3.86 3.86 0 0 0 5.458 0l6.14-6.14a.966.966 0 0 0 0-1.364m-2.047-6.141a3.86 3.86 0 0 0-5.458 0l-6.14 6.14a.964.964 0 1 0 1.364 1.364l6.141-6.14a1.93 1.93 0 0 1 2.729 0 .965.965 0 1 0 1.364-1.364m-2.047 2.047a.964.964 0 0 0-1.364 0l-6.14 6.141a1.929 1.929 0 1 1-2.729-2.729l6.022-6.022a1.93 1.93 0 0 0-2.729 0L3.13 9.271a3.86 3.86 0 0 0 5.458 5.458l6.14-6.141a.963.963 0 0 0 .001-1.364"})))},{name:"stackexchange",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M4 11.606h16v3.272H4zM4 7.377h16v3.272H4zM17.514 3H6.55C5.147 3 4 4.169 4 5.614v.848h16v-.85C20 4.167 18.895 3 17.514 3M4 15.813v.85c0 1.445 1.147 2.614 2.55 2.614h6.799v3.463l3.357-3.463h.744c1.402 0 2.55-1.169 2.55-2.614v-.85z"})))},{name:"stackoverflow",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M18.18 20.103V14.78h1.767v7.09H4v-7.09h1.767v5.323z"}),React.createElement("path",{d:"m7.717 14.275 8.673 1.813.367-1.744-8.673-1.813zm1.147-4.13 8.031 3.74.734-1.606-8.031-3.763zm2.226-3.946 6.815 5.667 1.124-1.354-6.815-5.667zM15.495 2l-1.423 1.055 5.277 7.113 1.423-1.055zM7.533 18.314h8.857v-1.767H7.533z"})))},{name:"stumbleupon",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12 4.294a4.47 4.47 0 0 0-4.471 4.471v6.353a1.059 1.059 0 1 1-2.118 0v-2.824H2v2.941a4.471 4.471 0 0 0 8.942 0v-6.47a1.059 1.059 0 1 1 2.118 0v1.294l1.412.647 2-.647V8.765A4.473 4.473 0 0 0 12 4.294m1.059 8.059v2.882a4.471 4.471 0 0 0 8.941 0v-2.824h-3.412v2.824a1.059 1.059 0 1 1-2.118 0v-2.882l-2 .647z"})))},{name:"substack",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M19.904 9.182H4.095V7.054h15.81v2.127M4.095 11.109V21L12 16.583 19.905 21v-9.891zM19.905 3H4.095v2.127h15.81z"})))},{name:"telegram",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m3.08 14.757s-.25.625-.936.325l-2.541-1.949-1.63 1.486s-.127.096-.266.036c0 0-.12-.011-.27-.486s-.911-2.972-.911-2.972L6 12.349s-.387-.137-.425-.438c-.037-.3.437-.462.437-.462l10.03-3.934s.824-.362.824.238z"})))},{name:"threads",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 192 192"},React.createElement("g",null,React.createElement("path",{d:"M141.537 88.988a67 67 0 0 0-2.518-1.143c-1.482-27.307-16.403-42.94-41.457-43.1h-.34c-14.986 0-27.449 6.396-35.12 18.036l13.779 9.452c5.73-8.695 14.724-10.548 21.348-10.548h.229c8.249.053 14.474 2.452 18.503 7.129 2.932 3.405 4.893 8.111 5.864 14.05-7.314-1.243-15.224-1.626-23.68-1.14-23.82 1.371-39.134 15.264-38.105 34.568.522 9.792 5.4 18.216 13.735 23.719 7.047 4.652 16.124 6.927 25.557 6.412 12.458-.683 22.231-5.436 29.049-14.127 5.178-6.6 8.453-15.153 9.899-25.93 5.937 3.583 10.337 8.298 12.767 13.966 4.132 9.635 4.373 25.468-8.546 38.376-11.319 11.308-24.925 16.2-45.488 16.351-22.809-.169-40.06-7.484-51.275-21.742C35.236 139.966 29.808 120.682 29.605 96c.203-24.682 5.63-43.966 16.133-57.317C56.954 24.425 74.204 17.11 97.013 16.94c22.975.17 40.526 7.52 52.171 21.847 5.71 7.026 10.015 15.86 12.853 26.162l16.147-4.308c-3.44-12.68-8.853-23.606-16.219-32.668C147.036 9.607 125.202.195 97.07 0h-.113C68.882.194 47.292 9.642 32.788 28.08 19.882 44.485 13.224 67.315 13.001 95.932L13 96v.067c.224 28.617 6.882 51.447 19.788 67.854C47.292 182.358 68.882 191.806 96.957 192h.113c24.96-.173 42.554-6.708 57.048-21.189 18.963-18.945 18.392-42.692 12.142-57.27-4.484-10.454-13.033-18.945-24.723-24.553M98.44 129.507c-10.44.588-21.286-4.098-21.82-14.135-.397-7.442 5.296-15.746 22.461-16.735q2.948-.17 5.79-.169c6.235 0 12.068.606 17.371 1.765-1.978 24.702-13.58 28.713-23.802 29.274"})))},{name:"tiktok-alt",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M5 3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zm7.531 3h2.053s-.114 2.635 2.85 2.82v2.04s-1.582.099-2.85-.87l.021 4.207a3.804 3.804 0 1 1-3.802-3.802h.533v2.082a1.73 1.73 0 0 0-1.922.648 1.727 1.727 0 0 0 1.947 2.646 1.73 1.73 0 0 0 1.19-1.642z"})))},{name:"tiktok",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12.22 2h3.42s-.19 4.394 4.75 4.702v3.396s-2.636.166-4.75-1.448l.037 7.012a6.338 6.338 0 1 1-6.34-6.339h.89v3.472a2.882 2.882 0 1 0 2.024 2.752z"})))},{name:"tripadvisor",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M21.01 9.859c.236-1.002.985-2.003.985-2.003l-3.341-.002C16.779 6.643 14.502 6 11.979 6 9.363 6 7 6.659 5.135 7.877L2 7.88s.74.988.98 1.983a4.98 4.98 0 0 0-.977 2.961 5.01 5.01 0 0 0 5.009 5.003 5 5 0 0 0 3.904-1.875l1.065 1.592 1.076-1.606a4.96 4.96 0 0 0 1.838 1.448 4.98 4.98 0 0 0 3.831.151 5.01 5.01 0 0 0 2.963-6.431 5 5 0 0 0-.679-1.247m-13.998 6.96a4 4 0 0 1-3.998-3.995 4 4 0 0 1 3.998-3.997 4 4 0 0 1 3.996 3.997 4 4 0 0 1-3.996 3.995m4.987-4.36A5.007 5.007 0 0 0 7.11 7.821c1.434-.613 3.081-.947 4.867-.947 1.798 0 3.421.324 4.853.966a4.984 4.984 0 0 0-4.831 4.619m6.288 4.134a3.97 3.97 0 0 1-3.058-.122 3.96 3.96 0 0 1-2.075-2.245v-.001a3.97 3.97 0 0 1 .118-3.056 3.97 3.97 0 0 1 2.246-2.077 4.005 4.005 0 0 1 5.135 2.366 4.006 4.006 0 0 1-2.366 5.135"}),React.createElement("path",{d:"M6.949 10.307a2.477 2.477 0 0 0-2.475 2.472 2.48 2.48 0 0 0 2.475 2.474 2.474 2.474 0 0 0 0-4.946m0 4.094a1.626 1.626 0 0 1-1.624-1.623 1.621 1.621 0 1 1 1.624 1.623M16.981 10.307a2.477 2.477 0 0 0-2.474 2.472 2.48 2.48 0 0 0 2.474 2.474 2.476 2.476 0 0 0 2.472-2.474 2.475 2.475 0 0 0-2.472-2.472m0 4.094a1.625 1.625 0 0 1-1.622-1.623 1.622 1.622 0 1 1 1.622 1.623"}),React.createElement("path",{d:"M7.778 12.778a.832.832 0 1 1-1.664.002.832.832 0 0 1 1.664-.002M16.981 11.947a.832.832 0 1 0 .002 1.666.832.832 0 0 0-.002-1.666"})))},{name:"tumblr-alt",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M16.749 17.396c-.357.17-1.041.319-1.551.332-1.539.041-1.837-1.081-1.85-1.896V9.847h3.861v-2.91h-3.847V2.039h-2.817c-.046 0-.127.041-.138.144-.165 1.499-.867 4.13-3.783 5.181v2.484h1.945v6.282c0 2.151 1.587 5.206 5.775 5.135 1.413-.024 2.982-.616 3.329-1.126z"})))},{name:"tumblr",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m-5.569 14.265c-2.446.042-3.372-1.742-3.372-2.998v-3.668H8.923v-1.45c1.703-.614 2.113-2.15 2.209-3.025.007-.06.054-.084.081-.084h1.645V8.9h2.246v1.7H12.85v3.495c.008.476.182 1.131 1.081 1.107.298-.008.697-.094.906-.194l.54 1.601c-.205.296-1.121.641-1.946.656"})))},{name:"twitch",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M16.499 8.089h-1.636v4.91h1.636zm-4.499 0h-1.637v4.91H12zM4.228 3.178 3 6.451v13.092h4.499V22h2.456l2.454-2.456h3.681L21 14.636V3.178zm15.136 10.638L16.5 16.681H12l-2.453 2.453V16.68H5.863V4.814h13.501z"})))},{name:"twitter-alt",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M22.23 5.924a8.2 8.2 0 0 1-2.357.646 4.12 4.12 0 0 0 1.804-2.27 8.2 8.2 0 0 1-2.606.996 4.103 4.103 0 0 0-6.991 3.742 11.65 11.65 0 0 1-8.457-4.287 4.1 4.1 0 0 0-.556 2.063 4.1 4.1 0 0 0 1.825 3.415 4.1 4.1 0 0 1-1.859-.513v.052a4.104 4.104 0 0 0 3.292 4.023 4.1 4.1 0 0 1-1.853.07 4.11 4.11 0 0 0 3.833 2.85 8.24 8.24 0 0 1-5.096 1.756 8 8 0 0 1-.979-.057 11.6 11.6 0 0 0 6.29 1.843c7.547 0 11.675-6.252 11.675-11.675q0-.267-.012-.531a8.3 8.3 0 0 0 2.047-2.123"})))},{name:"twitter",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m-2.534 6.71q.007.148.007.298c0 3.045-2.318 6.556-6.556 6.556a6.5 6.5 0 0 1-3.532-1.035q.27.032.55.032a4.63 4.63 0 0 0 2.862-.986 2.31 2.31 0 0 1-2.152-1.6 2.3 2.3 0 0 0 1.04-.04 2.306 2.306 0 0 1-1.848-2.259v-.029c.311.173.666.276 1.044.288a2.303 2.303 0 0 1-.713-3.076 6.54 6.54 0 0 0 4.749 2.407 2.305 2.305 0 0 1 3.926-2.101 4.6 4.6 0 0 0 1.463-.559 2.3 2.3 0 0 1-1.013 1.275c.466-.056.91-.18 1.323-.363-.31.461-.7.867-1.15 1.192"})))},{name:"untappd",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"m11 13.299-5.824 8.133c-.298.416-.8.635-1.308.572-.578-.072-1.374-.289-2.195-.879S.392 19.849.139 19.323a1.4 1.4 0 0 1 .122-1.425l5.824-8.133a3.1 3.1 0 0 1 1.062-.927l1.146-.604c.23-.121.436-.283.608-.478.556-.631 2.049-2.284 4.696-4.957l.046-.212a.13.13 0 0 1 .096-.1l.146-.037a.135.135 0 0 0 .101-.141l-.015-.18a.13.13 0 0 1 .125-.142c.176-.005.518.046 1.001.393s.64.656.692.824a.13.13 0 0 1-.095.164l-.175.044a.13.13 0 0 0-.101.141l.012.15a.13.13 0 0 1-.063.123l-.186.112c-1.679 3.369-2.764 5.316-3.183 6.046a2.2 2.2 0 0 0-.257.73l-.205 1.281A3.1 3.1 0 0 1 11 13.3zm12.739 4.598-5.824-8.133a3.1 3.1 0 0 0-1.062-.927l-1.146-.605a2.1 2.1 0 0 1-.608-.478 51 51 0 0 0-.587-.654.09.09 0 0 0-.142.018 97 97 0 0 1-1.745 3.223 1.4 1.4 0 0 0-.171.485 3.5 3.5 0 0 0 0 1.103l.01.064c.075.471.259.918.536 1.305l5.824 8.133c.296.413.79.635 1.294.574a4.76 4.76 0 0 0 2.209-.881 4.76 4.76 0 0 0 1.533-1.802 1.4 1.4 0 0 0-.122-1.425zM8.306 3.366l.175.044a.134.134 0 0 1 .101.141l-.012.15a.13.13 0 0 0 .063.123l.186.112q.465.933.869 1.721c.026.051.091.06.129.019q.655-.703 1.585-1.668a.137.137 0 0 0 .003-.19c-.315-.322-.645-.659-1.002-1.02l-.046-.212a.13.13 0 0 0-.096-.099l-.146-.037a.135.135 0 0 1-.101-.141l.015-.18a.13.13 0 0 0-.123-.142c-.175-.005-.518.045-1.002.393-.483.347-.64.656-.692.824a.13.13 0 0 0 .095.164z"})))},{name:"vimeo",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M22.396 7.164q-.139 3.039-4.245 8.32Q13.907 21 10.97 21q-1.82 0-3.079-3.359l-1.68-6.159q-.934-3.36-2.005-3.36-.234.001-1.634.98l-.978-1.261q1.541-1.353 3.037-2.708 2.056-1.774 3.084-1.869 2.429-.234 2.99 3.321.607 3.836.841 4.769.7 3.181 1.542 3.181.653 0 1.963-2.065 1.307-2.063 1.401-3.142.187-1.781-1.401-1.782-.747.001-1.541.341 1.534-5.024 5.862-4.884 3.21.095 3.024 4.161"})))},{name:"vk",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{fillRule:"evenodd",d:"M1.687 1.687C0 3.374 0 6.09 0 11.52v.96c0 5.431 0 8.146 1.687 9.833S6.09 24 11.52 24h.96c5.431 0 8.146 0 9.833-1.687S24 17.91 24 12.48v-.96c0-5.431 0-8.146-1.687-9.833S17.91 0 12.48 0h-.96C6.09 0 3.374 0 1.687 1.687M4.05 7.3c.13 6.24 3.25 9.99 8.72 9.99h.31v-3.57c2.01.2 3.53 1.67 4.14 3.57h2.84c-.78-2.84-2.83-4.41-4.11-5.01 1.28-.74 3.08-2.54 3.51-4.98h-2.58c-.56 1.98-2.22 3.78-3.8 3.95V7.3H10.5v6.92c-1.6-.4-3.62-2.34-3.71-6.92z"})))},{name:"whatsapp",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"m2.048 22 1.406-5.136a9.9 9.9 0 0 1-1.323-4.955C2.133 6.446 6.579 2 12.042 2a9.85 9.85 0 0 1 7.011 2.906 9.85 9.85 0 0 1 2.9 7.011c-.002 5.464-4.448 9.91-9.91 9.91h-.004a9.9 9.9 0 0 1-4.736-1.206zm5.497-3.172.301.179a8.2 8.2 0 0 0 4.193 1.148h.003c4.54 0 8.235-3.695 8.237-8.237a8.2 8.2 0 0 0-2.41-5.828 8.18 8.18 0 0 0-5.824-2.416c-4.544 0-8.239 3.695-8.241 8.237a8.2 8.2 0 0 0 1.259 4.384l.196.312-.832 3.04zm9.49-4.554c-.062-.103-.227-.165-.475-.289s-1.465-.723-1.692-.806-.392-.124-.557.124-.64.806-.784.971-.289.186-.536.062-1.046-.385-1.991-1.229c-.736-.657-1.233-1.468-1.378-1.715s-.015-.382.109-.505c.111-.111.248-.289.371-.434.124-.145.165-.248.248-.413s.041-.31-.021-.434-.557-1.343-.763-1.839c-.202-.483-.407-.417-.559-.425-.144-.007-.31-.009-.475-.009a.9.9 0 0 0-.66.31c-.226.248-.866.847-.866 2.066s.887 2.396 1.011 2.562 1.746 2.666 4.23 3.739c.591.255 1.052.408 1.412.522.593.189 1.133.162 1.56.098.476-.071 1.465-.599 1.671-1.177.206-.58.206-1.075.145-1.179"})))},{name:"woocommerce",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M19 2H5C3.3 2 2 3.3 2 5v11c0 1.7 1.3 3 3 3h4l6 3-1-3h5c1.7 0 3-1.3 3-3V5c0-1.7-1.3-3-3-3m-1.6 4.5c-.4.8-.8 2.1-1 3.9-.3 1.8-.4 3.1-.3 4.1 0 .3 0 .5-.1.7s-.3.4-.6.4-.6-.1-.9-.4c-1-1-1.8-2.6-2.4-4.6-.7 1.4-1.2 2.4-1.6 3.1-.6 1.2-1.2 1.8-1.6 1.9-.3 0-.5-.2-.8-.7-.5-1.4-1.1-4.2-1.7-8.2 0-.3 0-.5.2-.7.1-.2.4-.3.7-.4.5 0 .9.2.9.8.3 2.3.7 4.2 1.1 5.7l2.4-4.5c.2-.4.4-.6.8-.6q.75 0 .9.9c.3 1.4.6 2.6 1 3.7.3-2.7.8-4.7 1.4-5.9.2-.3.4-.5.7-.5.2 0 .5.1.7.2q.3.3.3.6c0 .3 0 .4-.1.5"})))},{name:"wordpress",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12.158 12.786 9.46 20.625a9 9 0 0 0 5.526-.144 1 1 0 0 1-.065-.124zM3.009 12a8.99 8.99 0 0 0 5.067 8.092L3.788 8.341A8.95 8.95 0 0 0 3.009 12m15.06-.454c0-1.112-.399-1.881-.741-2.48-.456-.741-.883-1.368-.883-2.109 0-.826.627-1.596 1.51-1.596q.06.002.116.007A8.96 8.96 0 0 0 12 3.009a8.98 8.98 0 0 0-7.512 4.052c.211.007.41.011.579.011.94 0 2.396-.114 2.396-.114.484-.028.541.684.057.741 0 0-.487.057-1.029.085l3.274 9.739 1.968-5.901-1.401-3.838c-.484-.028-.943-.085-.943-.085-.485-.029-.428-.769.057-.741 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.485-.028.542.684.057.741 0 0-.488.057-1.029.085l3.249 9.665.897-2.996q.684-1.753.684-2.907m1.82-3.86q.06.428.06.924c0 .912-.171 1.938-.684 3.22l-2.746 7.94a8.98 8.98 0 0 0 4.47-7.771 8.9 8.9 0 0 0-1.1-4.313M12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"})))},{name:"x",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M13.982 10.622 20.54 3h-1.554l-5.693 6.618L8.745 3H3.5l6.876 10.007L3.5 21h1.554l6.012-6.989L15.868 21h5.245zm-2.128 2.474-.697-.997-5.543-7.93H8l4.474 6.4.697.996 5.815 8.318h-2.387z"})))},{name:"xanga",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M9 9h6v6H9zM3 9h6V3H3zm12 0h6V3h-6zm0 12h6v-6h-6zM3 21h6v-6H3z"})))},{name:"youtube",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M21.8 8.001s-.195-1.378-.795-1.985c-.76-.797-1.613-.801-2.004-.847-2.799-.202-6.997-.202-6.997-.202h-.009s-4.198 0-6.997.202c-.39.047-1.242.051-2.003.847-.6.607-.795 1.985-.795 1.985S2 9.62 2 11.238v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.761.797 1.76.771 2.205.855 1.6.153 6.8.201 6.8.201s4.203-.006 7.001-.209c.391-.047 1.243-.051 2.004-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517c0-1.618-.2-3.237-.2-3.237M9.935 14.594l-.001-5.62 5.404 2.82z"})))}]},8992:(e,t,n)=>{"use strict";n(6072);var r=n(8120),a=n.n(r),o=n(1609);n(1135);o.PureComponent,a().string.isRequired,a().number,a().func,a().string},3536:(e,t,n)=>{"use strict";n.d(t,{A:()=>z});var r=n(442),a=n(2947),o=n(5795),i=n(7425),s=n(766),c=n(5918),l=n(8509),d=n(1112),u=n(5640),p=n(4437),m=n(9384),h=n(6427),g=n(7143),v=n(7723),f=n(3022),y=n(1609),w=n(6287),b=n(3356),E=n(7770),A=n(6764),k=n(9072),R=n(7520),C=n(8728),S=n(3463),_=n(957),x=n(8575),P=n(2301),j=n(3322),N=n(7812),V=n(9668),U=n(9525),O=n(1795);const __=v.__,z=()=>{const{videos:e,uploadedVideoCount:t,localVideos:n,uploadedLocalVideoCount:p,hasVideos:v,hasLocalVideos:z,handleFilesUpload:M,handleLocalVideoUpload:L,loading:F,uploading:I,hasVideoPressPurchase:D}=(()=>{const{uploadVideo:e,uploadVideoFromLibrary:t,setVideosQuery:n}=(0,g.useDispatch)(w.ax),{items:r,uploadErrors:a,uploading:o,uploadedVideoCount:i,isFetching:s,search:c,page:l,itemsPerPage:d,total:u}=(0,_.Ay)(),{items:p,uploadedLocalVideoCount:m}=(0,_.Ds)(),{hasVideoPressPurchase:h}=(0,R.j)(),v=(0,y.useRef)(l),f=(0,C.o)(),E=parseInt(f.getParam("page","1")),A=f.getParam("q",""),k=Math.ceil(u/d);(0,y.useEffect)((()=>0===u&&1!==E||u>0&&(E<1||E>k)?(f.deleteParam("page"),void f.update()):void(l===E?c!==A&&n({search:A}):l!==v.current?(v.current=l,f.setParam("page",l),f.update()):(v.current=E,n({page:E})))),[k,l,E,c,A,v.current]);let S=l>1||Boolean(c)?r:[...a,...o,...r];const x=i>0||s||o?.length>0||a?.length>0,P=m>0;if(s){const e=Math.max(1,Math.min(d,i-d*(l-1)));S=new Array(e).fill({}).map((()=>({id:(0,b.A)()})))}return{videos:S,localVideos:p,uploadedVideoCount:i,uploadedLocalVideoCount:m,hasVideos:x,hasLocalVideos:P,handleFilesUpload:t=>{h?t.forEach((t=>{e(t)})):t.length>0&&e(t[0])},handleLocalVideoUpload:e=>{t(e)},loading:s,uploading:o?.length>0||a?.length>0,hasVideoPressPurchase:h}})(),{canPerformAction:H,isRegistered:B,hasConnectedOwner:q,isUserConnected:$}=(0,k.J)(),{hasConnectionError:G}=(0,m.useConnectionErrorNotice)(),[J,K]=(0,y.useState)(!B),[Z]=(0,r.A)("sm"),X=(D||!v)&&H,{isDraggingOver:W,inputRef:Q,handleFileInputChangeEvent:Y,filterVideoFiles:ee}=(0,S.A)({canDrop:X&&!F,dropElement:document,onSelectFiles:M});return(0,A.A)({pageViewEventName:"jetpack_videopress_admin_page_view"}),React.createElement(a.A,{moduleName:__("Jetpack VideoPress","jetpack-videopress-pkg"),header:React.createElement(o.A,null)},React.createElement("div",{className:(0,f.A)(O.A["files-overlay"],{[O.A.hover]:W&&X&&!F})},React.createElement(i.Ay,{className:O.A["drop-text"],variant:"headline-medium"},__("Drop files to upload","jetpack-videopress-pkg")),React.createElement("input",{ref:Q,type:"file",accept:E.Zd,className:O.A["file-input"],onChange:Y})),J?React.createElement(s.A,null,React.createElement(c.A,{horizontalSpacing:3,horizontalGap:3},React.createElement(l.A,{sm:4,md:8,lg:12},React.createElement(P.A,{onRedirecting:()=>K(!0)})))):React.createElement(React.Fragment,null,React.createElement(s.A,null,React.createElement(c.A,{horizontalSpacing:0},React.createElement(l.A,null,React.createElement("div",{id:"jp-admin-notices",className:O.A["jetpack-videopress-jitm-card"]}))),React.createElement(c.A,{horizontalSpacing:6,horizontalGap:3},G&&React.createElement(l.A,null,React.createElement(m.ConnectionError,null)),(!q||!$)&&React.createElement(l.A,{sm:4,md:8,lg:12},React.createElement(x.X,null)),React.createElement(l.A,{sm:4,md:4,lg:8},React.createElement(i.Ay,{variant:"headline-small",mb:3},__("High quality, ad-free video","jetpack-videopress-pkg")),D&&React.createElement(N.i,{className:O.A["storage-meter"],progressBarClassName:O.A["storage-meter__progress-bar"]}),v?React.createElement(h.FormFileUpload,{onChange:e=>M(ee(e.currentTarget.files)),accept:E.Zd,multiple:D,render:({openFileDialog:e})=>React.createElement(d.A,{fullWidth:Z,onClick:e,isLoading:F,disabled:!X},__("Add new video","jetpack-videopress-pkg"))}):React.createElement(i.Ay,{variant:"title-medium"},__("Let's add your first video below!","jetpack-videopress-pkg")),!D&&React.createElement(T,{hasUsedVideo:v})))),React.createElement(u.A,null,React.createElement(c.A,{horizontalSpacing:6,horizontalGap:10},v?React.createElement(l.A,{sm:4,md:6,lg:12},React.createElement(U.a,{videos:e,totalVideos:t,loading:F})):React.createElement(l.A,{sm:4,md:6,lg:12,className:O.A["first-video-wrapper"]},React.createElement(V.A,{className:O.A["upload-area"],onSelectFiles:M})),z&&React.createElement(l.A,{sm:4,md:6,lg:12},React.createElement(U.D,{videos:n,totalVideos:p,onUploadClick:L,uploading:I})))),React.createElement(u.A,null,React.createElement(j.M,null))))},T=({hasUsedVideo:e=!1})=>{const{adminUri:t,siteSuffix:n}=window.jetpackVideoPressInitialState,{product:r,hasVideoPressPurchase:a,isFetchingPurchases:o}=(0,R.j)(),{run:i}=(0,m.useProductCheckoutWorkflow)({siteSuffix:n,productSlug:r.productSlug,redirectUrl:t,isFetchingPurchases:o,useBlogIdSuffix:!0}),{recordEventHandler:s}=(0,A.A)({});if(a||o)return null;const c=s("jetpack_videopress_upgrade_trigger_link_click",i),l=e?__("You have used your free video upload","jetpack-videopress-pkg"):"",d=__("Upgrade now to unlock unlimited videos, 1TB of storage, and more!","jetpack-videopress-pkg");return React.createElement(p.A,{description:l,cta:d,className:O.A["upgrade-trigger"],onClick:c})}},9525:(e,t,n)=>{"use strict";n.d(t,{D:()=>_,a:()=>S});var r=n(442),a=n(7425),o=n(1112),i=n(6087),s=n(7723),c=n(1651),l=n(9761),d=n(3022),u=n(1609),p=n.n(u),m=n(247),h=n(8728),g=n(957),v=n(5333),f=n(8175),y=n(1755),w=n(6145),b=n(3793),E=n(1795);const __=s.__,A="videopress-library-type",k="list",R="grid",C=({children:e,totalVideos:t=0,libraryType:n=k,onChangeType:i,hideFilter:m=!1,title:f,disabled:w})=>{const{isFetching:b}=(0,g.Ay)(),A=(0,h.o)(),R=A.getParam("q",""),[C,S]=(0,u.useState)(R),[_]=(0,r.A)("lg"),[x,P]=(0,u.useState)(!1),j=__("1 Video","jetpack-videopress-pkg"),N=(0,s.sprintf)(/* translators: placeholder is the number of videos */
__("%s Videos","jetpack-videopress-pkg"),t),V=1===t?j:N;return p().createElement("div",{className:E.A["library-wrapper"]},p().createElement(a.Ay,{variant:"headline-small",mb:1},f),!_&&p().createElement(a.Ay,{className:E.A["total-sm"]},V),p().createElement("div",{className:E.A["total-filter-wrapper"]},_&&p().createElement(a.Ay,null,V),m?null:p().createElement("div",{className:E.A["filter-wrapper"]},p().createElement(v.DO,{className:(0,d.A)(E.A["search-input"],{[E.A.small]:!_}),onSearch:e=>{A.deleteParam("page"),e?A.setParam("q",e):A.deleteParam("q"),A.update()},value:C,loading:b,onChange:S,disabled:w}),p().createElement(y.Fr,{onClick:()=>P((e=>!e)),isActive:x,disabled:w}),p().createElement(o.A,{variant:"tertiary",size:"small",icon:n===k?c.A:l.A,onClick:i}))),x&&p().createElement(y.M2,{className:E.A["filter-section"]}),e)},S=({videos:e,totalVideos:t,loading:n})=>{const r=(0,m.W6)(),{search:o}=(0,g.Ay)(),c=[...e.filter((e=>e.error)),...e.filter((e=>e.uploading)),...e.filter((e=>!e.uploading&&!e.error)).slice(0,6)],l=localStorage.getItem(A),[d,h]=(0,u.useState)(l??R),v=e?.some?.((e=>e.uploading)),y=e=>{r.push(`/video/${e?.id}/edit`)},S=d===R?p().createElement(w.A,{videos:c,onVideoDetailsClick:y,loading:n,count:v?c.length:6}):p().createElement(b.A,{videos:c,onVideoDetailsClick:y,hidePlays:!0,loading:n});return p().createElement(C,{totalVideos:t,onChangeType:()=>{h((e=>{const t=e===R?k:R;return localStorage.setItem(A,t),t}))},libraryType:d,title:__("Your VideoPress library","jetpack-videopress-pkg")},c.length>0||n?S:p().createElement(a.Ay,null,o.trim()?(0,i.createInterpolateElement)((0,s.sprintf)(/* translators: placeholder is the search term */
-__("No videos match your search for %s.","jetpack-videopress-pkg"),o),{em:p().createElement("em",{className:E.A["query-no-results"]})}):__("No videos match your filtering criteria.","jetpack-videopress-pkg")),p().createElement(f.XL,{className:E.A.pagination}))},_=({videos:e,totalVideos:t,loading:n,uploading:r,onUploadClick:a})=>p().createElement(C,{totalVideos:t,hideFilter:!0,title:__("Local videos","jetpack-videopress-pkg")},p().createElement(b.R,{videos:e,loading:n,onActionClick:a,uploading:r}),p().createElement(f.O6,{className:E.A.pagination}))},8876:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(6072),a=n.n(r),o=n(3022),i=n(1609),s=n(6652);const c=(0,i.forwardRef)((({checked:e,onChange:t,className:n,...r},i)=>React.createElement("input",a()({},r,{ref:i,type:"checkbox",checked:e,className:(0,o.A)(n,s.A.checkbox),onChange:e=>{t?.(e.target.checked)}}))));c.displayName="Checkbox";const l=c},6955:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(1112),a=n(9491),o=n(7723),i=n(1609),s=n(8823);const __=o.__,c=({text:e,value:t,onCopy:n,resetTime:o=3e3})=>{const c=__("Copied!","jetpack-videopress-pkg"),l=__("Copy","jetpack-videopress-pkg"),[d,u]=(0,i.useState)(!1),p=t||e,m=(0,a.useCopyToClipboard)(p,(()=>{const e=setTimeout((()=>{u(!1),clearTimeout(e)}),o);u(!0),n?.()}));return React.createElement("div",{className:s.A.wrapper},React.createElement("input",{type:"text",value:e||t,onClick:e=>{e.currentTarget.select()},readOnly:!0}),React.createElement(r.A,{weight:"regular",variant:"secondary",size:"small",ref:m},d?c:l))}},3378:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(723),a=n(7425),o=n(1112),i=n(6427),s=n(7723),c=n(8838);const __=s.__,l=({onClose:e,onDelete:t})=>React.createElement(i.Modal,{title:__("Delete video","jetpack-videopress-pkg"),onRequestClose:e,className:c.A["delete-video-modal"]},React.createElement(r.Ay,null,React.createElement("div",null,React.createElement(a.Ay,null,__("This action cannot be undone.","jetpack-videopress-pkg")),React.createElement("div",{className:c.A["modal-actions"]},React.createElement(o.A,{className:c.A["modal-action-button"],variant:"secondary",weight:"bold",onClick:e},__("Cancel","jetpack-videopress-pkg")),React.createElement(o.A,{className:c.A["modal-action-button"],isDestructive:!0,variant:"primary",weight:"bold",onClick:t},__("Delete","jetpack-videopress-pkg"))))))},2784:(e,t,n)=>{"use strict";n.d(t,{A:()=>B});var r=n(442),a=n(5795),o=n(7425),i=n(1112),s=n(1876),c=n(2947),l=n(5640),d=n(5918),u=n(8509),p=n(6427),m=n(7723),h=n(1113),g=n(5437),v=n(7474),f=n(4066),y=n(3022),w=n(1609),b=n(247),E=n(6749),A=n(6151),k=n(7726),R=n(7121),C=n(2843),S=n(6720),_=n(2439),x=n(8962),P=n(9072),j=n(4951),N=n(957),V=n(5333),U=n(4565),O=n(3287),z=n(5419),T=n(4231),M=n(192),L=n(2267);const __=m.__,F=()=>{},I=({saveDisabled:e=!0,disabled:t=!1,onSaveChanges:n,onDelete:s,videoId:c})=>{const[l]=(0,r.A)("sm"),d=(0,b.W6)();return React.createElement("div",{className:(0,y.A)(M.A["header-wrapper"],{[M.A.small]:l})},React.createElement("button",{onClick:()=>d.push("/"),className:M.A["logo-button"]},React.createElement(a.A,null)),React.createElement("div",{className:M.A["header-content"]},React.createElement("div",{className:M.A.breadcrumb},!l&&React.createElement(h.A,{icon:g.A}),React.createElement(o.Ay,null,__("Edit video details","jetpack-videopress-pkg"))),React.createElement("div",{className:M.A.buttons},React.createElement(i.A,{disabled:e||t,onClick:n,isLoading:t},__("Save changes","jetpack-videopress-pkg")),React.createElement(O.A,{videoId:c,disabled:t,onDelete:s}))))},D=()=>{const{page:e}=(0,N.mo)(),t=e>1?`/?page=${e}`:"/";return React.createElement("div",{className:M.A["back-link"]},React.createElement(E.N_,{to:t,className:M.A.link},React.createElement(h.A,{icon:v.A,className:M.A.icon}),__("Go back","jetpack-videopress-pkg")))},H=({title:e,onChangeTitle:t,description:n,onChangeDescription:r,loading:a=!1,disabled:o=!1})=>{const{hasIncompleteChapters:i}=(0,_.A)(n);return React.createElement(React.Fragment,null,a?React.createElement(s.A,{height:88}):React.createElement(V.Ay,{value:e,label:__("Title","jetpack-videopress-pkg"),name:"title",onChange:t,onEnter:F,disabled:o,size:"large"}),a?React.createElement(s.A,{height:133,className:M.A.input}):React.createElement(React.Fragment,null,React.createElement(V.Ay,{value:n,className:M.A.input,label:__("Description","jetpack-videopress-pkg"),name:"description",onChange:r,onEnter:F,disabled:o,type:"textarea",size:"large",rows:8}),React.createElement("div",{className:M.A["chapters-help-container"]},i?React.createElement(C.A,{className:M.A["incomplete-chapters-notice"]}):React.createElement("div",{className:M.A["learn-more"]},React.createElement(A.A,null)))))},B=()=>{const{guid:e,id:t,duration:n,posterImage:r,filename:a,uploadDate:i,url:m,width:g,height:v,title:E,description:A,rating:C,privacySetting:_,allowDownload:V,displayEmbed:O,isPrivate:F,isFetchingPlaybackToken:B,hasChanges:q,updating:$,updated:G,deleted:J,isFetching:K,isDeleting:Z,handleSaveChanges:X,handleDelete:W,setTitle:Q,setDescription:Y,setRating:ee,setPrivacySetting:te,setAllowDownload:ne,setDisplayEmbed:re,processing:ae,useVideoAsThumbnail:oe,selectedTime:ie,handleConfirmFrame:se,handleCloseSelectFrame:ce,handleOpenSelectFrame:le,handleVideoFrameSelected:de,frameSelectorIsOpen:ue,selectPosterImageFromLibrary:pe,posterImageSource:me,libraryAttachment:he,isUpdatingPoster:ge}=(0,L.A)(),{canPerformAction:ve}=(0,P.J)(),fe=__("There are unsaved changes. Are you sure you want to exit?","jetpack-videopress-pkg");(0,j.A)({shouldPrevent:q&&!G&&!J&&ve,message:fe});const ye=(0,b.W6)(),{page:we}=(0,N.mo)();(0,w.useEffect)((()=>{if(!0===J){const e=we>1?`/?page=${we}`:"/";ye.push(e)}}),[J]),ve||ye.push("/");let be=r;"video"===me&&oe?be=React.createElement(S.L,{src:m,currentTime:ie}):"upload"===me&&(be=he.url);const Ee=K||B,Ae=Z||$,ke=`[videopress ${e}${g?` w=${g}`:""}${v?` h=${v}`:""}]`;return React.createElement(React.Fragment,null,React.createElement(b.XG,{when:q&&!G&&!J,message:fe}),ue&&React.createElement(T.A,{handleCloseSelectFrame:ce,url:m,handleVideoFrameSelected:de,selectedTime:ie,handleConfirmFrame:se}),React.createElement(c.A,{moduleName:__("Jetpack VideoPress","jetpack-videopress-pkg"),header:React.createElement(React.Fragment,null,React.createElement("div",{id:"jp-admin-notices",className:M.A["jetpack-videopress-jitm-card"]}),React.createElement(D,null),React.createElement(I,{onSaveChanges:X,onDelete:W,saveDisabled:!q,disabled:Ae||Ee,videoId:t}))},React.createElement(l.A,null,React.createElement(d.A,{horizontalSpacing:6,horizontalGap:10},React.createElement(u.A,{sm:4,md:8,lg:7},React.createElement(H,{title:E??"",onChangeTitle:Q,description:A??"",onChangeDescription:Y,loading:Ee,disabled:Ae})),React.createElement(u.A,{sm:4,md:8,lg:{start:9,end:12}},React.createElement(z.Ay,{thumbnail:be,loading:Ee,processing:ae||ge,deleting:Z,updating:$,duration:n,editable:!0,onSelectFromVideo:le,onUploadImage:pe}),React.createElement(U.A,{filename:a??"",uploadDate:i??"",shortcode:ke??"",loading:Ee,guid:e,isPrivate:F}),React.createElement("div",{className:M.A["side-fields"]},Ee?React.createElement(s.A,{height:40,className:(0,y.A)(M.A.field)}):React.createElement(p.SelectControl,{className:M.A.field,value:_,label:__("Privacy","jetpack-videopress-pkg"),onChange:e=>te(e),disabled:Ae,prefix:React.createElement("div",{className:M.A["privacy-icon"]},React.createElement(h.A,{icon:_===x.az&&R.A||_===x.o0&&k.A||_===x.CR&&f.A})),options:[{label:__("Site default","jetpack-videopress-pkg"),value:x.CR},{label:__("Public","jetpack-videopress-pkg"),value:x.az},{label:__("Private","jetpack-videopress-pkg"),value:x.o0}]}),Ee?React.createElement(s.A,{height:40,className:(0,y.A)(M.A.field)}):React.createElement(React.Fragment,null,React.createElement(o.Ay,{className:(0,y.A)(M.A.field,M.A.checkboxTitle)},__("Share","jetpack-videopress-pkg")),React.createElement(p.CheckboxControl,{checked:O,disabled:Ae,label:__("Display share menu and allow viewers to copy a link or embed this video","jetpack-videopress-pkg"),onChange:e=>re(e?1:0)})),Ee?React.createElement(s.A,{height:40,className:(0,y.A)(M.A.field)}):React.createElement(React.Fragment,null,React.createElement(o.Ay,{className:(0,y.A)(M.A.field,M.A.checkboxTitle)},__("Download","jetpack-videopress-pkg")),React.createElement(p.CheckboxControl,{checked:V,disabled:Ae,label:__("Display download option and allow viewers to download this video","jetpack-videopress-pkg"),onChange:e=>ne(e?1:0)})),Ae||Ee?React.createElement(s.A,{height:40,className:(0,y.A)(M.A.field)}):React.createElement(p.RadioControl,{className:(0,y.A)(M.A.field,M.A.rating),label:__("Rating","jetpack-videopress-pkg"),selected:C,options:[{label:__("G","jetpack-videopress-pkg"),value:x.ko},{label:__("PG-13","jetpack-videopress-pkg"),value:x.z7},{label:__("R","jetpack-videopress-pkg"),value:x.iL}],onChange:ee})))))))}},2267:(e,t,n)=>{"use strict";n.d(t,{A:()=>A});var r=n(9384),a=n(7143),o=n(7723),i=n(6941),s=n.n(i),c=n(1609),l=n(247),d=n(2185),u=n(1370),p=n(8634),m=n(6287),h=n(8962),g=n(9799),v=n(6302),f=n(2066),y=n(8326),w=n(7750),b=n(7882);const __=o.__,E=s()("videopress:use-edit-details"),A=()=>{const e=(0,l.W6)(),t=(0,a.useDispatch)(m.ax),{isRegistered:n}=(0,r.useConnection)();n||e.push("/");const{videoId:o}=(0,l.g)(),i=Number(o),{data:s,isFetching:A,processing:k,isDeleting:R,updateVideoPrivacy:C,isUpdatingPoster:S}=(0,b.A)(Number(i),!0),{playbackToken:_,isFetchingPlaybackToken:x}=(0,y.A)(s),[P,j]=(0,c.useState)(null),[N,V]=(0,c.useState)(null),[U,O]=(0,c.useState)(null),[z,T]=(0,c.useState)(!1),[M,L]=(0,c.useState)(!1),[F,I]=(0,c.useState)(!1),[D,H]=(0,c.useState)({title:s?.title,description:s?.description,privacySetting:h.zG[s?.privacySetting],rating:s?.rating,allowDownload:s?.allowDownload,displayEmbed:s?.displayEmbed}),{selectedTime:B,setVideoFrameMs:q,updatePosterImageFromFrame:$,selectAttachmentFromLibrary:G,updatePosterImageFromLibrary:J,...K}=(0,w.A)({video:s}),{metaChanged:Z,handleMetaUpdate:X,hasFieldChanged:W,hasPrivacySettingChanged:Q,...Y}=(({videoId:e,formData:t,video:n,updateData:r})=>{const a=(0,d.A)(e),o=e=>void 0===e||""===e,i=e=>{const r=t?.[e],a=n?.[e],i=r!==a;return!(o(r)&&o(a))&&i},s=["title","description","rating","allowDownload","displayEmbed"].some((e=>i(e)));return{setTitle:e=>{r({title:e})},setDescription:e=>{r({description:e})},setPrivacySetting:e=>{r({privacySetting:e})},setRating:e=>{r({rating:e})},setAllowDownload:e=>{r({allowDownload:e})},setDisplayEmbed:e=>{r({displayEmbed:e})},handleMetaUpdate:()=>new Promise(((e,n)=>{s?a(t).then(e).catch(n):e(null)})),metaChanged:s,hasFieldChanged:i,hasPrivacySettingChanged:()=>{const e=t?.privacySetting,r=n?.privacySetting,a=e!==h.zG[r];return!(o(e)&&o(r))&&a}}})({videoId:i,video:s,formData:D,updateData:e=>{H((t=>({...t,...e})))}});(0,c.useEffect)((()=>{null!=B&&O("video")}),[B]);const ee=Z||null!=B||P!==N||Q(),te=async()=>{if(W("description")){const e=(0,g.Ay)(D.description);if(D.description.length&&(0,f.A)(e)){E("Autogenerated chapters detected. Processing...");let e=!1;try{const t=await(0,u.X)({guid:s.guid,isPrivate:s.isPrivate}),n=t?.tracks?.chapters?.en?.src,r="string"==typeof n;if(r){const t=`https://videos.files.wordpress.com/${s.guid}/${n}`;e=await(0,p.Cr)(t,{guid:s.guid,isPrivate:s.isPrivate}),E("Chapter %o detected. Overwritable: %o",n,e?"yes":"no")}else E("Allow overwrite chapter: File does not exist");if(!r||e){const e={label:__("English (auto-generated)","jetpack-videopress-pkg"),srcLang:"en",kind:"chapters",tmpFile:(0,v.Ay)(D.description)};return E("Autogenerated track: %o",e),(0,p.n)(e,s.guid)}}catch(e){E("Error on chapters processing",e)}}}return null},ne=A&&void 0===D?.title&&void 0===D?.description;return(0,c.useEffect)((()=>{let e=!0;return!ne&&e&&H({title:s?.title,description:s?.description,privacySetting:h.zG[s?.privacySetting],rating:s?.rating,allowDownload:s?.allowDownload,displayEmbed:s?.displayEmbed}),()=>{e=!1}}),[ne]),{playbackToken:_,isFetchingPlaybackToken:x,...s,...D,hasChanges:ee,posterImageSource:U,libraryAttachment:P,selectPosterImageFromLibrary:async()=>{const e=await G();e&&(j(e),O("upload"))},handleSaveChanges:()=>{T(!0);const e=[X(),te()];"video"===U?e.push($()):"upload"===U&&e.push(J(P.id)),W("privacySetting")&&e.push(C(D.privacySetting)),Promise.allSettled(e).then((()=>{const e={...s,...D};delete e.posterImage,delete e.privacySetting,q(null),V(P),T(!1),t?.setVideo(e),L(!0)}))},handleDelete:()=>{I(!0)},isFetching:A,processing:k,isDeleting:R,updating:z,updated:M,deleted:F,selectedTime:B,...Y,...K,isUpdatingPoster:S}}},8575:(e,t,n)=>{"use strict";n.d(t,{X:()=>v});var r=n(9384),a=n(6427),o=n(7723),i=n(311),s=n(9783),c=n(3883),l=n(1113),d=n(3022),u=n(1609),p=n.n(u),m=n(4870);const __=o.__,h=e=>{switch(e){case"error":case"warning":default:return i.A;case"info":return s.A;case"success":return c.A}};function g({status:e="error",isDismissible:t=!1,className:n,children:r,actions:o,onRemove:i}){const s=(0,d.A)(n,m.A.notice,m.A[`is-${e}`]);return p().createElement(a.Notice,{status:e,isDismissible:t,onRemove:i,className:s,actions:o},p().createElement(l.A,{icon:h(e),className:m.A.icon}),p().createElement("div",{className:m.A.message},r))}const v=()=>{const{adminUri:e,registrationNonce:t}=window.jetpackVideoPressInitialState,{hasConnectedOwner:n,handleRegisterSite:a}=(0,r.useConnection)({redirectUri:e,from:"jetpack-videopress",registrationNonce:t});return n?null:p().createElement(g,{addConnectUserLink:!0,actions:[{label:__("Connect your user account to fix this","jetpack-videopress-pkg"),onClick:a,variant:"link",noDefaultClasses:!0}]},__("Some actions need a user connection to WordPress.com to be able to work","jetpack-videopress-pkg"))}},5333:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>y,DO:()=>f});var r=n(6072),a=n.n(r),o=n(7425),i=n(8478),s=n(6427),c=n(9491),l=n(7723),d=n(1113),u=n(1249),p=n(3022),m=n(1609),h=n(5341);const __=l.__,g=({className:e,disabled:t=!1,loading:n=!1,icon:r=null,endAdornment:o=null,onChange:i,onEnter:c,size:l="small",...d})=>{const u=(0,m.useCallback)((e=>{null!=i&&i(e.currentTarget.value)}),[i]),g=(0,m.useCallback)((e=>{null!=c&&["Enter","NumpadEnter"].includes(e.code)&&c(e.currentTarget.value)}),[c]),v={className:(0,p.A)(h.A.input,{[h.A["with-icon"]]:null!=r}),onChange:u,onKeyUp:g,disabled:t,"aria-disabled":t},f="textarea"===d?.type;return React.createElement("div",{className:(0,p.A)(e,h.A["input-wrapper"],{[h.A.disabled]:t,[h.A.large]:"large"===l,[h.A["is-textarea"]]:f})},f?React.createElement("textarea",a()({},d,v)):React.createElement(React.Fragment,null,n||r?React.createElement("div",{className:(0,p.A)(h.A["icon-wrapper"],{[h.A.loader]:n})},n?React.createElement(s.Spinner,null):r):null,React.createElement("input",a()({},d,v,{value:d.value})),o))},v=({name:e,label:t,className:n,size:r="small",...i})=>t?React.createElement("div",{className:n},React.createElement(o.Ay,{component:"label",variant:"small"===r?"body-small":"body",htmlFor:e,mb:1,className:h.A.label},t),React.createElement(g,a()({name:e,size:r},i))):React.createElement(g,a()({className:n,size:r},i)),f=({placeholder:e=__("Search your library","jetpack-videopress-pkg"),onSearch:t,wait:n=500,...r})=>{const o=(0,c.useDebounce)(t,n),s=(0,m.useCallback)((e=>{r.onEnter?.(e),t(e)}),[r.onEnter,t]),l=(0,m.useCallback)((e=>{r.onChange?.(e),o(e)}),[r.onChange]),g=(0,m.useCallback)((()=>{r.onChange?.(""),t("")}),[r.onChange]);return React.createElement(v,a()({},r,{icon:React.createElement(i.WI,{size:24}),placeholder:e,type:"text",onEnter:s,onChange:l,endAdornment:React.createElement(React.Fragment,null,Boolean(r.value)&&React.createElement("div",{className:(0,p.A)(h.A["icon-wrapper"])},React.createElement(d.A,{icon:u.A,onClick:g,className:(0,p.A)(h.A["clear-icon"])})))}))},y=v},8175:(e,t,n)=>{"use strict";n.d(t,{O6:()=>y,XL:()=>f});var r=n(6072),a=n.n(r),o=n(1112),i=n(7425),s=n(1113),c=n(8888),l=n(9115),d=n(3022),u=n(8728),p=n(957),m=n(3003);const h=(e,t)=>[...Array(t)].map(((t,n)=>n+e)),g=()=>React.createElement(o.A,{size:"small",className:(0,d.A)(m.A.button),variant:"tertiary",disabled:!0,"aria-disabled":!0},React.createElement(i.Ay,null,"...")),v=({className:e,currentPage:t=1,perPage:n,total:r,minColumns:a=7,disabled:i,onChangePage:u})=>{if(!r||!n)return null;const p=Math.ceil(r/n);if(t>p)return u(p),null;if(t<1)return u(1),null;const v=({page:e})=>{const n=e===t;return React.createElement(o.A,{size:"small",className:(0,d.A)(m.A.button,n?m.A.selected:null),variant:n?"primary":"tertiary",disabled:i,"aria-disabled":i,onClick:()=>u(e)},e)};let f,y=Math.max(a,7);if(y=y%2==0?y+1:y,p<=y)f=h(1,p).map((e=>React.createElement(v,{page:e,key:e})));else if(tReact.createElement(v,{page:e,key:e}))),React.createElement(g,null),React.createElement(v,{page:p}));else if(t>p-y+3)f=React.createElement(React.Fragment,null,React.createElement(v,{page:1}),React.createElement(g,null),h(p-y+3,y-2).map((e=>React.createElement(v,{page:e,key:e}))));else{const e=(y-5)/2;f=React.createElement(React.Fragment,null,h(1,e).map((e=>React.createElement(v,{page:e,key:e}))),React.createElement(g,null),h(t-1,3).map((e=>React.createElement(v,{page:e,key:e}))),React.createElement(g,null),h(p-e+1,e).map((e=>React.createElement(v,{page:e,key:e}))))}return React.createElement("div",{className:(0,d.A)(e,m.A.wrapper)},React.createElement(o.A,{size:"small",className:(0,d.A)(m.A.navigation,m.A.button),variant:"tertiary",disabled:i||1===t,"aria-disabled":i||1===t,onClick:()=>u(Math.max(1,t-1))},React.createElement(s.A,{icon:c.A})),f,React.createElement(o.A,{size:"small",className:(0,d.A)(m.A.navigation,m.A.button),variant:"tertiary",disabled:i||t===p,"aria-disabled":i||t===p,onClick:()=>u(Math.min(p,t+1))},React.createElement(s.A,{icon:l.A})))},f=e=>{const t=(0,u.o)(),{page:n,itemsPerPage:r,total:o,isFetching:i}=(0,p.Ay)();return o<=r?React.createElement("div",{className:(0,d.A)(e.className,m.A["pagination-placeholder"])}):React.createElement(v,a()({},e,{perPage:r,onChangePage:e=>{e>1?t.setParam("page",e):t.deleteParam("page"),t.update()},currentPage:n,total:o,disabled:i||e.disabled}))},y=e=>{const{setPage:t,page:n,itemsPerPage:r,total:o,isFetching:i}=(0,p.Ds)();return o{"use strict";n.d(t,{A:()=>d});var r=n(9245),a=n(489),o=n(1112),i=n(9384),s=n(7723),c=n(1609),l=n(7520);const __=s.__,d=({onRedirecting:e})=>{const{siteSuffix:t,adminUri:n,registrationNonce:d}=window.jetpackVideoPressInitialState,{siteProduct:u,productPrice:p}=(0,l.j)(),{yearly:m}=p,{handleRegisterSite:h,userIsConnecting:g}=(0,i.useConnection)({redirectUri:n,from:"jetpack-videopress",registrationNonce:d}),[v,f]=(0,c.useState)(!1),{run:y,hasCheckoutStarted:w}=(0,i.useProductCheckoutWorkflow)({siteSuffix:t,productSlug:m?.slug,redirectUrl:n}),b=u.features.map((e=>({name:e})));return React.createElement(r.Ay,{title:u.description,items:b},React.createElement(r.N0,{primary:!0},React.createElement(r.i7,null,React.createElement(a.A,{offPrice:m?.discount?m.salePriceByMonth:null,price:m.priceByMonth,promoLabel:m?.discount?(0,s.sprintf)(/* translators: placeholder is the number of videos */
+__("No videos match your search for %s.","jetpack-videopress-pkg"),o),{em:p().createElement("em",{className:E.A["query-no-results"]})}):__("No videos match your filtering criteria.","jetpack-videopress-pkg")),p().createElement(f.XL,{className:E.A.pagination}))},_=({videos:e,totalVideos:t,loading:n,uploading:r,onUploadClick:a})=>p().createElement(C,{totalVideos:t,hideFilter:!0,title:__("Local videos","jetpack-videopress-pkg")},p().createElement(b.R,{videos:e,loading:n,onActionClick:a,uploading:r}),p().createElement(f.O6,{className:E.A.pagination}))},8876:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(6072),a=n.n(r),o=n(3022),i=n(1609),s=n(6652);const c=(0,i.forwardRef)((({checked:e,onChange:t,className:n,...r},i)=>React.createElement("input",a()({},r,{ref:i,type:"checkbox",checked:e,className:(0,o.A)(n,s.A.checkbox),onChange:e=>{t?.(e.target.checked)}}))));c.displayName="Checkbox";const l=c},6955:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(1112),a=n(9491),o=n(7723),i=n(1609),s=n(8823);const __=o.__,c=({text:e,value:t,onCopy:n,resetTime:o=3e3})=>{const c=__("Copied!","jetpack-videopress-pkg"),l=__("Copy","jetpack-videopress-pkg"),[d,u]=(0,i.useState)(!1),p=t||e,m=(0,a.useCopyToClipboard)(p,(()=>{const e=setTimeout((()=>{u(!1),clearTimeout(e)}),o);u(!0),n?.()}));return React.createElement("div",{className:s.A.wrapper},React.createElement("input",{type:"text",value:e||t,onClick:e=>{e.currentTarget.select()},readOnly:!0}),React.createElement(r.A,{weight:"regular",variant:"secondary",size:"small",ref:m},d?c:l))}},3378:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(723),a=n(7425),o=n(1112),i=n(6427),s=n(7723),c=n(8838);const __=s.__,l=({onClose:e,onDelete:t})=>React.createElement(i.Modal,{title:__("Delete video","jetpack-videopress-pkg"),onRequestClose:e,className:c.A["delete-video-modal"]},React.createElement(r.Ay,null,React.createElement("div",null,React.createElement(a.Ay,null,__("This action cannot be undone.","jetpack-videopress-pkg")),React.createElement("div",{className:c.A["modal-actions"]},React.createElement(o.A,{className:c.A["modal-action-button"],variant:"secondary",weight:"bold",onClick:e},__("Cancel","jetpack-videopress-pkg")),React.createElement(o.A,{className:c.A["modal-action-button"],isDestructive:!0,variant:"primary",weight:"bold",onClick:t},__("Delete","jetpack-videopress-pkg"))))))},2784:(e,t,n)=>{"use strict";n.d(t,{A:()=>B});var r=n(442),a=n(5795),o=n(7425),i=n(1112),s=n(1876),c=n(2947),l=n(5640),d=n(5918),u=n(8509),p=n(6427),m=n(7723),h=n(1113),g=n(5437),v=n(7474),f=n(4066),y=n(3022),w=n(1609),b=n(247),E=n(6749),A=n(6151),k=n(7726),R=n(7121),C=n(2843),S=n(6720),_=n(2439),x=n(8962),P=n(9072),j=n(4951),N=n(957),V=n(5333),U=n(4565),O=n(3287),z=n(5419),T=n(4231),M=n(192),L=n(2267);const __=m.__,F=()=>{},I=({saveDisabled:e=!0,disabled:t=!1,onSaveChanges:n,onDelete:s,videoId:c})=>{const[l]=(0,r.A)("sm"),d=(0,b.W6)();return React.createElement("div",{className:(0,y.A)(M.A["header-wrapper"],{[M.A.small]:l})},React.createElement("button",{onClick:()=>d.push("/"),className:M.A["logo-button"]},React.createElement(a.A,null)),React.createElement("div",{className:M.A["header-content"]},React.createElement("div",{className:M.A.breadcrumb},!l&&React.createElement(h.A,{icon:g.A}),React.createElement(o.Ay,null,__("Edit video details","jetpack-videopress-pkg"))),React.createElement("div",{className:M.A.buttons},React.createElement(i.A,{disabled:e||t,onClick:n,isLoading:t},__("Save changes","jetpack-videopress-pkg")),React.createElement(O.A,{videoId:c,disabled:t,onDelete:s}))))},D=()=>{const{page:e}=(0,N.mo)(),t=e>1?`/?page=${e}`:"/";return React.createElement("div",{className:M.A["back-link"]},React.createElement(E.N_,{to:t,className:M.A.link},React.createElement(h.A,{icon:v.A,className:M.A.icon}),__("Go back","jetpack-videopress-pkg")))},H=({title:e,onChangeTitle:t,description:n,onChangeDescription:r,loading:a=!1,disabled:o=!1})=>{const{hasIncompleteChapters:i}=(0,_.A)(n);return React.createElement(React.Fragment,null,a?React.createElement(s.A,{height:88}):React.createElement(V.Ay,{value:e,label:__("Title","jetpack-videopress-pkg"),name:"title",onChange:t,onEnter:F,disabled:o,size:"large"}),a?React.createElement(s.A,{height:133,className:M.A.input}):React.createElement(React.Fragment,null,React.createElement(V.Ay,{value:n,className:M.A.input,label:__("Description","jetpack-videopress-pkg"),name:"description",onChange:r,onEnter:F,disabled:o,type:"textarea",size:"large",rows:8}),React.createElement("div",{className:M.A["chapters-help-container"]},i?React.createElement(C.A,{className:M.A["incomplete-chapters-notice"]}):React.createElement("div",{className:M.A["learn-more"]},React.createElement(A.A,null)))))},B=()=>{const{guid:e,id:t,duration:n,posterImage:r,filename:a,uploadDate:i,url:m,width:g,height:v,title:E,description:A,rating:C,privacySetting:_,allowDownload:V,displayEmbed:O,isPrivate:F,isFetchingPlaybackToken:B,hasChanges:q,updating:$,updated:G,deleted:J,isFetching:K,isDeleting:Z,handleSaveChanges:X,handleDelete:W,setTitle:Q,setDescription:Y,setRating:ee,setPrivacySetting:te,setAllowDownload:ne,setDisplayEmbed:re,processing:ae,useVideoAsThumbnail:oe,selectedTime:ie,handleConfirmFrame:se,handleCloseSelectFrame:ce,handleOpenSelectFrame:le,handleVideoFrameSelected:de,frameSelectorIsOpen:ue,selectPosterImageFromLibrary:pe,posterImageSource:me,libraryAttachment:he,isUpdatingPoster:ge}=(0,L.A)(),{canPerformAction:ve}=(0,P.J)(),fe=__("There are unsaved changes. Are you sure you want to exit?","jetpack-videopress-pkg");(0,j.A)({shouldPrevent:q&&!G&&!J&&ve,message:fe});const ye=(0,b.W6)(),{page:we}=(0,N.mo)();(0,w.useEffect)((()=>{if(!0===J){const e=we>1?`/?page=${we}`:"/";ye.push(e)}}),[J]),ve||ye.push("/");let be=r;"video"===me&&oe?be=React.createElement(S.L,{src:m,currentTime:ie}):"upload"===me&&(be=he.url);const Ee=K||B,Ae=Z||$,ke=`[videopress ${e}${g?` w=${g}`:""}${v?` h=${v}`:""}]`;return React.createElement(React.Fragment,null,React.createElement(b.XG,{when:q&&!G&&!J,message:fe}),ue&&React.createElement(T.A,{handleCloseSelectFrame:ce,url:m,handleVideoFrameSelected:de,selectedTime:ie,handleConfirmFrame:se}),React.createElement(c.A,{moduleName:__("Jetpack VideoPress","jetpack-videopress-pkg"),header:React.createElement(React.Fragment,null,React.createElement("div",{id:"jp-admin-notices",className:M.A["jetpack-videopress-jitm-card"]}),React.createElement(D,null),React.createElement(I,{onSaveChanges:X,onDelete:W,saveDisabled:!q,disabled:Ae||Ee,videoId:t}))},React.createElement(l.A,null,React.createElement(d.A,{horizontalSpacing:6,horizontalGap:10},React.createElement(u.A,{sm:4,md:8,lg:7},React.createElement(H,{title:E??"",onChangeTitle:Q,description:A??"",onChangeDescription:Y,loading:Ee,disabled:Ae})),React.createElement(u.A,{sm:4,md:8,lg:{start:9,end:12}},React.createElement(z.Ay,{thumbnail:be,loading:Ee,processing:ae||ge,deleting:Z,updating:$,duration:n,editable:!0,onSelectFromVideo:le,onUploadImage:pe}),React.createElement(U.A,{filename:a??"",uploadDate:i??"",shortcode:ke??"",loading:Ee,guid:e,isPrivate:F}),React.createElement("div",{className:M.A["side-fields"]},Ee?React.createElement(s.A,{height:40,className:(0,y.A)(M.A.field)}):React.createElement(p.SelectControl,{className:M.A.field,value:_,label:__("Privacy","jetpack-videopress-pkg"),onChange:e=>te(e),disabled:Ae,prefix:React.createElement("div",{className:M.A["privacy-icon"]},React.createElement(h.A,{icon:_===x.az&&R.A||_===x.o0&&k.A||_===x.CR&&f.A})),options:[{label:__("Site default","jetpack-videopress-pkg"),value:x.CR},{label:__("Public","jetpack-videopress-pkg"),value:x.az},{label:__("Private","jetpack-videopress-pkg"),value:x.o0}],__nextHasNoMarginBottom:!0}),Ee?React.createElement(s.A,{height:40,className:(0,y.A)(M.A.field)}):React.createElement(React.Fragment,null,React.createElement(o.Ay,{className:(0,y.A)(M.A.field,M.A.checkboxTitle)},__("Share","jetpack-videopress-pkg")),React.createElement(p.CheckboxControl,{checked:O,disabled:Ae,label:__("Display share menu and allow viewers to copy a link or embed this video","jetpack-videopress-pkg"),onChange:e=>re(e?1:0),__nextHasNoMarginBottom:!0})),Ee?React.createElement(s.A,{height:40,className:(0,y.A)(M.A.field)}):React.createElement(React.Fragment,null,React.createElement(o.Ay,{className:(0,y.A)(M.A.field,M.A.checkboxTitle)},__("Download","jetpack-videopress-pkg")),React.createElement(p.CheckboxControl,{checked:V,disabled:Ae,label:__("Display download option and allow viewers to download this video","jetpack-videopress-pkg"),onChange:e=>ne(e?1:0),__nextHasNoMarginBottom:!0})),Ae||Ee?React.createElement(s.A,{height:40,className:(0,y.A)(M.A.field)}):React.createElement(p.RadioControl,{className:(0,y.A)(M.A.field,M.A.rating),label:__("Rating","jetpack-videopress-pkg"),selected:C,options:[{label:__("G","jetpack-videopress-pkg"),value:x.ko},{label:__("PG-13","jetpack-videopress-pkg"),value:x.z7},{label:__("R","jetpack-videopress-pkg"),value:x.iL}],onChange:ee})))))))}},2267:(e,t,n)=>{"use strict";n.d(t,{A:()=>A});var r=n(9384),a=n(7143),o=n(7723),i=n(6941),s=n.n(i),c=n(1609),l=n(247),d=n(2185),u=n(1370),p=n(8634),m=n(6287),h=n(8962),g=n(9799),v=n(6302),f=n(2066),y=n(8326),w=n(7750),b=n(7882);const __=o.__,E=s()("videopress:use-edit-details"),A=()=>{const e=(0,l.W6)(),t=(0,a.useDispatch)(m.ax),{isRegistered:n}=(0,r.useConnection)();n||e.push("/");const{videoId:o}=(0,l.g)(),i=Number(o),{data:s,isFetching:A,processing:k,isDeleting:R,updateVideoPrivacy:C,isUpdatingPoster:S}=(0,b.A)(Number(i),!0),{playbackToken:_,isFetchingPlaybackToken:x}=(0,y.A)(s),[P,j]=(0,c.useState)(null),[N,V]=(0,c.useState)(null),[U,O]=(0,c.useState)(null),[z,T]=(0,c.useState)(!1),[M,L]=(0,c.useState)(!1),[F,I]=(0,c.useState)(!1),[D,H]=(0,c.useState)({title:s?.title,description:s?.description,privacySetting:h.zG[s?.privacySetting],rating:s?.rating,allowDownload:s?.allowDownload,displayEmbed:s?.displayEmbed}),{selectedTime:B,setVideoFrameMs:q,updatePosterImageFromFrame:$,selectAttachmentFromLibrary:G,updatePosterImageFromLibrary:J,...K}=(0,w.A)({video:s}),{metaChanged:Z,handleMetaUpdate:X,hasFieldChanged:W,hasPrivacySettingChanged:Q,...Y}=(({videoId:e,formData:t,video:n,updateData:r})=>{const a=(0,d.A)(e),o=e=>void 0===e||""===e,i=e=>{const r=t?.[e],a=n?.[e],i=r!==a;return!(o(r)&&o(a))&&i},s=["title","description","rating","allowDownload","displayEmbed"].some((e=>i(e)));return{setTitle:e=>{r({title:e})},setDescription:e=>{r({description:e})},setPrivacySetting:e=>{r({privacySetting:e})},setRating:e=>{r({rating:e})},setAllowDownload:e=>{r({allowDownload:e})},setDisplayEmbed:e=>{r({displayEmbed:e})},handleMetaUpdate:()=>new Promise(((e,n)=>{s?a(t).then(e).catch(n):e(null)})),metaChanged:s,hasFieldChanged:i,hasPrivacySettingChanged:()=>{const e=t?.privacySetting,r=n?.privacySetting,a=e!==h.zG[r];return!(o(e)&&o(r))&&a}}})({videoId:i,video:s,formData:D,updateData:e=>{H((t=>({...t,...e})))}});(0,c.useEffect)((()=>{null!=B&&O("video")}),[B]);const ee=Z||null!=B||P!==N||Q(),te=async()=>{if(W("description")){const e=(0,g.Ay)(D.description);if(D.description.length&&(0,f.A)(e)){E("Autogenerated chapters detected. Processing...");let e=!1;try{const t=await(0,u.X)({guid:s.guid,isPrivate:s.isPrivate}),n=t?.tracks?.chapters?.en?.src,r="string"==typeof n;if(r){const t=`https://videos.files.wordpress.com/${s.guid}/${n}`;e=await(0,p.Cr)(t,{guid:s.guid,isPrivate:s.isPrivate}),E("Chapter %o detected. Overwritable: %o",n,e?"yes":"no")}else E("Allow overwrite chapter: File does not exist");if(!r||e){const e={label:__("English (auto-generated)","jetpack-videopress-pkg"),srcLang:"en",kind:"chapters",tmpFile:(0,v.Ay)(D.description)};return E("Autogenerated track: %o",e),(0,p.n)(e,s.guid)}}catch(e){E("Error on chapters processing",e)}}}return null},ne=A&&void 0===D?.title&&void 0===D?.description;return(0,c.useEffect)((()=>{let e=!0;return!ne&&e&&H({title:s?.title,description:s?.description,privacySetting:h.zG[s?.privacySetting],rating:s?.rating,allowDownload:s?.allowDownload,displayEmbed:s?.displayEmbed}),()=>{e=!1}}),[ne]),{playbackToken:_,isFetchingPlaybackToken:x,...s,...D,hasChanges:ee,posterImageSource:U,libraryAttachment:P,selectPosterImageFromLibrary:async()=>{const e=await G();e&&(j(e),O("upload"))},handleSaveChanges:()=>{T(!0);const e=[X(),te()];"video"===U?e.push($()):"upload"===U&&e.push(J(P.id)),W("privacySetting")&&e.push(C(D.privacySetting)),Promise.allSettled(e).then((()=>{const e={...s,...D};delete e.posterImage,delete e.privacySetting,q(null),V(P),T(!1),t?.setVideo(e),L(!0)}))},handleDelete:()=>{I(!0)},isFetching:A,processing:k,isDeleting:R,updating:z,updated:M,deleted:F,selectedTime:B,...Y,...K,isUpdatingPoster:S}}},8575:(e,t,n)=>{"use strict";n.d(t,{X:()=>v});var r=n(9384),a=n(6427),o=n(7723),i=n(311),s=n(9783),c=n(3883),l=n(1113),d=n(3022),u=n(1609),p=n.n(u),m=n(4870);const __=o.__,h=e=>{switch(e){case"error":case"warning":default:return i.A;case"info":return s.A;case"success":return c.A}};function g({status:e="error",isDismissible:t=!1,className:n,children:r,actions:o,onRemove:i}){const s=(0,d.A)(n,m.A.notice,m.A[`is-${e}`]);return p().createElement(a.Notice,{status:e,isDismissible:t,onRemove:i,className:s,actions:o},p().createElement(l.A,{icon:h(e),className:m.A.icon}),p().createElement("div",{className:m.A.message},r))}const v=()=>{const{adminUri:e,registrationNonce:t}=window.jetpackVideoPressInitialState,{hasConnectedOwner:n,handleRegisterSite:a}=(0,r.useConnection)({redirectUri:e,from:"jetpack-videopress",registrationNonce:t});return n?null:p().createElement(g,{addConnectUserLink:!0,actions:[{label:__("Connect your user account to fix this","jetpack-videopress-pkg"),onClick:a,variant:"link",noDefaultClasses:!0}]},__("Some actions need a user connection to WordPress.com to be able to work","jetpack-videopress-pkg"))}},5333:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>y,DO:()=>f});var r=n(6072),a=n.n(r),o=n(7425),i=n(8478),s=n(6427),c=n(9491),l=n(7723),d=n(1113),u=n(1249),p=n(3022),m=n(1609),h=n(5341);const __=l.__,g=({className:e,disabled:t=!1,loading:n=!1,icon:r=null,endAdornment:o=null,onChange:i,onEnter:c,size:l="small",...d})=>{const u=(0,m.useCallback)((e=>{null!=i&&i(e.currentTarget.value)}),[i]),g=(0,m.useCallback)((e=>{null!=c&&["Enter","NumpadEnter"].includes(e.code)&&c(e.currentTarget.value)}),[c]),v={className:(0,p.A)(h.A.input,{[h.A["with-icon"]]:null!=r}),onChange:u,onKeyUp:g,disabled:t,"aria-disabled":t},f="textarea"===d?.type;return React.createElement("div",{className:(0,p.A)(e,h.A["input-wrapper"],{[h.A.disabled]:t,[h.A.large]:"large"===l,[h.A["is-textarea"]]:f})},f?React.createElement("textarea",a()({},d,v)):React.createElement(React.Fragment,null,n||r?React.createElement("div",{className:(0,p.A)(h.A["icon-wrapper"],{[h.A.loader]:n})},n?React.createElement(s.Spinner,null):r):null,React.createElement("input",a()({},d,v,{value:d.value})),o))},v=({name:e,label:t,className:n,size:r="small",...i})=>t?React.createElement("div",{className:n},React.createElement(o.Ay,{component:"label",variant:"small"===r?"body-small":"body",htmlFor:e,mb:1,className:h.A.label},t),React.createElement(g,a()({name:e,size:r},i))):React.createElement(g,a()({className:n,size:r},i)),f=({placeholder:e=__("Search your library","jetpack-videopress-pkg"),onSearch:t,wait:n=500,...r})=>{const o=(0,c.useDebounce)(t,n),s=(0,m.useCallback)((e=>{r.onEnter?.(e),t(e)}),[r.onEnter,t]),l=(0,m.useCallback)((e=>{r.onChange?.(e),o(e)}),[r.onChange]),g=(0,m.useCallback)((()=>{r.onChange?.(""),t("")}),[r.onChange]);return React.createElement(v,a()({},r,{icon:React.createElement(i.WI,{size:24}),placeholder:e,type:"text",onEnter:s,onChange:l,endAdornment:React.createElement(React.Fragment,null,Boolean(r.value)&&React.createElement("div",{className:(0,p.A)(h.A["icon-wrapper"])},React.createElement(d.A,{icon:u.A,onClick:g,className:(0,p.A)(h.A["clear-icon"])})))}))},y=v},8175:(e,t,n)=>{"use strict";n.d(t,{O6:()=>y,XL:()=>f});var r=n(6072),a=n.n(r),o=n(1112),i=n(7425),s=n(1113),c=n(8888),l=n(9115),d=n(3022),u=n(8728),p=n(957),m=n(3003);const h=(e,t)=>[...Array(t)].map(((t,n)=>n+e)),g=()=>React.createElement(o.A,{size:"small",className:(0,d.A)(m.A.button),variant:"tertiary",disabled:!0,"aria-disabled":!0},React.createElement(i.Ay,null,"...")),v=({className:e,currentPage:t=1,perPage:n,total:r,minColumns:a=7,disabled:i,onChangePage:u})=>{if(!r||!n)return null;const p=Math.ceil(r/n);if(t>p)return u(p),null;if(t<1)return u(1),null;const v=({page:e})=>{const n=e===t;return React.createElement(o.A,{size:"small",className:(0,d.A)(m.A.button,n?m.A.selected:null),variant:n?"primary":"tertiary",disabled:i,"aria-disabled":i,onClick:()=>u(e)},e)};let f,y=Math.max(a,7);if(y=y%2==0?y+1:y,p<=y)f=h(1,p).map((e=>React.createElement(v,{page:e,key:e})));else if(tReact.createElement(v,{page:e,key:e}))),React.createElement(g,null),React.createElement(v,{page:p}));else if(t>p-y+3)f=React.createElement(React.Fragment,null,React.createElement(v,{page:1}),React.createElement(g,null),h(p-y+3,y-2).map((e=>React.createElement(v,{page:e,key:e}))));else{const e=(y-5)/2;f=React.createElement(React.Fragment,null,h(1,e).map((e=>React.createElement(v,{page:e,key:e}))),React.createElement(g,null),h(t-1,3).map((e=>React.createElement(v,{page:e,key:e}))),React.createElement(g,null),h(p-e+1,e).map((e=>React.createElement(v,{page:e,key:e}))))}return React.createElement("div",{className:(0,d.A)(e,m.A.wrapper)},React.createElement(o.A,{size:"small",className:(0,d.A)(m.A.navigation,m.A.button),variant:"tertiary",disabled:i||1===t,"aria-disabled":i||1===t,onClick:()=>u(Math.max(1,t-1))},React.createElement(s.A,{icon:c.A})),f,React.createElement(o.A,{size:"small",className:(0,d.A)(m.A.navigation,m.A.button),variant:"tertiary",disabled:i||t===p,"aria-disabled":i||t===p,onClick:()=>u(Math.min(p,t+1))},React.createElement(s.A,{icon:l.A})))},f=e=>{const t=(0,u.o)(),{page:n,itemsPerPage:r,total:o,isFetching:i}=(0,p.Ay)();return o<=r?React.createElement("div",{className:(0,d.A)(e.className,m.A["pagination-placeholder"])}):React.createElement(v,a()({},e,{perPage:r,onChangePage:e=>{e>1?t.setParam("page",e):t.deleteParam("page"),t.update()},currentPage:n,total:o,disabled:i||e.disabled}))},y=e=>{const{setPage:t,page:n,itemsPerPage:r,total:o,isFetching:i}=(0,p.Ds)();return o{"use strict";n.d(t,{A:()=>d});var r=n(9245),a=n(489),o=n(1112),i=n(9384),s=n(7723),c=n(1609),l=n(7520);const __=s.__,d=({onRedirecting:e})=>{const{siteSuffix:t,adminUri:n,registrationNonce:d}=window.jetpackVideoPressInitialState,{siteProduct:u,productPrice:p}=(0,l.j)(),{yearly:m}=p,{handleRegisterSite:h,userIsConnecting:g}=(0,i.useConnection)({redirectUri:n,from:"jetpack-videopress",registrationNonce:d}),[v,f]=(0,c.useState)(!1),{run:y,hasCheckoutStarted:w}=(0,i.useProductCheckoutWorkflow)({siteSuffix:t,productSlug:m?.slug,redirectUrl:n}),b=u.features.map((e=>({name:e})));return React.createElement(r.Ay,{title:u.description,items:b},React.createElement(r.N0,{primary:!0},React.createElement(r.i7,null,React.createElement(a.A,{offPrice:m?.discount?m.salePriceByMonth:null,price:m.priceByMonth,promoLabel:m?.discount?(0,s.sprintf)(/* translators: placeholder is the number of videos */
__("%1$s%% off","jetpack-videopress-pkg"),m.discount):null,legend:__("/month, billed yearly","jetpack-videopress-pkg"),currency:m.currency}),React.createElement(o.A,{onClick:()=>{e?.(),y()},isLoading:w,fullWidth:!0,disabled:v||w||g},__("Get VideoPress","jetpack-videopress-pkg"))),React.createElement(r.eY,{isIncluded:!0}),React.createElement(r.eY,{isIncluded:!0}),React.createElement(r.eY,{isIncluded:!0}),React.createElement(r.eY,{isIncluded:!0})),React.createElement(r.N0,null,React.createElement(r.i7,null,React.createElement(a.A,{price:0,legend:"",currency:m.currency,hidePriceFraction:!0}),React.createElement(o.A,{fullWidth:!0,variant:"secondary",onClick:()=>{f(!0),h(),e?.()},isLoading:g||v,disabled:g||v||w},__("Start for free","jetpack-videopress-pkg"))),React.createElement(r.eY,{isIncluded:!1,label:React.createElement("strong",null,__("Upload one video","jetpack-videopress-pkg"))}),React.createElement(r.eY,{isIncluded:!0}),React.createElement(r.eY,{isIncluded:!1}),React.createElement(r.eY,{isIncluded:!1})))}},7663:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(1330),a=n(7425),o=n(7143),i=n(7723),s=n(3832),c=n(6287),l=n(7882),d=n(957),u=n(662);const __=i.__,p=({id:e,position:t=null,anchor:n=null})=>{const i=(0,o.useDispatch)(c.ax),{data:p}=(0,l.A)(Number(e)),{firstUploadedVideoId:m,firstVideoProcessed:h,dismissedFirstVideoPopover:g}=(0,d.Ay)(),v=Number(m)===Number(e)&&h&&!g,f=()=>i.dismissFirstVideoPopover(),y=window.jetpackVideoPressInitialState?.contentNonce??"",w=(0,s.addQueryArgs)("post-new.php",{videopress_guid:p.guid,_wpnonce:y});return v&&React.createElement(r.A,{title:__("Publish your new video","jetpack-videopress-pkg"),buttonContent:__("Add video to post","jetpack-videopress-pkg"),buttonHref:w,buttonExternalLink:!0,anchor:n,onClose:f,onClick:f,noArrow:!1,className:u.A["action-popover"],position:t},React.createElement(a.Ay,null,__("Now that your video has been uploaded to VideoPress, it's time to show it to the world.","jetpack-videopress-pkg")))}},8031:(e,t,n)=>{"use strict";n.d(t,{Aq:()=>a,Xb:()=>r});const r="atomic",a="jetpack"},3322:(e,t,n)=>{"use strict";n.d(t,{M:()=>p});var r=n(5918),a=n(8509),o=n(7425),i=n(7723),s=n(9072),c=n(9177),l=n(1755),d=n(8031);const __=i.__,u=({videoPressVideosPrivateForSite:e,siteIsPrivate:t,siteType:n,onPrivacyChange:i})=>{const{canPerformAction:c}=(0,s.J)(),u=t&&n===d.Xb,p=!c||u,m=u?__("You cannot change this setting because your site is private. You can only choose the video privacy default on public sites.","jetpack-videopress-pkg"):null;return React.createElement(r.A,{horizontalSpacing:0,horizontalGap:0},React.createElement(a.A,null,React.createElement(o.Ay,{variant:"headline-small",mb:1},__("Settings","jetpack-videopress-pkg"))),React.createElement(a.A,{sm:12,md:12,lg:12},React.createElement(l.R0,{for:"settings-site-privacy",label:__("Video Privacy: Restrict views to members of this site","jetpack-videopress-pkg"),onChange:i,checked:e,disabled:p,disabledReason:m})))},p=()=>{const{settings:e,onUpdate:t}=(0,c.T)(),{videoPressVideosPrivateForSite:n,siteIsPrivate:r,siteType:a}=e;return React.createElement(u,{videoPressVideosPrivateForSite:n,siteIsPrivate:r,siteType:a,onPrivacyChange:e=>{t({videoPressVideosPrivateForSite:e})}})}},1497:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var r=n(6072),a=n.n(r),o=n(442),i=n(3924),s=n(7425),c=n(1330),l=n(1112),d=n(7143),u=n(7723),p=n(1113),m=n(8248),h=n(4969),g=n(6673),v=n(3022),f=n(1609),y=n(6287),w=n(5419),b=n(8727);const __=u.__,E=({title:e,id:t})=>{const{dismissErroredVideo:n}=(0,d.useDispatch)(y.ax),r=!e,[u,E]=(0,f.useState)(null),[A]=(0,o.A)("sm"),[k,R]=(0,f.useState)(!1),[C,S]=(0,f.useState)(!1),_=()=>n(t),x=()=>S(!0),P=(0,i.A)("jetpack-videopress-dashboard-troubleshoot"),j=()=>S(!1);return React.createElement(React.Fragment,null,React.createElement("div",a()({className:(0,v.A)(b.A["video-card__wrapper"],{[b.A["is-blank"]]:r,[b.A.disabled]:A})},A&&{onClick:()=>R((e=>!e))}),!A&&React.createElement("div",{className:b.A["video-card__background"]}),React.createElement(w.Ay,{className:b.A["video-card__thumbnail"],ref:E,hasError:!0}),React.createElement("div",{className:b.A["video-card__title-section"]},A&&React.createElement("div",{className:b.A.chevron},k&&React.createElement(p.A,{icon:m.A}),!k&&React.createElement(p.A,{icon:h.A})),React.createElement(s.hE,{className:b.A["video-card__title"],mb:0,size:"small"},e)),C&&React.createElement(c.A,{title:__("Error","jetpack-videopress-pkg"),buttonContent:__("Visit the docs","jetpack-videopress-pkg"),buttonHref:P,buttonExternalLink:!0,anchor:u,onClose:j,onClick:j,noArrow:!1,className:b.A["action-popover"]},React.createElement(s.Ay,null,__("There's been an error uploading your video. Try uploading the video again, if the error persists, visit our documentation to troubleshoot the issue or contact support.","jetpack-videopress-pkg"))),!A&&React.createElement("div",{className:(0,v.A)(b.A["video-card__quick-actions-section"],b.A["is-blank"])},React.createElement(l.A,{variant:"primary",size:"small",onClick:x},__("Upload Error!","jetpack-videopress-pkg")),React.createElement(l.A,{size:"small",variant:"tertiary",icon:g.A,onClick:_}))),A&&k&&React.createElement("div",{className:(0,v.A)(b.A["video-card__quick-actions-section"],b.A.small)},React.createElement(l.A,{variant:"primary",size:"small",onClick:x},__("Upload Error!","jetpack-videopress-pkg")),React.createElement(l.A,{size:"small",variant:"tertiary",icon:g.A,onClick:_})))}},6411:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>C});var r=n(6072),a=n.n(r),o=n(1112),i=n(356),s=n(442),c=n(1876),l=n(7425),d=n(7723),u=n(1113),p=n(8248),m=n(4969),h=n(7267),g=n(3022),v=n(1609),f=n(9072),y=n(7882),w=n(7663),b=n(8596),E=n(5419),A=n(8727);const __=d.__,k=({id:e,onVideoDetailsClick:t,className:n})=>{const{canPerformAction:r}=(0,f.J)();return React.createElement("div",{className:(0,g.A)(A.A["video-card__quick-actions-section"],n)},React.createElement(o.A,{variant:"primary",size:"small",onClick:t,className:A.A["video-card__quick-actions__edit-button"],disabled:!r},__("Edit video details","jetpack-videopress-pkg")),e&&React.createElement(b.W,{videoId:e}))},R=({title:e,id:t,duration:n,plays:r,thumbnail:o,editable:f,showQuickActions:y=!0,loading:b=!1,isUpdatingPoster:R=!1,uploading:C=!1,processing:S=!1,uploadProgress:_,onVideoDetailsClick:x})=>{const P=!(e||n||r||o||b),j=void 0!==r,N=j?(0,d.sprintf)(/* translators: placeholder is a number of plays */
__("%s plays","jetpack-videopress-pkg"),(0,i.A)(r)):"",[V,U]=(0,v.useState)(null),[O]=(0,s.A)("sm"),[z,T]=(0,v.useState)(!1),M=b||C;return React.createElement(React.Fragment,null,React.createElement("div",a()({className:(0,g.A)(A.A["video-card__wrapper"],{[A.A["is-blank"]]:P,[A.A.disabled]:O||M})},O&&!M&&{onClick:()=>T((e=>!e))}),!O&&React.createElement("div",{className:A.A["video-card__background"]}),React.createElement(E.Ay,{className:A.A["video-card__thumbnail"],thumbnail:o,loading:b||R,uploading:C,processing:S,duration:b?null:n,editable:!b&&f,uploadProgress:_,ref:U}),React.createElement("div",{className:A.A["video-card__title-section"]},O&&!M&&React.createElement("div",{className:A.A.chevron},z&&React.createElement(u.A,{icon:p.A}),!z&&React.createElement(u.A,{icon:m.A})),b?React.createElement(c.A,{width:"60%",height:30}):React.createElement(l.hE,{className:A.A["video-card__title"],mb:0,size:"small"},e),b?React.createElement(c.A,{width:96,height:24}):React.createElement(React.Fragment,null,j&&React.createElement(l.Ay,{weight:"regular",size:"small",component:"div",className:A.A["video-card__video-plays-counter"]},React.createElement(u.A,{icon:h.A}),N))),React.createElement(w.A,{id:t,anchor:V}),y&&!O&&React.createElement(k,{id:t,onVideoDetailsClick:x,className:(0,g.A)({[A.A["is-blank"]]:b})})),y&&O&&z&&React.createElement(k,{id:t,onVideoDetailsClick:x,className:A.A.small}))},C=({id:e,...t})=>{const{isDeleting:n,uploading:r,processing:o,isUpdatingPoster:i,data:s,uploadProgress:c}=(0,y.A)(e),l=(n||t?.loading)&&!r&&!o,d=t?.editable&&!n&&!r&&!o;return React.createElement(R,a()({id:e},t,{loading:l,uploading:r,isUpdatingPoster:i,processing:o,editable:d,privacySetting:s.privacySetting,uploadProgress:c}))}},3287:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(1112),a=n(723),o=n(6427),i=n(7723),s=n(1597),c=n(1679),l=n(6307),d=n(6673),u=n(3832),p=n(1609),m=n(7882),h=n(3378),g=n(9907);const __=i.__,v=({disabled:e=!1,videoId:t,onDelete:n})=>{const[i,v]=(0,p.useState)(!1),{data:{guid:f,url:y},deleteVideo:w}=(0,m.A)(t),b=window.jetpackVideoPressInitialState?.contentNonce??"",E=(0,u.addQueryArgs)("post-new.php",{videopress_guid:f,_wpnonce:b}),A=(0,p.useCallback)((async()=>{v(!1),await w(),n()}),[w,n]);return React.createElement(React.Fragment,null,React.createElement(o.Dropdown,{placement:"bottom center",renderToggle:({isOpen:t,onToggle:n})=>React.createElement(r.A,{variant:"tertiary",disabled:e,icon:s.A,onClick:n,"aria-expanded":t}),renderContent:({onClose:t})=>React.createElement(a.Ay,null,React.createElement("div",{className:g.A.dropdown},React.createElement(r.A,{weight:"regular",fullWidth:!0,variant:"tertiary",icon:c.A,href:E,target:"_blank",disabled:e,onClick:t},__("Add to new post","jetpack-videopress-pkg")),React.createElement(r.A,{weight:"regular",fullWidth:!0,variant:"tertiary",icon:l.A,href:y,target:"_blank",disabled:e,onClick:t},__("Download file","jetpack-videopress-pkg")),React.createElement("hr",{className:g.A.separator}),React.createElement(r.A,{weight:"regular",fullWidth:!0,variant:"tertiary",icon:d.A,className:g.A.delete,disabled:e,onClick:()=>{v(!0),t()}},__("Delete video","jetpack-videopress-pkg"))))}),i&&React.createElement(h.A,{onClose:()=>v(!1),onDelete:A}))}},4565:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(7425),a=n(1876),o=n(8443),i=n(7723),s=n(9689),c=n(6955),l=n(7722);const __=i.__,d=({filename:e,uploadDate:t,shortcode:n,loading:i=!1,guid:d,isPrivate:u})=>{const p=!!t?.length&&(0,o.gmdateI18n)("F j, Y",t),m=(0,s.rB)(d,u);return React.createElement("div",{className:l.A.details},React.createElement("div",null,React.createElement(r.Ay,{variant:"body-small"},__("Link to video","jetpack-videopress-pkg")),i?React.createElement(a.A,{height:36}):React.createElement(c.A,{value:m})),React.createElement("div",null,React.createElement(r.Ay,{variant:"body-small"},__("WordPress shortcode","jetpack-videopress-pkg")),i?React.createElement(a.A,{height:36}):React.createElement(c.A,{value:n})),React.createElement("div",null,React.createElement(r.Ay,{variant:"body-small"},__("File name","jetpack-videopress-pkg")),i?React.createElement(a.A,{height:24}):React.createElement(r.Ay,{className:l.A.filename},e)),React.createElement("div",null,React.createElement(r.Ay,{variant:"body-small"},__("Upload date","jetpack-videopress-pkg")),i?React.createElement(a.A,{height:24}):React.createElement(r.Ay,null,p)))}},1755:(e,t,n)=>{"use strict";n.d(t,{Fr:()=>A,M2:()=>S,R0:()=>R});var r=n(6072),a=n.n(r),o=n(1112),i=n(7425),s=n(442),c=n(5918),l=n(8509),d=n(6427),u=n(7723),p=n(1113),m=n(9783),h=n(3022),g=n(6639),v=n(8962),f=n(8728),y=n(2807),w=n(957),b=n(8876),E=n(6455);const __=u.__,A=e=>{const{isActive:t,...n}=e;return React.createElement(o.A,a()({variant:t?"primary":"secondary",className:(0,h.A)(E.A["filter-button"],{[E.A["is-active"]]:t}),icon:g.A,weight:"regular"},n),__("Filters","jetpack-videopress-pkg"))},k=e=>React.createElement(d.Tooltip,{position:"middle center",text:e.message},React.createElement("span",{className:E.A["title-adornment"]},React.createElement(p.A,{icon:m.A}))),R=e=>React.createElement("label",{htmlFor:e.for,className:E.A["checkbox-container"]},React.createElement(b.A,{id:e.for,className:E.A.checkbox,onChange:e.onChange,checked:e.checked,disabled:e.disabled}),React.createElement("span",{className:E.A["checkbox-checkmark"]}),React.createElement(i.Ay,{variant:"body-small"},e.label),e.disabledReason&&React.createElement(k,{message:e.disabledReason})),C=e=>{const[t]=(0,s.A)("sm"),n=(t,n)=>!0===e?.filter?.[t]?.[n];return React.createElement("div",{className:(0,h.A)(E.A["filters-section"],e.className)},React.createElement(c.A,{horizontalSpacing:t?2:4,horizontalGap:2},React.createElement(l.A,{sm:4,md:4,lg:4},React.createElement(i.Ay,{variant:"body-extra-small-bold",weight:"bold"},__("Uploader","jetpack-videopress-pkg")),e.uploaders.map((t=>React.createElement(R,{key:t.id,label:t.name,for:`uploader-${t.id}`,onChange:n=>e.onChange?.(v.uX,t.id,n),checked:n(v.uX,t.id)})))),React.createElement(l.A,{sm:4,md:4,lg:4},React.createElement(i.Ay,{variant:"body-extra-small-bold",weight:"bold"},__("Privacy","jetpack-videopress-pkg")),React.createElement(R,{for:"filter-public",label:__("Public","jetpack-videopress-pkg"),onChange:t=>e.onChange?.(v.AV,v.zG.indexOf(v.az),t),checked:n(v.AV,v.zG.indexOf(v.az))}),React.createElement(R,{for:"filter-private",label:__("Private","jetpack-videopress-pkg"),onChange:t=>e.onChange?.(v.AV,v.zG.indexOf(v.o0),t),checked:n(v.AV,v.zG.indexOf(v.o0))})),React.createElement(l.A,{sm:4,md:4,lg:4},React.createElement(i.Ay,{variant:"body-extra-small-bold",weight:"bold"},__("Rating","jetpack-videopress-pkg")),React.createElement(R,{for:"filter-g",label:__("G","jetpack-videopress-pkg"),onChange:t=>e.onChange?.(v.VI,v.ko,t),checked:n(v.VI,v.ko)}),React.createElement(R,{for:"filter-pg-13",label:__("PG-13","jetpack-videopress-pkg"),onChange:t=>e.onChange?.(v.VI,v.z7,t),checked:n(v.VI,v.z7)}),React.createElement(R,{for:"filter-r",label:__("R","jetpack-videopress-pkg"),onChange:t=>e.onChange?.(v.VI,v.iL,t),checked:n(v.VI,v.iL)}))))},S=e=>{const{setFilter:t,filter:n}=(0,w.Ay)(),r=(0,f.o)(),{items:o}=(0,y.A)();return React.createElement(C,a()({},e,{onChange:(...e)=>{r.deleteParam("page"),r.update(),t(...e)},uploaders:o,filter:n}))}},6145:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(5918),a=n(8509),o=n(6411),i=n(1497),s=n(4761);const c=({videos:e,count:t=6,onVideoDetailsClick:n,loading:c})=>{const l=e.slice(0,t),d=(t,n)=>()=>{n?.(e[t])};return React.createElement("div",{className:s.A.wrapper},React.createElement(r.A,{fluid:!0,horizontalSpacing:0,horizontalGap:0},l.map(((e,t)=>React.createElement(a.A,{key:e?.guid??e?.id,sm:4,md:4,lg:4},e.error?React.createElement(i.A,{id:e?.id,title:e.title}):React.createElement(o.Ay,{id:e?.id,title:e.title,thumbnail:e?.posterImage,duration:e.duration,plays:e.plays,onVideoDetailsClick:d(t,n),loading:c}))))))}},3793:(e,t,n)=>{"use strict";n.d(t,{A:()=>w,R:()=>y});var r=n(442),a=n(7425),o=n(6427),i=n(7723),s=n(1113),c=n(9783),l=n(311),d=n(3022),u=n(1609),p=n(8962),m=n(7520),h=n(957),g=(n(8876),n(9983)),v=n(8533),f=n(6217);const __=i.__,y=({videos:e,showActionButton:t=!0,showQuickActions:n=!1,uploading:i=!1,onActionClick:v})=>{const[y,w]=(0,u.useState)([]),[b]=(0,r.A)("sm"),E=!1,{hasVideoPressPurchase:A}=(0,m.j)(),{uploadedVideoCount:k,isFetching:R}=(0,h.Ay)(),C=k>0||R||i?.length>0,S=t=>()=>{v?.(e[t])},_=e=>{if(e?.isUploadedToVideoPress)return React.createElement(o.Tooltip,{position:"top center",text:__("Video already uploaded to VideoPress","jetpack-videopress-pkg")},React.createElement("div",{className:f.A["title-adornment"]},React.createElement(s.A,{icon:c.A})));if(null!=e?.readError){const t=__("Video cannot be read","jetpack-videopress-pkg"),n=__("Video has an unsupported file type","jetpack-videopress-pkg");return React.createElement(o.Tooltip,{position:"top center",text:e?.readError===p.cl?n:t},React.createElement("div",{className:(0,d.A)(f.A["title-adornment"],f.A.error)},React.createElement(s.A,{icon:l.A})))}return null};return React.createElement("div",{className:f.A.list},React.createElement("div",{className:f.A.header},React.createElement("div",{className:f.A["title-wrapper"]},E,React.createElement(a.Ay,null,__("Title","jetpack-videopress-pkg"))),!b&&React.createElement("div",{className:f.A["data-wrapper"]},React.createElement(g.Uz,{privacy:"",duration:"",plays:"",upload:__("Upload date","jetpack-videopress-pkg")}))),e.map(((e,r)=>e?.id?React.createElement(g.TX,{key:`local-video-${e.id}`,id:e.id,title:e.title,showActionButton:t,showQuickActions:n,showCheckbox:E,uploadDate:e.uploadDate,onActionClick:S(r),actionButtonLabel:__("Upload to VideoPress","jetpack-videopress-pkg"),disabled:e?.isUploadedToVideoPress||null!=e?.readError,disableActionButton:C&&!A||i,titleAdornment:_(e)}):null)))},w=({videos:e,hidePrivacy:t=!1,hideDuration:n=!1,hidePlays:o=!1,showActionButton:i=!0,showQuickActions:s=!0,loading:c=!1,onVideoDetailsClick:l})=>{const[d,m]=(0,u.useState)([]),[h]=(0,r.A)("sm"),y=!1,w=(t,n)=>()=>{n?.(e[t])};return React.createElement("div",{className:f.A.list},React.createElement("div",{className:f.A.header},React.createElement("div",{className:f.A["title-wrapper"]},y,React.createElement(a.Ay,null,__("Title","jetpack-videopress-pkg"))),!h&&React.createElement("div",{className:f.A["data-wrapper"]},React.createElement(g.Uz,{privacy:t?null:__("Privacy","jetpack-videopress-pkg"),duration:n?null:__("Duration","jetpack-videopress-pkg"),plays:o?null:__("Plays","jetpack-videopress-pkg"),upload:__("Upload date","jetpack-videopress-pkg")}))),e.map(((e,r)=>{const a=p.zG[e.privacySetting]===p.o0;return e.error?React.createElement(v.A,{key:e?.guid??e?.id,id:e?.id,title:e?.title}):React.createElement(g.Ay,{key:e?.guid??e?.id,id:e?.id,checked:d.includes(r),title:e.title,thumbnail:e?.posterImage,duration:n?null:e.duration,plays:o?null:e.plays,isPrivate:t?null:a,uploadDate:e.uploadDate,showQuickActions:!e?.uploading&&s,showActionButton:!e?.uploading&&i,showCheckbox:y,className:f.A.row,onActionClick:w(r,l),loading:c,onSelect:e=>m((t=>{if(e)return[...t,r];if(!e&&indexOf>-1){const e=t.indexOf(r);return[...t.slice(0,e),...t.slice(e+1)]}return t}))})})))}},8596:(e,t,n)=>{"use strict";n.d(t,{W:()=>V});var r=n(6072),a=n.n(r),o=n(723),i=n(7425),s=n(1112),c=n(6427),l=n(7723),d=n(5938),u=n(4066),p=n(6673),m=n(3022),h=n(1609),g=n(7726),v=n(7121),f=n(8962),y=n(6791),w=n(9072),b=n(8326),E=n(7750),A=n(7882),k=n(3378),R=n(5419),C=n(4231),S=n(9284);const __=l.__,_=({showPopover:e=!1,isAnchorFocused:t=!1,anchor:n,children:r=null})=>{if((0,h.useEffect)((()=>{e&&!t&&n?.querySelector(".components-popover")?.focus()}),[e]),!n||!e)return null;const s={anchor:n,offset:15};return React.createElement(c.Popover,a()({position:"top center",noArrow:!0,focusOnMount:!1},s),React.createElement(o.Ay,null,React.createElement(i.Ay,{variant:"body-small",className:S.A.popover},r)))},x=({icon:e,children:t,className:n,...r})=>{const{setAnchor:o,setIsFocused:i,setIsHovering:c,anchor:l,isFocused:d,showPopover:u}=(0,y.V)();return React.createElement("div",{ref:o,className:n},React.createElement(s.A,a()({size:"small",variant:"tertiary",icon:e,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),onFocus:()=>i(!0),onBlur:()=>i(!1),disabled:r.disabled},r)),React.createElement(_,{showPopover:u,anchor:l,isAnchorFocused:d},t))},P=({description:e,onUpdate:t,isUpdatingPoster:n,disabled:r})=>{const{setAnchor:a,setIsFocused:i,setIsHovering:l,setShowPopover:u,anchor:p,isFocused:m,showPopover:h}=(0,y.V)();return React.createElement(c.Dropdown,{placement:"bottom left",renderToggle:({isOpen:t,onToggle:n})=>React.createElement("div",{ref:a},React.createElement(s.A,{size:"small",variant:"tertiary",icon:d.A,onClick:()=>{u(!1),n()},"aria-expanded":t,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),onFocus:()=>i(!0),onBlur:()=>i(!1),disabled:r}),React.createElement(_,{showPopover:h&&!t,anchor:p,isAnchorFocused:m},e)),renderContent:({onClose:e})=>React.createElement(o.Ay,null,React.createElement(R.sy,{isUpdatingPoster:n,onClose:e,onUseDefaultThumbnail:()=>t("default"),onSelectFromVideo:()=>t("select-from-video"),onUploadImage:()=>t("upload-image")}))})},j=({description:e,privacySetting:t,isUpdatingPrivacy:n,onUpdate:r,disabled:a})=>{const{setAnchor:i,setIsFocused:l,setIsHovering:d,setShowPopover:p,anchor:m,isFocused:h,showPopover:w}=(0,y.V)();let b=u.A;return f.zG[t]===f.o0?b=g.A:f.zG[t]===f.az&&(b=v.A),React.createElement(c.Dropdown,{placement:"bottom left",renderToggle:({isOpen:t,onToggle:r})=>React.createElement("div",{ref:i},React.createElement(s.A,{size:"small",variant:"tertiary",icon:b,onClick:()=>{p(!1),r()},"aria-expanded":t,onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),onFocus:()=>l(!0),onBlur:()=>l(!1),disabled:a||n}),React.createElement(_,{showPopover:w&&!t,anchor:m,isAnchorFocused:h},e)),renderContent:({onClose:e})=>React.createElement(o.Ay,null,React.createElement("div",{className:S.A["dropdown-content"]},React.createElement(s.A,{weight:"regular",fullWidth:!0,variant:"tertiary",icon:u.A,onClick:()=>{e(),r("site-default")},disabled:f.zG[t]===f.CR},__("Site default","jetpack-videopress-pkg")),React.createElement(s.A,{weight:"regular",fullWidth:!0,variant:"tertiary",icon:v.A,onClick:()=>{e(),r("public")},disabled:f.zG[t]===f.az},__("Public","jetpack-videopress-pkg")),React.createElement(s.A,{weight:"regular",fullWidth:!0,variant:"tertiary",icon:g.A,onClick:()=>{e(),r("private")},disabled:f.zG[t]===f.o0},__("Private","jetpack-videopress-pkg"))))})},N=({className:e,privacySetting:t,isUpdatingPrivacy:n,isUpdatingPoster:r,onUpdateVideoThumbnail:a,onUpdateVideoPrivacy:o,onDeleteVideo:i})=>{const{canPerformAction:s}=(0,w.J)();return React.createElement("div",{className:(0,m.A)(S.A.actions,e)},React.createElement(P,{onUpdate:a,description:__("Update thumbnail","jetpack-videopress-pkg"),isUpdatingPoster:r,disabled:!s}),React.createElement(j,{onUpdate:o,privacySetting:t,isUpdatingPrivacy:n,description:__("Update privacy","jetpack-videopress-pkg"),disabled:!s}),React.createElement(x,{icon:p.A,className:S.A.trash,onClick:i,disabled:!s},__("Delete video","jetpack-videopress-pkg")))},V=e=>{const{videoId:t}=e;if(!Number.isFinite(t))return null;const{data:n,updateVideoPrivacy:r,deleteVideo:o,isUpdatingPrivacy:i,isUpdatingPoster:s}=(0,A.A)(t),{isFetchingPlaybackToken:c}=(0,b.A)(n),[l,d]=(0,h.useState)(!1),{frameSelectorIsOpen:u,handleCloseSelectFrame:p,handleOpenSelectFrame:m,handleVideoFrameSelected:g,selectedTime:v,handleConfirmFrame:f,updatePosterImageFromFrame:y,selectAndUpdatePosterImageFromLibrary:w}=(0,E.A)({video:n});if((0,h.useEffect)((()=>{null!=v&&y()}),[v]),l)return React.createElement(k.A,{onClose:()=>d(!1),onDelete:()=>{d(!1),o()}});if(u)return React.createElement(React.Fragment,null,React.createElement(C.A,{handleCloseSelectFrame:p,url:n.url,handleVideoFrameSelected:g,selectedTime:v,handleConfirmFrame:f}));const{privacySetting:R}=n;return React.createElement(N,a()({},e,{onUpdateVideoPrivacy:r,onUpdateVideoThumbnail:async e=>{switch(e){case"select-from-video":return m();case"upload-image":return w()}},onDeleteVideo:()=>d(!0),privacySetting:R,isUpdatingPrivacy:i||c,isUpdatingPoster:s}))}},8533:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(442),a=n(3924),o=n(7425),i=n(1112),s=n(1330),c=n(7143),l=n(8443),d=n(7723),u=n(1113),p=n(8248),m=n(4969),h=n(6673),g=n(3022),v=n(1609),f=n(6287),y=n(5419),w=n(299);const __=d.__,b=({id:e,className:t="",title:n})=>{const b=(0,v.useRef)(null),E=(0,v.useRef)(null),[A]=(0,r.A)("sm"),[k,R]=(0,v.useState)(!1),[C,S]=(0,v.useState)(!1),[_,x]=(0,v.useState)(null),[P,j]=(0,v.useState)(!1),{dismissErroredVideo:N}=(0,c.useDispatch)(f.ax),V=(0,l.dateI18n)("M j, Y",new Date,null),U=!A&&b?.current?.offsetWidth"Space"===e||"Enter"===e,L=()=>{j(!0)},F=()=>{j(!1)},I=e=>t=>{t.stopPropagation(),e?.(t)},D=e=>{e.target!==E.current&&E?.current?.click()},H=()=>N(e);return React.createElement("div",{role:"button",tabIndex:0,onKeyDown:A?null:e=>{M(e?.code)&&R(!0)},onKeyUp:A?null:e=>{M(e?.code)&&(R(!1),D(e))},onClick:A?null:D,"aria-label":z,className:(0,g.A)(w.A["video-row"],{[w.A.pressed]:k,[w.A["hover-disabled"]]:A},t),ref:x},React.createElement("div",{className:(0,g.A)(w.A["video-data-wrapper"],{[w.A.small]:A})},React.createElement("div",{className:(0,g.A)(w.A["info-wrapper"],{[w.A.small]:A}),onClick:A?e=>{A?S((e=>!e)):D(e)}:null,role:"presentation"},React.createElement("div",{className:w.A.poster},React.createElement(y.Ay,{isRow:!0,hasError:!0})),React.createElement("div",{className:w.A["title-wrapper"]},U&&React.createElement(o.Ay,{variant:"body-extra-small",className:w.A.label,component:"span"},n),React.createElement(o.Ay,{variant:"title-small",className:(0,g.A)(w.A.title),ref:b},n),A&&React.createElement(o.Ay,{component:"div"},V)),A&&React.createElement(u.A,{icon:C?p.A:m.A,size:45})),O&&React.createElement("div",{className:(0,g.A)(w.A["meta-wrapper"],{[w.A.small]:A})},!A&&React.createElement("div",{className:w.A.actions},React.createElement(i.A,{size:"small",onClick:I(L)},__("Upload Error!","jetpack-videopress-pkg")),React.createElement(i.A,{size:"small",variant:"tertiary",icon:h.A,onClick:H})),A&&React.createElement("div",{className:w.A["mobile-actions"]},React.createElement(i.A,{size:"small",onClick:I(L)},__("Upload Error!","jetpack-videopress-pkg")),React.createElement(i.A,{size:"small",variant:"tertiary",icon:h.A,onClick:H})))),P&&React.createElement(s.A,{title:__("Error","jetpack-videopress-pkg"),buttonContent:__("Visit the docs","jetpack-videopress-pkg"),buttonHref:T,buttonExternalLink:!0,anchor:_,onClose:F,onClick:F,noArrow:!1,className:w.A["action-popover"],position:"top center"},React.createElement(o.Ay,null,__("There's been an error uploading your video. Try uploading the video again, if the error persists, visit our documentation to troubleshoot the issue or contact support.","jetpack-videopress-pkg"))))}},9983:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>x,TX:()=>_,Uz:()=>k.A});var r=n(6072),a=n.n(r),o=n(442),i=n(1112),s=n(7425),c=n(1876),l=n(8443),d=n(7723),u=n(1113),p=n(8248),m=n(4969),h=n(3022),g=n(1609),v=n(7726),f=n(9072),y=n(7882),w=n(8876),b=n(7663),E=n(8596),A=n(5419),k=n(822),R=n(299);const __=d.__,C=({duration:e,uploadDate:t,plays:n,isPrivate:r,loading:a=!1})=>{const[i]=(0,o.A)("sm"),s=__("Duration","jetpack-videopress-pkg"),c=__("Plays","jetpack-videopress-pkg"),l=__("Privacy","jetpack-videopress-pkg"),d=__("Private","jetpack-videopress-pkg"),p=__("Public","jetpack-videopress-pkg"),m=i?React.createElement(React.Fragment,null,React.createElement("span",null,l),React.createElement("span",null,r?d:p)):r&&React.createElement(u.A,{icon:v.A}),g=i&&e?React.createElement(React.Fragment,null,React.createElement("span",null,s),React.createElement("span",null,e)):e,f=i&&Number.isFinite(n)?React.createElement(React.Fragment,null,React.createElement("span",null,c),React.createElement("span",null,n)):n,y=i?null:t;return React.createElement(k.A,{privacy:"boolean"==typeof r?m:null,duration:g,plays:f,upload:y,loading:a,className:(0,h.A)({[R.A["mobile-stats"]]:i})})},S=({id:e,className:t="",checked:n=!1,title:r,titleAdornment:a=null,thumbnail:v,showThumbnail:y=!1,duration:k,uploadDate:S,plays:_,isPrivate:x,onActionClick:P,onSelect:j,showActionButton:N=!0,showQuickActions:V=!0,showCheckbox:U=!0,loading:O=!1,uploading:z=!1,processing:T=!1,isUpdatingPoster:M=!1,actionButtonLabel:L=__("Edit video details","jetpack-videopress-pkg"),disableActionButton:F=!1,disabled:I=!1,uploadProgress:D,isLocalVideo:H=!1})=>{const B=(0,g.useRef)(null),q=(0,g.useRef)(null),{canPerformAction:$}=(0,f.J)(),[G]=(0,o.A)("sm"),[J,K]=(0,g.useState)(!1),[Z,X]=(0,g.useState)(!1),[W,Q]=(0,g.useState)(null),Y=(e=>{if(e){const t=Math.floor(e/6e4),n=Math.floor(e%6e4/1e3);return`${t}:${n<10?"0":""}${n}`}})(k),ee=(0,l.dateI18n)("M j, Y",S,null),te=!G&&B?.current?.offsetWidth"Space"===e||"Enter"===e,se=(0,d.sprintf)(/* translators: 1 Video title, 2 Video duration, 3 Video upload date */
__("Video: %1$s, Duration: %2$s, Upload Date: %3$s. Click to edit details.","jetpack-videopress-pkg"),r,Y,ee),ce=React.createElement(i.A,{size:"small",onClick:(le=P,e=>{e.stopPropagation(),le?.(e)}),disabled:!$||F},L);var le;const de=e=>{e.target!==q.current&&q?.current?.click()};return(0,g.useEffect)((()=>{I&&X(!1)}),[I]),React.createElement("div",{role:"button",tabIndex:0,onKeyDown:G?null:e=>{ie(e?.code)&&K(!0)},onKeyUp:G?null:e=>{ie(e?.code)&&(K(!1),de(e))},onClick:G?null:de,"aria-label":se,className:(0,h.A)(R.A["video-row"],{[R.A.pressed]:J,[R.A.disabled]:I,[R.A["hover-disabled"]]:oe},t),ref:Q},U&&React.createElement("div",{className:(0,h.A)({[R.A["checkbox-wrapper-small"]]:G})},React.createElement(w.A,{ref:q,checked:n&&!O,tabIndex:-1,onChange:j,disabled:O})),React.createElement("div",{className:(0,h.A)(R.A["video-data-wrapper"],{[R.A.small]:G})},React.createElement("div",{className:(0,h.A)(R.A["info-wrapper"],{[R.A.small]:G}),onClick:G&&!O?e=>{ae?X((e=>!e)):de(e)}:null,role:"presentation"},y&&React.createElement("div",{className:R.A.poster},React.createElement(A.Ay,{thumbnail:v,loading:O||M,uploading:z,processing:T,blankIconSize:28,uploadProgress:D,isRow:!0})),React.createElement("div",{className:R.A["title-wrapper"]},te&&React.createElement(s.Ay,{variant:"body-extra-small",className:R.A.label,component:"span"},r),O?React.createElement(c.A,{height:30}):React.createElement(s.Ay,{variant:"title-small",className:(0,h.A)(R.A.title,{[R.A.disabled]:I}),ref:B},r,a),G&&React.createElement(React.Fragment,null,O?React.createElement(c.A,{height:20,width:"80%"}):React.createElement(s.Ay,{component:"div"},ee))),ae&&React.createElement(u.A,{icon:Z?p.A:m.A,size:45})),re&&React.createElement("div",{className:(0,h.A)(R.A["meta-wrapper"],{[R.A.small]:G})},!G&&ne&&React.createElement("div",{className:R.A.actions},N&&ce,V&&e&&React.createElement(E.W,{videoId:e})),React.createElement(C,{duration:Y,uploadDate:ee,plays:_,isPrivate:x,loading:O}),G&&ne&&React.createElement("div",{className:R.A["mobile-actions"]},N&&ce,V&&e&&React.createElement(E.W,{videoId:e})))),!H&&React.createElement(b.A,{id:e,anchor:W,position:"top center"}))},_=e=>React.createElement(S,a()({isLocalVideo:!0},e)),x=({id:e,...t})=>{const{isDeleting:n,uploading:r,processing:o,isUpdatingPoster:i,data:s,uploadProgress:c}=(0,y.A)(e),l=(n||t?.loading)&&!r&&!o;return React.createElement(S,a()({id:e},t,{loading:l,uploading:r,isUpdatingPoster:i,processing:o,showThumbnail:!0,privacySetting:s.privacySetting,uploadProgress:c}))}},822:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(442),a=n(1876),o=n(7425),i=n(3022),s=n(299);const c=({privacy:e,duration:t,plays:n,upload:c,loading:l=!1,className:d})=>{const[u]=(0,r.A)("sm");return React.createElement("div",{className:(0,i.A)(d,s.A.stats,{[s.A.small]:u})},l?React.createElement(React.Fragment,null,React.createElement(a.A,{height:24}),React.createElement(a.A,{height:24}),React.createElement(a.A,{height:24}),React.createElement(a.A,{height:24,className:s.A.upload})):React.createElement(React.Fragment,null,Boolean(e)&&React.createElement(o.Ay,{"aria-disabled":u?"false":"true",component:"div"},e),null!=t&&React.createElement(o.Ay,{component:"div"},t),null!=n&&React.createElement(o.Ay,{component:"div"},n),Boolean(c)&&React.createElement(o.Ay,{className:s.A.upload,component:"div"},c)))}},7812:(e,t,n)=>{"use strict";n.d(t,{i:()=>f});var r=n(6072),a=n.n(r),o=n(7425),i=n(2989),s=n(7723),c=n(3022),l=n(633),d=n.n(l),u=n(7520),p=n(9177),m=n(957),h=n(8031),g=n(7364);const __=s.__,v=({className:e,progressBarClassName:t,total:n,used:r})=>{if(!n||null==r)return null;const a=r/n,l=`${(100*a).toFixed()}%`,u=d()(n,{base:10});return React.createElement("div",{className:(0,c.A)(e)},React.createElement(o.Ay,{className:(0,c.A)(g.A["percentage-description"])},(0,s.sprintf)(/* translators: %1$s is the storage percentage, from 0% to 100%, %2$s is the total storage. */
__("%1$s of %2$s of cloud video storage","jetpack-videopress-pkg"),l,u)),React.createElement(i.A,{className:(0,c.A)(g.A["progress-bar"],t),progress:a}))},f=e=>{const{storageUsed:t,uploadedVideoCount:n}=(0,m.Ay)(),{features:r}=(0,u.j)(),{settings:o}=(0,p.T)(),{siteType:i}=o;return i===h.Xb||r?.isVideoPressUnlimitedSupported?null:n?t?React.createElement(v,a()({},e,{used:t,total:1e12})):React.createElement(v,a()({},e,{used:0,total:1})):null}},4231:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(442),a=n(723),o=n(1112),i=n(6427),s=n(7723),c=n(3022),l=n(1609),d=n(6720),u=n(7059);const __=s.__,p=({url:e,selectedTime:t,handleCloseSelectFrame:n,handleVideoFrameSelected:s,handleConfirmFrame:p})=>{const[m,h]=(0,l.useState)(null),[g]=(0,r.A)("sm");return React.createElement(i.Modal,{title:__("Select thumbnail from video","jetpack-videopress-pkg"),onRequestClose:n,isDismissible:!1},React.createElement(a.Ay,{targetDom:m},React.createElement("div",{ref:h,className:(0,c.A)(u.A.selector,{[u.A["is-small"]]:g})},React.createElement(d.A,{src:e,onVideoFrameSelected:s,initialCurrentTime:t}),React.createElement("div",{className:u.A.actions},React.createElement(o.A,{variant:"secondary",onClick:n},__("Close","jetpack-videopress-pkg")),React.createElement(o.A,{variant:"primary",onClick:p},__("Select this frame","jetpack-videopress-pkg"))))))}},5419:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>x,sy:()=>A});var r=n(1112),a=n(723),o=n(2989),i=n(7425),s=n(442),c=n(1876),l=n(6427),d=n(8443),u=n(7723),p=n(5938),m=n(1679),h=n(7534),g=n(2687),v=n(1113),f=n(311),y=n(8015),w=n(3022),b=n(1609),E=n(7959);const __=u.__,A=({onUseDefaultThumbnail:e,onSelectFromVideo:t,onUploadImage:n,onClose:a,isUpdatingPoster:o=!1})=>React.createElement(React.Fragment,null,React.createElement(r.A,{className:E.A.disabled,weight:"regular",fullWidth:!0,variant:"tertiary",icon:p.A,onClick:()=>{a(),e?.()}},__("Use default thumbnail","jetpack-videopress-pkg")),React.createElement(r.A,{weight:"regular",fullWidth:!0,variant:"tertiary",icon:m.A,onClick:()=>{a(),t?.()}},__("Select from video","jetpack-videopress-pkg")),React.createElement(r.A,{weight:"regular",fullWidth:!0,variant:"tertiary",icon:h.A,disabled:o,onClick:()=>{a(),n?.()}},__("Upload image","jetpack-videopress-pkg"))),k=({onUseDefaultThumbnail:e,onSelectFromVideo:t,onUploadImage:n,busy:o=!1})=>React.createElement("div",{className:E.A["video-thumbnail-edit"]},React.createElement(l.Dropdown,{placement:"bottom left",renderToggle:({isOpen:e,onToggle:t})=>React.createElement(r.A,{variant:"secondary",className:E.A["thumbnail__edit-button"],icon:g.A,disabled:o,onClick:t,"aria-expanded":e}),renderContent:({onClose:r})=>React.createElement(a.Ay,null,React.createElement(A,{onClose:r,onUseDefaultThumbnail:e,onSelectFromVideo:t,onUploadImage:n}))})),R=({uploadProgress:e=0,isRow:t=!1})=>{const n=__("Completing upload","jetpack-videopress-pkg"),r=__("Completing","jetpack-videopress-pkg"),a=t?r:n,s=`${Math.floor(100*e)}%`,c=(0,u.sprintf)(/* translators: placeholder is the upload percentage */
-__("Uploading %s","jetpack-videopress-pkg"),s),l=1===e?a:c;return React.createElement("div",{className:(0,w.A)(E.A["custom-thumbnail"],{[E.A["is-row"]]:t})},React.createElement(o.A,{className:E.A["progress-bar"],size:"small",progress:e}),React.createElement(i.Ay,{variant:t?"body-extra-small":"body",className:E.A["upload-text"]},l))},C=({isRow:e=!1})=>React.createElement("div",{className:E.A["custom-thumbnail"]},React.createElement(i.Ay,{variant:e?"body-extra-small":"body",className:E.A.pulse},__("Processing","jetpack-videopress-pkg"))),S=({isRow:e})=>React.createElement("div",{className:(0,w.A)(E.A["thumbnail-blank"],E.A["thumbnail-error"])},React.createElement(v.A,{icon:f.A,size:e?48:96})),_=(0,b.forwardRef)((({className:e,thumbnail:t,duration:n,editable:r,blankIconSize:a=96,loading:o=!1,uploading:l=!1,processing:u=!1,deleting:p=!1,updating:m=!1,onUseDefaultThumbnail:h,onSelectFromVideo:g,onUploadImage:f,uploadProgress:b,isRow:A=!1,hasError:_=!1},x)=>{const[P]=(0,s.A)("sm"),j=o||l||p||m;let N=t;return N=o?React.createElement(c.A,null):N,N=l?React.createElement(R,{isRow:A,uploadProgress:b}):N,N=u?React.createElement(C,{isRow:A}):N,N=_?React.createElement(S,{isRow:A}):N,N="string"==typeof N&&""!==N?React.createElement("img",{src:N,alt:__("Video thumbnail","jetpack-videopress-pkg")}):N,N=N||React.createElement("div",{className:E.A["thumbnail-blank"]},React.createElement(v.A,{icon:y.A,size:a})),React.createElement("div",{className:(0,w.A)(e,E.A.thumbnail,{[E.A["is-small"]]:P}),ref:x},Boolean(N)&&r&&React.createElement(k,{onUseDefaultThumbnail:h,onSelectFromVideo:g,onUploadImage:f,busy:j}),Number.isFinite(n)&&React.createElement("div",{className:E.A["video-thumbnail-duration"]},React.createElement(i.Ay,{variant:"body-small",component:"div"},n>=36e5?(0,d.gmdateI18n)("H:i:s",new Date(n)):(0,d.gmdateI18n)("i:s",new Date(n)))),React.createElement("div",{className:E.A["thumbnail-placeholder"]},N))}));_.displayName="VideoThumbnail";const x=_},9668:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(442),a=n(7425),o=n(1112),i=n(7723),s=n(1113),c=n(7711),l=n(3022),d=n(7770),u=n(7520),p=n(3463),m=n(4900);const __=i.__,h=({className:e,onSelectFiles:t})=>{const[n]=(0,r.A)("sm"),{inputRef:i,handleFileInputChangeEvent:h}=(0,p.A)({onSelectFiles:t}),{hasVideoPressPurchase:g}=(0,u.j)();return React.createElement("div",{className:(0,l.A)(m.A.wrapper,e,{[m.A.small]:n})},React.createElement("input",{ref:i,type:"file",accept:d.Zd,className:(0,l.A)(m.A["file-input"]),onChange:h,multiple:g}),React.createElement(s.A,{icon:c.A,size:32,className:(0,l.A)(m.A.icon)}),React.createElement(a.Ay,{variant:"title-small"},__("Drag and drop your video here","jetpack-videopress-pkg")),React.createElement(o.A,{size:"small",variant:"secondary",className:(0,l.A)(m.A.button),onClick:()=>{i.current.click()}},__("Select file to upload","jetpack-videopress-pkg")))}},6791:(e,t,n)=>{"use strict";n.d(t,{V:()=>a});var r=n(1609);const a=()=>{const[e,t]=(0,r.useState)(null),[n,a]=(0,r.useState)(!1),[o,i]=(0,r.useState)(!1),[s,c]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{a(!(!o&&!s))}),[o,s]),{setAnchor:t,setIsFocused:c,setIsHovering:i,setShowPopover:a,anchor:e,isFocused:s,isHovering:o,showPopover:n}}},6764:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(372),a=n(9384),o=n(1609);const i=({pageViewEventName:e,pageViewEventProperties:t={}})=>{const{isUserConnected:n,isRegistered:i,userConnectionData:s}=(0,a.useConnection)(),{blogId:c}=s?.currentUser||{},{login:l,ID:d}=s?.currentUser?.wpcomUser||{},{tracks:u}=r.A,{recordEvent:p}=u,m=(0,o.useCallback)((async(e,t)=>{p(e,t)}),[p]),h=(0,o.useCallback)(((e,t,n=()=>({}))=>(n="function"==typeof t?t:n,t="function"==typeof t?{}:t,c&&(t.blog_id=c),()=>m(e,t).then(n))),[m,c]);return(0,o.useEffect)((()=>{n&&d&&l&&r.A.initialize(d,l)}),[n,d,l]),(0,o.useEffect)((()=>{i&&e&&(c&&(t.blog_id=c),p(e,t))}),[c]),{recordEvent:m,recordEventHandler:h}}},9072:(e,t,n)=>{"use strict";n.d(t,{J:()=>a});var r=n(9384);const a=()=>{const{isRegistered:e,hasConnectedOwner:t,isUserConnected:n}=(0,r.useConnection)();return{isRegistered:e,hasConnectedOwner:t,isUserConnected:n,canPerformAction:e&&t&&n}}},7520:(e,t,n)=>{"use strict";n.d(t,{j:()=>d});var r=n(7143),a=n(6287),o=n(4523);const{paidFeatures:i={},siteProductData:s={},productData:c={},productPrice:l={}}=window&&window.jetpackVideoPressInitialState?window.jetpackVideoPressInitialState:{},d=()=>{const e=(0,o.x)(s.pricing_for_ui,!0),t=(0,o.x)(c.introductory_offer,!0),n={...(0,o.x)(c,!0),introductoryOffer:t},{purchases:d,isFetchingPurchases:u}=(0,r.useSelect)((e=>({purchases:e(a.ax).getPurchases(),isFetchingPurchases:e(a.ax).isFetchingPurchases()})),[]),p=d.map((e=>(0,o.x)(e,!0)));const m=["jetpack_videopress_bi_yearly","jetpack_videopress","jetpack_videopress_monthly","jetpack_complete_bi_yearly","jetpack_complete","jetpack_complete_monthly","jetpack_business","jetpack_business_monthly","jetpack_personal","jetpack_personal_monthly","jetpack_premium","jetpack_premium_monthly","videopress","videopress-pro","wp_p2_plus_monthly","bundle_pro","value_bundle","value_bundle_monthly","value_bundle-2y","value_bundle-3y","pro-plan","pro-plan-monthly","pro-plan-2y","business-bundle","business-bundle-monthly","business-bundle-2y","business-bundle-3y","wp_com_hundred_year_bundle_centennially","wp_bundle_migration_trial_monthly","wp_bundle_hosting_trial_monthly","ecommerce-bundle","ecommerce-bundle-monthly","ecommerce-bundle-2y","ecommerce-bundle-3y","ecommerce-trial-bundle-monthly","wooexpress-small-bundle-yearly","wooexpress-small-bundle-monthly","wooexpress-medium-bundle-yearly","wooexpress-medium-bundle-monthly"].some((e=>{return t=e,p.some((e=>e.productSlug===t));var t}));return{features:i,siteProduct:{...(0,o.x)({...s},!0),pricingForUi:e},product:n,productPrice:l,purchases:p,hasVideoPressPurchase:m,isFetchingPurchases:u}}},8326:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(7143),a=n(8962);function o(e){const t=e.needsPlaybackToken,n=(0,r.useSelect)((n=>t?n(a.ax).getPlaybackToken(e.guid):null),[e.guid]),o=(0,r.useSelect)((e=>!!t&&e(a.ax).isFetchingPlaybackToken()),[e.guid]);return{playbackToken:n?.token,isFetchingPlaybackToken:o}}},7750:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(7143),a=n(7723),o=n(1609),i=n(6287);const __=a.__,s=({video:e})=>{const[t,n]=(0,o.useState)(null),[a,s]=(0,o.useState)(null),[c,l]=(0,o.useState)(!1),d=(0,r.useDispatch)(i.ax),u=()=>new Promise((e=>{const t=window.wp.media({title:__("Select Thumbnail","jetpack-videopress-pkg"),multiple:!1,library:{type:"image"},button:{text:__("Use this image as thumbnail","jetpack-videopress-pkg")}});t.on("select",(function(){const n=t?.state()?.get("selection")?.first()?.toJSON();e({id:n?.id,url:n?.url})})),t.on("close",(function(){setTimeout((()=>{e(null)}),0)})),t.open()})),p=async t=>{if(null!=t)return d?.updateVideoPoster(e.id,e.guid,{poster_attachment_id:t})};return{handleConfirmFrame:()=>{n(a),l(!1)},handleCloseSelectFrame:()=>l(!1),handleOpenSelectFrame:()=>l(!0),handleVideoFrameSelected:e=>{s(e)},useVideoAsThumbnail:null!==t,selectedTime:Number.isFinite(t)?t/1e3:null,frameSelectorIsOpen:c,updatePosterImageFromFrame:()=>{if(Number.isFinite(t))return d?.updateVideoPoster(e.id,e.guid,{at_time:t,is_millisec:!0})},selectAttachmentFromLibrary:u,updatePosterImageFromLibrary:p,selectAndUpdatePosterImageFromLibrary:async()=>{const e=await u();if(e)return p(e.id)},setVideoFrameMs:n}}},8728:(e,t,n)=>{"use strict";n.d(t,{o:()=>a});var r=n(247);const a=()=>{const e=(0,r.zy)(),t=(0,r.W6)(),n=new URLSearchParams(e.search);return{getParam:(e,t=null)=>n.has(e)?n.get(e):t,setParam:(e,t=null)=>{n.set(e,t)},deleteParam:e=>{n.delete(e)},update:()=>{const e="?"+n.toString();e!==t.location.search&&t.push({search:e})},reset:()=>{""!==t.location.search&&t.replace({pathname:t.location.pathname,search:""})}}}},3463:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(1609),a=n(7770);const o=({canDrop:e=!1,dropElement:t,onSelectFiles:n}={})=>{const[o,i]=(0,r.useState)(!1),s=(0,r.useRef)(null);let c=[];const l=e=>Array.from(e).filter((e=>a.SK.some((t=>e.name.toLocaleLowerCase().endsWith(t))))),d=(0,r.useCallback)((e=>{const t=l(e.currentTarget.files);n(t)}),[n]),u=e=>{e.preventDefault(),e.stopPropagation(),c.length>0&&(c.forEach((e=>clearTimeout(e))),c=[]),i(!0)},p=()=>{const e=setTimeout((()=>{i(!1);const t=c.findIndex((t=>t===e));t>-1&&c.splice(t,1)}),100);c.push(e)},m=(0,r.useCallback)((t=>{if(i(!1),t.preventDefault(),t.stopPropagation(),c.forEach((e=>clearTimeout(e))),c=[],!e)return;const r=l(t.dataTransfer.files);n(r)}),[e,n]);return(0,r.useEffect)((()=>{e||i(!1)}),[e]),t&&(0,r.useEffect)((()=>(t.addEventListener("drop",m),t.addEventListener("dragover",u),t.addEventListener("dragleave",p),()=>{t.removeEventListener("drop",m),t.removeEventListener("dragover",u),t.removeEventListener("dragleave",p)})),[m,u,p]),{isDraggingOver:o,inputRef:s,setIsDraggingOver:i,handleFileInputChangeEvent:d,handleDragOverEvent:u,handleDragLeaveEvent:p,handleDropEvent:m,filterVideoFiles:l}}},4951:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1609);const a=({shouldPrevent:e=!1,message:t})=>{(0,r.useEffect)((()=>{if(!e)return;const n=e=>{e.preventDefault(),e.returnValue=t};return window.addEventListener("beforeunload",n),()=>{window.removeEventListener("beforeunload",n)}}),[e])}},2807:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(7143),a=n(8962);function o(){return{items:(0,r.useSelect)((e=>e(a.ax).getUsers())),...(0,r.useSelect)((e=>e(a.ax).getUsersPagination()))}}},7882:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7143),a=n(6287),o=n(8962);function i(e,t=!1){const n=(0,r.useDispatch)(a.ax),i=(0,r.useSelect)((n=>n(a.ax).getVideo(e,t)),[e]),s=(0,r.useSelect)((t=>t(a.ax).getVideoStateMetadata(e)),[e]),c=(0,r.useSelect)((e=>e(a.ax).getIsFetching()),[e]),l=null===i?.posterImage&&!i?.finished;return{data:{privacySetting:o.zG.indexOf(o.az),...i},...s,processing:l,isFetching:c,setVideo:e=>n.setVideo(e),deleteVideo:()=>n.deleteVideo(e),updateVideoPrivacy:t=>n.updateVideoPrivacy(e,o.zG.findIndex((e=>e===t)))}}},9177:(e,t,n)=>{"use strict";n.d(t,{T:()=>i});var r=n(7143),a=n(6287),o=n(8031);const i=()=>{const e=(0,r.useDispatch)(a.ax),t=(0,r.useSelect)((e=>e(a.ax).getVideoPressSettings()),[]);return{settings:{videoPressVideosPrivateForSite:t?.videoPressVideosPrivateForSite??!1,siteIsPrivate:t?.siteIsPrivate??!1,siteType:t?.siteType??o.Aq},onUpdate:t=>e.updateVideoPressSettings(t)}}},957:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>o,Ds:()=>i,mo:()=>s});var r=n(7143),a=n(8962);function o(){const e=(0,r.useSelect)((e=>e(a.ax).getVideos())),t=(0,r.useSelect)((e=>e(a.ax).getUploadingVideos())),n=t.length>0,o=(0,r.useSelect)((e=>e(a.ax).getUploadedVideoCount())),i=(0,r.useSelect)((e=>e(a.ax).getIsFetching())),s=(0,r.useSelect)((e=>e(a.ax).getIsFetchingUploadedVideoCount())),c=(0,r.useSelect)((e=>e(a.ax).getFirstUploadedVideoId())),l=(0,r.useSelect)((e=>e(a.ax).getFirstVideoProcessed())),d=(0,r.useSelect)((e=>e(a.ax).getDismissedFirstVideoPopover())),u=(0,r.useSelect)((e=>e(a.ax).getVideosQuery()||{})),p=(0,r.useSelect)((e=>e(a.ax).getPagination())),m=(0,r.useSelect)((e=>e(a.ax).getStorageUsed()),[]);return{items:e,uploading:t,isUploading:n,search:"",filter:(0,r.useSelect)((e=>e(a.ax).getVideosFilter())),uploadedVideoCount:o,isFetching:i,isFetchingUploadedVideoCount:s,firstUploadedVideoId:c,firstVideoProcessed:l,dismissedFirstVideoPopover:d,...u,...p,...m,uploadErrors:(0,r.useSelect)((e=>e(a.ax).getUploadErrorVideos())),setPage:e=>(0,r.dispatch)(a.ax).setVideosQuery({page:e}),setSearch:e=>(0,r.dispatch)(a.ax).setVideosQuery({search:e}),setFilter:(0,r.dispatch)(a.ax).setVideosFilter}}const i=()=>({items:(0,r.useSelect)((e=>e(a.ax).getLocalVideos())),uploadedLocalVideoCount:(0,r.useSelect)((e=>e(a.ax).getUploadedLocalVideoCount())),isFetching:(0,r.useSelect)((e=>e(a.ax).getIsFetchingLocalVideos())),...(0,r.useSelect)((e=>e(a.ax).getLocalVideosQuery()||{})),...(0,r.useSelect)((e=>e(a.ax).getLocalPagination())),setPage:e=>(0,r.dispatch)(a.ax).setLocalVideosQuery({page:e})}),s=()=>(0,r.useSelect)((e=>e(a.ax).getVideosQuery()||{}))},6592:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6427),a=n(7723);const __=a.__;function o({isOpen:e,onClose:t}){return e?React.createElement(r.Modal,{title:__("Chapters in VideoPress","jetpack-videopress-pkg"),isDismissible:!1,className:"learn-how-modal",onRequestClose:t},React.createElement("p",null,__("Chapters are a great way to split up longer videos and organize them into different sections.","jetpack-videopress-pkg")),React.createElement("p",null,__("They allow your visitors to see what each section is about and skip to their favorite parts.","jetpack-videopress-pkg")),React.createElement("p",{className:"learn-how-modal__heading"},__("How to add Chapters to your VideoPress videos","jetpack-videopress-pkg")),React.createElement("ol",null,React.createElement("li",null,__("In the Description, add a list of timestamps and titles.","jetpack-videopress-pkg")),React.createElement("li",null,__("Make sure that the first timestamp starts with 00:00.","jetpack-videopress-pkg")),React.createElement("li",null,__("Add at least three chapters entries and as many as you need.","jetpack-videopress-pkg")),React.createElement("li",null,__("Add your chapters entries in consecutive order, with at least 10-second intervals between each.","jetpack-videopress-pkg"))),React.createElement("p",{className:"learn-how-modal__heading"},__("Example","jetpack-videopress-pkg")),React.createElement("p",null,__("00:00 Intro","jetpack-videopress-pkg")),React.createElement("p",null,__("00:24 Mountains arise","jetpack-videopress-pkg")),React.createElement("p",null,__("02:38 Coming back home","jetpack-videopress-pkg")),React.createElement("p",null,__("03:04 Credits","jetpack-videopress-pkg")),React.createElement("div",{className:"learn-how-modal__buttons"},React.createElement(r.Button,{className:"learn-how-modal__button",onClick:t,variant:"primary"},__("Got it, thanks","jetpack-videopress-pkg")))):null}},6151:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(1112),a=n(6087),o=n(7723),i=n(1609),s=n(6592);const __=o.__,c=()=>{const[e,t]=(0,i.useState)(!1);return React.createElement(React.Fragment,null,(0,a.createInterpolateElement)(__("Did you know you can now add Chapters to your videos? Learn how","jetpack-videopress-pkg"),{link:React.createElement(r.A,{variant:"link",size:"small",onClick:()=>t(!0)})}),React.createElement(s.A,{onClose:()=>t(!1),isOpen:e}))}},7726:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6427);const a=React.createElement(r.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement(r.Path,{d:"M8.45414 21.2068L16.4541 3.70678L15.5446 3.29102L13.6676 7.39695C13.1429 7.3024 12.587 7.24988 11.9996 7.24988C9.00203 7.24988 6.82613 8.61747 5.41986 9.95678C4.71735 10.6259 4.19984 11.2937 3.85693 11.7955C3.6851 12.047 3.55604 12.2583 3.46859 12.4095C3.42483 12.4851 3.39141 12.5458 3.36817 12.5891C3.35655 12.6107 3.34747 12.6281 3.34091 12.6407L3.33296 12.6562L3.3304 12.6613L3.3291 12.6639C3.3291 12.6639 3.32878 12.6645 3.9996 12.9999C4.67042 13.3353 4.67016 13.3358 4.67016 13.3358L4.67297 13.3304C4.67621 13.3241 4.68183 13.3134 4.68987 13.2984C4.70594 13.2685 4.73159 13.2217 4.76694 13.1607C4.83769 13.0384 4.94691 12.8591 5.0954 12.6418C5.39312 12.2061 5.84435 11.6239 6.45434 11.043C7.67307 9.88229 9.49718 8.74988 11.9996 8.74988C12.353 8.74988 12.693 8.77247 13.0196 8.81455L12.8834 9.11243C12.6011 9.03897 12.3049 8.99988 11.9996 8.99988C10.0666 8.99988 8.49962 10.5669 8.49962 12.4999C8.49962 13.6966 9.1002 14.753 10.0163 15.3842L7.54467 20.791L8.45414 21.2068Z"}),React.createElement(r.Path,{d:"M15.7168 9.69537C16.4332 10.0877 17.041 10.563 17.5451 11.0431C18.1551 11.624 18.6064 12.2062 18.9041 12.6419C19.0526 12.8592 19.1618 13.0385 19.2325 13.1608C19.2679 13.2218 19.2935 13.2686 19.3096 13.2985L19.3211 13.3202L19.3265 13.3305L19.3293 13.3359C19.3293 13.3359 19.329 13.3354 19.9999 13C20.6707 12.6646 20.67 12.6632 20.67 12.6632L20.6691 12.6614L20.6665 12.6563L20.6586 12.6408C20.652 12.6282 20.6429 12.6108 20.6313 12.5892C20.6081 12.5459 20.5746 12.4852 20.5309 12.4096C20.4434 12.2584 20.3144 12.0471 20.1425 11.7956C19.7996 11.2938 19.2821 10.626 18.5796 9.95691C17.9765 9.38256 17.2319 8.803 16.3417 8.32834L15.7168 9.69537Z"}),React.createElement(r.Path,{d:"M12.8867 15.8868C14.3904 15.4942 15.5002 14.1267 15.5002 12.5C15.5002 11.9453 15.3711 11.4207 15.1414 10.9546L12.8867 15.8868Z"}))},6639:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6427);const a=React.createElement(r.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement(r.Rect,{x:"5",y:"7",width:"14",height:"1.5"}),React.createElement(r.Rect,{x:"7",y:"11.25",width:"10",height:"1.5"}),React.createElement(r.Rect,{x:"9",y:"15.5",width:"6",height:"1.5"}))},7975:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6427);const a=React.createElement(r.SVG,{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement(r.Path,{d:"M4.75725 2.075C4.60279 1.97745 4.41041 1.97489 4.25365 2.06832C4.09689 2.16174 4 2.3367 4 2.52632V21.4737C4 21.6633 4.09689 21.8383 4.25365 21.9317C4.41041 22.0251 4.60279 22.0226 4.75725 21.925L19.7573 12.4513C19.9079 12.3562 20 12.1849 20 12C20 11.8151 19.9079 11.6438 19.7573 11.5487L4.75725 2.075Z",fill:"white"}))},7121:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6427);const a=React.createElement(r.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement(r.Path,{d:"m3.999 13 .67.336.003-.005a2.42 2.42 0 0 1 .094-.17c.07-.122.18-.302.328-.52a10.1 10.1 0 0 1 1.36-1.598c1.218-1.16 3.042-2.293 5.545-2.293 2.502 0 4.326 1.132 5.545 2.293.61.581 1.061 1.163 1.359 1.599a8.29 8.29 0 0 1 .405.657l.017.032.003.005.67-.336.671-.336-.001-.003-.003-.005-.008-.015a9.752 9.752 0 0 0-.516-.845c-.343-.502-.86-1.17-1.563-1.84-1.406-1.338-3.582-2.706-6.58-2.706-2.997 0-5.173 1.368-6.58 2.707-.702.669-1.22 1.337-1.562 1.839a9.77 9.77 0 0 0-.516.845l-.008.015-.003.005v.003l.67.336Zm8 3a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z"}))},2843:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(1112),a=n(6427),o=n(6087),i=n(7723),s=n(1609),c=n(6592);const __=i.__,l=({className:e})=>{const[t,n]=(0,s.useState)(!1);return React.createElement(React.Fragment,null,React.createElement(a.Notice,{status:"warning",className:e,isDismissible:!1},(0,o.createInterpolateElement)(__("It seems there are some chapters, but they are incomplete. Check out the format and try again.","jetpack-videopress-pkg"),{link:React.createElement(r.A,{variant:"link",size:"small",onClick:()=>n(!0)})})),React.createElement(c.A,{onClose:()=>n(!1),isOpen:t}))}},6720:(e,t,n)=>{"use strict";n.d(t,{A:()=>d,L:()=>l});var r=n(6427),a=n(6087),o=n(1113),i=n(3022),s=n(7975),c=n(8766);const l=({src:e,setMaxDuration:t=null,currentTime:n})=>{const o=(0,a.useRef)(null),[i,s]=(0,a.useState)(!0);(0,a.useEffect)((()=>{o.current.src=e}),[e]),(0,a.useEffect)((()=>{o.current&&Number.isFinite(n)&&(o.current.currentTime=n)}),[n]);return React.createElement("div",{className:c.A["video-player-wrapper"]},i&&React.createElement("div",{className:c.A["video-player-spinner-wrapper"]},React.createElement(r.Spinner,{className:c.A.spinner})),React.createElement("video",{onLoadedData:()=>s(!1),ref:o,muted:!0,className:c.A.video,onDurationChange:e=>{const r=e.target.duration;if(t?.(r),o.current){const e=Number.isFinite(n)?n:r/2;o.current.currentTime=e}}}))},d=({src:e="",onVideoFrameSelected:t,className:n="",initialCurrentTime:d=null})=>{const[u,p]=(0,a.useState)(0),[m,h]=(0,a.useState)(Number.isFinite(d)?d:null);return React.createElement("div",{className:(0,i.A)(c.A.container,n)},React.createElement(o.A,{className:c.A["play-icon"],icon:s.A}),React.createElement(l,{src:e,setMaxDuration:p,currentTime:m}),React.createElement(r.RangeControl,{className:c.A.range,min:0,step:.1,initialPosition:m,max:u,showTooltip:!1,withInputField:!1,onChange:e=>{h(e),t?.(1e3*e)}}))}},2439:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(9491),a=n(1609),o=n(9799),i=n(2066);const s=e=>{const[t,n]=(0,a.useState)(!1),s=(0,a.useCallback)((()=>{const t=(0,o.Ay)(e);0===t.length?n(!1):n(!(0,i.A)(t))}),[e]),c=(0,r.useDebounce)(s,3e3);return(0,a.useEffect)((()=>{c()}),[e]),(0,a.useEffect)(s,[]),{hasIncompleteChapters:t}}},2185:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(1455),a=n.n(r);const o=e=>{const t={allowDownload:"allow_download",displayEmbed:"display_embed"};return n=>new Promise(((r,o)=>{const i=(s=Object.assign({id:e},n),Object.keys(s).reduce(((e,n)=>(e[t[n]||n]=s[n],e)),{}));var s;a()({path:"/wpcom/v2/videopress/meta",method:"POST",data:i}).then((e=>{"success"!==e?.code&&o()})).catch((e=>o(e))).finally((()=>{r()}))}))}},560:(e,t,n)=>{"use strict";n.d(t,{NP:()=>i});var r=n(1455),a=n.n(r),o=(n(6087),n(7723));n(781);const __=o.__,i=e=>{const t=`videopress/v1/upload/${e}`;return new Promise(((n,r)=>{a()({path:t,method:"POST"}).then((t=>{"uploading"===t.status||"new"===t.status||"resume"===t.status?i(e).then(n).catch(r):"complete"===t.status?n({guid:t.uploaded_details.guid,id:t.uploaded_details.media_id,src:t.uploaded_details.upload_src}):"error"===t.status?r({data:{message:t.error}}):r({data:{message:__("Unexpected error uploading video.","jetpack-videopress-pkg")}})})).catch((e=>{r({data:{message:e?.message}})}))}))}},1370:(e,t,n)=>{"use strict";n.d(t,{X:()=>u});var r=n(1455),a=n.n(r),o=n(6087),i=n(6941),s=n.n(i),c=n(8025);const l=o.Platform.isNative,d=s()("videopress:lib:fetch-video-item");async function u({guid:e,isPrivate:t,token:n=null,skipRatingControl:r=!1,retries:o=0}){try{const o=r?{}:{birth_day:"1",birth_month:"1",birth_year:"2000"};let i;t&&!n&&(i=await(0,c.A)("playback",{guid:e})),(n||i?.token)&&(o.metadata_token=n||i.token);const s=Object.keys(o).length?`?${new URLSearchParams(o).toString()}`:"",d=l?{path:`/rest/v1.1/videos/${e}${s}`}:{url:`https://public-api.wordpress.com/rest/v1.1/videos/${e}${s}`};return await a()({...d,credentials:"omit",global:!0})}catch(t){d("updating retry from",o,"to",o+1);const n=o+1;if(n>2)throw d("Too many attempts to get video. Aborting."),new Error(t?.message??t);if("auth"===t?.error)return d("Authentication error. Reattempt %o",n+"/3"),u({guid:e,isPrivate:!0,token:null,skipRatingControl:r,retries:n});if("Please supply the birthdate parameters."===t?.message)return d("Rating error. Reattempt %o",n+"/3"),u({guid:e,isPrivate:!0,token:null,skipRatingControl:!1,retries:n});throw new Error(t?.message??t)}}},8025:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(6941),a=n.n(r),o=n(5468);const i=a()("videopress:get-media-token");const s=async function(e,t={}){const{id:n=0,guid:r=0,flushToken:a}=t,s=`vpc-${e}-${n}-${r}`,c=window?.videopressAjax?.context||"main";let l;const d=localStorage.getItem(s);if(a)i("(%s) Flushing %o token",c,s),localStorage.removeItem(s);else try{if(d){if(l=await JSON.parse(d),l&&l.expire>Date.now())return i("(%s) Providing %o token from the store",c,s),l.data;i("(%s) Token %o expired. Clean.",c,s),localStorage.removeItem(s)}}catch(e){i("Invalid token in the localStore")}const u=await function(e,t={}){const{id:n=0,guid:r,subscriptionPlanId:a=0,adminAjaxAPI:i,filename:s}=t;return new Promise((function(t,c){const l=i||window.videopressAjax?.ajaxUrl||window?.ajaxurl||"/wp-admin/admin-ajax.php";if(!o.p.includes(e))return c("Invalid scope");const d={action:"videopress-get-playback-jwt"};switch(e){case"upload":d.action="videopress-get-upload-token",s&&(d.filename=s);break;case"upload-jwt":d.action="videopress-get-upload-jwt";break;case"playback":d.action="videopress-get-playback-jwt",d.guid=r,d.post_id=String(n),d.subscription_plan_id=a}fetch(l,{method:"POST",credentials:"same-origin",body:new URLSearchParams(d)}).then((e=>{if(!e.ok)throw new Error("Network response was not ok");return e.json()})).then((n=>{if(!n.success)throw new Error("Token is not achievable");switch(e){case"upload":case"upload-jwt":t({token:n.data.upload_token,blogId:n.data.upload_blog_id,url:n.data.upload_action_url});break;case"playback":t({token:n.data.jwt})}})).catch((()=>{console.warn("Token is not achievable"),t({token:null})}))}))}(e,t);return"playback"===e&&u?.token&&(i("(%s) Storing %o token",c,s),localStorage.setItem(s,JSON.stringify({data:u,expire:Date.now()+864e5}))),i("(%s) Providing %o token from request/response",c,s),u}},5468:(e,t,n)=>{"use strict";n.d(t,{p:()=>r});const r=["upload","playback","upload-jwt"]},5778:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(6941),a=n.n(r),o=n(781),i=n(8025);const s=a()("videopress:resumable-file-uploader"),c={},l=({file:e,tokenData:t,onProgress:n,onSuccess:r,onError:a})=>{const l=new o._O(e,{onError:a,onProgress:n,endpoint:t.url,removeFingerprintOnSuccess:!0,overridePatchMethod:!1,chunkSize:1e7,metadata:{filename:e.name,filetype:e.type},retryDelays:[0,1e3,3e3,5e3,1e4],onShouldRetry:function(e){return 400!==(e.originalResponse?e.originalResponse.getStatus():0)||(s("cleanup retry due to 400 error"),localStorage.removeItem(l._urlStorageKey),!1)},onBeforeRequest:async function(e){const n=e._method;if(["HEAD","OPTIONS"].indexOf(n)>=0&&(e._method="GET",e.setHeader("X-HTTP-Method-Override",n)),["DELETE","PUT","PATCH"].indexOf(n)>=0&&(e._method="POST",e.setHeader("X-HTTP-Method-Override",n)),e._xhr.open(e._method,e._url,!0),Object.keys(e._headers).forEach((function(t){e.setHeader(t,e._headers[t])})),"POST"===n){if(!!!t.token)throw"should never happen";e.setHeader("x-videopress-upload-token",t.token)}if(["OPTIONS","GET","HEAD","DELETE","PUT","PATCH"].indexOf(n)>=0){const t=(r=e._url,new URL(r).pathname.split("/").pop());if(c[t])e.setHeader("x-videopress-upload-token",c[t]);else if("HEAD"===n){const n=await(0,i.A)("upload-jwt");n?.token&&(c[t]=n.token,e.setHeader("x-videopress-upload-token",n.token))}}var r},onAfterResponse:async function(t,n){if(n.getStatus()>=400)return void s("upload error");const a=n.getHeader("x-videopress-upload-guid"),o=n.getHeader("x-videopress-upload-media-id"),i=n.getHeader("x-videopress-upload-src-url");if(a&&o&&i)return void(r&&r({id:Number(o),guid:a,src:i},e));const l={"x-videopress-upload-key-token":"token","x-videopress-upload-key":"key"},d={};Object.keys(l).forEach((function(e){const t=n.getHeader(e);t&&(d[l[e]]=t)})),d.key&&d.token&&(c[d.key]=d.token)}});return l.findPreviousUploads().then((function(e){e.length&&l.resumeFromPreviousUpload(e[0]),l.start()})),l}},9689:(e,t,n)=>{"use strict";n.d(t,{rB:()=>r});n(3832);function r(e,t){return t?`https://video.wordpress.com/v/${e}`:`https://videopress.com/v/${e}`}},8634:(e,t,n)=>{"use strict";n.d(t,{Cr:()=>u,n:()=>p});var r=n(1455),a=n.n(r),o=n(6941),i=n.n(o),s=n(8025);const{siteType:c=""}=window?.videoPressEditorState||{},l="simple"!==c,d=i()("videopress:tracks:lib:video-tracks");async function u(e,t){if(!e)return!1;let n,r="";t.isPrivate&&(n=await(0,s.A)("playback",{guid:t.guid}),r="?"+new URLSearchParams({metadata_token:n?.token}).toString());let a=await fetch(e+r);if(!a.ok&&403===a.status&&t.guid&&(n=await(0,s.A)("playback",{guid:t.guid}),r="?"+new URLSearchParams({metadata_token:n?.token}).toString(),a=await fetch(e+r)),!a.ok)return!1;const o=await a.text();return/videopress-chapters-auto-generated/.test(o)}const p=(e,t)=>{const{kind:n,srcLang:r,label:o,tmpFile:i}=e;return l?function(e,t){return d("using jetpack api fetch"),new Promise((function(n,r){const{kind:a,srcLang:o,label:i,tmpFile:c}=e;(0,s.A)("upload",{filename:c.name}).then((({token:e,blogId:s})=>{const l=new FormData;l.append("kind",a),l.append("srclang",o),l.append("label",i),l.append("vtt",c),fetch(`https://public-api.wordpress.com/rest/v1.1/videos/${t}/tracks`,{headers:{Authorization:`X_UPLOAD_TOKEN token="${e}" blog_id="${s}"`},method:"POST",body:l}).then((e=>{try{const t=e.json();return d("data",e),d("json",t),n(t)}catch(e){return d("error",e),r(e)}})).catch(r)}))}))}({kind:n,srcLang:r,label:o,tmpFile:i},t):(d("using wpcom api fetch"),new Promise((function(e,s){return a()({method:"POST",path:`/videos/${t}/tracks`,apiNamespace:"rest/v1.1",global:!0,parse:!1,formData:[["kind",n],["srclang",r],["label",o],["vtt",i]]}).then((t=>{try{const n=t.json();return d("data",t),d("json",n),e(n)}catch(e){return d("error",e),s(e)}})).catch(s)})))}},9596:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(1455),a=n.n(r),o=n(7723),i=n(3832),s=n(6941),c=n.n(s),l=n(560),d=n(8025),u=n(5778),p=n(3356),m=n(8962),h=n(8306),g=n(4603);const __=o.__,v=c()("videopress:actions"),f=async e=>{const t=await a()({path:(0,i.addQueryArgs)(`${m.$s}/${e?.id}`)}),n=(0,h.ac)(t);return null!==n?.posterImage&&""!==n?.posterImage?Promise.resolve(n):new Promise(((t,n)=>{setTimeout((()=>{f(e).then(t).catch(n)}),2e3)}))},y={setIsFetchingVideos:e=>({type:m.QK,isFetching:e}),setFetchVideosError:e=>({type:m.Ms,error:e}),setVideosQuery:e=>({type:m.pz,query:e}),setVideosPagination:e=>({type:m.Ni,pagination:e}),setVideosFilter:(e,t,n)=>({type:m.B1,filter:e,value:t,isActive:n}),setVideos:e=>({type:m.c$,videos:e}),dismissFirstVideoPopover:()=>({type:m.IX}),setLocalVideos:e=>({type:m.UB,videos:e}),setIsFetchingLocalVideos:e=>({type:m.k8,isFetching:e}),setLocalVideosQuery:e=>({type:m.DE,query:e}),setLocalVideosPagination:e=>({type:m.DX,pagination:e}),setVideosStorageUsed:e=>({type:m.qd,used:e}),setVideo:(e,t=!1)=>({type:m.Rd,video:e,addAtEnd:t}),setIsFetchingUploadedVideoCount:e=>({type:m.u7,isFetchingUploadedVideoCount:e}),setUploadedVideoCount:e=>({type:m.E9,uploadedVideoCount:e}),setVideoPrivacy:({id:e,privacySetting:t})=>({type:m.wx,id:e,privacySetting:t}),updateVideoPrivacy:(e,t)=>async({dispatch:n,select:r,resolveSelect:o})=>{const i=Number(t);if(isNaN(i))throw new Error(`Invalid privacy level: '${t}'`);if(0>i||i>=m.zG.length)throw new Error(`Invalid privacy level: '${t}'`);if(1===t){const t=await r.getVideo(e);await o.getPlaybackToken(t?.guid)}n.setVideoPrivacy({id:e,privacySetting:i});try{const t=await a()({path:m.bT,method:"POST",data:{id:e,privacy_setting:i}});if(200!==t?.data)return;const{videoPressVideosPrivateForSite:o}=r.getVideoPressSettings();return n.updateVideoIsPrivate(e,(0,g.D)(i,o)),n({type:m.d$,id:e,privacySetting:i})}catch(e){console.error(e)}},removeVideo:e=>({type:m.H9,id:e}),deleteVideo:e=>async({dispatch:t,select:n})=>{t.removeVideo(e);let r={type:m.WX,id:e,hasBeenDeleted:!1,video:{}};try{const t=await a()({path:`${m.$s}/${e}`,method:"DELETE",data:{id:e,force:!0}});t?.deleted&&(r={...r,hasBeenDeleted:!0,video:t?.previous})}catch(e){console.error(e)}finally{t(r)}n.getProcessedAllVideosBeingRemoved()&&(t({type:m.Aq}),t({type:m.kb}))},uploadVideo:e=>async({dispatch:t})=>{const n=(0,p.A)();v("Uploading video"),t({type:m.NX,id:n,title:e?.name});const r=await(0,d.A)("upload-jwt");(0,u.A)({tokenData:r,file:e,onError:e=>{v("Upload error",e);const r=e?.originalResponse?.getHeader("x-videopress-upload-error")||__("Upload error","jetpack-videopress-pkg");t({type:m.SH,id:n,error:r})},onProgress:(e,r)=>{t({type:m.TZ,id:n,bytesSent:e,bytesTotal:r})},onSuccess:async e=>{v("Video uploaded",e),t({type:m.TI,id:n,data:e});const r=await f(e);t({type:m.Ko,video:r})}})},uploadVideoFromLibrary:e=>async({dispatch:t})=>{const n=(0,p.A)();t({type:m.NX,id:n,title:e?.title});const r=await(0,l.NP)(e?.id);t({type:m.K,id:e?.id}),t({type:m.TI,id:n,data:r});const a=await f(r);t({type:m.Ko,video:a})},setIsFetchingPurchases:e=>({type:m.en,isFetching:e}),setPurchases:e=>({type:m.GY,purchases:e}),updateVideoPoster:(e,t,n)=>async({dispatch:r,select:o,resolveSelect:i})=>{const s=`${m.v2}/${t}/poster`,c=await o.getVideo(e),l=async()=>{if(!c.needsPlaybackToken)return null;const e=await i.getPlaybackToken(c.guid);return e?.token},d=(e,t)=>e&&t?`${e}?metadata_token=${t}`:e,u=()=>{setTimeout((async()=>{try{const t=await a()({path:s,method:"GET"});if(t?.data?.generating)u();else{const n=await l(),o=t?.data?.poster;r({type:m.OU,id:e,poster:d(o,n)}),a()({path:m.bT,method:"POST",data:{id:e,poster:o}})}}catch(e){console.error(e)}}),2e3)};try{r({type:m.N1,id:e});const t=c.duration-n.at_time;t<50&&(n.at_time-=t+50);const o=await a()({method:"POST",path:s,data:n});if(o?.data?.generating)return void u();const i=await l(),p=d(o?.data?.poster,i);return r({type:m.OU,id:e,poster:p})}catch(e){console.error(e)}},setUsers:e=>({type:m.q2,users:e}),setUsersPagination:e=>({type:m.NS,pagination:e}),setIsFetchingPlaybackToken:e=>({type:m.$N,isFetching:e}),setPlaybackToken:e=>({type:m.h7,playbackToken:e}),expirePlaybackToken:e=>({type:m.kp,guid:e}),setVideoPressSettings:e=>({type:m.Cj,videoPressSettings:e}),updateVideoPressSettings:e=>async({dispatch:t})=>{if(!e)return;const n={force:!0};"boolean"==typeof e.videoPressVideosPrivateForSite&&(n.videopress_videos_private_for_site=e.videoPressVideosPrivateForSite);try{t.setVideoPressSettings(e);return await a()({path:m.pC,method:"PUT",data:n})}catch(e){console.error(e)}},updateVideoIsPrivate:(e,t)=>({type:m.LF,id:e,isPrivate:t}),dismissErroredVideo:e=>({type:m.RZ,id:e})}},8962:(e,t,n)=>{"use strict";n.d(t,{$N:()=>I,$s:()=>o,AV:()=>ie,Aq:()=>V,B1:()=>C,CR:()=>Q,Cj:()=>J,DE:()=>A,DX:()=>k,Dv:()=>d,E9:()=>f,GY:()=>F,H9:()=>j,IX:()=>w,K:()=>R,Ko:()=>T,LF:()=>K,Ms:()=>p,N1:()=>$,NS:()=>q,NX:()=>U,Ni:()=>h,OU:()=>G,QK:()=>u,RZ:()=>Z,Rd:()=>S,SH:()=>O,TC:()=>c,TI:()=>z,TZ:()=>M,UB:()=>b,VI:()=>oe,WX:()=>P,ax:()=>r,az:()=>X,bT:()=>s,c$:()=>g,cl:()=>ee,d$:()=>x,en:()=>L,h7:()=>D,iL:()=>re,k8:()=>E,kb:()=>N,ko:()=>te,kp:()=>H,o0:()=>W,p9:()=>a,pC:()=>l,pz:()=>m,q2:()=>B,qd:()=>v,u7:()=>y,uX:()=>ae,v2:()=>i,wx:()=>_,z7:()=>ne,zG:()=>Y});const r="videopress/media",a="wp/v2/users",o="wp/v2/media",i="wpcom/v2/videopress",s="wpcom/v2/videopress/meta",c="wpcom/v2/videopress/playback-jwt",l="videopress/v1/settings",d="videopress/v1/site",u="SET_IS_FETCHING_VIDEOS",p="SET_VIDEOS_FETCH_ERROR",m="SET_VIDEOS_QUERY",h="SET_VIDEOS_PAGINATION",g="SET_VIDEOS",v="SET_VIDEOS_STORAGE_USED",f="SET_UPLOADED_VIDEO_COUNT",y="SET_IS_FETCHING_UPLOADED_VIDEO_COUNT",w="DISMISS_FIRST_VIDEO_POPOVER",b="SET_LOCAL_VIDEOS",E="SET_IS_FETCHING_LOCAL_VIDEOS",A="SET_LOCAL_VIDEOS_QUERY",k="SET_LOCAL_VIDEOS_PAGINATION",R="SET_LOCAL_VIDEO_UPLOADED",C="SET_VIDEOS_FILTER",S="SET_VIDEO",_="SET_VIDEO_PRIVACY",x="UPDATE_VIDEO_PRIVACY",P="DELETE_VIDEO",j="REMOVE_VIDEO",N="FLUSH_DELETED_VIDEOS",V="UPDATE_PAGINATION_AFTER_DELETE",U="SET_VIDEO_UPLOADING",O="SET_VIDEO_UPLOADING_ERROR",z="SET_VIDEO_PROCESSING",T="SET_VIDEO_UPLOADED",M="SET_VIDEO_UPLOAD_PROGRESS",L="SET_IS_FETCHING_PURCHASES",F="SET_PURCHASES",I="SET_IS_FETCHING_PLAYBACK_TOKEN",D="SET_PLAYBACK_TOKEN",H="EXPIRE_PLAYBACK_TOKEN",B="SET_USERS",q="SET_USERS_PAGINATION",$="SET_UPDATING_VIDEO_POSTER",G="UPDATE_VIDEO_POSTER",J="SET_VIDEOPRESS_SETTINGS",K="UPDATE_VIDEO_IS_PRIVATE",Z="DISMISS_ERRORED_VIDEO",X="public",W="private",Q="site-default",Y=[X,W,Q],ee=2,te="G",ne="PG-13",re="R-17",ae="uploader",oe="rating",ie="privacy"},6287:(e,t,n)=>{"use strict";n.d(t,{ax:()=>i.ax,k$:()=>h});var r=n(6941),a=n.n(r),o=n(9596),i=n(8962),s=n(2354),c=n(3132),l=n(6225),d=n(3486);const u=a()("videopress/media:state"),p=window.jetpackVideoPressInitialState?.initialState||{videos:{}},m=window.location.hash.split("?");function h(){u("Initializing %o store",i.ax),d.A.mayBeInit(i.ax,{__experimentalUseThunks:!0,reducer:s.A,actions:o.A,selectors:l.Ay,resolvers:c.A,initialState:p})}"#/"===m?.[0]&&m?.[1]&&"page=1"!==m?.[1]&&(p.videos.isFetching=!0)},2354:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,S:()=>i});var r=n(7143),a=n(3832),o=n(8962);function i(){return{order:"desc",orderBy:"date",itemsPerPage:6,page:1,type:"video/videopress"}}const s=(0,r.combineReducers)({videos:(e,t)=>{switch(t.type){case o.QK:return{...e,isFetching:t.isFetching};case o.Ms:{const{error:n}=t;return{...e,isFetching:!1,error:n}}case o.pz:return{...e,query:{...e.query,...t.query},_meta:{...e._meta,relyOnInitialState:!1}};case o.Ni:return{...e,pagination:{...e.pagination,...t.pagination},_meta:{...e._meta,relyOnInitialState:!1}};case o.B1:{const{filter:n,value:r,isActive:a}=t;return{...e,filter:{...e.filter,[n]:{...e.filter?.[n]||{},[r]:a}},_meta:{...e._meta,relyOnInitialState:!1}}}case o.c$:{const{videos:n}=t;return{...e,items:n,isFetching:!1}}case o.Rd:{const{video:n,addAtEnd:r=!1}=t,a=[...e.items??[]],o=a.findIndex((e=>e.id===n.id));return-1===o?r?a.push(n):a.unshift(n):a[o]={...a[o],...n},{...e,isFetching:!1,items:a}}case o.wx:{const{id:n,privacySetting:r}=t,a=[...e.items??[]],o=a.findIndex((e=>e.id===n));if(o<0)return e;const i=a[o].privacySetting;a[o]={...a[o],privacySetting:r};const s={...e._meta?.items??[]},c=s[n]??{};return{...e,items:a,_meta:{...e._meta,items:{...s,[n]:{...c,isUpdatingPrivacy:!0,hasBeenUpdatedPrivacy:!1,prevPrivacySetting:i}}}}}case o.d$:{const{id:n}=t,r={...e._meta?.items??[]};if(!r?.[n])return e;const a=r[n]??{};return{...e,_meta:{...e._meta,items:{...r,[n]:{...a,isUpdatingPrivacy:!1,hasBeenUpdatedPrivacy:!0,prevPrivacySetting:null}}}}}case o.LF:{const{id:n,isPrivate:r}=t,a=[...e.items??[]],o=a.findIndex((e=>e.id===n));return o<0?e:(a[o]={...a[o],isPrivate:r},{...e,items:a})}case o.H9:{const{id:n}=t,{items:r=[]}=e;if(r.findIndex((e=>e.id===n))<0)return e;const a={...e._meta?.items??[]},o=a[n]??{};return{...e,_meta:{...e._meta,videosBeingRemoved:[{id:n,processed:!1,deleted:!1},...e._meta.videosBeingRemoved??[]],items:{...a,[n]:{...o,isDeleting:!0}}}}}case o.WX:{const{id:n,hasBeenDeleted:r,video:a}=t,o=e?._meta?.items||[],i=o[n]||{},s=[...e._meta.videosBeingRemoved??[]],c=s.findIndex((e=>e.id===n));if(!i||c<0)return e;s[c].processed=!0,s[c].deleted=r;const l=0===s.filter((e=>!e.processed)).length;let d=e.uploadedVideoCount??0;if(l){d-=s.filter((e=>e.deleted)).length}return{...e,uploadedVideoCount:d,_meta:{...e._meta,videosBeingRemoved:s,processedAllVideosBeingRemoved:l,items:{...o,[n]:{...i,hasBeenDeleted:r,deletedVideo:a}}}}}case o.kb:return{...e,_meta:{...e._meta,videosBeingRemoved:[],relyOnInitialState:!1}};case o.Aq:{const{items:t=[],query:n={},pagination:r={},_meta:a={}}=e,{videosBeingRemoved:o=[]}=a,i=o.filter((e=>e.deleted)).length,s=t?.length===i,c=n?.page??1,l=r?.totalPages??1,d=r?.total,u=s&&c>1?c-1:c,p=s&&l>1?l-1:l;return{...e,query:{...n,page:u},pagination:{...r,total:d-1,totalPages:p}}}case o.qd:return{...e,storageUsed:t.used};case o.u7:return{...e,isFetchingUploadedVideoCount:t.isFetchingUploadedVideoCount};case o.E9:return{...e,uploadedVideoCount:t.uploadedVideoCount,isFetchingUploadedVideoCount:!1};case o.NX:{const{id:n,title:r}=t,o=e?._meta||{},i=o?.items||{},s=(0,a.cleanForSlug)(r);return{...e,_meta:{...o,items:{...i,[n]:{title:s,uploading:!0}}}}}case o.SH:{const{id:n,error:r}=t,a=e?._meta||{},o=a?.items||{};return{...e,_meta:{...a,items:{...o,[n]:{...o[n],uploading:!1,error:r}}}}}case o.RZ:{const{id:n}=t,r=e?._meta||{},a=r?.items||{};return delete a[n],{...e,_meta:{...r,items:{...a}}}}case o.TI:{const{id:n,data:r}=t,o=e?.query??{order:"desc",orderBy:"date",itemsPerPage:6,page:1,type:"video/videopress"},i={...e.pagination},s=[...e?.items??[]],c=e?._meta||{},l=Object.assign({},c?.items||{}),d=r?.src?.split("/")?.slice(-1)?.[0]||l[n]?.title||"",u=(0,a.cleanForSlug)(d);let p=e?.uploadedVideoCount??0,m=e?.firstUploadedVideoId??null,h=e?.firstVideoProcessed??!1,g=e?.dismissedFirstVideoPopover??!1;return 0===p&&(m=r.id,h=!1,g=!1),1!==o?.page||o?.search||(p=(e?.uploadedVideoCount??0)+1,i.total=p,i.totalPages=Math.ceil(p/o?.itemsPerPage),s.unshift({id:r.id,guid:r.guid,url:r.src,title:u,posterImage:null,finished:!1})),delete l[n],{...e,items:s,uploadedVideoCount:p,firstUploadedVideoId:m,firstVideoProcessed:h,dismissedFirstVideoPopover:g,pagination:i,_meta:{...c,items:l}}}case o.Ko:{const{video:n}=t,r=[...e?.items??[]],a=r.findIndex((e=>e.id===n.id)),o=e?.firstUploadedVideoId??null;let i=e?.firstVideoProcessed??null;return n.id===o&&(i=!0),-1===a?{...e,firstVideoProcessed:i}:(r[a]=n,{...e,firstVideoProcessed:i,items:r})}case o.N1:{const{id:n}=t,r=e?._meta||{},a=r?.items||{},o=a[n]||{};return{...e,_meta:{...r,items:{...a,[n]:{...o,isUpdatingPoster:!0}}}}}case o.OU:{const{id:n,poster:r}=t,a=[...e.items??[]],o=e?._meta||{},i=o?.items||{},s=a.findIndex((e=>e.id===n));return s>=0&&(a[s]={...a[s],posterImage:r}),{...e,items:a,_meta:{...o,items:{...i,[n]:{isUpdatingPoster:!1}}}}}case o.TZ:{const{id:n,bytesSent:r,bytesTotal:a}=t,o=e?._meta||{},i=o?.items||{},s=i[n]||{},c=a>0?r/a:0;return{...e,_meta:{...o,items:{...i,[n]:{...s,uploadProgress:c}}}}}case o.IX:return{...e,dismissedFirstVideoPopover:!0,firstUploadedVideoId:null};default:return e}},localVideos:(e,t)=>{switch(t.type){case o.UB:{const{videos:n}=t;return{...e,items:n,isFetching:!1}}case o.k8:return{...e,isFetching:t.isFetching};case o.DE:return{...e,query:{...e.query,...t.query},_meta:{...e._meta,relyOnInitialState:!1}};case o.DX:return{...e,pagination:{...e.pagination,...t.pagination},_meta:{...e._meta,relyOnInitialState:!1}};case o.K:{const{id:n}=t,r=[...e?.items??[]],a=r.findIndex((e=>e.id===n));return-1===a?e:(r[a]={...r[a],isUploadedToVideoPress:!0},{...e,items:r,isFetching:!1})}}return e},purchases:(e,t)=>{switch(t.type){case o.en:return{...e,isFetching:t.isFetching};case o.GY:return{...e,items:t.purchases,isFetching:!1};default:return e}},users:(e,t)=>{switch(t.type){case o.q2:return{...e,items:t.users};case o.NS:return{...e,pagination:{...e?.pagination||{},...t.pagination}};default:return e}},playbackTokens:(e,t)=>{switch(t.type){case o.$N:return{...e,isFetching:t.isFetching};case o.h7:{const{playbackToken:n}=t,r=[...e.items??[]],a=r.findIndex((e=>e.guid===n.guid));return-1===a?r.unshift(n):r[a]={...r[a],...n},{...e,items:r,isFetching:!1}}case o.kp:{const{guid:n}=t,r=[...e.items??[]],a=r.findIndex((e=>e.guid===n));return a>-1&&r.splice(a,1),{...e,items:r,isFetching:!1}}default:return e}},siteSettings:(e,t)=>{if(t.type===o.Cj){const{videoPressSettings:n}=t;return{...e,...n}}return e}})},3132:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(1455),a=n.n(r),o=n(3832),i=n(8962),s=n(2354),c=n(8306);const{apiRoot:l}=window?.jetpackVideoPressInitialState||{};async function d(e,t,n){if(!e.needsPlaybackToken)return e;let r=await t.getPlaybackToken(e.guid);if(r){Number(r.issueTime)+864e5e?.videos?._meta?.relyOnInitialState,fulfill:()=>async({dispatch:e})=>{try{const t=await a()({path:i.Dv});if(!t?.options?.videopress_storage_used)return;const n=t.options.videopress_storage_used?Math.round(1e3*Number(t.options.videopress_storage_used)*1e3):0;e.setVideosStorageUsed(n)}catch(e){console.error(e)}}},getUploadedVideoCount:{isFulfilled:e=>e?.videos?._meta?.relyOnInitialState,fulfill:()=>async({dispatch:e})=>{const t={per_page:1,media_type:"video",mime_type:"video/videopress"};e.setIsFetchingUploadedVideoCount(!0);try{const n=await fetch((0,o.addQueryArgs)(`${l}${i.$s}`,t)),r=Number(n.headers.get("X-WP-Total"));return e.setUploadedVideoCount(r),r}catch(e){console.error(e)}},shouldInvalidate:e=>e.type===i.TI||e.type===i.kb},getVideos:{isFulfilled:e=>e?.videos?._meta?.relyOnInitialState,fulfill:()=>async({dispatch:e,select:t,resolveSelect:n})=>{e.setIsFetchingVideos(!0);let r=t.getVideosQuery();r||(r=(0,s.S)(),e.setVideosQuery(r));const a={order:r.order,orderby:r.orderBy,page:r.page,per_page:r.itemsPerPage,media_type:"video",mime_type:"video/videopress"};"string"==typeof r.search&&r.search.length>0&&(a.search=r.search);const u=t.getVideosFilter(),p=Object.keys(u?.rating||{}).filter((e=>u.rating[e])).join(",");p?.length&&(a.videopress_rating=p);const m=Object.keys(u?.privacy||{}).filter((e=>u.privacy[e])).join(",");m?.length&&(a.videopress_privacy_setting=m);const h=Object.keys(u?.uploader||{}).filter((e=>u.uploader[e])).join(",");h?.length&&(a.author=h);try{const t=await fetch((0,o.addQueryArgs)(`${l}${i.$s}`,a)),r=Number(t.headers.get("X-WP-Total")),s=Number(t.headers.get("X-WP-TotalPages"));e.setVideosPagination({total:r,totalPages:s});const u=await t.json(),p=await Promise.all((0,c.HO)(u).map((async t=>await d(t,n,e))));return e.setVideos(p),u}catch(e){console.error(e)}},shouldInvalidate:({type:e})=>e===i.pz||e===i.kb||e===i.B1},getVideo:{isFulfilled:(e,t)=>{if(!t||"string"==typeof t)return!0;const n=(e.videos.items??[]).find((({id:e})=>e===t));if(n&&n.needsPlaybackToken){return!!(e?.playbackTokens?.items||[]).find((e=>e?.guid===n.guid))}return n},fulfill:(e,t=!1)=>async({dispatch:n,resolveSelect:r})=>{n.setIsFetchingVideos(!0);try{const s=await a()({path:(0,o.addQueryArgs)(`${i.$s}/${e}`)}),l=await d((0,c.ac)(s),r,n);return n.setVideo(l,t),s}catch(e){console.error(e)}}},getLocalVideos:{isFulfilled:e=>e?.localVideos?._meta?.relyOnInitialState,fulfill:()=>async({dispatch:e,select:t})=>{let n=t.getLocalVideosQuery();e.setIsFetchingLocalVideos(!0),n||(n=(0,s.S)(),e.setVideosQuery(n));const r={order:n.order,orderby:n.orderBy,page:n.page,per_page:n.itemsPerPage,media_type:"video",no_videopress:!0};"string"==typeof n.search&&n.search.length>0&&(r.search=n.search);try{const t=await fetch((0,o.addQueryArgs)(`${l}${i.$s}`,r)),n=Number(t.headers.get("X-WP-Total")),a=Number(t.headers.get("X-WP-TotalPages"));e.setLocalVideosPagination({total:n,totalPages:a});const s=await t.json();return e.setLocalVideos((0,c.Kk)(s)),s}catch(e){console.error(e)}},shouldInvalidate:e=>e.type===i.DE},getUsers:{isFulfilled:e=>e?.users?._meta?.relyOnInitialState,fulfill:()=>async({dispatch:e})=>{e.setIsFetchingLocalVideos(!0);try{const t=await fetch(`${l}${i.p9}`),n=Number(t.headers.get("X-WP-Total")),r=Number(t.headers.get("X-WP-TotalPages"));e.setUsersPagination({total:n,totalPages:r});const a=await t.json();if(!a?.length)return;return e.setUsers(a.map((e=>({id:e.id,name:e.name,slug:e.slug,description:e.description,link:e.link,avatar:e.avatar_urls})))),a}catch(e){console.error(e)}}},getPlaybackToken:{isFulfilled:(e,t)=>{const n=e?.playbackTokens?.items??[];return n?.some((e=>e?.guid===t))},fulfill:e=>async({dispatch:t})=>{t.setIsFetchingPlaybackToken(!0);try{const n=await a()({path:(0,o.addQueryArgs)(`${i.TC}/${e}`),method:"POST"}),r={guid:e,token:n.playback_token,issueTime:Date.now()};return t.setPlaybackToken(r),r}catch(e){console.error(e)}},shouldInvalidate:(e,t)=>e.type===i.kp&&e.guid===t},getVideoPressSettings:{isFulfilled:e=>void 0!==e?.siteSettings,fulfill:()=>async({dispatch:e})=>{try{const{videopress_videos_private_for_site:t}=await a()({path:(0,o.addQueryArgs)(`${i.pC}`),method:"GET"}),n={videoPressVideosPrivateForSite:t};return e.setVideoPressSettings(n),n}catch(e){console.error(e)}}}}},6225:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>a});const r=e=>e?.videos?.items||[],a={getVideos:r,getUploadingVideos:e=>{const t=e?.videos?._meta?.items||{};return Object.keys(t||{}).map((e=>({...t[e],id:e}))).filter((e=>e.uploading))},getVideosQuery:e=>e?.videos?.query,getPagination:e=>e?.videos?.pagination,getVideosFilter:e=>e?.videos?.filter,getUploadedVideoCount:e=>e?.videos?.uploadedVideoCount,getIsFetching:e=>e?.videos?.isFetching,getIsFetchingUploadedVideoCount:e=>e?.videos?.isFetchingUploadedVideoCount,getStorageUsed:e=>({storageUsed:e?.videos?.storageUsed}),getFirstUploadedVideoId:e=>e?.videos?.firstUploadedVideoId,getFirstVideoProcessed:e=>e?.videos?.firstVideoProcessed,getDismissedFirstVideoPopover:e=>e?.videos?.dismissedFirstVideoPopover,getProcessedAllVideosBeingRemoved:e=>e?.videos?._meta?.processedAllVideosBeingRemoved,getLocalVideos:e=>e?.localVideos?.items||[],getIsFetchingLocalVideos:e=>e?.localVideos?.isFetching,getLocalVideosQuery:e=>e?.localVideos?.query,getLocalPagination:e=>e?.localVideos?.pagination,getUploadedLocalVideoCount:e=>e?.localVideos?.uploadedVideoCount,getVideo:(e,t)=>r(e).find((({id:e})=>e===t)),getVideoStateMetadata:(e,t)=>(e?.videos?._meta?.items||{})[t]||{},getUsers:e=>e?.users?.items||[],getUsersPagination:e=>e?.users?.pagination,getPurchases:e=>e?.purchases?.items||[],isFetchingPurchases:e=>e?.purchases?.isFetching,getPlaybackToken:(e,t)=>(e?.playbackTokens?.items||[]).find((e=>e?.guid===t))||{},isFetchingPlaybackToken:e=>e?.playbackTokens?.isFetching,getVideoPressSettings:e=>e?.siteSettings,getUploadErrorVideos:e=>{const t=e?.videos?._meta?.items||{};return Object.keys(t||{}).map((e=>({...t[e],id:e}))).filter((e=>!!e.error))}}},3486:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(7143);class a{static store=null;static mayBeInit(e,t){null===a.store&&(a.store=(0,r.createReduxStore)(e,t),(0,r.register)(a.store))}}const o=a},8306:(e,t,n)=>{"use strict";n.d(t,{HO:()=>a,Kk:()=>i,ac:()=>r});const r=e=>{const{media_details:t,id:n,jetpack_videopress:r,jetpack_videopress_guid:a}=e,{videopress:o,width:i,height:s}=t,{title:c,description:l,caption:d,rating:u,allow_download:p,display_embed:m,privacy_setting:h,needs_playback_token:g,is_private:v}=r,{original:f,poster:y,upload_date:w,duration:b,file_url_base:E,finished:A,files:k={dvd:{original_img:""}}}=o||{},{dvd:R}=k,C=R?.original_img?`${E.https}${R.original_img}`:void 0,S=f?.split("/").slice(-1)[0];return{id:n,guid:a,title:c,description:l,caption:d,url:f,uploadDate:w,duration:b,isPrivate:v,posterImage:y,allowDownload:p,displayEmbed:m,rating:u,privacySetting:h,needsPlaybackToken:g,width:i,height:s,poster:{src:y},thumbnail:C,finished:A,filename:S}},a=e=>e?.map?.(r),o=e=>{const{media_details:t,id:n,jetpack_videopress:r,source_url:a,date:o}=e,{width:i,height:s,length:c}=t,{title:l,description:d,caption:u}=r;return{id:n,title:l,description:d,caption:u,width:i,height:s,url:a,uploadDate:o,duration:c}},i=e=>e.map(o)},4603:(e,t,n)=>{"use strict";n.d(t,{D:()=>a});var r=n(8962);const a=(e,t)=>r.zG[e]!==r.az&&(r.zG[e]===r.o0||t)},4523:(e,t,n)=>{"use strict";function r(e){return e.replace(/([-_][a-z])/gi,(e=>e.toUpperCase().replace("_","")))}function a(e,t=!1){const n=Object.assign({},e);for(const e in n)Object.hasOwn(n,e)&&-1!==e.indexOf("_")&&(n[r(e)]=n[e],t&&delete n[e]);return n}n.d(t,{x:()=>a})},3356:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=()=>{const e=new Uint32Array(10);crypto.getRandomValues(e);return`${performance.now().toString(36)}-${Array.from(e).map((e=>e.toString(36))).join("")}`}},9799:(e,t,n)=>{"use strict";function r(e){if(!e)return[];return e.split("\n").map((e=>function(e){const t=/(?\(?(?