0x1998 - MANAGER
Düzenlenen Dosya: extendify-shared-ab4d850930db8cf9e219.js
"use strict";(globalThis.webpackChunkextendify=globalThis.webpackChunkextendify||[]).push([[355],{7123(e,t,n){var i=n(8490),o=n.n(i),s=n(7723),a=n(8971),r=n(6427),l=n(6087),d=n(2023),c=n(790);const p=({children:e,title:t,onClose:n,anchor:i})=>{const[o,p]=(0,l.useState)(!1),[w,h]=(0,l.useState)(0),[u,x]=(0,l.useState)(0),f=()=>{p(!1),n?.()};if((0,l.useLayoutEffect)(()=>{if(!i||!o)return;const e=i.style.outline;i.style.outline="99999px solid rgba(0, 0, 0, 0.4)";const t=i.getBoundingClientRect(),n=t.left+t.width/2,s=t.top+t.height;return h(n),x(s),()=>{i.style.outline=e}},[i,o]),(0,l.useEffect)(()=>{p(!0)},[w,u]),o)return(0,c.jsx)(a.lG,{static:!0,className:"extendify-shared",open:o,onClose:f,children:(0,c.jsxs)("div",{className:"relative z-max",children:[(0,c.jsx)("div",{onClick:f,"aria-hidden":!0,role:"presentation",className:"fixed inset-0 z-10 h-screen w-screen bg-transparent"}),(0,c.jsxs)("div",{className:"fixed z-20 flex min-w-80 max-w-xs flex-col bg-transparent shadow-2xl",style:{top:`${u+12}px`,left:`${w}px`,transform:"translate(-50%, 0)"},children:[(0,c.jsx)("div",{className:"absolute left-1/2 top-[-12px] h-0 w-0 -translate-x-1/2 transform border-b-[12px] border-l-[8px] border-r-[8px] border-transparent border-b-white"}),(0,c.jsx)("button",{type:"button","data-test":"close-tooltip",className:"absolute right-0 top-0 z-20 m-2 flex h-6 w-6 cursor-pointer items-center justify-center rounded-full border-0 bg-white p-0 leading-none outline-hidden ring-1 ring-gray-200 focus:shadow-none focus:ring-wp focus:ring-design-main rtl:left-0 rtl:right-auto",onClick:f,"aria-label":(0,s.__)("Close ToolTip","extendify-local"),children:(0,c.jsx)(r.Icon,{icon:d.A,className:"h-4 w-4 fill-current"})}),(0,c.jsx)(a.L3,{className:"sr-only",children:t}),(0,c.jsx)("div",{className:"text-base relative m-0 bg-white p-6 pt-8 text-left font-sans leading-7 text-gray-900 rtl:text-right",children:e})]})]})})},w=()=>(0,c.jsx)(p,{title:(0,s.__)("Tooltip pointing to the edit page button","extendify-local"),anchor:document.querySelector("#wp-admin-bar-edit"),children:(0,s.__)("Welcome to your new site! When you're ready, press here to edit this page.","extendify-local")});var h=n(1455);const u=/^(?:\/)?(?:wp|extendify)\/v\d+(?:\/|$|\?)/i;n.n(h)().use((e,t)=>u.test(e.path)?t({...e,headers:{...e?.headers,"X-Extendify":"true"}}):t(e));var x=n(7828),f=n(9358);const m=window.extSharedData.showAIAgents;o()(()=>{if((()=>{const e=new URLSearchParams(window.location.search).get("page");return"extendify-launch"===e||"extendify-auto-launch"===e})())return;(0,f.E)();const e=new URLSearchParams(window.location.search);if(!e.has("extendify-launch-success"))return;const t=new URL(window.location.href);e.delete("extendify-launch-success");const n=`${t.origin}${t.pathname}`;if(window.history.replaceState({},"",n),requestAnimationFrame(()=>{requestAnimationFrame(()=>{window.dispatchEvent(new CustomEvent("extendify-launch-success")),window.dispatchEvent(new CustomEvent("extendify-agent:open"))})}),m)return;const i=new URL(window.extSharedData.homeUrl);if(t.origin!==i.origin||t.pathname!==i.pathname)return;const o=Object.assign(document.createElement("div"),{id:"extendify-edit-page-modal-tooltip"});document.body.appendChild(o),(0,x.X)((0,c.jsx)(w,{}),o)})},1609(e){e.exports=window.React},5795(e){e.exports=window.ReactDOM},790(e){e.exports=window.ReactJSXRuntime},1455(e){e.exports=window.wp.apiFetch},6427(e){e.exports=window.wp.components},8490(e){e.exports=window.wp.domReady},6087(e){e.exports=window.wp.element},7723(e){e.exports=window.wp.i18n},5573(e){e.exports=window.wp.primitives}},e=>{e.O(0,[65,223],()=>e(e.s=7123)),e.O()}]);
geri dön