Make WordPress Core

Changeset 62132


Ignore:
Timestamp:
03/26/2026 01:27:22 PM (10 days ago)
Author:
dmsnell
Message:

Restore: Sync Gutenberg @ 7b7fa2bc97a8029a302bd6511cf0d206b5953172
See changelog in 63240d9d318a27625475701bbe124f215bd9b14f

Editor: Bump pinned hash for the Gutenberg repository.
This updates the pinned hash from the gutenberg from f4d8a5803aa2fbe26e7d9af4d17e80a622b7bab8 to 7b7fa2bc97a8029a302bd6511cf0d206b5953172.

The following changes are included:

Location:
branches/fixes-64393-restore-version-history/src/wp-includes
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/fixes-64393-restore-version-history/src/wp-includes/assets/script-loader-packages.min.php

    r62131 r62132  
    267267      'wp-warning'
    268268    ),
    269     'version' => '94b1c2f6db3c8822c7cb'
     269    'version' => 'f45e47fb68691ad2950f'
    270270  ),
    271271  'customize-widgets.min.js' => array(
     
    668668      'wp-url'
    669669    ),
    670     'version' => '6a1e1df3db4f7198a518'
     670    'version' => '4b640c092eb654d2bd78'
    671671  ),
    672672  'plugins.min.js' => array(
     
    810810      'wp-private-apis'
    811811    ),
    812     'version' => '44b4d0543749363ed20d'
     812    'version' => 'a5e466ecaa7d3773e376'
    813813  ),
    814814  'theme.min.js' => array(
  • branches/fixes-64393-restore-version-history/src/wp-includes/assets/script-modules-packages.min.php

    r62129 r62132  
    7777      )
    7878    ),
    79     'version' => '243a659f91c3dc9841c7'
     79    'version' => '96a846e1d7b789c39ab9'
    8080  ),
    8181  'block-library/playlist/view.min.js' => array(
     
    176176      'wp-private-apis'
    177177    ),
    178     'version' => 'fb1bf5511eb12e411ec6'
     178    'version' => 'bd74f3db1cc1555ee90d'
    179179  ),
    180180  'core-abilities/index.min.js' => array(
  • branches/fixes-64393-restore-version-history/src/wp-includes/blocks/navigation.php

    r62123 r62132  
    11471147
    11481148        if ( $open_on_hover ) {
    1149             $tags->set_attribute( 'data-wp-on--mouseenter', 'actions.openMenuOnHover' );
    1150             $tags->set_attribute( 'data-wp-on--mouseleave', 'actions.closeMenuOnHover' );
     1149            $tags->set_attribute( 'data-wp-on--pointerenter', 'actions.openMenuOnHover' );
     1150            $tags->set_attribute( 'data-wp-on--pointerleave', 'actions.closeMenuOnHover' );
    11511151        }
    11521152
  • branches/fixes-64393-restore-version-history/src/wp-includes/build/routes/connectors-home/content.js

    r62129 r62132  
    214214
    215215// routes/connectors-home/style.scss
    216 if (typeof document !== "undefined" && !document.head.querySelector("style[data-wp-hash='2df87bd25d']")) {
     216if (typeof document !== "undefined" && !document.head.querySelector("style[data-wp-hash='59f128e566']")) {
    217217  const style = document.createElement("style");
    218   style.setAttribute("data-wp-hash", "2df87bd25d");
    219   style.appendChild(document.createTextNode(".connectors-page{box-sizing:border-box;margin:0 auto;max-width:680px;padding:24px;width:100%}.connectors-page .components-item{background:#fff;border:1px solid #ddd;border-radius:8px;overflow:hidden;padding:20px}.connectors-page .connector-settings .components-text-control__input{font-family:monospace}.connectors-page>p{color:#949494;text-align:center}@media (max-width:480px){.connectors-page,.connectors-page .components-item{padding:16px}.connectors-page .components-item>.components-v-stack>.components-h-stack:first-child svg{height:32px;width:32px}}"));
     218  style.setAttribute("data-wp-hash", "59f128e566");
     219  style.appendChild(document.createTextNode(".connectors-page{box-sizing:border-box;margin:0 auto;max-width:680px;padding:24px;width:100%}.connectors-page .components-item{background:#fff;border:1px solid #ddd;border-radius:8px;overflow:hidden;padding:20px}.connectors-page .connector-settings .components-text-control__input{font-family:monospace}.connectors-page>p{color:#949494;text-align:center}@media (max-width:480px){.connectors-page{padding:8px}.connectors-page .components-item{padding:12px}.connectors-page .components-item>.components-v-stack>.components-h-stack:first-child svg{height:32px;width:32px}.connectors-page .components-item>.components-v-stack>.components-h-stack:first-child>.components-h-stack:last-child{align-items:flex-end;flex-direction:column}}"));
    220220  document.head.appendChild(style);
    221221}
  • branches/fixes-64393-restore-version-history/src/wp-includes/build/routes/connectors-home/content.min.asset.php

    r62129 r62132  
    1 <?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-private-apis', 'wp-theme'), 'module_dependencies' => array(array('id' => '@wordpress/a11y', 'import' => 'static'), array('id' => '@wordpress/connectors', 'import' => 'static'), array('id' => '@wordpress/route', 'import' => 'static')), 'version' => '9932a14833594f5a3bf2');
     1<?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-private-apis', 'wp-theme'), 'module_dependencies' => array(array('id' => '@wordpress/a11y', 'import' => 'static'), array('id' => '@wordpress/connectors', 'import' => 'static'), array('id' => '@wordpress/route', 'import' => 'static')), 'version' => '754bcfe37bcb8ede6373');
  • branches/fixes-64393-restore-version-history/src/wp-includes/build/routes/connectors-home/content.min.js

    r62129 r62132  
    1 var at=Object.create;var ce=Object.defineProperty;var st=Object.getOwnPropertyDescriptor;var ct=Object.getOwnPropertyNames;var lt=Object.getPrototypeOf,ut=Object.prototype.hasOwnProperty;var L=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var dt=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ct(t))!ut.call(e,r)&&r!==n&&ce(e,r,{get:()=>t[r],enumerable:!(o=st(t,r))||o.enumerable});return e};var a=(e,t,n)=>(n=e!=null?at(lt(e)):{},dt(t||!e||!e.__esModule?ce(n,"default",{value:e,enumerable:!0}):n,e));var U=L((Vt,le)=>{le.exports=window.wp.i18n});var I=L((zt,ue)=>{ue.exports=window.wp.components});var M=L((Dt,de)=>{de.exports=window.ReactJSXRuntime});var E=L((Ft,fe)=>{fe.exports=window.wp.element});var G=L((nn,_e)=>{_e.exports=window.wp.data});var Y=L((on,Ce)=>{Ce.exports=window.wp.coreData});var k=L((rn,Ae)=>{Ae.exports=window.React});var Ke=L((Vn,Fe)=>{Fe.exports=window.wp.privateApis});var Ge=L((zn,$e)=>{$e.exports=window.wp.apiFetch});function pe(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=pe(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function pt(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=pe(e))&&(o&&(o+=" "),o+=t);return o}var P=pt;var ge=a(E(),1),me=a(M(),1),Le=(0,ge.forwardRef)(({children:e,className:t,ariaLabel:n,as:o="div",...r},i)=>(0,me.jsx)(o,{ref:i,className:P("admin-ui-navigable-region",t),"aria-label":n,role:"region",tabIndex:"-1",...r,children:e}));Le.displayName="NavigableRegion";var he=Le;var _=a(I(),1);var be=a(I(),1),{Fill:ye,Slot:ve}=(0,be.createSlotFill)("SidebarToggle");var h=a(M(),1);function we({breadcrumbs:e,badges:t,title:n,subTitle:o,actions:r,showSidebarToggle:i=!0}){return(0,h.jsxs)(_.__experimentalVStack,{className:"admin-ui-page__header",as:"header",children:[(0,h.jsxs)(_.__experimentalHStack,{justify:"space-between",spacing:2,children:[(0,h.jsxs)(_.__experimentalHStack,{spacing:2,justify:"left",children:[i&&(0,h.jsx)(ve,{bubblesVirtually:!0,className:"admin-ui-page__sidebar-toggle-slot"}),n&&(0,h.jsx)(_.__experimentalHeading,{as:"h2",level:3,weight:500,truncate:!0,children:n}),e,t]}),(0,h.jsx)(_.__experimentalHStack,{style:{width:"auto",flexShrink:0},spacing:2,className:"admin-ui-page__header-actions",children:r})]}),o&&(0,h.jsx)("p",{className:"admin-ui-page__header-subtitle",children:o})]})}var R=a(M(),1);function xe({breadcrumbs:e,badges:t,title:n,subTitle:o,children:r,className:i,actions:s,hasPadding:u=!1,showSidebarToggle:f=!0}){let c=P("admin-ui-page",i);return(0,R.jsxs)(he,{className:c,ariaLabel:n,children:[(n||e||t)&&(0,R.jsx)(we,{breadcrumbs:e,badges:t,title:n,subTitle:o,actions:s,showSidebarToggle:f}),u?(0,R.jsx)("div",{className:"admin-ui-page__content has-padding",children:r}):r]})}xe.SidebarToggleFill=ye;var $=xe;var tt=a(I()),nt=a(G()),ot=a(E()),D=a(U()),rt=a(Y());import{privateApis as Nt}from"@wordpress/connectors";if(typeof document<"u"&&!document.head.querySelector("style[data-wp-hash='2df87bd25d']")){let e=document.createElement("style");e.setAttribute("data-wp-hash","2df87bd25d"),e.appendChild(document.createTextNode(".connectors-page{box-sizing:border-box;margin:0 auto;max-width:680px;padding:24px;width:100%}.connectors-page .components-item{background:#fff;border:1px solid #ddd;border-radius:8px;overflow:hidden;padding:20px}.connectors-page .connector-settings .components-text-control__input{font-family:monospace}.connectors-page>p{color:#949494;text-align:center}@media (max-width:480px){.connectors-page,.connectors-page .components-item{padding:16px}.connectors-page .components-item>.components-v-stack>.components-h-stack:first-child svg{height:32px;width:32px}}")),document.head.appendChild(e)}var z=a(I()),ne=a(U());import{__experimentalRegisterConnector as At,__experimentalConnectorItem as Pt,__experimentalDefaultConnectorSettings as kt}from"@wordpress/connectors";var ke=a(k(),1),Pe={};function W(e,t){let n=ke.useRef(Pe);return n.current===Pe&&(n.current=e(t)),n}function J(e,...t){let n=new URL(`https://base-ui.com/production-error/${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Base UI error #${e}; visit ${n} for the full message.`}var V=a(k(),1);function Z(e,t,n,o){let r=W(Ie).current;return ft(r,e,t,n,o)&&Ee(r,[e,t,n,o]),r.callback}function Se(e){let t=W(Ie).current;return gt(t,e)&&Ee(t,e),t.callback}function Ie(){return{callback:null,cleanup:null,refs:[]}}function ft(e,t,n,o,r){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==o||e.refs[3]!==r}function gt(e,t){return e.refs.length!==t.length||e.refs.some((n,o)=>n!==t[o])}function Ee(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){let o=Array(t.length).fill(null);for(let r=0;r<t.length;r+=1){let i=t[r];if(i!=null)switch(typeof i){case"function":{let s=i(n);typeof s=="function"&&(o[r]=s);break}case"object":{i.current=n;break}default:}}e.cleanup=()=>{for(let r=0;r<t.length;r+=1){let i=t[r];if(i!=null)switch(typeof i){case"function":{let s=o[r];typeof s=="function"?s():i(null);break}case"object":{i.current=null;break}default:}}}}}}var Ne=a(k(),1);var Re=a(k(),1),mt=parseInt(Re.version,10);function Oe(e){return mt>=e}function q(e){if(!Ne.isValidElement(e))return null;let t=e,n=t.props;return(Oe(19)?n?.ref:t.ref)??null}function O(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function Be(e,t){let n={};for(let o in e){let r=e[o];if(t?.hasOwnProperty(o)){let i=t[o](r);i!=null&&Object.assign(n,i);continue}r===!0?n[`data-${o.toLowerCase()}`]="":r&&(n[`data-${o.toLowerCase()}`]=r.toString())}return n}function Te(e,t){return typeof e=="function"?e(t):e}function Ue(e,t){return typeof e=="function"?e(t):e}var B={};function H(e,t,n,o,r){let i={...X(e,B)};return t&&(i=N(i,t)),n&&(i=N(i,n)),o&&(i=N(i,o)),r&&(i=N(i,r)),i}function Me(e){if(e.length===0)return B;if(e.length===1)return X(e[0],B);let t={...X(e[0],B)};for(let n=1;n<e.length;n+=1)t=N(t,e[n]);return t}function N(e,t){return He(t)?t(e):Lt(e,t)}function Lt(e,t){if(!t)return e;for(let n in t){let o=t[n];switch(n){case"style":{e[n]=O(e.style,o);break}case"className":{e[n]=Q(e.className,o);break}default:ht(n,o)?e[n]=bt(e[n],o):e[n]=o}}return e}function ht(e,t){let n=e.charCodeAt(0),o=e.charCodeAt(1),r=e.charCodeAt(2);return n===111&&o===110&&r>=65&&r<=90&&(typeof t=="function"||typeof t>"u")}function He(e){return typeof e=="function"}function X(e,t){return He(e)?e(t):e??B}function bt(e,t){return t?e?n=>{if(vt(n)){let r=n;yt(r);let i=t(r);return r.baseUIHandlerPrevented||e?.(r),i}let o=t(n);return e?.(n),o}:t:e}function yt(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function Q(e,t){return t?e?t+" "+e:t:e}function vt(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}var wt=Object.freeze([]),C=Object.freeze({});var ee=a(k(),1);function Ve(e,t,n={}){let o=t.render,r=xt(t,n);if(n.enabled===!1)return null;let i=n.state??C;return _t(e,o,r,i)}function xt(e,t={}){let{className:n,style:o,render:r}=e,{state:i=C,ref:s,props:u,stateAttributesMapping:f,enabled:c=!0}=t,g=c?Te(n,i):void 0,y=c?Ue(o,i):void 0,v=c?Be(i,f):C,l=c?O(v,Array.isArray(u)?Me(u):u)??C:C;return typeof document<"u"&&(c?Array.isArray(s)?l.ref=Se([l.ref,q(r),...s]):l.ref=Z(l.ref,q(r),s):Z(null,null)),c?(g!==void 0&&(l.className=Q(l.className,g)),y!==void 0&&(l.style=O(l.style,y)),l):C}function _t(e,t,n,o){if(t){if(typeof t=="function")return t(n,o);let r=H(n,t.props);return r.ref=n.ref,V.cloneElement(t,r)}if(e&&typeof e=="string")return Ct(e,n);throw new Error(J(8))}function Ct(e,t){return e==="button"?(0,ee.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,ee.createElement)("img",{alt:"",...t,key:t.key}):V.createElement(e,t)}function ze(e){return Ve(e.defaultTagName??"div",e,e)}var je=a(E(),1);if(typeof document<"u"&&!document.head.querySelector("style[data-wp-hash='244b5c59c0']")){let e=document.createElement("style");e.setAttribute("data-wp-hash","244b5c59c0"),e.appendChild(document.createTextNode('@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._96e6251aad1a6136__badge{border-radius:var(--wpds-border-radius-lg,8px);font-family:var(--wpds-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-font-size-sm,12px);font-weight:var(--wpds-font-weight-regular,400);line-height:var(--wpds-font-line-height-xs,16px);padding-block:var(--wpds-dimension-padding-xs,4px);padding-inline:var(--wpds-dimension-padding-sm,8px)}._99f7158cb520f750__is-high-intent{background-color:var(--wpds-color-bg-surface-error,#f6e6e3);color:var(--wpds-color-fg-content-error,#470000)}.c20ebef2365bc8b7__is-medium-intent{background-color:var(--wpds-color-bg-surface-warning,#fde6bd);color:var(--wpds-color-fg-content-warning,#2e1900)}._365e1626c6202e52__is-low-intent{background-color:var(--wpds-color-bg-surface-caution,#fee994);color:var(--wpds-color-fg-content-caution,#281d00)}._33f8198127ddf4ef__is-stable-intent{background-color:var(--wpds-color-bg-surface-success,#c5f7cc);color:var(--wpds-color-fg-content-success,#002900)}._04c1aca8fc449412__is-informational-intent{background-color:var(--wpds-color-bg-surface-info,#deebfa);color:var(--wpds-color-fg-content-info,#001b4f)}._90726e69d495ec19__is-draft-intent{background-color:var(--wpds-color-bg-surface-neutral-weak,#f0f0f0);color:var(--wpds-color-fg-content-neutral,#1e1e1e)}._898f4a544993bd39__is-none-intent{background-color:var(--wpds-color-bg-surface-neutral,#f8f8f8);color:var(--wpds-color-fg-content-neutral-weak,#6d6d6d)}}')),document.head.appendChild(e)}var De={badge:"_96e6251aad1a6136__badge","is-high-intent":"_99f7158cb520f750__is-high-intent","is-medium-intent":"c20ebef2365bc8b7__is-medium-intent","is-low-intent":"_365e1626c6202e52__is-low-intent","is-stable-intent":"_33f8198127ddf4ef__is-stable-intent","is-informational-intent":"_04c1aca8fc449412__is-informational-intent","is-draft-intent":"_90726e69d495ec19__is-draft-intent","is-none-intent":"_898f4a544993bd39__is-none-intent"},te=(0,je.forwardRef)(function({children:t,intent:n="none",render:o,className:r,...i},s){return ze({render:o,defaultTagName:"span",ref:s,props:H(i,{className:P(De.badge,De[`is-${n}-intent`],r),children:t})})});var A=a(Ge()),Ye=a(Y()),We=a(G()),p=a(E()),b=a(U());function Je({pluginSlug:e,settingName:t,isInstalled:n,isActivated:o}){let[r,i]=(0,p.useState)("checking"),[s,u]=(0,p.useState)(!1),[f,c]=(0,p.useState)(!1),[g,y]=(0,p.useState)(""),[v,l]=(0,p.useState)(),S=(0,We.useSelect)(m=>!!m(Ye.store).canUser("create",{kind:"root",name:"plugin"}),[]),w=v,T=r==="active"&&g!==""&&g!=="invalid_key",x=(0,p.useCallback)(async()=>{try{let d=(await(0,A.default)({path:`/wp/v2/settings?_fields=${t}`}))[t]||"";y(d==="invalid_key"?"":d)}catch{}},[t]);(0,p.useEffect)(()=>{(async()=>{if(!e){await x(),i("active");return}try{let d=await(0,A.default)({path:"/wp/v2/plugins"});l(!0);let se=d.find(it=>it.plugin===`${e}/plugin`);se?se.status==="active"?(await x(),i("active")):i("inactive"):i("not-installed")}catch{l(!1),o?(await x(),i("active")):i(n?"inactive":"not-installed")}})()},[e,x,n,o]);let j=async()=>{if(e){c(!0);try{await(0,A.default)({method:"POST",path:"/wp/v2/plugins",data:{slug:e,status:"active"}}),i("active"),await x(),u(!0)}catch{}finally{c(!1)}}},F=async()=>{if(e){c(!0);try{await(0,A.default)({method:"PUT",path:`/wp/v2/plugins/${e}/plugin`,data:{status:"active"}}),i("active"),await x(),u(!0)}catch{}finally{c(!1)}}};return{pluginStatus:r,canInstallPlugins:S,canActivatePlugins:w,isExpanded:s,setIsExpanded:u,isBusy:f,isConnected:T,currentApiKey:g,handleButtonClick:()=>{if(r==="not-installed"){if(S===!1)return;j()}else if(r==="inactive"){if(w===!1)return;F()}else u(!s)},getButtonLabel:()=>{if(f)return r==="not-installed"?(0,b.__)("Installing\u2026"):(0,b.__)("Activating\u2026");if(s)return(0,b.__)("Cancel");if(T)return(0,b.__)("Edit");switch(r){case"checking":return(0,b.__)("Checking\u2026");case"not-installed":return(0,b.__)("Install");case"inactive":return(0,b.__)("Activate");case"active":return(0,b.__)("Set up")}},saveApiKey:async m=>{try{let d=await(0,A.default)({method:"POST",path:`/wp/v2/settings?_fields=${t}`,data:{[t]:m}});if(m&&d[t]===g)throw new Error("It was not possible to connect to the provider using this key.");y(d[t]||"")}catch(d){throw console.error("Failed to save API key:",d),d}},removeApiKey:async()=>{try{await(0,A.default)({method:"POST",path:`/wp/v2/settings?_fields=${t}`,data:{[t]:""}}),y("")}catch(m){throw console.error("Failed to remove API key:",m),m}}}}var Ze=()=>React.createElement("svg",{width:"40",height:"40",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364l2.0201-1.1685a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.4043-.6813zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z",fill:"currentColor"})),qe=()=>React.createElement("svg",{width:"40",height:"40",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M6.2 21.024L12.416 17.536L12.52 17.232L12.416 17.064H12.112L11.072 17L7.52 16.904L4.44 16.776L1.456 16.616L0.704 16.456L0 15.528L0.072 15.064L0.704 14.64L1.608 14.72L3.608 14.856L6.608 15.064L8.784 15.192L12.008 15.528H12.52L12.592 15.32L12.416 15.192L12.28 15.064L9.176 12.96L5.816 10.736L4.056 9.456L3.104 8.808L2.624 8.2L2.416 6.872L3.28 5.92L4.44 6L4.736 6.08L5.912 6.984L8.424 8.928L11.704 11.344L12.184 11.744L12.376 11.608L12.4 11.512L12.184 11.152L10.4 7.928L8.496 4.648L7.648 3.288L7.424 2.472C7.344 2.136 7.288 1.856 7.288 1.512L8.272 0.176L8.816 0L10.128 0.176L10.68 0.656L11.496 2.52L12.816 5.456L14.864 9.448L15.464 10.632L15.784 11.728L15.904 12.064H16.112V11.872L16.28 9.624L16.592 6.864L16.896 3.312L17 2.312L17.496 1.112L18.48 0.464L19.248 0.832L19.88 1.736L19.792 2.32L19.416 4.76L18.68 8.584L18.2 11.144H18.48L18.8 10.824L20.096 9.104L22.272 6.384L23.232 5.304L24.352 4.112L25.072 3.544H26.432L27.432 5.032L26.984 6.568L25.584 8.344L24.424 9.848L22.76 12.088L21.72 13.88L21.816 14.024L22.064 14L25.824 13.2L27.856 12.832L30.28 12.416L31.376 12.928L31.496 13.448L31.064 14.512L28.472 15.152L25.432 15.76L20.904 16.832L20.848 16.872L20.912 16.952L22.952 17.144L23.824 17.192H25.96L29.936 17.488L30.976 18.176L31.6 19.016L31.496 19.656L29.896 20.472L27.736 19.96L22.696 18.76L20.968 18.328H20.728V18.472L22.168 19.88L24.808 22.264L28.112 25.336L28.28 26.096L27.856 26.696L27.408 26.632L24.504 24.448L23.384 23.464L20.848 21.328H20.68V21.552L21.264 22.408L24.352 27.048L24.512 28.472L24.288 28.936L23.488 29.216L22.608 29.056L20.8 26.52L18.936 23.664L17.432 21.104L17.248 21.208L16.36 30.768L15.944 31.256L14.984 31.624L14.184 31.016L13.76 30.032L14.184 28.088L14.696 25.552L15.112 23.536L15.488 21.032L15.712 20.2L15.696 20.144L15.512 20.168L13.624 22.76L10.752 26.64L8.48 29.072L7.936 29.288L6.992 28.8L7.08 27.928L7.608 27.152L10.752 23.152L12.648 20.672L13.872 19.24L13.864 19.032H13.792L5.44 24.456L3.952 24.648L3.312 24.048L3.392 23.064L3.696 22.744L6.208 21.016L6.2 21.024Z",fill:"#D97757"})),Xe=()=>React.createElement("svg",{width:"40",height:"40",style:{flex:"none",lineHeight:1},viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z",fill:"#3186FF"}),React.createElement("path",{d:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z",fill:"url(#lobe-icons-gemini-fill-0)"}),React.createElement("path",{d:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z",fill:"url(#lobe-icons-gemini-fill-1)"}),React.createElement("path",{d:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z",fill:"url(#lobe-icons-gemini-fill-2)"}),React.createElement("defs",null,React.createElement("linearGradient",{gradientUnits:"userSpaceOnUse",id:"lobe-icons-gemini-fill-0",x1:"7",x2:"11",y1:"15.5",y2:"12"},React.createElement("stop",{stopColor:"#08B962"}),React.createElement("stop",{offset:"1",stopColor:"#08B962",stopOpacity:"0"})),React.createElement("linearGradient",{gradientUnits:"userSpaceOnUse",id:"lobe-icons-gemini-fill-1",x1:"8",x2:"11.5",y1:"5.5",y2:"11"},React.createElement("stop",{stopColor:"#F94543"}),React.createElement("stop",{offset:"1",stopColor:"#F94543",stopOpacity:"0"})),React.createElement("linearGradient",{gradientUnits:"userSpaceOnUse",id:"lobe-icons-gemini-fill-2",x1:"3.5",x2:"17.5",y1:"13.5",y2:"12"},React.createElement("stop",{stopColor:"#FABC12"}),React.createElement("stop",{offset:".46",stopColor:"#FABC12",stopOpacity:"0"}))));function St(){try{return JSON.parse(document.getElementById("wp-script-module-data-options-connectors-wp-admin")?.textContent??"")?.connectors??{}}catch{return{}}}var It={google:Xe,openai:Ze,anthropic:qe},Et=()=>React.createElement("span",{style:{color:"#345b37",backgroundColor:"#eff8f0",padding:"4px 12px",borderRadius:"2px",fontSize:"13px",fontWeight:500,whiteSpace:"nowrap"}},(0,ne.__)("Connected")),Rt=()=>React.createElement(te,null,(0,ne.__)("Not available"));function Ot({label:e,description:t,pluginSlug:n,settingName:o,helpUrl:r,Logo:i,isInstalled:s,isActivated:u}){let f;try{r&&(f=new URL(r).hostname)}catch{}let{pluginStatus:c,canInstallPlugins:g,canActivatePlugins:y,isExpanded:v,setIsExpanded:l,isBusy:S,isConnected:w,currentApiKey:T,handleButtonClick:x,getButtonLabel:j,saveApiKey:F,removeApiKey:re}=Je({pluginSlug:n,settingName:o,isInstalled:s,isActivated:u}),K=c==="not-installed"&&g===!1||c==="inactive"&&y===!1,ie=!K;return React.createElement(Pt,{className:n?`connector-item--${n}`:void 0,icon:i?React.createElement(i,null):void 0,name:e,description:t,actionArea:React.createElement(z.__experimentalHStack,{spacing:3,expanded:!1},w&&React.createElement(Et,null),K&&React.createElement(Rt,null),ie&&React.createElement(z.Button,{variant:v||w?"tertiary":"secondary",size:v||w?void 0:"compact",onClick:x,disabled:c==="checking"||S,isBusy:S,"aria-expanded":v},j()))},v&&c==="active"&&React.createElement(kt,{key:w?"connected":"setup",initialValue:T,helpUrl:r,helpLabel:f,readOnly:w,onRemove:re,onSave:async ae=>{await F(ae),l(!1)}}))}function Qe(){let e=St(),t=n=>n.replace(/[^a-z0-9-]/gi,"-");for(let[n,o]of Object.entries(e)){let{authentication:r}=o;if(o.type!=="ai_provider"||r.method!=="api_key")continue;let i=`${t(o.type)}/${t(n)}`;At(i,{label:o.name,description:o.description,render:s=>React.createElement(Ot,{...s,pluginSlug:o.plugin?.slug,settingName:r.settingName,helpUrl:r.credentialsUrl??void 0,Logo:It[n],isInstalled:o.plugin?.isInstalled,isActivated:o.plugin?.isActivated})})}}var et=a(Ke()),{lock:Wn,unlock:oe}=(0,et.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/routes");var{store:Bt}=oe(Nt);Qe();function Tt(){let{connectors:e,canInstallPlugins:t}=(0,nt.useSelect)(n=>({connectors:oe(n(Bt)).getConnectors(),canInstallPlugins:n(rt.store).canUser("create",{kind:"root",name:"plugin"})}),[]);return React.createElement($,{title:(0,D.__)("Connectors"),subTitle:(0,D.__)("All of your API keys and credentials are stored here and shared across plugins. Configure once and use everywhere.")},React.createElement("div",{className:"connectors-page"},React.createElement(tt.__experimentalVStack,{spacing:3},e.map(n=>n.render?React.createElement(n.render,{key:n.slug,slug:n.slug,label:n.label,description:n.description}):null)),t&&React.createElement("p",null,(0,ot.createInterpolateElement)((0,D.__)("Find more connectors in <a>the plugin directory</a>"),{a:React.createElement("a",{href:"plugin-install.php"})}))))}function Ut(){return React.createElement(Tt,null)}var Mt=Ut;export{Mt as stage};
     1var at=Object.create;var ce=Object.defineProperty;var st=Object.getOwnPropertyDescriptor;var ct=Object.getOwnPropertyNames;var lt=Object.getPrototypeOf,ut=Object.prototype.hasOwnProperty;var L=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var pt=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ct(t))!ut.call(e,r)&&r!==n&&ce(e,r,{get:()=>t[r],enumerable:!(o=st(t,r))||o.enumerable});return e};var a=(e,t,n)=>(n=e!=null?at(lt(e)):{},pt(t||!e||!e.__esModule?ce(n,"default",{value:e,enumerable:!0}):n,e));var U=L((Vt,le)=>{le.exports=window.wp.i18n});var I=L((zt,ue)=>{ue.exports=window.wp.components});var M=L((Dt,pe)=>{pe.exports=window.ReactJSXRuntime});var E=L((Ft,fe)=>{fe.exports=window.wp.element});var G=L((nn,_e)=>{_e.exports=window.wp.data});var Y=L((on,Ce)=>{Ce.exports=window.wp.coreData});var P=L((rn,Ae)=>{Ae.exports=window.React});var Ke=L((Vn,Fe)=>{Fe.exports=window.wp.privateApis});var Ge=L((zn,$e)=>{$e.exports=window.wp.apiFetch});function de(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=de(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function dt(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=de(e))&&(o&&(o+=" "),o+=t);return o}var k=dt;var ge=a(E(),1),me=a(M(),1),Le=(0,ge.forwardRef)(({children:e,className:t,ariaLabel:n,as:o="div",...r},i)=>(0,me.jsx)(o,{ref:i,className:k("admin-ui-navigable-region",t),"aria-label":n,role:"region",tabIndex:"-1",...r,children:e}));Le.displayName="NavigableRegion";var he=Le;var _=a(I(),1);var be=a(I(),1),{Fill:ye,Slot:ve}=(0,be.createSlotFill)("SidebarToggle");var h=a(M(),1);function xe({breadcrumbs:e,badges:t,title:n,subTitle:o,actions:r,showSidebarToggle:i=!0}){return(0,h.jsxs)(_.__experimentalVStack,{className:"admin-ui-page__header",as:"header",children:[(0,h.jsxs)(_.__experimentalHStack,{justify:"space-between",spacing:2,children:[(0,h.jsxs)(_.__experimentalHStack,{spacing:2,justify:"left",children:[i&&(0,h.jsx)(ve,{bubblesVirtually:!0,className:"admin-ui-page__sidebar-toggle-slot"}),n&&(0,h.jsx)(_.__experimentalHeading,{as:"h2",level:3,weight:500,truncate:!0,children:n}),e,t]}),(0,h.jsx)(_.__experimentalHStack,{style:{width:"auto",flexShrink:0},spacing:2,className:"admin-ui-page__header-actions",children:r})]}),o&&(0,h.jsx)("p",{className:"admin-ui-page__header-subtitle",children:o})]})}var R=a(M(),1);function we({breadcrumbs:e,badges:t,title:n,subTitle:o,children:r,className:i,actions:s,hasPadding:u=!1,showSidebarToggle:f=!0}){let c=k("admin-ui-page",i);return(0,R.jsxs)(he,{className:c,ariaLabel:n,children:[(n||e||t)&&(0,R.jsx)(xe,{breadcrumbs:e,badges:t,title:n,subTitle:o,actions:s,showSidebarToggle:f}),u?(0,R.jsx)("div",{className:"admin-ui-page__content has-padding",children:r}):r]})}we.SidebarToggleFill=ye;var $=we;var tt=a(I()),nt=a(G()),ot=a(E()),D=a(U()),rt=a(Y());import{privateApis as Nt}from"@wordpress/connectors";if(typeof document<"u"&&!document.head.querySelector("style[data-wp-hash='59f128e566']")){let e=document.createElement("style");e.setAttribute("data-wp-hash","59f128e566"),e.appendChild(document.createTextNode(".connectors-page{box-sizing:border-box;margin:0 auto;max-width:680px;padding:24px;width:100%}.connectors-page .components-item{background:#fff;border:1px solid #ddd;border-radius:8px;overflow:hidden;padding:20px}.connectors-page .connector-settings .components-text-control__input{font-family:monospace}.connectors-page>p{color:#949494;text-align:center}@media (max-width:480px){.connectors-page{padding:8px}.connectors-page .components-item{padding:12px}.connectors-page .components-item>.components-v-stack>.components-h-stack:first-child svg{height:32px;width:32px}.connectors-page .components-item>.components-v-stack>.components-h-stack:first-child>.components-h-stack:last-child{align-items:flex-end;flex-direction:column}}")),document.head.appendChild(e)}var z=a(I()),ne=a(U());import{__experimentalRegisterConnector as At,__experimentalConnectorItem as kt,__experimentalDefaultConnectorSettings as Pt}from"@wordpress/connectors";var Pe=a(P(),1),ke={};function W(e,t){let n=Pe.useRef(ke);return n.current===ke&&(n.current=e(t)),n}function J(e,...t){let n=new URL(`https://base-ui.com/production-error/${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Base UI error #${e}; visit ${n} for the full message.`}var V=a(P(),1);function Z(e,t,n,o){let r=W(Ie).current;return ft(r,e,t,n,o)&&Ee(r,[e,t,n,o]),r.callback}function Se(e){let t=W(Ie).current;return gt(t,e)&&Ee(t,e),t.callback}function Ie(){return{callback:null,cleanup:null,refs:[]}}function ft(e,t,n,o,r){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==o||e.refs[3]!==r}function gt(e,t){return e.refs.length!==t.length||e.refs.some((n,o)=>n!==t[o])}function Ee(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){let o=Array(t.length).fill(null);for(let r=0;r<t.length;r+=1){let i=t[r];if(i!=null)switch(typeof i){case"function":{let s=i(n);typeof s=="function"&&(o[r]=s);break}case"object":{i.current=n;break}default:}}e.cleanup=()=>{for(let r=0;r<t.length;r+=1){let i=t[r];if(i!=null)switch(typeof i){case"function":{let s=o[r];typeof s=="function"?s():i(null);break}case"object":{i.current=null;break}default:}}}}}}var Ne=a(P(),1);var Re=a(P(),1),mt=parseInt(Re.version,10);function Oe(e){return mt>=e}function q(e){if(!Ne.isValidElement(e))return null;let t=e,n=t.props;return(Oe(19)?n?.ref:t.ref)??null}function O(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function Be(e,t){let n={};for(let o in e){let r=e[o];if(t?.hasOwnProperty(o)){let i=t[o](r);i!=null&&Object.assign(n,i);continue}r===!0?n[`data-${o.toLowerCase()}`]="":r&&(n[`data-${o.toLowerCase()}`]=r.toString())}return n}function Te(e,t){return typeof e=="function"?e(t):e}function Ue(e,t){return typeof e=="function"?e(t):e}var B={};function H(e,t,n,o,r){let i={...X(e,B)};return t&&(i=N(i,t)),n&&(i=N(i,n)),o&&(i=N(i,o)),r&&(i=N(i,r)),i}function Me(e){if(e.length===0)return B;if(e.length===1)return X(e[0],B);let t={...X(e[0],B)};for(let n=1;n<e.length;n+=1)t=N(t,e[n]);return t}function N(e,t){return He(t)?t(e):Lt(e,t)}function Lt(e,t){if(!t)return e;for(let n in t){let o=t[n];switch(n){case"style":{e[n]=O(e.style,o);break}case"className":{e[n]=Q(e.className,o);break}default:ht(n,o)?e[n]=bt(e[n],o):e[n]=o}}return e}function ht(e,t){let n=e.charCodeAt(0),o=e.charCodeAt(1),r=e.charCodeAt(2);return n===111&&o===110&&r>=65&&r<=90&&(typeof t=="function"||typeof t>"u")}function He(e){return typeof e=="function"}function X(e,t){return He(e)?e(t):e??B}function bt(e,t){return t?e?n=>{if(vt(n)){let r=n;yt(r);let i=t(r);return r.baseUIHandlerPrevented||e?.(r),i}let o=t(n);return e?.(n),o}:t:e}function yt(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function Q(e,t){return t?e?t+" "+e:t:e}function vt(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}var xt=Object.freeze([]),C=Object.freeze({});var ee=a(P(),1);function Ve(e,t,n={}){let o=t.render,r=wt(t,n);if(n.enabled===!1)return null;let i=n.state??C;return _t(e,o,r,i)}function wt(e,t={}){let{className:n,style:o,render:r}=e,{state:i=C,ref:s,props:u,stateAttributesMapping:f,enabled:c=!0}=t,g=c?Te(n,i):void 0,y=c?Ue(o,i):void 0,v=c?Be(i,f):C,l=c?O(v,Array.isArray(u)?Me(u):u)??C:C;return typeof document<"u"&&(c?Array.isArray(s)?l.ref=Se([l.ref,q(r),...s]):l.ref=Z(l.ref,q(r),s):Z(null,null)),c?(g!==void 0&&(l.className=Q(l.className,g)),y!==void 0&&(l.style=O(l.style,y)),l):C}function _t(e,t,n,o){if(t){if(typeof t=="function")return t(n,o);let r=H(n,t.props);return r.ref=n.ref,V.cloneElement(t,r)}if(e&&typeof e=="string")return Ct(e,n);throw new Error(J(8))}function Ct(e,t){return e==="button"?(0,ee.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,ee.createElement)("img",{alt:"",...t,key:t.key}):V.createElement(e,t)}function ze(e){return Ve(e.defaultTagName??"div",e,e)}var je=a(E(),1);if(typeof document<"u"&&!document.head.querySelector("style[data-wp-hash='244b5c59c0']")){let e=document.createElement("style");e.setAttribute("data-wp-hash","244b5c59c0"),e.appendChild(document.createTextNode('@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._96e6251aad1a6136__badge{border-radius:var(--wpds-border-radius-lg,8px);font-family:var(--wpds-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-font-size-sm,12px);font-weight:var(--wpds-font-weight-regular,400);line-height:var(--wpds-font-line-height-xs,16px);padding-block:var(--wpds-dimension-padding-xs,4px);padding-inline:var(--wpds-dimension-padding-sm,8px)}._99f7158cb520f750__is-high-intent{background-color:var(--wpds-color-bg-surface-error,#f6e6e3);color:var(--wpds-color-fg-content-error,#470000)}.c20ebef2365bc8b7__is-medium-intent{background-color:var(--wpds-color-bg-surface-warning,#fde6bd);color:var(--wpds-color-fg-content-warning,#2e1900)}._365e1626c6202e52__is-low-intent{background-color:var(--wpds-color-bg-surface-caution,#fee994);color:var(--wpds-color-fg-content-caution,#281d00)}._33f8198127ddf4ef__is-stable-intent{background-color:var(--wpds-color-bg-surface-success,#c5f7cc);color:var(--wpds-color-fg-content-success,#002900)}._04c1aca8fc449412__is-informational-intent{background-color:var(--wpds-color-bg-surface-info,#deebfa);color:var(--wpds-color-fg-content-info,#001b4f)}._90726e69d495ec19__is-draft-intent{background-color:var(--wpds-color-bg-surface-neutral-weak,#f0f0f0);color:var(--wpds-color-fg-content-neutral,#1e1e1e)}._898f4a544993bd39__is-none-intent{background-color:var(--wpds-color-bg-surface-neutral,#f8f8f8);color:var(--wpds-color-fg-content-neutral-weak,#6d6d6d)}}')),document.head.appendChild(e)}var De={badge:"_96e6251aad1a6136__badge","is-high-intent":"_99f7158cb520f750__is-high-intent","is-medium-intent":"c20ebef2365bc8b7__is-medium-intent","is-low-intent":"_365e1626c6202e52__is-low-intent","is-stable-intent":"_33f8198127ddf4ef__is-stable-intent","is-informational-intent":"_04c1aca8fc449412__is-informational-intent","is-draft-intent":"_90726e69d495ec19__is-draft-intent","is-none-intent":"_898f4a544993bd39__is-none-intent"},te=(0,je.forwardRef)(function({children:t,intent:n="none",render:o,className:r,...i},s){return ze({render:o,defaultTagName:"span",ref:s,props:H(i,{className:k(De.badge,De[`is-${n}-intent`],r),children:t})})});var A=a(Ge()),Ye=a(Y()),We=a(G()),d=a(E()),b=a(U());function Je({pluginSlug:e,settingName:t,isInstalled:n,isActivated:o}){let[r,i]=(0,d.useState)("checking"),[s,u]=(0,d.useState)(!1),[f,c]=(0,d.useState)(!1),[g,y]=(0,d.useState)(""),[v,l]=(0,d.useState)(),S=(0,We.useSelect)(m=>!!m(Ye.store).canUser("create",{kind:"root",name:"plugin"}),[]),x=v,T=r==="active"&&g!==""&&g!=="invalid_key",w=(0,d.useCallback)(async()=>{try{let p=(await(0,A.default)({path:`/wp/v2/settings?_fields=${t}`}))[t]||"";y(p==="invalid_key"?"":p)}catch{}},[t]);(0,d.useEffect)(()=>{(async()=>{if(!e){await w(),i("active");return}try{let p=await(0,A.default)({path:"/wp/v2/plugins"});l(!0);let se=p.find(it=>it.plugin===`${e}/plugin`);se?se.status==="active"?(await w(),i("active")):i("inactive"):i("not-installed")}catch{l(!1),o?(await w(),i("active")):i(n?"inactive":"not-installed")}})()},[e,w,n,o]);let j=async()=>{if(e){c(!0);try{await(0,A.default)({method:"POST",path:"/wp/v2/plugins",data:{slug:e,status:"active"}}),i("active"),await w(),u(!0)}catch{}finally{c(!1)}}},F=async()=>{if(e){c(!0);try{await(0,A.default)({method:"PUT",path:`/wp/v2/plugins/${e}/plugin`,data:{status:"active"}}),i("active"),await w(),u(!0)}catch{}finally{c(!1)}}};return{pluginStatus:r,canInstallPlugins:S,canActivatePlugins:x,isExpanded:s,setIsExpanded:u,isBusy:f,isConnected:T,currentApiKey:g,handleButtonClick:()=>{if(r==="not-installed"){if(S===!1)return;j()}else if(r==="inactive"){if(x===!1)return;F()}else u(!s)},getButtonLabel:()=>{if(f)return r==="not-installed"?(0,b.__)("Installing\u2026"):(0,b.__)("Activating\u2026");if(s)return(0,b.__)("Cancel");if(T)return(0,b.__)("Edit");switch(r){case"checking":return(0,b.__)("Checking\u2026");case"not-installed":return(0,b.__)("Install");case"inactive":return(0,b.__)("Activate");case"active":return(0,b.__)("Set up")}},saveApiKey:async m=>{try{let p=await(0,A.default)({method:"POST",path:`/wp/v2/settings?_fields=${t}`,data:{[t]:m}});if(m&&p[t]===g)throw new Error("It was not possible to connect to the provider using this key.");y(p[t]||"")}catch(p){throw console.error("Failed to save API key:",p),p}},removeApiKey:async()=>{try{await(0,A.default)({method:"POST",path:`/wp/v2/settings?_fields=${t}`,data:{[t]:""}}),y("")}catch(m){throw console.error("Failed to remove API key:",m),m}}}}var Ze=()=>React.createElement("svg",{width:"40",height:"40",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364l2.0201-1.1685a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.4043-.6813zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z",fill:"currentColor"})),qe=()=>React.createElement("svg",{width:"40",height:"40",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M6.2 21.024L12.416 17.536L12.52 17.232L12.416 17.064H12.112L11.072 17L7.52 16.904L4.44 16.776L1.456 16.616L0.704 16.456L0 15.528L0.072 15.064L0.704 14.64L1.608 14.72L3.608 14.856L6.608 15.064L8.784 15.192L12.008 15.528H12.52L12.592 15.32L12.416 15.192L12.28 15.064L9.176 12.96L5.816 10.736L4.056 9.456L3.104 8.808L2.624 8.2L2.416 6.872L3.28 5.92L4.44 6L4.736 6.08L5.912 6.984L8.424 8.928L11.704 11.344L12.184 11.744L12.376 11.608L12.4 11.512L12.184 11.152L10.4 7.928L8.496 4.648L7.648 3.288L7.424 2.472C7.344 2.136 7.288 1.856 7.288 1.512L8.272 0.176L8.816 0L10.128 0.176L10.68 0.656L11.496 2.52L12.816 5.456L14.864 9.448L15.464 10.632L15.784 11.728L15.904 12.064H16.112V11.872L16.28 9.624L16.592 6.864L16.896 3.312L17 2.312L17.496 1.112L18.48 0.464L19.248 0.832L19.88 1.736L19.792 2.32L19.416 4.76L18.68 8.584L18.2 11.144H18.48L18.8 10.824L20.096 9.104L22.272 6.384L23.232 5.304L24.352 4.112L25.072 3.544H26.432L27.432 5.032L26.984 6.568L25.584 8.344L24.424 9.848L22.76 12.088L21.72 13.88L21.816 14.024L22.064 14L25.824 13.2L27.856 12.832L30.28 12.416L31.376 12.928L31.496 13.448L31.064 14.512L28.472 15.152L25.432 15.76L20.904 16.832L20.848 16.872L20.912 16.952L22.952 17.144L23.824 17.192H25.96L29.936 17.488L30.976 18.176L31.6 19.016L31.496 19.656L29.896 20.472L27.736 19.96L22.696 18.76L20.968 18.328H20.728V18.472L22.168 19.88L24.808 22.264L28.112 25.336L28.28 26.096L27.856 26.696L27.408 26.632L24.504 24.448L23.384 23.464L20.848 21.328H20.68V21.552L21.264 22.408L24.352 27.048L24.512 28.472L24.288 28.936L23.488 29.216L22.608 29.056L20.8 26.52L18.936 23.664L17.432 21.104L17.248 21.208L16.36 30.768L15.944 31.256L14.984 31.624L14.184 31.016L13.76 30.032L14.184 28.088L14.696 25.552L15.112 23.536L15.488 21.032L15.712 20.2L15.696 20.144L15.512 20.168L13.624 22.76L10.752 26.64L8.48 29.072L7.936 29.288L6.992 28.8L7.08 27.928L7.608 27.152L10.752 23.152L12.648 20.672L13.872 19.24L13.864 19.032H13.792L5.44 24.456L3.952 24.648L3.312 24.048L3.392 23.064L3.696 22.744L6.208 21.016L6.2 21.024Z",fill:"#D97757"})),Xe=()=>React.createElement("svg",{width:"40",height:"40",style:{flex:"none",lineHeight:1},viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z",fill:"#3186FF"}),React.createElement("path",{d:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z",fill:"url(#lobe-icons-gemini-fill-0)"}),React.createElement("path",{d:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z",fill:"url(#lobe-icons-gemini-fill-1)"}),React.createElement("path",{d:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z",fill:"url(#lobe-icons-gemini-fill-2)"}),React.createElement("defs",null,React.createElement("linearGradient",{gradientUnits:"userSpaceOnUse",id:"lobe-icons-gemini-fill-0",x1:"7",x2:"11",y1:"15.5",y2:"12"},React.createElement("stop",{stopColor:"#08B962"}),React.createElement("stop",{offset:"1",stopColor:"#08B962",stopOpacity:"0"})),React.createElement("linearGradient",{gradientUnits:"userSpaceOnUse",id:"lobe-icons-gemini-fill-1",x1:"8",x2:"11.5",y1:"5.5",y2:"11"},React.createElement("stop",{stopColor:"#F94543"}),React.createElement("stop",{offset:"1",stopColor:"#F94543",stopOpacity:"0"})),React.createElement("linearGradient",{gradientUnits:"userSpaceOnUse",id:"lobe-icons-gemini-fill-2",x1:"3.5",x2:"17.5",y1:"13.5",y2:"12"},React.createElement("stop",{stopColor:"#FABC12"}),React.createElement("stop",{offset:".46",stopColor:"#FABC12",stopOpacity:"0"}))));function St(){try{return JSON.parse(document.getElementById("wp-script-module-data-options-connectors-wp-admin")?.textContent??"")?.connectors??{}}catch{return{}}}var It={google:Xe,openai:Ze,anthropic:qe},Et=()=>React.createElement("span",{style:{color:"#345b37",backgroundColor:"#eff8f0",padding:"4px 12px",borderRadius:"2px",fontSize:"13px",fontWeight:500,whiteSpace:"nowrap"}},(0,ne.__)("Connected")),Rt=()=>React.createElement(te,null,(0,ne.__)("Not available"));function Ot({label:e,description:t,pluginSlug:n,settingName:o,helpUrl:r,Logo:i,isInstalled:s,isActivated:u}){let f;try{r&&(f=new URL(r).hostname)}catch{}let{pluginStatus:c,canInstallPlugins:g,canActivatePlugins:y,isExpanded:v,setIsExpanded:l,isBusy:S,isConnected:x,currentApiKey:T,handleButtonClick:w,getButtonLabel:j,saveApiKey:F,removeApiKey:re}=Je({pluginSlug:n,settingName:o,isInstalled:s,isActivated:u}),K=c==="not-installed"&&g===!1||c==="inactive"&&y===!1,ie=!K;return React.createElement(kt,{className:n?`connector-item--${n}`:void 0,icon:i?React.createElement(i,null):void 0,name:e,description:t,actionArea:React.createElement(z.__experimentalHStack,{spacing:3,expanded:!1},x&&React.createElement(Et,null),K&&React.createElement(Rt,null),ie&&React.createElement(z.Button,{variant:v||x?"tertiary":"secondary",size:v||x?void 0:"compact",onClick:w,disabled:c==="checking"||S,isBusy:S,"aria-expanded":v},j()))},v&&c==="active"&&React.createElement(Pt,{key:x?"connected":"setup",initialValue:T,helpUrl:r,helpLabel:f,readOnly:x,onRemove:re,onSave:async ae=>{await F(ae),l(!1)}}))}function Qe(){let e=St(),t=n=>n.replace(/[^a-z0-9-]/gi,"-");for(let[n,o]of Object.entries(e)){let{authentication:r}=o;if(o.type!=="ai_provider"||r.method!=="api_key")continue;let i=`${t(o.type)}/${t(n)}`;At(i,{label:o.name,description:o.description,render:s=>React.createElement(Ot,{...s,pluginSlug:o.plugin?.slug,settingName:r.settingName,helpUrl:r.credentialsUrl??void 0,Logo:It[n],isInstalled:o.plugin?.isInstalled,isActivated:o.plugin?.isActivated})})}}var et=a(Ke()),{lock:Wn,unlock:oe}=(0,et.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/routes");var{store:Bt}=oe(Nt);Qe();function Tt(){let{connectors:e,canInstallPlugins:t}=(0,nt.useSelect)(n=>({connectors:oe(n(Bt)).getConnectors(),canInstallPlugins:n(rt.store).canUser("create",{kind:"root",name:"plugin"})}),[]);return React.createElement($,{title:(0,D.__)("Connectors"),subTitle:(0,D.__)("All of your API keys and credentials are stored here and shared across plugins. Configure once and use everywhere.")},React.createElement("div",{className:"connectors-page"},React.createElement(tt.__experimentalVStack,{spacing:3},e.map(n=>n.render?React.createElement(n.render,{key:n.slug,slug:n.slug,label:n.label,description:n.description}):null)),t&&React.createElement("p",null,(0,ot.createInterpolateElement)((0,D.__)("Find more connectors in <a>the plugin directory</a>"),{a:React.createElement("a",{href:"plugin-install.php"})}))))}function Ut(){return React.createElement(Tt,null)}var Mt=Ut;export{Mt as stage};
  • branches/fixes-64393-restore-version-history/src/wp-includes/theme.json

    r62123 r62132  
    11{
    2     "$schema": "../schemas/json/theme.json",
     2    "$schema": "https://schemas.wp.org/trunk/theme.json",
    33    "version": 3,
    44    "settings": {
Note: See TracChangeset for help on using the changeset viewer.