OwlCyberSecurity - MANAGER
Edit File: extendify-shared-159251bf9fd7827fa1e6.js
"use strict";(globalThis.webpackChunkextendify=globalThis.webpackChunkextendify||[]).push([[123],{9441:(e,t,n)=>{var a=n(9196),o=n(5736),r=n(5609),i=n(9307),s=n(5202),l=n(7918);const c=({children:e,title:t,onClose:n,anchor:c})=>{const[d,p]=(0,i.useState)(!1),[w,m]=(0,i.useState)(0),[u,h]=(0,i.useState)(0),f=()=>{p(!1),n()};if((0,i.useLayoutEffect)((()=>{if(!c||!d)return;const e=c.style.outline;c.style.outline="99999px solid rgba(0, 0, 0, 0.4)";const t=c.getBoundingClientRect(),n=t.left+t.width/2,a=t.top+t.height;return m(n),h(a),()=>{c.style.outline=e}}),[c,d]),(0,i.useEffect)((()=>{p(!0)}),[w,u]),d)return(0,a.createElement)(l.Vq,{static:!0,className:"extendify-shared",open:d,onClose:f},(0,a.createElement)("div",{className:"relative z-max"},(0,a.createElement)("div",{onClick:f,"aria-hidden":!0,role:"presentation",className:"fixed inset-0 z-10 h-screen w-screen bg-transparent"}),(0,a.createElement)("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)"}},(0,a.createElement)("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,a.createElement)("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-none 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,o.__)("Close ToolTip","extendify-local")},(0,a.createElement)(r.Icon,{icon:s.Z,className:"h-4 w-4 fill-current"})),(0,a.createElement)(l.$N,{className:"sr-only"},t),(0,a.createElement)("div",{className:"text-md relative m-0 bg-white p-6 pt-8 text-left font-sans leading-7 text-gray-900 rtl:text-right"},e))))},d=()=>(0,a.createElement)(c,{title:(0,o.__)("Tooltip pointing to the edit page button","extendify-local"),anchor:document.querySelector("#wp-admin-bar-edit")},(0,o.__)("Welcome to your new site! When you're ready, press here to edit this page.","extendify-local"));var p=n(5829),w=n(9272);(()=>{if("extendify-launch"===new URLSearchParams(window.location.search).get("page"))return;(0,w.p)();const e=new URLSearchParams(window.location.search);if(e.has("extendify-launch-success")){if(!document.querySelector("#wp-admin-bar-edit"))return;const t=new URL(window.location.href),n=new URL(window.extSharedData.homeUrl),o=t.origin===n.origin&&t.pathname===n.pathname;e.delete("extendify-launch-success");const r=`${t.origin}${t.pathname}`;if(window.history.replaceState({},"",r),o){const e=Object.assign(document.createElement("div"),{id:"extendify-edit-page-modal-tooltip"});document.body.appendChild(e),(0,p.s)((0,a.createElement)(d,null),e)}}})()},9196:e=>{e.exports=window.React},1850:e=>{e.exports=window.ReactDOM},6989:e=>{e.exports=window.wp.apiFetch},5609:e=>{e.exports=window.wp.components},9307:e=>{e.exports=window.wp.element},5736:e=>{e.exports=window.wp.i18n},444:e=>{e.exports=window.wp.primitives}},e=>{e.O(0,[746,857],(()=>(9441,e(e.s=9441)))),e.O()}]);