var pa=Object.create;var Ae=Object.defineProperty;var ma=Object.getOwnPropertyDescriptor;var ga=Object.getOwnPropertyNames;var wa=Object.getPrototypeOf,ha=Object.prototype.hasOwnProperty;var y=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),va=(e,t)=>{for(var a in t)Ae(e,a,{get:t[a],enumerable:!0})},xa=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ga(t))!ha.call(e,r)&&r!==a&&Ae(e,r,{get:()=>t[r],enumerable:!(o=ma(t,r))||o.enumerable});return e};var i=(e,t,a)=>(a=e!=null?pa(wa(e)):{},xa(t||!e||!e.__esModule?Ae(a,"default",{value:e,enumerable:!0}):a,e));var te=y((go,qe)=>{qe.exports=window.wp.i18n});var ae=y((wo,Ue)=>{Ue.exports=window.wp.components});var A=y((ho,Qe)=>{Qe.exports=window.ReactJSXRuntime});var x=y((xo,$e)=>{$e.exports=window.wp.element});var G=y((Ao,rt)=>{rt.exports=window.React});var Z=y((ar,yt)=>{yt.exports=window.wp.primitives});var Bt=y((gr,Nt)=>{Nt.exports=window.wp.privateApis});var le=y((as,jt)=>{jt.exports=window.wp.data});var xe=y((os,Yt)=>{Yt.exports=window.wp.coreData});var Ve=y((rs,Rt)=>{Rt.exports=window.wp.notices});var Vt=y((ss,Wt)=>{Wt.exports=window.wp.url});function Je(e){var t,a,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(0,tt.jsx)(o,{ref:s,className:v("admin-ui-navigable-region",t),"aria-label":a,role:"region",tabIndex:"-1",...r,children:e}));at.displayName="NavigableRegion";var ot=at;var it=i(G(),1),st={};function Pe(e,t){let a=it.useRef(st);return a.current===st&&(a.current=e(t)),a}function Le(e,...t){let a=new URL(`https://base-ui.com/production-error/${e}`);return t.forEach(o=>a.searchParams.append("args[]",o)),`Base UI error #${e}; visit ${a} for the full message.`}var me=i(G(),1);function Ne(e,t,a,o){let r=Pe(lt).current;return ya(r,e,t,a,o)&&ft(r,[e,t,a,o]),r.callback}function nt(e){let t=Pe(lt).current;return Aa(t,e)&&ft(t,e),t.callback}function lt(){return{callback:null,cleanup:null,refs:[]}}function ya(e,t,a,o,r){return e.refs[0]!==t||e.refs[1]!==a||e.refs[2]!==o||e.refs[3]!==r}function Aa(e,t){return e.refs.length!==t.length||e.refs.some((a,o)=>a!==t[o])}function ft(e,t){if(e.refs=t,t.every(a=>a==null)){e.callback=null;return}e.callback=a=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),a!=null){let o=Array(t.length).fill(null);for(let r=0;r{for(let r=0;r=e}function Be(e){if(!ct.isValidElement(e))return null;let t=e,a=t.props;return(ut(19)?a?.ref:t.ref)??null}function oe(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function pt(e,t){let a={};for(let o in e){let r=e[o];if(t?.hasOwnProperty(o)){let s=t[o](r);s!=null&&Object.assign(a,s);continue}r===!0?a[`data-${o.toLowerCase()}`]="":r&&(a[`data-${o.toLowerCase()}`]=r.toString())}return a}function mt(e,t){return typeof e=="function"?e(t):e}function gt(e,t){return typeof e=="function"?e(t):e}var se={};function N(e,t,a,o,r){let s={...Ce(e,se)};return t&&(s=re(s,t)),a&&(s=re(s,a)),o&&(s=re(s,o)),r&&(s=re(s,r)),s}function wt(e){if(e.length===0)return se;if(e.length===1)return Ce(e[0],se);let t={...Ce(e[0],se)};for(let a=1;a=65&&r<=90&&(typeof t=="function"||typeof t>"u")}function ht(e){return typeof e=="function"}function Ce(e,t){return ht(e)?e(t):e??se}function Ba(e,t){return t?e?a=>{if(Ha(a)){let r=a;Ca(r);let s=t(r);return r.baseUIHandlerPrevented||e?.(r),s}let o=t(a);return e?.(a),o}:t:e}function Ca(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function He(e,t){return t?e?t+" "+e:t:e}function Ha(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}var Oa=Object.freeze([]),I=Object.freeze({});var Oe=i(G(),1);function vt(e,t,a={}){let o=t.render,r=Da(t,a);if(a.enabled===!1)return null;let s=a.state??I;return Ta(e,o,r,s)}function Da(e,t={}){let{className:a,style:o,render:r}=e,{state:s=I,ref:l,props:f,stateAttributesMapping:c,enabled:d=!0}=t,p=d?mt(a,s):void 0,n=d?gt(o,s):void 0,h=d?pt(s,c):I,m=d?oe(h,Array.isArray(f)?wt(f):f)??I:I;return typeof document<"u"&&(d?Array.isArray(l)?m.ref=nt([m.ref,Be(r),...l]):m.ref=Ne(m.ref,Be(r),l):Ne(null,null)),d?(p!==void 0&&(m.className=He(m.className,p)),n!==void 0&&(m.style=oe(m.style,n)),m):I}function Ta(e,t,a,o){if(t){if(typeof t=="function")return t(a,o);let r=N(a,t.props);return r.ref=a.ref,me.cloneElement(t,r)}if(e&&typeof e=="string")return za(e,a);throw new Error(Le(8))}function za(e,t){return e==="button"?(0,Oe.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,Oe.createElement)("img",{alt:"",...t,key:t.key}):me.createElement(e,t)}function M(e){return vt(e.defaultTagName??"div",e,e)}var bt=i(x(),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 xt={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"},De=(0,bt.forwardRef)(function({children:t,intent:a="none",render:o,className:r,...s},l){return M({render:o,defaultTagName:"span",ref:l,props:N(s,{className:v(xt.badge,xt[`is-${a}-intent`],r),children:t})})});var At=i(x(),1),Pt=i(Z(),1),Lt=i(A(),1),Te=(0,At.forwardRef)(function({icon:t,size:a=24,...o},r){return(0,Lt.jsx)(Pt.SVG,{ref:r,fill:"currentColor",...t.props,...o,width:a,height:a})});var ge=i(Z(),1),ze=i(A(),1),ke=(0,ze.jsx)(ge.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ze.jsx)(ge.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-.75 12v-1.5h1.5V16h-1.5Zm0-8v5h1.5V8h-1.5Z"})});var we=i(Z(),1),Se=i(A(),1),_e=(0,Se.jsx)(we.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Se.jsx)(we.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.218 5.377a.25.25 0 0 0-.436 0l-7.29 12.96a.25.25 0 0 0 .218.373h14.58a.25.25 0 0 0 .218-.372l-7.29-12.96Zm-1.743-.735c.669-1.19 2.381-1.19 3.05 0l7.29 12.96a1.75 1.75 0 0 1-1.525 2.608H4.71a1.75 1.75 0 0 1-1.525-2.608l7.29-12.96ZM12.75 17.46h-1.5v-1.5h1.5v1.5Zm-1.5-3h1.5v-5h-1.5v5Z"})});var he=i(Z(),1),Ee=i(A(),1),Ie=(0,Ee.jsx)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Ee.jsx)(he.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm.75 4v1.5h-1.5V8h1.5Zm0 8v-5h-1.5v5h1.5Z"})});var ve=i(Z(),1),Me=i(A(),1),je=(0,Me.jsx)(ve.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Me.jsx)(ve.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm11.53-1.47-1.06-1.06L11 12.94l-1.47-1.47-1.06 1.06L11 15.06l4.53-4.53Z"})});var Ct=i(x(),1);if(typeof document<"u"&&!document.head.querySelector("style[data-wp-hash='71d20935c2']")){let e=document.createElement("style");e.setAttribute("data-wp-hash","71d20935c2"),e.appendChild(document.createTextNode("@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._19ce0419607e1896__stack{display:flex}}")),document.head.appendChild(e)}var ka={stack:"_19ce0419607e1896__stack"},Sa={xs:"var(--wpds-dimension-gap-xs, 4px)",sm:"var(--wpds-dimension-gap-sm, 8px)",md:"var(--wpds-dimension-gap-md, 12px)",lg:"var(--wpds-dimension-gap-lg, 16px)",xl:"var(--wpds-dimension-gap-xl, 24px)","2xl":"var(--wpds-dimension-gap-2xl, 32px)","3xl":"var(--wpds-dimension-gap-3xl, 40px)"},X=(0,Ct.forwardRef)(function({direction:t,gap:a,align:o,justify:r,wrap:s,render:l,...f},c){let d={gap:a&&Sa[a],alignItems:o,justifyContent:r,flexDirection:t,flexWrap:s};return M({render:l,ref:c,props:N(f,{style:d,className:ka.stack})})});var ie={};va(ie,{Description:()=>kt,Root:()=>Ht});var K=i(x(),1);import{speak as _a}from"@wordpress/a11y";var q=i(A(),1);if(typeof document<"u"&&!document.head.querySelector("style[data-wp-hash='671ebfc62d']")){let e=document.createElement("style");e.setAttribute("data-wp-hash","671ebfc62d"),e.appendChild(document.createTextNode("@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}")),document.head.appendChild(e)}var Ea={"box-sizing":"_336cd3e4e743482f__box-sizing"};if(typeof document<"u"&&!document.head.querySelector("style[data-wp-hash='a66a881fc5']")){let e=document.createElement("style");e.setAttribute("data-wp-hash","a66a881fc5"),e.appendChild(document.createTextNode("@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._4145abab73d17514__notice{--icon-height:24px;--text-vertical-padding:calc((var(--icon-height) - var(--wpds-font-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-bg-surface-neutral-weak,#f0f0f0);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#d8d8d8);--wp-ui-notice-text-color:var(--wpds-color-fg-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description{text-wrap:pretty;color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-info-weak,#f2f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#9fbcdc);--wp-ui-notice-text-color:var(--wpds-color-fg-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-warning-weak,#fff7e0);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#d0b381);--wp-ui-notice-text-color:var(--wpds-color-fg-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-success-weak,#eaffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#8ac894);--wp-ui-notice-text-color:var(--wpds-color-fg-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-success-weak,#007f30)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-error-weak,#fff6f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#daa39b);--wp-ui-notice-text-color:var(--wpds-color-fg-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-error-weak,#cc1818)}}")),document.head.appendChild(e)}var Ye={notice:"_4145abab73d17514__notice",icon:"d0a25570cb528528__icon",description:"_1904b570a89bb815__description","is-info":"_531c140826094795__is-info","is-warning":"ae2e1004697cce95__is-warning","is-success":"_2e614a76af494837__is-success","is-error":"af00331ae17a0065__is-error"},Ia={neutral:null,info:Ie,warning:ke,success:je,error:_e};function Ma(e){return e==="error"?"assertive":"polite"}function ja(e){if(e){if(typeof e=="string")return e;try{return(0,K.renderToString)(e)}catch{return}}}function Ya(e,t){let a=ja(e);(0,K.useEffect)(()=>{a&&_a(a,t)},[a,t])}var Ht=(0,K.forwardRef)(function({intent:t="neutral",children:a,icon:o,spokenMessage:r=a,politeness:s=Ma(t),render:l,...f},c){Ya(r,s);let d=o===null?null:o??Ia[t],p=v(Ye.notice,Ye[`is-${t}`],Ea["box-sizing"]);return M({defaultTagName:"div",render:l,ref:c,props:N({className:p,children:(0,q.jsxs)(q.Fragment,{children:[a,d&&(0,q.jsx)(Te,{className:Ye.icon,icon:d})]})},f)})});var Tt=i(x(),1);var Dt=i(x(),1);if(typeof document<"u"&&!document.head.querySelector("style[data-wp-hash='6675f7d310']")){let e=document.createElement("style");e.setAttribute("data-wp-hash","6675f7d310"),e.appendChild(document.createTextNode('@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._83ed8a8da5dd50ea__text{margin:0}._14437cfb77831647__heading-2xl{font-size:var(--wpds-font-size-2xl,32px);line-height:var(--wpds-font-line-height-2xl,40px)}._14437cfb77831647__heading-2xl,._3c78b7fa9b4072dd__heading-xl{font-family:var(--wpds-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-font-weight-medium,499)}._3c78b7fa9b4072dd__heading-xl{font-size:var(--wpds-font-size-xl,20px);line-height:var(--wpds-font-line-height-md,24px)}.aa58f227716bcde2__heading-lg{font-size:var(--wpds-font-size-lg,15px)}.aa58f227716bcde2__heading-lg,.fc4da56d8dfe52c4__heading-md{font-family:var(--wpds-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-font-weight-medium,499);line-height:var(--wpds-font-line-height-sm,20px)}.fc4da56d8dfe52c4__heading-md{font-size:var(--wpds-font-size-md,13px)}.a9b78c7c82e8dff7__heading-sm{font-family:var(--wpds-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-font-size-xs,11px);font-weight:var(--wpds-font-weight-medium,499);line-height:var(--wpds-font-line-height-xs,16px);text-transform:uppercase}._305ff559e52180d5__body-xl{font-size:var(--wpds-font-size-xl,20px);line-height:var(--wpds-font-line-height-xl,32px)}._305ff559e52180d5__body-xl,.ca1aa3fc2029e958__body-lg{font-family:var(--wpds-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-font-weight-regular,400)}.ca1aa3fc2029e958__body-lg{font-size:var(--wpds-font-size-lg,15px);line-height:var(--wpds-font-line-height-md,24px)}._131101940be12424__body-md{font-size:var(--wpds-font-size-md,13px);line-height:var(--wpds-font-line-height-sm,20px)}._0e8d87a42c1f75fa__body-sm,._131101940be12424__body-md{font-family:var(--wpds-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-font-weight-regular,400)}._0e8d87a42c1f75fa__body-sm{font-size:var(--wpds-font-size-sm,12px);line-height:var(--wpds-font-line-height-xs,16px)}}')),document.head.appendChild(e)}var Ot={text:"_83ed8a8da5dd50ea__text","heading-2xl":"_14437cfb77831647__heading-2xl","heading-xl":"_3c78b7fa9b4072dd__heading-xl","heading-lg":"aa58f227716bcde2__heading-lg","heading-md":"fc4da56d8dfe52c4__heading-md","heading-sm":"a9b78c7c82e8dff7__heading-sm","body-xl":"_305ff559e52180d5__body-xl","body-lg":"ca1aa3fc2029e958__body-lg","body-md":"_131101940be12424__body-md","body-sm":"_0e8d87a42c1f75fa__body-sm"},Re=(0,Dt.forwardRef)(function({variant:t="body-md",render:a,className:o,...r},s){return M({render:a,defaultTagName:"span",ref:s,props:N(r,{className:v(Ot.text,Ot[t],o)})})});var zt=i(A(),1);if(typeof document<"u"&&!document.head.querySelector("style[data-wp-hash='a66a881fc5']")){let e=document.createElement("style");e.setAttribute("data-wp-hash","a66a881fc5"),e.appendChild(document.createTextNode("@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._4145abab73d17514__notice{--icon-height:24px;--text-vertical-padding:calc((var(--icon-height) - var(--wpds-font-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-bg-surface-neutral-weak,#f0f0f0);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#d8d8d8);--wp-ui-notice-text-color:var(--wpds-color-fg-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description{text-wrap:pretty;color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-info-weak,#f2f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#9fbcdc);--wp-ui-notice-text-color:var(--wpds-color-fg-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-warning-weak,#fff7e0);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#d0b381);--wp-ui-notice-text-color:var(--wpds-color-fg-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-success-weak,#eaffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#8ac894);--wp-ui-notice-text-color:var(--wpds-color-fg-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-success-weak,#007f30)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-error-weak,#fff6f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#daa39b);--wp-ui-notice-text-color:var(--wpds-color-fg-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-error-weak,#cc1818)}}")),document.head.appendChild(e)}var Ra={notice:"_4145abab73d17514__notice",icon:"d0a25570cb528528__icon",description:"_1904b570a89bb815__description","is-info":"_531c140826094795__is-info","is-warning":"ae2e1004697cce95__is-warning","is-success":"_2e614a76af494837__is-success","is-error":"af00331ae17a0065__is-error"},kt=(0,Tt.forwardRef)(function({className:t,...a},o){return(0,zt.jsx)(Re,{ref:o,variant:"body-md",className:v(Ra.description,t),...a})});var St=i(ae(),1),{Fill:_t,Slot:Et}=(0,St.createSlotFill)("SidebarToggle");var z=i(A(),1);function It({headingLevel:e=1,breadcrumbs:t,badges:a,title:o,subTitle:r,actions:s,showSidebarToggle:l=!0}){let f=`h${e}`;return(0,z.jsxs)(X,{direction:"column",className:"admin-ui-page__header",children:[(0,z.jsxs)(X,{direction:"row",justify:"space-between",gap:"sm",children:[(0,z.jsxs)(X,{direction:"row",gap:"sm",align:"center",justify:"start",children:[l&&(0,z.jsx)(Et,{bubblesVirtually:!0,className:"admin-ui-page__sidebar-toggle-slot"}),o&&(0,z.jsx)(f,{className:"admin-ui-page__header-title",children:o}),t,a]}),(0,z.jsx)(X,{direction:"row",gap:"sm",style:{width:"auto",flexShrink:0},className:"admin-ui-page__header-actions",align:"center",children:s})]}),r&&(0,z.jsx)("p",{className:"admin-ui-page__header-subtitle",children:r})]})}var ne=i(A(),1);function Mt({headingLevel:e,breadcrumbs:t,badges:a,title:o,subTitle:r,children:s,className:l,actions:f,hasPadding:c=!1,showSidebarToggle:d=!0}){let p=v("admin-ui-page",l);return(0,ne.jsxs)(ot,{className:p,ariaLabel:o,children:[(o||t||a)&&(0,ne.jsx)(It,{headingLevel:e,breadcrumbs:t,badges:a,title:o,subTitle:r,actions:f,showSidebarToggle:d}),c?(0,ne.jsx)("div",{className:"admin-ui-page__content has-padding",children:s}):s]})}Mt.SidebarToggleFill=_t;var We=Mt;var P=i(ae()),la=i(le()),fa=i(x()),k=i(te()),da=i(xe());import{privateApis as oo}from"@wordpress/connectors";if(typeof document<"u"&&!document.head.querySelector("style[data-wp-hash='eb5f96e519']")){let e=document.createElement("style");e.setAttribute("data-wp-hash","eb5f96e519"),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;scroll-margin-top:120px}.connectors-page .connector-settings__error{color:#cc1818}.connectors-page .connector-settings .components-text-control__input{font-family:monospace;scroll-margin-top:120px}.connectors-page__file-mods-notice{margin-bottom:16px}.connectors-page--empty{align-items:center;display:flex;flex-direction:column;flex-grow:1;gap:32px;justify-content:center;text-align:center}.connectors-page .ai-plugin-callout{background-color:#e7d4e4;background-image:radial-gradient(ellipse 70% 120% at 18% 115%,#ca9ec6bf 0,#ca9ec600 60%),radial-gradient(ellipse 55% 110% at 92% -15%,#d0afd9b3 0,#d0afd900 65%),radial-gradient(ellipse 40% 85% at 58% -10%,#aa82b873 0,#aa82b800 70%);border-radius:8px;overflow:hidden;padding:24px;padding-inline-end:150px;position:relative}[dir=rtl] .connectors-page .ai-plugin-callout{background-image:radial-gradient(ellipse 70% 120% at 82% 115%,#ca9ec6bf 0,#ca9ec600 60%),radial-gradient(ellipse 55% 110% at 8% -15%,#d0afd9b3 0,#d0afd900 65%),radial-gradient(ellipse 40% 85% at 42% -10%,#aa82b873 0,#aa82b800 70%)}.connectors-page .ai-plugin-callout__content{align-items:flex-start;display:flex;flex-direction:column;gap:12px;padding-top:2px}.connectors-page .ai-plugin-callout__content p{font-size:13px;line-height:20px;margin:0}.connectors-page .ai-plugin-callout__decoration{height:110px;inset-inline-end:16px;position:absolute;top:12px;width:110px}.connectors-page>p{color:#949494}@media (max-width:680px){.connectors-page .ai-plugin-callout{padding:12px;padding-inline-end:100px}.connectors-page .ai-plugin-callout__decoration{height:75px;inset-inline-end:8px;top:8px;width:75px}}@media (max-width:480px){.connectors-page{padding:8px}.connectors-page .ai-plugin-callout{padding-inline-end:130px}.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 ue=i(ae()),Xe=i(xe()),ce=i(le()),B=i(x()),w=i(te()),ra=i(Ve()),sa=i(Vt());var Q=i(ae()),Jt=i(x()),$t=i(le()),F=i(te());import{__experimentalRegisterConnector as Wa,__experimentalConnectorItem as Va,__experimentalDefaultConnectorSettings as Fa,privateApis as Ga}from"@wordpress/connectors";var Ft=i(Bt()),{lock:is,unlock:U}=(0,Ft.__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 Fe=i(xe()),de=i(le()),fe=i(x()),u=i(te()),Gt=i(Ve());function Zt({file:e,settingName:t,connectorName:a,isInstalled:o,isActivated:r,keySource:s="none",initialIsConnected:l=!1}){let[f,c]=(0,fe.useState)(!1),[d,p]=(0,fe.useState)(!1),[n,h]=(0,fe.useState)(l),[m,j]=(0,fe.useState)(null),b=e?.replace(/\.php$/,""),Y=b?.includes("/")?b.split("/")[0]:b,{derivedPluginStatus:S,canManagePlugins:J,currentApiKey:C,canInstallPlugins:_}=(0,de.useSelect)(R=>{let W=R(Fe.store),ee=W.getEntityRecord("root","site")?.[t]??"",V=!!W.canUser("create",{kind:"root",name:"plugin"});if(!e)return{derivedPluginStatus:W.hasFinishedResolution("getEntityRecord",["root","site"])?"active":"checking",canManagePlugins:void 0,currentApiKey:ee,canInstallPlugins:V};let be=W.getEntityRecord("root","plugin",b);if(!W.hasFinishedResolution("getEntityRecord",["root","plugin",b]))return{derivedPluginStatus:"checking",canManagePlugins:void 0,currentApiKey:ee,canInstallPlugins:V};if(be)return{derivedPluginStatus:be.status==="active"||be.status==="network-active"?"active":"inactive",canManagePlugins:!0,currentApiKey:ee,canInstallPlugins:V};let ye="not-installed";return r?ye="active":o&&(ye="inactive"),{derivedPluginStatus:ye,canManagePlugins:!1,currentApiKey:ee,canInstallPlugins:V}},[b,t,o,r]),g=m??S,H=J,O=g==="active"&&n||m==="active"&&!!C,{saveEntityRecord:L,invalidateResolution:D}=(0,de.useDispatch)(Fe.store),{createSuccessNotice:T,createErrorNotice:E}=(0,de.useDispatch)(Gt.store),$=async()=>{if(Y){p(!0);try{await L("root","plugin",{slug:Y,status:"active"},{throwOnError:!0}),j("active"),D("getEntityRecord",["root","site"]),c(!0),T((0,u.sprintf)((0,u.__)("Plugin for %s installed and activated successfully."),a),{id:"connector-plugin-install-success",type:"snackbar"})}catch{E((0,u.sprintf)((0,u.__)("Failed to install plugin for %s."),a),{id:"connector-plugin-install-error",type:"snackbar"})}finally{p(!1)}}},ua=async()=>{if(e){p(!0);try{await L("root","plugin",{plugin:b,status:"active"},{throwOnError:!0}),j("active"),D("getEntityRecord",["root","site"]),c(!0),T((0,u.sprintf)((0,u.__)("Plugin for %s activated successfully."),a),{id:"connector-plugin-activate-success",type:"snackbar"})}catch{E((0,u.sprintf)((0,u.__)("Failed to activate plugin for %s."),a),{id:"connector-plugin-activate-error",type:"snackbar"})}finally{p(!1)}}};return{pluginStatus:g,canInstallPlugins:_,canActivatePlugins:H,isExpanded:f,setIsExpanded:c,isBusy:d,isConnected:O,currentApiKey:C,keySource:s,handleButtonClick:()=>{if(g==="not-installed"){if(_===!1)return;$()}else if(g==="inactive"){if(H===!1)return;ua()}else c(!f)},getButtonLabel:()=>{if(d)return g==="not-installed"?(0,u.__)("Installing\u2026"):(0,u.__)("Activating\u2026");if(f)return(0,u.__)("Cancel");if(O)return(0,u.__)("Edit");switch(g){case"checking":return(0,u.__)("Checking\u2026");case"not-installed":return(0,u.__)("Install");case"inactive":return(0,u.__)("Activate");case"active":return(0,u.__)("Set up")}},saveApiKey:async R=>{let W=C;try{let V=(await L("root","site",{[t]:R},{throwOnError:!0}))?.[t];if(R&&(V===W||!V))throw new Error("It was not possible to connect to the provider using this key.");h(!0),T((0,u.sprintf)((0,u.__)("%s connected successfully."),a),{id:"connector-connect-success",type:"snackbar"})}catch(pe){throw console.error("Failed to save API key:",pe),pe}},removeApiKey:async()=>{try{await L("root","site",{[t]:""},{throwOnError:!0}),h(!1),T((0,u.sprintf)((0,u.__)("%s disconnected."),a),{id:"connector-disconnect-success",type:"snackbar"})}catch(R){throw console.error("Failed to remove API key:",R),E((0,u.sprintf)((0,u.__)("Failed to disconnect %s."),a),{id:"connector-disconnect-error",type:"snackbar"}),R}}}}var Xt=()=>React.createElement("svg",{width:"40",height:"40",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},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"})),Kt=()=>React.createElement("svg",{width:"40",height:"40",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},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"})),qt=()=>React.createElement("svg",{width:"40",height:"40",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},React.createElement("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H28C30.2091 0 32 1.79086 32 4V28C32 30.2091 30.2091 32 28 32H4C1.79086 32 0 30.2091 0 28V4Z",fill:"#F0F0F0"}),React.createElement("path",{d:"M14.5 8V12H17.5V8H19V12H20.5C20.7652 12 21.0196 12.1054 21.2071 12.2929C21.3946 12.4804 21.5 12.7348 21.5 13V17L18.5 21V23C18.5 23.2652 18.3946 23.5196 18.2071 23.7071C18.0196 23.8946 17.7652 24 17.5 24H14.5C14.2348 24 13.9804 23.8946 13.7929 23.7071C13.6054 23.5196 13.5 23.2652 13.5 23V21L10.5 17V13C10.5 12.7348 10.6054 12.4804 10.7929 12.2929C10.9804 12.1054 11.2348 12 11.5 12H13V8H14.5ZM15 20.5V22.5H17V20.5L20 16.5V13.5H12V16.5L15 20.5Z",fill:"#949494"})),Ut=()=>React.createElement("svg",{width:"40",height:"40",viewBox:"0 0 44 44",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},React.createElement("rect",{width:"44",height:"44",fill:"#357B49",rx:"6"}),React.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"m29.746 28.31-6.392-16.797c-.152-.397-.305-.672-.789-.675-.673 0-1.408.611-1.746 1.316l-7.378 16.154c-.072.16-.143.311-.214.454-.5.995-1.045 1.546-2.357 1.626a.399.399 0 0 0-.16.033l-.01.004a.399.399 0 0 0-.23.392v.01c0 .054.01.106.03.155l.004.01a.416.416 0 0 0 .394.252h6.212a.417.417 0 0 0 .307-.12.416.416 0 0 0 .124-.305.398.398 0 0 0-.105-.302.399.399 0 0 0-.294-.127c-.757 0-2.197-.062-2.197-1.164.02-.318.103-.63.245-.916l1.399-3.152c.52-1.163 1.654-1.163 2.572-1.163h5.843c.023 0 .044 0 .062.003.13.014.16.081.214.242l1.534 4.07a2.857 2.857 0 0 1 .216 1.04c0 .054-.003.104-.01.153-.09.726-.831.887-1.49.887a.4.4 0 0 0-.294.127l-.007.008-.007.008a.401.401 0 0 0-.092.286v.01c0 .054.01.106.03.155l.005.01a.42.42 0 0 0 .395.252h7.011a.413.413 0 0 0 .279-.13.412.412 0 0 0 .11-.297.387.387 0 0 0-.09-.294.388.388 0 0 0-.277-.135c-1.448-.122-2.295-.643-2.847-2.08Zm-11.985-5.844 2.847-6.304c.361-.728.659-1.486.889-2.265 0-.06.03-.092.06-.092s.061.032.061.091c.02.122.045.247.073.374.197.888.584 1.878.914 2.723l.176.453 1.684 4.529a.927.927 0 0 1 .092.4.473.473 0 0 1-.009.094c-.041.202-.228.272-.602.272h-6.063c-.122 0-.184-.03-.184-.092a.36.36 0 0 1 .062-.183Zm17.107-.721c0 .786-.446 1.231-1.25 1.231-.806 0-1.125-.409-1.125-1.034 0-.786.465-1.231 1.25-1.231.785 0 1.125.427 1.125 1.034ZM9.629 23.002c.803 0 1.25-.447 1.25-1.231 0-.607-.343-1.036-1.128-1.036-.785 0-1.25.447-1.25 1.231 0 .625.325 1.036 1.128 1.036Z",clipRule:"evenodd"})),Qt=()=>React.createElement("svg",{width:"40",height:"40",style:{flex:"none",lineHeight:1},viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},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"}))));var{store:Za}=U(Ga);function ea(){try{return JSON.parse(document.getElementById("wp-script-module-data-options-connectors-wp-admin")?.textContent??"{}")}catch{return{}}}function Ge(){return ea().connectors??{}}function ta(){return!!ea().isFileModDisabled}var Xa={google:Qt,openai:Xt,anthropic:Kt,akismet:Ut};function Ka(e,t){if(t)return React.createElement("img",{src:t,alt:"",width:40,height:40});let a=Xa[e];return React.createElement(a||qt,null)}var qa=()=>React.createElement("span",{style:{color:"#345b37",backgroundColor:"#eff8f0",padding:"4px 12px",borderRadius:"2px",fontSize:"13px",fontWeight:500,whiteSpace:"nowrap"}},(0,F.__)("Connected")),Ua=({slug:e})=>React.createElement(Q.ExternalLink,{href:(0,F.sprintf)((0,F.__)("https://wordpress.org/plugins/%s/"),e)},(0,F.__)("Learn more")),Qa=()=>React.createElement(De,null,(0,F.__)("Not available"));function Ja({name:e,description:t,logo:a,authentication:o,plugin:r}){let s=o?.method==="api_key"?o:void 0,l=s?.settingName??"",f=s?.credentialsUrl??void 0,c=r?.file?.replace(/\.php$/,""),d=c?.includes("/")?c.split("/")[0]:c,p;try{f&&(p=new URL(f).hostname)}catch{}let{pluginStatus:n,canInstallPlugins:h,canActivatePlugins:m,isExpanded:j,setIsExpanded:b,isBusy:Y,isConnected:S,currentApiKey:J,keySource:C,handleButtonClick:_,getButtonLabel:g,saveApiKey:H,removeApiKey:O}=Zt({file:r?.file,settingName:l,connectorName:e,isInstalled:r?.isInstalled,isActivated:r?.isActivated,keySource:s?.keySource,initialIsConnected:s?.isConnected}),L=C==="env"||C==="constant",D=n==="not-installed"&&h===!1||n==="inactive"&&m===!1,T=!D,E=(0,Jt.useRef)(null);return React.createElement(Va,{className:d?`connector-item--${d}`:void 0,logo:a,name:e,description:t,actionArea:React.createElement(Q.__experimentalHStack,{spacing:3,expanded:!1},S&&React.createElement(qa,null),D&&(d?React.createElement(Ua,{slug:d}):React.createElement(Qa,null)),T&&React.createElement(Q.Button,{ref:E,variant:j||S?"tertiary":"secondary",size:"compact",onClick:_,disabled:n==="checking"||Y,isBusy:Y,accessibleWhenDisabled:!0},g()))},j&&n==="active"&&React.createElement(Fa,{key:S?"connected":"setup",initialValue:L?"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022":J,helpUrl:f,helpLabel:p,readOnly:S||L,keySource:C,onRemove:L?void 0:async()=>{await O(),E.current?.focus()},onSave:async $=>{await H($),b(!1),E.current?.focus()}}))}function aa(){let e=Ge(),t=a=>a.replace(/[^a-z0-9-_]/gi,"-");for(let[a,o]of Object.entries(e)){if(a==="akismet"&&!o.plugin?.isInstalled)continue;let{authentication:r}=o,s=t(a),l={name:o.name,description:o.description,type:o.type,logo:Ka(a,o.logoUrl),authentication:r,plugin:o.plugin},f=U((0,$t.select)(Za)).getConnector(s);r.method==="api_key"&&!f?.render&&(l.render=Ja),Wa(s,l)}}function oa(){return React.createElement("div",{className:"ai-plugin-callout__decoration","aria-hidden":"true"},React.createElement("svg",{viewBox:"0 0 248 248",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",focusable:"false",style:{width:"100%",height:"100%"}},React.createElement("image",{href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAQAElEQVR4AezdC3ojWW5tYflOzPbIbI/M9sh8+WdrdZ+KpiiKL5FB5KedwN7AeSFIpHRYmfX/PubXVGAqMBV4kQpMw3qRBzXbnApMBT4+pmHNq2AqMBV4mQpMw3qZR3X9RmeGqcCrV2Aa1qs/wdn/VOCNKjAN640e9hx1KvDqFZiG9epPcPY/FThWgZ1q07B2+mDnWFOBPVZgGtYen+qcaSqw0wpMw9rpg51jTQX2WIFpWMee6mhTganAU1ZgGtZTPpbZ1FRgKnCsAtOwjlVltKnAVOApKzAN6ykfy2zqcRWYlV6pAtOwXulpzV6nAm9egWlYb/4CmONPBV6pAtOwXulpve9e//Nw9P/7xL8d7Hy9aQWubFhvWrU59qMr8D+HBcPBna93rcA0rHd98q91bs3q3w9bBv7Bna93rMA0rHd86nPmqcCLVmAa1os+uF/Y9m8u6Q7rvw8bgLnDOhTiXb+mYb3rk3+tc//rYbsaVTjQP18amct4+h9hftt3BaZh7fv57v107rNg7+ec831WYBrWZyHGPHUF/vewu//6xNqg+HMRfyjMrb+edb5pWM/6ZGZfawX86Bc0qTU2/htVYBrWGz3sOepU4NUrMA3r1Z/g7H8q8EYVmIZ1h4c9U04FpgL3qcA0rPvUdWadCkwF7lCBaVh3KOpMORWYCtynAtOw7lPXmfVdKjDnfGgFpmE9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sOxV2pp0KTAVuX4H/DwAA//9sB2hHAAAABklEQVQDAB9QlitZA9bLAAAAAElFTkSuQmCC",width:"248",height:"248",style:{mixBlendMode:"multiply"}})))}var $a="ai",eo="ai-wp-admin",Ze="ai/ai",to="https://wordpress.org/plugins/ai/",Ke=Object.values(Ge()),ao=Ke.some(e=>e.type==="ai_provider"),ia=[];for(let e of Ke)e.type==="ai_provider"&&e.authentication.method==="api_key"&&ia.push(e.authentication.settingName);function na(){let[e,t]=(0,B.useState)(!1),[a,o]=(0,B.useState)(!1),r=(0,B.useRef)(null);(0,B.useEffect)(()=>{a&&r.current?.focus()},[a]);let s=(0,B.useRef)(Ke.some(g=>g.type==="ai_provider"&&g.authentication.method==="api_key"&&g.authentication.isConnected)).current,{pluginStatus:l,canInstallPlugins:f,canManagePlugins:c,hasConnectedProvider:d}=(0,ce.useSelect)(g=>{let H=g(Xe.store),O=!!H.canUser("create",{kind:"root",name:"plugin"}),L=H.getEntityRecord("root","site"),D=s||ia.some($=>!!L?.[$]),T=H.getEntityRecord("root","plugin",Ze);return H.hasFinishedResolution("getEntityRecord",["root","plugin",Ze])?T?{pluginStatus:T.status==="active"?"active":"inactive",canInstallPlugins:O,canManagePlugins:!0,hasConnectedProvider:D}:{pluginStatus:"not-installed",canInstallPlugins:O,canManagePlugins:O,hasConnectedProvider:D}:{pluginStatus:"checking",canInstallPlugins:O,canManagePlugins:void 0,hasConnectedProvider:D}},[]),{saveEntityRecord:p}=(0,ce.useDispatch)(Xe.store),{createSuccessNotice:n,createErrorNotice:h}=(0,ce.useDispatch)(ra.store),m=async()=>{t(!0);try{await p("root","plugin",{slug:$a,status:"active"},{throwOnError:!0}),o(!0),n((0,w.__)("AI plugin installed and activated successfully."),{id:"ai-plugin-install-success",type:"snackbar"})}catch{h((0,w.__)("Failed to install the AI plugin."),{id:"ai-plugin-install-error",type:"snackbar"})}finally{t(!1)}},j=async()=>{t(!0);try{await p("root","plugin",{plugin:Ze,status:"active"},{throwOnError:!0}),o(!0),n((0,w.__)("AI plugin activated successfully."),{id:"ai-plugin-activate-success",type:"snackbar"})}catch{h((0,w.__)("Failed to activate the AI plugin."),{id:"ai-plugin-activate-error",type:"snackbar"})}finally{t(!1)}};if(!ao||l==="checking"||l==="active"&&s&&!a||l==="inactive"&&c===!1)return null;let b=l==="active"&&!d,Y=l==="active"&&d&&(!s||a),S=l==="not-installed"||l==="inactive",J=l==="not-installed"&&f===!1,C=()=>Y?(0,w.__)("The AI plugin is ready to use. You can use it to generate featured images, alt text, titles, excerpts and more. Learn more"):b?(0,w.__)("The AI plugin is installed. Connect an AI provider below to generate featured images, alt text, titles, excerpts, and more. Learn more"):(0,w.__)("The AI plugin can use your AI connectors to generate featured images, alt text, titles, excerpts and more. Learn more"),_=()=>l==="not-installed"?{label:e?(0,w.__)("Installing\u2026"):(0,w.__)("Install the AI plugin"),disabled:e,onClick:e?void 0:m}:{label:e?(0,w.__)("Activating\u2026"):(0,w.__)("Activate the AI plugin"),disabled:e,onClick:e?void 0:j};return React.createElement("div",{className:"ai-plugin-callout"},React.createElement("div",{className:"ai-plugin-callout__content"},React.createElement("p",null,(0,B.createInterpolateElement)(C(),{strong:React.createElement("strong",null),a:React.createElement(ue.ExternalLink,{href:to})})),!J&&(S?React.createElement(ue.Button,{variant:"primary",size:"compact",isBusy:e,disabled:_().disabled,accessibleWhenDisabled:!0,onClick:_().onClick},_().label):React.createElement(ue.Button,{ref:r,variant:"secondary",size:"compact",href:(0,sa.addQueryArgs)("options-general.php",{page:eo})},(0,w.__)("Control features in the AI plugin")))),React.createElement(oa,null))}var{store:ro}=U(oo);aa();function so(){let e=ta(),{connectors:t,canInstallPlugins:a,isAiPluginInstalled:o}=(0,la.useSelect)(n=>{let h=n(da.store),m=h.getEntityRecord("root","plugin","ai/ai");return{connectors:U(n(ro)).getConnectors(),canInstallPlugins:h.canUser("create",{kind:"root",name:"plugin"}),isAiPluginInstalled:!!m}},[]),r=t.filter(n=>n.render),s=Array.from(new Set(t.filter(n=>n.type==="ai_provider").map(n=>n.plugin?.file?.split("/")[0]).filter(n=>!!n))).sort(),l=new Set(t.filter(n=>n.plugin?.isInstalled).map(n=>n.plugin?.file?.split("/")[0]).filter(n=>!!n));o&&l.add("ai");let f=["ai",...s].filter(n=>!l.has(n)),c=r.length===0,d=f.length>0&&(e||!a),p=e?(0,k.__)("Plugins cannot be installed here due to your site configuration. Install them manually using your normal deployment workflow."):(0,k.__)("You do not have permission to install plugins. Please ask a site administrator to install them for you.");return React.createElement(We,{title:(0,k.__)("Connectors"),subTitle:(0,k.__)("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${c?" connectors-page--empty":""}`},d&&React.createElement(ie.Root,{intent:"info",className:"connectors-page__file-mods-notice"},React.createElement(ie.Description,null,p)),c?React.createElement(P.__experimentalVStack,{alignment:"center",spacing:3,style:{maxWidth:480}},React.createElement(P.__experimentalVStack,{alignment:"center",spacing:2},React.createElement(P.__experimentalHeading,{level:2,size:15,weight:600},(0,k.__)("No connectors yet")),React.createElement(P.__experimentalText,{size:12},(0,k.__)("Connectors appear here when you install plugins that use external services. Each plugin registers the API keys it needs, and you manage them all in one place."))),React.createElement(P.Button,{variant:"secondary",href:"plugin-install.php"},(0,k.__)("Learn more"))):React.createElement(P.__experimentalVStack,{spacing:3},React.createElement(na,null),React.createElement(P.__experimentalVStack,{spacing:3,role:"list"},t.map(n=>n.render?React.createElement(n.render,{key:n.slug,slug:n.slug,name:n.name,description:n.description,type:n.type,logo:n.logo,authentication:n.authentication,plugin:n.plugin}):null))),a&&!e&&React.createElement("p",null,(0,fa.createInterpolateElement)((0,k.__)("If the connector you need is not listed, search the plugin directory to see if a connector is available."),{a:React.createElement("a",{href:"plugin-install.php?s=connector&tab=search&type=tag"})}))))}function io(){return React.createElement(so,null)}var no=io;export{no as stage};