File "extendify-page-creator-9a0a4eee57516a61a2cd.js"

Full Path: /home/fresvfqn/waterdamagerestorationandrepairsmithtown.com/wp-content/plugins/extendify/public/build/extendify-page-creator-9a0a4eee57516a61a2cd.js
File size: 38.23 KB
MIME-type: text/plain
Charset: utf-8

"use strict";(globalThis.webpackChunkextendify=globalThis.webpackChunkextendify||[]).push([[222],{790:e=>{e.exports=window.ReactJSXRuntime},1455:e=>{e.exports=window.wp.apiFetch},1609:e=>{e.exports=window.React},2279:e=>{e.exports=window.wp.plugins},3656:e=>{e.exports=window.wp.editor},3832:e=>{e.exports=window.wp.url},4309:e=>{e.exports=window.wp.editPost},4997:e=>{e.exports=window.wp.blocks},5573:e=>{e.exports=window.wp.primitives},5583:(e,t,a)=>{var r=a(6087),n=a(2279),i=a(7143),o=a(3656),s=a(7723),l=a(7677),c=a(6427),d=a(1077),p=a(790);const{adminUrl:g}=window.extSharedData,m=({setConfirmationOpen:e,confirmationOpen:t,setModalOpen:a})=>{const{incrementActivity:r}=(0,d.e)();return(0,p.jsx)(c.Modal,{onRequestClose:()=>e(!1),className:"extendify-page-creator",size:"medium","aria-labelledby":"page-creator-confirmation",role:"dialog",isOpen:t,title:(0,s.__)("Confirmation","extendify-local"),children:(0,p.jsxs)("div",{className:"flex flex-col space-y-6 text-sm",children:[(0,p.jsx)("div",{children:(0,s.__)("Do you want to replace existing content or create a new page?","extendify-local")}),(0,p.jsxs)("div",{className:"flex w-full items-center justify-end space-x-2",children:[(0,p.jsx)(c.Button,{size:"default",variant:"tertiary",onClick:()=>{e(!1),a(!0),r("page-creator-delete-content-button-click")},children:(0,s.__)("Delete existing content","extendify-local")}),(0,p.jsx)(c.Button,{variant:"primary",size:"default",href:`${g}post-new.php?post_type=page&ext-open-ai-creator=1`,target:"_blank",children:(0,s.__)("Create a new page","extendify-local")})]})]})})},u=(0,p.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,p.jsx)("path",{d:"M11.1515 20H7.04C6.32593 20 5.9689 20 5.69616 19.861C5.45626 19.7388 5.26121 19.5437 5.13897 19.3038C5 19.0311 5 18.6741 5 17.96V6.04C5 5.32593 5 4.9689 5.13897 4.69616C5.26121 4.45626 5.45626 4.26121 5.69616 4.13897C5.9689 4 6.32593 4 7.04 4H16.96C17.6741 4 18.0311 4 18.3038 4.13897C18.5437 4.26121 18.7388 4.45626 18.861 4.69616C19 4.9689 19 5.32593 19 6.04V11.0303",stroke:"white",strokeWidth:"1.275",strokeLinecap:"square"}),(0,p.jsx)("path",{d:"M13.1 8H8",stroke:"white",strokeWidth:"1.275",strokeLinecap:"square",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M10.55 10.5H8",stroke:"white",strokeWidth:"1.275",strokeLinecap:"square",strokeLinejoin:"round"}),(0,p.jsx)("path",{d:"M16.8592 17.8578L15.9955 20.4901C15.8384 20.9685 15.1616 20.9685 15.0045 20.4901L14.1408 17.8578C13.9857 17.385 13.615 17.0143 13.1422 16.8592L10.5099 15.9955C10.0315 15.8384 10.0315 15.1616 10.51 15.0045L13.1422 14.1408C13.615 13.9857 13.9857 13.615 14.1408 13.1422L15.0045 10.5099C15.1616 10.0315 15.8384 10.0315 15.9955 10.5099L16.8592 13.1422C17.0143 13.615 17.385 13.9857 17.8578 14.1408L20.49 15.0045C20.9685 15.1616 20.9685 15.8384 20.49 15.9955L17.8578 16.8592C17.385 17.0143 17.0143 17.385 16.8592 17.8578Z",fill:"white"})]});var x=a(1621),w=a(7134);const f=e=>({open:!1,setOpen:t=>e({open:t}),progress:"",setProgress:t=>e({progress:t}),regenerationCount:0,incrementRegenerationCount:()=>e((e=>({regenerationCount:e.regenerationCount+1})))}),h=(0,x.vt)((0,w.lt)(f,{name:"Extendify Page Creator Globals"}),f),y=()=>{const{setOpen:e}=h(),{incrementActivity:t}=(0,d.e)(),[a,n]=(0,r.useState)(!1),c=(0,i.useSelect)((e=>e(o.store).isEditedPostEmpty()),[]);return(0,p.jsxs)(p.Fragment,{children:[a&&(0,p.jsx)(m,{setConfirmationOpen:n,setModalOpen:e,confirmationOpen:a}),(0,p.jsxs)("div",{role:"button",onClick:()=>{if(window.dispatchEvent(new CustomEvent("extendify-hc:minimize")),!c)return n(!0);e(!0),t("page-creator-button-click")},className:"components-button has-icon is-primary ml-3 h-8 min-w-0 cursor-pointer px-2 xs:h-9 sm:ml-2 xl:pr-3",children:[(0,p.jsx)(l.A,{icon:u,size:24,className:"fill-none"}),(0,p.jsx)("span",{className:"ml-1 hidden xl:inline",children:(0,s.__)("AI Page Generator","extendify-local")})]})]})};var v=a(4309),b=a(8971);const S=({onClose:e})=>(0,p.jsx)("button",{className:"block h-6 w-6 bg-transparent p-px text-inherit outline-none focus:shadow-none focus:ring-wp focus:ring-design-main",type:"button",onClick:e,"data-test":"modal-close-button","aria-label":(0,s.__)("Close","extendify-local"),children:(0,p.jsx)("svg",{style:{fill:"currentColor"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,p.jsx)("path",{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})})}),P=(0,p.jsx)("svg",{fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,p.jsx)("path",{clipRule:"evenodd",d:"m13.505 4h3.3044c.936 0 1.2747.10161 1.6171.29127.3424.19042.6102.46965.7934.82489.1831.356.2801.70824.2801 1.6814v3.43584c0 .9731-.0977 1.3254-.2801 1.6814-.1832.356-.4517.6344-.7934.8248-.153.0852-.3057.1552-.5112.2054v2.7344c0 1.503-.151 2.047-.4327 2.5968-.2828.5498-.6976.9799-1.2252 1.274-.5288.294-1.052.4498-2.4975.4498h-5.10341c-1.44549 0-1.96869-.1569-2.49747-.4498-.52878-.2941-.94242-.7254-1.22526-1.274-.28284-.5487-.43376-1.0938-.43376-2.5968v-5.3051c0-1.50301.15092-2.04701.43264-2.59682.28284-.54981.6976-.98106 1.22638-1.27514.52767-.29293 1.05198-.44985 2.49747-.44985h2.18511c.041-.44652.1265-.69015.2522-.93557.1832-.356.4517-.63523.7941-.82565.3417-.18966.6812-.29127 1.6171-.29127zm-1.6984 2.18698c0-.63769.4973-1.15464 1.1106-1.15464h4.4793c.6133 0 1.1106.51695 1.1106 1.15464v4.65692c0 .6377-.4973 1.1547-1.1106 1.1547h-4.4793c-.6133 0-1.1106-.517-1.1106-1.1547z",fill:"currentColor",fillRule:"evenodd"})});var k=a(6942),j=a.n(k);const{partnerLogo:C,partnerName:N}=window.extSharedData,_=({openOnNewPage:e,updateUserOption:t,onClose:a})=>(0,p.jsxs)("div",{role:"banner",className:j()("flex max-h-28 flex-row items-center justify-between p-5 md:px-8 md:py-5",{"bg-banner-main":C}),children:[(0,p.jsx)("div",{children:C?(0,p.jsx)("div",{className:"flex justify-center bg-banner-main",children:(0,p.jsx)("div",{className:"flex h-6 max-w-40 overflow-hidden md:h-8 md:max-w-64",children:(0,p.jsx)("img",{className:"max-h-full max-w-full object-contain",src:C,alt:N})})}):(0,p.jsx)("div",{className:"-mb-5 hidden px-5 py-3 text-extendify-black sm:flex sm:pt-5",children:(0,p.jsx)(l.A,{icon:P,size:40})})}),(0,p.jsxs)("div",{className:j()("flex w-auto flex-shrink-0 items-center justify-end gap-4",{"text-banner-text":C}),children:[(0,p.jsxs)("label",{className:"flex items-center gap-2",htmlFor:"extendify-open-on-new-pages",title:(0,s.sprintf)(
// translators: %s: Extendify AI Page creator term
// translators: %s: Extendify AI Page creator term
(0,s.__)("Toggle %s on new pages","extendify-local"),"Extendify AI Page Creator"),children:[(0,p.jsx)("input",{id:"extendify-open-on-new-pages",className:"m-0 rounded-sm border border-solid border-gray-900",type:"checkbox",checked:e,onChange:e=>t("openOnNewPage",e.target.checked)}),(0,p.jsx)("span",{children:(0,s.__)("Open for new pages","extendify-local")})]}),(0,p.jsx)("div",{children:(0,p.jsx)(S,{onClose:a})})]})]});var E=a(6221),O=a(9179);const D=({show:e})=>e?(0,p.jsx)(E.N,{children:(0,p.jsx)(O.P.div,{className:"fixed bottom-[20px] right-0 z-max flex justify-end px-4 pb-4",children:(0,p.jsx)("div",{className:"shadow-2xl",children:(0,p.jsx)(c.Snackbar,{children:(0,s.__)("Just a moment, this is taking longer than expected.","extendify-local")})})})}):null;var I=a(8537);const T=({label:e,checked:t,onChange:a,slug:r="checkbox-input"})=>(0,p.jsx)("label",{htmlFor:r,className:"relative flex h-full w-full cursor-pointer items-center justify-between rounded-sm p-2 text-gray-900",children:(0,p.jsxs)("div",{className:"flex flex-auto items-center",children:[(0,p.jsxs)("span",{className:"relative mr-1 inline-block h-4 w-4 align-middle rtl:ml-1 rtl:mr-0",children:[(0,p.jsx)("input",{id:r,className:"h-4 w-4 rounded-sm focus:ring-0 focus:ring-offset-0",type:"checkbox",onChange:a,checked:t}),(0,p.jsx)("svg",{className:"absolute inset-0 -mt-px block h-4 w-4 text-transparent",viewBox:"1 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",children:(0,p.jsx)("path",{d:"M8.72912 13.7449L5.77536 10.7911L4.76953 11.7899L8.72912 15.7495L17.2291 7.24948L16.2304 6.25073L8.72912 13.7449Z",fill:"currentColor"})})]}),(0,p.jsx)("span",{className:"font-light",children:e})]})});var $=a(4707),z=a(4611),L=a(540),A=a(9124),B=a(1062);const R=({placeholder:e,className:t,title:a,onChange:r,value:n,description:i=null,required:o=!1,hideEditor:d=!1,setHideEditor:g=function(){},id:m})=>(0,p.jsxs)(z.D,{id:m,className:"p-3",children:[(0,p.jsxs)(L.JU,{as:"h4",className:"mb-2 mt-0 text-base font-medium data-[disabled]:opacity-50",children:[(0,s.__)(a,"extendify-local")," ",o&&(0,p.jsx)("span",{className:"text-sm font-light text-wp-alert-red",children:"*"})]}),i&&(0,p.jsx)(A.VY,{className:"data-[disabled]:opacity-50",children:(0,s.__)(i,"extendify-local")}),d?(0,p.jsxs)("div",{children:[(0,p.jsx)("span",{className:"line-clamp-4 opacity-80",children:n}),(0,p.jsx)("span",{className:"link mt-1 flex w-full justify-end",children:(0,p.jsx)(c.Button,{variant:"link",onClick:e=>{e.preventDefault(),g(!1)},children:(0,s.__)("Edit","extendify-local")})})]}):(0,p.jsxs)("div",{className:"relative",children:[(0,p.jsx)(B.T,{name:"description",placeholder:e,value:n,onChange:r,className:t}),n?(0,p.jsx)("span",{className:"absolute right-0 top-0 z-10 flex items-center pr-2 pt-2",children:(0,p.jsx)("button",{type:"button",className:"m-0 border-0 bg-transparent p-0 text-gray-500","aria-label":(0,s.__)("Clear","extendify-local"),onClick:()=>{r({currentTarget:{value:""}})},children:(0,p.jsx)(l.A,{icon:$.A,size:16})})}):null]})]}),M=({title:e,description:t})=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("h2",{className:"m-0 text-center text-2xl leading-8 text-gray-900 md:leading-10",children:e}),t&&(0,p.jsx)("p",{className:"m-0 text-center text-base leading-6 text-gray-700",children:t})]}),F=(0,x.vt)((0,w.Zr)((e=>({description:null,setDescription:t=>e({description:t}),reset:()=>e({description:null})})),{name:`extendify-page-creator-page-description-cache-${window.extSharedData.siteId}`}));var G=a(1455),q=a.n(G),J=a(6528);const U={getItem:async()=>await q()({path:"/wp/v2/users/me"}),setItem:async(e,t)=>await q()({path:"/wp/v2/users/me",method:"PUT",data:{extendify_page_creator_user:t}})},H=(0,x.vt)((0,w.Zr)(((e,t)=>{var a;return{openOnNewPage:!0,allowsInstallingPlugins:!0,updateUserOption:(a,r)=>{Object.keys(t()).includes(a)&&e({[a]:r})},...null!==(a=(0,J.N)(window.extPageCreator.userInfo)?.state)&&void 0!==a?a:{}}}),{name:"extendify_page_creator_user",storage:(0,w.KU)((()=>U)),partialize:e=>({...e,ready:!1}),skipHydration:!0})),K=(0,J.N)(window.extSharedData.userData.userSelectionData)?.state?.siteProfile||{},W={siteProfile:{aiDescription:window.extSharedData?.siteProfile?.aiDescription||K?.aiDescription,aiSiteType:K?.aiSiteType,aiSiteCategory:K?.aiSiteCategory,aiKeywords:K?.aiKeywords}},V=e=>({...W,setSiteProfile(t){const a=Object.assign({aiSiteType:W?.siteProfile?.aiSiteType,aiSiteCategory:W?.siteProfile?.aiSiteCategory,aiDescription:W?.siteProfile?.aiDescription,aiKeywords:W?.siteProfile?.aiKeywords},t||{});e({siteProfile:a})},resetState(){e(W)}}),Y="/extendify/v1/shared/site-profile",Z={getItem:async()=>await q()({path:Y}),setItem:async(e,t)=>{await q()({path:Y,method:"POST",data:{value:(0,J.N)(t)?.state?.siteProfile||{}}})}},X=(0,x.vt)((0,w.Zr)((0,w.lt)(V,{name:"Extendify Site Profile"}),{storage:(0,w.KU)((()=>Z)),skipHydration:!1}),V),{siteTitle:Q}=window.extSharedData;var ee=a(4997),te=a(3832);const ae=async()=>await q()({method:"GET",path:(0,te.addQueryArgs)("/extendify/v1/page-creator/settings/get-option",{name:"extendify_siteStyle"})})||{vibe:"standard"},re=e=>q()({path:"/extendify/v1/shared/process-placeholders",method:"POST",data:{patterns:e}});var ne=a(1609);const ie=({path:e,poster:t,className:a=null})=>{const r=(0,ne.useRef)(),[n,i]=(0,ne.useState)(!1);return(0,p.jsx)("div",{className:`relative ${a}`,style:{backgroundImage:n?"none":`url(${t})`,backgroundSize:"contain",backgroundPosition:"center",backgroundRepeat:"no-repeat"},children:(0,p.jsxs)("video",{ref:r,id:"video-player",className:"h-auto max-h-[min(50vh,400px)] w-full object-contain",playsInline:!0,muted:!0,autoPlay:!0,poster:t,loop:!0,onPlay:()=>i(!0),children:[(0,p.jsx)("source",{src:e,type:"video/webm"}),"Your browser does not support the video tag."]})})};var oe=a(8969),se=a(7431);const{siteTitle:le,siteType:ce}=window.extSharedData,de={...Object.fromEntries(Object.entries(window.extSharedData).filter((([e])=>["partnerId","devbuild","version","siteId","wpLanguage","wpVersion","siteProfile"].includes(e))))},pe=async({pageProfile:e,siteImages:t,sitePlugins:a})=>{const r=await ae(),n=await(async(e={})=>{var t;const{showLocalizedCopy:a,activePlugins:r,installedPlugins:n}=window.extSharedData,{allowsInstallingPlugins:i}=H.getState(),o=e?.sitePlugins||[],s=null!==(t=r?.map((e=>e.split("/")[0])))&&void 0!==t?t:[],l=Object.entries(e).reduce(((e,[t,a])=>({...e,[t]:"object"==typeof a?JSON.stringify(a):a})),{}),c=await fetch(`${oe.zL}/api/page-creator`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...de,siteType:ce?.slug,showLocalizedCopy:!!a,allowsInstallingPlugins:i,plugins:JSON.stringify(s),installedPlugins:JSON.stringify(n),allowedPlugins:JSON.stringify(o),...l})});if(!c.ok)throw new Error("Bad response from server");return await c.json()})({siteInformation:{title:le},siteImages:t,siteStyle:r,pageProfile:e,sitePlugins:a});if(!n?.template)throw new Error("Could not get page");return"extendable"!==(window.extSharedData?.themeSlug||"extendable")&&(n.template.patterns=n.template.patterns.filter((e=>!e.patternTypes.includes("page-title")))),n},ge=async({page:e,userState:t,pageProfile:a})=>{const r=await fetch(`${oe.AY}/api/patterns`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...de,page:e,userState:t,siteProfile:a})});if(!r.ok)throw new Error("Bad response from server");return await r.json()},me=async({description:e,siteProfile:t})=>{const a=await fetch(`${oe.AY}/api/page-profile`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...de,siteDescription:t?.aiDescription||"",description:e})});if(!a.ok)throw new Error("Something went wrong while fetching the profile");const r=await a.json();return r?.aiDescription?r:{aiTitle:null,aiPageType:null,aiDescription:null,aiKeywords:[]}},ue=async({pageProfile:e})=>{const{aiSiteType:t,aiSiteCategory:a,aiDescription:r,aiKeywords:n}=e,i=new URLSearchParams({aiSiteType:t,aiSiteCategory:a,aiDescription:r,aiKeywords:n,...de,source:"page-creator"});le&&i.append("title",le);const o=await fetch(`${oe.a3}/api/search?${i}`,{method:"GET",headers:{"Content-Type":"application/json"}});if(!o.ok)throw new Error("Something went wrong while fetching the images");const s=await o.json();return s?.siteImages?s:{siteImages:[]}},xe=async({pageProfile:e})=>{const t=`${oe.AY}/api/site-plugins`,a="POST",r={"Content-Type":"application/json"},n=(0,se.q)([]);if(!e)return n;const{wpLanguage:i,partnerId:o,pluginGroupId:s}=window.extSharedData,l=JSON.stringify({aiSiteType:e?.aiPageType||"",aiDescription:e?.aiDescription||"",aiKeywords:e?.aiKeywords||[],siteQuestions:[],wpLanguage:i,partnerId:o,pluginGroupId:s});let c;try{if(c=await fetch(t,{method:a,headers:r,body:l}),!c.ok)throw new Error("Bad response from server")}catch(e){c=await fetch(t,{method:a,headers:r,body:l})}if(!c.ok)return n;try{var d;const e=await c.json(),t=null!==(d=e?.selectedPlugins)&&void 0!==d?d:n;return(0,se.q)(t)}catch(e){return n}};var we=a(4225);const fe=()=>{const{description:e}=F(),{setProgress:t,regenerationCount:a}=h(),{siteProfile:n}=X(),{data:i,error:o}=(0,we.A)({key:`page-profile-${a}`,description:e,siteProfile:n},me);return(0,r.useEffect)((()=>{i||t((0,s.__)("Generating AI page profile...","extendify-local"))}),[i,t]),{pageProfile:i,error:o,loading:!i&&!o}};var he=a(2177);const ye=JSON.parse('{"twentytwentyfive":{"colorSlugs":{"background":"base","foreground":"contrast","primary":"contrast","secondary":"accent-4","tertiary":"accent-1","foreground-alt":"contrast"},"spacingScale":{"20":"30","30":"40","40":"50","50":"60","60":"70","70":"min(7rem,10vw)","80":"80"},"fontSizeScale":{"small":"small","medium":"medium","large":"x-large","x-large":"xx-large","xx-large":"xx-large"}},"twentytwentyfour":{"colorSlugs":{"background":"base","foreground":"contrast","primary":"contrast-2","secondary":"accent-3","tertiary":"base-2","foreground-alt":"contrast"},"spacingScale":{"20":"1rem","30":"30","40":"70","50":"40","60":"50","70":"min(7rem,10vw)","80":"60"},"fontSizeScale":{"small":"small","medium":"medium","large":"large","x-large":"x-large","xx-large":"xx-large"}},"astra":{"colorSlugs":{"background":"ast-global-color-4","foreground":"ast-global-color-2","primary":"ast-global-color-0","secondary":"ast-global-color-6","tertiary":"ast-global-color-5","foreground-alt":"ast-global-color-3"},"spacingScale":{"20":"1rem","30":"min(2rem, 5vw)","40":"min(3rem, 6vw)","50":"min(4rem, 7vw)","60":"min(6rem, 8vw)","70":"min(7rem, 10vw)","80":"min(8rem, 12vw)"},"fontSizeScale":{"small":"small","medium":"medium","large":"x-large","x-large":"xx-large","xx-large":"xx-large"}},"hello-elementor":{"colorSlugs":{"background":"white","foreground":"black","primary":"vivid-red","secondary":"vivid-purple","tertiary":"cyan-bluish-gray","foreground-alt":"black"},"spacingScale":{"20":"20","30":"60","40":"70","50":"min(4rem,7vw)","60":"min(6rem,8vw)","70":"min(7rem,10vw)","80":"min(8rem,12vw)"},"fontSizeScale":{"small":"small","medium":"medium","large":"large","x-large":"x-large","xx-large":"xx-large"}},"twentytwentytwo":{"colorSlugs":{"background":"background","foreground":"foreground","primary":"primary","secondary":"vivid-purple","tertiary":"tertiary","foreground-alt":"foreground"},"spacingScale":{"20":"20","30":"60","40":"70","50":"min(4rem,7vw)","60":"min(6rem,8vw)","70":"min(7rem,10vw)","80":"min(8rem,12vw)"},"fontSizeScale":{"small":"small","medium":"medium","large":"large","x-large":"x-large","xx-large":"xx-large"}},"generatepress":{"colorSlugs":{"background":"base-3","foreground":"contrast","primary":"accent","secondary":"contrast-2","tertiary":"base","foreground-alt":"contrast"},"spacingScale":{"20":"20","30":"60","40":"70","50":"min(4rem,7vw)","60":"min(6rem,8vw)","70":"min(7rem,10vw)","80":"min(8rem,12vw)"},"fontSizeScale":{"small":"small","medium":"medium","large":"large","x-large":"x-large","xx-large":"xx-large"}},"divi":{"colorSlugs":{"background":"background","foreground":"foreground","primary":"primary","secondary":"vivid-purple","tertiary":"tertiary","foreground-alt":"foreground"},"spacingScale":{"20":"20","30":"60","40":"70","50":"min(4rem,7vw)","60":"min(6rem,8vw)","70":"min(7rem,10vw)","80":"min(8rem,12vw)"},"fontSizeScale":{"small":"small","medium":"medium","large":"large","x-large":"x-large","xx-large":"xx-large"}},"twentytwentythree":{"colorSlugs":{"background":"background","foreground":"foreground","primary":"primary","secondary":"vivid-purple","tertiary":"tertiary","foreground-alt":"foreground"},"spacingScale":{"20":"20","30":"60","40":"70","50":"min(4rem,7vw)","60":"min(6rem,8vw)","70":"min(7rem,10vw)","80":"min(8rem,12vw)"},"fontSizeScale":{"small":"small","medium":"medium","large":"large","x-large":"x-large","xx-large":"xx-large"}},"ultra":{"colorSlugs":{"background":"white","foreground":"black","primary":"vivid-red","secondary":"vivid-purple","tertiary":"cyan-bluish-gray","foreground-alt":"black"},"spacingScale":{"20":"20","30":"60","40":"70","50":"min(4rem,7vw)","60":"min(6rem,8vw)","70":"min(7rem,10vw)","80":"min(8rem,12vw)"},"fontSizeScale":{"small":"small","medium":"medium","large":"large","x-large":"x-large","xx-large":"xx-large"}},"oceanwp":{"colorSlugs":{"background":"white","foreground":"black","primary":"vivid-red","secondary":"vivid-purple","tertiary":"cyan-bluish-gray","foreground-alt":"black"},"spacingScale":{"20":"20","30":"60","40":"70","50":"min(4rem,7vw)","60":"min(6rem,8vw)","70":"min(7rem,10vw)","80":"min(8rem,12vw)"},"fontSizeScale":{"small":"small","medium":"medium","large":"large","x-large":"x-large","xx-large":"xx-large"}},"kadence":{"colorSlugs":{"background":"theme-palette-8","foreground":"theme-palette-3","primary":"theme-palette-1","secondary":"theme-palette-2","tertiary":"theme-palette-9","foreground-alt":"theme-palette-3"},"spacingScale":{"20":"20","30":"60","40":"70","50":"min(4rem,7vw)","60":"min(6rem,8vw)","70":"min(7rem,10vw)","80":"min(8rem,12vw)"},"fontSizeScale":{"small":"small","medium":"medium","large":"large","x-large":"x-large","xx-large":"xx-large"}},"popularfx":{"colorSlugs":{"background":"white","foreground":"black","primary":"vivid-red","secondary":"vivid-purple","tertiary":"cyan-bluish-gray","foreground-alt":"black"},"spacingScale":{"20":"20","30":"60","40":"70","50":"min(4rem,7vw)","60":"min(6rem,8vw)","70":"min(7rem,10vw)","80":"min(8rem,12vw)"},"fontSizeScale":{"small":"normal","medium":"medium","large":"large","x-large":"x-large","xx-large":"xx-large"}},"blocksy":{"colorSlugs":{"background":"palette-color-7","foreground":"palette-color-3","primary":"palette-color-1","secondary":"palette-color-4","tertiary":"palette-color-5","foreground-alt":"palette-color-3"},"spacingScale":{"20":"20","30":"60","40":"70","50":"min(4rem,7vw)","60":"min(6rem,8vw)","70":"min(7rem,10vw)","80":"min(8rem,12vw)"},"fontSizeScale":{"small":"normal","medium":"medium","large":"large","x-large":"x-large","xx-large":"xx-large"}},"neve":{"colorSlugs":{"background":"nv-site-bg","foreground":"neve-text-color","primary":"nv-primary-accent","secondary":"nv-secondary-accent","tertiary":"nv-light-bg","foreground-alt":"neve-text-color"},"spacingScale":{"20":"20","30":"60","40":"70","50":"min(4rem,7vw)","60":"min(6rem,8vw)","70":"min(7rem,10vw)","80":"min(8rem,12vw)"},"fontSizeScale":{"small":"medium","medium":"medium","large":"x-large","x-large":"x-large","xx-large":"xx-large"}}}'),ve="extendable",be=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Se=(e={})=>{const t={};return Object.entries(e).forEach((([e,a])=>{t[`"backgroundColor":"${e}"`]=`"backgroundColor":"${a}"`,t[`"textColor":"${e}"`]=`"textColor":"${a}"`,t[`"linkColor":"${e}"`]=`"linkColor":"${a}"`,t[`has-${e}-background-color`]=`has-${a}-background-color`,t[`has-${e}-color`]=`has-${a}-color`,t[`has-${e}-link-color`]=`has-${a}-link-color`,t[`var:preset|color|${e}`]=`var:preset|color|${a}`,t[`var(--wp--preset--color--${e})`]=`var(--wp--preset--color--${a})`})),t},Pe=(e={})=>{const t={};return Object.entries(e).forEach((([e,a])=>{const r=a.startsWith("min(")?a:`var:preset|spacing|${a}`,n=a.startsWith("min(")?a:`var(--wp--preset--spacing--${a})`;t[`var:preset|spacing|${e}`]=r,t[`var(--wp--preset--spacing--${e})`]=n})),t},ke=(e={})=>{const t={};return Object.entries(e).forEach((([e,a])=>{t[`"fontSize":"${e}"`]=`"fontSize":"${a}"`,t[`has-${e}-font-size`]=`has-${a}-font-size`})),t};function je(e="",t=ve){if(!e||t===ve)return e;const a=ye[t];if(!a)return e;const r={...Se(a.colorSlugs),...Pe(a.spacingScale),...ke(a.fontSizeScale)};if(console.log("map",r),"kadence"===t&&Object.keys(r).forEach((e=>{(e.startsWith('"backgroundColor":')||e.startsWith('"textColor":')||e.startsWith('"linkColor":'))&&r[e].includes("theme-palette-")&&(r[e]=r[e].replace(/theme-palette-(\d+)/,"theme-palette$1"))})),!Object.keys(r).length)return e;const n=new RegExp(Object.keys(r).map(be).join("|"),"g");return e.replace(n,(e=>{var t;return null!==(t=r[e])&&void 0!==t?t:e}))}const{state:Ce}=(0,J.N)(window.extSharedData?.userData?.userSelectionData),Ne=window.extSharedData.siteId,_e=window.extSharedData?.themeSlug||"extendable";var Ee=a(1380);const Oe=window.wp.blockDirectory,De=window.wpApiSettings.root,Ie={"contact-form-7":{id:"contact-form-7",name:"contact-form-7/contact-form-selector",title:"Contact Form 7",links:{"wp:plugin":[{href:`${De}wp/v2/plugins/contact-form-7/wp-contact-form-7`}]}},simplybook:{id:"simplybook",name:"simplybook/widget",title:"SimplyBook",links:{"wp:plugin":[{href:`${De}wp/v2/plugins/simplybook/simplybook`}]}}},Te=(0,x.vt)((0,w.Zr)((e=>({installedPlugins:window.extSharedData?.activePlugins?.map((e=>e.split("/")[0])),updateInstalledPlugins:async()=>{const t=(await q()({path:"/wp/v2/plugins",method:"GET"}))?.map((e=>e.plugin.split("/")[0]));e({installedPlugins:t})}})),{name:`extendify-page-creator-page-installed-plugins-cache-${window.extSharedData.siteId}`})),$e=["contact-form-7","simplybook"],{pageTitlePattern:ze}=window.extPageCreator,Le={"ai-dashboard":{component:()=>{const{nextPage:e}=Re(),{allowsInstallingPlugins:t,updateUserOption:a}=H(),{siteProfile:n,setSiteProfile:i}=X(),{setDescription:o,description:l}=F(),[c,d]=(0,r.useState)(null!=l?l:""),[g,m]=(0,r.useState)(!0),[u,x]=(0,r.useState)(!0),{incrementRegenerationCount:w}=h(),[f,y]=(0,r.useState)((0,I.decodeEntities)(n?.aiDescription)||"");return(0,r.useLayoutEffect)((()=>{f||x(!1)}),[f]),(0,r.useEffect)((()=>{m(!0);const e=setTimeout((()=>{c&&o(c),f&&f!==n?.aiDescription&&i({aiDescription:f}),m(!c.length)}),1e3);return()=>clearTimeout(e)}),[o,c,f,m,i,n]),(0,p.jsxs)("div",{className:"mx-auto my-12 flex max-w-xl flex-col",children:[(0,p.jsx)("div",{className:"mb-12 grid grid-cols-1 gap-1 text-center",children:(0,p.jsx)(M,{title:(0,s.__)("AI Page Creation","extendify-local"),description:(0,s.__)("Describe the page you want to create, adding key details, and Al will generate a unique, ready-to-use page for you.","extendify-local")})}),(0,p.jsxs)("div",{className:"grid grid-cols-1 gap-3",children:[(0,p.jsx)(R,{id:"extendify-page-creator-page-description",title:(0,s.__)("Describe Your Page","extendify-local"),required:!0,className:"input-focus h-[220px] w-full max-w-full resize-none border border-gray-600 py-3 pe-6 ps-3 text-base placeholder:italic placeholder:opacity-70",placeholder:(0,s.__)('E.g., Create an "About Us" page highlighting our story, mission, values and leam overview.',"extendify-local"),value:c,onChange:e=>d(e.currentTarget.value)}),(0,p.jsx)(R,{id:"extendify-page-creator-site-description",hideEditor:u,setHideEditor:x,title:Q?
// translators: %s: The site title
// translators: %s: The site title
(0,s.sprintf)((0,s.__)("Site Description for %s","extendify-local"),(0,I.decodeEntities)(Q)):(0,s.__)("Site Description","extendify-local"),className:"input-focus h-[220px] w-full max-w-full resize-none border border-gray-600 py-3 pe-6 ps-3 text-base placeholder:italic placeholder:opacity-70",placeholder:(0,s.__)("This is the site description with all its ups and downs.","extendify-local"),value:f,onChange:e=>y(e.currentTarget.value)}),(0,p.jsx)(T,{label:(0,s.__)("Allow plugins to be installed for advanced page features","extendify-local"),slug:"extendify-page-creator-allow-plugins",checked:t,onChange:e=>a("allowsInstallingPlugins",e.target.checked)}),(0,p.jsx)("button",{id:"extendify-page-creator-generate-btn",type:"button",disabled:g,onClick:()=>{w(),e()},className:"mt-2.5 rounded-sm bg-editor-main px-4 py-2.5 text-sm font-medium text-design-text hover:opacity-90 disabled:bg-gray-300",children:(0,s.__)("Generate Page","extendify-local")})]})]})}},"generating-page":{component:({insertPage:e})=>{const{page:t,loading:a}=(()=>{const{pageProfile:e}=fe(),{template:t}=(()=>{var e;const{pageProfile:t}=fe(),{siteImages:a}=(()=>{const{loading:e,pageProfile:t}=fe(),{setProgress:a,regenerationCount:n}=h(),{data:i,error:o}=(0,we.A)(e?null:{key:`page-images-${n}`,pageProfile:t},ue);return(0,r.useEffect)((()=>{i||a((0,s.__)("Finding images...","extendify-local"))}),[i,a]),{siteImages:i,error:o,loading:!i&&!o}})(),{sitePlugins:n}=(({disableFetch:e=!1}={})=>{const{loading:t,pageProfile:a}=fe(),r={key:"site-plugins-page-creator",pageProfile:a},{data:n,error:i}=(0,he.Ay)(t||e?null:r,xe);return{sitePlugins:n,error:i,loading:!n&&!i}})(),i=!t||!a||!n,{setProgress:o,regenerationCount:l}=h(),c={key:`page-creator-page-layout-${l}`,pageProfile:t,siteImages:a,sitePlugins:n},d=t?.isImprintPage?()=>(async()=>{const e=await ae(),t=`${oe.zL}/api/page-imprint`,a=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...de,siteStyle:JSON.stringify(e)})});if(!a.ok)throw new Error("Could not get imprint page");const r=await a.json();if(!r?.template)throw new Error("No template found for imprint page");return{...r.template}})():pe,{data:p,error:g}=(0,we.A)(i?null:c,d);return(0,r.useEffect)((()=>{p||o((0,s.__)("Creating a custom layout...","extendify-local"))}),[p,o]),{template:null!==(e=p?.template)&&void 0!==e?e:p,error:g,loading:!p&&!g}})(),{setProgress:a,regenerationCount:n}=h(),i=!e||!t,o=e?.isImprintPage,l={key:`page-creator-page-custom-content-${n}`,pageProfile:e,userState:{businessInformation:Ce?.businessInformation,siteInformation:Ce?.siteInformation,siteId:Ne},page:t},{data:c,error:d}=(0,we.A)(i||o?null:l,ge),p=(0,r.useMemo)((()=>o&&t?{patterns:t.patterns||[]}:c),[o,t,c]);(0,r.useEffect)((()=>{i||a((0,s.__)("Writing custom content...","extendify-local"))}),[p,a,i]);const g=(0,r.useMemo)((()=>p?.patterns?p.patterns.map((e=>({...e,code:je(e.code,_e)}))):[]),[p?.patterns]);return{page:p?{patterns:g,title:e.aiTitle}:p,error:d,loading:!p&&!d}})(),{progress:n,setProgress:l}=h(),{editPost:c}=(0,i.useDispatch)(o.store),[d,g]=(0,r.useState)([]),m=(0,r.useRef)(!1),u=(0,r.useRef)(!1),{theme:x,templates:w}=(0,i.useSelect)((e=>{const t=e("core"),a=t.getCurrentTheme();return{theme:a,templates:t.getEntityRecords("postType","wp_template",{per_page:-1,context:"edit",theme:a?.stylesheet})}}),[]);return(0,r.useEffect)((()=>{!t&&a||m.current||(m.current=!0,l((0,s.__)("Processing patterns and installing required plugins...","extendify-local")),(async()=>{await(async e=>{e&&"theme"===(await q()({path:"/wp/v2/templates/extendable//page-with-title"})).source&&await(e=>{const t=`\n\t\t\x3c!-- wp:template-part {"slug":"header","tagName":"header"} /--\x3e\n\t\t\x3c!-- wp:group {"tagName":"main","style":{"spacing":{"margin":{"top":"0px","bottom":"0px"},"blockGap":"0"}}} --\x3e\n\t\t<main class="wp-block-group" style="margin-top:0px;margin-bottom:0px">\n\t\t\t${e}\n\t\t\t\x3c!-- wp:post-content {"layout":{"type":"constrained"}} /--\x3e\n\t\t</main>\n\t\t\x3c!-- /wp:group --\x3e\n\t\t\x3c!-- wp:template-part {"slug":"footer","tagName":"footer"} /--\x3e\n\t\t`;return q()({path:"/wp/v2/templates/extendable/page-with-title",method:"POST",data:{slug:"page-with-title",theme:"extendable",type:"wp_template",status:"publish",description:(0,s.__)("Added by Launch","extendify-local"),content:t}})})((0,I.decodeEntities)(e))})(ze);const e=await(async e=>{const t=(await(async()=>await q()({path:"/extendify/v1/launch/active-plugins",method:"GET"}))())?.data?.map((e=>e.split("/")[0]))||[],a=e.filter((e=>e.pluginDependency)).map((e=>e.pluginDependency)).filter((e=>!t.includes(e)));for(const e of a)(0,Ee.yB)({slug:e,source:"page-creator"});for(let t=1;t<=3;t++)try{return await re(e)}catch(a){if(3===t)return console.error("Failed to process patterns after 3 attempts:",a),e;await new Promise((e=>setTimeout(e,1e3)))}})(t?.patterns);await(async({patterns:e})=>{const{installBlockType:t}=(0,i.dispatch)(Oe.store),{installedPlugins:a,updateInstalledPlugins:r}=Te.getState(),n=e.flatMap((e=>e.patternReplacementCode)).filter(Boolean),o=$e.filter((e=>n.some((t=>t.includes(e)))&&!a.includes(e)));for(const e of o){const a=Ie[e];a&&await t(a)}await r()})({patterns:e}),g(e)})())}),[a,t,g,l]),(0,r.useEffect)((()=>{if(!d?.length||!m.current)return;if(!x||!Array.isArray(w))return;const a="extendable"===x.textdomain,r=a&&w.some((e=>"page-with-title"===e.slug)),n=(r?d.filter((e=>!e.patternTypes?.includes("page-title"))):d).flatMap((({code:e})=>{const t=e.replaceAll(/href="#extendify-([^"]+)"/g,'href="#"');return(0,ee.rawHandler)({HTML:t})}));!u.current&&a&&(c({template:r?"page-with-title":"no-title"}).catch((()=>{})),u.current=!0),(async()=>{await q()({path:"/extendify/v1/page-creator/settings/single",method:"POST",data:{key:"extendify_check_for_image_imports",value:!0}})})();let i=setTimeout((()=>e(n,t.title)),1e3);return()=>clearTimeout(i)}),[e,d,c,t,x,w]),(0,p.jsx)("div",{className:"mx-auto flex flex-grow items-center justify-center",children:(0,p.jsxs)("div",{className:"mx-auto flex h-full flex-col justify-center",children:[(0,p.jsx)(ie,{poster:`${window.extSharedData.assetPath}/site-building.webp`,path:"https://images.extendify-cdn.com/launch/site-building.webm",className:"mx-auto h-auto w-[200px] md:w-[400px]"}),n&&(0,p.jsx)("p",{className:"text-center text-lg","aria-live":"polite",children:n})]})})}}},Ae=Object.entries(Le),Be=(0,w.lt)(((e,t)=>({pages:new Map(Ae),currentPageIndex:0,count:()=>t().pages.size,getPageOrder:()=>Array.from(t().pages.keys()),getCurrentPageData:()=>t().pages.get(t().getCurrentPageSlug()),getPageSlug:e=>t().getPageOrder()[e],getCurrentPageSlug:()=>t().getPageOrder()[t().currentPageIndex]||(t().setPage(0),t().getPageOrder()[0]),getPageData:e=>t().pages.get(e),getNextPageData:()=>{const e=t().currentPageIndex+1;return e>t().count()-1?{}:t().getPageData(t().getPageSlug(e))},setPage:a=>{"string"==typeof a&&(a=t().getPageOrder().indexOf(a)),a>t().count()-1||a<0||e({currentPageIndex:a})},findPreviousValidPage:e=>{let t=e;do{t-=1}while(t>0);return t},nextPage:()=>{const e=t().currentPageIndex+1;t().setPage(e)},previousPage:()=>{t().setPage(t().findPreviousValidPage(t().currentPageIndex))}})),{name:"Extendify Page Creator Pages",serialize:!0}),Re=(0,x.vt)(Be),Me=({insertPage:e})=>{const[t,a]=(0,r.useState)(!1),{component:n}=Re((e=>e.getCurrentPageData()));return(0,p.jsxs)(he.BE,{value:{errorRetryInterval:1e3,onErrorRetry:(e,r,n,i,{retryCount:o})=>{console.error(e),403!==e?.data?.status?t||(a(!0),setTimeout((()=>{a(!1),i({retryCount:o})}),5e3)):window.location.reload()}},children:[n?(0,p.jsx)(n,{insertPage:e}):null,(0,p.jsx)(D,{show:t})]})},Fe=()=>{const{incrementActivity:e}=(0,d.e)(),{open:t,setOpen:a}=h(),{updateUserOption:n,openOnNewPage:l}=H(),{setPage:c}=Re(),{resetBlocks:g}=(0,i.dispatch)("core/block-editor"),{closeGeneralSidebar:m}=(0,i.useDispatch)(v.store),u=(0,i.useSelect)((e=>e("core/preferences").get("core","renderingModes")||{}),[]),x="template-locked"===u?.extendable?.page,{set:w}=(0,i.useDispatch)("core/preferences"),f=e=>w("core","renderingModes",{...u,extendable:{...u.extendable||{},page:e}}),{createNotice:y}=(0,i.dispatch)("core/notices"),S=(0,r.useRef)(!1),P=()=>{e("page-creator-modal-close"),a(!1),c(0)},k=(0,i.useSelect)((e=>{const t=e(o.store);return{isPage:"page"===t.getCurrentPostType(),isNew:t.isCleanNewPost(),isEmptyPost:t.isEditedPostEmpty()}}),[]);return(0,r.useLayoutEffect)((()=>{t||S.current||(S.current=!0,l&&k.isNew&&(window.dispatchEvent(new CustomEvent("extendify-hc:minimize")),window.dispatchEvent(new CustomEvent("extendify::close-library")),e("page-creator-auto-open"),a(!0)),new URLSearchParams(window.location.search).has("ext-open-ai-creator")&&(a(!0),e("page-creator-search-param-auto-open")))}),[l,a,e,t,k.isNew]),(0,r.useEffect)((()=>{const t=new URLSearchParams(window.location.search),{pathname:r}=window.location;t.has("ext-page-creator-close")&&(a(!1),t.delete("ext-page-creator-close"),window.history.replaceState({},"",r+"?"+t.toString()),e("page-creator-search-param-auto-close")),t.has("ext-open")&&(window.dispatchEvent(new CustomEvent("extendify::open-library")),t.delete("ext-open"),window.history.replaceState({},"",r+"?"+t.toString()))}),[a,e]),(0,r.useEffect)((()=>{const e=()=>a(!0),t=()=>a(!1);return window.addEventListener("extendify::open-page-creator",e),window.addEventListener("extendify::close-page-creator",t),()=>{window.removeEventListener("extendify::open-page-creator",e),window.removeEventListener("extendify::close-page-creator",t)}}),[a]),(0,r.useEffect)((()=>{t&&(0,i.select)("core/edit-post").isFeatureActive("welcomeGuide")&&(0,i.dispatch)("core/edit-post").toggleFeature("welcomeGuide")}),[t]),t?(0,p.jsx)(b.lG,{className:"extendify-page-creator extendify-page-creator-modal",open:t,static:!0,"aria-labelledby":"page-creator-modal",role:"dialog",onClose:()=>{},children:(0,p.jsxs)("div",{className:"mx-auto flex h-full w-full items-center justify-center pt-10 md:p-10",children:[(0,p.jsx)("div",{onClick:P,role:"button",tabIndex:0,"aria-label":(0,s.__)("Close AI Page Creator","extendify-local"),className:"fixed inset-0 bg-black/30",style:{backdropFilter:"blur(2px)"},"aria-hidden":"true"}),(0,p.jsxs)(O.P.div,{initial:{y:30,opacity:0},animate:{y:0,opacity:1},exit:{y:0,opacity:0},transition:{duration:.3},className:"relative mx-auto h-full max-h-full w-full max-w-4xl rounded-lg bg-white shadow-2xl sm:flex sm:overflow-hidden md:h-auto",children:[(0,p.jsx)(b.L3,{className:"sr-only",children:(0,s.__)("AI Page Creator","extendify-local")}),(0,p.jsxs)("div",{className:"relative flex w-full flex-col bg-white",children:[(0,p.jsx)(_,{openOnNewPage:l,updateUserOption:n,onClose:P}),(0,p.jsx)("div",{id:"extendify-page-creator-pages",className:"mx-8 flex-grow overflow-y-auto",children:(0,p.jsx)(Me,{insertPage:async(t,a)=>{m();try{x&&(f("post-only"),await new Promise((e=>requestAnimationFrame(e)))),!(()=>{const{getBlocks:e}=(0,i.select)("core/block-editor"),t=e();return 1===t.length&&"core/paragraph"===t[0].name&&""===t[0].attributes?.content?.text})()&&k.isEmptyPost||g([]),await(async e=>{const{insertBlocks:t,replaceBlock:a}=(0,i.dispatch)("core/block-editor"),{getSelectedBlock:r,getBlockHierarchyRootClientId:n,getBlockIndex:o,getGlobalBlockCount:s}=(0,i.select)("core/block-editor"),{clientId:l,name:c,attributes:d}=r()||{},p=l?n(l):"",g=(p?o(p):s())+1;return"core/paragraph"===c&&""===d?.content?await a(l,e):await t(e,g)})(t),(0,i.dispatch)("core/editor").editPost({title:a}),e("page-creator-page-insert"),P(),y("info",(0,s.__)("Page added","extendify-local"),{isDismissible:!0,type:"snackbar"})}catch(e){console.error("Failed to insert page:",e),y("error",(0,s.__)("Failed to add page","extendify-local"),{isDismissible:!0,type:"snackbar"})}finally{x&&f("template-locked")}}})})]})]},"ai-page-generator-modal")]})}):null};var Ge=a(7828),qe=a(9666);(0,n.registerPlugin)("extendify-page-creator-buttons",{render:()=>(0,p.jsx)(Je,{})});const Je=()=>((0,r.useEffect)((()=>{if(!qe.j||"page"!==window.wp.data.select("core/editor").getCurrentPostType())return;const e="extendify-page-creator-btn",t="extendify-page-creator";document.getElementById(e)||requestAnimationFrame((()=>{requestAnimationFrame((()=>{if(document.getElementById(e))return;const a=document.createElement("div"),r=Object.assign(a,{id:e,className:t});document.querySelector(".edit-post-header-toolbar")?.append(r),document.querySelector(".edit-site-header-edit-mode__start")?.append(r),(0,Ge.X)((0,p.jsx)(y,{}),r);const n="extendify-page-creator-modal";if(document.getElementById(n))return;const i=document.createElement("div"),o=Object.assign(i,{id:n,className:t});document.body.append(o),(0,Ge.X)((0,p.jsx)(Fe,{}),o)}))}))}),[]),null)},5795:e=>{e.exports=window.ReactDOM},6087:e=>{e.exports=window.wp.element},6427:e=>{e.exports=window.wp.components},7143:e=>{e.exports=window.wp.data},7723:e=>{e.exports=window.wp.i18n},8537:e=>{e.exports=window.wp.htmlEntities}},e=>{e.O(0,[65,223],(()=>e(e.s=5583))),e.O()}]);