Sid Gifari File Manager
🏠 Root
/
home2
/
iuywvcmy
/
public_html
/
wp-content
/
plugins
/
bluehost-wordpress-plugin
/
build
/
4.12.0
/
Editing: index.js
(()=>{var e,t,n,r,o,i,a={12:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(5204),o=n(8746),i=n(1978),a=n(4619),l=n(3928),s=n(8354),c=n(790);const u=({item:e,methods:t,constants:n})=>{const u=e=>{e.data=e.data||{},e.data.page=window.location.href,t.apiFetch({url:t.NewfoldRuntime.createApiUrl(n.eventendpoint),method:"POST",data:e})},d=t=>{t.keycode&&ENTER!==t.keycode||u({action:"newfold-marketplaceitem-click",data:{element:"button",label:t.target.innerText,productId:e.id}})},f=t=>{t.keycode&&ENTER!==t.keycode||u({action:"newfold-marketplaceitem-click",data:{element:"a",href:t.target.getAttribute("href"),label:t.target.innerText,productId:e.id}})};return t.useEffect((()=>{const t=document.getElementById(`marketplace-item-${e.id}`),n=Array.from(t.querySelectorAll("button")),r=Array.from(t.querySelectorAll("a"));return n.length&&n.forEach((e=>{"close"!==e.getAttribute("data-action")&&(e.addEventListener("click",d),e.addEventListener("onkeydown",d))})),r.length&&r.forEach((e=>{"close"!==e.getAttribute("data-action")&&(e.addEventListener("click",f),e.addEventListener("onkeydown",f))})),()=>{n.length&&n.forEach((e=>{"close"!==e.getAttribute("data-action")&&(e.removeEventListener("click",d),e.removeEventListener("onkeydown",d))})),r.length&&r.forEach((e=>{"close"!==e.getAttribute("data-action")&&(e.removeEventListener("click",f),e.removeEventListener("onkeydown",f))}))}}),[]),(0,c.jsxs)(a.A,{className:`marketplace-item marketplace-item-${e.id} ${e.full_price?"product-has-full-price":""}`,id:`marketplace-item-${e.id}`,children:[(0,c.jsx)(a.A.Header,{className:"nfd-h-auto nfd-p-0",children:e.productThumbnailUrl&&(0,c.jsx)("img",{src:e.productThumbnailUrl,alt:e.name+" thumbnail",className:"nfd-w-full nfd-aspect-video marketplace-item-image"})}),(0,c.jsxs)(a.A.Content,{className:"nfd-flex nfd-flex-col nfd-gap-3",children:[(0,c.jsx)(l.Ay,{as:"h2",size:"4",className:"marketplace-item-title",children:e.name}),(0,c.jsx)("p",{children:e.description}),(e=>{let n="";const o=(0,r.A)(e.secondaryUrl),a=()=>o?`${window.NewfoldRuntime.admin_url}admin.php?page=${window.NewfoldRuntime.plugin.brand}#/marketplace/product/${e.secondaryUrl}`:e.secondaryUrl;return e.secondaryCallToAction&&e.secondaryUrl&&(n=(0,c.jsxs)(i.A,{as:"a",className:"nfd-inline-flex nfd-items-center nfd-gap-1.5 nfd-w-max nfd-no-underline",href:window.NewfoldRuntime?.linkTracker?.addUtmParams(a())||a(),target:o?"_self":"_blank",onClick:n=>{const r=t.useNavigate();o&&(n.preventDefault(),r(`/marketplace/product/${e.secondaryUrl}`))},"data-nfd-click":"newfold-marketplaceitem-click","data-nfd-event-key":e.secondaryCallToAction,"data-nfd-product-id":e.id,children:[(0,c.jsx)("span",{className:"nfd-text-primary",children:e.secondaryCallToAction}),(0,c.jsx)(s.A,{className:"nfd-text-[#18181B] nfd-w-3"})]})),n})(e)]}),(0,c.jsxs)(a.A.Footer,{className:"nfd-flex nfd-justify-between nfd-items-center nfd-flex-wrap nfd-gap-2 marketplace-item-footer",children:[(e=>{let t,n,r="";return e.price>0&&e.price_formatted&&(n=(0,c.jsx)("span",{className:"marketplace-item-price nfd-bg-[#E2E8F0] nfd-py-1 nfd-px-3 nfd-rounded-full",children:e.price_formatted}),e.full_price>0&&e.full_price_formatted&&(r=(0,c.jsx)("span",{className:"marketplace-item-fullprice nfd-line-through",children:e.full_price_formatted})),t=(0,c.jsxs)("div",{className:"marketplace-item-price-wrap has-full-price nfd-flex nfd-flex-col nfd-items-center nfd-gap-2 nfd-text-[#1E293B] nfd-font-medium",children:[r,n]})),t})(e),(e=>{let t="";return e.primaryCallToAction&&e.primaryUrl&&(t=e.clickToBuyId?(0,c.jsx)(o.Ay,{as:"a",href:window.NewfoldRuntime?.linkTracker?.addUtmParams(e.primaryUrl)||e.primaryUrl,target:"_blank","data-action":"load-nfd-ctb","data-ctb-id":e.clickToBuyId,"data-nfd-click":"newfold-marketplaceitem-click","data-nfd-event-key":e.primaryCallToAction,"data-nfd-product-id":e.clickToBuyId,children:e.primaryCallToAction}):(0,c.jsx)(o.Ay,{as:"a",href:window.NewfoldRuntime?.linkTracker?.addUtmParams(e.primaryUrl)||e.primaryUrl,target:"_blank",children:e.primaryCallToAction})),t})(e)]})]})}},236:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>h});var r=n(6942),o=n.n(r),i=n(5556),a=n.n(i),l=n(5410),s=n(7076),c=n(1609),u=n(790);const d={variant:{info:"nfd-alert--info",warning:"nfd-alert--warning",success:"nfd-alert--success",error:"nfd-alert--error"}},f={alert:"alert",status:"status"},p=(0,c.forwardRef)((({children:e,role:t="status",as:n="span",variant:r="info",className:i="",...a},c)=>(0,u.jsxs)(n,{ref:c,className:o()("nfd-alert",d.variant[r],i),role:f[t],...a,children:[(0,u.jsx)(l.A,{variant:r,className:"nfd-alert__icon"}),(0,u.jsx)(s.A,{as:"div",variant:r,className:"nfd-alert__message",children:e})]}))),m={children:a().node.isRequired,as:a().elementType,variant:a().oneOf(Object.keys(d.variant)),className:a().string,role:a().oneOf(Object.keys(f))};p.propTypes=m,p.defaultProps={as:"span",variant:"info",className:"",role:"status"},p.displayName="Alert";const h=p,g=e=>(0,u.jsx)(p,{...e});g.propTypes=p.propTypes,g.DefaultProps=p.defaultProps,g.displayName="Alert"},247:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609);function o({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.48 3.499a.562.562 0 0 1 1.04 0l2.125 5.111a.563.563 0 0 0 .475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 0 0-.182.557l1.285 5.385a.562.562 0 0 1-.84.61l-4.725-2.885a.562.562 0 0 0-.586 0L6.982 20.54a.562.562 0 0 1-.84-.61l1.285-5.386a.562.562 0 0 0-.182-.557l-4.204-3.602a.562.562 0 0 1 .321-.988l5.518-.442a.563.563 0 0 0 .475-.345L11.48 3.5Z"}))}const i=r.forwardRef(o)},363:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>h});var r=n(6942),o=n.n(r),i=n(8468),a=n(5556),l=n.n(a),s=n(6244),c=n(1609),u=n(790);const d={variant:{default:"",primary:"nfd-text-primary-500",white:"nfd-text-white"},size:{3:"nfd-w-3 nfd-h-3",4:"nfd-w-4 nfd-h-4",8:"nfd-w-8 nfd-h-8"}},f=(0,c.forwardRef)((({variant:e,size:t,className:n},r)=>{const i=(0,s.A)();return(0,u.jsxs)("svg",{ref:r,xmlns:"http://www.w3.org/2000/svg/",fill:"none",viewBox:"0 0 24 24",className:o()("nfd-animate-spin",d.variant[e],d.size[t],n),...i,children:[(0,u.jsx)("circle",{className:"nfd-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,u.jsx)("path",{className:"nfd-opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})})),p={variant:l().oneOf((0,i.keys)(d.variant)),size:l().oneOf((0,i.keys)(d.size)),className:l().string};f.propTypes=p,f.defaultProps={variant:"default",size:"4",className:""},f.displayName="Spinner";const m=e=>(0,u.jsx)(f,{...e});m.propTypes=p,m.defaultProps=f.defaultProps,m.displayName="Spinner";const h=f},372:(e,t,n)=>{"use strict";n.d(t,{FE:()=>p,Q3:()=>h,VX:()=>y,_A:()=>f,xh:()=>m});var r,o,i=n(7555),a=n(9669),l=n(8342),s=n(4122),c=n(5897),u=Object.defineProperty,d=(e,t,n)=>(((e,t,n)=>{t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),f=((o=f||{})[o.Open=0]="Open",o[o.Closed=1]="Closed",o),p=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(p||{}),m=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(m||{}),h=((r=h||{})[r.OpenListbox=0]="OpenListbox",r[r.CloseListbox=1]="CloseListbox",r[r.GoToOption=2]="GoToOption",r[r.Search=3]="Search",r[r.ClearSearch=4]="ClearSearch",r[r.RegisterOptions=5]="RegisterOptions",r[r.UnregisterOptions=6]="UnregisterOptions",r[r.SetButtonElement=7]="SetButtonElement",r[r.SetOptionsElement=8]="SetOptionsElement",r[r.SortOptions=9]="SortOptions",r);function g(e,t=e=>e){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=(0,s.wl)(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),o=n?r.indexOf(n):null;return-1===o&&(o=null),{options:r,activeOptionIndex:o}}let v={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,pendingFocus:{focus:l.B.Nothing},listboxState:1,__demoMode:!1},0(e,t){if(e.dataRef.current.disabled||0===e.listboxState)return e;let n=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,o=e.options.findIndex((e=>r(e.dataRef.current.value)));return-1!==o&&(n=o),{...e,pendingFocus:t.focus,listboxState:0,activeOptionIndex:n,__demoMode:!1}},2(e,t){var n,r,o,i,a;if(e.dataRef.current.disabled||1===e.listboxState)return e;let s={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===l.B.Nothing)return{...s,activeOptionIndex:null};if(t.focus===l.B.Specific)return{...s,activeOptionIndex:e.options.findIndex((e=>e.id===t.id))};if(t.focus===l.B.Previous){let n=e.activeOptionIndex;if(null!==n){let i=e.options[n].dataRef.current.domRef,a=(0,l.X)(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==a){let t=e.options[a].dataRef.current.domRef;if((null==(r=i.current)?void 0:r.previousElementSibling)===t.current||null===(null==(o=t.current)?void 0:o.previousElementSibling))return{...s,activeOptionIndex:a}}}}else if(t.focus===l.B.Next){let n=e.activeOptionIndex;if(null!==n){let r=e.options[n].dataRef.current.domRef,o=(0,l.X)(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==o){let t=e.options[o].dataRef.current.domRef;if((null==(i=r.current)?void 0:i.nextElementSibling)===t.current||null===(null==(a=t.current)?void 0:a.nextElementSibling))return{...s,activeOptionIndex:o}}}}let c=g(e),u=(0,l.X)(t,{resolveItems:()=>c.options,resolveActiveIndex:()=>c.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...s,...c,activeOptionIndex:u}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find((e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))})),i=o?e.options.indexOf(o):-1;return-1===i||i===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:i,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let n=e.options.concat(t.options),r=e.activeOptionIndex;if(e.pendingFocus.focus!==l.B.Nothing&&(r=(0,l.X)(e.pendingFocus,{resolveItems:()=>n,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled})),null===e.activeOptionIndex){let{isSelected:t}=e.dataRef.current;if(t){let e=n.findIndex((e=>null==t?void 0:t(e.dataRef.current.value)));-1!==e&&(r=e)}}return{...e,options:n,activeOptionIndex:r,pendingFocus:{focus:l.B.Nothing},pendingShouldSort:!0}},6:(e,t)=>{let n=e.options,r=[],o=new Set(t.options);for(let[e,t]of n.entries())if(o.has(t.id)&&(r.push(e),o.delete(t.id),0===o.size))break;if(r.length>0){n=n.slice();for(let e of r.reverse())n.splice(e,1)}return{...e,options:n,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},9:e=>e.pendingShouldSort?{...e,...g(e),pendingShouldSort:!1}:e};class y extends i.u5{constructor(e){super(e),d(this,"actions",{onChange:e=>{let{onChange:t,compare:n,mode:r,value:o}=this.state.dataRef.current;return(0,c.Y)(r,{0:()=>null==t?void 0:t(e),1:()=>{let r=o.slice(),i=r.findIndex((t=>n(t,e)));return-1===i?r.push(e):r.splice(i,1),null==t?void 0:t(r)}})},registerOption:(0,i.vA)((()=>{let e=[],t=new Set;return[(n,r)=>{t.has(r)||(t.add(r),e.push({id:n,dataRef:r}))},()=>(t.clear(),this.send({type:5,options:e.splice(0)}))]})),unregisterOption:(0,i.vA)((()=>{let e=[];return[t=>e.push(t),()=>{this.send({type:6,options:e.splice(0)})}]})),goToOption:(0,i.vA)((()=>{let e=null;return[(t,n)=>{e={type:2,...t,trigger:n}},()=>e&&this.send(e)]})),closeListbox:()=>{this.send({type:1})},openListbox:e=>{this.send({type:0,focus:e})},selectActiveOption:()=>{if(null!==this.state.activeOptionIndex){let{dataRef:e,id:t}=this.state.options[this.state.activeOptionIndex];this.actions.onChange(e.current.value),this.send({type:2,focus:l.B.Specific,id:t})}},selectOption:e=>{let t=this.state.options.find((t=>t.id===e));t&&this.actions.onChange(t.dataRef.current.value)},search:e=>{this.send({type:3,value:e})},clearSearch:()=>{this.send({type:4})},setButtonElement:e=>{this.send({type:7,element:e})},setOptionsElement:e=>{this.send({type:8,element:e})}}),d(this,"selectors",{activeDescendantId(e){var t;let n=e.activeOptionIndex,r=e.options;return null===n||null==(t=r[n])?void 0:t.id},isActive(e,t){var n;let r=e.activeOptionIndex,o=e.options;return null!==r&&(null==(n=o[r])?void 0:n.id)===t},shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.listboxState&&0!==e.activationTrigger&&this.isActive(e,t)}}),this.on(5,(()=>{requestAnimationFrame((()=>{this.send({type:9})}))}));{let e=this.state.id,t=a.D.get(null);this.disposables.add(t.on(a.Q.Push,(n=>{!t.selectors.isTop(n,e)&&0===this.state.listboxState&&this.actions.closeListbox()}))),this.on(0,(()=>t.actions.push(e))),this.on(1,(()=>t.actions.pop(e)))}}static new({id:e,__demoMode:t=!1}){return new y({id:e,dataRef:{current:{}},listboxState:t?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,buttonElement:null,optionsElement:null,pendingShouldSort:!1,pendingFocus:{focus:l.B.Nothing},__demoMode:t})}reduce(e,t){return(0,c.Y)(t.type,v,e,t)}}},433:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(6087),o=n(2609),i=n(652),a=n(7636),l=n(9152),s=n(236),c=n(524),u=n(1124),d=n(2914),f=n(790),p=n(6087).useContext,__=n(7723).__,m=n(7723).sprintf,_n=n(7723)._n;const h=({setError:e,notify:t})=>{const{store:n,setStore:a}=p(c.Ay),[l,s]=(0,r.useState)(n.disableCommentsOldPosts),d=()=>{const e=__("Disabled old post comments","wp-plugin-bluehost"),t=__("Enabled old post comments","wp-plugin-bluehost");return l?e:t},m=()=>{const e=__("Comments on old posts are disabled.","wp-plugin-bluehost"),t=__("Comments are allowed on old posts.","wp-plugin-bluehost");return l?e:t};return(0,o.A)((()=>{a({...n,disableCommentsOldPosts:l}),t.push("disable-old-posts-comments-notice",{title:d(),description:(0,f.jsx)("span",{children:m()}),variant:"success",autoDismiss:5e3})}),[l]),(0,f.jsx)(i.A,{id:"disable-comments-toggle",label:__("Disable comments for older posts","wp-plugin-bluehost"),checked:l,onChange:()=>{(0,u.co)({disableCommentsOldPosts:!l},e,(e=>{s(!l)}))},className:"nfd-mb-2"})},g=({setError:e,notify:t})=>{const{store:n,setStore:i}=p(c.Ay),[l,s]=(0,r.useState)(n.closeCommentsDays);return(0,o.A)((()=>{i({...n,closeCommentsDays:l}),t.push("close-comments-days-notice",{title:__("Comments setting saved","wp-plugin-bluehost"),description:(0,f.jsx)("span",{children:m( //translators: %s: number of days. `Comments on posts are disabled after ${closeCommentsDays} days.` _n("Comments on posts are disabled after %s day.","Comments on posts are disabled after %s days.",parseInt(l),"wp-plugin-bluehost"),l)}),variant:"success",autoDismiss:5e3})}),[l]),(0,f.jsx)(a.A,{id:"close-comments-days-select",label:()=>m( //translators: %s: number of days. `Close comments after ${closeCommentsDays} days.` _n("Close comments after %s day.","Close comments after %s days.",parseInt(l),"wp-plugin-bluehost"),l),value:l,disabled:!n.disableCommentsOldPosts,selectedLabel:l,options:[{label:"1",value:"1"},{label:"3",value:"3"},{label:"5",value:"5"},{label:"7",value:"7"},{label:"10",value:"10"},{label:"14",value:"14"},{label:"20",value:"20"},{label:"28",value:"28"},{label:"30",value:"30"},{label:"50",value:"50"},{label:"100",value:"100"}],onChange:t=>{(0,u.co)({closeCommentsDays:t},e,(e=>{s(t)}))},className:"nfd-select-field__spaced"})},v=({setError:e,notify:t})=>{const{store:n,setStore:i}=p(c.Ay),[l,s]=(0,r.useState)(n.commentsPerPage);return(0,o.A)((()=>{i({...n,commentsPerPage:l}),t.push("comments-per-page-notice",{title:__("Comments setting saved.","wp-plugin-bluehost"),description:(0,f.jsx)("span",{children:m( //translators: %s: number of comments. `Posts will display ${commentsPerPage} comments at a time.` _n("Posts will display %s comment at a time.","Posts will display %s comments at a time.",parseInt(l),"wp-plugin-bluehost"),l)}),variant:"success",autoDismiss:5e3})}),[l]),(0,f.jsx)(a.A,{id:"comments-per-page-select",label:__("Comments to display per page","wp-plugin-bluehost"),value:l,selectedLabel:l,options:[{label:"10",value:"10"},{label:"15",value:"15"},{label:"20",value:"20"},{label:"30",value:"30"},{label:"50",value:"50"}],onChange:t=>{(0,u.co)({commentsPerPage:t},e,(e=>{s(t)}))},className:"nfd-select-field__spaced"})},y=()=>{const[e,t]=(0,r.useState)(!1),n=(0,d.h)();return(0,f.jsx)(l.A.SettingsField,{title:__("Comments","wp-plugin-bluehost"),description:__("Comments allow visitors to provide feedback and respond to your posts or pages.","wp-plugin-bluehost"),children:(0,f.jsxs)("div",{className:"nfd-flex nfd-flex-col nfd-gap-4",children:[(0,f.jsx)(h,{setError:t,notify:n}),(0,f.jsx)(g,{setError:t,notify:n}),(0,f.jsx)(v,{setError:t,notify:n}),e&&(0,f.jsx)(s.Ay,{variant:"error",children:__("Oops! Something went wrong. Please try again.","wp-plugin-bluehost")})]})})}},515:(e,t,n)=>{"use strict";n.d(t,{h:()=>u});var r,o,i,a,l,s=n(1609);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(null,arguments)}var u=function(e){return s.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 86 60"},e),r||(r=s.createElement("g",{fill:"#346BD5",clipPath:"url(#a)"},s.createElement("path",{d:"M17.9 19.9c0-1.1.1-2.2.4-3.3l.6-2.1.5-1.5.5-1.3.5-1.5c.1-.2 0-.3-.2-.3h-2c-.2-.1-.3 0-.4.2a171 171 0 0 0-2 4.4l-.7 2-.6 1.6c0 .2 0 .5-.2.7l-.4 2a4 4 0 0 0-.1 1.9c0 .3.2.5.3.8.2.2.1.5-.2.7a2 2 0 0 1-1.7 0 2 2 0 0 1-.9-1.3v-2c.3-1.8.8-3.5 1.4-5.1 0-.4.2-.7.3-1 .1-.2 0-.5-.1-.7a28.7 28.7 0 0 0-5-4.2c-.3-.2-.4-.4-.4-.8l.1-.9c.3-.6.8-.7 1.4-.7h2.6l2.4-.2h2l.3-.3.1-.2c.3-.6.9-.8 1.4-.4l.6.6.5.2c.8 0 1.6 0 2.3-.2l2.5-.2c.6 0 1.1-.2 1.7-.4.4-.1.8-.3 1.1-.7.3-.3.7-.2.8.2l.1.3a2.1 2.1 0 0 1-.4 2.4c-.8.6-1.7.9-2.7 1l-1 .1-.2.3-.9 2.1-.7 2-.6 1.4v.2h.2l.3-.3a7 7 0 0 1 1.6-1.7l1-.5c1 0 2 .8 1.6 1.9l-1 2.7a33 33 0 0 0-.8 2.5v.2h.3l.4-.5c.4-.6.8-1.1 1-1.7.3-.3.4-.8.5-1.2a7 7 0 0 1 2.5-3.7c1.2-1 2.5-.4 3.2.6l.3.6c0 .3.2.5.4.6l.6.6c.3.3.3.6.2 1l-.7 1.6-.5 1.8.1.3.4-.1.3-.5 1.4-2.4.2-.7a34 34 0 0 1 1.7-3.7c.2-.2.4-.3.7-.2.6.2 1.1.6 1.4 1.3 0 .2.1.3.3 0l1.1-.8c.8-.5 1.4-.5 2 0 .4.3.5.7.5 1.2l-.7 1.8-1.2 3-.3 1v.2c.2.1.3 0 .4 0l.2-.2 1.2-1.8c.3-.4.4-.8.5-1.3v-.5l.5-1.9.5-1.5.3-1a27 27 0 0 1 2-4.4c.2-.2.5-.3.7 0 .5.4.8 1 .8 1.6 0 .4-.3.8-.4 1.2l-1 2.2-.3 1s-.1.2 0 .2l.3-.1.4-.4 1-.7c.9-.5 1.9.1 2 1 .2 1-.2 1.7-.7 2.4a5.4 5.4 0 0 1-3 1.8l-.1.3.2.9c.3.7.5 1.3 1 1.9.4.6.9 1 1.6 1.4l.5.2h.5c.3.1.4.5.2.7-.6.5-1.1 1-1.9 1-.6.1-1.1-.1-1.6-.5V24l-.7-1a5 5 0 0 1-.8-1.8c-.1-.4-.3-.7-.3-1.1 0-.2-.1-.4-.3-.3-.2 0-.2.2-.2.3l.1 1.3v.5c0 .2 0 .3-.2.4s-.3 0-.4 0l-.5-.5c-.3-.2-.5-.4-.5-.8 0-.2 0-.3-.2-.4-.2 0-.3.1-.4.3a5.8 5.8 0 0 1-1.5 1.3c-.7.4-1.3.2-1.8-.4a2 2 0 0 1-.4-1.3l.3-2 .6-2v-.3l-.2.1-.3.2-1.5 2.5-1.4 2.8c-.2.4-.5.5-.8.3s-.5-.5-.6-.8c0-.2 0-.3-.2-.3-.1 0-.2 0-.3.2l-.6.7c-.6 1-2 .6-2.6-.1l-.3-.6q0-.3-.3 0l-1 .8c-.4.2-.8.5-1.3.5s-1-.3-1.3-.8l-.4-.7c0-.2-.2-.3-.4-.2l-.1.2-.7.8c-.6.7-1.8.6-2.4-.1-.4-.6-.4-1.2-.4-1.9l.1-.8.2-.7.2-.6c0-.2 0-.5.2-.7v-.5l-.3.1-.6.9-1.5 2.7c-.2.3-.2.6-.2 1v1c0 .4-.2.4-.5.3a2 2 0 0 1-1.1-1.5c-.1-.4-.2-.8-.1-1.2Zm12.6-4.6V15c0-.2 0-.3-.2-.4l-.4.1-.2.2-1 1.7L28 19c-.2.5-.5 1-.6 1.6 0 .2 0 .4.2.5.1.1.3 0 .5-.1.7-.7 1.4-1.4 2-2.3l.2-.4v-1.5c.2-.4.3-1 .3-1.4ZM12.4 9.6h-1.7l.1.4a43 43 0 0 1 2.4 3c.2.1.4 0 .5-.2l.6-1.4.5-1.3c.1-.4 0-.5-.3-.5zM47 14.9c0-.1-.1 0-.2 0l-1.1 1v.3c0 .1.1 0 .2 0 .4-.3.8-.7 1-1.1zM60 19c.1-1 .2-1.9.5-2.7.2-.4.4-.5.7-.5h.1c.4 0 .5 0 .5-.4.2-.8.5-1.5 1-2 .8-.7 1.6-1 2.6-.8.6 0 1 .4 1.4.8 1 1.1 1.1 2.4.8 3.8l-.1.7v.2h.3c0-.2.1-.2.2-.3l.7-1c.2-.1.3-.3.4-.6l.5-1.5.5-1c.2-.6.6-.7 1-.3l.7.5c.4.3.4.7.3 1.1l-.5 1.2c-.5 1-.9 2-1.1 3.1v.8h.4l.8-.8a20.4 20.4 0 0 0 2-3.8l.7-1.8c.2-.4.6-.6 1-.4s.8.4 1 .9c.1.2.2.4 0 .6l-.5 1.1-.9 2.5c0 .6-.3 1.1-.3 1.7v.3h.3l.3-.4 1.7-2.4a4.8 4.8 0 0 1 1.1-1.2c.1 0 .3-.1.4 0v.3l-.2.5c-.4 1-1 2-1.5 2.9a7 7 0 0 1-1.8 2c-.4.2-.8.3-1.2.2-.6-.1-1-.6-1.1-1l-.2-.5c0-.2-.2-.3-.4-.1l-.4.6a3 3 0 0 1-1.2.8c-.4.2-.7.1-1.1 0a2.3 2.3 0 0 1-1.3-2.2v-.3c-.2-.1-.3 0-.4.1a3 3 0 0 1-1.1.6c-.3 0-.5.3-.7.5-.5.5-1 1-1.7 1.3-1.2.4-2.7.2-3.5-1a4 4 0 0 1-.6-1.5v-.7Zm5.7-3.6V15c0-.7-.6-1-1.2-.8-.5.2-.8.7-1 1.1-.2.8-.1 1.5 0 2.2 0 .6.3 1.1.9 1.4.3.2.5.2.6-.2l.3-.9c.3-.7.5-1.5.4-2.4m-2.6 5.2.6-.1q.3 0 0-.3l-1-1-.2-.2h-.2c0 .5 0 .9.2 1.3zM51.5 26v-.5l.1-.1a67 67 0 0 0 1.2.2h.3c.4-.2.8-.5 1-.9a12.8 12.8 0 0 0 1.6-2.5V22h-.5c-.6.5-1.7.3-2-.3a3 3 0 0 1-.6-1.5 26.4 26.4 0 0 1 2-6.7c.2-.6.7-.7 1.1-.3l.5.5c.5.3.5.7.3 1.1l-.5 1-.4 1.2c-.4.8-.6 1.7-.8 2.6l-.2.8c0 .3.1.3.3.2a4 4 0 0 0 1-1l1.5-2.3c.2-.3.2-.7.3-1l.5-2 .1-.7c.1-.5.5-.7 1-.5.3 0 .6.3.8.5.3.2.4.6.3 1l-.7 2.4-.6 2.1-.8 2.7-.6 1.4-.3.7c-.2.6-.4 1.1-.8 1.5l-1 1.3-1 .8-.7.1c-.5.2-1 0-1.4 0l-.8-.6c-.2-.2-.2-.4-.2-.6z"}))),o||(o=s.createElement("path",{fill:"#F3F3F3",d:"m8.4 30.7-2.8-1.2v23.8l2.8 1.2 2.7-1.2 2.5 1.2 2.9-1.2 2.5 1.2 2.8-1.2 2.5 1.2 2.7-1.2 2.8 1.2 2.5-1.2 2.7 1.2 2.7-1.2 2.6 1.2 2.6-1.2 2.8 1.2 2.6-1.2 2.8 1.2 2.6-1.2 2.6 1.2 2.7-1.2 2.7 1.2 2.7-1.2 2.6 1.2 2.7-1.2 2.7 1.2 2.6-1.2 2.6 1.2 2.8-1.2V29.5l-2.8 1.2-2.6-1.2-2.6 1.2-2.7-1.2-2.7 1.2-2.6-1.2-2.7 1.2-2.7-1.2-2.7 1.2-2.6-1.2-2.6 1.2-2.8-1.2-2.6 1.2-2.8-1.2-2.6 1.2-2.6-1.2-2.7 1.2-2.7-1.2-2.5 1.2-2.8-1.2-2.7 1.2-2.5-1.2-2.8 1.2-2.5-1.2-2.9 1.2-2.5-1.2z"})),i||(i=s.createElement("path",{fill:"#346BD5",fillRule:"evenodd",d:"M31.7 41.2v.4c0 .3 0 .6.2.9l.6.6 1 .2c.3 0 .6 0 .8-.2l.6-.6c.2-.3.2-.6.2-.9v-.4c0-.3 0-.6-.2-.8l-.5-.7-1-.2c-.3 0-.6 0-.9.2l-.6.7zm1.1.4v-.4c0-.2 0-.3.2-.5 0-.2.2-.2.4-.2.3 0 .4 0 .5.2l.1.5v.4l-.1.5c0 .2-.2.3-.5.3-.2 0-.4-.1-.4-.3a1 1 0 0 1-.2-.5m-5-4.8v.4c0 .3 0 .6.2.9a1.6 1.6 0 0 0 1.5.8c.3 0 .6 0 .9-.2l.6-.6.2-.9v-.4c0-.3 0-.6-.2-.8l-.6-.7-1-.2c-.3 0-.6 0-.8.2-.3.2-.5.4-.6.7-.2.2-.2.5-.2.8m1 .4v-.4l.2-.5c.1-.2.3-.2.5-.2s.4 0 .4.2l.2.5v.4c0 .2 0 .4-.2.5 0 .2-.2.3-.4.3s-.4-.1-.5-.3a1 1 0 0 1-.1-.5Zm4.8-1.8L28.3 43h1l5.2-7.7h-1Zm14 1.6c0-.2 0-.4-.2-.5-.2-.2-.4-.2-.7-.2H46l-.3.3v.6l.2.2.3.2h.3l.6.2.7.2.5.4a1.5 1.5 0 0 1 .5 1.1c0 .4 0 .7-.2 1l-.8.6-1.3.2-1.2-.2-.8-.7a2 2 0 0 1-.3-1h1.2c0 .1 0 .3.2.4 0 .2.2.3.4.3l.5.1h.6l.3-.3.2-.4-.1-.3-.4-.3-.5-.1-.7-.2c-.5-.1-.9-.3-1.1-.6-.3-.2-.5-.6-.5-1 0-.3.1-.7.3-1l.8-.5a2.4 2.4 0 0 1 2.3 0c.3.1.6.3.8.6.2.2.2.6.3.9zm-10.5 4.2h2.1a3 3 0 0 0 1.6-.4c.4-.2.7-.5 1-1 .2-.4.3-1 .3-1.6s-.1-1-.3-1.5c-.3-.5-.6-.8-1-1-.4-.3-1-.4-1.5-.4H37v5.9Zm2-1h-.7v-3.8h.8c.4 0 .7 0 1 .2.2.1.4.3.5.6l.2 1c0 .5 0 .8-.2 1.1q-.15.45-.6.6a2 2 0 0 1-1 .2Zm4.8 1v-5.9h-1.3v5.9H44Zm9.4-3.8h1.2c0-.4 0-.7-.2-1l-.6-.6-.8-.4a3 3 0 0 0-2.3.2c-.4.2-.7.6-1 1-.2.5-.4 1-.4 1.7 0 .6.2 1.1.4 1.6.2.4.6.8 1 1 .4.3.9.4 1.4.4.4 0 .7 0 1-.2a2.4 2.4 0 0 0 1.3-1.1l.2-.8h-1.2a1.2 1.2 0 0 1-.4.7l-.4.2a1.6 1.6 0 0 1-1.3-.1l-.5-.7-.2-1c0-.5 0-.8.2-1 .1-.4.3-.6.5-.7.2-.2.5-.3.8-.3l.5.1.4.2.2.3zm7.1.9c0 .6-.1 1.1-.3 1.6-.3.4-.6.8-1 1-.4.3-1 .4-1.4.4-.6 0-1-.1-1.4-.4a2 2 0 0 1-1-1 3 3 0 0 1-.4-1.6c0-.7.1-1.2.4-1.7a2 2 0 0 1 1-1c.4-.3.8-.4 1.4-.4.5 0 1 .1 1.4.4.4.2.7.6 1 1 .2.5.3 1 .3 1.7m-1.2 0-.2-1.1a1 1 0 0 0-.5-.6c-.3-.2-.5-.3-.8-.3s-.6.1-.8.3a1 1 0 0 0-.5.6c-.2.3-.2.6-.2 1 0 .5 0 .8.2 1.1 0 .3.3.5.5.7l.8.2.8-.2.5-.7zm6.6-3h-1.2V39c0 .2 0 .4-.2.6a1 1 0 0 1-.4.4l-.6.2c-.3 0-.5 0-.7-.2a1 1 0 0 1-.4-.4l-.1-.6v-3.7h-1.3v3.8c0 .5.1.8.3 1.2.2.3.5.5.9.7s.8.3 1.3.3.9-.1 1.2-.3c.4-.2.7-.4.9-.7.2-.4.3-.7.3-1.2zm5.5 5.9h-1l-2.6-3.7v3.7h-1.3v-5.9h1.1L70 39v-3.7h1.3zm.4-5.9v1h1.8v4.9h1.3v-4.9h1.8v-1zM19.5 47.5a5 5 0 0 0 2.7.8c1 0 2-.2 2.7-.8.7-.5 1.3-1.2 1.7-2.2a9 9 0 0 0 .6-3.4c0-1.4-.2-2.5-.6-3.5s-1-1.7-1.7-2.2c-.8-.5-1.6-.7-2.7-.7a5 5 0 0 0-2.7.7c-.7.5-1.3 1.3-1.7 2.2-.4 1-.6 2.1-.6 3.5a9 9 0 0 0 .6 3.4c.4 1 1 1.7 1.7 2.2m4.4-2.4c-.4.7-1 1-1.7 1-.4 0-.9-.1-1.2-.4a3 3 0 0 1-.8-1.5c-.2-.6-.3-1.4-.3-2.3 0-1.4.2-2.5.6-3.2.5-.7 1-1 1.7-1 .5 0 .9.1 1.2.4.4.3.7.8.9 1.4s.2 1.4.2 2.4c0 1.4-.2 2.5-.6 3.2m-8 3V35.6h-2.5l-3 2v2.2l2.8-1.7V48H16Zm31.8-1c.2-.4.3-1 .3-1.6s0-1.2-.3-1.6a2.5 2.5 0 0 0-2.4-1.4 2.5 2.5 0 0 0-2.3 1.3c-.2.5-.4 1-.4 1.7 0 .6.2 1.2.4 1.6a2.6 2.6 0 0 0 2.3 1.4c.6 0 1 0 1.4-.3l1-1Zm-1-2.7c.2.3.3.7.3 1.1l-.2 1.1-.6.7c-.3.2-.5.3-.9.3-.3 0-.6-.1-.8-.3-.3-.1-.4-.4-.6-.7l-.2-1c0-.5 0-1 .2-1.2.2-.3.3-.6.6-.7.2-.2.5-.3.8-.3.4 0 .6.1.9.3l.6.7Zm-7.1 2.8L38 42.6h-1l2 5.8h1.4l2-5.8h-1.1l-1.6 4.6Zm13.2-4.6h1v3.8c0 .4 0 .8-.3 1.1a2 2 0 0 1-.8.8l-1.3.2c-.4 0-.9 0-1.2-.2a2 2 0 0 1-.9-.8 2 2 0 0 1-.3-1v-4h1.1v3.8c0 .3 0 .5.2.7 0 .2.2.3.4.4l.7.2c.3 0 .5 0 .7-.2.2 0 .4-.2.5-.4l.2-.7zm6.1 2H60c0-.4-.1-.7-.3-1l-.5-.6-.8-.4a3 3 0 0 0-2.3.2l-1 1c-.2.5-.3 1-.3 1.7 0 .6.1 1.2.4 1.6a2.5 2.5 0 0 0 2.3 1.4l1-.1a2.4 2.4 0 0 0 1.3-1.1l.2-.8h-1a1.3 1.3 0 0 1-1 1 1.7 1.7 0 0 1-1.3-.2c-.3-.1-.4-.3-.6-.7l-.2-1c0-.5 0-1 .2-1.2.1-.3.3-.6.6-.7.2-.2.5-.3.8-.3l.5.1a1.3 1.3 0 0 1 1 1Zm2-2h1.2V45h2.7v-2.5h1v5.8h-1V46H62v2.4h-1v-5.8Zm10 0H67v5.8h3.9v-.8H68V46h2.5v-1H68v-1.5h2.7v-1Zm1 0h2.2c.5 0 .9 0 1.2.2l.7.7.2 1c0 .3 0 .7-.2 1a1.6 1.6 0 0 1-.9.6l1.3 2.3h-1.2l-1.1-2.1H73v2.1h-1v-5.8Zm2 2.8h-1v-2h1l.7.2c.2 0 .3.2.4.3l.1.5-.1.6-.4.3-.6.1Z",clipRule:"evenodd"})),a||(a=s.createElement("path",{fill:"#E6E6E6",fillRule:"evenodd",d:"m1.2 59.9.7-1.7h1V60h-1zm82 .1v-1.8h.9l.7 1.7-.7.1h-1Zm2.7-57.2h-1.8v-1l1.7-.7.1.7zM3 0H2l-.7.1.7 1.7-1.7-.7-.1.7v1H2v-1h1zM.2 58.9l1.7-.7v-1H.1v1zm-.1-3.6h1.8v-1.8H.1zm0-3.7h1.8v-1.9H.1zm0-3.8h1.8V46H.1zm0-3.7h1.8v-1.9H.1zm0-3.8h1.8v-1.9H.1v2Zm0-3.7h1.8v-2H.1zm0-3.8h1.8V31H.1v2Zm0-3.7h1.8v-2H.1zm0-3.8h1.8v-1.9H.1v2Zm0-3.7h1.8v-2H.1zm0-3.8h1.8v-1.9H.1zM0 14h1.8v-1.8H.1V14Zm0-3.7h1.8V8.4H.1v1.9Zm0-3.8h1.8V4.7H.1v1.8ZM4.7 0v1.8h1.9V0zm3.8 0v1.8h1.8V0zm3.7 0v1.8H14V0h-2Zm3.7 0v1.8h1.9V0zm3.8 0v1.8h1.8V0zm3.7 0v1.8h1.9V0zm3.7 0v1.8H29V0zM31 0v1.8h1.8V0zm3.7 0v1.8h1.9V0zm3.7 0v1.8h1.9V0zm3.8 0v1.8H44V0zm3.7 0v1.8h1.9V0zm3.7 0v1.8h1.9V0zm3.8 0v1.8H55V0h-1.8ZM57 0v1.8h1.9V0zm3.7 0v1.8h1.9V0zm3.8 0v1.8h1.8V0zm3.7 0v1.8h1.9V0zM72 0v1.8h2V0zm3.8 0v1.8h1.8V0zm3.7 0v1.8h1.9V0zm3.7 0v1.8h1l.7-1.7L84 0h-1ZM86 4.7h-1.8v1.8H86zm0 3.7h-1.8v1.9H86zm0 3.8h-1.8V14H86zm0 3.7h-1.8v1.9H86zm0 3.8h-1.8v1.9H86v-2Zm0 3.7h-1.8v2H86zm0 3.8h-1.8V29H86v-2Zm0 3.7h-1.8v2H86zm0 3.8h-1.8v1.9H86v-2Zm0 3.7h-1.8v2H86zm0 3.8h-1.8v1.9H86zm0 3.8h-1.8v1.8H86zm0 3.7h-1.8v1.9H86zm0 3.8h-1.8v1.8H86zm0 3.7h-1.8v1l1.7.7.1-.7zM81.3 60v-1.8h-1.9V60zm-3.8 0v-1.8h-1.8V60zm-3.7 0v-1.8H72V60h2Zm-3.7 0v-1.8h-1.9V60zm-3.8 0v-1.8h-1.8V60zm-3.7 0v-1.8h-1.9V60zm-3.7 0v-1.8H57V60zM55 60v-1.8h-1.8V60zm-3.7 0v-1.8h-1.9V60zm-3.7 0v-1.8h-1.9V60zm-3.8 0v-1.8H42V60zm-3.7 0v-1.8h-1.9V60zm-3.7 0v-1.8h-1.9V60zm-3.8 0v-1.8H31V60h1.8ZM29 60v-1.8h-1.9V60zm-3.7 0v-1.8h-1.9V60zm-3.8 0v-1.8h-1.8V60zm-3.7 0v-1.8h-1.9V60zM14 60v-1.8h-2V60zm-3.8 0v-1.8H8.5V60h1.8Zm-3.7 0v-1.8H4.7V60h1.9Z",clipRule:"evenodd"})),l||(l=s.createElement("defs",null,s.createElement("clipPath",{id:"a"},s.createElement("path",{fill:"#fff",d:"M7.5 5.5h71v22.2h-71z"})))))}},524:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>f,WA:()=>d});var r=n(5495),o=n(6087),i=n(1455),a=n.n(i),l=n(790),s=(n(8468).camelCase,n(6087).useState),c=n(6087).useEffect;const u=(0,o.createContext)({store:{},setStore:()=>{}}),d=({children:e})=>{const[t,n]=s(!1),[i,d]=s(!1),[f,p]=s({}),m=(0,o.useMemo)((()=>({store:f,setStore:p,booted:t,setBooted:n,hasError:i,setError:d})),[f,t,i]);return c((()=>{!1===t&&(async(e={})=>await a()({url:r.NewfoldRuntime.createApiUrl("/bluehost/v1/settings"),...e}))().then((e=>{p({...f,...e,features:window.NewfoldFeatures.features,toggleableFeatures:window.NewfoldFeatures.togglable}),n(!0)})).catch((e=>{d(e)}))}),[]),(0,l.jsxs)(u.Provider,{value:m,children:[" ",e," "]})},f=u},540:(e,t,n)=>{"use strict";n.d(t,{JU:()=>g,b0:()=>m,o2:()=>p});var r=n(1609),o=n(5015),i=n(6339),a=n(8975),l=n(5448),s=n(5953),c=n(7280),u=n(6206);let d=(0,r.createContext)(null);function f(){let e=(0,r.useContext)(d);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,f),e}return e}function p(e){var t,n,o;let i=null!=(n=null==(t=(0,r.useContext)(d))?void 0:t.value)?n:void 0;return(null!=(o=null==e?void 0:e.length)?o:0)>0?[i,...e].filter(Boolean).join(" "):i}function m({inherit:e=!1}={}){let t=p(),[n,i]=(0,r.useState)([]),a=e?[t,...n].filter(Boolean):n;return[a.length>0?a.join(" "):void 0,(0,r.useMemo)((()=>function(e){let t=(0,o._)((e=>(i((t=>[...t,e])),()=>i((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),n=(0,r.useMemo)((()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value})),[t,e.slot,e.name,e.props,e.value]);return r.createElement(d.Provider,{value:n},e.children)}),[i])]}d.displayName="LabelContext";let h=(0,u.FX)((function(e,t){var n;let d=(0,r.useId)(),p=f(),m=(0,s.q)(),h=(0,l._)(),{id:g=`headlessui-label-${d}`,htmlFor:v=(null!=m?m:null==(n=p.props)?void 0:n.htmlFor),passive:y=!1,...w}=e,b=(0,a.P)(t);(0,i.s)((()=>p.register(g)),[g,p.register]);let x=(0,o._)((e=>{let t=e.currentTarget;if((e.target===e.currentTarget||!c.H5(e.target))&&(c.kS(t)&&e.preventDefault(),p.props&&"onClick"in p.props&&"function"==typeof p.props.onClick&&p.props.onClick(e),c.kS(t))){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let n=e.getAttribute("aria-disabled");if("true"===n||""===n)return;(c.A3(e)&&("file"===e.type||"radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}})),M=h||!1,j=(0,r.useMemo)((()=>({...p.slot,disabled:M})),[p.slot,M]),N={ref:b,...p.props,id:g,htmlFor:v,onClick:x};return y&&("onClick"in N&&(delete N.htmlFor,delete N.onClick),"onClick"in w&&delete w.onClick),(0,u.Ci)()({ourProps:N,theirProps:w,slot:j,defaultTag:v?"label":"div",name:p.name||"Label"})})),g=Object.assign(h,{})},652:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(9828),o=n(540),i=n(9124),a=n(6942),l=n.n(a),s=n(5556),c=n.n(s),u=n(6820),d=n(5514),f=n(1609),p=n(790);const m=(0,f.forwardRef)((({id:e,children:t,label:n,labelSuffix:a,description:s,checked:c,disabled:f,onChange:m,className:h,"aria-label":g,...v},y)=>(0,p.jsxs)(r.D,{as:"div",className:l()("nfd-toggle-field",f&&"nfd-toggle-field--disabled",h),children:[(0,p.jsxs)("div",{className:"nfd-toggle-field__header",children:[n&&(0,p.jsxs)("div",{className:"nfd-toggle-field__label-wrapper",children:[(0,p.jsx)(u.A,{as:o.JU,className:"nfd-toggle-field__label",label:n,"aria-label":g}),a]}),(0,p.jsx)(d.A,{id:e,ref:y,checked:c,onChange:m,screenReaderLabel:n,disabled:f,...v})]}),(s||t)&&(0,p.jsx)(i.VY,{as:"div",className:"nfd-toggle-field__description",children:s||t})]}))),h={id:c().string.isRequired,children:c().node,label:c().string.isRequired,labelSuffix:c().node,description:c().node,checked:c().bool.isRequired,disabled:c().bool,onChange:c().func.isRequired,className:c().string,"aria-label":c().string};m.propTypes=h,m.defaultProps={children:null,labelSuffix:null,description:null,disabled:!1,className:""},m.displayName="ToggleField";const g=e=>(0,p.jsx)(m,{...e});g.propTypes=h,g.defaultProps=m.defaultProps,g.displayName="ToggleField";const v=m},692:e=>{"use strict";e.exports=window.wp.notices},790:e=>{"use strict";e.exports=window.ReactJSXRuntime},948:(e,t,n)=>{"use strict";n.d(t,{DG:()=>i.h,Iy:()=>r.h,Wd:()=>o.h,bx:()=>a.h});var r=n(4679),o=(n(8416),n(6729)),i=n(4612),a=n(8311);n(1120)},998:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6364),o=n(790);const i=()=>{const e=()=>(0,o.jsxs)("div",{className:"nfd-min-h-[35vh] nfd-flex nfd-flex-col nfd-items-center nfd-justify-center nfd-bg-[#f0f3f9] nfd-m-3 nfd-rounded-lg",children:[(0,o.jsx)(r.A,{width:"35%",height:"35px",className:"nfd-mb-4"}),(0,o.jsxs)("div",{className:"nfd-flex nfd-flex-col nfd-items-center nfd-gap-2 nfd-w-full",children:[(0,o.jsx)(r.A,{width:"31%",height:"15px"}),(0,o.jsx)(r.A,{width:"40%",height:"15px"}),(0,o.jsx)(r.A,{width:"20%",height:"15px"})]})]}),t=()=>(0,o.jsxs)("div",{className:"nfd-py-10 nfd-flex nfd-flex-col nfd-items-center",children:[(0,o.jsx)(r.A,{width:"28%",height:"25px",className:"nfd-mb-3"}),(0,o.jsx)(r.A,{width:"20%",height:"15px",className:"nfd-mb-1.5"}),(0,o.jsx)(r.A,{width:"12%",height:"15px"}),(0,o.jsxs)("div",{className:"nfd-mt-8 nfd-flex nfd-justify-between nfd-w-10/12",children:[(0,o.jsx)(n,{}),(0,o.jsx)(n,{}),(0,o.jsx)(n,{})]})]}),n=()=>(0,o.jsxs)("div",{className:"nfd-w-1/4 nfd-flex nfd-flex-col nfd-items-center",children:[(0,o.jsx)(r.A,{width:"65px",height:"65px",className:"nfd-mb-4 nfd-rounded-full"}),(0,o.jsx)(r.A,{width:"100%",height:"24px",className:"nfd-mb-2.5"}),(0,o.jsxs)("div",{className:"nfd-flex nfd-flex-col nfd-items-center nfd-gap-1.5 nfd-w-full",children:[(0,o.jsx)(r.A,{width:"90%",height:"15px"}),(0,o.jsx)(r.A,{width:"88%",height:"15px"}),(0,o.jsx)(r.A,{width:"60%",height:"15px"})]})]}),i=()=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"nfd-w-full nfd-mt-3 nfd-flex nfd-flex-col nfd-items-center",children:(0,o.jsx)("div",{className:"nfd-w-10/12 nfd-min-h-0.5 nfd-bg-[#f0f3f9]"})}),(0,o.jsxs)("div",{className:"nfd-py-10 nfd-flex nfd-flex-col nfd-items-center",children:[(0,o.jsx)(r.A,{width:"22%",height:"27px"}),(0,o.jsxs)("div",{className:"nfd-mt-10 nfd-flex nfd-justify-between nfd-w-10/12",children:[(0,o.jsx)(a,{}),(0,o.jsx)(a,{}),(0,o.jsx)(a,{})]})]})]}),a=()=>(0,o.jsxs)("div",{className:"nfd-w-1/4 nfd-flex nfd-flex-col nfd-gap-7 nfd-bg-[#f0f3f9] nfd-rounded-lg nfd-p-6",children:[(0,o.jsx)(r.A,{width:"90%",height:"28px"}),(0,o.jsxs)("div",{className:"nfd-flex nfd-flex-col nfd-gap-4",children:[(0,o.jsx)(r.A,{width:"80%",height:"14px"}),(0,o.jsx)(r.A,{width:"55%",height:"14px"}),(0,o.jsx)(r.A,{width:"100%",height:"14px"}),(0,o.jsx)(r.A,{width:"72%",height:"14px"}),(0,o.jsx)(r.A,{width:"47%",height:"14px"}),(0,o.jsx)(r.A,{width:"80%",height:"14px"})]}),(0,o.jsx)(r.A,{width:"55%",height:"34px"})]}),l=()=>(0,o.jsxs)("div",{className:"nfd-flex nfd-flex-col nfd-items-center nfd-gap-8 nfd-py-12 nfd-mx-auto nfd-w-7/12",children:[(0,o.jsx)(s,{width:"96%",children:(0,o.jsxs)("div",{className:"nfd-flex nfd-flex-col nfd-gap-2.5 nfd-mt-4",children:[(0,o.jsx)(r.A,{width:"100%",height:"14px"}),(0,o.jsx)(r.A,{width:"91%",height:"14px"}),(0,o.jsx)(r.A,{width:"95%",height:"14px"}),(0,o.jsx)(r.A,{width:"54%",height:"14px"})]})}),(0,o.jsx)(s,{}),(0,o.jsx)(s,{}),(0,o.jsx)(s,{}),(0,o.jsx)(s,{})]}),s=({width:e="100%",children:t})=>(0,o.jsxs)("div",{className:"nfd-w-full nfd-bg-[#f0f3f9] nfd-rounded-lg nfd-p-4",children:[(0,o.jsx)(r.A,{width:e,height:"26px"}),t]});return(0,o.jsxs)("div",{"aria-busy":"true","aria-live":"polite","aria-label":"Fetching product details",children:[(0,o.jsx)(e,{}),(0,o.jsx)(t,{}),(0,o.jsx)(i,{}),(0,o.jsx)(l,{})]})}},1100:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609);function o({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.42 15.17 17.25 21A2.652 2.652 0 0 0 21 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 1 1-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 0 0 4.486-6.336l-3.276 3.277a3.004 3.004 0 0 1-2.25-2.25l3.276-3.276a4.5 4.5 0 0 0-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437 1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008Z"}))}const i=r.forwardRef(o)},1120:(e,t,n)=>{"use strict";n.d(t,{h:()=>l});var r,o,i=n(1609);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}var l=function(e){return i.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",strokeWidth:1.5,viewBox:"0 0 24 24"},e),r||(r=i.createElement("path",{stroke:"currentColor",d:"M22.75 20.595V12.06c0-5.937-4.813-10.75-10.75-10.75S1.25 6.122 1.25 12.059 6.063 22.809 12 22.809h8.537a2.213 2.213 0 0 0 2.213-2.214Z"})),o||(o=i.createElement("path",{fill:"currentColor",d:"M11.128 13.4q0-.671.28-1.161.294-.49 1.008-1.12.42-.378.602-.658.196-.28.196-.644a.95.95 0 0 0-.322-.728q-.323-.308-.854-.308-.56 0-.924.336a1.8 1.8 0 0 0-.504.812L9 9.257q.266-.897 1.036-1.54.784-.659 1.96-.658.881 0 1.568.35.686.35 1.064.966.392.6.392 1.344 0 .727-.308 1.246-.308.517-.91 1.092-.476.447-.658.77-.168.321-.168.812v.224h-1.848zm.91 3.99a1.2 1.2 0 0 1-.868-.35 1.2 1.2 0 0 1-.35-.867q0-.504.35-.854a1.2 1.2 0 0 1 .868-.35q.503 0 .854.35.35.35.35.854t-.35.868q-.35.35-.854.35"})))}},1124:(e,t,n)=>{"use strict";n.d(t,{AG:()=>f,Ew:()=>h,FY:()=>p,IT:()=>N,JU:()=>d,co:()=>u,d6:()=>c,g_:()=>m,oJ:()=>M,pF:()=>j,rS:()=>v,wZ:()=>g});var r=n(5495),o=n(7143),i=n(1455),a=n.n(i),l=n(3832);let s;const c=(e="Settings Saved")=>{(0,o.dispatch)("core/notices").removeNotice(s),(0,o.dispatch)("core/notices").createNotice("info",e,{type:"snackbar",isDismissible:!0}).then((e=>{s=e.notice.id}))},u=(e,t,n)=>a()({url:r.NewfoldRuntime.createApiUrl("/bluehost/v1/settings"),method:"POST",data:e}).then((e=>{n(e)})).catch((e=>{t(e)})),d=async(e,t)=>!0===window.NewfoldFeatures.features[e]?window.NewfoldFeatures.disable(e).then((e=>{t(e)})):window.NewfoldFeatures.enable(e).then((e=>{t(e)})),f=(e,t=!0,n="nfd-disabled",r=!1)=>{const o=document.querySelector(e);o&&(t?o.classList.remove(n):o.classList.add(n)),r&&window.location.reload()},p=e=>{window.NewfoldRuntime.comingSoon.toggleAdminBarSiteStatus(e)},m=(e,t={})=>"object"==typeof window.NewfoldRuntime&&"object"==typeof window.NewfoldRuntime.linkTracker&&"function"==typeof window.NewfoldRuntime.linkTracker.addUtmParams?window.NewfoldRuntime.linkTracker.addUtmParams(e,t):(t.utm_source=`wp-admin/admin.php?page=bluehost${window.location.hash}`,t.utm_medium="bluehost_plugin",(0,l.addQueryArgs)(e,t)),h=(e="")=>("Bluehost_India"===r.NewfoldRuntime.plugin.brand?"https://my.bluehost.in":y()?"https://www.bluehost.com":"https://my.bluehost.com")+e,g=(e="",t="")=>y()?h("/my-account/")+e:h("/hosting/")+t,v=()=>{if(r.NewfoldRuntime.hasCapability("canAccessHelpCenter")&&window.newfoldEmbeddedHelp&&!window.newfoldEmbeddedHelp.hasListeners){const e=document.querySelectorAll('[href*="#/help"]');e&&(e.forEach((e=>e.addEventListener("click",(t=>{const n=e.closest(".wp-submenu");n&&n.classList.contains("wp-submenu-wrap")||t.preventDefault(),window.newfoldEmbeddedHelp.toggleNFDLaunchedEmbeddedHelp()})))),window.newfoldEmbeddedHelp.hasListeners=!0)}},y=()=>!window.NewfoldRuntime.capabilities.hasOwnProperty("isJarvis")||r.NewfoldRuntime.hasCapability("isJarvis");let w=null,b=null;const x=(e=5e3)=>w||(w=new Promise(((t,n)=>{if(window.NewfoldRuntime?.adminUrl&&window.NewfoldRuntime?.capabilities&&window.NewfoldRuntime?.wordpress)return void t(window.NewfoldRuntime);const r=Date.now(),o=setInterval((()=>{window.NewfoldRuntime?.adminUrl&&window.NewfoldRuntime?.capabilities&&window.NewfoldRuntime?.wordpress?(clearInterval(o),t(window.NewfoldRuntime)):Date.now()-r>=e&&(clearInterval(o),w=null,n(new Error("NewfoldRuntime not available, please refresh the page and try again.")))}),50)})),w),M=(e=5e3)=>b||(b=new Promise(((t,n)=>{if(window.NewfoldFeatures?.features)return void t(window.NewfoldFeatures);const r=Date.now(),o=setInterval((()=>{window.NewfoldFeatures?.features?(clearInterval(o),t(window.NewfoldFeatures)):Date.now()-r>=e&&(clearInterval(o),b=null,n(new Error("NewfoldFeatures not available, please refresh the page and try again.")))}),50)})),b),j=async(e="edit")=>{const t=await x(),n=`${t.adminUrl}customize.php`,r=`${t.adminUrl}site-editor.php?canvas=${e}`,o=t.capabilities?.hasBluMVP||!1,i=t?.wordpress?.isBlockTheme||!1;return i&&o?r+"&referrer=nfd-editor-chat":i&&!o?r:n},N=async()=>{const e=await x(),t=await(e?.wordpress?.isBlockTheme)||!1,n=e.capabilities?.hasBluMVP||!1;return t&&n?"AI Editor":t&&!n?"Site Editor":"Customizer"}},1262:(e,t,n)=>{"use strict";n.d(t,{h:()=>s});var r,o,i,a=n(1609);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(null,arguments)}var s=function(e){return a.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 144 57"},e),r||(r=a.createElement("path",{fill:"#346BD5",d:"M61 38.5V17.4h8c1.6 0 2.9.2 4 .7a5.2 5.2 0 0 1 3 4.8 5 5 0 0 1-.5 2.2c-.4.6-.8 1-1.4 1.5l-1.8.8v.2c.7 0 1.4.3 2.1.7s1.3 1 1.7 1.7c.5.8.7 1.7.7 2.8 0 1-.3 2-.8 3-.5.8-1.3 1.5-2.4 2-1 .5-2.4.7-4 .7zm3.8-3.2H69c1.4 0 2.4-.2 3-.7.7-.6 1-1.3 1-2.1a3.2 3.2 0 0 0-1.8-3c-.6-.2-1.3-.4-2-.4h-4.3v6.2Zm0-9h3.8c.7 0 1.3 0 1.8-.3a2.8 2.8 0 0 0 1.7-2.7c0-.7-.3-1.4-.8-2-.6-.5-1.5-.7-2.6-.7h-3.9v5.8ZM99 28c0 2.3-.4 4.2-1.3 5.8a9 9 0 0 1-8.4 5 9.2 9.2 0 0 1-8.4-5c-.9-1.6-1.3-3.6-1.3-5.8 0-2.3.4-4.3 1.2-5.9a9.1 9.1 0 0 1 8.5-5 9 9 0 0 1 8.4 5A12 12 0 0 1 99 28m-3.8 0c0-1.6-.3-3-.8-4a6 6 0 0 0-2-2.6c-1-.6-2-.9-3.1-.9q-1.8 0-3 .9c-1 .6-1.6 1.4-2.1 2.5a9.9 9.9 0 0 0-.8 4c0 1.7.3 3 .8 4.1s1.2 2 2 2.6c1 .5 2 .8 3.1.8s2.2-.3 3-.8c1-.6 1.6-1.5 2.1-2.6.5-1 .8-2.4.8-4m21.6-3.9a5.5 5.5 0 0 0-1.8-2.6l-1.4-.7a6 6 0 0 0-4.8.6 5 5 0 0 0-2 2.5 9.7 9.7 0 0 0-.8 4c0 1.6.2 3 .7 4.1a5.6 5.6 0 0 0 5.2 3.4 6 6 0 0 0 2.8-.6 4 4 0 0 0 1.8-1.8c.5-.7.7-1.6.7-2.7l.9.2h-5.8v-3h8.6V30c0 1.8-.4 3.4-1.2 4.7a8 8 0 0 1-3.1 3c-1.4.8-3 1.1-4.7 1.1a9 9 0 0 1-8.6-5 13 13 0 0 1-1.2-5.8c0-1.7.2-3.2.7-4.6a10 10 0 0 1 2-3.4c1-1 2-1.7 3.1-2.2a11.4 11.4 0 0 1 7.2-.2 8.7 8.7 0 0 1 4.6 3.7c.5.9.9 1.8 1 2.8zm26.7 3.9c0 2.3-.4 4.2-1.3 5.8a9 9 0 0 1-8.4 5 9.2 9.2 0 0 1-8.4-5c-1-1.6-1.3-3.6-1.3-5.8 0-2.3.4-4.3 1.2-5.9a9.1 9.1 0 0 1 8.5-5 9 9 0 0 1 8.4 5 12 12 0 0 1 1.3 5.9m-3.9 0c0-1.6-.2-3-.7-4a6 6 0 0 0-2-2.6c-1-.6-2-.9-3.1-.9q-1.8 0-3 .9c-1 .6-1.6 1.4-2.1 2.5a9.9 9.9 0 0 0-.8 4c0 1.7.3 3 .8 4.1s1.2 2 2 2.6a6.2 6.2 0 0 0 6.1 0c1-.6 1.6-1.5 2-2.6a8 8 0 0 0 .8-4M30 0 .4 10l8.8 25.7 30.6-11.3 4.4-9.4-3.7-10.6L29.9 0Z"})),o||(o=a.createElement("path",{fill:"#346BD5",fillRule:"evenodd",d:"m.5 45 30.7 11.3 9.4-4.3 3.7-10.7L40 32 9.3 20.7zM3 43.9l28 10 7.3-3.2 3.5-9.3-3.5-7.7-27.8-9.2L3 43.8Z",clipRule:"evenodd"})),i||(i=a.createElement("path",{fill:"#346BD5",fillRule:"evenodd",d:"M34 48.2a5.3 5.3 0 1 0 0-10.7 5.3 5.3 0 0 0 0 10.7m0-1.5a3.8 3.8 0 1 0 0-7.6 3.8 3.8 0 0 0 0 7.6",clipRule:"evenodd"})))}},1306:(e,t,n)=>{"use strict";n.d(t,{G3:()=>g,St:()=>w,TI:()=>h,UF:()=>v,Xc:()=>m,zn:()=>p});var r=n(8689),o=n(4743),i=n(8491),a=n(1609),l=n(6992),s=n(5015),c=n(6339),u=n(7280);let d=(0,a.createContext)({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});d.displayName="FloatingContext";let f=(0,a.createContext)(null);function p(e){return(0,a.useMemo)((()=>e?"string"==typeof e?{to:e}:e:null),[e])}function m(){return(0,a.useContext)(d).setReference}function h(){return(0,a.useContext)(d).getReferenceProps}function g(){let{getFloatingProps:e,slot:t}=(0,a.useContext)(d);return(0,a.useCallback)(((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor})),[e,t])}function v(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=(0,a.useContext)(f),n=(0,a.useMemo)((()=>e),[JSON.stringify(e,((e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t}))]);(0,c.s)((()=>{null==t||t(null!=n?n:null)}),[t,n]);let r=(0,a.useContext)(d);return(0,a.useMemo)((()=>[r.setFloating,e?r.styles:{}]),[r.setFloating,e,r.styles])}f.displayName="PlacementContext";let y=4;function w({children:e,enabled:t=!0}){let[n,l]=(0,a.useState)(null),[p,m]=(0,a.useState)(0),h=(0,a.useRef)(null),[g,v]=(0,a.useState)(null);!function(e){(0,c.s)((()=>{if(!e)return;let t=new MutationObserver((()=>{let t=window.getComputedStyle(e).maxHeight,n=parseFloat(t);if(isNaN(n))return;let r=parseInt(t);isNaN(r)||n!==r&&(e.style.maxHeight=`${Math.ceil(n)}px`)}));return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}}),[e])}(g);let w=t&&null!==n&&null!==g,{to:x="bottom",gap:M=0,offset:j=0,padding:N=0,inner:E}=function(e,t){var n,r,o;let i=b(null!=(n=null==e?void 0:e.gap)?n:"var(--anchor-gap, 0)",t),a=b(null!=(r=null==e?void 0:e.offset)?r:"var(--anchor-offset, 0)",t),l=b(null!=(o=null==e?void 0:e.padding)?o:"var(--anchor-padding, 0)",t);return{...e,gap:i,offset:a,padding:l}}(n,g),[A,T="center"]=x.split(" ");(0,c.s)((()=>{w&&m(0)}),[w]);let{refs:S,floatingStyles:I,context:D}=(0,r.we)({open:w,placement:"selection"===A?"center"===T?"bottom":`bottom-${T}`:"center"===T?`${A}`:`${A}-${T}`,strategy:"absolute",transform:!1,middleware:[(0,o.cY)({mainAxis:"selection"===A?0:M,crossAxis:j}),(0,o.BN)({padding:N}),"selection"!==A&&(0,o.UU)({padding:N}),"selection"===A&&E?(0,r.vW)({...E,padding:N,overflowRef:h,offset:p,minItemsVisible:y,referenceOverflowThreshold:N,onFallbackChange(e){var t,n;if(!e)return;let r=D.elements.floating;if(!r)return;let o=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,i=Math.min(y,r.childElementCount),a=0,l=0;for(let e of null!=(n=null==(t=D.elements.floating)?void 0:t.childNodes)?n:[])if(u.sb(e)){let t=e.offsetTop,n=t+e.clientHeight+o,s=r.scrollTop,c=s+r.clientHeight;if(!(t>=s&&n<=c)){l=Math.max(0,Math.min(n,c)-Math.max(t,s)),a=e.clientHeight;break}i--}i>=1&&m((e=>{let t=a*i-l+o;return e>=t?e:t}))}}):null,(0,o.Ej)({padding:N,apply({availableWidth:e,availableHeight:t,elements:n}){Object.assign(n.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}})].filter(Boolean),whileElementsMounted:i.ll}),[k=A,C=T]=D.placement.split("-");"selection"===A&&(k="selection");let L=(0,a.useMemo)((()=>({anchor:[k,C].filter(Boolean).join(" ")})),[k,C]),O=(0,r.Zx)(D,{overflowRef:h,onChange:m}),{getReferenceProps:R,getFloatingProps:P}=(0,r.bv)([O]),z=(0,s._)((e=>{v(e),S.setFloating(e)}));return a.createElement(f.Provider,{value:l},a.createElement(d.Provider,{value:{setFloating:z,setReference:S.setReference,styles:I,getReferenceProps:R,getFloatingProps:P,slot:L}},e))}function b(e,t,n=void 0){let r=(0,l.L)(),o=(0,s._)(((e,t)=>{if(null==e)return[n,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[n,null];let o=M(e,t);return[o,n=>{let i=x(e);{let a=i.map((e=>window.getComputedStyle(t).getPropertyValue(e)));r.requestAnimationFrame((function l(){r.nextFrame(l);let s=!1;for(let[e,n]of i.entries()){let r=window.getComputedStyle(t).getPropertyValue(n);if(a[e]!==r){a[e]=r,s=!0;break}}if(!s)return;let c=M(e,t);o!==c&&(n(c),o=c)}))}return r.dispose}]}return[n,null]})),i=(0,a.useMemo)((()=>o(e,t)[0]),[e,t]),[u=i,d]=(0,a.useState)();return(0,c.s)((()=>{let[n,r]=o(e,t);if(d(n),r)return r(d)}),[e,t]),u}function x(e){let t=/var\((.*)\)/.exec(e);if(t){let e=t[1].indexOf(",");if(-1===e)return[t[1]];let n=t[1].slice(0,e).trim(),r=t[1].slice(e+1).trim();return r?[n,...x(r)]:[n]}return[]}function M(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}},1321:(e,t,n)=>{"use strict";function r(e,t){let n=e(),r=new Set;return{getSnapshot:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e,...o){let i=t[e].call(n,...o);i&&(n=i,r.forEach((e=>e())))}}}n.d(t,{y:()=>r})},1371:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609);function o({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 15.75 7.5-7.5 7.5 7.5"}))}const i=r.forwardRef(o)},1455:e=>{"use strict";e.exports=window.wp.apiFetch},1484:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(1609);const o=r.forwardRef((function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M10 3a1 1 0 01.707.293l3 3a1 1 0 01-1.414 1.414L10 5.414 7.707 7.707a1 1 0 01-1.414-1.414l3-3A1 1 0 0110 3zm-3.707 9.293a1 1 0 011.414 0L10 14.586l2.293-2.293a1 1 0 011.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z",clipRule:"evenodd"}))}))},1546:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609);function o({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 18v-5.25m0 0a6.01 6.01 0 0 0 1.5-.189m-1.5.189a6.01 6.01 0 0 1-1.5-.189m3.75 7.478a12.06 12.06 0 0 1-4.5 0m3.75 2.383a14.406 14.406 0 0 1-3 0M14.25 18v-.192c0-.983.658-1.823 1.508-2.316a7.5 7.5 0 1 0-7.517 0c.85.493 1.509 1.333 1.509 2.316V18"}))}const i=r.forwardRef(o)},1588:(e,t,n)=>{"use strict";n.d(t,{D:()=>a});var r=n(2599),o=n(7280),i=n(2157);function a(){return(0,i.un)()?{before({doc:e,d:t,meta:n}){function i(e){return n.containers.flatMap((e=>e())).some((t=>t.contains(e)))}t.microTask((()=>{var n;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let n=(0,r.e)();n.style(e.documentElement,"scrollBehavior","auto"),t.add((()=>t.microTask((()=>n.dispose()))))}let a=null!=(n=window.scrollY)?n:window.pageYOffset,l=null;t.addEventListener(e,"click",(t=>{if(o.Lk(t.target))try{let n=t.target.closest("a");if(!n)return;let{hash:r}=new URL(n.href),a=e.querySelector(r);o.Lk(a)&&!i(a)&&(l=a)}catch{}}),!0),t.addEventListener(e,"touchstart",(e=>{if(o.Lk(e.target)&&o.pv(e.target))if(i(e.target)){let n=e.target;for(;n.parentElement&&i(n.parentElement);)n=n.parentElement;t.style(n,"overscrollBehavior","contain")}else t.style(e.target,"touchAction","none")})),t.addEventListener(e,"touchmove",(e=>{if(o.Lk(e.target)){if(o.A3(e.target))return;if(i(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}}),{passive:!1}),t.add((()=>{var e;let t=null!=(e=window.scrollY)?e:window.pageYOffset;a!==t&&window.scrollTo(0,a),l&&l.isConnected&&(l.scrollIntoView({block:"nearest"}),l=null)}))}))}}:{}}},1609:e=>{"use strict";e.exports=window.React},1675:(e,t,n)=>{"use strict";n.d(t,{t:()=>i});var r=n(1609);function o(e,t){return null!==e&&null!==t&&"object"==typeof e&&"object"==typeof t&&"id"in e&&"id"in t?e.id===t.id:e===t}function i(e=o){return(0,r.useCallback)(((t,n)=>{if("string"==typeof e){let r=e;return(null==t?void 0:t[r])===(null==n?void 0:n[r])}return e(t,n)}),[e])}},1859:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{Ay:()=>I,GB:()=>S});var o=n(4180),i=n(5189),a=n(3983),l=n(5487),s=n(1120),c=n(5495),u=n(6504),d=n(6658),f=n(9979),p=n(6254),m=n(7103),h=n(6695),g=n(5597),v=n(8983),y=n(9027),w=n(790),__=n(7723).__,b=n(8468).filter;const e=(e,t)=>e===t?`${e}/*`:t,x=()=>(window.location.href=window.NewfoldRuntime.adminUrl+"admin.php?page=bluehost&category=all#/commerce",null),M=()=>(window.location.href=window.NewfoldRuntime.adminUrl+"admin.php?page=nfd-staging",null),j=()=>(window.location.href=window.NewfoldRuntime.adminUrl+"admin.php?page=nfd-performance",null),N=()=>(window.location.href=window.NewfoldRuntime.adminUrl+"admin.php?page=nfd-hosting",null),E=()=>(0,w.jsxs)(d.BV,{children:[T.map((t=>!0===t.condition&&(0,w.jsx)(d.qh,{end:!0,path:e("/marketplace",e("/store",t.name)),element:(0,w.jsx)(t.Component,{})},t.name))),(0,w.jsx)(d.qh,{path:"/my_plugins_and_tools",element:(0,w.jsx)(x,{})}),(0,w.jsx)(d.qh,{path:"/staging",element:(0,w.jsx)(M,{})}),(0,w.jsx)(d.qh,{path:"/performance",element:(0,w.jsx)(j,{})}),(0,w.jsx)(d.qh,{path:"/hosting",element:(0,w.jsx)(N,{})}),(0,w.jsx)(d.qh,{path:"/",element:(0,w.jsx)(f.A,{})}),(0,w.jsx)(d.qh,{path:"*",element:(0,w.jsx)("main",{style:{padding:"1rem"},children:(0,w.jsx)("p",{children:__("There's nothing here!","wp-plugin-bluehost")})})})]}),A=["/home","/settings","/commerce","/marketplace","/help"],T=[{name:"/home",title:__("Home","wp-plugin-bluehost"),Component:f.A,Icon:o.A,condition:!0},{name:"/settings",title:__("Manage WordPress","wp-plugin-bluehost"),Component:g.A,Icon:i.A,condition:!0},{name:"/settings/settings",title:__("Settings","wp-plugin-bluehost"),Component:g.A,Icon:i.A,condition:!0},{name:"/settings/staging",title:__("Staging","wp-plugin-bluehost"),Component:g.A,Icon:i.A,condition:!0},{name:"/settings/performance",title:__("Performance","wp-plugin-bluehost"),Component:g.A,Icon:i.A,condition:!0},{name:"/store/sales_discounts",title:__("Store","wp-plugin-bluehost"),Component:p.A,Icon:a.A,condition:!0},{name:"/commerce",title:__("Commerce","wp-plugin-bluehost"),Component:h.A,condition:!0},{name:"/marketplace",title:__("Marketplace","wp-plugin-bluehost"),Component:m.A,Icon:l.A,subRoutes:await(0,u.P)(),condition:!0},{name:"/help",title:__("Help","wp-plugin-bluehost"),Component:v.A,Icon:s.h,condition:!0,action(e,t=!1){c.NewfoldRuntime.hasCapability("canAccessHelpCenter")&&window.NewfoldFeatures.isEnabled("helpCenter")&&(t&&e.preventDefault(),window.newfoldEmbeddedHelp.toggleNFDLaunchedEmbeddedHelp())}},{name:"/admin",title:__("Admin","wp-plugin-bluehost"),Component:y.A,condition:!0}],S=b(T,(e=>A.includes(e.name))),I=E;r()}catch(e){r(e)}}),1)},1912:(e,t,n)=>{"use strict";n.d(t,{G:()=>a});var r=n(5050),o=n(6339),i=n(2156);function a(e,t,n=()=>({containers:[]})){let a=(0,r.P)(i.M),l=t?a.get(t):void 0,s=!!l&&l.count>0;return(0,o.s)((()=>{if(t&&e)return i.M.dispatch("PUSH",t,n),()=>i.M.dispatch("POP",t,n)}),[e,t]),s}},1961:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(6087),o=n(2609),i=n(9152),a=n(652),l=n(236),s=n(524),c=n(1124),u=n(2914),d=n(790),f=n(6087).useContext,__=n(7723).__;const p=()=>{const{store:e,setStore:t}=f(s.Ay),[n,p]=(0,r.useState)(e.comingSoon),[m,h]=(0,r.useState)(!1),g=(0,u.h)(),v=()=>{const e=__("Coming soon activated","wp-plugin-bluehost"),t=__("Coming soon deactivated","wp-plugin-bluehost");return n?e:t},y=()=>{const e=__("Coming soon page is active. Site requires login.","wp-plugin-bluehost"),t=__("Coming soon page is not active. Site is live to visitors.","wp-plugin-bluehost");return n?e:t};return(0,o.A)((()=>{t({...e,comingSoon:n}),g.push("coming-soon-toggle-notice",{title:v(),description:(0,d.jsx)("span",{children:y()}),variant:"success",autoDismiss:5e3}),(0,c.FY)(n)}),[n]),(0,d.jsx)(i.A.SettingsField,{title:(()=>{const e=__("Site Status","wp-plugin-bluehost"),t=__("Not Live","wp-plugin-bluehost"),r=__("Live","wp-plugin-bluehost"),o=n?t:r,i=n?"nfd-text-[#e10001] coming-soon-status":"nfd-text-[#008112] coming-soon-status";return(0,d.jsxs)("span",{className:i,children:[e,": ",o]})})(),description:(()=>{const e=__('Turn off your "Coming Soon" page when you are ready to launch your website.',"wp-plugin-bluehost"),t=__('Turn on your "Coming Soon" page when you need to make major changes to your website.',"wp-plugin-bluehost");return n?e:t})(),children:(0,d.jsxs)("div",{className:"nfd-flex nfd-flex-col nfd-gap-6",children:[(0,d.jsx)(a.A,{id:"coming-soon-toggle",label:"Coming Soon page",description:__("Your Bluehost Coming Soon page lets you hide your site from visitors while you make the magic happen.","wp-plugin-bluehost"),checked:n,onChange:()=>{(0,c.co)({comingSoon:!n},h,(e=>{p(!n)}))}}),n&&(0,d.jsx)(l.Ay,{variant:"info",children:__('Your website is currently displaying a "Coming Soon" page.',"wp-plugin-bluehost")}),m&&(0,d.jsx)(l.Ay,{variant:"error",children:__("Oops! Something went wrong. Please try again.","wp-plugin-bluehost")})]})})}},1978:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(6942),o=n.n(r),i=n(5556),a=n.n(i),l=n(1609),s=n(790);const c={variant:{default:"nfd-link--default",primary:"nfd-link--primary",error:"nfd-link--error"}},u=(0,l.forwardRef)((({as:e,variant:t,className:n,children:r,...i},a)=>(0,s.jsx)(e,{ref:a,className:o()("nfd-link",c.variant[t],n),...i,children:r}))),d={children:a().node.isRequired,variant:a().oneOf(Object.keys(c.variant)),as:a().elementType,className:a().string};u.propTypes=d,u.defaultProps={as:"a",variant:"default",className:""},u.displayName="Link";const f=e=>(0,s.jsx)(u,{...e});f.propTypes=d,f.defaultProps=u.defaultProps,f.displayName="Link";const p=u},1992:(e,t,n)=>{"use strict";n.d(t,{D:()=>o});var r=n(1609);function o(e=0){let[t,n]=(0,r.useState)(e),o=(0,r.useCallback)((e=>n(e)),[t]),i=(0,r.useCallback)((e=>n((t=>t|e))),[t]),a=(0,r.useCallback)((e=>(t&e)===e),[t]),l=(0,r.useCallback)((e=>n((t=>t&~e))),[n]),s=(0,r.useCallback)((e=>n((t=>t^e))),[n]);return{flags:t,setFlag:o,addFlag:i,hasFlag:a,removeFlag:l,toggleFlag:s}}},2097:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{D9:()=>A});var o=n(6087),i=n(1455),a=n.n(i),l=n(3832),s=n(8468),c=n(5365),u=n(3024),d=n(8746),f=n(9003),p=n(6658),m=n(6942),h=n.n(m),g=n(1124),v=n(1859),y=n(7335),w=n(5965),b=n(9098),x=n(790),M=e([v]);v=(M.then?(await M)():M)[0];const j=()=>{const{mode:e}=c.A.AppBar.useContext();return(0,x.jsx)(b.A,{variant:"inline"===e?"icon":"wordmark"})},N=()=>{const e=(0,p.zy)(),{setActivePath:t}=(0,u.A)(),[n,r]=(0,o.useState)("#"),[i,a]=(0,o.useState)("Editor");(0,o.useEffect)((()=>{(0,g.pF)("edit").then(r),(0,g.IT)().then(a)}),[]);const l=()=>{document.querySelectorAll(".wppbh-app-navitem-submenu").forEach((e=>{e.classList.add("nfd-hidden")}));const e=document.querySelector(".wppbh-app-sidenav .active");e&&null!==e.nextSibling&&e.nextSibling.classList.contains("wppbh-app-navitem-submenu")&&e.nextSibling.classList.remove("nfd-hidden")};return(0,o.useEffect)((()=>{if(e?.pathname){let n=e.pathname;switch(e.pathname){case"/":n="/home";break;case"/settings/performance":case"/settings/staging":case"/settings/settings":n="/settings"}n.startsWith("/marketplace")&&(n="/marketplace"),t(`#${n}`)}l(),document.onclick=l}),[e,t]),(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(c.A.AppBar.Nav,{children:[...v.GB]?.map((e=>{if(!0!==e.condition)return null;const{mode:t,setOpen:n}=c.A.AppBar.useContext();return(0,x.jsx)(c.A.AppBar.Item,{label:e.title,href:`#${e.name}`,className:h()("group-[.nfd-appbar-item--active]:nfd-text-[var(--color-primary)] nfd-whitespace-nowrap",{"nfd-px-4 group-[.nfd-appbar-item--active]:nfd-bg-[#DBF1FC80] group-[.nfd-appbar-item--active]:nfd-font-bold":"inline"===t,"nfd-px-0 nfd-font-bold nfd-bg-transparent group-[.nfd-appbar-item]:!nfd-bg-transparent hover:!nfd-bg-black":"collapsed"===t}),onClick:t=>{n(!1),e.action&&e.action instanceof Function&&e.action(t)}},e.name)}))}),(0,x.jsx)("div",{className:"nfd-grow"}),(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(d.Ay,{as:"a",className:"nfd-flex nfd-gap-2 nfd-mr-4",href:n,children:[i,(0,x.jsx)(y.A,{})]}),(0,x.jsxs)(d.Ay,{as:"a",className:"nfd-flex nfd-gap-2 nfd-mr-4",href:(0,g.g_)((0,g.wZ)("hosting/details","app/#/sites")),variant:"secondary",children:["Hosting Panel",(0,x.jsx)(w.A,{})]})]})]})},E=()=>{const e="#"+(0,p.zy)().pathname;return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(c.A.AppBar,{position:"absolute",className:"nfd-pr-2",collapseAt:880,children:[(0,x.jsx)(j,{}),(0,x.jsx)(N,{})]}),(0,x.jsx)(f.A,{constants:{context:"bluehost-app-nav",page:e},methods:{apiFetch:a(),addQueryArgs:l.addQueryArgs,filter:s.filter,useState:o.useState,useEffect:o.useEffect}})]})},A=()=>(0,x.jsx)(E,{});r()}catch(e){r(e)}}))},2154:(e,t,n)=>{"use strict";n.d(t,{A:()=>M});var r=n(2756),o=n(540),i=n(7832),a=n(9271),l=n(1484),s=n(1609),c=n(6942),u=n.n(c),d=n(5556),f=n.n(d),p=n(6244),m=n(2947),h=n(6820),g=n(790);const v={value:f().oneOfType([f().string,f().number,f().bool]).isRequired,label:f().string.isRequired},y=({value:e,label:t})=>{const n=(0,p.A)(),o=(0,s.useCallback)((({active:e,selected:t})=>u()("nfd-select__option",e&&"nfd-select__option--active",t&&"nfd-select__option--selected")),[]);return(0,g.jsx)(r.h7,{value:e,className:o,children:({selected:e})=>(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("span",{className:u()("nfd-select__option-label",e&&"nfd-font-semibold"),children:t}),e&&(0,g.jsx)(a.A,{className:"nfd-select__option-check",...n})]})})};y.propTypes=v;const w=(0,s.forwardRef)((({id:e,value:t,options:n,children:a,selectedLabel:c,label:d,labelProps:f,labelSuffix:v,onChange:w,disabled:b,validation:x,className:M,buttonProps:j,...N},E)=>{const A=(0,s.useMemo)((()=>n.find((e=>t===(null==e?void 0:e.value)))||n[0]),[t,n]),T=(0,p.A)();return(0,g.jsxs)(r.WF,{ref:E,as:"div",value:t,onChange:w,disabled:b,className:u()("nfd-select",b&&"nfd-select--disabled",M),...N,children:[d&&(0,g.jsxs)("div",{className:"nfd-flex nfd-items-center nfd-mb-2",children:[(0,g.jsx)(o.JU,{as:h.A,...f,children:d}),v]}),(0,g.jsxs)(m.A,{as:r.go,"data-id":e,className:"nfd-select__button",validation:x,...j,children:[(0,g.jsx)("span",{className:"nfd-select__button-label",children:c||(null==A?void 0:A.label)||""}),!(null!=x&&x.message)&&(0,g.jsx)(l.A,{className:"nfd-select__button-icon",...T})]}),(0,g.jsx)(i.e,{as:s.Fragment,enter:"nfd-transition nfd-duration-100 nfd-ease-out",enterFrom:"nfd-transform nfd-scale-95 nfd-opacity-0",enterTo:"nfd-transform nfd-scale-100 nfd-opacity-100",leave:"nfd-transition nfd-duration-75 nfd-ease-out",leaveFrom:"nfd-transform nfd-scale-100 nfd-opacity-100",leaveTo:"nfd-transform nfd-scale-95 nfd-opacity-0",children:(0,g.jsx)(r.wh,{className:"nfd-select__options",children:a||n.map((e=>(0,g.jsx)(y,{...e},e.value)))})})]})})),b={id:f().string.isRequired,value:f().oneOfType([f().string,f().number,f().bool]).isRequired,options:f().arrayOf(f().shape(v)),children:f().node,selectedLabel:f().string,label:f().string,labelProps:f().object,labelSuffix:f().node,onChange:f().func.isRequired,disabled:f().bool,validation:f().shape({variant:f().string,message:f().node}),className:f().string,buttonProps:f().object};w.propTypes=b,w.Option=y,w.Option.displayName="Select.Option",w.defaultProps={options:[],children:null,selectedLabel:"",label:"",labelProps:{},labelSuffix:null,disabled:!1,validation:{},className:"",buttonProps:{}},w.displayName="Select";const x=e=>(0,g.jsx)(w,{...e});x.propTypes=b,x.defaultProps=w.defaultProps,x.displayName="Select";const M=w},2156:(e,t,n)=>{"use strict";n.d(t,{M:()=>c});var r=n(2599),o=n(1321),i=n(9594),a=n(1588),l=n(8902);function s(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let c=(0,o.y)((()=>new Map),{PUSH(e,t){var n;let o=null!=(n=this.get(e))?n:{doc:e,count:0,d:(0,r.e)(),meta:new Set};return o.count++,o.meta.add(t),this.set(e,o),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:s(n)},o=[(0,a.D)(),(0,i.f)(),(0,l.S)()];o.forEach((({before:e})=>null==e?void 0:e(r))),o.forEach((({after:e})=>null==e?void 0:e(r)))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});c.subscribe((()=>{let e=c.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&c.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&c.dispatch("TEARDOWN",n)}}))},2157:(e,t,n)=>{"use strict";function r(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function o(){return r()||/Android/gi.test(window.navigator.userAgent)}n.d(t,{Fr:()=>o,un:()=>r})},2191:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(3862),o=n(6407),i=n(790),__=n(7723).__;const a={eventendpoint:"/newfold-data/v1/events/",perPage:12,appendCategoryToTitle:!0,text:{title:__("Marketplace","wp-module-marketplace"),subTitle:__("Explore our featured collection of tools and services.","wp-module-marketplace"),error:__("Oops, there was an error loading the marketplace, please try again later.","wp-module-marketplace"),noProducts:__("Sorry, no marketplace items. Please, try again later.","wp-module-marketplace"),loadMore:__("Load More","wp-module-marketplace"),categories:__("Categories","wp-module-marketplace")}},l=({methods:e,constants:t,...n})=>(t=Object.assign(a,t),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"nfd-page-content nfd-flex nfd-flex-col nfd-relative nfd-gap-6 nfd-max-w-full nfd-my-0",children:(0,i.jsx)(r.A,{title:t.text.title,description:t.text.subTitle})}),(0,i.jsx)(o.A,{constants:t,methods:e})]}))},2205:(e,t,n)=>{"use strict";n.d(t,{D:()=>o});var r,o=((r=o||{}).Space=" ",r.Enter="Enter",r.Escape="Escape",r.Backspace="Backspace",r.Delete="Delete",r.ArrowLeft="ArrowLeft",r.ArrowUp="ArrowUp",r.ArrowRight="ArrowRight",r.ArrowDown="ArrowDown",r.Home="Home",r.End="End",r.PageUp="PageUp",r.PageDown="PageDown",r.Tab="Tab",r)},2211:(e,t,n)=>{"use strict";n.d(t,{T:()=>o});var r=n(9851);function o(e){var t,n;return r._.isServer?null:e?"ownerDocument"in e?e.ownerDocument:"current"in e?null!=(n=null==(t=e.current)?void 0:t.ownerDocument)?n:document:null:document}},2218:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(790);const o=({children:e})=>(0,r.jsx)("div",{className:"nfd-appbar-logo",children:e})},2286:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(1609);const o=r.forwardRef((function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",clipRule:"evenodd"}))}))},2339:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(1609);const o=r.forwardRef((function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))}))},2464:(e,t,n)=>{"use strict";n.d(t,{B:()=>f,p:()=>p});var r,o,i=n(1609),a=n(2599),l=n(6992),s=n(1992),c=n(6339);"undefined"!=typeof process&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&"test"===(null==(r=null==process?void 0:process.env)?void 0:r.NODE_ENV)&&void 0===(null==(o=null==Element?void 0:Element.prototype)?void 0:o.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join("\n")),[]});var u,d=((u=d||{})[u.None=0]="None",u[u.Closed=1]="Closed",u[u.Enter=2]="Enter",u[u.Leave=4]="Leave",u);function f(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t}function p(e,t,n,r){let[o,u]=(0,i.useState)(n),{hasFlag:d,addFlag:f,removeFlag:p}=(0,s.D)(e&&o?3:0),m=(0,i.useRef)(!1),h=(0,i.useRef)(!1),g=(0,l.L)();return(0,c.s)((()=>{var o;if(e)return n&&u(!0),t?(null==(o=null==r?void 0:r.start)||o.call(r,n),function(e,{prepare:t,run:n,done:r,inFlight:o}){let i=(0,a.e)();return function(e,{inFlight:t,prepare:n}){if(null!=t&&t.current)return void n();let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}(e,{prepare:t,inFlight:o}),i.nextFrame((()=>{n(),i.requestAnimationFrame((()=>{i.add(function(e,t){var n,r;let o=(0,a.e)();if(!e)return o.dispose;let i=!1;o.add((()=>{i=!0}));let l=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter((e=>e instanceof CSSTransition)))?r:[];return 0===l.length?(t(),o.dispose):(Promise.allSettled(l.map((e=>e.finished))).then((()=>{i||t()})),o.dispose)}(e,r))}))})),i.dispose}(t,{inFlight:m,prepare(){h.current?h.current=!1:h.current=m.current,m.current=!0,!h.current&&(n?(f(3),p(4)):(f(4),p(2)))},run(){h.current?n?(p(3),f(4)):(p(4),f(3)):n?p(1):f(1)},done(){var e;h.current&&"function"==typeof t.getAnimations&&t.getAnimations().length>0||(m.current=!1,p(7),n||u(!1),null==(e=null==r?void 0:r.end)||e.call(r,n))}})):void(n&&f(3))}),[e,n,t,g]),e?[o,{closed:d(1),enter:d(2),leave:d(4),transition:d(2)||d(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}},2483:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(4619),o=n(3928),i=n(6087),a=n(7723),l=n(948),s=n(1124),c=n(790),u=n(6942);const d=()=>{const[e,t]=(0,i.useState)("#");return(0,i.useEffect)((()=>{(0,s.pF)("edit").then(t)}),[]),(0,c.jsxs)(r.A,{as:"a",className:u("nfd-quick-links-card nfd-quick-links-ai-editor-card","nfd-flex nfd-flex-col nfd-gap-4 nfd-border nfd-border-[#D5D5D5]","nfd-no-underline nfd-shadow-none nfd-transition-all hover:nfd-shadow-md"),"data-nfd-click":"newfold-quick-links-ai-editor","data-test-id":"quick-links-ai-editor-link",href:e,children:[(0,c.jsxs)("div",{className:"nfd-quick-links-card__head nfd-flex nfd-items-center nfd-gap-2",children:[(0,c.jsx)("span",{className:"nfd-quick-links-card__icon nfd-p-[4px] nfd-bg-[#ddecff] nfd-rounded-[5px]",children:(0,c.jsx)(l.DG,{})}),(0,c.jsx)(o.Ay,{as:"h2",className:"nf-text-base nfd-font-semibold",children:(0,a.__)("Launch our AI Editor","wp-plugin-bluehost")})]}),(0,c.jsx)("p",{className:"nfd-mt-0 nfd-text-body",children:(0,a.__)("Say hello to effortless site building with a wide library of 250+ blocks","wp-plugin-bluehost")}),(0,c.jsx)("p",{className:"nfd-mt-0 nfd-font-semibold nfd-no-underline nfd-text-[#196BDE]",children:(0,a.__)("Launch the Editor","wp-plugin-bluehost")})]})}},2498:(e,t,n)=>{"use strict";n.d(t,{CL:()=>f,PC:()=>u});var r=n(1609),o=n(5795),i=n(6992),a=n(3660),l=n(6206),s=n(9528);let c=(0,r.createContext)(null);function u(e){let[t,n]=(0,r.useState)(null);return r.createElement(c.Provider,{value:{target:t}},e.children,r.createElement(s.j,{features:s.u.Hidden,ref:n}))}function d({children:e}){let t=(0,r.useContext)(c);if(!t)return r.createElement(r.Fragment,null,e);let{target:n}=t;return n?(0,o.createPortal)(r.createElement(r.Fragment,null,e),n):null}function f({data:e,form:t,disabled:n,onReset:o,overrides:c}){let[u,f]=(0,r.useState)(null),m=(0,i.L)();return(0,r.useEffect)((()=>{if(o&&u)return m.addEventListener(u,"reset",o)}),[u,t,o]),r.createElement(d,null,r.createElement(p,{setForm:f,formId:t}),(0,a.h)(e).map((([e,o])=>r.createElement(s.j,{features:s.u.Hidden,...(0,l.oE)({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:e,value:o,...c})}))))}function p({setForm:e,formId:t}){return(0,r.useEffect)((()=>{if(t){let n=document.getElementById(t);n&&e(n)}}),[e,t]),t?null:r.createElement(s.j,{features:s.u.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:t=>{if(!t)return;let n=t.closest("form");n&&e(n)}})}},2499:(e,t,n)=>{"use strict";n.d(t,{h:()=>f});var r,o,i,a,l,s,c,u=n(1609);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(null,arguments)}var f=function(e){return u.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 144 60"},e),r||(r=u.createElement("path",{stroke:"#E6E6E6",strokeDasharray:"4 4",strokeLinecap:"round",strokeWidth:2,d:"M135 30H67.2m0-12.6v7.4m-3.7-7.4h-7.4m7.4 24.3h-7.4m11.1-7.4v7.4"})),o||(o=u.createElement("path",{fill:"#E6E6E6",d:"M91.8 15a3 3 0 0 1 2.8 0l5.3 2.8 5.2 3.2a3 3 0 0 1 1.4 2.5l.2 6-.2 6.1c0 1-.5 2-1.4 2.5l-5.2 3.1-5.3 3a3 3 0 0 1-2.8 0l-5.4-3-5.1-3.1a3 3 0 0 1-1.5-2.5l-.1-6 .1-6.1c0-1 .6-2 1.5-2.5l5.1-3.2 5.4-2.9Zm34.9 0a3 3 0 0 1 2.9 0l5.3 2.8 5.2 3.2a3 3 0 0 1 1.4 2.5l.2 6-.2 6.1c0 1-.6 2-1.4 2.5l-5.2 3.1-5.3 3a3 3 0 0 1-2.9 0l-5.3-3-5.2-3.1a3 3 0 0 1-1.4-2.5l-.2-6 .2-6.1c0-1 .6-2 1.4-2.5l5.2-3.2 5.3-2.9Z"})),i||(i=u.createElement("circle",{cx:93.2,cy:29.5,r:10.1,fill:"#346BD5"})),a||(a=u.createElement("circle",{cx:128.1,cy:29.5,r:10.1,fill:"#346BD5"})),l||(l=u.createElement("path",{fill:"#fff",d:"M90.2 28.8v-1.4h6v1.4zm0 3v-1.5h6v1.4h-6Zm37.6 3.7V23.9h.8v11.6zm2.1-7.9c0-.4-.2-.7-.5-1a2 2 0 0 0-1.2-.2l-.9.1-.6.4a1 1 0 0 0 0 1.2l.3.3.5.3.6.1.9.2 1 .4.8.5.7.8.2 1c0 .6-.2 1-.4 1.4a3 3 0 0 1-1.2 1c-.5.2-1.2.3-2 .3-.6 0-1.3 0-1.8-.3-.5-.2-1-.5-1.2-1-.3-.4-.5-1-.5-1.5h1.6c0 .3.2.6.3.8l.7.5 1 .1 1-.1.6-.5.2-.7c0-.2 0-.4-.2-.6-.1-.2-.3-.3-.6-.4l-.8-.3-1.1-.3a5 5 0 0 1-1.8-.8 2 2 0 0 1-.7-1.6c0-.6.2-1 .5-1.5a3 3 0 0 1 1.2-1c.5-.2 1-.3 1.7-.3a4 4 0 0 1 1.8.4c.4.2.8.5 1.1 1 .3.3.5.8.5 1.3z"})),s||(s=u.createElement("rect",{width:53,height:13.8,x:1,y:11.5,fill:"#E6E6E6",stroke:"#346BD5",strokeDasharray:"2 2",rx:1.5})),c||(c=u.createElement("rect",{width:53,height:13.8,x:1,y:34.8,fill:"#E6E6E6",stroke:"#346BD5",strokeDasharray:"2 2",rx:1.5})))}},2599:(e,t,n)=>{"use strict";n.d(t,{e:()=>o});var r=n(2924);function o(){let e=[],t={addEventListener:(e,n,r,o)=>(e.addEventListener(n,r,o),t.add((()=>e.removeEventListener(n,r,o)))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(n)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let n=setTimeout(...e);return t.add((()=>clearTimeout(n)))},microTask(...e){let n={current:!0};return(0,r._)((()=>{n.current&&e[0]()})),t.add((()=>{n.current=!1}))},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{[t]:r})}))},group(e){let t=o();return e(t),this.add((()=>t.dispose()))},add:t=>(e.includes(t)||e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}},2609:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609),o=n(2969);const i=function(e,t){var n=(0,o.S)();(0,r.useEffect)((function(){if(!n)return e()}),t)}},2625:(e,t,n)=>{"use strict";n.d(t,{j:()=>d});var r=n(1609),o=n(7280),i=n(4122),a=n(2157),l=n(8419),s=n(4424),c=n(5074);const u=30;function d(e,t,n){let d=(0,s.Y)(n),f=(0,r.useCallback)((function(e,n){if(e.defaultPrevented)return;let r=n(e);if(null===r||!r.getRootNode().contains(r)||!r.isConnected)return;let o=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t);for(let t of o)if(null!==t&&(t.contains(r)||e.composed&&e.composedPath().includes(t)))return;return!(0,i.Bm)(r,i.MZ.Loose)&&-1!==r.tabIndex&&e.preventDefault(),d.current(e,r)}),[d,t]),p=(0,r.useRef)(null);(0,l.z)(e,"pointerdown",(e=>{var t,n;(0,a.Fr)()||(p.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),(0,l.z)(e,"pointerup",(e=>{if((0,a.Fr)()||!p.current)return;let t=p.current;return p.current=null,f(e,(()=>t))}),!0);let m=(0,r.useRef)({x:0,y:0});(0,l.z)(e,"touchstart",(e=>{m.current.x=e.touches[0].clientX,m.current.y=e.touches[0].clientY}),!0),(0,l.z)(e,"touchend",(e=>{let t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY;if(!(Math.abs(t-m.current.x)>=u||Math.abs(n-m.current.y)>=u))return f(e,(()=>o.Lk(e.target)?e.target:null))}),!0),(0,c.M)(e,"blur",(e=>f(e,(()=>o.Gu(window.document.activeElement)?window.document.activeElement:null))),!0)}},2692:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6364),o=n(790);const i=({width:e,height:t})=>(0,o.jsx)(r.A,{width:e||"500px",height:t||"45px",className:"filterbar-skeleton"})},2694:(e,t,n)=>{"use strict";var r=n(6925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},2756:(e,t,n)=>{"use strict";n.d(t,{WF:()=>ue,go:()=>ie,h7:()=>se,wh:()=>le});var r=n(6133),o=n(4257),i=n(1609),a=n(5795),l=n(4867),s=n(1675),c=n(5060),u=n(7786),d=n(9781),f=n(6992),p=n(3321),m=n(5015),h=n(7575),g=n(6339),v=n(4424),y=n(3674),w=n(2625),b=n(4156),x=n(6284),M=n(9821),j=n(6984),N=n(8975),E=n(7980),A=n(9185),T=n(2464),S=n(5448),I=n(1306),D=n(2498),k=n(3638),C=n(5953),L=n(3149),O=n(9669),R=n(3379),P=n(9685),z=n(8342),_=n(2599),F=n(7280),U=n(4122),B=n(3660),H=n(5897),V=n(2211),W=n(6206),q=n(9124),Q=n(2205),Y=n(540),$=n(2780),G=n(8302),Z=n(372),K=n(7868);let X=(0,i.createContext)(null);function J(e){let t=(0,i.useContext)(X);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,J),t}return t}X.displayName="ListboxDataContext";let ee=i.Fragment,te=(0,i.createContext)(!1),ne=W.Ac.RenderStrategy|W.Ac.Static,re=i.Fragment,oe=(0,W.FX)((function(e,t){let n=(0,i.useId)(),r=(0,S._)(),{value:o,defaultValue:a,form:l,name:d,onChange:f,by:p,invalid:m=!1,disabled:h=r||!1,horizontal:v=!1,multiple:y=!1,__demoMode:b=!1,...x}=e;const M=v?"horizontal":"vertical";let j=(0,N.P)(t),E=(0,u.K)(a),[A=(y?[]:void 0),T]=(0,c.P)(o,f,E),k=(0,K.W3)({id:n,__demoMode:b}),C=(0,i.useRef)({static:!1,hold:!1}),P=(0,i.useRef)(new Map),z=(0,s.t)(p),_=(0,i.useCallback)((e=>(0,H.Y)(F.mode,{[Z.FE.Multi]:()=>A.some((t=>z(t,e))),[Z.FE.Single]:()=>z(A,e)})),[A]),F=(0,i.useMemo)((()=>({value:A,disabled:h,invalid:m,mode:y?Z.FE.Multi:Z.FE.Single,orientation:M,onChange:T,compare:z,isSelected:_,optionsPropsRef:C,listRef:P})),[A,h,m,y,M,T,z,_,C,P]);(0,g.s)((()=>{k.state.dataRef.current=F}),[F]);let B=(0,R.y)(k,(e=>e.listboxState)),V=O.D.get(null),q=(0,R.y)(V,(0,i.useCallback)((e=>V.selectors.isTop(e,n)),[V,n])),[Q,$]=(0,R.y)(k,(e=>[e.buttonElement,e.optionsElement]));(0,w.j)(q,[Q,$],((e,t)=>{k.send({type:Z.Q3.CloseListbox}),(0,U.Bm)(t,U.MZ.Loose)||(e.preventDefault(),null==Q||Q.focus())}));let G=(0,i.useMemo)((()=>({open:B===Z._A.Open,disabled:h,invalid:m,value:A})),[B,h,m,A]),[J,te]=(0,Y.b0)({inherit:!0}),ne={ref:j},re=(0,i.useCallback)((()=>{if(void 0!==E)return null==T?void 0:T(E)}),[T,E]),oe=(0,W.Ci)();return i.createElement(te,{value:J,props:{htmlFor:null==Q?void 0:Q.id},slot:{open:B===Z._A.Open,disabled:h}},i.createElement(I.St,null,i.createElement(K.lq.Provider,{value:k},i.createElement(X.Provider,{value:F},i.createElement(L.El,{value:(0,H.Y)(B,{[Z._A.Open]:L.Uw.Open,[Z._A.Closed]:L.Uw.Closed})},null!=d&&null!=A&&i.createElement(D.CL,{disabled:h,data:{[d]:A},form:l,onReset:re}),oe({ourProps:ne,theirProps:x,slot:G,defaultTag:ee,name:"Listbox"}))))))})),ie=(0,W.FX)((function(e,t){let n=(0,i.useId)(),s=(0,C.q)(),c=J("Listbox.Button"),u=(0,K.PR)("Listbox.Button"),{id:d=s||`headlessui-listbox-button-${n}`,disabled:f=c.disabled||!1,autoFocus:p=!1,...h}=e,g=(0,N.P)(t,(0,I.Xc)(),u.actions.setButtonElement),v=(0,I.TI)(),[y,w,b]=(0,R.y)(u,(e=>[e.listboxState,e.buttonElement,e.optionsElement])),j=y===Z._A.Open;(0,x.s)(j,{trigger:w,action:(0,i.useCallback)((e=>{if(null!=w&&w.contains(e.target))return x.r.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return F.sb(t)?x.r.Select(t):null!=b&&b.contains(e.target)?x.r.Ignore:x.r.Close}),[w,b]),close:u.actions.closeListbox,select:u.actions.selectActiveOption});let E=(0,m._)((e=>{switch(e.key){case Q.D.Enter:(0,B.q)(e.currentTarget);break;case Q.D.Space:case Q.D.ArrowDown:e.preventDefault(),u.actions.openListbox({focus:c.value?z.B.Nothing:z.B.First});break;case Q.D.ArrowUp:e.preventDefault(),u.actions.openListbox({focus:c.value?z.B.Nothing:z.B.Last})}})),A=(0,m._)((e=>{e.key===Q.D.Space&&e.preventDefault()})),T=(0,m._)((e=>{var t;if(e.button===$.w.Left){if((0,P.l)(e.currentTarget))return e.preventDefault();u.state.listboxState===Z._A.Open?((0,a.flushSync)((()=>u.actions.closeListbox())),null==(t=u.state.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),u.actions.openListbox({focus:z.B.Nothing}))}})),S=(0,i.useRef)(null),D=(0,m._)((e=>{S.current=e.pointerType,"mouse"===e.pointerType&&T(e)})),k=(0,m._)((e=>{"mouse"!==S.current&&T(e)})),L=(0,m._)((e=>e.preventDefault())),O=(0,Y.o2)([d]),_=(0,q.MM)(),{isFocusVisible:U,focusProps:H}=(0,r.o)({autoFocus:p}),{isHovered:V,hoverProps:G}=(0,o.M)({isDisabled:f}),{pressed:X,pressProps:ee}=(0,l.Z)({disabled:f}),te=(0,i.useMemo)((()=>({open:y===Z._A.Open,active:X||y===Z._A.Open,disabled:f,invalid:c.invalid,value:c.value,hover:V,focus:U,autofocus:p})),[y,c.value,f,V,U,X,c.invalid,p]),ne=(0,R.y)(u,(e=>e.listboxState===Z._A.Open)),re=(0,W.v6)(v(),{ref:g,id:d,type:(0,M.c)(e,w),"aria-haspopup":"listbox","aria-controls":null==b?void 0:b.id,"aria-expanded":ne,"aria-labelledby":O,"aria-describedby":_,disabled:f||void 0,autoFocus:p,onKeyDown:E,onKeyUp:A,onKeyPress:L,onPointerDown:D,onClick:k},H,G,ee);return(0,W.Ci)()({ourProps:re,theirProps:h,slot:te,defaultTag:"button",name:"Listbox.Button"})})),ae=Y.JU,le=(0,W.FX)((function(e,t){let n=(0,i.useId)(),{id:r=`headlessui-listbox-options-${n}`,anchor:o,portal:l=!1,modal:s=!0,transition:c=!1,...u}=e,g=(0,I.zn)(o),[v,w]=(0,i.useState)(null);g&&(l=!0);let x=J("Listbox.Options"),M=(0,K.PR)("Listbox.Options"),[E,A,S,D]=(0,R.y)(M,(e=>[e.listboxState,e.buttonElement,e.optionsElement,e.__demoMode])),C=(0,b.g)(A),O=(0,b.g)(S),P=(0,L.O_)(),[_,F]=(0,T.p)(c,v,null!==P?(P&L.Uw.Open)===L.Uw.Open:E===Z._A.Open);(0,y.O)(_,A,M.actions.closeListbox);let B=!D&&s&&E===Z._A.Open;(0,j.K)(B,O);let q=!D&&s&&E===Z._A.Open;(0,h.v)(q,{allowed:(0,i.useCallback)((()=>[A,S]),[A,S])});let Y=E!==Z._A.Open,$=!(0,d.Y)(Y,A)&&_,ee=_&&E===Z._A.Closed,te=(0,k.O)(ee,x.value),re=(0,m._)((e=>x.compare(te,e))),oe=(0,R.y)(M,(e=>{var t;if(null==g||null==(t=null==g?void 0:g.to)||!t.includes("selection"))return null;let n=e.options.findIndex((e=>re(e.dataRef.current.value)));return-1===n&&(n=0),n})),ie=(()=>{if(null==g)return;if(null===oe)return{...g,inner:void 0};let e=Array.from(x.listRef.current.values());return{...g,inner:{listRef:{current:e},index:oe}}})(),[ae,le]=(0,I.UF)(ie),se=(0,I.G3)(),ce=(0,N.P)(t,g?ae:null,M.actions.setOptionsElement,w),ue=(0,f.L)();(0,i.useEffect)((()=>{var e;let t=S;t&&E===Z._A.Open&&t!==(null==(e=(0,V.T)(t))?void 0:e.activeElement)&&(null==t||t.focus({preventScroll:!0}))}),[E,S]);let de=(0,m._)((e=>{var t,n;switch(ue.dispose(),e.key){case Q.D.Space:if(""!==M.state.searchQuery)return e.preventDefault(),e.stopPropagation(),M.actions.search(e.key);case Q.D.Enter:if(e.preventDefault(),e.stopPropagation(),null!==M.state.activeOptionIndex){let{dataRef:e}=M.state.options[M.state.activeOptionIndex];M.actions.onChange(e.current.value)}x.mode===Z.FE.Single&&((0,a.flushSync)((()=>M.actions.closeListbox())),null==(t=M.state.buttonElement)||t.focus({preventScroll:!0}));break;case(0,H.Y)(x.orientation,{vertical:Q.D.ArrowDown,horizontal:Q.D.ArrowRight}):return e.preventDefault(),e.stopPropagation(),M.actions.goToOption({focus:z.B.Next});case(0,H.Y)(x.orientation,{vertical:Q.D.ArrowUp,horizontal:Q.D.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),M.actions.goToOption({focus:z.B.Previous});case Q.D.Home:case Q.D.PageUp:return e.preventDefault(),e.stopPropagation(),M.actions.goToOption({focus:z.B.First});case Q.D.End:case Q.D.PageDown:return e.preventDefault(),e.stopPropagation(),M.actions.goToOption({focus:z.B.Last});case Q.D.Escape:return e.preventDefault(),e.stopPropagation(),(0,a.flushSync)((()=>M.actions.closeListbox())),void(null==(n=M.state.buttonElement)||n.focus({preventScroll:!0}));case Q.D.Tab:e.preventDefault(),e.stopPropagation(),(0,a.flushSync)((()=>M.actions.closeListbox())),(0,U.p9)(M.state.buttonElement,e.shiftKey?U.BD.Previous:U.BD.Next);break;default:1===e.key.length&&(M.actions.search(e.key),ue.setTimeout((()=>M.actions.clearSearch()),350))}})),fe=(0,R.y)(M,(e=>{var t;return null==(t=e.buttonElement)?void 0:t.id})),pe=(0,i.useMemo)((()=>({open:E===Z._A.Open})),[E]),me=(0,W.v6)(g?se():{},{id:r,ref:ce,"aria-activedescendant":(0,R.y)(M,M.selectors.activeDescendantId),"aria-multiselectable":x.mode===Z.FE.Multi||void 0,"aria-labelledby":fe,"aria-orientation":x.orientation,onKeyDown:de,role:"listbox",tabIndex:E===Z._A.Open?0:void 0,style:{...u.style,...le,"--button-width":(0,p.L)(A,!0).width},...(0,T.B)(F)}),he=(0,W.Ci)(),ge=(0,i.useMemo)((()=>x.mode===Z.FE.Multi?x:{...x,isSelected:re}),[x,re]);return i.createElement(G.ZL,{enabled:!!l&&(e.static||_),ownerDocument:C},i.createElement(X.Provider,{value:ge},he({ourProps:me,theirProps:u,slot:pe,defaultTag:"div",features:ne,visible:$,name:"Listbox.Options"})))})),se=(0,W.FX)((function(e,t){let n=(0,i.useId)(),{id:r=`headlessui-listbox-option-${n}`,disabled:o=!1,value:l,...s}=e,c=!0===(0,i.useContext)(te),u=J("Listbox.Option"),d=(0,K.PR)("Listbox.Option"),f=(0,R.y)(d,(e=>d.selectors.isActive(e,r))),p=u.isSelected(l),h=(0,i.useRef)(null),y=(0,E.q)(h),w=(0,v.Y)({disabled:o,value:l,domRef:h,get textValue(){return y()}}),b=(0,N.P)(t,h,(e=>{e?u.listRef.current.set(r,e):u.listRef.current.delete(r)})),x=(0,R.y)(d,(e=>d.selectors.shouldScrollIntoView(e,r)));(0,g.s)((()=>{if(x)return(0,_.e)().requestAnimationFrame((()=>{var e,t;null==(t=null==(e=h.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}))}),[x,h]),(0,g.s)((()=>{if(!c)return d.actions.registerOption(r,w),()=>d.actions.unregisterOption(r)}),[w,r,c]);let M=(0,m._)((e=>{var t;if(o)return e.preventDefault();d.actions.onChange(l),u.mode===Z.FE.Single&&((0,a.flushSync)((()=>d.actions.closeListbox())),null==(t=d.state.buttonElement)||t.focus({preventScroll:!0}))})),j=(0,m._)((()=>{if(o)return d.actions.goToOption({focus:z.B.Nothing});d.actions.goToOption({focus:z.B.Specific,id:r})})),T=(0,A.J)(),S=(0,m._)((e=>T.update(e))),I=(0,m._)((e=>{T.wasMoved(e)&&(o||f&&d.state.activationTrigger===Z.xh.Pointer||d.actions.goToOption({focus:z.B.Specific,id:r},Z.xh.Pointer))})),D=(0,m._)((e=>{T.wasMoved(e)&&(o||f&&d.state.activationTrigger===Z.xh.Pointer&&d.actions.goToOption({focus:z.B.Nothing}))})),k=(0,i.useMemo)((()=>({active:f,focus:f,selected:p,disabled:o,selectedOption:p&&c})),[f,p,o,c]),C=c?{}:{id:r,ref:b,role:"option",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,"aria-selected":p,disabled:void 0,onClick:M,onFocus:j,onPointerEnter:S,onMouseEnter:S,onPointerMove:I,onMouseMove:I,onPointerLeave:D,onMouseLeave:D},L=(0,W.Ci)();return!p&&c?null:L({ourProps:C,theirProps:s,slot:k,defaultTag:"div",name:"Listbox.Option"})})),ce=(0,W.FX)((function(e,t){let{options:n,placeholder:r,...o}=e,a={ref:(0,N.P)(t)},l=J("ListboxSelectedOption"),s=(0,i.useMemo)((()=>({})),[]),c=void 0===l.value||null===l.value||l.mode===Z.FE.Multi&&Array.isArray(l.value)&&0===l.value.length,u=(0,W.Ci)();return i.createElement(te.Provider,{value:!0},u({ourProps:a,theirProps:{...o,children:i.createElement(i.Fragment,null,r&&c?r:n)},slot:s,defaultTag:re,name:"ListboxSelectedOption"}))})),ue=Object.assign(oe,{Button:ie,Label:ae,Options:le,Option:se,SelectedOption:ce})},2780:(e,t,n)=>{"use strict";n.d(t,{w:()=>o});var r,o=((r=o||{})[r.Left=0]="Left",r[r.Right=2]="Right",r)},2887:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(12),o=n(8746),i=n(790);const a=({marketplaceItems:e,currentCount:t,category:n,methods:a,constants:l})=>{const[s,c]=a.useState(t),[u,d]=a.useState([]),[f,p]=a.useState([]);return a.useEffect((()=>{d(((e,t)=>"all"===t.name?e:e.filter((e=>e.categories.includes(t.title))))(e,n))}),[e]),a.useEffect((()=>{p(((e,t)=>[...e].slice(0,t))(u,s))}),[u,s]),(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:`marketplace-list marketplace-list-${n.name} wppbh-app-marketplace-list nfd-grid nfd-gap-6 nfd-grid-cols-1 min-[575px]:nfd-grid-cols-2 md:nfd-grid-cols-1 min-[1060px]:nfd-grid-cols-2 min-[1360px]:nfd-grid-cols-3`,children:[f.length>0&&f.map((e=>(0,i.jsx)(r.A,{item:e,methods:a,constants:l},e.id))),!f.length&&(0,i.jsx)("p",{children:l.text.noProducts}),u&&u.length>s&&(0,i.jsx)("div",{className:"nfd-flex nfd-mx-4 nfd-col-span-full",children:(0,i.jsx)(o.Ay,{onClick:()=>{c(s+l.perPage)},variant:"secondary",className:"align-center nfd-bg-transparent nfd-transition-all nfd-duration-200 nfd-text-[#196bde] hover:nfd-bg-[#ccdcf4]",style:{margin:"auto"},children:l.text.loadMore})})]})})}},2894:(e,t,n)=>{"use strict";n.d(t,{eg:()=>a,lR:()=>c,o1:()=>l,yB:()=>s});var r=n(9953),o=n(7049),i=n(1609);function a(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function l(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function s(e){let t=(0,i.useRef)({isFocused:!1,observer:null});(0,r.N)((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=(0,o.J)((t=>{null==e||e(t)}));return(0,i.useCallback)((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target,o=e=>{if(t.current.isFocused=!1,r.disabled){let t=a(e);n(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver((()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}})),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}}),[n])}let c=!1},2903:(e,t,n)=>{"use strict";n.d(t,{X:()=>a});var r=n(1609),o=n(2924),i=n(5015);function a(e){let t=(0,i._)(e),n=(0,r.useRef)(!1);(0,r.useEffect)((()=>(n.current=!1,()=>{n.current=!0,(0,o._)((()=>{n.current&&t()}))})),[t])}},2914:(e,t,n)=>{"use strict";n.d(t,{Y:()=>d,h:()=>u});var r=n(6087),o=n(9603),i=n(790);const a="push",l="dismiss",s=(e,t)=>{switch(t.type){case a:return{...e,[t.id]:t.message};case l:return{...e,[t.id]:null};default:return e}},c=(0,r.createContext)({push:(e,t)=>{}}),u=()=>(0,r.useContext)(c),d=({children:e})=>{const[t,n]=(0,r.useReducer)(s,{});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c.Provider,{value:{push:(e,t)=>n({type:a,id:e,message:t})},children:e}),(0,i.jsx)(o.Ay,{children:Object.entries(t).filter((([,e])=>null!==e)).map((([e,{description:t,...r}])=>{const a=Array.isArray(t)?{description:t}:{children:t};return(0,i.jsx)(o.Ay.Notification,{id:e,...r,...a,dismissScreenReaderLabel:"Dismiss",onDismiss:e=>{n({type:l,id:e}),r.onDismiss&&r.onDismiss(e)}},e)}))})]})}},2924:(e,t,n)=>{"use strict";function r(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}n.d(t,{_:()=>r})},2934:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6942),o=n.n(r),i=n(790);const a=({className:e="",children:t})=>(e=o()("nfd-appbar-actions",e,"nfd-flex nfd-items-center nfd-gap-2 nfd-h-full nfd-w-full"),(0,i.jsx)("div",{className:e,children:t}))},2947:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(1609),o=n(5556),i=n.n(o),a=n(6942),l=n.n(a),s=n(5410),c=n(790);const u={variant:{success:"nfd-validation-input--success",warning:"nfd-validation-input--warning",info:"nfd-validation-input--info",error:"nfd-validation-input--error"}},d=(0,r.forwardRef)((({as:e,icon:t,validation:n={},className:r="",...o},i)=>{const a=(0,c.jsx)(e,{ref:i,...o,className:l()("nfd-validation-input__input",r)});return(0,c.jsxs)("div",{className:l()("nfd-validation-input",(null==n?void 0:n.message)&&u.variant[null==n?void 0:n.variant]),children:[t?(0,c.jsxs)("span",{className:"nfd-group nfd-relative",children:[!(null!=n&&n.message&&Object.keys(u.variant).includes(null==n?void 0:n.variant))&&(0,c.jsx)(t,{className:l()("nfd-text-input__icon","nfd-absolute nfd-w-[24px] nfd-h-[24px] nfd-right-3 nfd-top-1/2 nfd--translate-y-1/2 nfd-pointer-events-none nfd-duration-200")}),a]}):a,(null==n?void 0:n.message)&&(0,c.jsx)(s.A,{variant:null==n?void 0:n.variant,className:"nfd-validation-input__icon"})]})}));d.propTypes={as:i().elementType.isRequired,icon:i().elementType,validation:i().shape({variant:i().string,message:i().node}),className:i().string},d.defaultProps={icon:null,validation:{},className:""},d.displayName="ValidationInput";const f=d},2949:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(6087),o=n(2609),i=n(652),a=n(236),l=n(524),s=n(1124),c=n(2914),u=n(790),d=n(6087).useContext,__=n(7723).__;const f=()=>{const{store:e,setStore:t}=d(l.Ay),[n,f]=(0,r.useState)(e.features.staging),[p,m]=(0,r.useState)(!e.toggleableFeatures.staging),[h,g]=(0,r.useState)(!1),v=(0,c.h)(),y=()=>{const e=__("Staging Enabled","wp-plugin-bluehost"),t=__("Staging Disabled","wp-plugin-bluehost");return n?e:t},w=()=>{const e=__("You need to reload the page to manage Staging.","wp-plugin-bluehost"),t=__("Staging will no longer display.","wp-plugin-bluehost");return n?e:t};return(0,o.A)((()=>{var r,o;t({...e,staging:n}),r=y,o=w,v.push("feature-toggle-notice",{title:r(),description:o(),variant:"success",autoDismiss:5e3}),(0,s.AG)(".wppbh-app-navitem-Staging",n)}),[n]),(0,u.jsxs)("div",{className:"nfd-flex nfd-flex-col nfd-gap-6",children:[(0,u.jsx)(i.A,{id:"staging-toggle",label:"Staging",description:__("The staging feature provides a way to copy a site to test new updates, features or content.","wp-plugin-bluehost"),disabled:p,checked:n,onChange:()=>{(0,s.JU)("staging",(e=>{e.success?f(!n):(m(!0),g(!0),v.push("feature-toggle-notice",{title:__("Sorry, that is not allowed.","wp-plugin-bluehost"),description:__("This feature cannot currently be modified.","wp-plugin-bluehost"),variant:"error"}))}))}}),h&&(0,u.jsx)(a.Ay,{variant:"error",children:__("Oops! Something went wrong. Please try again.","wp-plugin-bluehost")})]})}},2969:(e,t,n)=>{"use strict";n.d(t,{S:()=>o});var r=n(1609);function o(){var e=(0,r.useRef)(!0);return e.current?(e.current=!1,!0):e.current}},2980:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var r=n(8490),o=n.n(r),i=n(6087),a=n(9632),l=n(790),s=e([a]);a=(s.then?(await s)():s)[0];const c="wppbh-app";console.log("%cWelcome to Bluehost!\n%c\n██████████████████████████████████████\n███ ██ ██ ███\n███ ██ ██ ███\n███ ██ ██ ███\n███ ██ ██ ███\n██████████████████████████████████████\n███ ██ ██ ███\n███ ██ ██ ███\n███ ██ ██ ███\n███ ██ ██ ███\n██████████████████████████████████████\n███ ██ ██ ███\n███ ██ ██ ███\n███ ██ ██ ███\n███ ██ ██ ███\n██████████████████████████████████████\n","color: #196bde; font-size: 2em; font-weight: 900;","background: #fff; color: #196bde; font-weight: 400;");const u=()=>{const e=document.getElementById(c);null!==e&&(0,i.createRoot)(e).render((0,l.jsx)(a.A,{}))};o()(u),t()}catch(e){t(e)}}))},3024:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609),o=n(4314);const i=()=>(0,r.useContext)(o.A)},3102:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(6087),o=n(2609),i=n(652),a=n(236),l=n(524),s=n(1124),c=n(2914),u=n(790),d=n(6087).useContext,__=n(7723).__;const f=({forceShow:e=!1})=>{const{store:t,setStore:n}=d(l.Ay),[f,p]=(0,r.useState)(t.features.helpCenter),[m,h]=(0,r.useState)(!t.toggleableFeatures.helpCenter),[g,v]=(0,r.useState)(!1),y=(0,c.h)(),w=()=>{const e=__("Help Center Enabled","wp-plugin-bluehost"),t=__("Help Center Disabled","wp-plugin-bluehost");return f?e:t},b=()=>{const e=__("Reload the page to access the Help Center.","wp-plugin-bluehost"),t=__("The Help Center will no longer display.","wp-plugin-bluehost");return f?e:t};return(0,o.A)((()=>{var e,r;n({...t,helpCenter:f}),e=w,r=b,y.push("feature-toggle-notice",{title:e(),description:r(),variant:"success",autoDismiss:5e3}),(0,s.AG)("#wp-admin-bar-help-center",f,"nfd-disabled",!0)}),[f]),(0,u.jsxs)("div",{className:"nfd-flex nfd-flex-col nfd-gap-6",children:[(!m||e)&&(0,u.jsx)(i.A,{id:"help-center-toggle",label:"Help Center",description:__("The Help Center provides guided, step-by-step assistance as you build your site.","wp-plugin-bluehost"),disabled:m,checked:f,onChange:()=>{(0,s.JU)("helpCenter",(e=>{e.success?p(!f):(h(!0),v(!0),y.push("feature-toggle-notice",{title:__("Sorry, that is not allowed.","wp-plugin-bluehost"),description:__("This feature cannot currently be modified.","wp-plugin-bluehost"),variant:"error"}))}))}}),g&&(0,u.jsx)(a.Ay,{variant:"error",children:__("Oops! Something went wrong. Please try again.","wp-plugin-bluehost")})]})}},3114:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(4619),o=n(3928),i=n(7723),a=n(247),l=n(1124),s=n(790),c=n(6942);const u=()=>(0,s.jsxs)(r.A,{as:"a",className:c("nfd-quick-links-card nfd-quick-links-refer-friend-card","nfd-flex nfd-flex-col nfd-gap-4 nfd-border nfd-border-[#D5D5D5]","nfd-no-underline nfd-shadow-none nfd-transition-all hover:nfd-shadow-md"),"data-nfd-click":"newfold-quick-links-refer-friend","data-test-id":"quick-links-refer-friend-link",href:(0,l.g_)("https://www.bluehost.com/affiliates"),target:"_blank",children:[(0,s.jsxs)("div",{className:"nfd-quick-links-card__head nfd-flex nfd-items-center nfd-gap-2",children:[(0,s.jsx)("span",{className:"nfd-quick-links-card__icon nfd-p-[4px] nfd-bg-[#ddecff] nfd-rounded-[5px]",children:(0,s.jsx)(a.A,{width:16})}),(0,s.jsx)(o.Ay,{as:"h2",className:"nf-text-base nfd-font-semibold",children:(0,i.__)("Refer a Friend","wp-plugin-bluehost")})]}),(0,s.jsx)("p",{className:"nfd-mt-0 nfd-text-body",children:(0,i.__)("Unlock exclusive benefits with our referral program.","wp-plugin-bluehost")}),(0,s.jsx)("p",{className:"nfd-mt-0 nfd-font-semibold nfd-no-underline nfd-text-[#196BDE]",children:(0,i.__)("Start Now","wp-plugin-bluehost")})]})},3149:(e,t,n)=>{"use strict";n.d(t,{El:()=>s,O_:()=>l,Uw:()=>a});var r=n(1609);let o=(0,r.createContext)(null);o.displayName="OpenClosedContext";var i,a=((i=a||{})[i.Open=1]="Open",i[i.Closed=2]="Closed",i[i.Closing=4]="Closing",i[i.Opening=8]="Opening",i);function l(){return(0,r.useContext)(o)}function s({value:e,children:t}){return r.createElement(o.Provider,{value:e},t)}},3243:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(4619),o=n(3928),i=n(7723),a=n(1124),l=n(7959),s=n(790),c=n(6942);const u=()=>(0,s.jsxs)(r.A,{as:"a",className:c("nfd-quick-links-card nfd-quick-links-pro-design-card","nfd-flex nfd-flex-col nfd-gap-4 nfd-border nfd-border-[#D5D5D5]","nfd-no-underline nfd-shadow-none nfd-transition-all hover:nfd-shadow-md"),"data-action":"load-nfd-ctb","data-ctb-id":"838cc912-adb3-4d75-9450-262bf3ee3576","data-nfd-click":"newfold-quick-links-pro-design","data-test-id":"quick-links-pro-design-link",href:(0,a.g_)("https://www.bluehost.com/my-account/market-place"),target:"_blank",children:[(0,s.jsxs)("div",{className:"nfd-quick-links-card__head nfd-flex nfd-items-center nfd-gap-2",children:[(0,s.jsx)("span",{className:"nfd-quick-links-card__icon nfd-p-[4px] nfd-bg-[#ddecff] nfd-rounded-[5px]",children:(0,s.jsx)(l.A,{width:16})}),(0,s.jsx)(o.Ay,{as:"h2",className:"nf-text-base nfd-font-semibold",children:(0,i.__)("Pro Design Live","wp-plugin-bluehost")})]}),(0,s.jsx)("p",{className:"nfd-mt-0 nfd-text-body",children:(0,i.__)("We will help you build and grow your website and improve your skills in WordPress.","wp-plugin-bluehost")}),(0,s.jsx)("p",{className:"nfd-mt-0 nfd-font-semibold nfd-no-underline nfd-text-[#196BDE]",children:(0,i.__)("Get Info","wp-plugin-bluehost")})]})},3321:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});var r=n(1609),o=n(6339);function i(e,t=!1){let[n,i]=(0,r.useReducer)((()=>({})),{}),a=(0,r.useMemo)((()=>function(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}(e)),[e,n]);return(0,o.s)((()=>{if(!e)return;let t=new ResizeObserver(i);return t.observe(e),()=>{t.disconnect()}}),[e]),t?{width:`${a.width}px`,height:`${a.height}px`}:a}},3379:(e,t,n)=>{"use strict";n.d(t,{y:()=>a});var r=n(8418),o=n(5015),i=n(7555);function a(e,t,n=i.bN){return(0,r.useSyncExternalStoreWithSelector)((0,o._)((t=>e.subscribe(l,t))),(0,o._)((()=>e.state)),(0,o._)((()=>e.state)),(0,o._)(t),n)}function l(e){return e}},3399:(e,t,n)=>{"use strict";n.d(t,{Nf:()=>o});let r=!1;function o(){return r}},3406:(e,t,n)=>{"use strict";n.d(t,{A:()=>y,V:()=>g});var r=n(5857),o=n(1609),i=n(5556),a=n.n(i),l=n(6942),s=n.n(l),c=n(2218),u=n(9188),d=n(4646),f=n(2934),p=n(790);const m={sm:480,md:768,lg:1024,xl:1280},h=(0,o.createContext)({}),g=()=>(0,o.useContext)(h)||null,v=({children:e,className:t="",position:n="static",collapseAt:i="md",forceMode:a,...l})=>{t=s()(t,{[`nfd-${n}`]:["absolute","fixed","relative","static","sticky"].includes(n)},"nfd-flex nfd-items-center nfd-w-full nfd-h-[64px] nfd-bg-white nfd-top-0 nfd-left-0 nfd-z-[9999]");const c=(0,o.useRef)(null),[u,d]=(0,o.useState)(!1),f=function(e,t){const[n,r]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{var n,o;if("container"===t&&e.current&&"ResizeObserver"in window){const t=new ResizeObserver((([e])=>{const t=e.contentRect.width;r(t<768)}));return t.observe(e.current),()=>t.disconnect()}const i="number"==typeof t?t:null!==(n=m[t])&&void 0!==n?n:m.md,a=window.matchMedia(`(max-width:${i-.02}px)`),l=()=>{r(a.matches)};return l(),null===(o=a.addEventListener)||void 0===o||o.call(a,"change",l),()=>{var e;return null===(e=a.removeEventListener)||void 0===e?void 0:e.call(a,"change",l)}}),[t,e]),n}(c,i),g=null!=a?a:f?"collapsed":"inline";(0,o.useEffect)((()=>{const e=e=>"Escape"===e.key&&d(!1);return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[]),(0,o.useEffect)((()=>{if("collapsed"===g&&u){const e=document.documentElement.style.overflow;return document.documentElement.style.overflow="hidden",()=>{document.documentElement.style.overflow=e}}"inline"===g&&u&&d(!1)}),[u,g]);const v=(0,o.useMemo)((()=>({mode:g,open:u,setOpen:d})),[g,u]);return(0,p.jsx)("nav",{ref:c,className:t,...l,children:(0,p.jsxs)(h.Provider,{value:v,children:["collapsed"===g&&(0,p.jsx)(r.A,{className:"nfd-w-[32px] nfd-px-4 nfd-box-content","aria-label":"Open menu","aria-expanded":u,onClick:()=>d((e=>!e))}),e]})})};v.propTypes={children:a().node.isRequired,className:a().string,position:a().oneOf(["absolute","fixed","relative","static","sticky"])},(v.useContext=g).displayName="AppBarNavigation.AppBar.useContext",(v.Logo=c.A).displayName="AppBarNavigation.AppBar.Logo",(v.Nav=u.A).displayName="AppBarNavigation.AppBar.Nav",(v.Item=d.A).displayName="AppBarNavigation.AppBar.Item",(v.Actions=f.A).displayName="AppBarNavigation.AppBar.Actions";const y=v},3424:(e,t,n)=>{"use strict";n.d(t,{i:()=>l});var r=n(2894),o=n(1609),i=n(4836),a=n(9672);function l(e){let{isDisabled:t,onFocus:n,onBlur:l,onFocusChange:s}=e;const c=(0,o.useCallback)((e=>{if(e.target===e.currentTarget)return l&&l(e),s&&s(!1),!0}),[l,s]),u=(0,r.yB)(c),d=(0,o.useCallback)((e=>{const t=(0,i.TW)(e.target),r=t?(0,a.bq)(t):(0,a.bq)();e.target===e.currentTarget&&r===(0,a.wt)(e.nativeEvent)&&(n&&n(e),s&&s(!0),u(e))}),[s,n,u]);return{focusProps:{onFocus:!t&&(n||s||l)?d:void 0,onBlur:t||!l&&!s?void 0:c}}}},3629:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(6087),o=n(2609),i=n(652),a=n(236),l=n(524),s=n(1124),c=n(2914),u=n(790),d=n(6087).useContext,__=n(7723).__;const f=()=>{const{store:e,setStore:t}=d(l.Ay),[n,f]=(0,r.useState)(e.features.patterns),[p,m]=(0,r.useState)(!e.toggleableFeatures.patterns),[h,g]=(0,r.useState)(!1),v=(0,c.h)(),y=()=>{const e=__("WonderBlocks Enabled","wp-plugin-bluehost"),t=__("WonderBlocks Disabled","wp-plugin-bluehost");return n?e:t},w=()=>{const e=__("Create new content to see WonderBlocks in action.","wp-plugin-bluehost"),t=__("WonderBlocks will no longer display.","wp-plugin-bluehost");return n?e:t};return(0,o.A)((()=>{var r,o;t({...e,wonderBlocks:n}),r=y,o=w,v.push("feature-toggle-notice",{title:r(),description:o(),variant:"success",autoDismiss:5e3})}),[n]),(0,u.jsxs)("div",{className:"nfd-flex nfd-flex-col nfd-gap-6",children:[(0,u.jsx)(i.A,{id:"wonderblocks-toggle",label:"WonderBlocks",description:__("WonderBlocks provides a library of customizable block patterns and page templates.","wp-plugin-bluehost"),disabled:p,checked:n,onChange:()=>{(0,s.JU)("patterns",(e=>{e.success?f(!n):(m(!0),g(!0),v.push("feature-toggle-notice",{title:__("Sorry, that is not allowed.","wp-plugin-bluehost"),description:__("This feature cannot currently be modified.","wp-plugin-bluehost"),variant:"error"}))}))}}),h&&(0,u.jsx)(a.Ay,{variant:"error",children:__("Oops! Something went wrong. Please try again.","wp-plugin-bluehost")})]})}},3638:(e,t,n)=>{"use strict";n.d(t,{O:()=>o});var r=n(1609);function o(e,t){let[n,o]=(0,r.useState)(t);return!e&&n!==t&&o(t),e?n:t}},3660:(e,t,n)=>{"use strict";function r(e={},t=null,n=[]){for(let[r,a]of Object.entries(e))i(n,o(t,r),a);return n}function o(e,t){return e?e+"["+t+"]":t}function i(e,t,n){if(Array.isArray(n))for(let[r,a]of n.entries())i(e,o(t,r.toString()),a);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):r(n,t,e)}function a(e){var t,n;let r=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(r){for(let t of r.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type))return void t.click();null==(n=r.requestSubmit)||n.call(r)}}n.d(t,{h:()=>r,q:()=>a})},3674:(e,t,n)=>{"use strict";n.d(t,{O:()=>l});var r=n(1609),o=n(2599),i=n(7280),a=n(4424);function l(e,t,n){let l=(0,a.Y)((e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()}));(0,r.useEffect)((()=>{if(!e)return;let n=null===t?null:i.sb(t)?t:t.current;if(!n)return;let r=(0,o.e)();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver((()=>l.current(n)));e.observe(n),r.add((()=>e.disconnect()))}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver((()=>l.current(n)));e.observe(n),r.add((()=>e.disconnect()))}return()=>r.dispose()}),[t,l,e])}},3832:e=>{"use strict";e.exports=window.wp.url},3862:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(6777).Y},3928:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>p});var r=n(5556),o=n.n(r),i=n(6942),a=n.n(i),l=n(1609),s=n(790);const c={size:{1:"nfd-title--1",2:"nfd-title--2",3:"nfd-title--3",4:"nfd-title--4",5:"nfd-title--5"}},u=(0,l.forwardRef)((({children:e,as:t="h1",size:n,className:r,...o},i)=>(0,s.jsx)(t,{ref:i,className:a()("nfd-title",c.size[n||("string"==typeof t&&t.startsWith("h")&&2===t.length?t[1]:"1")],r),...o,children:e})));u.displayName="Title";const d={children:o().node.isRequired,as:o().elementType,size:o().oneOf(Object.keys(c.size)),className:o().string};u.propTypes=d,u.defaultProps={as:"h1",size:void 0,className:""};const f=e=>(0,s.jsx)(u,{...e});f.propTypes=d,f.defaultProps=u.defaultProps,f.displayName="Title";const p=u},3983:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609);function o({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 21v-7.5a.75.75 0 0 1 .75-.75h3a.75.75 0 0 1 .75.75V21m-4.5 0H2.36m11.14 0H18m0 0h3.64m-1.39 0V9.349M3.75 21V9.349m0 0a3.001 3.001 0 0 0 3.75-.615A2.993 2.993 0 0 0 9.75 9.75c.896 0 1.7-.393 2.25-1.016a2.993 2.993 0 0 0 2.25 1.016c.896 0 1.7-.393 2.25-1.015a3.001 3.001 0 0 0 3.75.614m-16.5 0a3.004 3.004 0 0 1-.621-4.72l1.189-1.19A1.5 1.5 0 0 1 5.378 3h13.243a1.5 1.5 0 0 1 1.06.44l1.19 1.189a3 3 0 0 1-.621 4.72M6.75 18h3.75a.75.75 0 0 0 .75-.75V13.5a.75.75 0 0 0-.75-.75H6.75a.75.75 0 0 0-.75.75v3.75c0 .414.336.75.75.75Z"}))}const i=r.forwardRef(o)},4065:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(2692),o=n(6526),i=n(790);const a=({items:e=6,filter:t=!0,containerClassNames:n="grid col2"})=>(0,i.jsxs)("div",{className:"newfold-marketplace-isloading",children:[t&&(0,i.jsx)(r.A,{}),(0,i.jsx)("div",{className:n,children:(e=>{const t=e;let n=[];for(let e=0;e<t;e++)n.push(e);return n.map((e=>(0,i.jsx)(o.A,{},e)))})(e)})]})},4122:(e,t,n)=>{"use strict";n.d(t,{BD:()=>u,Bm:()=>h,MZ:()=>m,p9:()=>w,wl:()=>y});var r=n(5897),o=n(2211);let i=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(","),a=["[data-autofocus]"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var l,s,c,u=((s=u||{})[s.First=1]="First",s[s.Previous=2]="Previous",s[s.Next=4]="Next",s[s.Last=8]="Last",s[s.WrapAround=16]="WrapAround",s[s.NoScroll=32]="NoScroll",s[s.AutoFocus=64]="AutoFocus",s),d=((l=d||{})[l.Error=0]="Error",l[l.Overflow=1]="Overflow",l[l.Success=2]="Success",l[l.Underflow=3]="Underflow",l),f=((c=f||{})[c.Previous=-1]="Previous",c[c.Next=1]="Next",c);function p(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(i)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}var m=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(m||{});function h(e,t=0){var n;return e!==(null==(n=(0,o.T)(e))?void 0:n.body)&&(0,r.Y)(t,{0:()=>e.matches(i),1(){let t=e;for(;null!==t;){if(t.matches(i))return!0;t=t.parentElement}return!1}})}var g=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(g||{});"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));let v=["textarea","input"].join(",");function y(e,t=e=>e){return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function w(e,t){return function(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,l=Array.isArray(e)?n?y(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(a)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e):p(e);o.length>0&&l.length>1&&(l=l.filter((e=>!o.some((t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))))),r=null!=r?r:i.activeElement;let s,c=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,l.indexOf(r))-1;if(4&t)return Math.max(0,l.indexOf(r))+1;if(8&t)return l.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=32&t?{preventScroll:!0}:{},f=0,m=l.length;do{if(f>=m||f+m<=0)return 0;let e=u+f;if(16&t)e=(e+m)%m;else{if(e<0)return 3;if(e>=m)return 1}s=l[e],null==s||s.focus(d),f+=c}while(s!==i.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,v))&&n}(s)&&s.select(),2}(p(),t,{relativeTo:e})}},4126:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});class r extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}}},4156:(e,t,n)=>{"use strict";n.d(t,{g:()=>i});var r=n(1609),o=n(2211);function i(...e){return(0,r.useMemo)((()=>(0,o.T)(...e)),[...e])}},4177:(e,t,n)=>{"use strict";n.d(t,{tH:()=>a});var r=n(1609);const o=(0,r.createContext)(null),i={didCatch:!1,error:null};class a extends r.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=i}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(null!==e){for(var t,n,r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];null===(t=(n=this.props).onReset)||void 0===t||t.call(n,{args:o,reason:"imperative-api"}),this.setState(i)}}componentDidCatch(e,t){var n,r;null===(n=(r=this.props).onError)||void 0===n||n.call(r,e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:r}=this.props;var o,a;n&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some(((e,n)=>!Object.is(e,t[n])))}(e.resetKeys,r)&&(null===(o=(a=this.props).onReset)||void 0===o||o.call(a,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(i))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:i}=this.props,{didCatch:a,error:l}=this.state;let s=e;if(a){const e={error:l,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)s=t(e);else if(n)s=(0,r.createElement)(n,e);else{if(void 0===i)throw l;s=i}}return(0,r.createElement)(o.Provider,{value:{didCatch:a,error:l,resetErrorBoundary:this.resetErrorBoundary}},s)}}},4180:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609);function o({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"}))}const i=r.forwardRef(o)},4218:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6087),o=n(790);const i=({id:e,content:t,methods:n,constants:i,...a})=>{const l=(0,r.useRef)(null),s=t=>{if(t.preventDefault(),t.keycode&&ENTER!==t.keycode)return;const r=document.querySelector('[data-id="'+e+'"]');r&&(r.classList.add("is-dismissed"),n.apiFetch({url:`${window.NewfoldRuntime.restUrl}newfold-notifications/v1/notifications/${e}`,method:"DELETE"}).then((e=>{n.removeNotification(e.id)})))};n.useEffect((()=>{(()=>{const e=l.current;if(e){let t=e.innerHTML;t=c(t),t=u(t),e.innerHTML=t}})()}),[t]);const c=e=>{const t=/<style[\s\S]*?>([\s\S]*?)<\/style>/gi;let n;for(;null!==(n=t.exec(e));){const e=n[1],t=document.createElement("style");t.textContent=e,document.head.appendChild(t)}return e.replace(t,"")},u=e=>{const t=/<script[\s\S]*?>([\s\S]*?)<\/script>/gi;let n;for(;null!==(n=t.exec(e));){const e=n[1],t=document.createElement("script");t.textContent=e,document.body.appendChild(t)}return e.replace(t,"")},d=e=>{e.data=e.data||{},e.data.page=window.location.href,n.apiFetch({path:`${window.NewfoldRuntime.restUrl}newfold-data/v1/events/`,method:"POST",data:e})},f=t=>{t.keycode&&ENTER!==t.keycode||d({action:"newfold-notification-click",data:{element:"button",label:t.target.innerText,notificationId:e}})},p=t=>{t.keycode&&ENTER!==t.keycode||d({action:"newfold-notification-click",data:{element:"a",href:t.target.getAttribute("href"),label:t.target.innerText,notificationId:e}})};return n.useEffect((()=>{const t=document.querySelector('[data-id="'+e+'"]'),n=t.querySelector('[data-action="close"]'),r=Array.from(t.querySelectorAll("button")),o=Array.from(t.querySelectorAll("a"));return r.length&&r.forEach((e=>{"close"!==e.getAttribute("data-action")&&(e.addEventListener("click",f),e.addEventListener("onkeydown",f))})),o.length&&o.forEach((e=>{"close"!==e.getAttribute("data-action")&&(e.addEventListener("click",p),e.addEventListener("onkeydown",p))})),n&&(n.addEventListener("click",s),n.addEventListener("onkeydown",s)),()=>{r.length&&r.forEach((e=>{"close"!==e.getAttribute("data-action")&&(e.removeEventListener("click",f),e.removeEventListener("onkeydown",f))})),o.length&&o.forEach((e=>{"close"!==e.getAttribute("data-action")&&(e.removeEventListener("click",p),e.removeEventListener("onkeydown",p))})),n&&(n.removeEventListener("click",s),n.removeEventListener("onkeydown",s))}}),[e]),(0,o.jsx)("div",{ref:l,id:`notification-${e}`,"data-id":e,className:"newfold-notification",dangerouslySetInnerHTML:{__html:t}})}},4234:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(5556),o=n(6942),i=n.n(o),a=n(1609),l=n(790);const s=(0,a.forwardRef)((({as:e="div",children:t,className:n="",...r},o)=>(0,l.jsx)(e,{...r,className:i()("nfd-page",n),ref:o,children:t})));s.propTypes={as:r.PropTypes.element,children:r.PropTypes.node.isRequired,className:r.PropTypes.string},s.defaultProps={as:"div",className:""},s.displayName="Page";const c=s},4257:(e,t,n)=>{"use strict";n.d(t,{M:()=>d});var r=n(6948),o=n(4836),i=n(9672),a=n(1609);let l=!1,s=0;function c(e){"touch"===e.pointerType&&(l=!0,setTimeout((()=>{l=!1}),50))}function u(){if("undefined"!=typeof document)return 0===s&&"undefined"!=typeof PointerEvent&&document.addEventListener("pointerup",c),s++,()=>{s--,s>0||"undefined"!=typeof PointerEvent&&document.removeEventListener("pointerup",c)}}function d(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:s,isDisabled:c}=e,[d,f]=(0,a.useState)(!1),p=(0,a.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,a.useEffect)(u,[]);let{addGlobalListener:m,removeAllGlobalListeners:h}=(0,r.A)(),{hoverProps:g,triggerHoverEnd:v}=(0,a.useMemo)((()=>{let e=(e,t)=>{let r=p.target;p.pointerType="",p.target=null,"touch"!==t&&p.isHovered&&r&&(p.isHovered=!1,h(),s&&s({type:"hoverend",target:r,pointerType:t}),n&&n(!1),f(!1))},r={};return"undefined"!=typeof PointerEvent&&(r.onPointerEnter=r=>{l&&"mouse"===r.pointerType||((r,a)=>{if(p.pointerType=a,c||"touch"===a||p.isHovered||!r.currentTarget.contains(r.target))return;p.isHovered=!0;let l=r.currentTarget;p.target=l,m((0,o.TW)(r.target),"pointerover",(t=>{p.isHovered&&p.target&&!(0,i.sD)(p.target,t.target)&&e(0,t.pointerType)}),{capture:!0}),t&&t({type:"hoverstart",target:l,pointerType:a}),n&&n(!0),f(!0)})(r,r.pointerType)},r.onPointerLeave=t=>{!c&&t.currentTarget.contains(t.target)&&e(0,t.pointerType)}),{hoverProps:r,triggerHoverEnd:e}}),[t,n,s,c,p,m,h]);return(0,a.useEffect)((()=>{c&&v({currentTarget:p.target},p.pointerType)}),[c]),{hoverProps:g,isHovered:d}}},4311:(e,t,n)=>{"use strict";n.d(t,{n:()=>s});var r=n(3928),o=n(6638),i=n(2887),a=n(4065),l=n(790),__=n(7723).__;const s=({constants:e,methods:t})=>{const[n,s]=t.useState(!0),[c,u]=t.useState(!1),[d,f]=t.useState([]),[p,m]=t.useState([]),[h,g]=t.useState([]),[v,y]=t.useState(0),w=t.useLocation();t.useEffect((()=>{t.apiFetch({url:t.NewfoldRuntime.createApiUrl("/newfold-marketplace/v1/marketplace")}).then((e=>{if(e.hasOwnProperty("categories")&&e.hasOwnProperty("products")){const t=e.products.data;m(t),f([{title:__("All","wp-module-marketplace"),name:"all",products_count:t.length},...x(e.categories.data)])}else u(!0)}))}),[]),t.useEffect((()=>{n||(p.length<1?u(!0):u(!1))}),[p,h]),t.useEffect((()=>{let e=0;if(d.length>1){if(w.pathname.includes("marketplace/")){const t=w.pathname.substring(w.pathname.lastIndexOf("/")+1);t&&0!=d.filter((e=>e.name===t)).length&&d.forEach(((n,r)=>{n.name===t&&(e=r)}))}y(e),b(e),M()}}),[d,w.pathname]);const b=e=>{const t=d[e].name,n="all"===t?p:p.filter((e=>e.categories.some((e=>e.toLowerCase()===t.toLowerCase()))));g(n),s(!1)},x=t=>{if(!t.length)return[];const n=[];return t.forEach((t=>{t.currentCount=e.perPage,t.className="newfold-marketplace-category-"+t.name,t.products_count>0&&n.push(t)})),n},M=()=>{d&&d.forEach((e=>{if(e.styles&&!document.querySelector('[data-styleid="'+e.className+'"]')){const t=document.createElement("style");t.textContent=e.styles,t.dataset.styleid=e.className,document.head.appendChild(t)}}))};return(0,l.jsxs)("div",{className:"nfd-flex nfd-relative nfd-gap-6 nfd-max-w-full nfd-my-0 nfd-flex-col max-[781px]:nfd-flex-col",children:[!n&&(0,l.jsx)(o.A,{categories:d,activeCategoryIndex:v}),(0,l.jsxs)("div",{className:"newfold-marketplace-wrapper",children:[n&&(0,l.jsx)(a.A,{}),c&&(0,l.jsx)(r.Ay,{as:"h3",size:"3",children:e.text.error}),!n&&!c&&(0,l.jsx)(i.A,{marketplaceItems:h,category:d[v],currentCount:d[v].currentCount,methods:t,constants:e})]})]})}},4314:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,i:()=>l});var r=n(1609),o=n(8468),i=n(790);const a=(0,r.createContext)({activePath:"",setActivePath:o.noop,isMobileMenuOpen:!1,setMobileMenuOpen:o.noop}),l=({activePath:e="",children:t})=>{const[n,o]=(0,r.useState)(e),[l,s]=(0,r.useState)(!1);return(0,i.jsx)(a.Provider,{value:{activePath:n,setActivePath:o,isMobileMenuOpen:l,setMobileMenuOpen:s},children:t})},s=a},4335:(e,t,n)=>{"use strict";var r;n.d(t,{g:()=>a});var o=n(1609),i=n(9851);function a(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in(r||(r=n.t(o,2)))&&(r||(r=n.t(o,2))).useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,a]=o.useState(i._.isHandoffComplete);return t&&!1===i._.isHandoffComplete&&a(!1),o.useEffect((()=>{!0!==t&&a(!0)}),[t]),o.useEffect((()=>i._.handoff()),[]),!e&&t}},4424:(e,t,n)=>{"use strict";n.d(t,{Y:()=>i});var r=n(1609),o=n(6339);function i(e){let t=(0,r.useRef)(e);return(0,o.s)((()=>{t.current=e}),[e]),t}},4504:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6087);const o=e=>{const[t,n]=(0,r.useState)(!1),o=new URLSearchParams(window.location.search);(0,r.useEffect)((()=>{o.has("nfd-target")&&o.get("nfd-target")===e&&(n(!0),setTimeout((()=>{n(!1),i()}),9500))}),[o]);const i=()=>{o.delete("nfd-target");const t=window.location.href.replace(`&nfd-target=${e}`,"");window.history.replaceState(null,null,t)};return t}},4586:(e,t,n)=>{"use strict";n.d(t,{h:()=>l});var r,o,i=n(1609);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}var l=function(e){return i.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 75 60"},e),r||(r=i.createElement("g",{clipPath:"url(#a)"},i.createElement("path",{fill:"#346BD5",d:"M74.8 5.6V0H45c-2 0-3.7 1.7-3.7 3.8v39.9L1 54.5a1 1 0 0 0-.6 1.2l1 3.6c0 .5.6.8 1 .7l46.4-12.5c.3 7 6 12.5 13 12.5a13 13 0 0 0 13-13.1A13 13 0 0 0 50 41.3h-3V5.5h27.8Zm-13 33.8a7.5 7.5 0 0 1 0 15 7.5 7.5 0 0 1-7.4-7.5c0-4.2 3.3-7.5 7.4-7.5M6.2 44c.2 1 1.3 1.6 2.3 1.3l25.2-6.8c1-.2 1.5-1.3 1.3-2.3l-5.8-21.7c-.3-1-1.3-1.6-2.3-1.3l-9 2.4-3.2.9-2 .5-2 .6-9 2.4c-1 .3-1.6 1.3-1.3 2.3z"}),i.createElement("path",{fill:"#CCC",d:"M74.8 5.6V0H45c-2 0-3.7 1.7-3.7 3.8v39.9L1 54.5a1 1 0 0 0-.6 1.2l1 3.6c0 .5.6.8 1 .7l46.4-12.5c.3 7 6 12.5 13 12.5a13 13 0 0 0 13-13.1A13 13 0 0 0 50 41.3h-3V5.5h27.8Zm-13 33.8a7.5 7.5 0 0 1 0 15 7.5 7.5 0 0 1-7.4-7.5c0-4.2 3.3-7.5 7.4-7.5"}))),o||(o=i.createElement("defs",null,i.createElement("clipPath",{id:"a"},i.createElement("path",{fill:"#fff",d:"M.3 0h74.5v60H.3z"})))))}},4603:(e,t,n)=>{"use strict";function r(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}n.d(t,{$t:()=>r})},4610:(e,t,n)=>{"use strict";n.d(t,{a:()=>i});var r=n(1609),o=n(6339);function i(){let e=(0,r.useRef)(!1);return(0,o.s)((()=>(e.current=!0,()=>{e.current=!1})),[]),e}},4612:(e,t,n)=>{"use strict";n.d(t,{h:()=>f});var r,o,i,a,l,s,c,u=n(1609);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(null,arguments)}var f=function(e){return u.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r||(r=u.createElement("path",{stroke:"#000",strokeWidth:.7,d:"M15.348 9.343v4.592h-4.946V9.343z"})),o||(o=u.createElement("path",{stroke:"#000",strokeWidth:.7,d:"M15.348 4.871v4.592h-4.946V4.871z"})),i||(i=u.createElement("path",{stroke:"#000",strokeWidth:.7,d:"M15.35.4v4.594h-4.946v-.35c0-1.136.493-2.219 1.358-3.011C12.626.84 13.792.4 15 .4zM10.474 9.343v4.592H5.528V9.343z"})),a||(a=u.createElement("path",{stroke:"#000",strokeWidth:.7,d:"M10.474 4.871v4.592H5.528V4.871z"})),l||(l=u.createElement("path",{stroke:"#000",strokeWidth:.7,d:"M5.596 9.268v4.592H.65V9.268z"})),s||(s=u.createElement("path",{stroke:"#000",strokeWidth:.7,d:"M5.596 4.871v4.592H.65V4.871z"})),c||(c=u.createElement("path",{stroke:"#000",strokeWidth:.7,d:"M1 .402c1.21 0 2.375.44 3.238 1.232.865.793 1.358 1.876 1.358 3.011v.35H.65V.403z"})))}},4619:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(5556),o=n(6942),i=n.n(o),a=n(1609),l=n(790);const s=({as:e="div",children:t,className:n="",...r})=>(0,l.jsx)(e,{...r,className:i()("nfd-card__header",n),children:t});s.propTypes={as:r.PropTypes.element,children:r.PropTypes.node.isRequired,className:r.PropTypes.string};const c=({as:e="div",children:t,className:n="",...r})=>(0,l.jsx)(e,{...r,className:i()("nfd-card__content",n),children:t});c.propTypes={as:r.PropTypes.element,children:r.PropTypes.node.isRequired,className:r.PropTypes.string};const u=({as:e="div",children:t,className:n="",...r})=>(0,l.jsx)(e,{...r,className:i()("nfd-card__footer",n),children:t});u.propTypes={as:r.PropTypes.element,children:r.PropTypes.node.isRequired,className:r.PropTypes.string};const d=(0,a.forwardRef)((({as:e="div",children:t,className:n,...r},o)=>(0,l.jsx)(e,{...r,className:i()("nfd-card",n),ref:o,children:t})));d.displayName="Card";const f={as:r.PropTypes.elementType,children:r.PropTypes.node.isRequired,className:r.PropTypes.string};d.propTypes=f,d.defaultProps={as:"div",className:""},d.Header=s,d.Header.displayName="Card.Header",d.Content=c,d.Content.displayName="Card.Content",d.Footer=u,d.Footer.displayName="Card.Footer";const p=e=>(0,l.jsx)(d,{...e});p.propTypes=f,p.defaultProps=d.defaultProps,p.displayName="Card";const m=d},4646:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(1609),o=n(6942),i=n.n(o),a=n(5556),l=n.n(a),s=n(3024),c=n(3406),u=n(790);const d=({as:e="a",pathProp:t="href",icon:n=null,label:o,children:a,className:l,...d})=>{const{mode:f}=(0,c.V)(),{activePath:p,setMobileMenuOpen:m}=(0,s.A)(),h="collapsed"===f,g=(0,r.useCallback)((()=>m(!1)),[m]),v=()=>(0,u.jsxs)(u.Fragment,{children:[n&&(0,u.jsx)(n,{className:"nfd-flex-shrink-0 nfd--ml-1 nfd-h-6 nfd-w-6 nfd-text-slate-400 group-hover:nfd-text-slate-500"}),null!=a?a:o]});return(0,u.jsx)("li",{role:"presentation",className:i()("nfd-appbar-item nfd-group nfd-flex nfd-items-center nfd-justify-center nfd-h-full nfd-m-0 nfd-p-0",{"nfd-appbar-item--active":p===d[t]}),children:(0,u.jsx)(e,{role:"menuitem",className:i()(l,"nfd-flex nfd-items-center nfd-h-full nfd-px-3 nfd-py-2 nfd-text-sm nfd-no-underline focus:nfd-outline-none focus:nfd-ring-transparent",p===d[t]?"nfd-bg-slate-200 nfd-text-slate-900":"nfd-text-slate-600 hover:nfd-text-slate-900 hover:nfd-bg-slate-50",{"nfd-font-bold !nfd-pl-0 nfd-bg-transparent":h,"nfd-font-medium":!h}),"aria-current":p===d[t]?"page":null,onClick:g,...d,children:n?(0,u.jsx)("span",{className:"nfd-flex nfd-items-center nfd-gap-3",children:(0,u.jsx)(v,{})}):(0,u.jsx)(v,{})})})};d.propTypes={as:l().elementType,pathProp:l().string,icon:l().element,label:l().node,children:l().node};const f=d},4679:(e,t,n)=>{"use strict";n.d(t,{h:()=>a});var r,o=n(1609);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}var a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20"},e),r||(r=o.createElement("path",{fill:"currentColor",d:"M18.839 6.74V2h-4.704v4.74zm0 1.39v4.74h-4.704V8.13zM6.701 19v-4.74H2V19zm6.068-4.74V19H8.066v-4.74zm6.069 0V19h-4.704v-4.74zm-6.069-1.39V8.13H8.066v4.74zM6.702 8.13v4.74H2V8.13zM12.767 2v4.74h-4.7V2zM6.702 6.74V2H2v4.74z"})))}},4738:(e,t,n)=>{"use strict";n.d(t,{dO:()=>S});var r=n(6133),o=n(4257),i=n(1609),a=n(4867),l=n(5060),s=n(7786),c=n(6992),u=n(5015),d=n(9821),f=n(8975),p=n(5448),m=n(2498),h=n(5953),g=n(9685),v=n(7280),y=n(3660),w=n(6206),b=n(9124),x=n(2205),M=n(540);let j=(0,i.createContext)(null);j.displayName="GroupContext";let N=i.Fragment,E=(0,w.FX)((function(e,t){var n;let v=(0,i.useId)(),N=(0,h.q)(),E=(0,p._)(),{id:A=N||`headlessui-switch-${v}`,disabled:T=E||!1,checked:S,defaultChecked:I,onChange:D,name:k,value:C,form:L,autoFocus:O=!1,...R}=e,P=(0,i.useContext)(j),[z,_]=(0,i.useState)(null),F=(0,i.useRef)(null),U=(0,f.P)(F,t,null===P?null:P.setSwitch,_),B=(0,s.K)(I),[H,V]=(0,l.P)(S,D,null!=B&&B),W=(0,c.L)(),[q,Q]=(0,i.useState)(!1),Y=(0,u._)((()=>{Q(!0),null==V||V(!H),W.nextFrame((()=>{Q(!1)}))})),$=(0,u._)((e=>{if((0,g.l)(e.currentTarget))return e.preventDefault();e.preventDefault(),Y()})),G=(0,u._)((e=>{e.key===x.D.Space?(e.preventDefault(),Y()):e.key===x.D.Enter&&(0,y.q)(e.currentTarget)})),Z=(0,u._)((e=>e.preventDefault())),K=(0,M.o2)(),X=(0,b.MM)(),{isFocusVisible:J,focusProps:ee}=(0,r.o)({autoFocus:O}),{isHovered:te,hoverProps:ne}=(0,o.M)({isDisabled:T}),{pressed:re,pressProps:oe}=(0,a.Z)({disabled:T}),ie=(0,i.useMemo)((()=>({checked:H,disabled:T,hover:te,focus:J,active:re,autofocus:O,changing:q})),[H,te,J,re,T,q,O]),ae=(0,w.v6)({id:A,ref:U,role:"switch",type:(0,d.c)(e,z),tabIndex:-1===e.tabIndex?0:null!=(n=e.tabIndex)?n:0,"aria-checked":H,"aria-labelledby":K,"aria-describedby":X,disabled:T||void 0,autoFocus:O,onClick:$,onKeyUp:G,onKeyPress:Z},ee,ne,oe),le=(0,i.useCallback)((()=>{if(void 0!==B)return null==V?void 0:V(B)}),[V,B]),se=(0,w.Ci)();return i.createElement(i.Fragment,null,null!=k&&i.createElement(m.CL,{disabled:T,data:{[k]:C||"on"},overrides:{type:"checkbox",checked:H},form:L,onReset:le}),se({ourProps:ae,theirProps:R,slot:ie,defaultTag:"button",name:"Switch"}))})),A=M.JU,T=b.VY,S=Object.assign(E,{Group:function(e){var t;let[n,r]=(0,i.useState)(null),[o,a]=(0,M.b0)(),[l,s]=(0,b.rU)(),c=(0,i.useMemo)((()=>({switch:n,setSwitch:r})),[n,r]),u=e,d=(0,w.Ci)();return i.createElement(s,{name:"Switch.Description",value:l},i.createElement(a,{name:"Switch.Label",value:o,props:{htmlFor:null==(t=c.switch)?void 0:t.id,onClick(e){n&&(v.kS(e.currentTarget)&&e.preventDefault(),n.click(),n.focus({preventScroll:!0}))}}},i.createElement(j.Provider,{value:c},d({ourProps:{},theirProps:u,slot:{},defaultTag:N,name:"Switch.Group"}))))},Label:A,Description:T})},4743:(e,t,n)=>{"use strict";n.d(t,{BN:()=>p,Ej:()=>h,UU:()=>m,cY:()=>f,we:()=>d});var r=n(8491),o=n(1609),i=n(5795),a="undefined"!=typeof document?o.useLayoutEffect:function(){};function l(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!l(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||l(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function s(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function c(e,t){const n=s(e);return Math.round(t*n)/n}function u(e){const t=o.useRef(e);return a((()=>{t.current=e})),t}function d(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:d=[],platform:f,elements:{reference:p,floating:m}={},transform:h=!0,whileElementsMounted:g,open:v}=e,[y,w]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,x]=o.useState(d);l(b,d)||x(d);const[M,j]=o.useState(null),[N,E]=o.useState(null),A=o.useCallback((e=>{e!==D.current&&(D.current=e,j(e))}),[]),T=o.useCallback((e=>{e!==k.current&&(k.current=e,E(e))}),[]),S=p||M,I=m||N,D=o.useRef(null),k=o.useRef(null),C=o.useRef(y),L=null!=g,O=u(g),R=u(f),P=u(v),z=o.useCallback((()=>{if(!D.current||!k.current)return;const e={placement:t,strategy:n,middleware:b};R.current&&(e.platform=R.current),(0,r.rD)(D.current,k.current,e).then((e=>{const t={...e,isPositioned:!1!==P.current};_.current&&!l(C.current,t)&&(C.current=t,i.flushSync((()=>{w(t)})))}))}),[b,t,n,R,P]);a((()=>{!1===v&&C.current.isPositioned&&(C.current.isPositioned=!1,w((e=>({...e,isPositioned:!1}))))}),[v]);const _=o.useRef(!1);a((()=>(_.current=!0,()=>{_.current=!1})),[]),a((()=>{if(S&&(D.current=S),I&&(k.current=I),S&&I){if(O.current)return O.current(S,I,z);z()}}),[S,I,z,O,L]);const F=o.useMemo((()=>({reference:D,floating:k,setReference:A,setFloating:T})),[A,T]),U=o.useMemo((()=>({reference:S,floating:I})),[S,I]),B=o.useMemo((()=>{const e={position:n,left:0,top:0};if(!U.floating)return e;const t=c(U.floating,y.x),r=c(U.floating,y.y);return h?{...e,transform:"translate("+t+"px, "+r+"px)",...s(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,h,U.floating,y.x,y.y]);return o.useMemo((()=>({...y,update:z,refs:F,elements:U,floatingStyles:B})),[y,z,F,U,B])}const f=(e,t)=>({...(0,r.cY)(e),options:[e,t]}),p=(e,t)=>({...(0,r.BN)(e),options:[e,t]}),m=(e,t)=>({...(0,r.UU)(e),options:[e,t]}),h=(e,t)=>({...(0,r.Ej)(e),options:[e,t]})},4836:(e,t,n)=>{"use strict";n.d(t,{Ng:()=>i,TW:()=>r,mD:()=>o});const r=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},o=e=>e&&"window"in e&&e.window===e?e:r(e).defaultView||window;function i(e){return null!==(t=e)&&"object"==typeof t&&"nodeType"in t&&"number"==typeof t.nodeType&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e;var t}},4867:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(1609),o=n(2211),i=n(6992),a=n(5015);function l({disabled:e=!1}={}){let t=(0,r.useRef)(null),[n,l]=(0,r.useState)(!1),s=(0,i.L)(),c=(0,a._)((()=>{t.current=null,l(!1),s.dispose()})),u=(0,a._)((e=>{if(s.dispose(),null===t.current){t.current=e.currentTarget,l(!0);{let n=(0,o.T)(e.currentTarget);s.addEventListener(n,"pointerup",c,!1),s.addEventListener(n,"pointermove",(e=>{if(t.current){let n=function(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);l(function(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}(n,t.current.getBoundingClientRect()))}}),!1),s.addEventListener(n,"pointercancel",c,!1)}}}));return{pressed:n,pressProps:e?{}:{onPointerDown:u,onPointerUp:c,onClick:c}}}},5015:(e,t,n)=>{"use strict";n.d(t,{_:()=>i});var r=n(1609),o=n(4424);let i=function(e){let t=(0,o.Y)(e);return r.useCallback(((...e)=>t.current(...e)),[t])}},5050:(e,t,n)=>{"use strict";n.d(t,{P:()=>o});var r=n(1609);function o(e){return(0,r.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot)}},5060:(e,t,n)=>{"use strict";n.d(t,{P:()=>i});var r=n(1609),o=n(5015);function i(e,t,n){let[i,a]=(0,r.useState)(n),l=void 0!==e,s=(0,r.useRef)(l),c=(0,r.useRef)(!1),u=(0,r.useRef)(!1);return!l||s.current||c.current?!l&&s.current&&!u.current&&(u.current=!0,s.current=l,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(c.current=!0,s.current=l,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[l?e:i,(0,o._)((e=>(l||a(e),null==t?void 0:t(e))))]}},5074:(e,t,n)=>{"use strict";n.d(t,{M:()=>i});var r=n(1609),o=n(4424);function i(e,t,n,i){let a=(0,o.Y)(n);(0,r.useEffect)((()=>{if(e)return window.addEventListener(t,n,i),()=>window.removeEventListener(t,n,i);function n(e){a.current(e)}}),[e,t,i])}},5146:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(1609);const o=r.forwardRef((function(e,t){return r.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),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}))},5160:(e,t,n)=>{"use strict";var r=n(1609),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,a=r.useRef,l=r.useEffect,s=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=s((function(){function e(e){if(!l){if(l=!0,i=e,e=r(e),void 0!==u&&f.hasValue){var t=f.value;if(u(t,e))return a=t}return a=e}if(t=a,o(i,e))return t;var n=r(e);return void 0!==u&&u(t,n)?(i=e,t):(i=e,a=n)}var i,a,l=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]}),[t,n,r,u]);var p=i(e,d[0],d[1]);return l((function(){f.hasValue=!0,f.value=p}),[p]),c(p),p}},5189:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609);function o({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"}))}const i=r.forwardRef(o)},5204:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6619);const o=function(e){return"string"==typeof e&&r.A.test(e)}},5233:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(1609);const o=r.forwardRef((function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"}))}))},5245:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(5556),o=n.n(r),i=n(1609),a=n(790);const l={isRtl:!1},s=(0,i.createContext)(l),c=({children:e,context:t={},...n})=>(0,a.jsx)(s.Provider,{value:{...l,...t},children:(0,a.jsx)("div",{className:"nfd-root",...n,children:e})});c.propTypes={children:o().node.isRequired,context:o().shape({isRtl:o().bool})};const u=c},5320:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(3928),o=n(5966),i=n(790);const a=({constants:e})=>(0,i.jsx)("div",{"aria-live":"assertive",children:(0,i.jsxs)("div",{role:"alert",className:"nfd-flex nfd-flex-col nfd-items-center nfd-justify-center nfd-gap-6 nfd-p-8 nfd-min-h-[calc(100dvh-220px)]",children:[(0,i.jsx)("img",{src:o.A,role:"presentation",alt:"Dog walking with a leash",width:"300",height:"278.5"}),(0,i.jsxs)("div",{className:"nfd-text-center",children:[(0,i.jsx)(r.Ay,{as:"h2",size:"1",children:e.text.productPage.error.title}),(0,i.jsx)("p",{className:"nfd-mt-2 nfd-text-base",children:e.text.productPage.error.description})]})]})})},5361:(e,t,n)=>{"use strict";n.d(t,{BN:()=>u,Ej:()=>d,UU:()=>l,__:()=>a,cY:()=>c,rD:()=>i});var r=n(7193);function o(e,t,n){let{reference:o,floating:i}=e;const a=(0,r.TV)(t),l=(0,r.Dz)(t),s=(0,r.sq)(l),c=(0,r.C0)(t),u="y"===a,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[s]/2-i[s]/2;let m;switch(c){case"top":m={x:d,y:o.y-i.height};break;case"bottom":m={x:d,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:f};break;case"left":m={x:o.x-i.width,y:f};break;default:m={x:o.x,y:o.y}}switch((0,r.Sg)(t)){case"start":m[l]-=p*(n&&u?-1:1);break;case"end":m[l]+=p*(n&&u?-1:1)}return m}const i=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:l}=n,s=a.filter(Boolean),c=await(null==l.isRTL?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:f}=o(u,r,c),p=r,m={},h=0;for(let n=0;n<s.length;n++){const{name:a,fn:g}=s[n],{x:v,y,data:w,reset:b}=await g({x:d,y:f,initialPlacement:r,placement:p,strategy:i,middlewareData:m,rects:u,platform:l,elements:{reference:e,floating:t}});d=null!=v?v:d,f=null!=y?y:f,m={...m,[a]:{...m[a],...w}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(u=!0===b.rects?await l.getElementRects({reference:e,floating:t,strategy:i}):b.rects),({x:d,y:f}=o(u,p,c))),n=-1)}return{x:d,y:f,placement:p,strategy:i,middlewareData:m}};async function a(e,t){var n;void 0===t&&(t={});const{x:o,y:i,platform:a,rects:l,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=(0,r._3)(t,e),h=(0,r.nI)(m),g=s[p?"floating"===f?"reference":"floating":f],v=(0,r.B1)(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(g)))||n?g:g.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:c})),y="floating"===f?{x:o,y:i,width:l.floating.width,height:l.floating.height}:l.reference,w=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),b=await(null==a.isElement?void 0:a.isElement(w))&&await(null==a.getScale?void 0:a.getScale(w))||{x:1,y:1},x=(0,r.B1)(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:w,strategy:c}):y);return{top:(v.top-x.top+h.top)/b.y,bottom:(x.bottom-v.bottom+h.bottom)/b.y,left:(v.left-x.left+h.left)/b.x,right:(x.right-v.right+h.right)/b.x}}const l=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:i,middlewareData:l,rects:s,initialPlacement:c,platform:u,elements:d}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0,...y}=(0,r._3)(e,t);if(null!=(n=l.arrow)&&n.alignmentOffset)return{};const w=(0,r.C0)(i),b=(0,r.TV)(c),x=(0,r.C0)(c)===c,M=await(null==u.isRTL?void 0:u.isRTL(d.floating)),j=m||(x||!v?[(0,r.bV)(c)]:(0,r.WJ)(c)),N="none"!==g;!m&&N&&j.push(...(0,r.lP)(c,v,g,M));const E=[c,...j],A=await a(t,y),T=[];let S=(null==(o=l.flip)?void 0:o.overflows)||[];if(f&&T.push(A[w]),p){const e=(0,r.w7)(i,s,M);T.push(A[e[0]],A[e[1]])}if(S=[...S,{placement:i,overflows:T}],!T.every((e=>e<=0))){var I,D;const e=((null==(I=l.flip)?void 0:I.index)||0)+1,t=E[e];if(t&&("alignment"!==p||b===(0,r.TV)(t)||S.every((e=>(0,r.TV)(e.placement)!==b||e.overflows[0]>0))))return{data:{index:e,overflows:S},reset:{placement:t}};let n=null==(D=S.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:D.placement;if(!n)switch(h){case"bestFit":{var k;const e=null==(k=S.filter((e=>{if(N){const t=(0,r.TV)(e.placement);return t===b||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:k[0];e&&(n=e);break}case"initialPlacement":n=c}if(i!==n)return{reset:{placement:n}}}return{}}}},s=new Set(["left","top"]),c=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:i,y:a,placement:l,middlewareData:c}=t,u=await async function(e,t){const{placement:n,platform:o,elements:i}=e,a=await(null==o.isRTL?void 0:o.isRTL(i.floating)),l=(0,r.C0)(n),c=(0,r.Sg)(n),u="y"===(0,r.TV)(n),d=s.has(l)?-1:1,f=a&&u?-1:1,p=(0,r._3)(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:g}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&"number"==typeof g&&(h="end"===c?-1*g:g),u?{x:h*f,y:m*d}:{x:m*d,y:h*f}}(t,e);return l===(null==(n=c.offset)?void 0:n.placement)&&null!=(o=c.arrow)&&o.alignmentOffset?{}:{x:i+u.x,y:a+u.y,data:{...u,placement:l}}}}},u=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i}=t,{mainAxis:l=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=(0,r._3)(e,t),d={x:n,y:o},f=await a(t,u),p=(0,r.TV)((0,r.C0)(i)),m=(0,r.PG)(p);let h=d[m],g=d[p];if(l){const e="y"===m?"bottom":"right",t=h+f["y"===m?"top":"left"],n=h-f[e];h=(0,r.qE)(t,h,n)}if(s){const e="y"===p?"bottom":"right",t=g+f["y"===p?"top":"left"],n=g-f[e];g=(0,r.qE)(t,g,n)}const v=c.fn({...t,[m]:h,[p]:g});return{...v,data:{x:v.x-n,y:v.y-o,enabled:{[m]:l,[p]:s}}}}}},d=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:i,rects:l,platform:s,elements:c}=t,{apply:u=()=>{},...d}=(0,r._3)(e,t),f=await a(t,d),p=(0,r.C0)(i),m=(0,r.Sg)(i),h="y"===(0,r.TV)(i),{width:g,height:v}=l.floating;let y,w;"top"===p||"bottom"===p?(y=p,w=m===(await(null==s.isRTL?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(w=p,y="end"===m?"top":"bottom");const b=v-f.top-f.bottom,x=g-f.left-f.right,M=(0,r.jk)(v-f[y],b),j=(0,r.jk)(g-f[w],x),N=!t.middlewareData.shift;let E=M,A=j;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(A=x),null!=(o=t.middlewareData.shift)&&o.enabled.y&&(E=b),N&&!m){const e=(0,r.T9)(f.left,0),t=(0,r.T9)(f.right,0),n=(0,r.T9)(f.top,0),o=(0,r.T9)(f.bottom,0);h?A=g-2*(0!==e||0!==t?e+t:(0,r.T9)(f.left,f.right)):E=v-2*(0!==n||0!==o?n+o:(0,r.T9)(f.top,f.bottom))}await u({...t,availableWidth:A,availableHeight:E});const T=await s.getDimensions(c.floating);return g!==T.width||v!==T.height?{reset:{rects:!0}}:{}}}}},5365:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(4314),o=n(5556),i=n.n(o),a=n(3406),l=n(790);const s=({activePath:e="",children:t})=>(0,l.jsx)(r.i,{activePath:e,children:t});s.propTypes={activePath:i().string,children:i().node.isRequired},(s.AppBar=a.A).displayName="AppBarNavigation.AppBar";const c=s},5410:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(1609),o=n(5556),i=n.n(o),a=n(8468),l=n(6942),s=n.n(l),c=n(6244),u=n(8484),d=n(790);const f={variant:{success:"nfd-validation-icon--success",warning:"nfd-validation-icon--warning",info:"nfd-validation-icon--info",error:"nfd-validation-icon--error"}},p=({variant:e="info",className:t="",...n})=>{const o=(0,r.useMemo)((()=>u.B[e]),[e]),i=(0,c.A)();return o?(0,d.jsx)(o,{...i,...n,className:s()("nfd-validation-icon",f.variant[e],t)}):null};p.propTypes={variant:i().oneOf((0,a.values)(u.U)),className:i().string};const m=p},5448:(e,t,n)=>{"use strict";n.d(t,{S:()=>a,_:()=>i});var r=n(1609);let o=(0,r.createContext)(void 0);function i(){return(0,r.useContext)(o)}function a({value:e,children:t}){return r.createElement(o.Provider,{value:e},t)}},5487:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609);function o({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 10.5V6a3.75 3.75 0 1 0-7.5 0v4.5m11.356-1.993 1.263 12c.07.665-.45 1.243-1.119 1.243H4.25a1.125 1.125 0 0 1-1.12-1.243l1.264-12A1.125 1.125 0 0 1 5.513 7.5h12.974c.576 0 1.059.435 1.119 1.007ZM8.625 10.5a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm7.5 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))}const i=r.forwardRef(o)},5495:(e,t)=>{(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};e.r(n),e.d(n,{NewfoldRuntime:()=>o});const r=window.wp.url,o={hasCapability:e=>!0===window.NewfoldRuntime?.capabilities[e],adminUrl:e=>window.NewfoldRuntime?.admin_url+e,createApiUrl:(e,t={})=>(0,r.addQueryArgs)(window.NewfoldRuntime?.base_url,{rest_route:e,...t}),get siteDetails(){return window.NewfoldRuntime?.site},get sdk(){return window.NewfoldRuntime?.sdk},get isWoo(){return window.NewfoldRuntime?.isWoocommerceActive},get isYithBooking(){return window.NewfoldRuntime?.isYithBookingActive},get ecommerce(){return window.NewfoldRuntime?.ecommerce},get plugin(){return window.NewfoldRuntime?.plugin},get wpversion(){return window.NewfoldRuntime?.wpversion},get siteTitle(){return window.NewfoldRuntime?.siteTitle},get currentTheme(){return window.NewfoldRuntime?.currentTheme}};var i=t;for(var a in n)i[a]=n[a];n.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})()},5514:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(4738),o=n(7832),i=n(9271),a=n(6371),l=n(6942),s=n.n(l),c=n(8468),u=n(5556),d=n.n(u),f=n(6244),p=n(1609),m=n(790);const h=(0,p.forwardRef)((({id:e,as:t,checked:n,screenReaderLabel:l,onChange:u,disabled:d,className:p,type:h,...g},v)=>{const y=(0,f.A)();return(0,m.jsxs)(r.dO,{ref:v,as:t,checked:n,disabled:d,onChange:d?c.noop:u,className:s()("nfd-toggle",n&&"nfd-toggle--checked",d&&"nfd-toggle--disabled",p),"data-id":e,...g,type:"button"===t?"button":h,children:[(0,m.jsx)("span",{className:"nfd-sr-only",children:l}),(0,m.jsxs)("span",{className:"nfd-toggle__handle",children:[(0,m.jsx)(o.e,{show:n,unmount:!1,as:"span","aria-hidden":!n,enter:"",enterFrom:"nfd-opacity-0 nfd-hidden",enterTo:"nfd-opacity-100",leaveFrom:"nfd-opacity-100",leaveTo:"nfd-opacity-0 nfd-hidden",children:(0,m.jsx)(i.A,{className:"nfd-toggle__icon nfd-toggle__icon--check",...y})}),(0,m.jsx)(o.e,{show:!n,unmount:!1,as:"span","aria-hidden":n,enterFrom:"nfd-opacity-0 nfd-hidden",enterTo:"nfd-opacity-100",leaveFrom:"nfd-opacity-100",leaveTo:"nfd-opacity-0 nfd-hidden",children:(0,m.jsx)(a.A,{className:"nfd-toggle__icon nfd-toggle__icon--x",...y})})]})]})})),g={as:d().elementType,id:d().string.isRequired,checked:d().bool,screenReaderLabel:d().string.isRequired,onChange:d().func.isRequired,disabled:d().bool,type:d().string,className:d().string};h.propTypes=g,h.defaultProps={as:"button",checked:!1,disabled:!1,type:"",className:""},h.displayName="Toggle";const v=e=>(0,m.jsx)(h,{...e});v.propTypes=g,v.defaultProps=h.defaultProps,v.displayName="Toggle";const y=h},5556:(e,t,n)=>{e.exports=n(2694)()},5562:(e,t,n)=>{"use strict";n.d(t,{K7:()=>N,pP:()=>M});var r=n(2894),o=n(9202),i=n(8948),a=n(4836),l=n(1609);let s=null,c=new Set,u=new Map,d=!1,f=!1;const p={Tab:!0,Escape:!0};function m(e,t){for(let n of c)n(e,t)}function h(e){d=!0,function(e){return!(e.metaKey||!(0,o.cX)()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(s="keyboard",m("keyboard",e))}function g(e){s="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(d=!0,m("pointer",e))}function v(e){(0,i.Y)(e)&&(d=!0,s="virtual")}function y(e){e.target!==window&&e.target!==document&&!r.lR&&e.isTrusted&&(d||f||(s="virtual",m("virtual",e)),d=!1,f=!1)}function w(){r.lR||(d=!1,f=!0)}function b(e){if("undefined"==typeof window||"undefined"==typeof document||u.get((0,a.mD)(e)))return;const t=(0,a.mD)(e),n=(0,a.TW)(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){d=!0,r.apply(this,arguments)},n.addEventListener("keydown",h,!0),n.addEventListener("keyup",h,!0),n.addEventListener("click",v,!0),t.addEventListener("focus",y,!0),t.addEventListener("blur",w,!1),"undefined"!=typeof PointerEvent&&(n.addEventListener("pointerdown",g,!0),n.addEventListener("pointermove",g,!0),n.addEventListener("pointerup",g,!0)),t.addEventListener("beforeunload",(()=>{x(e)}),{once:!0}),u.set(t,{focus:r})}const x=(e,t)=>{const n=(0,a.mD)(e),r=(0,a.TW)(e);t&&r.removeEventListener("DOMContentLoaded",t),u.has(n)&&(n.HTMLElement.prototype.focus=u.get(n).focus,r.removeEventListener("keydown",h,!0),r.removeEventListener("keyup",h,!0),r.removeEventListener("click",v,!0),n.removeEventListener("focus",y,!0),n.removeEventListener("blur",w,!1),"undefined"!=typeof PointerEvent&&(r.removeEventListener("pointerdown",g,!0),r.removeEventListener("pointermove",g,!0),r.removeEventListener("pointerup",g,!0)),u.delete(n))};function M(){return"pointer"!==s}"undefined"!=typeof document&&function(e){const t=(0,a.TW)(e);let n;"loading"!==t.readyState?b(e):(n=()=>{b(e)},t.addEventListener("DOMContentLoaded",n))}();const j=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function N(e,t,n){b(),(0,l.useEffect)((()=>{let t=(t,r)=>{(function(e,t,n){let r=(0,a.TW)(null==n?void 0:n.target);const o="undefined"!=typeof window?(0,a.mD)(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,i="undefined"!=typeof window?(0,a.mD)(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,l="undefined"!=typeof window?(0,a.mD)(null==n?void 0:n.target).HTMLElement:HTMLElement,s="undefined"!=typeof window?(0,a.mD)(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||r.activeElement instanceof o&&!j.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof l&&r.activeElement.isContentEditable)&&"keyboard"===t&&n instanceof s&&!p[n.key])})(!!(null==n?void 0:n.isTextInput),t,r)&&e(M())};return c.add(t),()=>{c.delete(t)}}),t)}},5597:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var r=n(6087),o=n(4234),i=n(3928),a=n(9152),l=n(1371),s=n(4504),c=n(1961),u=n(6098),d=n(3102),f=n(3629),p=n(6829),m=n(433),h=n(6658),g=n(1124),v=n(790),__=n(7723).__,y=n(6942);const w=()=>{const[e,t]=(0,r.useState)(!0),[n,w]=(0,r.useState)(!0),b=(0,h.zy)(),x=async e=>(await(0,g.oJ)()).features[e]||!1;return(0,r.useEffect)((()=>{if(!e&&!n){const e=document.querySelector(".settings-details");e&&e.setAttribute("open","true")}}),[e,n]),(0,r.useEffect)((()=>{x("staging").then(t),x("performance").then(w);const e=document.getElementById("staging-portal"),n=document.getElementById("performance-portal");return e&&window.NFDPortalRegistry.registerPortal("staging",e),n&&window.NFDPortalRegistry.registerPortal("performance",n),()=>{window.NFDPortalRegistry.unregisterPortal("staging"),window.NFDPortalRegistry.unregisterPortal("performance")}}),[]),(0,r.useEffect)((()=>{const e=b.pathname;document.querySelectorAll(".nfd-details").forEach((e=>{e.removeAttribute("open")}));const t={"/settings/performance":".performance-details","/settings/staging":".staging-details","/settings/settings":".settings-details"}[e];if(t){const e=document.querySelector(t);e&&e.setAttribute("open","true")}}),[b.pathname]),(0,v.jsxs)(o.A,{title:"Settings",className:"wppbh-app-settings-page",children:[(0,v.jsxs)("div",{className:"wppbh-app-settings-page__header nfd-flex nfd-flex-col nfd-gap-y-4",children:[(0,v.jsx)(i.Ay,{as:"h1",children:__("Manage WordPress","wp-plugin-bluehost")}),(0,v.jsx)(i.Ay,{as:"h2",className:"nfd-font-normal nfd-text-[13px] nfd-color-body",children:__("Optimize your website my managing cache, security and performance settings.","wp-plugin-bluehost")})]}),n&&(0,v.jsx)(a.A,{id:"nfd-performance",className:"nfd-settings-app-wrapper nfd-performance",children:(0,v.jsxs)("details",{className:"nfd-details settings-app-wrapper performance-details",children:[(0,v.jsxs)("summary",{children:[(0,v.jsxs)("div",{id:"performance-header",className:"wppbh-app-performance-header",children:[(0,v.jsx)(i.Ay,{as:"h1",className:"nfd-mb-2",children:__("Performance","wp-plugin-bluehost")}),(0,v.jsx)(i.Ay,{as:"h2",className:"nfd-font-normal nfd-text-[13px]",children:__("Optimize your website by managing cache and performance settings","wp-plugin-bluehost")})]}),(0,v.jsx)("span",{className:"nfd-details-icon",children:(0,v.jsx)(l.A,{})})]}),(0,v.jsx)("div",{id:"nfd-performance-portal-wrapper",children:(0,v.jsx)("div",{id:"performance-portal"})})]})}),(0,v.jsx)(a.A,{className:"nfd-settings-app-wrapper wppbh-app-settings-container",children:(0,v.jsxs)("details",{className:"nfd-details settings-app-wrapper settings-details",children:[(0,v.jsxs)("summary",{children:[(0,v.jsxs)("div",{id:"settings-header",className:"wppbh-app-settings-header",children:[(0,v.jsx)(i.Ay,{as:"h1",className:"nfd-mb-2",children:__("General Settings","wp-plugin-bluehost")}),(0,v.jsx)(i.Ay,{as:"h2",className:"nfd-font-normal nfd-text-[13px]",children:__("Manage common settings for your website","wp-plugin-bluehost")})]}),(0,v.jsx)("span",{className:"nfd-details-icon",children:(0,v.jsx)(l.A,{})})]}),(0,v.jsx)(a.A.Block,{separator:!0,id:"coming-soon-section",className:y("wppbh-app-settings-coming-soon",(0,s.A)("coming-soon-section")&&"wppbh-animation-blink"),children:(0,v.jsx)(c.A,{})}),(0,v.jsx)(a.A.Block,{separator:!0,id:"wonder-blocks-section",className:"wppbh-app-settings-wonder-blocks",children:(0,v.jsxs)(a.A.SettingsField,{title:__("Features","wp-plugin-bluehost"),description:__("Customize the available features as you manage your website.","wp-plugin-bluehost"),children:[(0,v.jsx)(f.A,{}),(0,v.jsx)("br",{}),(0,v.jsx)(d.A,{})]})}),(0,v.jsx)(a.A.Block,{separator:!0,className:"wppbh-app-settings-update",children:(0,v.jsx)(u.A,{})}),(0,v.jsx)(a.A.Block,{separator:!0,id:"content-section",className:"wppbh-app-settings-content",children:(0,v.jsx)(p.A,{})}),(0,v.jsx)(a.A.Block,{id:"comments-section",className:"wppbh-app-settings-comments",children:(0,v.jsx)(m.A,{})})]})}),e&&(0,v.jsx)(a.A,{className:"nfd-settings-app-wrapper nfd-staging",children:(0,v.jsxs)("details",{className:"nfd-details settings-app-wrapper staging-details",children:[(0,v.jsxs)("summary",{children:[(0,v.jsxs)("div",{id:"staging-header",className:"wppbh-app-staging-header",children:[(0,v.jsx)(i.Ay,{as:"h1",className:"nfd-mb-2",children:__("Staging","wp-plugin-bluehost")}),(0,v.jsx)(i.Ay,{as:"h2",className:"nfd-font-normal nfd-text-[13px]",children:__("A staging site is a duplicate of your live site, offering a secure environment to experiment, test updates, and deploy when ready.","wp-plugin-bluehost")})]}),(0,v.jsx)("span",{className:"nfd-details-icon",children:(0,v.jsx)(l.A,{})})]}),(0,v.jsx)("div",{id:"nfd-staging-portal-wrapper",className:"nfd-staging",children:(0,v.jsx)("div",{id:"staging-portal"})})]})})]})}},5707:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(2191),o=n(9796),i=n(790);const a=({methods:e,constants:t,...n})=>{const a=e.useMatch("marketplace/product/:id");return a?(0,i.jsx)(o.A,{productPageId:a.params.id,methods:e,constants:t}):(0,i.jsx)(r.A,{methods:e,constants:t,...n})}},5775:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609),o=n(8468);const i=(e,t)=>{const n=(0,r.useMemo)((()=>(0,o.reduce)(t,((t,n,r)=>n?(t[r]=`${e}__${r}`,t):t),{})),[e,t]),i=(0,r.useMemo)((()=>(0,o.values)(n).join(" ")||null),[n]);return{ids:n,describedBy:i}}},5795:e=>{"use strict";e.exports=window.ReactDOM},5798:(e,t,n)=>{"use strict";n.d(t,{R:()=>r.A});var r=n(8880)},5857:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(1609);const o=r.forwardRef((function(e,t){return r.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),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h16M4 18h16"}))}))},5897:(e,t,n)=>{"use strict";function r(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let o=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,r),o}n.d(t,{Y:()=>r})},5953:(e,t,n)=>{"use strict";n.d(t,{J:()=>a,q:()=>i});var r=n(1609);let o=(0,r.createContext)(void 0);function i(){return(0,r.useContext)(o)}function a({id:e,children:t}){return r.createElement(o.Provider,{value:e},t)}},5965:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609);function o({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 19.5 15-15m0 0H8.25m11.25 0v11.25"}))}const i=r.forwardRef(o)},5966:(e,t,n)=>{"use strict";n.d(t,{A:()=>r}),n(1609);const r="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDQ4IiBoZWlnaHQ9IjQxNiIgdmlld0JveD0iMCAwIDQ0OCA0MTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8xXzIpIj4KPHJlY3Qgd2lkdGg9IjQ0OCIgaGVpZ2h0PSI0MTYiIGZpbGw9IndoaXRlIi8+CjxnIG9wYWNpdHk9IjAuMDMiPgo8cGF0aCBkPSJNMjI0IDQxNS43N0MzNDcuODY2IDQxNS43NyA0NDguMjggNDA4LjQ0NSA0NDguMjggMzk5LjQxQzQ0OC4yOCAzOTAuMzc1IDM0Ny44NjYgMzgzLjA1IDIyNCAzODMuMDVDMTAwLjEzNCAzODMuMDUgLTAuMjc5OTk5IDM5MC4zNzUgLTAuMjc5OTk5IDM5OS40MUMtMC4yNzk5OTkgNDA4LjQ0NSAxMDAuMTM0IDQxNS43NyAyMjQgNDE1Ljc3WiIgZmlsbD0iIzAwMDAwMSIvPgo8L2c+CjxwYXRoIGQ9Ik04My4zMiA0MDAuNjhDODMuMzIgNDAwLjY4IDk3LjQxIDM4MC40MyA3Ni4zOSAzNzQuODRDNTUuMzcgMzY5LjI1IDgxLjQ1IDM0MS45NyA2MS44OSAzMzguMzhDNDIuMzMgMzM0Ljc5IDQ1LjU5IDM2My42NyA0NS41OSAzNjMuNjdDNDUuNTkgMzYzLjY3IDMyLjA5IDM1Mi4wMyAyMi43NyAzNjEuODFDMTMuNDYgMzcxLjU5IDI2LjUgMzgyLjMxIDI2LjUgMzgyLjMxQzI2LjUgMzgyLjMxIDcuNjggMzg4LjgxIDE5LjQyIDQwMC42OUg4My4zMUw4My4zMiA0MDAuNjhaIiBmaWxsPSIjRTZFNkU2Ii8+CjxwYXRoIGQ9Ik01NS4wNiA0MDMuMzdDNTUuMDYgNDAzLjM3IDY0LjAxIDM4OC4wNyA3Ny4xOSAzODkuOTVDOTAuMzggMzkxLjgzIDg4Ljk2IDQwMy4zNyA4OC45NiA0MDMuMzdINTUuMDVINTUuMDZaIiBmaWxsPSIjQTVBNUE1Ii8+CjxwYXRoIGQ9Ik0xOTMuMjQgMjk2Ljc5QzE5My4yNCAyOTYuNzkgMTkzLjE1IDI5Ni43OSAxOTMuMTEgMjk2Ljc3QzE5Mi43OSAyOTYuNyAxOTIuNiAyOTYuMzggMTkyLjY3IDI5Ni4wN0MxOTYuODUgMjc4LjE4IDIxMi44NiAyNzEuMTggMjEzLjAyIDI3MS4xMUMyMTMuMzIgMjcwLjk4IDIxMy42NiAyNzEuMTIgMjEzLjc5IDI3MS40MkMyMTMuOTIgMjcxLjcyIDIxMy43OCAyNzIuMDYgMjEzLjQ4IDI3Mi4xOUMyMTMuMzIgMjcyLjI2IDE5Ny44NSAyNzkuMDUgMTkzLjgxIDI5Ni4zNEMxOTMuNzUgMjk2LjYxIDE5My41MSAyOTYuNzkgMTkzLjI0IDI5Ni43OVoiIGZpbGw9IiMyNDI4NUIiLz4KPHBhdGggZD0iTTIyMS45NCAzMDMuNTdDMjIwLjIyIDMwMy41NyAyMTguMjUgMzAzLjMyIDIxNS45NiAzMDIuNzRDMjExLjUxIDMwMS42MSAyMDguNjcgMjk5LjMgMjA3LjUzIDI5NS44N0MyMDMuOTMgMjg1LjA4IDIxOC4zNSAyNjcuMDEgMjE4Ljk3IDI2Ni4yNUwyMTkuODggMjY2Ljk5QzIxOS43MyAyNjcuMTcgMjA1LjI0IDI4NS4zMiAyMDguNjQgMjk1LjUxQzIwOS42NSAyOTguNTQgMjEyLjIxIDMwMC41OSAyMTYuMjUgMzAxLjYxQzIyMy4wMyAzMDMuMzMgMjI3Ljk0IDMwMi4yMSAyMzAuNDUgMjk4LjM4QzIzMC42IDI5OC4xNiAyMzAuNzMgMjk3LjkyIDIzMC44NiAyOTcuNjlDMjI3LjcyIDI5OC4zNiAyMjUuMTYgMjk3LjggMjIzLjIzIDI5NkMyMTUuNjYgMjg4Ljk2IDIyMC43NyAyNjUuMjUgMjIwLjk5IDI2NC4yNUwyMjEuMjYgMjYzLjAzTDIyMi4wMyAyNjQuMDJDMjMxLjAyIDI3NS42MiAyMzUuMTEgMjg4LjA1IDIzMi44NSAyOTUuODlDMjM1LjkgMjk0Ljc1IDIzNy43NSAyOTIuOTYgMjM4LjM1IDI5MC41N0MyNDAuNTEgMjgyLjA2IDIyNyAyNjguMzYgMjI2Ljg3IDI2OC4yMkwyMjcuNyAyNjcuMzlDMjI4LjI4IDI2Ny45NyAyNDEuODEgMjgxLjcgMjM5LjQ5IDI5MC44NkMyMzguNzIgMjkzLjg5IDIzNi4zMiAyOTYuMDUgMjMyLjM1IDI5Ny4zQzIzMi4wOSAyOTcuOTEgMjMxLjc4IDI5OC40OSAyMzEuNDMgMjk5LjAzQzIyOS45NiAzMDEuMjggMjI3LjE3IDMwMy41OCAyMjEuOTQgMzAzLjU4VjMwMy41N1pNMjIxLjg4IDI2NS43NkMyMjAuOTIgMjcwLjggMjE3Ljg4IDI4OS40NCAyMjQuMDIgMjk1LjE0QzIyNS44MSAyOTYuODEgMjI4LjMxIDI5Ny4yIDIzMS40NSAyOTYuMzNDMjM0LjAzIDI4OS4yMyAyMzAuMjcgMjc3LjAzIDIyMS44NyAyNjUuNzZIMjIxLjg4WiIgZmlsbD0iIzI0Mjg1QiIvPgo8cGF0aCBkPSJNODguNjUgNzEuNTZDODguNjUgNzEuNTYgODUuNDYgODcuMDIgNzIuNTggOTAuMjVDNTkuNyA5My40OCA4LjQ2MDAxIDk5LjIzIDE2LjQxIDEzNy4wNUMyNC4zNiAxNzQuODYgODYuNjMgMTQ1LjQ2IDEwOC4zNCAxNDEuMTZDMTI3LjkxIDEzNy4yOCAxMjUuMDMgMTE5LjMgMTE0LjUgMTA2LjA4QzExMC4zIDEwMC44MSAxMDcuODcgOTQuMjQgMTA4LjM4IDg3LjUyQzEwOC41NyA4NS4wMiAxMDkuMTYgODIuNDUgMTEwLjQgODAuMDVDMTE1LjMzIDcwLjQ2IDg4LjY2IDcxLjU2IDg4LjY2IDcxLjU2SDg4LjY1WiIgZmlsbD0iIzI0Mjg1QiIvPgo8cGF0aCBkPSJNOTkuNTQgMTE1LjIxQzk5LjU0IDExNS4yMSAxNDIuMDQgMTIwLjA4IDEzNS44IDE1Ni4xQzEyOS41NiAxOTIuMTIgMTA4Ljc3IDI1Mi4yNSAyMjEuMDQgMjU5LjYxVjI3NC4zM0MyMjEuMDQgMjc0LjMzIDExNy40NCAyODkuNzYgODQgMjE0Ljk1QzUwLjU2IDE0MC4xNCA5OS41NCAxMTUuMjEgOTkuNTQgMTE1LjIxWiIgZmlsbD0iI0Y0QTI4QyIvPgo8cGF0aCBkPSJNMTEwLjUgODIuMDlDMTEwLjUgODIuMDkgMTA4LjkyIDkwLjU5IDEwNiA5NS43MkMxMDQuODEgOTcuOCAxMDIuMTIgOTguNTQgMTAwLjA2IDk3LjMyQzk3LjUgOTUuODEgOTQuNDcgOTMuMDMgOTQuNzYgODguMzdMOTQuMjggODAuNDFDOTQuMjggODAuNDEgOTQuMTYgNzUuNDEgOTkuNzkgNzMuMzNDMTA1LjQyIDcxLjI1IDExMS43MiA3Ni45NiAxMTAuNSA4Mi4wOVoiIGZpbGw9IiNGNEEyOEMiLz4KPHBhdGggZD0iTTkzLjk4IDg0LjM1TDg0LjQ3IDExMS4wMkw5OS41NCAxMTUuMjFMMTAwLjQxIDk0LjEyTDkzLjk4IDg0LjM1WiIgZmlsbD0iI0Y0QTI4QyIvPgo8cGF0aCBkPSJNOTkuNjggODYuNzdDOTkuNjggODYuNzcgMTAwLjUxIDgzLjU1IDk4LjAzIDgzLjEzQzk1LjU1IDgyLjcxIDk0LjMzIDg3LjM2IDk3LjQ5IDg4LjdMOTkuNjkgODYuNzdIOTkuNjhaIiBmaWxsPSIjRjRBMjhDIi8+CjxwYXRoIGQ9Ik0xMDkuMjMgODcuNEwxMTAuNjYgOTEuMjVDMTExLjAxIDkyLjIgMTEwLjI2IDkzLjIgMTA5LjI1IDkzLjExTDEwNS45IDkyLjgzTDEwOS4yMyA4Ny40WiIgZmlsbD0iI0Y0QTI4QyIvPgo8ZyBvcGFjaXR5PSIwLjMxIj4KPHBhdGggZD0iTTEwMC40MSA5Ny41QzEwMC40MSA5Ny41IDk2LjUxIDk1Ljk1IDk0LjI5IDkzLjU3Qzk0LjI5IDkzLjU3IDk0LjI5IDEwMS4zIDEwMC4xIDEwMi45OUwxMDAuNDIgOTcuNUgxMDAuNDFaIiBmaWxsPSIjQ0U4MTcyIi8+CjwvZz4KPHBhdGggZD0iTTIwOS4xOCA5OC4yOEMyMzYuMjU5IDk4LjI4IDI1OC4yMSA3Ni4zMjg1IDI1OC4yMSA0OS4yNUMyNTguMjEgMjIuMTcxNSAyMzYuMjU5IDAuMjIwMDAxIDIwOS4xOCAwLjIyMDAwMUMxODIuMTAxIDAuMjIwMDAxIDE2MC4xNSAyMi4xNzE1IDE2MC4xNSA0OS4yNUMxNjAuMTUgNzYuMzI4NSAxODIuMTAxIDk4LjI4IDIwOS4xOCA5OC4yOFoiIGZpbGw9IiMyNDI4NUIiLz4KPHBhdGggZD0iTTE5MC4yMiA0OS4yNUwxNDguMjkgOTEuMDRMMjAzLjg4IDY4Ljg2TDE5MC4yMiA0OS4yNVoiIGZpbGw9IiMyNDI4NUIiLz4KPHBhdGggZD0iTTIxMi4wNiAyNy4xOUgyMDMuODhWNTMuMDFIMjEyLjA2VjI3LjE5WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTIxMi4wNiA2MC4xMUgyMDMuODhWNjguMjlIMjEyLjA2VjYwLjExWiIgZmlsbD0id2hpdGUiLz4KPGcgb3BhY2l0eT0iMC4wOCI+CjxwYXRoIGQ9Ik05OS41NCAxMTUuMjFDOTkuNTQgMTE1LjIxIDE0Mi4wNCAxMjAuMDggMTM1LjggMTU2LjFDMTI5LjU2IDE5Mi4xMiAxMDguNzcgMjUyLjI1IDIyMS4wNCAyNTkuNjFWMjc0LjMzQzIyMS4wNCAyNzQuMzMgMTE3LjQ0IDI4OS43NiA4NCAyMTQuOTVDNTAuNTYgMTQwLjE0IDk5LjU0IDExNS4yMSA5OS41NCAxMTUuMjFaIiBmaWxsPSIjMDAwMDAxIi8+CjwvZz4KPGcgb3BhY2l0eT0iMC4wOCI+CjxwYXRoIGQ9Ik0yMjEuMDUgMjU5LjYxQzIyMS4wNSAyNTkuNjEgMjMzLjkxIDI1OS4zIDIzOS4zNyAyNjYuMzJDMjQ0LjgzIDI3My4zNCAyMzcuODEgMjc4Ljg1IDIyMS4wNSAyNzQuMzRWMjU5LjYyVjI1OS42MVoiIGZpbGw9IiMwMDAwMDEiLz4KPC9nPgo8cGF0aCBkPSJNODQuNDcgMTA3LjQ2TDk5LjU0IDExNS4yMkM5OS41NCAxMTUuMjIgMTIyLjcyIDEyMy4yMyAxNDQuOTIgMTU0LjgxQzE1OS4xIDE3NC45OCAxNDQuMzIgMTkxLjkzIDEzMS43OSAyMDEuNTRDMTIzLjQ1IDIwNy45NCAxMTkuMTQgMjE4LjMxIDEyMC4xNCAyMjguNzhMMTIxLjkgMjQ3LjIyTDU3Ljc4IDI1Ni4yOEM1Ny43OCAyNTYuMjggLTI3Ljc3IDkzLjQ4IDg0LjQ3IDEwNy40NloiIGZpbGw9IiM2OEUxRkQiLz4KPHBhdGggZD0iTTQ4Ljc0IDI1MS40MUw3OC4zNiAzMTcuNjNDODEuNjMgMzI0LjkzIDg0LjU4IDMzMi4zNyA4Ny4yMiAzMzkuOTJMMTA2LjcgMzg5LjQzTDExOC4zNCAzODQuNDhMOTAuOTkgMjg1LjUzQzg5LjYgMjgwLjUxIDkxLjY5IDI3NS4xOCA5Ni4xMiAyNzIuNDRDOTguNDQgMjcxLjAxIDEwMS40OCAyNzEuODUgMTAyLjc0IDI3NC4yNkwxNjQuMTYgMzg1Ljg3TDE3Mi44NyAzODEuMTlMMTIxLjkgMjQ3LjJMNDguNzQgMjUxLjRWMjUxLjQxWiIgZmlsbD0iI0Y0QTI4QyIvPgo8ZyBvcGFjaXR5PSIwLjA4Ij4KPHBhdGggZD0iTTExOS41MSAzMDQuNzRMMTY0LjE2IDM4NS44OEwxNzEuMDEgMzc2LjMxTDE0MC45IDI5Ny4xNkwxMTkuNTEgMzA0Ljc0WiIgZmlsbD0iIzAwMDAwMSIvPgo8L2c+CjxnIG9wYWNpdHk9IjAuMDgiPgo8cGF0aCBkPSJNNzMgMTI5LjY1QzczIDEyOS42NSA4Ni4xNiAxNDguOTcgNzMgMTcxLjU4QzU5Ljg0IDE5NC4xOSA1OC4zOSAyNDAuNTcgMTIwLjU2IDIzMy4yTDEyMS40OSAyNDMuMDlMOTUuNTkgMjQ3Ljk4TDYzLjk0IDIzOC4xNkw1Mi4yNiAyMzkuNjlMMjEuNjEgMjAxLjU4TDMwLjY1IDE1Ni4xTDczIDEyOS42NVoiIGZpbGw9IiMwMDAwMDEiLz4KPC9nPgo8cGF0aCBkPSJNNDguNzQgMjU2LjI3TDcxLjU1IDMxOC4zMkwxMDAuMDUgMzA2LjQxTDk5IDI5NC42OUM5OC42MyAyOTAuNTIgMTA0LjE0IDI4OC43MiAxMDYuMyAyOTIuMzFMMTE0Ljc4IDMwNi40MUwxNDQuMTQgMjk2LjAxTDEyMS45IDI0Ny4yQzEyMS45IDI0Ny4yIDUzLjQgMjQzLjY3IDQ4Ljc0IDI1Ni4yNlYyNTYuMjdaIiBmaWxsPSIjMjQyODVCIi8+CjxwYXRoIGQ9Ik03MS42NyAxMjQuNzJDNjYuOTUgMTEzLjA0IDUzLjAxIDEwOC4wNSA0MS42MiAxMTMuNDRDMjIuNzQgMTIyLjM4IC02LjkyOTk5IDE0NS40MyAxLjA2MDAxIDIwMC42MkMxMi41NyAyODAuMDkgMTA0LjgxIDI1Ni4yNyAxMDQuODEgMjU2LjI3VjI0Mi41MkMxMDQuODEgMjQyLjUyIDMwLjcxIDI0NS41NCAzOC44MSAxOTQuOTZDNDEgMTgxLjMyIDQ4LjA2IDE2OC45MyA1OC4yIDE1OS41NUM2Ni41NyAxNTEuODIgNzcuMjYgMTM4LjU0IDcxLjY3IDEyNC43MloiIGZpbGw9IiNGNEEyOEMiLz4KPHBhdGggZD0iTTE0MC4yNTUgMjI1LjUyNUwxMjQuNTA2IDIxOS41OUwxMTMuNzc4IDI0OC4wNTZMMTI5LjUyNyAyNTMuOTkxTDE0MC4yNTUgMjI1LjUyNVoiIGZpbGw9IiNGRkQyMDAiLz4KPGcgb3BhY2l0eT0iMC4wOCI+CjxwYXRoIGQ9Ik0xMTkuMzMgMjMzLjM0QzExOS4zMyAyMzMuMzQgMTM4LjE3IDIzNi44NyAxMjkuNTMgMjUzLjk4TDExOC40IDI1MC4wOEwxMTYuOTMgMjM5LjcxTDExOS4zMyAyMzMuMzRaIiBmaWxsPSIjMDAwMDAxIi8+CjwvZz4KPHBhdGggZD0iTTExMC44IDY5LjFDMTA3LjY1IDY0LjcyIDkxLjI5IDYyLjI1IDg4LjY0IDcxLjU3Qzg4LjI4IDcyLjg1IDg4LjIyIDc0LjAyIDg4LjM5IDc1LjA5Qzg5LjE2IDc5Ljg0IDg5LjEgODQuNjggODcuNTEgODkuMjNDODYgOTMuNTcgODEuNzIgMTA2LjA2IDg1LjUzIDEwOC4wMkM5MC4yIDExMC40MiA5NS42NCA5Mi45MyA5Ny4wOSA5MC43NEM5OS4xNCA4Ny42NiAxMDIuMTcgODUuNDUgMTA1LjcgODQuMzVDMTA3LjA2IDgzLjkzIDEwOC42NiA4My4yMiAxMTAuNDggODIuMUMxMTcuNzcgNzcuNiAxMTMuOTMgNzMuNDkgMTEwLjc4IDY5LjFIMTEwLjhaIiBmaWxsPSIjMjQyODVCIi8+CjxwYXRoIGQ9Ik0xMDQuODEgMjQyLjUxQzEwNC44MSAyNDIuNTEgMTE5LjQ0IDIzNi4xNyAxMjYuMDEgMjQyLjUxQzEzMi41OSAyNDguODUgMTA0LjgxIDI1Ni4yNiAxMDQuODEgMjU2LjI2VjI0Mi41MVoiIGZpbGw9IiNGNEEyOEMiLz4KPHBhdGggZD0iTTEwNi43IDM4OS40NEMxMDYuNyAzODkuNDQgMTE5LjUzIDM3Mi40MyAxMjcuMDIgMzcyLjQzQzEzNC41MSAzNzIuNDMgMTE4Ljg5IDM5Mi4xNiAxMTguODkgMzkyLjE2QzExOC44OSAzOTIuMTYgMTA3Ljk0IDQxMS4xIDEwNi43IDM4OS40NFoiIGZpbGw9IiM2OEUxRkQiLz4KPHBhdGggZD0iTTE2My40MiAzODUuMDVDMTYzLjQyIDM4NS4wNSAxNzYuMjUgMzY4LjA0IDE4My43NCAzNjguMDRDMTkxLjIzIDM2OC4wNCAxNzUuNjEgMzg3Ljc3IDE3NS42MSAzODcuNzdDMTc1LjYxIDM4Ny43NyAxNjQuNjYgNDA2LjcxIDE2My40MiAzODUuMDVaIiBmaWxsPSIjNjhFMUZEIi8+CjxwYXRoIGQ9Ik0yMzEuMzI5IDI2Ny4yNjNMMjMwLjkzMyAyNjguMzY0TDM2My40MzggMzE2LjA5NUwzNjMuODM1IDMxNC45OTRMMjMxLjMyOSAyNjcuMjYzWiIgZmlsbD0iIzI0Mjg1QiIvPgo8cGF0aCBkPSJNMTA2LjgyIDExOC43MUMxMDYuODIgMTE4LjcxIDEwNy42MSAxMTMuOTEgMTAwLjk5IDExMC4yN0M5NC4zNiAxMDYuNjMgODQuODUgOTkuNCA4MC41OCAxMDcuMDRDODAuNTggMTA3LjA0IDg1LjUgMTIyLjIxIDEwNi44MyAxMTguNzFIMTA2LjgyWiIgZmlsbD0iIzY4RTFGRCIvPgo8ZyBvcGFjaXR5PSIwLjQ2Ij4KPHBhdGggZD0iTTEwNi44MiAxMTguNzFDMTA2LjgyIDExOC43MSAxMDcuNjEgMTEzLjkxIDEwMC45OSAxMTAuMjdDOTQuMzYgMTA2LjYzIDg0Ljg1IDk5LjQgODAuNTggMTA3LjA0QzgwLjU4IDEwNy4wNCA4NS41IDEyMi4yMSAxMDYuODMgMTE4LjcxSDEwNi44MloiIGZpbGw9IndoaXRlIi8+CjwvZz4KPHBhdGggZD0iTTIyMS4wNSAyNTkuNjFDMjIxLjA1IDI1OS42MSAyMzMuOTEgMjU5LjMgMjM5LjM3IDI2Ni4zMkMyNDQuODMgMjczLjM0IDIzNy44MSAyNzguODUgMjIxLjA1IDI3NC4zNFYyNTkuNjJWMjU5LjYxWiIgZmlsbD0iI0Y0QTI4QyIvPgo8cGF0aCBkPSJNMjIyLjc0IDI1Ny41OEgyMTYuMTFWMjc1LjY1SDIyMi43NFYyNTcuNThaIiBmaWxsPSIjRkZEMjAwIi8+CjxwYXRoIGQ9Ik0zNjcuNzggMzAyLjcyQzM2Ny43OCAzMDIuNzIgMzc0LjY4IDI5My4wOSAzODUuODkgMjk3LjI0QzM5NS4yMSAzMDAuNyAzOTkuMDQgMzA4LjY0IDQwNi42IDMwOC4yMUM0MDkuNzUgMzA4LjAzIDQxMi4zIDMxMC44NCA0MTEuNzcgMzEzLjk2QzQxMS4wMiAzMTguNDIgNDA4LjMgMzIyLjkzIDM5OS45IDMyMC43M0MzODQuNzQgMzE2Ljc3IDM5MC40NSAzMzIuNzUgMzc2LjY4IDMyNi41M0MzNjIuOTEgMzIwLjMxIDM1OS43OSAzMTUuMjcgMzY3Ljc4IDMwMi43MVYzMDIuNzJaIiBmaWxsPSIjMjQyODVCIi8+CjxwYXRoIGQ9Ik0zNzIuNDEgMzA0LjQ0TDM2Mi4wNyAyODYuNzRMMzc4LjU3IDI5OS43OUwzNzIuNDEgMzA0LjQ0WiIgZmlsbD0iIzI0Mjg1QiIvPgo8cGF0aCBkPSJNMzc3LjUyIDMwMS42N0wzNzQuMjQgMjgxLjQ0TDM4NC45NCAyOTkuNTZMMzc3LjUyIDMwMS42N1oiIGZpbGw9IiMyNDI4NUIiLz4KPHBhdGggZD0iTTM4NC42MyAzMDYuMkMzODUuNzQgMzA2LjIgMzg2LjY0IDMwNS4zIDM4Ni42NCAzMDQuMTlDMzg2LjY0IDMwMy4wOCAzODUuNzQgMzAyLjE4IDM4NC42MyAzMDIuMThDMzgzLjUyIDMwMi4xOCAzODIuNjIgMzAzLjA4IDM4Mi42MiAzMDQuMTlDMzgyLjYyIDMwNS4zIDM4My41MiAzMDYuMiAzODQuNjMgMzA2LjJaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNMzY0LjUyIDMwOC45TDM4OC40MiAzMjcuMDFMMzgyLjcgMzMzLjQ4TDM1OC4zMiAzMTUuNTJMMzY0LjUyIDMwOC45WiIgZmlsbD0iI0ZGRDIwMCIvPgo8cGF0aCBkPSJNMzU4LjMyIDMxNS41MkMzNTguMzIgMzE1LjUyIDMzOC4xIDMzNC42IDMxMy42NyAzMjcuOTlDMjg5LjI0IDMyMS4zOCAyNzguMzMgMzQzLjIxIDI4Ni42NCAzNTMuNkMyOTQuOTYgMzYzLjk5IDM5Mi45OSAzNzkuODggMzgyLjY5IDMzMy40OCIgZmlsbD0iIzI0Mjg1QiIvPgo8cGF0aCBkPSJNMjk3LjM3IDM0MC4xOUMyOTcuMzcgMzQwLjE5IDI2My45MyAzMzkuNzIgMjY0LjcxIDI5Ni4yQzI2NC43MSAyOTYuMiAyMzkuNiAzNDQuNjcgMjk3LjM3IDM0OC41N1YzNDAuMlYzNDAuMTlaIiBmaWxsPSIjMjQyODVCIi8+CjxwYXRoIGQ9Ik0zMjIuOTIgMzUyLjIxQzMyMi45MiAzNTIuMjEgMzMxLjc2IDM3NC4wNCAzMDguMzcgMzc0LjU2QzI4NC45OCAzNzUuMDggMjkwLjcgMzg5LjQ0IDI5MC43IDM4OS40NEgyODMuODlDMjgzLjg5IDM4OS40NCAyNzkuODIgMzcyLjg2IDI4OS42OCAzNjguNTFDMjk5LjU0IDM2NC4xNiAyODYuNjUgMzUzLjYxIDI4Ni42NSAzNTMuNjFDMjg2LjY1IDM1My42MSAzMDEuMDkgMzI4LjMgMzIyLjkyIDM1Mi4yMVoiIGZpbGw9IiMyNDI4NUIiLz4KPHBhdGggZD0iTTM4My40NCAzNDAuMTlMMzg1LjM4IDM1MC40OUMzODYuODUgMzU4LjMgMzkxLjA2IDM2NS4zNCAzOTcuMjUgMzcwLjMzTDQwNy42NSAzNzguNzFMNDA1LjA1IDM4MS43NEwzODMuNTUgMzcyLjMzQzM4MC42OCAzNzEuMDcgMzc4LjI5IDM2OC45MyAzNzYuNzMgMzY2LjIxTDM2Ni41OSAzNDguNTZMMzgzLjQ1IDM0MC4xOUgzODMuNDRaIiBmaWxsPSIjMjQyODVCIi8+CjxwYXRoIGQ9Ik0zODEuMDEgMzQ1LjYzTDM3Ni4yMyAzNTQuOTZDMzcyLjYxIDM2Mi4wNCAzNzEuNjMgMzcwLjE4IDM3My40NiAzNzcuOTFMMzc2LjU1IDM5MC45TDM3Mi42NCAzOTEuNzFMMzYxLjQgMzcxLjFDMzU5LjkgMzY4LjM1IDM1OS4zMiAzNjUuMTkgMzU5Ljc1IDM2Mi4wOEwzNjIuNTQgMzQxLjkyTDM4MSAzNDUuNjJMMzgxLjAxIDM0NS42M1oiIGZpbGw9IiMyNDI4NUIiLz4KPHBhdGggZD0iTTMzNy4wMSAzNTguNTFDMzM3LjAxIDM1OC41MSAzMzguMzcgMzcxLjc2IDMzMC4zOCAzNzguOThDMzIyLjM5IDM4Ni4xOSAzMjMuNzUgMzkxLjcyIDMyMy43NSAzOTEuNzJIMzE3LjlDMzE3LjkgMzkxLjcyIDMxNi43NSAzODcuOTYgMzE3Ljk0IDM4Mi43N0MzMTkuMjMgMzc3LjEzIDMxNy42OSAzNzEuMiAzMTQuMTQgMzY2LjYzTDMwOC43NCAzNTkuNjlMMzM3IDM1OC41MkwzMzcuMDEgMzU4LjUxWiIgZmlsbD0iIzI0Mjg1QiIvPgo8cGF0aCBkPSJNMzMzLjY3IDIwNy40MkMzNTcuNjg5IDIwNy40MiAzNzcuMTYgMTg3Ljk0OSAzNzcuMTYgMTYzLjkzQzM3Ny4xNiAxMzkuOTExIDM1Ny42ODkgMTIwLjQ0IDMzMy42NyAxMjAuNDRDMzA5LjY1MSAxMjAuNDQgMjkwLjE4IDEzOS45MTEgMjkwLjE4IDE2My45M0MyOTAuMTggMTg3Ljk0OSAzMDkuNjUxIDIwNy40MiAzMzMuNjcgMjA3LjQyWiIgZmlsbD0iI0ZGRDIwMCIvPgo8ZyBvcGFjaXR5PSIwLjE1Ij4KPHBhdGggZD0iTTMzMy42NyAyNDYuODZDMzc5LjQ3MSAyNDYuODYgNDE2LjYgMjA5LjczMSA0MTYuNiAxNjMuOTNDNDE2LjYgMTE4LjEyOSAzNzkuNDcxIDgxIDMzMy42NyA4MUMyODcuODY5IDgxIDI1MC43NCAxMTguMTI5IDI1MC43NCAxNjMuOTNDMjUwLjc0IDIwOS43MzEgMjg3Ljg2OSAyNDYuODYgMzMzLjY3IDI0Ni44NloiIGZpbGw9IiNGRkQyMDAiLz4KPC9nPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzFfMiI+CjxyZWN0IHdpZHRoPSI0NDgiIGhlaWdodD0iNDE2IiBmaWxsPSJ3aGl0ZSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPgo="},6057:(e,t,n)=>{"use strict";n.d(t,{C:()=>i});var r=n(2154),o=n(790),__=n(7723).__;const i=({categories:e,activeCategoryIndex:t})=>{const n=t?e[t].name:"all";return(0,o.jsxs)("div",{className:"nfd-marketplace-filters-section",children:[(0,o.jsxs)("div",{className:"nfd-marketplace-categories nfd-flex nfd-gap-4 nfd-items-center",children:[(0,o.jsx)("span",{className:"nfd-marketplace-categories-title nfd-text-base",children:__("Filter by type","wp-module-marketplace")}),(0,o.jsx)(r.A,{onChange:t=>{e.find((e=>e.name===t))&&(window.location.hash=`#marketplace/${t}`)},value:n||"all",id:"nfd-marketing-page-category-selector",className:"nfd-marketing-page-category-selector nfd-min-w-[200px]",selectedLabel:e.find((e=>e.name===(n||"all")))?.title,children:e.map((e=>(0,o.jsx)(r.A.Option,{label:e.title+(e?.products_count?` (${e.products_count})`:""),value:e.name,className:"nfd-solutions-category-selector__"+e.id},e.name)))})]}),(0,o.jsx)("div",{className:"nfd-marketplace-search"})]})}},6087:e=>{"use strict";e.exports=window.wp.element},6098:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(6087),o=n(2609),i=n(652),a=n(9152),l=n(236),s=n(524),c=n(1124),u=n(2914),d=n(790),f=n(6087).useContext,__=n(7723).__,p=n(6087).useEffect;const m=({setError:e,notify:t})=>{const{store:n,setStore:a}=f(s.Ay),[l,u]=(0,r.useState)(!!(n.autoUpdatesMajorCore&&n.autoUpdatesPlugins&&n.autoUpdatesThemes)),m=()=>{const e=__("Enabled All auto-updates","wp-plugin-bluehost"),t=__("Disabled All auto-updates","wp-plugin-bluehost");return l?e:t},h=()=>{const e=__("Everything will automatically update.","wp-plugin-bluehost"),t=__("Custom auto-update settings.","wp-plugin-bluehost");return l?e:t};return p((()=>{n.autoUpdatesMajorCore&&n.autoUpdatesPlugins&&n.autoUpdatesThemes?u(!0):u(!1)}),[n.autoUpdatesMajorCore,n.autoUpdatesPlugins,n.autoUpdatesThemes]),(0,o.A)((()=>{a({...n,autoUpdatesAll:l}),t.push("everything-autoupdate-notice",{title:m(),description:(0,d.jsx)("span",{children:h()}),variant:"success",autoDismiss:5e3})}),[l]),(0,d.jsx)(i.A,{id:"autoupdate-all-toggle",label:__("Automatically keep all up to date","wp-plugin-bluehost"),checked:l,onChange:()=>{l?u(!l):(0,c.co)({autoUpdatesMajorCore:!0,autoUpdatesPlugins:!0,autoUpdatesThemes:!0},e,(e=>{u(!l)}))}})},h=({setError:e,notify:t})=>{const{store:n,setStore:a}=f(s.Ay),[l,u]=(0,r.useState)(n.autoUpdatesMajorCore),p=()=>{const e=__("Enabled Core auto-updates","wp-plugin-bluehost"),t=__("Disabled Core auto-updates","wp-plugin-bluehost");return l?e:t},m=()=>{const e=__("WordPress will automatically update.","wp-plugin-bluehost"),t=__("WordPress must be manually updated.","wp-plugin-bluehost");return l?e:t};return(0,o.A)((()=>{a({...n,autoUpdatesMajorCore:l}),t.push("major-core-autoupdate-notice",{title:p(),description:(0,d.jsx)("span",{children:m()}),variant:"success",autoDismiss:5e3})}),[l]),(0,d.jsx)(i.A,{id:"autoupdate-core-toggle",label:__("WordPress Core","wp-plugin-bluehost"),checked:l||n.autoUpdatesAll,disabled:n.autoUpdatesAll,onChange:()=>{(0,c.co)({autoUpdatesMajorCore:!l},e,(e=>{u(!l)}))}})},g=({setError:e,notify:t})=>{const{store:n,setStore:a}=f(s.Ay),[l,u]=(0,r.useState)(n.autoUpdatesPlugins),p=()=>{const e=__("Enabled Plugins auto-update","wp-plugin-bluehost"),t=__("Disabled Plugins auto-update","wp-plugin-bluehost");return l?e:t},m=()=>{const e=__("All plugins will automatically update.","wp-plugin-bluehost"),t=__("Each plugin must be manually updated.","wp-plugin-bluehost");return l?e:t};return(0,o.A)((()=>{a({...n,autoUpdatesPlugins:l}),t.push("plugins-autoupdate-notice",{title:p(),description:(0,d.jsx)("span",{children:m()}),variant:"success",autoDismiss:5e3})}),[l]),(0,d.jsx)(i.A,{id:"autoupdate-plugins-toggle",label:__("Plugins","wp-plugin-bluehost"),checked:l||n.autoUpdatesAll,disabled:n.autoUpdatesAll,onChange:()=>{(0,c.co)({autoUpdatesPlugins:!l},e,(e=>{u(!l)}))}})},v=({setError:e,notify:t})=>{const{store:n,setStore:a}=f(s.Ay),[l,u]=(0,r.useState)(n.autoUpdatesThemes),p=()=>{const e=__("Enabled Themes auto-update","wp-plugin-bluehost"),t=__("Disabled Themes auto-update","wp-plugin-bluehost");return l?e:t},m=()=>{const e=__("All themes will automatically update.","wp-plugin-bluehost"),t=__("Each theme must be manually updated.","wp-plugin-bluehost");return l?e:t};return(0,o.A)((()=>{a({...n,autoUpdatesThemes:l}),t.push("themes-autoupdate-notice",{title:p(),description:(0,d.jsx)("span",{children:m()}),variant:"success",autoDismiss:5e3})}),[l]),(0,d.jsx)(i.A,{id:"autoupdate-themes-toggle",label:__("Themes","wp-plugin-bluehost"),checked:l||n.autoUpdatesAll,disabled:n.autoUpdatesAll,onChange:()=>{(0,c.co)({autoUpdatesThemes:!l},e,(e=>{u(!l)}))}})},y=()=>{const[e,t]=(0,r.useState)(!1),n=(0,u.h)();return(0,d.jsx)(a.A.SettingsField,{title:__("Automatic Updates","wp-plugin-bluehost"),description:__("Keeping automatic updates on ensures timely security fixes and the latest features.","wp-plugin-bluehost"),children:(0,d.jsxs)("div",{className:"nfd-flex nfd-flex-col nfd-gap-4",children:[(0,d.jsx)(m,{setError:t,notify:n}),(0,d.jsx)(h,{setError:t,notify:n}),(0,d.jsx)(g,{setError:t,notify:n}),(0,d.jsx)(v,{setError:t,notify:n}),e&&(0,d.jsx)(l.Ay,{variant:"error",children:__("Oops! Something went wrong. Please try again.","wp-plugin-bluehost")})]})})}},6133:(e,t,n)=>{"use strict";n.d(t,{o:()=>l});var r=n(5562),o=n(3424),i=n(9461),a=n(1609);function l(e={}){let{autoFocus:t=!1,isTextInput:n,within:l}=e,s=(0,a.useRef)({isFocused:!1,isFocusVisible:t||(0,r.pP)()}),[c,u]=(0,a.useState)(!1),[d,f]=(0,a.useState)((()=>s.current.isFocused&&s.current.isFocusVisible)),p=(0,a.useCallback)((()=>f(s.current.isFocused&&s.current.isFocusVisible)),[]),m=(0,a.useCallback)((e=>{s.current.isFocused=e,u(e),p()}),[p]);(0,r.K7)((e=>{s.current.isFocusVisible=e,p()}),[],{isTextInput:n});let{focusProps:h}=(0,o.i)({isDisabled:l,onFocusChange:m}),{focusWithinProps:g}=(0,i.R)({isDisabled:!l,onFocusWithinChange:m});return{isFocused:c,isFocusVisible:d,focusProps:l?g:h}}},6206:(e,t,n)=>{"use strict";n.d(t,{Ac:()=>s,Ci:()=>u,FX:()=>h,mK:()=>c,oE:()=>g,v6:()=>m});var r,o,i=n(1609),a=n(6421),l=n(5897),s=((o=s||{})[o.None=0]="None",o[o.RenderStrategy=1]="RenderStrategy",o[o.Static=2]="Static",o),c=((r=c||{})[r.Unmount=0]="Unmount",r[r.Hidden=1]="Hidden",r);function u(){let e=function(){let e=(0,i.useRef)([]),t=(0,i.useCallback)((t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)}),[]);return(...n)=>{if(!n.every((e=>null==e)))return e.current=n,t}}();return(0,i.useCallback)((t=>function({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a,mergeRefs:s}){s=null!=s?s:f;let c=p(t,e);if(i)return d(c,n,r,a,s);let u=null!=o?o:0;if(2&u){let{static:e=!1,...t}=c;if(e)return d(t,n,r,a,s)}if(1&u){let{unmount:e=!0,...t}=c;return(0,l.Y)(e?0:1,{0:()=>null,1:()=>d({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return d(c,n,r,a,s)}({mergeRefs:e,...t})),[e])}function d(e,t={},n,r,o){let{as:l=n,children:s,refName:c="ref",...u}=v(e,["unmount","static"]),d=void 0!==e.ref?{[c]:e.ref}:{},f="function"==typeof s?s(t):s;"className"in u&&u.className&&"function"==typeof u.className&&(u.className=u.className(t)),u["aria-labelledby"]&&u["aria-labelledby"]===u.id&&(u["aria-labelledby"]=void 0);let m={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r.replace(/([A-Z])/g,(e=>`-${e.toLowerCase()}`)));if(e){m["data-headlessui-state"]=n.join(" ");for(let e of n)m[`data-${e}`]=""}}if(l===i.Fragment&&(Object.keys(g(u)).length>0||Object.keys(g(m)).length>0)){if((0,i.isValidElement)(f)&&!(Array.isArray(f)&&f.length>1)){let e=f.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>(0,a.x)(t(...e),u.className):(0,a.x)(t,u.className),r=n?{className:n}:{},l=p(f.props,g(v(u,["ref"])));for(let e in m)e in l&&delete m[e];return(0,i.cloneElement)(f,Object.assign({},l,m,d,{ref:o(y(f),d.ref)},r))}if(Object.keys(g(u)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(g(u)).concat(Object.keys(g(m))).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"))}return(0,i.createElement)(l,Object.assign({},v(u,["ref"]),l!==i.Fragment&&d,l!==i.Fragment&&m),f)}function f(...e){return e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function p(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])for(let e in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(n[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in n)Object.assign(t,{[e](t,...r){let o=n[e];for(let e of o){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function m(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];for(let e in n)Object.assign(t,{[e](...t){let r=n[e];for(let e of r)null==e||e(...t)}});return t}function h(e){var t;return Object.assign((0,i.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function g(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function v(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function y(e){return i.version.split(".")[0]>="19"?e.props.ref:e.ref}},6244:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(1609);const o=(e=null)=>(0,r.useMemo)((()=>{const t={role:"img","aria-hidden":"true"};return null!==e&&(t.focusable=e?"true":"false"),t}),[e])},6254:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(4234),o=n(9152),i=n(3928),a=n(8746),l=n(4619),s=n(9402),c=n(5495),u=n(6763),d=n(790),__=n(7723).__,f=n(6942);const p=c.NewfoldRuntime.adminUrl+"admin.php?page=bluehost&s=promotions#/commerce",m=()=>(0,d.jsxs)(r.A,{children:[(0,d.jsx)(o.A,{className:"wppbh-app-help-page__header nfd-flex nfd-flex-col nfd-mb-8 nfd-p-8",children:(0,d.jsxs)("div",{className:"nfd-flex nfd-flex-col md:nfd-flex-row nfd-gap-8 nfd-items-center",children:[(0,d.jsx)("div",{className:"nfd-flex nfd-flex-col md:nfd-grow-0",children:(0,d.jsx)(s.h,{className:"nfd-w-36"})}),(0,d.jsxs)("div",{className:"nfd-flex nfd-flex-col nfd-gap-y-4 nfd-w-full text-center md:text-left",children:[(0,d.jsx)(i.Ay,{as:"h1",children:__("Create a campaign and boost your sales!","wp-plugin-bluehost")}),(0,d.jsx)(i.Ay,{as:"h2",className:"nfd-text-body nfd-text-sm",children:__("Create custom upsell, cross-sell and other promotional campaigns to generate more sales.","wp-plugin-bluehost")})]}),(0,d.jsx)("div",{className:"nfd-flex nfd-flex-col",children:(0,d.jsx)(a.Ay,{as:"a",className:"nfd-button-xl",href:p,size:"large",variant:"upsell",children:__("Get Started Now","wp-plugin-bluehost")})})]})}),(0,d.jsx)(i.Ay,{as:"h2",children:__("Not sure where to start? Try one of these popular promotions:","wp-plugin-bluehost")}),(0,d.jsx)(o.A,{className:f("wppbh-app-container nfd-bg-transparent nfd-shadow-none","nfd-grid nfd-grid-cols-1 nfd-gap-4 md:nfd-grid-cols-2 lg:nfd-grid-cols-3"),children:u.A.map((e=>(0,d.jsx)(l.A,{className:"nfd-flex nfd-flex-col nfd-h-full",children:(0,d.jsxs)(l.A.Content,{className:"nfd-flex nfd-flex-col nfd-h-full",children:[(0,d.jsx)("div",{className:"nfd-flex nfd-flex-col nfd-gap-4 nfd-items-center nfd-text-center nfd-mt-4 nfd-w-full",children:(0,d.jsx)("div",{className:"nfd-w-36 nfd-h-24 nfd-object-contain nfd-object-center nfd-flex nfd-items-center nfd-justify-center",children:e.icon})}),(0,d.jsx)(i.Ay,{size:2,as:"h2",className:"nfd-mt-8",children:e.title}),(0,d.jsx)("p",{className:"nfd-text-body nfd-text-sm nfd-mt-4 nfd-mb-4",children:e.description}),(0,d.jsx)("div",{className:"nfd-flex nfd-justify-center nfd-align-center nfd-w-full nfd-mt-auto",children:(0,d.jsx)(a.Ay,{as:"a",className:"nfd-w-full",href:p,variant:"secondary",children:__("Create a Campaign","wp-plugin-bluehost")})})]})},e.name)))})]})},6284:(e,t,n)=>{"use strict";n.d(t,{r:()=>s,s:()=>d});var r,o=n(1609),i=n(7280),a=n(8419),l=((r=l||{})[r.Ignore=0]="Ignore",r[r.Select=1]="Select",r[r.Close=2]="Close",r);const s={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}},c=200,u=5;function d(e,{trigger:t,action:n,close:r,select:l}){let s=(0,o.useRef)(null),d=(0,o.useRef)(null),f=(0,o.useRef)(null);(0,a.z)(e&&null!==t,"pointerdown",(e=>{i.Ll(null==e?void 0:e.target)&&null!=t&&t.contains(e.target)&&(d.current=e.x,f.current=e.y,s.current=e.timeStamp)})),(0,a.z)(e&&null!==t,"pointerup",(e=>{var t,o;let a=s.current;if(null===a||(s.current=null,!i.Lk(e.target))||Math.abs(e.x-(null!=(t=d.current)?t:e.x))<u&&Math.abs(e.y-(null!=(o=f.current)?o:e.y))<u)return;let p=n(e);switch(p.kind){case 0:return;case 1:e.timeStamp-a>c&&(l(p.target),r());break;case 2:r()}}),{capture:!0})}},6339:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});var r=n(1609),o=n(9851);let i=(e,t)=>{o._.isServer?(0,r.useEffect)(e,t):(0,r.useLayoutEffect)(e,t)}},6364:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(790),o=n(6942);const i=({width:e,height:t,className:n=""})=>(0,r.jsx)("div",{className:o("newfold-marketplace-skeleton nfd-flex-1",n),style:{width:e||"100%",height:t||"auto"}})},6371:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(1609);const o=r.forwardRef((function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))}))},6407:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(4311).n},6421:(e,t,n)=>{"use strict";function r(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}n.d(t,{x:()=>r})},6427:e=>{"use strict";e.exports=window.wp.components},6504:(e,t,n)=>{"use strict";n.d(t,{P:()=>a});var r=n(5495),o=n(1455),i=n.n(o);const a=()=>i()({url:r.NewfoldRuntime.createApiUrl("/newfold-marketplace/v1/marketplace")}).then((e=>{const t=[];return e.hasOwnProperty("categories")&&e.categories.data.forEach((e=>{t.push({name:"/marketplace/"+e.name,title:e.title})})),t}))},6526:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6364),o=n(790);const i=()=>(0,o.jsxs)("div",{className:"marketplace-item-skeleton",children:[(0,o.jsx)("div",{className:"skeleton-item-media",children:(0,o.jsx)(r.A,{width:"100%",height:"auto",className:"marketplace-item-img-skeleton"})}),(0,o.jsxs)("div",{className:"skeleton-item-body",children:[(0,o.jsx)(r.A,{width:"170px",height:"20px",className:"marketplace-item-title-skeleton"}),(0,o.jsx)(r.A,{width:"100%",height:"10px",className:"marketplace-item-desc-skeleton"}),(0,o.jsx)(r.A,{width:"100%",height:"10px",className:"marketplace-item-desc-skeleton"}),(0,o.jsx)(r.A,{width:"70%",height:"10px",className:"marketplace-item-desc-skeleton"}),(0,o.jsx)(r.A,{width:"80px",height:"36px",className:"marketplace-item-button-skeleton"})]})]})},6575:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(4619),o=n(3928),i=n(7723),a=n(948),l=n(790),s=n(6942);const c=()=>(0,l.jsxs)(r.A,{as:"a",className:s("nfd-quick-links-card nfd-quick-links-yoast-card","nfd-flex nfd-flex-col nfd-gap-4 nfd-border nfd-border-[#D5D5D5]","nfd-no-underline nfd-shadow-none nfd-transition-all hover:nfd-shadow-md"),"data-action":"load-nfd-ctb","data-ctb-id":"57d6a568-783c-45e2-a388-847cff155897","data-nfd-click":"newfold-quick-links-yoast","data-test-id":"quick-links-yoast-link",href:"https://yoast.com/?yst-add-to-cart=2811749&utm_source=plugin-home&utm_medium=brand-plugin&channelid=P99C100S1N0B3003A151D115E0000V112",target:"_blank",children:[(0,l.jsxs)("div",{className:"nfd-quick-links-card__head nfd-flex nfd-items-center nfd-gap-2",children:[(0,l.jsx)("span",{className:"nfd-quick-links-card__icon",children:(0,l.jsx)(a.bx,{width:24,height:24})}),(0,l.jsx)(o.Ay,{as:"h2",className:"nf-text-base nfd-font-semibold",children:(0,i.__)("Optimize your content","wp-plugin-bluehost")})]}),(0,l.jsx)("p",{className:"nfd-mt-0 nfd-text-body",children:(0,i.__)("Optimize your content for search engines and boost your store visibility.","wp-plugin-bluehost")}),(0,l.jsx)("p",{className:"nfd-mt-0 nfd-font-semibold nfd-no-underline nfd-text-[#196BDE]",children:(0,i.__)("Start now","wp-plugin-bluehost")})]})},6619:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i},6635:(e,t,n)=>{"use strict";function r(){return"undefined"!=typeof window}function o(e){return l(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function a(e){var t;return null==(t=(l(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function l(e){return!!r()&&(e instanceof Node||e instanceof i(e).Node)}function s(e){return!!r()&&(e instanceof Element||e instanceof i(e).Element)}function c(e){return!!r()&&(e instanceof HTMLElement||e instanceof i(e).HTMLElement)}function u(e){return!(!r()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}n.d(t,{$4:()=>T,CP:()=>A,L9:()=>E,Lv:()=>m,Tc:()=>M,Tf:()=>g,ZU:()=>f,_m:()=>D,ep:()=>a,eu:()=>N,gJ:()=>x,mq:()=>o,sQ:()=>b,sb:()=>c,v9:()=>I,vq:()=>s,zk:()=>i});const d=new Set(["inline","contents"]);function f(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=E(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!d.has(o)}const p=new Set(["table","td","th"]);function m(e){return p.has(o(e))}const h=[":popover-open",":modal"];function g(e){return h.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}const v=["transform","translate","scale","rotate","perspective"],y=["transform","translate","scale","rotate","perspective","filter"],w=["paint","layout","strict","content"];function b(e){const t=M(),n=s(e)?E(e):e;return v.some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||y.some((e=>(n.willChange||"").includes(e)))||w.some((e=>(n.contain||"").includes(e)))}function x(e){let t=T(e);for(;c(t)&&!N(t);){if(b(t))return t;if(g(t))return null;t=T(t)}return null}function M(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const j=new Set(["html","body","#document"]);function N(e){return j.has(o(e))}function E(e){return i(e).getComputedStyle(e)}function A(e){return s(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function T(e){if("html"===o(e))return e;const t=e.assignedSlot||e.parentNode||u(e)&&e.host||a(e);return u(t)?t.host:t}function S(e){const t=T(e);return N(t)?e.ownerDocument?e.ownerDocument.body:e.body:c(t)&&f(t)?t:S(t)}function I(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=S(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),l=i(o);if(a){const e=D(l);return t.concat(l,l.visualViewport||[],f(o)?o:[],e&&n?I(e):[])}return t.concat(o,I(o,[],n))}function D(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}},6638:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(6057).C},6658:(e,t,n)=>{"use strict";var r;n.d(t,{BV:()=>xe,I9:()=>Ve,RQ:()=>re,Zp:()=>ae,qh:()=>we,zy:()=>ne});var o=n(1609),i="popstate";function a(e={}){return function(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:a=!1}=r,s=o.history,f="POP",p=null,m=h();function h(){return(s.state||{idx:null}).idx}function g(){f="POP";let e=h(),t=null==e?null:e-m;m=e,p&&p({action:f,location:y.location,delta:t})}function v(e){return function(e,t=!1){let n="http://localhost";"undefined"!=typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),l(n,"No window.location.(origin|href) available to create URL");let r="string"==typeof e?e:d(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}(e)}null==m&&(m=0,s.replaceState({...s.state,idx:m},""));let y={get action(){return f},get location(){return e(o,s)},listen(e){if(p)throw new Error("A history only accepts one active listener");return o.addEventListener(i,g),p=e,()=>{o.removeEventListener(i,g),p=null}},createHref:e=>t(o,e),createURL:v,encodeLocation(e){let t=v(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){f="PUSH";let r=u(y.location,e,t);n&&n(r,e),m=h()+1;let i=c(r,m),l=y.createHref(r);try{s.pushState(i,"",l)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(l)}a&&p&&p({action:f,location:y.location,delta:1})},replace:function(e,t){f="REPLACE";let r=u(y.location,e,t);n&&n(r,e),m=h();let o=c(r,m),i=y.createHref(r);s.replaceState(o,"",i),a&&p&&p({action:f,location:y.location,delta:0})},go:e=>s.go(e)};return y}((function(e,t){let{pathname:n="/",search:r="",hash:o=""}=f(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),u("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:d(t))}),(function(e,t){s("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}),e)}function l(e,t){if(!1===e||null==e)throw new Error(t)}function s(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function c(e,t){return{usr:e.state,key:e.key,idx:t}}function u(e,t,n=null,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?f(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)}}function d({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function f(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function p(e,t,n="/"){return function(e,t,n,r){let o=T(("string"==typeof t?f(t):t).pathname||"/",n);if(null==o)return null;let i=m(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let a=null;for(let e=0;null==a&&e<i.length;++e){let t=A(o);a=N(i[e],t,r)}return a}(e,t,n,!1)}function m(e,t=[],n=[],r="",o=!1){let i=(e,i,a=o,s)=>{let c={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};if(c.relativePath.startsWith("/")){if(!c.relativePath.startsWith(r)&&a)return;l(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let u=O([r,c.relativePath]),d=n.concat(c);e.children&&e.children.length>0&&(l(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),m(e.children,t,d,u,a)),(null!=e.path||e.index)&&t.push({path:u,score:j(u,e.index),routesMeta:d})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of h(e.path))i(e,t,!0,n);else i(e,t)})),t}function h(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let a=h(r.join("/")),l=[];return l.push(...a.map((e=>""===e?i:[i,e].join("/")))),o&&l.push(...a),l.map((t=>e.startsWith("/")&&""===t?"/":t))}new WeakMap;var g=/^:[\w-]+$/,v=3,y=2,w=1,b=10,x=-2,M=e=>"*"===e;function j(e,t){let n=e.split("/"),r=n.length;return n.some(M)&&(r+=x),t&&(r+=y),n.filter((e=>!M(e))).reduce(((e,t)=>e+(g.test(t)?v:""===t?w:b)),r)}function N(e,t,n=!1){let{routesMeta:r}=e,o={},i="/",a=[];for(let e=0;e<r.length;++e){let l=r[e],s=e===r.length-1,c="/"===i?t:t.slice(i.length)||"/",u=E({path:l.relativePath,caseSensitive:l.caseSensitive,end:s},c),d=l.route;if(!u&&s&&n&&!r[r.length-1].route.index&&(u=E({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!u)return null;Object.assign(o,u.params),a.push({params:o,pathname:O([i,u.pathname]),pathnameBase:R(O([i,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(i=O([i,u.pathnameBase]))}return a}function E(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t=!1,n=!0){s("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"))).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce(((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=l[r]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const o=l[r];return e[t]=n&&!o?void 0:(o||"").replace(/%2F/g,"/"),e}),{}),pathname:i,pathnameBase:a,pattern:e}}function A(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return s(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function T(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}var S=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,I=e=>S.test(e);function D(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}function k(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function C(e){let t=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function L(e,t,n,r=!1){let o;"string"==typeof e?o=f(e):(o={...e},l(!o.pathname||!o.pathname.includes("?"),k("?","pathname","search",o)),l(!o.pathname||!o.pathname.includes("#"),k("#","pathname","hash",o)),l(!o.search||!o.search.includes("#"),k("#","search","hash",o)));let i,a=""===e||""===o.pathname,c=a?"/":o.pathname;if(null==c)i=n;else{let e=t.length-1;if(!r&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let u=function(e,t="/"){let n,{pathname:r,search:o="",hash:i=""}="string"==typeof e?f(e):e;if(r)if(I(r))n=r;else{if(r.includes("//")){let e=r;r=r.replace(/\/\/+/g,"/"),s(!1,`Pathnames cannot have embedded double slashes - normalizing ${e} -> ${r}`)}n=r.startsWith("/")?D(r.substring(1),"/"):D(r,t)}else n=t;return{pathname:n,search:P(o),hash:z(i)}}(o,i),d=c&&"/"!==c&&c.endsWith("/"),p=(a||"."===c)&&n.endsWith("/");return u.pathname.endsWith("/")||!d&&!p||(u.pathname+="/"),u}var O=e=>e.join("/").replace(/\/\/+/g,"/"),R=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),P=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",z=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",_=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function F(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function U(e){return e.map((e=>e.route.path)).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var B="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function H(e,t){let n=e;if("string"!=typeof n||!S.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(B)try{let e=new URL(window.location.href),r=n.startsWith("//")?new URL(e.protocol+n):new URL(n),i=T(r.pathname,t);r.origin===e.origin&&null!=i?n=i+r.search+r.hash:o=!0}catch(e){s(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:n}}Symbol("Uninstrumented"),Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var V=["POST","PUT","PATCH","DELETE"],W=(new Set(V),["GET",...V]);new Set(W),Symbol("ResetLoaderData");var q=o.createContext(null);q.displayName="DataRouter";var Q=o.createContext(null);Q.displayName="DataRouterState";var Y=o.createContext(!1);var $=o.createContext({isTransitioning:!1});$.displayName="ViewTransition",o.createContext(new Map).displayName="Fetchers",o.createContext(null).displayName="Await";var G=o.createContext(null);G.displayName="Navigation";var Z=o.createContext(null);Z.displayName="Location";var K=o.createContext({outlet:null,matches:[],isDataRoute:!1});K.displayName="Route";var X=o.createContext(null);X.displayName="RouteError";var J=!0,ee="REACT_ROUTER_ERROR";function te(){return null!=o.useContext(Z)}function ne(){return l(te(),"useLocation() may be used only in the context of a <Router> component."),o.useContext(Z).location}function re(e){l(te(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:t}=ne();return o.useMemo((()=>E(e,A(t))),[t,e])}var oe="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ie(e){o.useContext(G).static||o.useLayoutEffect(e)}function ae(){let{isDataRoute:e}=o.useContext(K);return e?function(){let{router:e}=function(e){let t=o.useContext(q);return l(t,he(e)),t}("useNavigate"),t=ge("useNavigate"),n=o.useRef(!1);return ie((()=>{n.current=!0})),o.useCallback((async(r,o={})=>{s(n.current,oe),n.current&&("number"==typeof r?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))}),[e,t])}():function(){l(te(),"useNavigate() may be used only in the context of a <Router> component.");let e=o.useContext(q),{basename:t,navigator:n}=o.useContext(G),{matches:r}=o.useContext(K),{pathname:i}=ne(),a=JSON.stringify(C(r)),c=o.useRef(!1);return ie((()=>{c.current=!0})),o.useCallback(((r,o={})=>{if(s(c.current,oe),!c.current)return;if("number"==typeof r)return void n.go(r);let l=L(r,JSON.parse(a),i,"path"===o.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:O([t,l.pathname])),(o.replace?n.replace:n.push)(l,o.state,o)}),[t,n,a,i,e])}()}function le(e,{relative:t}={}){let{matches:n}=o.useContext(K),{pathname:r}=ne(),i=JSON.stringify(C(n));return o.useMemo((()=>L(e,JSON.parse(i),r,"path"===t)),[e,i,r,t])}function se(e,t,n,r,i){l(te(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=o.useContext(G),{matches:c}=o.useContext(K),u=c[c.length-1],d=u?u.params:{},m=u?u.pathname:"/",h=u?u.pathnameBase:"/",g=u&&u.route;if(J){let e=g&&g.path||"";ye(m,!g||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let v,y=ne();if(t){let e="string"==typeof t?f(t):t;l("/"===h||e.pathname?.startsWith(h),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${h}" but pathname "${e.pathname}" was given in the \`location\` prop.`),v=e}else v=y;let w=v.pathname||"/",b=w;if("/"!==h){let e=h.replace(/^\//,"").split("/");b="/"+w.replace(/^\//,"").split("/").slice(e.length).join("/")}let x=p(e,{pathname:b});J&&(s(g||null!=x,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),s(null==x||void 0!==x[x.length-1].route.element||void 0!==x[x.length-1].route.Component||void 0!==x[x.length-1].route.lazy,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`));let M=function(e,t=[],n=null,r=null){if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let i=e,a=n?.errors;if(null!=a){let e=i.findIndex((e=>e.route.id&&void 0!==a?.[e.route.id]));l(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,e+1))}let s=!1,c=-1;if(n)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:r}=n,o=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!r||void 0===r[t.route.id]);if(t.route.lazy||o){s=!0,i=c>=0?i.slice(0,c+1):[i[0]];break}}}let u=n&&r?(e,t)=>{r(e,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:U(n.matches),errorInfo:t})}:void 0;return i.reduceRight(((e,r,l)=>{let d,f=!1,p=null,m=null;n&&(d=a&&r.route.id?a[r.route.id]:void 0,p=r.route.errorElement||ue,s&&(c<0&&0===l?(ye("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,m=null):c===l&&(f=!0,m=r.route.hydrateFallbackElement||null)));let h=t.concat(i.slice(0,l+1)),g=()=>{let t;return t=d?p:f?m:r.route.Component?o.createElement(r.route.Component,null):r.route.element?r.route.element:e,o.createElement(me,{match:r,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===l)?o.createElement(de,{location:n.location,revalidation:n.revalidation,component:p,error:d,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:u}):g()}),null)}(x&&x.map((e=>Object.assign({},e,{params:Object.assign({},d,e.params),pathname:O([h,a.encodeLocation?a.encodeLocation(e.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?h:O([h,a.encodeLocation?a.encodeLocation(e.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])}))),c,n,r,i);return t&&M?o.createElement(Z.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},M):M}function ce(){let e=function(){let e=o.useContext(X),t=function(e){let t=o.useContext(Q);return l(t,he(e)),t}("useRouteError"),n=ge("useRouteError");return void 0!==e?e:t.errors?.[n]}(),t=F(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},s=null;return J&&(console.error("Error handled by React Router default ErrorBoundary:",e),s=o.createElement(o.Fragment,null,o.createElement("p",null,"💿 Hey developer 👋"),o.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",o.createElement("code",{style:a},"ErrorBoundary")," or"," ",o.createElement("code",{style:a},"errorElement")," prop on your route."))),o.createElement(o.Fragment,null,o.createElement("h2",null,"Unexpected Application Error!"),o.createElement("h3",{style:{fontStyle:"italic"}},t),n?o.createElement("pre",{style:i},n):null,s)}o.createContext(null);var ue=o.createElement(ce,null),de=class extends o.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=function(e){if(e.startsWith(`${ee}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new _(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?o.createElement(K.Provider,{value:this.props.routeContext},o.createElement(X.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?o.createElement(pe,{error:e},t):t}};de.contextType=Y;var fe=new WeakMap;function pe({children:e,error:t}){let{basename:n}=o.useContext(G);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${ee}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let r=fe.get(t);if(r)throw r;let i=H(e.location,n);if(B&&!fe.get(t)){if(!i.isExternal&&!e.reloadDocument){const n=Promise.resolve().then((()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace})));throw fe.set(t,n),n}window.location.href=i.absoluteURL||i.to}return o.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function me({routeContext:e,match:t,children:n}){let r=o.useContext(q);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),o.createElement(K.Provider,{value:e},n)}function he(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ge(e){let t=function(e){let t=o.useContext(K);return l(t,he(e)),t}(e),n=t.matches[t.matches.length-1];return l(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}var ve={};function ye(e,t,n){t||ve[e]||(ve[e]=!0,s(!1,n))}function we(e){l(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function be({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:a=!1,unstable_useTransitions:c}){l(!te(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),d=o.useMemo((()=>({basename:u,navigator:i,static:a,unstable_useTransitions:c,future:{}})),[u,i,a,c]);"string"==typeof n&&(n=f(n));let{pathname:p="/",search:m="",hash:h="",state:g=null,key:v="default"}=n,y=o.useMemo((()=>{let e=T(p,u);return null==e?null:{location:{pathname:e,search:m,hash:h,state:g,key:v},navigationType:r}}),[u,p,m,h,g,v,r]);return s(null!=y,`<Router basename="${u}"> is not able to match the URL "${p}${m}${h}" because it does not start with the basename, so the <Router> won't render anything.`),null==y?null:o.createElement(G.Provider,{value:d},o.createElement(Z.Provider,{children:t,value:y}))}function xe({children:e,location:t}){return se(Me(e),t)}function Me(e,t=[]){let n=[];return o.Children.forEach(e,((e,r)=>{if(!o.isValidElement(e))return;let i=[...t,r];if(e.type===o.Fragment)return void n.push.apply(n,Me(e.props.children,i));l(e.type===we,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),l(!e.props.index||!e.props.children,"An index route cannot have child routes.");let a={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=Me(e.props.children,i)),n.push(a)})),n}(r||(r=n.t(o,2))).useOptimistic,o.memo((function({routes:e,future:t,state:n,onError:r}){return se(e,void 0,n,r,t)})),o.Component;var je="get",Ne="application/x-www-form-urlencoded";function Ee(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}var Ae=null,Te=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Se(e){return null==e||Te.has(e)?e:(s(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ne}"`),null)}function Ie(e,t){if(!1===e||null==e)throw new Error(t)}function De(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function ke(e,t,n,r,o,i){let a=(e,t)=>!n[t]||e.route.id!==n[t].route.id,l=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===i?t.filter(((e,t)=>a(e,t)||l(e,t))):"data"===i?t.filter(((t,i)=>{let s=r.routes[t.route.id];if(!s||!s.hasLoader)return!1;if(a(t,i)||l(t,i))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0})):[]}function Ce(e,t,{includeHydrateFallback:n}={}){return r=e.map((e=>{let r=t.routes[e.route.id];if(!r)return[];let o=[r.module];return r.clientActionModule&&(o=o.concat(r.clientActionModule)),r.clientLoaderModule&&(o=o.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(o=o.concat(r.hydrateFallbackModule)),r.imports&&(o=o.concat(r.imports)),o})).flat(1),[...new Set(r)];var r}function Le(){let e=o.useContext(q);return Ie(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Oe(){let e=o.useContext(Q);return Ie(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0"),"undefined"!=typeof window?window:"undefined"!=typeof globalThis&&globalThis,Symbol("SingleFetchRedirect");var Re=o.createContext(void 0);function Pe(){let e=o.useContext(Re);return Ie(e,"You must render this element inside a <HydratedRouter> element"),e}function ze(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function _e({page:e,...t}){let{router:n}=Le(),r=o.useMemo((()=>p(n.routes,e,n.basename)),[n.routes,e,n.basename]);return r?o.createElement(Ue,{page:e,matches:r,...t}):null}function Fe(e){let{manifest:t,routeModules:n}=Pe(),[r,i]=o.useState([]);return o.useEffect((()=>{let r=!1;return async function(e,t,n){return function(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,o)=>{if(t&&(null==(i=o)||"string"!=typeof i.page)&&"script"===o.as&&o.href&&r.has(o.href))return e;var i;let a=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(o));return n.has(a)||(n.add(a),e.push({key:a,link:o})),e}),[])}((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await async function(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise((()=>{}))}}(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(De).filter((e=>"stylesheet"===e.rel||"preload"===e.rel)).map((e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"})))}(e,t,n).then((e=>{r||i(e)})),()=>{r=!0}}),[e,t,n]),r}function Ue({page:e,matches:t,...n}){let r=ne(),{manifest:i,routeModules:a}=Pe(),{basename:l}=Le(),{loaderData:s,matches:c}=Oe(),u=o.useMemo((()=>ke(e,t,c,i,r,"data")),[e,t,c,i,r]),d=o.useMemo((()=>ke(e,t,c,i,r,"assets")),[e,t,c,i,r]),f=o.useMemo((()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,o=!1;if(t.forEach((e=>{let t=i.routes[e.route.id];t&&t.hasLoader&&(!u.some((t=>t.route.id===e.route.id))&&e.route.id in s&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?o=!0:n.add(e.route.id))})),0===n.size)return[];let c=function(e,t,n){let r="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return"/"===r.pathname?r.pathname=`_root.${n}`:t&&"/"===T(r.pathname,t)?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}(e,l,"data");return o&&n.size>0&&c.searchParams.set("_routes",t.filter((e=>n.has(e.route.id))).map((e=>e.route.id)).join(",")),[c.pathname+c.search]}),[l,s,r,i,u,t,e,a]),p=o.useMemo((()=>Ce(d,i)),[d,i]),m=Fe(d);return o.createElement(o.Fragment,null,f.map((e=>o.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))),p.map((e=>o.createElement("link",{key:e,rel:"modulepreload",href:e,...n}))),m.map((({key:e,link:t})=>o.createElement("link",{key:e,nonce:n.nonce,...t}))))}Re.displayName="FrameworkContext";function Be(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}o.Component;var He="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{He&&(window.__reactRouterVersion="7.11.0")}catch(e){}function Ve({basename:e,children:t,unstable_useTransitions:n,window:r}){let i=o.useRef();null==i.current&&(i.current=a({window:r,v5Compat:!0}));let l=i.current,[s,c]=o.useState({action:l.action,location:l.location}),u=o.useCallback((e=>{!1===n?c(e):o.startTransition((()=>c(e)))}),[n]);return o.useLayoutEffect((()=>l.listen(u)),[l,u]),o.createElement(be,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:l,unstable_useTransitions:n})}var We=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,qe=o.forwardRef((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:i,replace:a,state:s,target:c,to:u,preventScrollReset:f,viewTransition:p,unstable_defaultShouldRevalidate:m,...h},g){let{basename:v,unstable_useTransitions:y}=o.useContext(G),w="string"==typeof u&&We.test(u),b=H(u,v),x=function(e,{relative:t}={}){l(te(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=o.useContext(G),{hash:i,pathname:a,search:s}=le(e,{relative:t}),c=a;return"/"!==n&&(c="/"===a?n:O([n,a])),r.createHref({pathname:c,search:s,hash:i})}(u=b.to,{relative:r}),[M,j,N]=function(e,t){let n=o.useContext(Re),[r,i]=o.useState(!1),[a,l]=o.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=t,p=o.useRef(null);o.useEffect((()=>{if("render"===e&&l(!0),"viewport"===e){let e=new IntersectionObserver((e=>{e.forEach((e=>{l(e.isIntersecting)}))}),{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}}),[e]),o.useEffect((()=>{if(r){let e=setTimeout((()=>{l(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let m=()=>{i(!0)},h=()=>{i(!1),l(!1)};return n?"intent"!==e?[a,p,{}]:[a,p,{onFocus:ze(s,m),onBlur:ze(c,h),onMouseEnter:ze(u,m),onMouseLeave:ze(d,h),onTouchStart:ze(f,m)}]:[!1,p,{}]}(n,h),E=function(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:a,viewTransition:l,unstable_defaultShouldRevalidate:s,unstable_useTransitions:c}={}){let u=ae(),f=ne(),p=le(e,{relative:a});return o.useCallback((m=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(m,t)){m.preventDefault();let t=void 0!==n?n:d(f)===d(p),h=()=>u(e,{replace:t,state:r,preventScrollReset:i,relative:a,viewTransition:l,unstable_defaultShouldRevalidate:s});c?o.startTransition((()=>h())):h()}}),[f,u,p,n,r,t,e,i,a,l,s,c])}(u,{replace:a,state:s,target:c,preventScrollReset:f,relative:r,viewTransition:p,unstable_defaultShouldRevalidate:m,unstable_useTransitions:y}),A=o.createElement("a",{...h,...N,href:b.absoluteURL||x,onClick:b.isExternal||i?e:function(t){e&&e(t),t.defaultPrevented||E(t)},ref:Be(g,j),target:c,"data-discover":w||"render"!==t?void 0:"true"});return M&&!w?o.createElement(o.Fragment,null,A,o.createElement(_e,{page:x})):A}));function Qe(e){let t=o.useContext(q);return l(t,function(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}(e)),t}qe.displayName="Link",o.forwardRef((function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:i,to:a,viewTransition:s,children:c,...u},d){let f=le(a,{relative:u.relative}),p=ne(),m=o.useContext(Q),{navigator:h,basename:g}=o.useContext(G),v=null!=m&&function(e,{relative:t}={}){let n=o.useContext($);l(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Qe("useViewTransitionState"),i=le(e,{relative:t});if(!n.isTransitioning)return!1;let a=T(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=T(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=E(i.pathname,s)||null!=E(i.pathname,a)}(f)&&!0===s,y=h.encodeLocation?h.encodeLocation(f).pathname:f.pathname,w=p.pathname,b=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;t||(w=w.toLowerCase(),b=b?b.toLowerCase():null,y=y.toLowerCase()),b&&g&&(b=T(b,g)||b);const x="/"!==y&&y.endsWith("/")?y.length-1:y.length;let M,j=w===y||!r&&w.startsWith(y)&&"/"===w.charAt(x),N=null!=b&&(b===y||!r&&b.startsWith(y)&&"/"===b.charAt(y.length)),A={isActive:j,isPending:N,isTransitioning:v},S=j?e:void 0;M="function"==typeof n?n(A):[n,j?"active":null,N?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let I="function"==typeof i?i(A):i;return o.createElement(qe,{...u,"aria-current":S,className:M,ref:d,style:I,to:a,viewTransition:s},"function"==typeof c?c(A):c)})).displayName="NavLink",o.forwardRef((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:s=je,action:c,onSubmit:u,relative:f,preventScrollReset:p,viewTransition:m,unstable_defaultShouldRevalidate:h,...g},v)=>{let{unstable_useTransitions:y}=o.useContext(G),w=function(){let{router:e}=Qe("useSubmit"),{basename:t}=o.useContext(G),n=ge("useRouteId"),r=e.fetch,i=e.navigate;return o.useCallback((async(e,o={})=>{let{action:a,method:l,encType:s,formData:c,body:u}=function(e,t){let n,r,o,i,a;if(Ee(l=e)&&"form"===l.tagName.toLowerCase()){let a=e.getAttribute("action");r=a?T(a,t):null,n=e.getAttribute("method")||je,o=Se(e.getAttribute("enctype"))||Ne,i=new FormData(e)}else if(function(e){return Ee(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Ee(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||a.getAttribute("action");if(r=l?T(l,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||je,o=Se(e.getAttribute("formenctype"))||Se(a.getAttribute("enctype"))||Ne,i=new FormData(a,e),!function(){if(null===Ae)try{new FormData(document.createElement("form"),0),Ae=!1}catch(e){Ae=!0}return Ae}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";i.append(`${e}x`,"0"),i.append(`${e}y`,"0")}else t&&i.append(t,r)}}else{if(Ee(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=je,r=null,o=Ne,a=e}var l;return i&&"text/plain"===o&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:a}}(e,t);if(!1===o.navigate){let e=o.fetcherKey||$e();await r(e,n,o.action||a,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:c,body:u,formMethod:o.method||l,formEncType:o.encType||s,flushSync:o.flushSync})}else await i(o.action||a,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:c,body:u,formMethod:o.method||l,formEncType:o.encType||s,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})}),[r,i,t,n])}(),b=function(e,{relative:t}={}){let{basename:n}=o.useContext(G),r=o.useContext(K);l(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),a={...le(e||".",{relative:t})},s=ne();if(null==e){a.search=s.search;let e=new URLSearchParams(a.search),t=e.getAll("index");if(t.some((e=>""===e))){e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();a.search=n?`?${n}`:""}}return e&&"."!==e||!i.route.index||(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(a.pathname="/"===a.pathname?n:O([n,a.pathname])),d(a)}(c,{relative:f}),x="get"===s.toLowerCase()?"get":"post",M="string"==typeof c&&We.test(c);return o.createElement("form",{ref:v,method:x,action:b,onSubmit:r?u:e=>{if(u&&u(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,l=r?.getAttribute("formmethod")||s,c=()=>w(r||e.currentTarget,{fetcherKey:t,method:l,navigate:n,replace:i,state:a,relative:f,preventScrollReset:p,viewTransition:m,unstable_defaultShouldRevalidate:h});y&&!1!==n?o.startTransition((()=>c())):c()},...g,"data-discover":M||"render"!==e?void 0:"true"})})).displayName="Form";var Ye=0,$e=()=>`__${String(++Ye)}__`},6695:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(4234),o=n(3928),i=n(9337),a=n(7723),l=n(790);const s=()=>(0,l.jsxs)(r.A,{className:"wppbh-app-commerce-page nfd-page-solutions nfd-w-full",children:[(0,l.jsxs)("div",{className:"wppbh-app-help-page__header nfd-flex nfd-flex-col nfd-gap-y-4",children:[(0,l.jsx)(o.Ay,{as:"h1",children:(0,a.__)("Premium tools available in eCommerce Add-Ons","wp-plugin-bluehost")}),(0,l.jsx)(o.Ay,{as:"h2",className:"nfd-font-normal nfd-text-[13px] nfd-color-body",children:(0,a.__)("Discover exclusive features, designed to deliver unmatched value and elevate your online experience.","wp-plugin-bluehost")})]}),(0,l.jsx)(i.Content,{})]})},6717:(e,t,n)=>{"use strict";n.d(t,{S:()=>i});var r=n(1609);let o=(0,r.createContext)(!1);function i(){return(0,r.useContext)(o)}},6729:(e,t,n)=>{"use strict";n.d(t,{h:()=>f});var r,o,i,a,l,s,c,u=n(1609);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(null,arguments)}var f=function(e){return u.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:45,height:44,viewBox:"0 0 45 44"},e),r||(r=u.createElement("path",{fill:"#333",d:"M2.326 44a1.6 1.6 0 0 1-1.13-.473 1.59 1.59 0 0 1-.369-1.697l9.384-25.262a.713.713 0 0 1 1.333.497l-9.385 25.26a.17.17 0 0 0 .043.195c.04.04.103.077.195.043l25.26-9.384a.712.712 0 0 1 .497 1.334L2.892 43.897q-.28.104-.566.103"})),o||(o=u.createElement("path",{fill:"#333",d:"M27.192 34.667c-2.656 0-6.983-2.952-10.588-6.556-4.52-4.52-8.014-10.179-5.945-12.248.566-.566 1.75-1.024 4.174.014a.711.711 0 1 1-.558 1.307c-1.51-.645-2.34-.587-2.61-.315-.873.874 1.008 5.299 5.946 10.238s9.361 6.82 10.237 5.946c.276-.276.332-1.12-.337-2.662a.712.712 0 0 1 1.305-.567c1.07 2.464.611 3.662.04 4.234-.42.42-.987.61-1.662.61zM21.132 37.066a.7.7 0 0 1-.253-.047c-2.266-.865-5.068-2.864-7.692-5.488-1.41-1.41-2.678-2.919-3.668-4.363a.71.71 0 1 1 1.172-.805c.941 1.373 2.151 2.814 3.5 4.162 2.45 2.45 5.139 4.382 7.192 5.166a.71.71 0 0 1-.253 1.375zM15.681 39.089a.7.7 0 0 1-.234-.04c-1.837-.639-3.963-2.078-5.833-3.948a20.3 20.3 0 0 1-2.283-2.704.712.712 0 0 1 1.165-.816 19 19 0 0 0 2.123 2.513c1.724 1.724 3.654 3.04 5.295 3.61a.713.713 0 0 1-.233 1.385M9.984 41.125a.7.7 0 0 1-.233-.04c-1.277-.444-2.594-1.3-3.706-2.412a12 12 0 0 1-.833-.926.712.712 0 0 1 1.109-.891q.339.422.73.812c.963.962 2.087 1.7 3.167 2.075a.713.713 0 0 1-.233 1.384z"})),i||(i=u.createElement("path",{fill:"#333",d:"M37.232 33.4a3.59 3.59 0 0 1-3.383-2.4.71.71 0 1 1 1.342-.47 2.16 2.16 0 0 0 2.748 1.326 3.186 3.186 0 0 0 1.956-4.055l-.127-.367a3.57 3.57 0 0 0-3.622-2.386l-.461.073a20.66 20.66 0 0 0-9.76 4.36.711.711 0 0 1-.897-1.102 22.1 22.1 0 0 1 10.432-4.661l.491-.08.057-.007a4.99 4.99 0 0 1 5.103 3.333l.127.368a4.614 4.614 0 0 1-2.83 5.867c-.388.135-.786.201-1.176.201zM15.601 19.972a.71.71 0 0 1-.551-1.16 14.15 14.15 0 0 0 2.984-6.682l.048-.312A2.27 2.27 0 0 0 16.57 9.53l-.255-.09a2 2 0 0 0-2.543 1.227 1.28 1.28 0 0 0 .79 1.636.71.71 0 1 1-.47 1.342 2.7 2.7 0 0 1-1.545-1.378 2.7 2.7 0 0 1-.118-2.067 3.42 3.42 0 0 1 4.355-2.101l.255.09a3.69 3.69 0 0 1 2.462 3.768q-.001.029-.007.056l-.055.342a15.6 15.6 0 0 1-3.286 7.354.71.71 0 0 1-.553.263zM44.289 9.168a.7.7 0 0 1-.503-.208l-2.22-2.22a.711.711 0 0 1 1.005-1.006l2.22 2.22a.711.711 0 0 1-.502 1.214"})),a||(a=u.createElement("path",{fill:"#333",d:"M42.068 9.168a.711.711 0 0 1-.503-1.214l2.221-2.22a.71.71 0 1 1 1.005 1.005l-2.22 2.221a.7.7 0 0 1-.503.208M23.339 3.643a.7.7 0 0 1-.503-.209l-2.22-2.22A.711.711 0 0 1 21.62.208l2.22 2.221a.711.711 0 0 1-.502 1.214"})),l||(l=u.createElement("path",{fill:"#333",d:"M21.119 3.643a.711.711 0 0 1-.503-1.214l2.221-2.22a.71.71 0 1 1 1.005 1.005l-2.22 2.22a.7.7 0 0 1-.503.209M31.933 42.235a.7.7 0 0 1-.503-.208l-2.22-2.221a.71.71 0 0 1 1.005-1.005l2.22 2.22a.711.711 0 0 1-.502 1.214"})),s||(s=u.createElement("path",{fill:"#333",d:"M29.712 42.235a.711.711 0 0 1-.503-1.214l2.221-2.22a.71.71 0 0 1 1.005 1.005l-2.22 2.22a.7.7 0 0 1-.503.209M2.932 18.862a.7.7 0 0 1-.503-.208l-2.22-2.221a.71.71 0 0 1 1.005-1.005l2.22 2.22a.711.711 0 0 1-.502 1.214"})),c||(c=u.createElement("path",{fill:"#333",d:"M.71 18.862a.711.711 0 0 1-.503-1.214l2.222-2.22a.71.71 0 0 1 1.005 1.005l-2.22 2.22a.7.7 0 0 1-.503.209M20.884 24.459a.71.71 0 0 1-.503-1.213L31.244 12.38a.71.71 0 1 1 1.006 1.006L21.387 24.25a.7.7 0 0 1-.503.208M33.887 11.455a.71.71 0 0 1-.503-1.214l1.341-1.34a.71.71 0 1 1 1.006 1.005l-1.341 1.34a.7.7 0 0 1-.503.21M37.286 8.058a.711.711 0 0 1-.503-1.214l.163-.163a.71.71 0 1 1 1.006 1.006l-.163.163a.7.7 0 0 1-.503.208M18.243 22.219a.712.712 0 0 1-.581-1.12l6.279-8.926a.71.71 0 1 1 1.163.818l-6.28 8.926a.71.71 0 0 1-.583.302zM25.761 11.536a.712.712 0 0 1-.581-1.12l.774-1.103a.71.71 0 1 1 1.163.818l-.775 1.103a.71.71 0 0 1-.583.302zM27.724 8.745a.71.71 0 0 1-.581-1.12l.093-.133a.71.71 0 1 1 1.163.817l-.094.134a.71.71 0 0 1-.583.302zM23.009 26.984a.712.712 0 0 1-.41-1.292l8.925-6.28a.71.71 0 1 1 .818 1.163l-8.926 6.28a.7.7 0 0 1-.409.129zM33.692 19.466a.712.712 0 0 1-.41-1.292l1.1-.775a.71.71 0 1 1 .818 1.163l-1.101.775a.7.7 0 0 1-.409.129zM36.483 17.502a.7.7 0 0 1-.581-.302.71.71 0 0 1 .172-.99l.133-.094a.71.71 0 1 1 .818 1.163l-.133.094a.7.7 0 0 1-.409.129"})))}},6763:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(4586),o=n(1262),i=n(7661),a=n(2499),l=n(515),s=n(9641),c=n(790),__=n(7723).__;const u=[{name:"free-shipping",title:__("Free Shipping","wp-plugin-bluehost"),description:__("Attract and retain customers by offering free shipping based on cart amount, location or store category.","wp-plugin-bluehost"),icon:(0,c.jsx)(r.h,{})},{name:"bogo",title:__("Buy 1 Get 1","wp-plugin-bluehost"),description:__("Attract customers with a compelling deal where they can buy one product and get another product for free.","wp-plugin-bluehost"),icon:(0,c.jsx)(o.h,{})},{name:"gift",title:__("Gift Product in Cart","wp-plugin-bluehost"),description:__("Reward customers with a free gift in their cart based on total cart value, or specific products or categories.","wp-plugin-bluehost"),icon:(0,c.jsx)(i.h,{})},{name:"category-discount",title:__("Category Discount","wp-plugin-bluehost"),description:__("Give your customers a discount on specific categories of products and boost sales for those categories.","wp-plugin-bluehost"),icon:(0,c.jsx)(a.h,{})},{name:"upsell-thank-you",title:__("Upsell in Thank You Page","wp-plugin-bluehost"),description:__("Maximize sales by presenting relevant upsell options after customers have completed their purchase.","wp-plugin-bluehost"),icon:(0,c.jsx)(l.h,{})},{name:"last-minute-deal",title:__("Last Minute Deal","wp-plugin-bluehost"),description:__("Create urgency with a special time-limited deal for customers on the cart and checkout pages.","wp-plugin-bluehost"),icon:(0,c.jsx)(s.h,{})}]},6777:(e,t,n)=>{"use strict";n.d(t,{Y:()=>i});var r=n(3928),o=n(790);const i=({title:e,description:t})=>(0,o.jsxs)("div",{className:"nfd-marketplace-page__header nfd-flex nfd-flex-col nfd-gap-y-4 min-[782px]:nfd-mb-6",children:[!!e&&(0,o.jsx)(r.Ay,{children:e}),!!t&&(0,o.jsx)("span",{children:t})]})},6820:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(1609),o=n(6942),i=n.n(o),a=n(5556),l=n.n(a),s=n(790);const c=(0,r.forwardRef)((({as:e,className:t,label:n,requiredIndicator:r,children:o,...a},l)=>{var c;const u=!(null==a||null===(c=a.dangerouslySetInnerHTML)||void 0===c||!c.__html);return u&&r&&(a.dangerouslySetInnerHTML.__html+='<span class="nfd-label__required">*</span>'),u?(0,s.jsx)(e,{ref:l,className:i()("nfd-label",t),...a}):(0,s.jsxs)(e,{ref:l,className:i()("nfd-label",t),...a,children:[n||o||null,r&&(0,s.jsx)("span",{className:"nfd-label__required",children:"*"})]})})),u={label:l().string,children:l().string,as:l().elementType,className:l().string,required:l().bool,requiredIndicator:l().bool};c.propTypes=u,c.defaultProps={label:"",children:"",as:"label",className:"",requiredIndicator:!1},c.displayName="Label";const d=e=>(0,s.jsx)(c,{...e});d.propTypes=u,d.defaultProps=c.defaultProps,d.displayName="Label";const f=c},6829:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(6087),o=n(2609),i=n(7636),a=n(9152),l=n(236),s=n(524),c=n(1124),u=n(2914),d=n(790),f=n(6087).useContext,__=n(7723).__,p=n(7723).sprintf,_n=n(7723)._n;const m=({setError:e,notify:t})=>{const{store:n,setStore:a}=f(s.Ay),[l,u]=(0,r.useState)(n.emptyTrashDays);let m=Math.floor(l/7);const h=()=>p( //translators: %s: number of weeks. `The trash will automatically empty every ${numTrashWeeks} weeks.` _n("The trash will automatically empty every %s week.","The trash will automatically empty every %s weeks.",parseInt(m),"wp-plugin-bluehost"),m);return(0,o.A)((()=>{a({...n,emptyTrashDays:l}),m=Math.floor(l/7),t.push("empty-trash-notice",{title:__("Trash setting saved","wp-plugin-bluehost"),description:(0,d.jsx)("span",{children:h()}),variant:"success",autoDismiss:5e3})}),[l]),(0,d.jsx)(i.A,{id:"empty-trash-select",label:__("Number of weeks in between emptying trash","wp-plugin-bluehost"),description:h(),value:l,selectedLabel:m,options:[{label:"1",value:"7"},{label:"2",value:"14"},{label:"3",value:"21"},{label:"4",value:"30"}],onChange:t=>{(0,c.co)({emptyTrashDays:t},e,(e=>{u(t)}))},className:"nfd-select-field__spaced"})},h=()=>{const[e,t]=(0,r.useState)(!1),n=(0,u.h)();return(0,d.jsx)(a.A.SettingsField,{title:__("Content Options","wp-plugin-bluehost"),description:__("Controls for how often to empty the trash.","wp-plugin-bluehost"),children:(0,d.jsxs)("div",{className:"nfd-flex nfd-flex-col nfd-gap-4",children:[(0,d.jsx)(m,{setError:t,notify:n}),e&&(0,d.jsx)(l.Ay,{variant:"error",children:__("Oops! Something went wrong. Please try again.","wp-plugin-bluehost")})]})})}},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},6948:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(1609);function o(){let e=(0,r.useRef)(new Map),t=(0,r.useCallback)(((t,n,r,o)=>{let i=(null==o?void 0:o.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:o}),t.addEventListener(n,i,o)}),[]),n=(0,r.useCallback)(((t,n,r,o)=>{var i;let a=(null===(i=e.current.get(r))||void 0===i?void 0:i.fn)||r;t.removeEventListener(n,a,o),e.current.delete(r)}),[]),o=(0,r.useCallback)((()=>{e.current.forEach(((e,t)=>{n(e.eventTarget,e.type,t,e.options)}))}),[n]);return(0,r.useEffect)((()=>o),[o]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:o}}},6984:(e,t,n)=>{"use strict";n.d(t,{K:()=>i});var r=n(1912),o=n(9397);function i(e,t,n=()=>[document.body]){let i=(0,o.S)(e,"scroll-lock");(0,r.G)(i,t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}}))}},6992:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});var r=n(1609),o=n(2599);function i(){let[e]=(0,r.useState)(o.e);return(0,r.useEffect)((()=>()=>e.dispose()),[e]),e}},7049:(e,t,n)=>{"use strict";n.d(t,{J:()=>l});var r,o=n(9953),i=n(1609);const a=null!==(r=i.useInsertionEffect)&&void 0!==r?r:o.N;function l(e){const t=(0,i.useRef)(null);return a((()=>{t.current=e}),[e]),(0,i.useCallback)(((...e)=>{const n=t.current;return null==n?void 0:n(...e)}),[])}},7076:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(5556),o=n.n(r),i=n(8468),a=n(6942),l=n.n(a),s=n(790);const c={variant:{success:"nfd-validation-message--success",warning:"nfd-validation-message--warning",info:"nfd-validation-message--info",error:"nfd-validation-message--error"}},u=({as:e="p",variant:t="info",children:n,className:r="",...o})=>(0,s.jsx)(e,{...o,className:l()("nfd-validation-message",c.variant[t],r),children:n});u.propTypes={as:o().elementType,variant:o().oneOf((0,i.keys)(c.variant)),message:o().node,className:o().string,children:o().node.isRequired};const d=u},7103:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(1455),o=n.n(r),i=n(6087),a=n(6658),l=n(4234),s=n(5495),c=n(5707),u=n(790),__=n(7723).__,d=n(6942);const f=()=>{(0,i.useEffect)((()=>{const e=document.getElementById("marketplace-portal");return e&&window.NFDPortalRegistry.registerPortal("marketplace",e),()=>{window.NFDPortalRegistry.unregisterPortal("marketplace")}}),[]);const e={supportsCTB:!0,text:{title:__("Marketplace","wp-plugin-bluehost"),subTitle:__("Explore our featured collection of tools and services.","wp-plugin-bluehost"),error:__("Oops, there was an error loading the marketplace, please try again later.","wp-plugin-bluehost"),noProducts:__("Sorry, no marketplace items. Please, try again later.","wp-plugin-bluehost"),loadMore:__("Load More","wp-plugin-bluehost"),productPage:{error:{title:__("Oops! Something Went Wrong","wp-plugin-bluehost"),description:__("An error occurred while loading the content. Please try again later.","wp-plugin-bluehost")}}}},t={apiFetch:o(),classNames:d,useState:i.useState,useEffect:i.useEffect,useLocation:a.zy,useMatch:a.RQ,useNavigate:a.Zp,NewfoldRuntime:s.NewfoldRuntime};return(0,u.jsx)(l.A,{className:"wppbh-app-marketplace-page",children:(0,u.jsx)(c.A,{constants:e,methods:t})})}},7143:e=>{"use strict";e.exports=window.wp.data},7193:(e,t,n)=>{"use strict";n.d(t,{B1:()=>I,C0:()=>f,Dz:()=>y,Jx:()=>l,LI:()=>i,PG:()=>m,RI:()=>a,Sg:()=>p,T9:()=>o,TV:()=>v,WJ:()=>b,_3:()=>d,bV:()=>T,jk:()=>r,lP:()=>A,nI:()=>S,qE:()=>u,sq:()=>h,w7:()=>w});const r=Math.min,o=Math.max,i=Math.round,a=Math.floor,l=e=>({x:e,y:e}),s={left:"right",right:"left",bottom:"top",top:"bottom"},c={start:"end",end:"start"};function u(e,t,n){return o(e,r(t,n))}function d(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function h(e){return"y"===e?"height":"width"}const g=new Set(["top","bottom"]);function v(e){return g.has(f(e))?"y":"x"}function y(e){return m(v(e))}function w(e,t,n){void 0===n&&(n=!1);const r=p(e),o=y(e),i=h(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=T(a)),[a,T(a)]}function b(e){const t=T(e);return[x(e),t,x(t)]}function x(e){return e.replace(/start|end/g,(e=>c[e]))}const M=["left","right"],j=["right","left"],N=["top","bottom"],E=["bottom","top"];function A(e,t,n,r){const o=p(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?j:M:t?M:j;case"left":case"right":return t?N:E;default:return[]}}(f(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(x)))),i}function T(e){return e.replace(/left|right|bottom|top/g,(e=>s[e]))}function S(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function I(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}},7278:(e,t,n)=>{"use strict";n.d(t,{h:()=>a});var r,o=n(1609);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}var a=function(e){return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 116.8 19.3"},e),r||(r=o.createElement("g",{fill:"#3575d3"},o.createElement("path",{d:"M0 0h5.3v5.3H0zm6.8 0h5.3v5.3H6.8zm6.9 0H19v5.3h-5.3zM0 6.8h5.3v5.3H0zm6.8 0h5.3v5.3H6.8zm6.9 0H19v5.3h-5.3zM0 13.7h5.3V19H0zm6.8 0h5.3V19H6.8zM13.7 13.7H19V19h-5.3zM29.8 8.2c1.1-1 2.5-1.5 4-1.5 2.7 0 5.3 1.8 5.3 6.3s-2.9 6.3-6.1 6.3c-1.6 0-3.2-.4-4.6-1.3V0h1.4zm0 9.1c1 .5 2.1.8 3.2.8 2.5 0 4.8-1.5 4.8-5.1 0-3.2-1.8-5.1-4.1-5.1-1.5.1-2.9.8-3.9 1.9zM41.5 19V0h1.3v19zm5.8-4.7c0 2.9 1.4 3.7 2.8 3.7 1.8-.1 3.3-1.1 4.2-2.7V6.9h1.4v12.2h-1.4v-2.4c-1 1.5-2.8 2.5-4.6 2.5-1.9 0-3.8-1.1-3.8-4.8V6.9h1.4zm21.4 3.9c-1.3.7-2.8 1.1-4.3 1-4.1-.1-6.2-3.4-6.1-6.8 0-3.2 2.5-5.8 5.6-5.8h.4c3.3.1 5.5 2.7 5.1 6.6h-9.8c0 2.6 2.1 4.7 4.7 4.8h.1c1.3 0 2.6-.3 3.8-.9zm-.5-6.1c.1-2.2-1.6-4.1-3.8-4.2h-.2c-2.4-.1-4.4 1.8-4.5 4.2zm5.6-2.9c1-1.6 2.6-2.5 4.5-2.6 2.4 0 3.9 1.8 3.9 4.6V19h-1.3v-7.6c0-2.6-1.4-3.6-2.8-3.6-1.8.2-3.3 1.2-4.2 2.7V19h-1.3V0H74c-.2 0-.2 9.2-.2 9.2m22.3 3.7c0 4-2.7 6.3-5.9 6.3-3.5 0-5.9-2.8-5.9-6.3-.2-3.3 2.3-6.1 5.6-6.3h.3c3.2.1 5.9 2.4 5.9 6.3m-10.3 0c0 2.7 1.6 5 4.5 5s4.5-2.4 4.5-5-1.7-5-4.5-5-4.5 2.3-4.5 5m13.4 4c1 .6 2.1 1 3.2 1 1.3 0 2.9-.5 2.8-1.8 0-1.1-1.2-2-3-2.7-2.1-.8-3.9-1.6-3.9-3.5s1.8-3.3 4.2-3.3c1.2 0 2.3.3 3.4.9l-.5 1.1c-.9-.5-1.8-.7-2.8-.7-2 0-2.9 1-2.9 2 0 1.3 1.5 1.8 3.4 2.6 2.9 1.1 3.6 2.5 3.6 3.6 0 1.9-1.8 3.1-4.2 3.1-1.4 0-2.7-.4-3.9-1.1zm16.4-10V8h-4v6.7c0 2 .8 3.2 2.6 3.3.8 0 1.6-.1 2.3-.5l.4 1.2c-.9.3-1.8.5-2.7.5-2.2 0-3.9-1.3-3.9-4.5V8H108V6.9h2.2V2.8h1.4v4.1z"}))))}},7280:(e,t,n)=>{"use strict";function r(e){return"object"==typeof e&&null!==e&&"nodeType"in e}function o(e){return r(e)&&"tagName"in e}function i(e){return o(e)&&"accessKey"in e}function a(e){return o(e)&&"tabIndex"in e}function l(e){return o(e)&&"style"in e}function s(e){return i(e)&&"IFRAME"===e.nodeName}function c(e){return i(e)&&"INPUT"===e.nodeName}function u(e){return i(e)&&"LABEL"===e.nodeName}function d(e){return i(e)&&"FIELDSET"===e.nodeName}function f(e){return i(e)&&"LEGEND"===e.nodeName}function p(e){return!!o(e)&&e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]')}n.d(t,{A3:()=>c,Er:()=>d,Gu:()=>s,H5:()=>p,Jb:()=>f,Lk:()=>a,Ll:()=>r,kS:()=>u,pv:()=>l,sb:()=>i})},7335:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609);function o({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 7.125C2.25 6.504 2.754 6 3.375 6h6c.621 0 1.125.504 1.125 1.125v3.75c0 .621-.504 1.125-1.125 1.125h-6a1.125 1.125 0 0 1-1.125-1.125v-3.75ZM14.25 8.625c0-.621.504-1.125 1.125-1.125h5.25c.621 0 1.125.504 1.125 1.125v8.25c0 .621-.504 1.125-1.125 1.125h-5.25a1.125 1.125 0 0 1-1.125-1.125v-8.25ZM3.75 16.125c0-.621.504-1.125 1.125-1.125h5.25c.621 0 1.125.504 1.125 1.125v2.25c0 .621-.504 1.125-1.125 1.125h-5.25a1.125 1.125 0 0 1-1.125-1.125v-2.25Z"}))}const i=r.forwardRef(o)},7338:(e,t,n)=>{"use strict";n.d(t,{D:()=>a});var r=n(7280);let o=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function i(e){var t,n;let i=null!=(t=e.innerText)?t:"",a=e.cloneNode(!0);if(!r.sb(a))return i;let l=!1;for(let e of a.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),l=!0;let s=l?null!=(n=a.innerText)?n:"":i;return o.test(s)&&(s=s.replace(o,"")),s}function a(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map((e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():i(t).trim()}return null})).filter(Boolean);if(e.length>0)return e.join(", ")}return i(e).trim()}},7555:(e,t,n)=>{"use strict";n.d(t,{bN:()=>h,u5:()=>m,vA:()=>y});var r,o,i,a=n(4126),l=n(2599),s=n(9851),c=Object.defineProperty,u=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},d=(e,t,n)=>(u(e,t,"read from private field"),n?n.call(e):t.get(e)),f=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},p=(e,t,n,r)=>(u(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);class m{constructor(e){f(this,r,{}),f(this,o,new a.G((()=>new Set))),f(this,i,new Set),((e,t,n)=>{((e,t,n)=>{t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n)})(this,"disposables",(0,l.e)()),p(this,r,e),s._.isServer&&this.disposables.microTask((()=>{this.dispose()}))}dispose(){this.disposables.dispose()}get state(){return d(this,r)}subscribe(e,t){if(s._.isServer)return()=>{};let n={selector:e,callback:t,current:e(d(this,r))};return d(this,i).add(n),this.disposables.add((()=>{d(this,i).delete(n)}))}on(e,t){return s._.isServer?()=>{}:(d(this,o).get(e).add(t),this.disposables.add((()=>{d(this,o).get(e).delete(t)})))}send(e){let t=this.reduce(d(this,r),e);if(t!==d(this,r)){p(this,r,t);for(let e of d(this,i)){let t=e.selector(d(this,r));h(e.current,t)||(e.current=t,e.callback(t))}for(let t of d(this,o).get(e.type))t(d(this,r),e)}}}function h(e,t){return!!Object.is(e,t)||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&(Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&g(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size===t.size&&g(e.entries(),t.entries()):!(!v(e)||!v(t))&&g(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()))}function g(e,t){for(;;){let n=e.next(),r=t.next();if(n.done&&r.done)return!0;if(n.done||r.done||!Object.is(n.value,r.value))return!1}}function v(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}function y(e){let[t,n]=e(),r=(0,l.e)();return(...e)=>{t(...e),r.dispose(),r.microTask(n)}}r=new WeakMap,o=new WeakMap,i=new WeakMap},7575:(e,t,n)=>{"use strict";n.d(t,{v:()=>u});var r=n(2599),o=n(2211),i=n(9397),a=n(6339);let l=new Map,s=new Map;function c(e){var t;let n=null!=(t=s.get(e))?t:0;return s.set(e,n+1),0!==n||(l.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>function(e){var t;let n=null!=(t=s.get(e))?t:1;if(1===n?s.delete(e):s.set(e,n-1),1!==n)return;let r=l.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,l.delete(e))}(e)}function u(e,{allowed:t,disallowed:n}={}){let l=(0,i.S)(e,"inert-others");(0,a.s)((()=>{var e,i;if(!l)return;let a=(0,r.e)();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&a.add(c(t));let s=null!=(i=null==t?void 0:t())?i:[];for(let e of s){if(!e)continue;let t=(0,o.T)(e);if(!t)continue;let n=e.parentElement;for(;n&&n!==t.body;){for(let e of n.children)s.some((t=>e.contains(t)))||a.add(c(e));n=n.parentElement}}return a.dispose}),[l,t,n])}},7590:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(4619),o=n(3928),i=n(7723),a=n(1100),l=n(790),s=n(6942);const c=()=>(0,l.jsxs)(r.A,{as:"a",className:s("nfd-quick-links-card nfd-quick-links-settings-card","nfd-flex nfd-flex-col nfd-gap-4 nfd-border nfd-border-[#D5D5D5]","nfd-no-underline nfd-shadow-none nfd-transition-all hover:nfd-shadow-md"),"data-nfd-click":"newfold-quick-links-settings","data-test-id":"quick-links-settings-link",href:"#/settings",children:[(0,l.jsxs)("div",{className:"nfd-quick-links-card__head nfd-flex nfd-items-center nfd-gap-2",children:[(0,l.jsx)("span",{className:"nfd-quick-links-card__icon nfd-p-[4px] nfd-bg-[#ddecff] nfd-rounded-[5px]",children:(0,l.jsx)(a.A,{width:16})}),(0,l.jsx)(o.Ay,{as:"h2",className:"nf-text-base nfd-font-semibold",children:(0,i.__)("Manage WordPress","wp-plugin-bluehost")})]}),(0,l.jsx)("p",{className:"nfd-mt-0 nfd-text-body",children:(0,i.__)("Security, performance, backups, staging & more.","wp-plugin-bluehost")}),(0,l.jsx)("p",{className:"nfd-mt-0 nfd-font-semibold nfd-text-[#196BDE]",children:(0,i.__)("Manage","wp-plugin-bluehost")})]})},7592:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(7723),o=n(1546),i=n(4619),a=n(3928),l=n(5495),s=n(790),c=n(6942);const u=()=>(0,s.jsxs)(i.A,{as:"a",className:c("nfd-quick-links-card nfd-quick-links-help-card","nfd-flex nfd-flex-col nfd-gap-4 nfd-border nfd-border-[#D5D5D5]","nfd-no-underline nfd-shadow-none nfd-transition-all hover:nfd-shadow-md"),"data-nfd-click":"newfold-quick-links-help","data-test-id":"quick-links-help-link",href:"#/help",onClick:e=>{l.NewfoldRuntime.hasCapability("canAccessHelpCenter")&&window.NewfoldFeatures.isEnabled("helpCenter")&&(e.preventDefault(),window.newfoldEmbeddedHelp.toggleNFDLaunchedEmbeddedHelp())},children:[(0,s.jsxs)("div",{className:"nfd-quick-links-card__head nfd-flex nfd-items-center nfd-gap-2",children:[(0,s.jsx)("span",{className:"nfd-quick-links-card__icon nfd-p-[4px] nfd-bg-[#ddecff] nfd-rounded-[5px]",children:(0,s.jsx)(o.A,{width:16})}),(0,s.jsx)(a.Ay,{as:"h2",className:"nf-text-base nfd-font-semibold",children:(0,r.__)("Get Help","wp-plugin-bluehost")})]}),(0,s.jsx)("p",{className:"nfd-mt-0 nfd-text-body",children:(0,r.__)("Master WordPress with help from our AI assistant.","wp-plugin-bluehost")}),(0,s.jsx)("p",{className:"nfd-mt-0 nfd-font-semibold nfd-no-underline nfd-text-[#196BDE]",children:(0,r.__)("Launch our AI Help","wp-plugin-bluehost")})]})},7636:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(6942),o=n.n(r),i=n(5556),a=n.n(i),l=n(2154),s=n(7076),c=n(5775),u=n(1609),d=n(790);const f=(0,u.forwardRef)((({id:e,label:t,description:n,disabled:r,validation:i,className:a,...u},f)=>{const{ids:p,describedBy:m}=(0,c.A)(e,{validation:null==i?void 0:i.message,description:n});return(0,d.jsxs)("div",{className:o()("nfd-select-field",r&&"nfd-select-field--disabled",a),children:[(0,d.jsx)(l.A,{ref:f,id:e,label:t,labelProps:{as:"label",className:"nfd-label nfd-select-field__label"},disabled:r,validation:i,className:"nfd-select-field__select",buttonProps:{"aria-describedby":m},...u}),(null==i?void 0:i.message)&&(0,d.jsx)(s.A,{variant:null==i?void 0:i.variant,id:p.validation,className:"nfd-select-field__validation",children:i.message}),n&&(0,d.jsx)("div",{id:p.description,className:"nfd-select-field__description",children:n})]})})),p={id:a().string.isRequired,name:a().string.isRequired,label:a().string.isRequired,description:a().node,disabled:a().bool,validation:a().shape({variant:a().string,message:a().node}),className:a().string};f.propTypes=p,f.Option=l.A.Option,f.Option.displayName="SelectField.Option",f.defaultProps={disabled:!1,validation:{},className:""},f.displayName="SelectField";const m=e=>(0,d.jsx)(f,{...e});m.propTypes=p,m.defaultProps=f.defaultProps,m.displayName="SelectField";const h=f},7661:(e,t,n)=>{"use strict";n.d(t,{h:()=>c});var r,o,i,a,l=n(1609);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(null,arguments)}var c=function(e){return l.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 106 60"},e),r||(r=l.createElement("g",{clipPath:"url(#a)"},l.createElement("path",{fill:"#346BD5",d:"m77 12.4-3 1c.4-1.3.4-2.7 0-4.1-1.3-3.4-4.8-5.4-8-4.3-3.2 1-4.5 3.6-6 10.2-5-4.4-7.6-5.7-10.9-4.6-3.2 1-4.8 4.6-3.7 8a6.7 6.7 0 0 0 2.4 3.4l-3 1a4 4 0 0 0-2.5 5l2.4 7.3c.2.7 1 1 1.7.9l1.2-.4 3.7 11a4 4 0 0 0 5 2.6l27.1-9a4 4 0 0 0 2.5-5l-3.7-11 1.3-.5c.7-.2 1-1 .8-1.6L82 14.8a4 4 0 0 0-5-2.4m-14.6 4.5C64.1 9.2 65.2 8 67 7.5c1.8-.6 3.8.5 4.5 2.6.6 2-.3 4.2-2 4.8l-7.2 2.3zM50 13c1.8-.6 3.3-.3 9.3 5l.2.1-7 2.4c-1.8.6-3.9-.6-4.5-2.7-.7-2 .2-4.2 2-4.8m14.2 31-8.7 3c-.7.1-1.4-.2-1.6-1l-3.7-11 9.9-3.3L64 44Zm-5-14.8-12.3 4-2-6.1c-.3-.7.1-1.4.8-1.6l11.1-3.7 2.5 7.4Zm12.4 12.4-5 1.6L59.3 21l5-1.7zm12-5.3c.2.7-.2 1.4-.9 1.6l-8.6 2.9L70 28.4l9.9-3.3 3.6 11.2Zm-2-14.5L69.1 26l-2.5-7.4 11.1-3.7c.7-.2 1.5.2 1.7.9l2 6.1Z"}))),o||(o=l.createElement("path",{fill:"#CCC",fillRule:"evenodd",d:"m21 2.7 3.8 12c-.4.3-.4.7-.2 1.4l.4 1.4a91 91 0 0 1 1 2.7c.5 2 1 3.8 1.7 5.7.2.7.9 1 1.5.8.4-.2.3-.6.1-.8v-.3l-1.6-5-1-3.4c-.3-.8-.2-1 .7-1l2.9.2a417 417 0 0 0 5.8.4l7.6.4 4.6.2 5.2.3 9 .5a4841 4841 0 0 0 14 .8l4.5.3 8.6.5 4.3.2 2.9.2 5.7.3c1 0 1 .2.9 1.1l-.6 3.6-.6 3.2c-.2.8.3 1.2 1 1 .5-.2.5-.5.6-.8v-.1l1.4-8.1c.2-1-.1-1.3-1-1.4l-6.3-.3-2.7-.2-3.1-.2-6.2-.3-6.5-.4-6.5-.3-4.4-.3-5.1-.3-8.5-.4a6262 6262 0 0 0-11.5-.7 2269 2269 0 0 1-13.7-.8l-3.2-.2-4-13a.8.8 0 0 0-.9-.6H9.5a.8.8 0 1 0 0 1.7zm24 56.6-3.9.5-2.2.2c-.6 0-.9-.4-1-1l-1.6-5-.7-2.2-.4-1.5a319 319 0 0 1-1.5-4.6c-.1-.3-.3-.7.3-.9s1.1 0 1.4.7l2.6 8.6.6 2 .3 1c.4 1.2.5 1.3 1.8 1.1L51.4 57l10.8-1.2 10-1.1 10-1.2 4.3-.5 10.7-1c.7-.1 1-.4 1.2-1.1l.9-5.2.4-2.4c0-.4.1-.8.7-1 .7 0 1 .2 1 1l-1 5v.1l-.7 4c-.1.7-.6 1-1.2 1l-9.2 1-1.9.3-6.5.7-6.5.8-7.8.8-8.3 1-5.6.6-7.6.8Zm57-28.6h1.9c.2 0 .4 0 .4-.3s-.3-.3-.5-.3h-.4l-2.2-.2-4.4-.1-6.4-.2-10.7-.4-9.4-.4-4.5-.1-5.5-.2-10.4-.4a9371 9371 0 0 0-22.6-.8c-.3 0-.5 0-.5.3s.2.4.5.4h.4l12.3.5c2.8 0 5.5.2 8.2.3l5 .1 4.5.2 8.2.3 7.4.3 8 .2 2.5.1H86l10.6.5 5.3.2ZM37 44h-1.2l-1.7.2h-.5a58 58 0 0 1-1.1 0c-.3 0-.5 0-.5-.3s.2-.4.5-.4h.1l1.4-.1a1412 1412 0 0 1 11-.4l9.5-.4 8.1-.3a771 771 0 0 1 10-.4c3.4 0 6.8-.2 10.2-.4 3 0 5.9-.2 8.8-.3l7.3-.3h2.9c.3 0 .6 0 .6.3 0 .4-.3.4-.6.4h-2.2l-2.3.1c-2 .2-4.2.2-6.3.3l-3.8.1-7.8.3a2358 2358 0 0 1-11 .4l-9.1.4-10 .3-2.8.1-9.4.4Zm-7.6-15.3c-.7-.1-.8.2-.6.8l2 6.6.8 2.7a185 185 0 0 1 1 3.4c.3.6.9.8 1.5.6.4-.2.3-.5.2-.8v-.2L32.4 36l-2-6.7c-.2-.5-.6-.8-1.1-.7Zm73.2 2.6c.4 0 .7.2.6.7l-1 5.8-.2.9-.1.8c0 .4-.2.6-.6.7-1 .3-1.2 0-1-1l.3-1.5 1-5.4c0-.7.3-1 1-1m-64-1.7.1.2L42.5 42c.1.3.2.7.6.5.4-.1.3-.4.2-.7v-.1a6995 6995 0 0 0-4-12.3c-.1-.2-.3-.3-.5-.2zm11.7.6V30c0-.2 0-.4.2-.5.3 0 .4.2.5.4l.8 3.4 1.2 5.2.6 2.5v.1l.1.2v.2c0 .2.1.4-.1.5-.4.1-.5-.2-.6-.5L51 33zm-2.6 25.7v-.2l-1-2.7-2.5-8c0-.4-.2-.7-.5-.6s-.2.4-.2.7a5970 5970 0 0 0 3.6 11c0 .2.2.3.4.2.2 0 .2-.2.2-.4M63.3 41l-1-7-.6-3.6v-.2c0-.2 0-.4.3-.4s.4.2.5.5l.4 3 1 7.4.1.4c0 .2 0 .4-.2.5-.2 0-.4-.1-.4-.3zm-6.4 13.7v-.2l-.3-1a5060 5060 0 0 0-2.3-9.3c0-.2-.2-.3-.4-.2-.2 0-.2.2-.2.4v.4l.7 2.7 1.5 6.3c0 .4.2.8.4 1.2 0 .2.2.3.4.2.2 0 .2-.2.2-.4ZM73 31.1c0 1.1 0 2.2.2 3.3v6.3c0 .2.1.5-.2.5-.4 0-.4-.3-.4-.5v-.1a52 52 0 0 1-.2-4.7 28 28 0 0 0-.1-5c0-.2 0-.5.4-.6.4 0 .4.4.3.7zm-7.3 21.6-.3-2.4-1-6v-.1c0-.3 0-.6-.4-.6-.3 0-.3.4-.3.6l1.4 9.6c0 .2.1.6.5.5.2 0 .2-.3.2-.5zm18-22c.2 0 .2.2.2.4v.3l-.4 3.8-.7 5v.4c-.1.2-.2.4-.5.3-.2 0-.2-.3-.2-.4l.1-1.3.6-5 .3-2.6v-.4h.1c0-.3.1-.6.4-.6ZM73.4 50.4h-.1v-6.6c0-.2 0-.6-.4-.6s-.4.3-.4.6V45c.2 1.5.1 3 .1 4.6V52l.1.5v.3c0 .3 0 .6.4.6s.3-.4.3-.7zm-35-24v.1l-.1.4h-.5l-.3-.6-1.2-3.9-1.2-4-.1-.4c0-.1-.1-.3.1-.4s.4 0 .5.2L36 19l1.7 5.4.6 2ZM92.2 40c0 .3 0 .5.3.6.3 0 .3-.3.4-.5V40a542 542 0 0 0 1.6-8.3c0-.2.1-.5-.2-.6-.3 0-.4.2-.5.5a19 19 0 0 0-.2 1l-.3 1.4-1.1 5.8zM81 52.6c-.4 0-.4-.3-.3-.5v-.2l.4-3.7.6-4.6c0-.3 0-.6.4-.6s.4.4.3.7l-1 8.2v.1c0 .3 0 .7-.4.6M50.3 27v-.1l-.1-.6-1.8-7.4c-.1-.2-.2-.6-.5-.5-.4 0-.3.4-.2.6v.1l1.8 7.5c0 .2 0 .4.2.6 0 .2.2.3.4.3.2-.1.2-.3.2-.5m40 24.6c-.2 0-.2-.2-.2-.4l.3-1.7.5-2.4.3-1.8.4-1.8V43c.2-.3.3-.5.6-.4.3 0 .3.3.2.5a3343 3343 0 0 1-1.6 8.2c-.1.2-.3.4-.5.3M61.7 24.8l-.8-5.2c0-.2 0-.5-.4-.5s-.3.4-.3.6l1.1 7.5c0 .3 0 .6.4.6.3 0 .3-.3.3-.5v-.1c0-.8-.2-1.6-.3-2.3Zm11.2-1.7v4.6c0 .3 0 .5-.2.5-.4 0-.4-.2-.4-.5-.2-2.5-.2-5-.2-7.4 0-.3 0-.6.3-.5.3 0 .3.2.3.4v.1c.2 1 .2 1.9.2 2.8m21.6 5.3c0 .4 0 .6.3.6.4 0 .4-.3.5-.6l1.3-6.6v-.1c0-.3 0-.5-.2-.6-.4-.1-.5.3-.5.5l-.7 3.2v.6l-.5 2zm-9.6-8c.3.1.3.3.3.5v.3l-.2 1.6a1267 1267 0 0 1-.7 5.3c0 .2 0 .5-.4.5s-.3-.5-.3-.7l.5-4.4.2-1.4V22l.1-.9c0-.3.1-.7.5-.6Z",clipRule:"evenodd"})),i||(i=l.createElement("path",{fill:"#346BD5",d:"M.7 1.9C.7.9 1.5.2 2.4.2h10a1.7 1.7 0 1 1 0 3.3h-10C1.4 3.5.7 2.8.7 2Z"})),a||(a=l.createElement("defs",null,l.createElement("clipPath",{id:"a"},l.createElement("path",{fill:"#fff",d:"M37.5 13 77 0l13 39.6-39.6 13z"})))))}},7723:e=>{"use strict";e.exports=window.wp.i18n},7786:(e,t,n)=>{"use strict";n.d(t,{K:()=>o});var r=n(1609);function o(e){let[t]=(0,r.useState)(e);return t}},7832:(e,t,n)=>{"use strict";n.d(t,{e:()=>S});var r=n(1609),o=n(6992),i=n(5015),a=n(4610),l=n(6339),s=n(4424),c=n(4335),u=n(8975),d=n(2464),f=n(3149),p=n(6421),m=n(5897),h=n(6206);function g(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||(null!=(t=e.as)?t:j)!==r.Fragment||1===r.Children.count(e.children)}let v=(0,r.createContext)(null);v.displayName="TransitionContext";var y,w=((y=w||{}).Visible="visible",y.Hidden="hidden",y);let b=(0,r.createContext)(null);function x(e){return"children"in e?x(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function M(e,t){let n=(0,s.Y)(e),l=(0,r.useRef)([]),c=(0,a.a)(),u=(0,o.L)(),d=(0,i._)(((e,t=h.mK.Hidden)=>{let r=l.current.findIndex((({el:t})=>t===e));-1!==r&&((0,m.Y)(t,{[h.mK.Unmount](){l.current.splice(r,1)},[h.mK.Hidden](){l.current[r].state="hidden"}}),u.microTask((()=>{var e;!x(l)&&c.current&&(null==(e=n.current)||e.call(n))})))})),f=(0,i._)((e=>{let t=l.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):l.current.push({el:e,state:"visible"}),()=>d(e,h.mK.Unmount)})),p=(0,r.useRef)([]),g=(0,r.useRef)(Promise.resolve()),v=(0,r.useRef)({enter:[],leave:[]}),y=(0,i._)(((e,n,r)=>{p.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter((([t])=>t!==e))),null==t||t.chains.current[n].push([e,new Promise((e=>{p.current.push(e)}))]),null==t||t.chains.current[n].push([e,new Promise((e=>{Promise.all(v.current[n].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===n?g.current=g.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(n))):r(n)})),w=(0,i._)(((e,t,n)=>{Promise.all(v.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=p.current.shift())||e()})).then((()=>n(t)))}));return(0,r.useMemo)((()=>({children:l,register:f,unregister:d,onStart:y,onStop:w,wait:g,chains:v})),[f,d,l,y,w,v,g])}b.displayName="NestingContext";let j=r.Fragment,N=h.Ac.RenderStrategy,E=(0,h.FX)((function(e,t){let{show:n,appear:o=!1,unmount:a=!0,...s}=e,d=(0,r.useRef)(null),p=g(e),m=(0,u.P)(...p?[d,t]:null===t?[]:[t]);(0,c.g)();let y=(0,f.O_)();if(void 0===n&&null!==y&&(n=(y&f.Uw.Open)===f.Uw.Open),void 0===n)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[w,j]=(0,r.useState)(n?"visible":"hidden"),E=M((()=>{n||j("hidden")})),[T,S]=(0,r.useState)(!0),I=(0,r.useRef)([n]);(0,l.s)((()=>{!1!==T&&I.current[I.current.length-1]!==n&&(I.current.push(n),S(!1))}),[I,n]);let D=(0,r.useMemo)((()=>({show:n,appear:o,initial:T})),[n,o,T]);(0,l.s)((()=>{n?j("visible"):!x(E)&&null!==d.current&&j("hidden")}),[n,E]);let k={unmount:a},C=(0,i._)((()=>{var t;T&&S(!1),null==(t=e.beforeEnter)||t.call(e)})),L=(0,i._)((()=>{var t;T&&S(!1),null==(t=e.beforeLeave)||t.call(e)})),O=(0,h.Ci)();return r.createElement(b.Provider,{value:E},r.createElement(v.Provider,{value:D},O({ourProps:{...k,as:r.Fragment,children:r.createElement(A,{ref:m,...k,...s,beforeEnter:C,beforeLeave:L})},theirProps:{},defaultTag:r.Fragment,features:N,visible:"visible"===w,name:"Transition"})))})),A=(0,h.FX)((function(e,t){var n,o;let{transition:a=!0,beforeEnter:s,afterEnter:y,beforeLeave:w,afterLeave:E,enter:A,enterFrom:T,enterTo:S,entered:I,leave:D,leaveFrom:k,leaveTo:C,...L}=e,[O,R]=(0,r.useState)(null),P=(0,r.useRef)(null),z=g(e),_=(0,u.P)(...z?[P,t,R]:null===t?[]:[t]),F=null==(n=L.unmount)||n?h.mK.Unmount:h.mK.Hidden,{show:U,appear:B,initial:H}=function(){let e=(0,r.useContext)(v);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[V,W]=(0,r.useState)(U?"visible":"hidden"),q=function(){let e=(0,r.useContext)(b);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:Q,unregister:Y}=q;(0,l.s)((()=>Q(P)),[Q,P]),(0,l.s)((()=>{if(F===h.mK.Hidden&&P.current)return U&&"visible"!==V?void W("visible"):(0,m.Y)(V,{hidden:()=>Y(P),visible:()=>Q(P)})}),[V,P,Q,Y,U,F]);let $=(0,c.g)();(0,l.s)((()=>{if(z&&$&&"visible"===V&&null===P.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[P,V,$,z]);let G=H&&!B,Z=B&&U&&H,K=(0,r.useRef)(!1),X=M((()=>{K.current||(W("hidden"),Y(P))}),q),J=(0,i._)((e=>{K.current=!0;let t=e?"enter":"leave";X.onStart(P,t,(e=>{"enter"===e?null==s||s():"leave"===e&&(null==w||w())}))})),ee=(0,i._)((e=>{let t=e?"enter":"leave";K.current=!1,X.onStop(P,t,(e=>{"enter"===e?null==y||y():"leave"===e&&(null==E||E())})),"leave"===t&&!x(X)&&(W("hidden"),Y(P))}));(0,r.useEffect)((()=>{z&&a||(J(U),ee(U))}),[U,z,a]);let te=!(!a||!z||!$||G),[,ne]=(0,d.p)(te,O,U,{start:J,end:ee}),re=(0,h.oE)({ref:_,className:(null==(o=(0,p.x)(L.className,Z&&A,Z&&T,ne.enter&&A,ne.enter&&ne.closed&&T,ne.enter&&!ne.closed&&S,ne.leave&&D,ne.leave&&!ne.closed&&k,ne.leave&&ne.closed&&C,!ne.transition&&U&&I))?void 0:o.trim())||void 0,...(0,d.B)(ne)}),oe=0;"visible"===V&&(oe|=f.Uw.Open),"hidden"===V&&(oe|=f.Uw.Closed),U&&"hidden"===V&&(oe|=f.Uw.Opening),!U&&"visible"===V&&(oe|=f.Uw.Closing);let ie=(0,h.Ci)();return r.createElement(b.Provider,{value:X},r.createElement(f.El,{value:oe},ie({ourProps:re,theirProps:L,defaultTag:j,features:N,visible:"visible"===V,name:"Transition.Child"})))})),T=(0,h.FX)((function(e,t){let n=null!==(0,r.useContext)(v),o=null!==(0,f.O_)();return r.createElement(r.Fragment,null,!n&&o?r.createElement(E,{ref:t,...e}):r.createElement(A,{ref:t,...e}))})),S=Object.assign(E,{Child:T,Root:E})},7868:(e,t,n)=>{"use strict";n.d(t,{PR:()=>l,W3:()=>s,lq:()=>a});var r=n(1609),o=n(2903),i=n(372);const a=(0,r.createContext)(null);function l(e){let t=(0,r.useContext)(a);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,s),t}return t}function s({id:e,__demoMode:t=!1}){let n=(0,r.useMemo)((()=>i.VX.new({id:e,__demoMode:t})),[]);return(0,o.X)((()=>n.dispose())),n}},7959:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609);function o({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.53 16.122a3 3 0 0 0-5.78 1.128 2.25 2.25 0 0 1-2.4 2.245 4.5 4.5 0 0 0 8.4-2.245c0-.399-.078-.78-.22-1.128Zm0 0a15.998 15.998 0 0 0 3.388-1.62m-5.043-.025a15.994 15.994 0 0 1 1.622-3.395m3.42 3.42a15.995 15.995 0 0 0 4.764-4.648l3.876-5.814a1.151 1.151 0 0 0-1.597-1.597L14.146 6.32a15.996 15.996 0 0 0-4.649 4.763m3.42 3.42a6.776 6.776 0 0 0-3.42-3.42"}))}const i=r.forwardRef(o)},7980:(e,t,n)=>{"use strict";n.d(t,{q:()=>a});var r=n(1609),o=n(7338),i=n(5015);function a(e){let t=(0,r.useRef)(""),n=(0,r.useRef)("");return(0,i._)((()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let a=(0,o.D)(r).trim().toLowerCase();return t.current=i,n.current=a,a}))}},8302:(e,t,n)=>{"use strict";n.d(t,{ZL:()=>x});var r=n(1609),o=n(5795),i=n(6339),a=n(2903),l=n(4156),s=n(4335),c=n(8975),u=n(6717),d=n(7280),f=n(9851),p=n(6206);let m=r.Fragment,h=(0,p.FX)((function(e,t){let{ownerDocument:n=null,...h}=e,g=(0,r.useRef)(null),w=(0,c.P)((0,c.a)((e=>{g.current=e})),t),b=(0,l.g)(g),x=null!=n?n:b,M=function(e){let t=(0,u.S)(),n=(0,r.useContext)(v),[o,i]=(0,r.useState)((()=>{var r;if(!t&&null!==n)return null!=(r=n.current)?r:null;if(f._.isServer)return null;let o=null==e?void 0:e.getElementById("headlessui-portal-root");if(o)return o;if(null===e)return null;let i=e.createElement("div");return i.setAttribute("id","headlessui-portal-root"),e.body.appendChild(i)}));return(0,r.useEffect)((()=>{null!==o&&(null!=e&&e.body.contains(o)||null==e||e.body.appendChild(o))}),[o,e]),(0,r.useEffect)((()=>{t||null!==n&&i(n.current)}),[n,i,t]),o}(x),[j]=(0,r.useState)((()=>{var e;return f._.isServer?null:null!=(e=null==x?void 0:x.createElement("div"))?e:null})),N=(0,r.useContext)(y),E=(0,s.g)();(0,i.s)((()=>{!M||!j||M.contains(j)||(j.setAttribute("data-headlessui-portal",""),M.appendChild(j))}),[M,j]),(0,i.s)((()=>{if(j&&N)return N.register(j)}),[N,j]),(0,a.X)((()=>{var e;!M||!j||(d.Ll(j)&&M.contains(j)&&M.removeChild(j),M.childNodes.length<=0&&(null==(e=M.parentElement)||e.removeChild(M)))}));let A=(0,p.Ci)();return E&&M&&j?(0,o.createPortal)(A({ourProps:{ref:w},theirProps:h,slot:{},defaultTag:m,name:"Portal"}),j):null})),g=r.Fragment,v=(0,r.createContext)(null),y=(0,r.createContext)(null),w=(0,p.FX)((function(e,t){let n=(0,c.P)(t),{enabled:o=!0,ownerDocument:i,...a}=e,l=(0,p.Ci)();return o?r.createElement(h,{...a,ownerDocument:i,ref:n}):l({ourProps:{ref:n},theirProps:a,slot:{},defaultTag:m,name:"Portal"})})),b=(0,p.FX)((function(e,t){let{target:n,...o}=e,i={ref:(0,c.P)(t)},a=(0,p.Ci)();return r.createElement(v.Provider,{value:n},a({ourProps:i,theirProps:o,defaultTag:g,name:"Popover.Group"}))})),x=Object.assign(w,{Group:b})},8311:(e,t,n)=>{"use strict";n.d(t,{h:()=>l});var r,o,i=n(1609);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}var l=function(e){return i.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:46,height:48,fill:"none",viewBox:"0 0 46 48"},e),r||(r=i.createElement("g",{fill:"#A4286A",clipPath:"url(#a)"},i.createElement("path",{d:"M9.056 42.8c-3.647 0-6.632-2.96-6.632-6.62V14.6c0-3.64 2.965-6.62 6.632-6.62h17.07l.981-2.44H9.056A9.08 9.08 0 0 0 2.65 8.2 9.05 9.05 0 0 0 0 14.6v21.58c0 4.98 4.067 9.04 9.056 9.04h.08v-2.44h-.08zM46 14.6c0-4.24-2.925-7.78-6.872-8.76l-.861 2.3c3.005.62 5.289 3.28 5.289 6.48v28.2H24.903c-.46.86-.941 1.68-1.462 2.44H46z"}),i.createElement("path",{d:"M31.856 0 21.658 28.28 16.649 12.6h-6.13l7.673 19.64a7.88 7.88 0 0 1 0 5.66c-.741 1.9-2.064 4.16-5.73 4.84h-.16v5.24h.22c3.065-.12 5.43-1.14 7.473-3.18 2.064-2.08 3.847-5.3 5.59-10.16L38.507 0z"}))),o||(o=i.createElement("defs",null,i.createElement("clipPath",{id:"a"},i.createElement("path",{fill:"#fff",d:"M0 0h46v48H0z"})))))}},8342:(e,t,n)=>{"use strict";n.d(t,{B:()=>o,X:()=>i});var r,o=((r=o||{})[r.First=0]="First",r[r.Previous=1]="Previous",r[r.Next=2]="Next",r[r.Last=3]="Last",r[r.Specific=4]="Specific",r[r.Nothing=5]="Nothing",r);function i(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 1:-1===o&&(o=n.length);for(let e=o-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=o+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r;return r;case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}}},8354:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609);function o({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3"}))}const i=r.forwardRef(o)},8416:(e,t,n)=>{"use strict";n(1609)},8418:(e,t,n)=>{"use strict";e.exports=n(5160)},8419:(e,t,n)=>{"use strict";n.d(t,{z:()=>i});var r=n(1609),o=n(4424);function i(e,t,n,i){let a=(0,o.Y)(n);(0,r.useEffect)((()=>{if(e)return document.addEventListener(t,n,i),()=>document.removeEventListener(t,n,i);function n(e){a.current(e)}}),[e,t,i])}},8468:e=>{"use strict";e.exports=window.lodash},8484:(e,t,n)=>{"use strict";n.d(t,{B:()=>s,U:()=>l});var r=n(2339),o=n(2286),i=n(5233),a=n(9674);const l={success:"success",warning:"warning",info:"info",error:"error"},s={success:r.A,warning:o.A,info:i.A,error:a.A}},8490:e=>{"use strict";e.exports=window.wp.domReady},8491:(e,t,n)=>{"use strict";n.d(t,{BN:()=>A,Ej:()=>S,UU:()=>T,__:()=>N,cY:()=>E,ll:()=>j,rD:()=>I});var r=n(7193),o=n(5361),i=n(6635);function a(e){const t=(0,i.L9)(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const a=(0,i.sb)(e),l=a?e.offsetWidth:n,s=a?e.offsetHeight:o,c=(0,r.LI)(n)!==l||(0,r.LI)(o)!==s;return c&&(n=l,o=s),{width:n,height:o,$:c}}function l(e){return(0,i.vq)(e)?e:e.contextElement}function s(e){const t=l(e);if(!(0,i.sb)(t))return(0,r.Jx)(1);const n=t.getBoundingClientRect(),{width:o,height:s,$:c}=a(t);let u=(c?(0,r.LI)(n.width):n.width)/o,d=(c?(0,r.LI)(n.height):n.height)/s;return u&&Number.isFinite(u)||(u=1),d&&Number.isFinite(d)||(d=1),{x:u,y:d}}const c=(0,r.Jx)(0);function u(e){const t=(0,i.zk)(e);return(0,i.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:c}function d(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),c=l(e);let d=(0,r.Jx)(1);t&&(o?(0,i.vq)(o)&&(d=s(o)):d=s(e));const f=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==(0,i.zk)(e))&&t}(c,n,o)?u(c):(0,r.Jx)(0);let p=(a.left+f.x)/d.x,m=(a.top+f.y)/d.y,h=a.width/d.x,g=a.height/d.y;if(c){const e=(0,i.zk)(c),t=o&&(0,i.vq)(o)?(0,i.zk)(o):o;let n=e,r=(0,i._m)(n);for(;r&&o&&t!==n;){const e=s(r),t=r.getBoundingClientRect(),o=(0,i.L9)(r),a=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,l=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;p*=e.x,m*=e.y,h*=e.x,g*=e.y,p+=a,m+=l,n=(0,i.zk)(r),r=(0,i._m)(n)}}return(0,r.B1)({width:h,height:g,x:p,y:m})}function f(e,t){const n=(0,i.CP)(e).scrollLeft;return t?t.left+n:d((0,i.ep)(e)).left+n}function p(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:f(e,r)),y:r.top+t.scrollTop}}const m=new Set(["absolute","fixed"]);function h(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=(0,i.zk)(e),r=(0,i.ep)(e),o=n.visualViewport;let a=r.clientWidth,l=r.clientHeight,s=0,c=0;if(o){a=o.width,l=o.height;const e=(0,i.Tc)();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:a,height:l,x:s,y:c}}(e,n);else if("document"===t)o=function(e){const t=(0,i.ep)(e),n=(0,i.CP)(e),o=e.ownerDocument.body,a=(0,r.T9)(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=(0,r.T9)(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+f(e);const c=-n.scrollTop;return"rtl"===(0,i.L9)(o).direction&&(s+=(0,r.T9)(t.clientWidth,o.clientWidth)-a),{width:a,height:l,x:s,y:c}}((0,i.ep)(e));else if((0,i.vq)(t))o=function(e,t){const n=d(e,!0,"fixed"===t),o=n.top+e.clientTop,a=n.left+e.clientLeft,l=(0,i.sb)(e)?s(e):(0,r.Jx)(1);return{width:e.clientWidth*l.x,height:e.clientHeight*l.y,x:a*l.x,y:o*l.y}}(t,n);else{const n=u(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return(0,r.B1)(o)}function g(e,t){const n=(0,i.$4)(e);return!(n===t||!(0,i.vq)(n)||(0,i.eu)(n))&&("fixed"===(0,i.L9)(n).position||g(n,t))}function v(e,t,n){const o=(0,i.sb)(t),a=(0,i.ep)(t),l="fixed"===n,s=d(e,!0,l,t);let c={scrollLeft:0,scrollTop:0};const u=(0,r.Jx)(0);function m(){u.x=f(a)}if(o||!o&&!l)if(("body"!==(0,i.mq)(t)||(0,i.ZU)(a))&&(c=(0,i.CP)(t)),o){const e=d(t,!0,l,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else a&&m();l&&!o&&a&&m();const h=!a||o||l?(0,r.Jx)(0):p(a,c);return{x:s.left+c.scrollLeft-u.x-h.x,y:s.top+c.scrollTop-u.y-h.y,width:s.width,height:s.height}}function y(e){return"static"===(0,i.L9)(e).position}function w(e,t){if(!(0,i.sb)(e)||"fixed"===(0,i.L9)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,i.ep)(e)===n&&(n=n.ownerDocument.body),n}function b(e,t){const n=(0,i.zk)(e);if((0,i.Tf)(e))return n;if(!(0,i.sb)(e)){let t=(0,i.$4)(e);for(;t&&!(0,i.eu)(t);){if((0,i.vq)(t)&&!y(t))return t;t=(0,i.$4)(t)}return n}let r=w(e,t);for(;r&&(0,i.Lv)(r)&&y(r);)r=w(r,t);return r&&(0,i.eu)(r)&&y(r)&&!(0,i.sQ)(r)?n:r||(0,i.gJ)(e)||n}const x={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:a}=e;const l="fixed"===a,c=(0,i.ep)(o),u=!!t&&(0,i.Tf)(t.floating);if(o===c||u&&l)return n;let f={scrollLeft:0,scrollTop:0},m=(0,r.Jx)(1);const h=(0,r.Jx)(0),g=(0,i.sb)(o);if((g||!g&&!l)&&(("body"!==(0,i.mq)(o)||(0,i.ZU)(c))&&(f=(0,i.CP)(o)),(0,i.sb)(o))){const e=d(o);m=s(o),h.x=e.x+o.clientLeft,h.y=e.y+o.clientTop}const v=!c||g||l?(0,r.Jx)(0):p(c,f,!0);return{width:n.width*m.x,height:n.height*m.y,x:n.x*m.x-f.scrollLeft*m.x+h.x+v.x,y:n.y*m.y-f.scrollTop*m.y+h.y+v.y}},getDocumentElement:i.ep,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:a}=e;const l=[..."clippingAncestors"===n?(0,i.Tf)(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=(0,i.v9)(e,[],!1).filter((e=>(0,i.vq)(e)&&"body"!==(0,i.mq)(e))),o=null;const a="fixed"===(0,i.L9)(e).position;let l=a?(0,i.$4)(e):e;for(;(0,i.vq)(l)&&!(0,i.eu)(l);){const t=(0,i.L9)(l),n=(0,i.sQ)(l);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&m.has(o.position)||(0,i.ZU)(l)&&!n&&g(e,l))?r=r.filter((e=>e!==l)):o=t,l=(0,i.$4)(l)}return t.set(e,r),r}(t,this._c):[].concat(n),o],s=l[0],c=l.reduce(((e,n)=>{const o=h(t,n,a);return e.top=(0,r.T9)(o.top,e.top),e.right=(0,r.jk)(o.right,e.right),e.bottom=(0,r.jk)(o.bottom,e.bottom),e.left=(0,r.T9)(o.left,e.left),e}),h(t,s,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:b,getElementRects:async function(e){const t=this.getOffsetParent||b,n=this.getDimensions,r=await n(e.floating);return{reference:v(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=a(e);return{width:t,height:n}},getScale:s,isElement:i.vq,isRTL:function(e){return"rtl"===(0,i.L9)(e).direction}};function M(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function j(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:f=!1}=o,p=l(e),m=a||s?[...p?(0,i.v9)(p):[],...(0,i.v9)(t)]:[];m.forEach((e=>{a&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)}));const h=p&&u?function(e,t){let n,o=null;const a=(0,i.ep)(e);function l(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function i(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),l();const u=e.getBoundingClientRect(),{left:d,top:f,width:p,height:m}=u;if(s||t(),!p||!m)return;const h={rootMargin:-(0,r.RI)(f)+"px "+-(0,r.RI)(a.clientWidth-(d+p))+"px "+-(0,r.RI)(a.clientHeight-(f+m))+"px "+-(0,r.RI)(d)+"px",threshold:(0,r.T9)(0,(0,r.jk)(1,c))||1};let g=!0;function v(t){const r=t[0].intersectionRatio;if(r!==c){if(!g)return i();r?i(!1,r):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}1!==r||M(u,e.getBoundingClientRect())||i(),g=!1}try{o=new IntersectionObserver(v,{...h,root:a.ownerDocument})}catch(e){o=new IntersectionObserver(v,h)}o.observe(e)}(!0),l}(p,n):null;let g,v=-1,y=null;c&&(y=new ResizeObserver((e=>{let[r]=e;r&&r.target===p&&y&&(y.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame((()=>{var e;null==(e=y)||e.observe(t)}))),n()})),p&&!f&&y.observe(p),y.observe(t));let w=f?d(e):null;return f&&function t(){const r=d(e);w&&!M(w,r)&&n(),w=r,g=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach((e=>{a&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)})),null==h||h(),null==(e=y)||e.disconnect(),y=null,f&&cancelAnimationFrame(g)}}const N=o.__,E=o.cY,A=o.BN,T=o.UU,S=o.Ej,I=(e,t,n)=>{const r=new Map,i={platform:x,...n},a={...i.platform,_c:r};return(0,o.rD)(e,t,{...i,platform:a})}},8689:(e,t,n)=>{"use strict";var r;n.d(t,{Zx:()=>k,bv:()=>S,vW:()=>D,we:()=>N});var o=n(1609),i=n(4603),a=n(7193),l=n(6635),s=n(5795),c=n(4743),u=n(8491);const d={...r||(r=n.t(o,2))},f=d.useInsertionEffect||(e=>e());function p(e){const t=o.useRef((()=>{}));return f((()=>{t.current=e})),o.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}var m="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;let h=!1,g=0;const v=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+g++,y=d.useId||function(){const[e,t]=o.useState((()=>h?v():void 0));return m((()=>{null==e&&t(v())}),[]),o.useEffect((()=>{h=!0}),[]),e};const w=o.createContext(null),b=o.createContext(null),x=()=>{var e;return(null==(e=o.useContext(w))?void 0:e.id)||null},M=()=>o.useContext(b),j="data-floating-ui-focusable";function N(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=y(),a=o.useRef({}),[l]=o.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}())),s=null!=x(),[c,u]=o.useState(r.reference),d=p(((e,t,r)=>{a.current.openEvent=e?t:void 0,l.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)})),f=o.useMemo((()=>({setPositionReference:u})),[]),m=o.useMemo((()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference})),[c,r.reference,r.floating]);return o.useMemo((()=>({dataRef:a,open:t,onOpenChange:d,elements:m,events:l,floatingId:i,refs:f})),[t,d,m,l,i,f])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[a,s]=o.useState(null),[u,d]=o.useState(null),f=(null==i?void 0:i.domReference)||a,h=o.useRef(null),g=M();m((()=>{f&&(h.current=f)}),[f]);const v=(0,c.we)({...e,elements:{...i,...u&&{reference:u}}}),w=o.useCallback((e=>{const t=(0,l.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;d(t),v.refs.setReference(t)}),[v.refs]),b=o.useCallback((e=>{((0,l.vq)(e)||null===e)&&(h.current=e,s(e)),((0,l.vq)(v.refs.reference.current)||null===v.refs.reference.current||null!==e&&!(0,l.vq)(e))&&v.refs.setReference(e)}),[v.refs]),j=o.useMemo((()=>({...v.refs,setReference:b,setPositionReference:w,domReference:h})),[v.refs,b,w]),N=o.useMemo((()=>({...v.elements,domReference:f})),[v.elements,f]),E=o.useMemo((()=>({...v,...r,refs:j,elements:N,nodeId:t})),[v,j,N,t,r]);return m((()=>{r.dataRef.current.floatingContext=E;const e=null==g?void 0:g.nodesRef.current.find((e=>e.id===t));e&&(e.context=E)})),o.useMemo((()=>({...v,context:E,refs:j,elements:N})),[v,j,N,E])}const E="active",A="selected";function T(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[E]:t,[A]:__,...n}=e;i=n}return{..."floating"===n&&{tabIndex:-1,[j]:""},...i,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var a;o&&[E,A].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(a=r.get(n))||a.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}function S(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),i=o.useCallback((t=>T(t,e,"reference")),t),a=o.useCallback((t=>T(t,e,"floating")),n),l=o.useCallback((t=>T(t,e,"item")),r);return o.useMemo((()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:l})),[i,a,l])}function I(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const D=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:o,offset:i=0,index:l=0,minItemsVisible:d=4,referenceOverflowThreshold:f=0,scrollRef:p,...m}=(0,a._3)(e,t),{rects:h,elements:{floating:g}}=t,v=n.current[l],y=(null==p?void 0:p.current)||g,w=g.clientTop||y.clientTop,b=0!==g.clientTop,x=0!==y.clientTop,M=g===y;if(!v)return{};const j={...t,...await(0,c.cY)(-v.offsetTop-g.clientTop-h.reference.height/2-v.offsetHeight/2-i).fn(t)},N=await(0,u.__)(I(j,y.scrollHeight+w+g.clientTop),m),E=await(0,u.__)(j,{...m,elementContext:"reference"}),A=(0,a.T9)(0,N.top),T=j.y+A,S=(y.scrollHeight>y.clientHeight?e=>e:a.LI)((0,a.T9)(0,y.scrollHeight+(b&&M||x?2*w:0)-A-(0,a.T9)(0,N.bottom)));if(y.style.maxHeight=S+"px",y.scrollTop=A,o){const e=y.offsetHeight<v.offsetHeight*(0,a.jk)(d,n.current.length)-1||E.top>=-f||E.bottom>=-f;s.flushSync((()=>o(e)))}return r&&(r.current=await(0,u.__)(I({...j,y:T},y.offsetHeight+w+g.clientTop),m)),{y:T}}});function k(e,t){const{open:n,elements:r}=e,{enabled:a=!0,overflowRef:l,scrollRef:c,onChange:u}=t,d=p(u),f=o.useRef(!1),m=o.useRef(null),h=o.useRef(null);o.useEffect((()=>{if(!a)return;function e(e){if(e.ctrlKey||!t||null==l.current)return;const n=e.deltaY,r=l.current.top>=-.5,o=l.current.bottom>=-.5,a=t.scrollHeight-t.clientHeight,c=n<0?-1:1,u=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!r&&n>0||!o&&n<0?(e.preventDefault(),s.flushSync((()=>{d((e=>e+Math[u](n,a*c)))}))):/firefox/i.test((0,i.$t)())&&(t.scrollTop+=n))}const t=(null==c?void 0:c.current)||r.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame((()=>{m.current=t.scrollTop,null!=l.current&&(h.current={...l.current})})),()=>{m.current=null,h.current=null,t.removeEventListener("wheel",e)}):void 0}),[a,n,r.floating,l,c,d]);const g=o.useMemo((()=>({onKeyDown(){f.current=!0},onWheel(){f.current=!1},onPointerMove(){f.current=!1},onScroll(){const e=(null==c?void 0:c.current)||r.floating;if(l.current&&e&&f.current){if(null!==m.current){const t=e.scrollTop-m.current;(l.current.bottom<-.5&&t<-1||l.current.top<-.5&&t>1)&&s.flushSync((()=>d((e=>e+t))))}requestAnimationFrame((()=>{m.current=e.scrollTop}))}}})),[r.floating,d,l,c]);return o.useMemo((()=>a?{floating:g}:{}),[a,g])}},8730:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(5495),o=n(1124),__=n(7723).__;const i=()=>"Bluehost_India"===r.NewfoldRuntime.plugin.brand?"1800-419-4426":"888-401-4678",a=[{name:"phone",title:__("Phone","wp-plugin-bluehost"),description:__(`Contact one of our friendly Customer Care Specialists, as we are waiting to help at ${i()}. Open 24 hours - 7 days.`,"wp-plugin-bluehost"),icon:!1,cta:__("Call Us","wp-plugin-bluehost"),url:"tel:"+i()},{name:"chat",title:__("Chat","wp-plugin-bluehost"),description:__("Chat with one of our friendly Customer Care Specialists, as we are waiting to help. Open 24 hours - 7 days.","wp-plugin-bluehost"),icon:!1,cta:__("Live Chat","wp-plugin-bluehost"),url:(0,o.Ew)()+"/contact/?utm_campaign=&utm_content=help_chat_link&utm_term=live_chat"},{name:"twitter",title:__("Tweet","wp-plugin-bluehost"),description:__("Find our team at @bluehost for updates on our products and support from our team.","wp-plugin-bluehost"),icon:!1,cta:__("Tweet Us","wp-plugin-bluehost"),url:"https://twitter.com/bluehost"},{name:"youtube",title:__("YouTube","wp-plugin-bluehost"),description:__("Find tutorials, answers, interviews and guides on our YouTube channel.","wp-plugin-bluehost"),icon:!1,cta:__("Watch Now","wp-plugin-bluehost"),url:"http://www.youtube.com/user/bluehost"},{name:"kb",title:__("Knowledge Base","wp-plugin-bluehost"),description:__("Articles, guides, how-tos, instructions, and answers to our client's most frequently asked questions.","wp-plugin-bluehost"),icon:!1,cta:__("Visit Knowledge Base","wp-plugin-bluehost"),url:(0,o.Ew)()+"/help/?utm_campaign=&utm_content=help_help_link&utm_term=we_can_help"},{name:"resources",title:__("Resources","wp-plugin-bluehost"),description:__("Boost your online knowledge and get ahead of the competition.","wp-plugin-bluehost"),icon:!1,cta:__("Explore Resources","wp-plugin-bluehost"),url:(0,o.Ew)()+"/blog/?utm_campaign=&utm_content=help_kb_link&utm_term=find_answers"},{name:"events",title:__("Events and Webinars","wp-plugin-bluehost"),description:__("Team Bluehost organizes multiple webinars and events throughout the year. We are also sponsors and speak at most WordCamps across the world. Join us at our next event!","wp-plugin-bluehost"),icon:!1,cta:__("More Info","wp-plugin-bluehost"),url:"https://www.bluehost.com/blog/events/?utm_campaign=&utm_content=help_blog_link&utm_term=learn_stuff"},{name:"website",title:__("Bluehost Website","wp-plugin-bluehost"),description:__("Not finding what you need? Visit our website for more information about our products and services.","wp-plugin-bluehost"),icon:!1,cta:__("Go to Bluehost","wp-plugin-bluehost"),url:(0,o.Ew)()}]},8746:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>m});var r=n(6942),o=n.n(r),i=n(8468),a=n(5556),l=n.n(a),s=n(363),c=n(1609),u=n(790);const d={variant:{primary:"nfd-button--primary",secondary:"nfd-button--secondary",error:"nfd-button--error",upsell:"nfd-button--upsell"},size:{default:"",small:"nfd-button--small",large:"nfd-button--large"}},f=(0,c.forwardRef)((({children:e,as:t,type:n,variant:r,size:i,isLoading:a,disabled:l,className:c,...f},p)=>(0,u.jsxs)(t,{type:n||"button"===t&&"button"||void 0,disabled:l,ref:p,className:o()("nfd-button",d.variant[r],d.size[i],a&&"nfd-cursor-wait",l&&"nfd-button--disabled",c),...f,children:[a&&(0,u.jsx)(s.Ay,{size:"small"===i?"3":"4",className:"nfd-mr-2"}),e]}))),p={children:l().node.isRequired,as:l().elementType,type:l().oneOf(["button","submit","reset"]),variant:l().oneOf((0,i.keys)(d.variant)),size:l().oneOf((0,i.keys)(d.size)),isLoading:l().bool,disabled:l().bool,className:l().string};f.propTypes=p,f.defaultProps={as:"button",type:void 0,variant:"primary",size:"default",isLoading:!1,disabled:!1,className:""},f.displayName="Button";const m=f,h=e=>(0,u.jsx)(f,{...e});h.propTypes=p,h.defaultProps=f.defaultProps,h.displayName="Button"},8880:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6658),o=n(6087).useEffect;const i=()=>{const e=(0,r.zy)(),t=document.querySelector(".wppbh-app-body-inner");return o((()=>{window.scrollTo(0,0),t&&t.focus({preventScroll:!0})}),[e.pathname]),!0}},8902:(e,t,n)=>{"use strict";function r(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}n.d(t,{S:()=>r})},8948:(e,t,n)=>{"use strict";n.d(t,{Y:()=>o});var r=n(9202);function o(e){return!(0!==e.mozInputSource||!e.isTrusted)||((0,r.m0)()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}},8975:(e,t,n)=>{"use strict";n.d(t,{P:()=>l,a:()=>a});var r=n(1609),o=n(5015);let i=Symbol();function a(e,t=!0){return Object.assign(e,{[i]:t})}function l(...e){let t=(0,r.useRef)(e);(0,r.useEffect)((()=>{t.current=e}),[e]);let n=(0,o._)((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[i])))?void 0:n}},8983:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(4619),o=n(3928),i=n(8746),a=n(4234),l=n(9152),s=n(1124),c=n(8730),u=n(790),__=n(7723).__;const d=({item:e})=>(0,u.jsxs)(r.A,{className:`wppbh-help-card card-help-${e.name}`,children:[(0,u.jsxs)(r.A.Content,{children:[(0,u.jsx)(o.Ay,{as:"h3",size:"4",className:"nfd-mb-2",children:e.title}),(0,u.jsx)("p",{children:e.description})]}),(0,u.jsx)(r.A.Footer,{children:(0,u.jsx)(i.Ay,{variant:"secondary",as:"a",className:"nfd-w-full nfd-transition-bg nfd-duration-100",href:(0,s.g_)(e.url),target:"_blank",children:e.cta})})]}),f=()=>(0,u.jsxs)(a.A,{className:"wppbh-app-help-page",children:[(0,u.jsxs)("div",{className:"wppbh-app-help-page__header nfd-flex nfd-flex-col nfd-gap-y-4",children:[(0,u.jsx)(o.Ay,{as:"h1",children:__("Help","wp-plugin-bluehost")}),(0,u.jsx)(o.Ay,{as:"h2",className:"nfd-font-normal nfd-text-[13px] nfd-color-body",children:__("We are available 24/7 to help answer questions and solve your problems.","wp-plugin-bluehost")})]}),(0,u.jsx)(l.A,{className:"wppbh-app-help-container nfd-bg-transparent nfd-shadow-none",children:(0,u.jsx)(l.A.Block,{className:"nfd-p-0",children:(()=>{const e=c.A;return(0,u.jsx)("div",{className:"nfd-grid nfd-gap-6 nfd-grid-cols-1 sm:nfd-grid-cols-2 xl:nfd-grid-cols-3 2xl:nfd-grid-cols-4",children:e.map((e=>(0,u.jsx)(d,{item:e},e.name)))})})()})})]})},9003:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(3832),o=n(4218),i=n(790);const a=({methods:e,constants:t,...n})=>{const[a,l]=e.useState([]),[s,c]=e.useState([]);e.useEffect((()=>{e.apiFetch({url:(0,r.addQueryArgs)(`${window.NewfoldRuntime.restUrl}newfold-notifications/v1/notifications`,{context:t.context})}).then((e=>{c(e)}))}),[]),e.useEffect((()=>{l(u(s))}),[s,t.page]);const u=e=>p(f(d(e))),d=t=>{const n=Math.round(Date.now()/1e3);return e.filter(t,(e=>e.expiration>n))},f=n=>e.filter(n,(e=>{var n=!1;return e.locations.forEach((e=>{"wp-plugin-search"!==e.context&&"wp-theme-search"!==e.context?e.context===t.context&&(n=!0):n=!1})),n})),p=n=>e.filter(n,(e=>{var n=!1;return e.locations.forEach((e=>{"string"==typeof e.pages&&(e.pages!==t.page&&"all"!==e.pages||(n=!0)),Array.isArray(e.pages)&&e.pages.includes(t.page)&&(n=!0)})),n}));return e.removeNotification=t=>{c(e.filter(s,(e=>e.id!==t)))},`${window.NewfoldRuntime.plugin.brand}-app-nav`===t.context&&a.length>0?(0,i.jsx)("div",{className:"newfold-nav-notifications-wrapper nfd-mt-4",children:(0,i.jsx)(o.A,{id:a[0].id,content:a[0].content,constants:t,methods:e},a[0].id)}):(0,i.jsx)("div",{className:"newfold-notifications-wrapper",children:a.map((n=>(0,i.jsx)(o.A,{id:n.id,content:n.content,constants:t,methods:e},n.id)))})}},9027:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(3102),o=n(3629),i=n(2949),a=n(9472),l=n(4234),s=n(9152),c=n(790),__=n(7723).__,u=n(6942);const d=()=>(0,c.jsx)(l.A,{title:"Admin",className:"wppbh-app-settings-page",children:(0,c.jsxs)(s.A,{className:"wppbh-app-settings-container",children:[(0,c.jsx)(s.A.Header,{title:__("Admin","wp-plugin-bluehost"),description:__("Secret page to manage admin features and settings.","wp-plugin-bluehost"),className:"wppbh-app-settings-header"}),(0,c.jsx)(s.A.Block,{separator:!0,id:"help-center",className:u("wppbh-app-admin"),children:(0,c.jsxs)(s.A.SettingsField,{title:"Features",description:"Toggle features – not settings.",children:[(0,c.jsx)(o.A,{}),(0,c.jsx)("br",{}),(0,c.jsx)(r.A,{forceShow:!0}),(0,c.jsx)("br",{}),(0,c.jsx)(i.A,{}),(0,c.jsx)("br",{}),(0,c.jsx)(a.A,{})]})})]})})},9098:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(6427),o=n(3928),i=n(7278),a=n(948),l=n(8468),s=n(790),__=n(7723).__;const c=({variant:e})=>{const t="icon"===e;return(0,s.jsx)(r.Button,{icon:t?(0,s.jsx)(a.Iy,{width:35,height:35}):(0,s.jsx)(i.h,{className:"wppbh-logo nfd-w-full nfd-h-auto"}),style:{width:t?"35px":"160px",height:"auto"},onMouseUp:()=>{const e=document.querySelector(".logo-mark");(0,l.delay)((()=>{null!==e&&e.blur()}),500)},className:"logo-mark nfd-p-0",href:"#/home","aria-label":"Bluehost"})},u=({variant:e="wordmark"})=>(0,s.jsxs)("div",{className:"wppbh-logo-wrap nfd-flex nfd-items-center nfd-justify-center",children:[(0,s.jsx)(c,{variant:e}),(0,s.jsx)(o.Ay,{as:"h2",className:"nfd-sr-only",children:__("Bluehost WordPress Plugin","wp-plugin-bluehost")})]})},9124:(e,t,n)=>{"use strict";n.d(t,{MM:()=>d,VY:()=>m,rU:()=>f});var r=n(1609),o=n(5015),i=n(6339),a=n(8975),l=n(5448),s=n(6206);let c=(0,r.createContext)(null);function u(){let e=(0,r.useContext)(c);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,u),e}return e}function d(){var e,t;return null!=(t=null==(e=(0,r.useContext)(c))?void 0:e.value)?t:void 0}function f(){let[e,t]=(0,r.useState)([]);return[e.length>0?e.join(" "):void 0,(0,r.useMemo)((()=>function(e){let n=(0,o._)((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),i=(0,r.useMemo)((()=>({register:n,slot:e.slot,name:e.name,props:e.props,value:e.value})),[n,e.slot,e.name,e.props,e.value]);return r.createElement(c.Provider,{value:i},e.children)}),[t])]}c.displayName="DescriptionContext";let p=(0,s.FX)((function(e,t){let n=(0,r.useId)(),o=(0,l._)(),{id:c=`headlessui-description-${n}`,...d}=e,f=u(),p=(0,a.P)(t);(0,i.s)((()=>f.register(c)),[c,f.register]);let m=o||!1,h=(0,r.useMemo)((()=>({...f.slot,disabled:m})),[f.slot,m]),g={ref:p,...f.props,id:c};return(0,s.Ci)()({ourProps:g,theirProps:d,slot:h,defaultTag:"p",name:f.name||"Description"})})),m=Object.assign(p,{})},9152:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(5556),o=n(6942),i=n.n(o),a=n(1609),l=n(3928),s=n(790);const c=({as:e="div",children:t,className:n="",title:r,description:o,...a})=>(0,s.jsxs)(e,{...a,className:i()("nfd-container__header",n),children:[r&&(0,s.jsx)(l.Ay,{as:"h2",className:"nfd-text-2xl nfd-font-medium nfd-text-title",children:r}),o&&(0,s.jsx)("p",{children:o}),t]});c.propTypes={as:r.PropTypes.element,children:r.PropTypes.node,className:r.PropTypes.string,title:r.PropTypes.string,description:r.PropTypes.string};const u=({as:e="div",children:t,className:n="",id:r="",separator:o=!1,...a})=>(0,s.jsx)(e,{...a,id:r,className:i()("nfd-container__block",n),children:(0,s.jsx)("div",{className:i()("nfd-pb-8",o&&"nfd-border-b nfd-border-[#CBD5E1]"),children:t})});u.propTypes={as:r.PropTypes.element,children:r.PropTypes.node.isRequired,className:r.PropTypes.string,id:r.PropTypes.string,separator:r.PropTypes.bool};const d=({as:e="div",children:t,className:n="",description:r="",title:o,...a})=>(0,s.jsxs)(e,{...a,className:i()("nfd-container__settings-field",n),children:[(0,s.jsx)("div",{className:"nfd-col-span-1",children:(0,s.jsxs)("div",{className:"nfd-max-w-screen-sm",children:[(0,s.jsx)(l.Ay,{as:"h3",size:"4",children:o}),r&&(0,s.jsx)("div",{className:"nfd-mt-2",children:r})]})}),(0,s.jsxs)("fieldset",{className:"nfd-min-w-0 nfd-mt-8 xl:nfd-mt-0 xl:nfd-col-span-2",children:[(0,s.jsx)("legend",{className:"nfd-sr-only",children:o}),(0,s.jsx)("div",{className:"st-space-y-8",children:t})]})]});d.propTypes={as:r.PropTypes.element,children:r.PropTypes.node.isRequired,className:r.PropTypes.string,description:r.PropTypes.string,title:r.PropTypes.string};const f=({as:e="div",children:t,className:n="",...r})=>(0,s.jsx)(e,{...r,className:i()("nfd-container__footer",n),children:t});f.propTypes={as:r.PropTypes.element,children:r.PropTypes.node.isRequired,className:r.PropTypes.string};const p=(0,a.forwardRef)((({as:e="div",children:t,className:n="",...r},o)=>(0,s.jsx)(e,{...r,className:i()("nfd-container",n),ref:o,children:t})));p.propTypes={as:r.PropTypes.element,children:r.PropTypes.node.isRequired,className:r.PropTypes.string},p.defaultProps={as:"div",className:""},p.Header=c,p.Block=u,p.SettingsField=d,p.Footer=f,p.displayName="Container";const m=p},9185:(e,t,n)=>{"use strict";n.d(t,{J:()=>i});var r=n(1609);function o(e){return[e.screenX,e.screenY]}function i(){let e=(0,r.useRef)([-1,-1]);return{wasMoved(t){let n=o(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=o(t)}}}},9188:(e,t,n)=>{"use strict";n.d(t,{A:()=>l}),n(1609);var r=n(6942),o=n.n(r),i=n(3406),a=n(790);const l=({className:e="",children:t})=>{const{mode:n,open:r}=(0,i.V)();return e=o()("nfd-appbar-nav",e,"nfd-flex nfd-h-full nfd-w-full nfd-bg-white",{"nfd-items-center":"inline"===n,"nfd-flex-col nfd-items-start nfd-duration-300 nfd--translate-y-full nfd-px-4 nfd-py-2 nfd-gap-2 nfd-ease-in-out ":"collapsed"===n,"nfd-translate-y-0":!0===r,"nfd-pointer-events-none":"collapsed"===n&&!1===r}),(0,a.jsx)(a.Fragment,{children:"collapsed"===n?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:o()("nfd-appbar-nav-overlay nfd-absolute nfd-top-full nfd-w-screen nfd-h-screen nfd-bg-black nfd-duration-300",{"nfd-pointer-events-none nfd-opacity-0":!1===r,"nfd-opacity-30":!0===r})}),(0,a.jsx)("div",{className:"nfd-appbar-nav-dialog nfd-absolute nfd-top-full nfd-w-full nfd-overflow-hidden",children:(0,a.jsx)("ul",{role:"menubar",className:e,children:t})})]}):(0,a.jsx)("ul",{role:"menubar",className:e,children:t})})}},9202:(e,t,n)=>{"use strict";function r(e){var t;if("undefined"==typeof window||null==window.navigator)return!1;let n=null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands;return Array.isArray(n)&&n.some((t=>e.test(t.brand)))||e.test(window.navigator.userAgent)}function o(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function i(e){let t=null;return()=>(null==t&&(t=e()),t)}n.d(t,{cX:()=>a,m0:()=>d});const a=i((function(){return o(/^Mac/i)})),l=i((function(){return o(/^iPhone/i)})),s=i((function(){return o(/^iPad/i)||a()&&navigator.maxTouchPoints>1})),c=i((function(){return l()||s()})),u=(i((function(){return a()||c()})),i((function(){return r(/AppleWebKit/i)&&!u()})),i((function(){return r(/Chrome/i)}))),d=i((function(){return r(/Android/i)}));i((function(){return r(/Firefox/i)}))},9271:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(1609);const o=r.forwardRef((function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.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"}))}))},9337:e=>{(()=>{var t,n,r,o={160:(e,t,n)=>{"use strict";var r=n(609),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,a=r.useRef,l=r.useEffect,s=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=s((function(){function e(e){if(!l){if(l=!0,i=e,e=r(e),void 0!==u&&f.hasValue){var t=f.value;if(u(t,e))return a=t}return a=e}if(t=a,o(i,e))return t;var n=r(e);return void 0!==u&&u(t,n)?(i=e,t):(i=e,a=n)}var i,a,l=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]}),[t,n,r,u]);var p=i(e,d[0],d[1]);return l((function(){f.hasValue=!0,f.value=p}),[p]),c(p),p}},418:(e,t,n)=>{"use strict";e.exports=n(160)},488:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Content:()=>pl});var r=n(609),o=n.t(r,2),i=n(942),a=n.n(i),l=n(556),s=n.n(l);const c=window.ReactJSXRuntime,u=(0,r.forwardRef)((({as:e,className:t,label:n,requiredIndicator:r,children:o,...i},l)=>{var s;const u=!(null==i||null===(s=i.dangerouslySetInnerHTML)||void 0===s||!s.__html);return u&&r&&(i.dangerouslySetInnerHTML.__html+='<span class="nfd-label__required">*</span>'),u?(0,c.jsx)(e,{ref:l,className:a()("nfd-label",t),...i}):(0,c.jsxs)(e,{ref:l,className:a()("nfd-label",t),...i,children:[n||o||null,r&&(0,c.jsx)("span",{className:"nfd-label__required",children:"*"})]})})),d={label:s().string,children:s().string,as:s().elementType,className:s().string,required:s().bool,requiredIndicator:s().bool};u.propTypes=d,u.defaultProps={label:"",children:"",as:"label",className:"",requiredIndicator:!1},u.displayName="Label";const f=e=>(0,c.jsx)(u,{...e});f.propTypes=d,f.defaultProps=u.defaultProps,f.displayName="Label";const p=u,m=(0,r.forwardRef)((({type:e,className:t,disabled:n,readOnly:r,required:o,...i},l)=>(0,c.jsx)("input",{ref:l,type:e,className:a()("nfd-text-input",n&&"nfd-text-input--disabled",r&&"nfd-text-input--read-only",t),disabled:n,readOnly:r,required:o,...i}))),h={type:s().string,className:s().string,disabled:s().bool,readOnly:s().bool,required:s().bool};m.propTypes=h,m.defaultProps={type:"text",className:"",disabled:!1,readOnly:!1,required:!1},m.displayName="TextInput";const g=m,v=e=>(0,c.jsx)(m,{...e});v.propTypes=h,v.defaultProps=m.defaultProps,v.displayName="TextInput";const y=window.lodash,w=(e=null)=>(0,r.useMemo)((()=>{const t={role:"img","aria-hidden":"true"};return null!==e&&(t.focusable=e?"true":"false"),t}),[e]),b={success:r.forwardRef((function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))})),warning:r.forwardRef((function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",clipRule:"evenodd"}))})),info:r.forwardRef((function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"}))})),error:r.forwardRef((function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",clipRule:"evenodd"}))}))},x={variant:{success:"nfd-validation-icon--success",warning:"nfd-validation-icon--warning",info:"nfd-validation-icon--info",error:"nfd-validation-icon--error"}},M=({variant:e="info",className:t="",...n})=>{const o=(0,r.useMemo)((()=>b[e]),[e]),i=w();return o?(0,c.jsx)(o,{...i,...n,className:a()("nfd-validation-icon",x.variant[e],t)}):null};M.propTypes={variant:s().oneOf((0,y.values)({success:"success",warning:"warning",info:"info",error:"error"})),className:s().string};const j=M,N={variant:{success:"nfd-validation-input--success",warning:"nfd-validation-input--warning",info:"nfd-validation-input--info",error:"nfd-validation-input--error"}},E=(0,r.forwardRef)((({as:e,icon:t,validation:n={},className:r="",...o},i)=>{const l=(0,c.jsx)(e,{ref:i,...o,className:a()("nfd-validation-input__input",r)});return(0,c.jsxs)("div",{className:a()("nfd-validation-input",(null==n?void 0:n.message)&&N.variant[null==n?void 0:n.variant]),children:[t?(0,c.jsxs)("span",{className:"nfd-group nfd-relative",children:[!(null!=n&&n.message&&Object.keys(N.variant).includes(null==n?void 0:n.variant))&&(0,c.jsx)(t,{className:a()("nfd-text-input__icon","nfd-absolute nfd-w-[24px] nfd-h-[24px] nfd-right-3 nfd-top-1/2 nfd--translate-y-1/2 nfd-pointer-events-none nfd-duration-200")}),l]}):l,(null==n?void 0:n.message)&&(0,c.jsx)(j,{variant:null==n?void 0:n.variant,className:"nfd-validation-input__icon"})]})}));E.propTypes={as:s().elementType.isRequired,icon:s().elementType,validation:s().shape({variant:s().string,message:s().node}),className:s().string},E.defaultProps={icon:null,validation:{},className:""},E.displayName="ValidationInput";const A=E,T={variant:{success:"nfd-validation-message--success",warning:"nfd-validation-message--warning",info:"nfd-validation-message--info",error:"nfd-validation-message--error"}},S=({as:e="p",variant:t="info",children:n,className:r="",...o})=>(0,c.jsx)(e,{...o,className:a()("nfd-validation-message",T.variant[t],r),children:n});S.propTypes={as:s().elementType,variant:s().oneOf((0,y.keys)(T.variant)),message:s().node,className:s().string,children:s().node.isRequired};const I=S,D=(0,r.forwardRef)((({id:e,onChange:t,label:n,labelSuffix:o,labelRequiredIndicator:i,disabled:l,readOnly:s,required:u,icon:d,className:f,description:m,validation:h,...v},w)=>{const{ids:b,describedBy:x}=((e,t)=>{const n=(0,r.useMemo)((()=>(0,y.reduce)(t,((t,n,r)=>n?(t[r]=`${e}__${r}`,t):t),{})),[e,t]),o=(0,r.useMemo)((()=>(0,y.values)(n).join(" ")||null),[n]);return{ids:n,describedBy:o}})(e,{validation:null==h?void 0:h.message,description:m});return(0,c.jsxs)("div",{className:a()("nfd-text-field",l&&"nfd-text-field--disabled",s&&"nfd-text-field--read-only",d&&"nfd-text-field--with-icon",f),children:[!!n&&(0,c.jsxs)("div",{className:"nfd-flex nfd-items-center nfd-mb-2",children:[(0,c.jsx)(p,{requiredIndicator:u&&i,className:"nfd-text-field__label",htmlFor:e,children:n}),o]}),(0,c.jsx)(A,{as:g,ref:w,id:e,icon:d,onChange:t,disabled:l,readOnly:s,required:u,className:a()("nfd-text-field__input",{"nfd-text-field--input-with-icon":d}),"aria-describedby":x,validation:h,...v}),(null==h?void 0:h.message)&&(0,c.jsx)(I,{variant:null==h?void 0:h.variant,id:b.validation,className:"nfd-text-field__validation",children:h.message}),m&&(0,c.jsx)("p",{id:b.description,className:"nfd-text-field__description",children:m})]})})),k={id:s().string.isRequired,onChange:s().func.isRequired,label:s().string.isRequired,labelSuffix:s().node,labelRequiredIndicator:s().node,disabled:s().bool,readOnly:s().bool,required:s().bool,className:s().string,description:s().node,icon:s().elementType,validation:s().shape({variant:s().string,message:s().node})};D.propTypes=k,D.defaultProps={labelSuffix:null,disabled:!1,readOnly:!1,required:!1,className:"",description:null,icon:null,validation:{}},D.displayName="TextField";const C=e=>(0,c.jsx)(D,{...e});C.propTypes=k,C.defaultProps=D.defaultProps,C.displayName="TextField";const L=D,O="undefined"!=typeof document?r.useLayoutEffect:()=>{};var R;const P=null!==(R=r.useInsertionEffect)&&void 0!==R?R:O;function z(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function _(e){let t=(0,r.useRef)({isFocused:!1,observer:null});O((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=function(e){const t=(0,r.useRef)(null);return P((()=>{t.current=e}),[e]),(0,r.useCallback)(((...e)=>{const n=t.current;return null==n?void 0:n(...e)}),[])}((t=>{null==e||e(t)}));return(0,r.useCallback)((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target,o=e=>{if(t.current.isFocused=!1,r.disabled){let t=z(e);n(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver((()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}})),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}}),[n])}function F(e){var t;if("undefined"==typeof window||null==window.navigator)return!1;let n=null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands;return Array.isArray(n)&&n.some((t=>e.test(t.brand)))||e.test(window.navigator.userAgent)}function U(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function B(e){let t=null;return()=>(null==t&&(t=e()),t)}const H=B((function(){return U(/^Mac/i)})),V=B((function(){return U(/^iPhone/i)})),W=B((function(){return U(/^iPad/i)||H()&&navigator.maxTouchPoints>1})),q=B((function(){return V()||W()})),Q=(B((function(){return H()||q()})),B((function(){return F(/AppleWebKit/i)&&!Q()})),B((function(){return F(/Chrome/i)}))),Y=B((function(){return F(/Android/i)}));B((function(){return F(/Firefox/i)}));const $=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},G=e=>e&&"window"in e&&e.window===e?e:$(e).defaultView||window;let Z=null,K=new Set,X=new Map,J=!1,ee=!1;const te={Tab:!0,Escape:!0};function ne(e,t){for(let n of K)n(e,t)}function re(e){J=!0,function(e){return!(e.metaKey||!H()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(Z="keyboard",ne("keyboard",e))}function oe(e){Z="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(J=!0,ne("pointer",e))}function ie(e){var t;(""===(t=e).pointerType&&t.isTrusted||(Y()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType))&&(J=!0,Z="virtual")}function ae(e){e.target!==window&&e.target!==document&&e.isTrusted&&(J||ee||(Z="virtual",ne("virtual",e)),J=!1,ee=!1)}function le(){J=!1,ee=!0}function se(e){if("undefined"==typeof window||"undefined"==typeof document||X.get(G(e)))return;const t=G(e),n=$(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){J=!0,r.apply(this,arguments)},n.addEventListener("keydown",re,!0),n.addEventListener("keyup",re,!0),n.addEventListener("click",ie,!0),t.addEventListener("focus",ae,!0),t.addEventListener("blur",le,!1),"undefined"!=typeof PointerEvent&&(n.addEventListener("pointerdown",oe,!0),n.addEventListener("pointermove",oe,!0),n.addEventListener("pointerup",oe,!0)),t.addEventListener("beforeunload",(()=>{ce(e)}),{once:!0}),X.set(t,{focus:r})}const ce=(e,t)=>{const n=G(e),r=$(e);t&&r.removeEventListener("DOMContentLoaded",t),X.has(n)&&(n.HTMLElement.prototype.focus=X.get(n).focus,r.removeEventListener("keydown",re,!0),r.removeEventListener("keyup",re,!0),r.removeEventListener("click",ie,!0),n.removeEventListener("focus",ae,!0),n.removeEventListener("blur",le,!1),"undefined"!=typeof PointerEvent&&(r.removeEventListener("pointerdown",oe,!0),r.removeEventListener("pointermove",oe,!0),r.removeEventListener("pointerup",oe,!0)),X.delete(n))};function ue(){return"pointer"!==Z}"undefined"!=typeof document&&function(e){const t=$(e);let n;"loading"!==t.readyState?se(e):(n=()=>{se(e)},t.addEventListener("DOMContentLoaded",n))}();const de=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function fe(e,t){return!(!t||!e)&&e.contains(t)}const pe=(e=document)=>e.activeElement;function me(e){return e.target}function he(){let e=(0,r.useRef)(new Map),t=(0,r.useCallback)(((t,n,r,o)=>{let i=(null==o?void 0:o.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:o}),t.addEventListener(n,i,o)}),[]),n=(0,r.useCallback)(((t,n,r,o)=>{var i;let a=(null===(i=e.current.get(r))||void 0===i?void 0:i.fn)||r;t.removeEventListener(n,a,o),e.current.delete(r)}),[]),o=(0,r.useCallback)((()=>{e.current.forEach(((e,t)=>{n(e.eventTarget,e.type,t,e.options)}))}),[n]);return(0,r.useEffect)((()=>o),[o]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:o}}let ge=!1,ve=0;function ye(e){"touch"===e.pointerType&&(ge=!0,setTimeout((()=>{ge=!1}),50))}function we(){if("undefined"!=typeof document)return 0===ve&&"undefined"!=typeof PointerEvent&&document.addEventListener("pointerup",ye),ve++,()=>{ve--,ve>0||"undefined"!=typeof PointerEvent&&document.removeEventListener("pointerup",ye)}}const be=window.ReactDOM;var xe=Object.defineProperty,Me=(e,t,n)=>(((e,t,n)=>{t in e?xe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let je=new class{constructor(){Me(this,"current",this.detect()),Me(this,"handoffState","pending"),Me(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}};function Ne(e){var t;return je.isServer?null:null==e?document:null!=(t=null==e?void 0:e.ownerDocument)?t:document}function Ee(e){var t,n;return je.isServer?null:null==e?document:null!=(n=null==(t=null==e?void 0:e.getRootNode)?void 0:t.call(e))?n:document}function Ae(e){var t,n;return null!=(n=null==(t=Ee(e))?void 0:t.activeElement)?n:null}function Te(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function Se(){let e=[],t={addEventListener:(e,n,r,o)=>(e.addEventListener(n,r,o),t.add((()=>e.removeEventListener(n,r,o)))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(n)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let n=setTimeout(...e);return t.add((()=>clearTimeout(n)))},microTask(...e){let n={current:!0};return Te((()=>{n.current&&e[0]()})),t.add((()=>{n.current=!1}))},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{[t]:r})}))},group(e){let t=Se();return e(t),this.add((()=>t.dispose()))},add:t=>(e.includes(t)||e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function Ie(){let[e]=(0,r.useState)(Se);return(0,r.useEffect)((()=>()=>e.dispose()),[e]),e}let De=(e,t)=>{je.isServer?(0,r.useEffect)(e,t):(0,r.useLayoutEffect)(e,t)};function ke(e){let t=(0,r.useRef)(e);return De((()=>{t.current=e}),[e]),t}let Ce=function(e){let t=ke(e);return r.useCallback(((...e)=>t.current(...e)),[t])};function Le(e,t){return null!==e&&null!==t&&"object"==typeof e&&"object"==typeof t&&"id"in e&&"id"in t?e.id===t.id:e===t}function Oe(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function Re(e,t,n=!1){let[o,i]=(0,r.useState)((()=>Oe(t)));return De((()=>{if(!t||!e)return;let n=Se();return n.requestAnimationFrame((function e(){n.requestAnimationFrame(e),i((e=>{let n=Oe(t);return n.width===e.width&&n.height===e.height?e:n}))})),()=>{n.dispose()}}),[t,e]),n?{width:`${o.width}px`,height:`${o.height}px`}:o}var Pe=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(Pe||{});function ze(e){return"object"==typeof e&&null!==e&&"nodeType"in e}function _e(e){return ze(e)&&"tagName"in e}function Fe(e){return _e(e)&&"accessKey"in e}function Ue(e){return _e(e)&&"tabIndex"in e}function Be(e){return Fe(e)&&"INPUT"===e.nodeName}function He(e){return Fe(e)&&"LABEL"===e.nodeName}function Ve(e){return Fe(e)&&"FIELDSET"===e.nodeName}function We(e){return Fe(e)&&"LEGEND"===e.nodeName}function qe(e){let t=e.parentElement,n=null;for(;t&&!Ve(t);)We(t)&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(We(t))return!1;t=t.previousElementSibling}return!0}(n))&&r}class Qe extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}}var Ye,$e,Ge,Ze=Object.defineProperty,Ke=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Xe=(e,t,n)=>(Ke(e,t,"read from private field"),n?n.call(e):t.get(e)),Je=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},et=(e,t,n,r)=>(Ke(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);class tt{constructor(e){Je(this,Ye,{}),Je(this,$e,new Qe((()=>new Set))),Je(this,Ge,new Set),((e,t,n)=>{((e,t,n)=>{t in e?Ze(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"disposables",n)})(this,0,Se()),et(this,Ye,e),je.isServer&&this.disposables.microTask((()=>{this.dispose()}))}dispose(){this.disposables.dispose()}get state(){return Xe(this,Ye)}subscribe(e,t){if(je.isServer)return()=>{};let n={selector:e,callback:t,current:e(Xe(this,Ye))};return Xe(this,Ge).add(n),this.disposables.add((()=>{Xe(this,Ge).delete(n)}))}on(e,t){return je.isServer?()=>{}:(Xe(this,$e).get(e).add(t),this.disposables.add((()=>{Xe(this,$e).get(e).delete(t)})))}send(e){let t=this.reduce(Xe(this,Ye),e);if(t!==Xe(this,Ye)){et(this,Ye,t);for(let e of Xe(this,Ge)){let t=e.selector(Xe(this,Ye));nt(e.current,t)||(e.current=t,e.callback(t))}for(let t of Xe(this,$e).get(e.type))t(Xe(this,Ye),e)}}}function nt(e,t){return!!Object.is(e,t)||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&(Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&rt(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size===t.size&&rt(e.entries(),t.entries()):!(!ot(e)||!ot(t))&&rt(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()))}function rt(e,t){for(;;){let n=e.next(),r=t.next();if(n.done&&r.done)return!0;if(n.done||r.done||!Object.is(n.value,r.value))return!1}}function ot(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}function it(e){let[t,n]=e(),r=Se();return(...e)=>{t(...e),r.dispose(),r.microTask(n)}}function at(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,at),r}Ye=new WeakMap,$e=new WeakMap,Ge=new WeakMap;var lt,st=Object.defineProperty,ct=(e,t,n)=>(((e,t,n)=>{t in e?st(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),ut=((lt=ut||{})[lt.Push=0]="Push",lt[lt.Pop=1]="Pop",lt);let dt={0(e,t){let n=t.id,r=e.stack,o=e.stack.indexOf(n);if(-1!==o){let t=e.stack.slice();return t.splice(o,1),t.push(n),r=t,{...e,stack:r}}return{...e,stack:[...e.stack,n]}},1(e,t){let n=t.id,r=e.stack.indexOf(n);if(-1===r)return e;let o=e.stack.slice();return o.splice(r,1),{...e,stack:o}}};class ft extends tt{constructor(){super(...arguments),ct(this,"actions",{push:e=>this.send({type:0,id:e}),pop:e=>this.send({type:1,id:e})}),ct(this,"selectors",{isTop:(e,t)=>e.stack[e.stack.length-1]===t,inStack:(e,t)=>e.stack.includes(t)})}static new(){return new ft({stack:[]})}reduce(e,t){return at(t.type,dt,e,t)}}const pt=new Qe((()=>ft.new()));var mt=n(418);function ht(e,t,n=nt){return(0,mt.useSyncExternalStoreWithSelector)(Ce((t=>e.subscribe(gt,t))),Ce((()=>e.state)),Ce((()=>e.state)),Ce(t),n)}function gt(e){return e}function vt(e,t){let n=(0,r.useId)(),o=pt.get(t),[i,a]=ht(o,(0,r.useCallback)((e=>[o.selectors.isTop(e,n),o.selectors.inStack(e,n)]),[o,n]));return De((()=>{if(e)return o.actions.push(n),()=>o.actions.pop(n)}),[o,e,n]),!!e&&(!a||i)}let yt=new Map,wt=new Map;function bt(e){var t;let n=null!=(t=wt.get(e))?t:0;return wt.set(e,n+1),0!==n||(yt.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>function(e){var t;let n=null!=(t=wt.get(e))?t:1;if(1===n?wt.delete(e):wt.set(e,n-1),1!==n)return;let r=yt.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,yt.delete(e))}(e)}let xt=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(","),Mt=["[data-autofocus]"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var jt,Nt,Et=((Nt=Et||{})[Nt.First=1]="First",Nt[Nt.Previous=2]="Previous",Nt[Nt.Next=4]="Next",Nt[Nt.Last=8]="Last",Nt[Nt.WrapAround=16]="WrapAround",Nt[Nt.NoScroll=32]="NoScroll",Nt[Nt.AutoFocus=64]="AutoFocus",Nt),At=((jt=At||{})[jt.Error=0]="Error",jt[jt.Overflow=1]="Overflow",jt[jt.Success=2]="Success",jt[jt.Underflow=3]="Underflow",jt),Tt=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Tt||{});function St(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(xt)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}var It=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(It||{});function Dt(e,t=0){var n;return e!==(null==(n=Ne(e))?void 0:n.body)&&at(t,{0:()=>e.matches(xt),1(){let t=e;for(;null!==t;){if(t.matches(xt))return!0;t=t.parentElement}return!1}})}var kt=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(kt||{});"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));let Ct=["textarea","input"].join(",");function Lt(e,t=e=>e){return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function Ot(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Rt(){return Ot()||/Android/gi.test(window.navigator.userAgent)}function Pt(e,t,n,o){let i=ke(n);(0,r.useEffect)((()=>{if(e)return document.addEventListener(t,n,o),()=>document.removeEventListener(t,n,o);function n(e){i.current(e)}}),[e,t,o])}function zt(...e){return(0,r.useMemo)((()=>Ne(...e)),[...e])}var _t=(e=>(e[e.Ignore=0]="Ignore",e[e.Select=1]="Select",e[e.Close=2]="Close",e))(_t||{});const Ft={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}};function Ut(e,t){return(0,r.useMemo)((()=>{var n;if(e.type)return e.type;let r=null!=(n=e.as)?n:"button";return"string"==typeof r&&"button"===r.toLowerCase()||"BUTTON"===(null==t?void 0:t.tagName)&&!t.hasAttribute("type")?"button":void 0}),[e.type,e.as,t])}function Bt(){let e;return{before({doc:t}){var n;let r=t.documentElement,o=null!=(n=t.defaultView)?n:window;e=Math.max(0,o.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,o=Math.max(0,r.clientWidth-r.offsetWidth),i=Math.max(0,e-o);n.style(r,"paddingRight",`${i}px`)}}}function Ht(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Vt=function(e,t){let n=new Map,r=new Set;return{getSnapshot:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e,...o){let i=t[e].call(n,...o);i&&(n=i,r.forEach((e=>e())))}}}(0,{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:Se(),meta:new Set,computedMeta:{}};return r.count++,r.meta.add(t),r.computedMeta=Ht(r.meta),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t),n.computedMeta=Ht(n.meta)),this},SCROLL_PREVENT(e){let t={doc:e.doc,d:e.d,meta:()=>e.computedMeta},n=[Ot()?{before({doc:e,d:t,meta:n}){function r(e){for(let t of n().containers)for(let n of t())if(n.contains(e))return!0;return!1}t.microTask((()=>{var n;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let n=Se();n.style(e.documentElement,"scrollBehavior","auto"),t.add((()=>t.microTask((()=>n.dispose()))))}let o=null!=(n=window.scrollY)?n:window.pageYOffset,i=null;t.addEventListener(e,"click",(t=>{if(Ue(t.target))try{let n=t.target.closest("a");if(!n)return;let{hash:o}=new URL(n.href),a=e.querySelector(o);Ue(a)&&!r(a)&&(i=a)}catch{}}),!0),t.group((n=>{t.addEventListener(e,"touchstart",(e=>{if(n.dispose(),Ue(e.target)&&function(e){return _e(e)&&"style"in e}(e.target))if(r(e.target)){let t=e.target;for(;t.parentElement&&r(t.parentElement);)t=t.parentElement;n.style(t,"overscrollBehavior","contain")}else n.style(e.target,"touchAction","none")}))})),t.addEventListener(e,"touchmove",(e=>{if(Ue(e.target)){if(Be(e.target))return;if(r(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}}),{passive:!1}),t.add((()=>{var e;let t=null!=(e=window.scrollY)?e:window.pageYOffset;o!==t&&window.scrollTo(0,o),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)}))}))}}:{},Bt(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];n.forEach((({before:e})=>null==e?void 0:e(t))),n.forEach((({after:e})=>null==e?void 0:e(t)))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});function Wt(e){return(0,r.useMemo)((()=>e),Object.values(e))}Vt.subscribe((()=>{let e=Vt.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&Vt.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&Vt.dispatch("TEARDOWN",n)}}));let qt=Symbol();function Qt(...e){let t=(0,r.useRef)(e);(0,r.useEffect)((()=>{t.current=e}),[e]);let n=Ce((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[qt])))?void 0:n}let Yt=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function $t(e){var t,n;let r=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0);if(!Fe(o))return r;let i=!1;for(let e of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),i=!0;let a=i?null!=(n=o.innerText)?n:"":r;return Yt.test(a)&&(a=a.replace(Yt,"")),a}function Gt(e){return[e.screenX,e.screenY]}var Zt,Kt;"undefined"!=typeof process&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&"test"===(null==(Zt=null==process?void 0:process.env)?void 0:Zt.NODE_ENV)&&void 0===(null==(Kt=null==Element?void 0:Element.prototype)?void 0:Kt.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join("\n")),[]});var Xt,Jt=((Xt=Jt||{})[Xt.None=0]="None",Xt[Xt.Closed=1]="Closed",Xt[Xt.Enter=2]="Enter",Xt[Xt.Leave=4]="Leave",Xt);function en(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t}function tn(e,t,n,o){let[i,a]=(0,r.useState)(n),{hasFlag:l,addFlag:s,removeFlag:c}=function(e=0){let[t,n]=(0,r.useState)(e),o=(0,r.useCallback)((e=>n(e)),[]),i=(0,r.useCallback)((e=>n((t=>t|e))),[]),a=(0,r.useCallback)((e=>(t&e)===e),[t]),l=(0,r.useCallback)((e=>n((t=>t&~e))),[]),s=(0,r.useCallback)((e=>n((t=>t^e))),[]);return{flags:t,setFlag:o,addFlag:i,hasFlag:a,removeFlag:l,toggleFlag:s}}(e&&i?3:0),u=(0,r.useRef)(!1),d=(0,r.useRef)(!1),f=Ie();return De((()=>{var r;if(e)return n&&a(!0),t?(null==(r=null==o?void 0:o.start)||r.call(o,n),function(e,{prepare:t,run:n,done:r,inFlight:o}){let i=Se();return function(e,{inFlight:t,prepare:n}){if(null!=t&&t.current)return void n();let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}(e,{prepare:t,inFlight:o}),i.nextFrame((()=>{n(),i.requestAnimationFrame((()=>{i.add(function(e,t){var n,r;let o=Se();if(!e)return o.dispose;let i=!1;o.add((()=>{i=!0}));let a=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter((e=>e instanceof CSSTransition)))?r:[];return 0===a.length?(t(),o.dispose):(Promise.allSettled(a.map((e=>e.finished))).then((()=>{i||t()})),o.dispose)}(e,r))}))})),i.dispose}(t,{inFlight:u,prepare(){d.current?d.current=!1:d.current=u.current,u.current=!0,!d.current&&(n?(s(3),c(4)):(s(4),c(2)))},run(){d.current?n?(c(3),s(4)):(c(4),s(3)):n?c(1):s(1)},done(){var e;d.current&&function(e){var t,n;return(null!=(n=null==(t=e.getAnimations)?void 0:t.call(e))?n:[]).some((e=>e instanceof CSSTransition&&"finished"!==e.playState))}(t)||(u.current=!1,c(7),n||a(!1),null==(e=null==o?void 0:o.end)||e.call(o,n))}})):void(n&&s(3))}),[e,n,t,f]),e?[i,{closed:l(1),enter:l(2),leave:l(4),transition:l(2)||l(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}let nn=(0,r.createContext)(void 0);function rn(){return(0,r.useContext)(nn)}const on=Math.min,an=Math.max,ln=Math.round,sn=Math.floor,cn=e=>({x:e,y:e}),un={left:"right",right:"left",bottom:"top",top:"bottom"},dn={start:"end",end:"start"};function fn(e,t,n){return an(e,on(t,n))}function pn(e,t){return"function"==typeof e?e(t):e}function mn(e){return e.split("-")[0]}function hn(e){return e.split("-")[1]}function gn(e){return"x"===e?"y":"x"}function vn(e){return"y"===e?"height":"width"}const yn=new Set(["top","bottom"]);function wn(e){return yn.has(mn(e))?"y":"x"}function bn(e){return gn(wn(e))}function xn(e){return e.replace(/start|end/g,(e=>dn[e]))}const Mn=["left","right"],jn=["right","left"],Nn=["top","bottom"],En=["bottom","top"];function An(e){return e.replace(/left|right|bottom|top/g,(e=>un[e]))}function Tn(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Sn(){return"undefined"!=typeof window}function In(e){return Cn(e)?(e.nodeName||"").toLowerCase():"#document"}function Dn(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function kn(e){var t;return null==(t=(Cn(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Cn(e){return!!Sn()&&(e instanceof Node||e instanceof Dn(e).Node)}function Ln(e){return!!Sn()&&(e instanceof Element||e instanceof Dn(e).Element)}function On(e){return!!Sn()&&(e instanceof HTMLElement||e instanceof Dn(e).HTMLElement)}function Rn(e){return!(!Sn()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Dn(e).ShadowRoot)}const Pn=new Set(["inline","contents"]);function zn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Zn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Pn.has(o)}const Fn=new Set(["table","td","th"]);function Un(e){return Fn.has(In(e))}const Bn=[":popover-open",":modal"];function Hn(e){return Bn.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}const Vn=["transform","translate","scale","rotate","perspective"],Wn=["transform","translate","scale","rotate","perspective","filter"],qn=["paint","layout","strict","content"];function Qn(e){const t=Yn(),n=Ln(e)?Zn(e):e;return Vn.some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Wn.some((e=>(n.willChange||"").includes(e)))||qn.some((e=>(n.contain||"").includes(e)))}function Yn(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const $n=new Set(["html","body","#document"]);function Gn(e){return $n.has(In(e))}function Zn(e){return Dn(e).getComputedStyle(e)}function Kn(e){return Ln(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xn(e){if("html"===In(e))return e;const t=e.assignedSlot||e.parentNode||Rn(e)&&e.host||kn(e);return Rn(t)?t.host:t}function Jn(e){const t=Xn(e);return Gn(t)?e.ownerDocument?e.ownerDocument.body:e.body:On(t)&&zn(t)?t:Jn(t)}function er(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Jn(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Dn(o);if(i){const e=tr(a);return t.concat(a,a.visualViewport||[],zn(o)?o:[],e&&n?er(e):[])}return t.concat(o,er(o,[],n))}function tr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function nr(e,t,n){let{reference:r,floating:o}=e;const i=wn(t),a=bn(t),l=vn(a),s=mn(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[l]/2-o[l]/2;let p;switch(s){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(hn(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1)}return p}async function rr(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=pn(t,e),m=function(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}(p),h=l[f?"floating"===d?"reference":"floating":d],g=Tn(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:s})),v="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),w=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},b=Tn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:y,strategy:s}):v);return{top:(g.top-b.top+m.top)/w.y,bottom:(b.bottom-g.bottom+m.bottom)/w.y,left:(g.left-b.left+m.left)/w.x,right:(b.right-g.right+m.right)/w.x}}const or=new Set(["left","top"]);function ir(e){const t=Zn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=On(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=ln(n)!==i||ln(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function ar(e){return Ln(e)?e:e.contextElement}function lr(e){const t=ar(e);if(!On(t))return cn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ir(t);let a=(i?ln(n.width):n.width)/r,l=(i?ln(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const sr=cn(0);function cr(e){const t=Dn(e);return Yn()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:sr}function ur(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=ar(e);let a=cn(1);t&&(r?Ln(r)&&(a=lr(r)):a=lr(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Dn(e))&&t}(i,n,r)?cr(i):cn(0);let s=(o.left+l.x)/a.x,c=(o.top+l.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=Dn(i),t=r&&Ln(r)?Dn(r):r;let n=e,o=tr(n);for(;o&&r&&t!==n;){const e=lr(o),t=o.getBoundingClientRect(),r=Zn(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=i,c+=a,n=Dn(o),o=tr(n)}}return Tn({width:u,height:d,x:s,y:c})}function dr(e,t){const n=Kn(e).scrollLeft;return t?t.left+n:ur(kn(e)).left+n}function fr(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-dr(e,n),y:n.top+t.scrollTop}}const pr=new Set(["absolute","fixed"]);function mr(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Dn(e),r=kn(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const e=Yn();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}const c=dr(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-o);a<=25&&(i-=a)}else c<=25&&(i+=c);return{width:i,height:a,x:l,y:s}}(e,n);else if("document"===t)r=function(e){const t=kn(e),n=Kn(e),r=e.ownerDocument.body,o=an(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=an(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+dr(e);const l=-n.scrollTop;return"rtl"===Zn(r).direction&&(a+=an(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}(kn(e));else if(Ln(t))r=function(e,t){const n=ur(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=On(e)?lr(e):cn(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=cr(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Tn(r)}function hr(e,t){const n=Xn(e);return!(n===t||!Ln(n)||Gn(n))&&("fixed"===Zn(n).position||hr(n,t))}function gr(e,t,n){const r=On(t),o=kn(t),i="fixed"===n,a=ur(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=cn(0);function c(){s.x=dr(o)}if(r||!r&&!i)if(("body"!==In(t)||zn(o))&&(l=Kn(t)),r){const e=ur(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=!o||r||i?cn(0):fr(o,l);return{x:a.left+l.scrollLeft-s.x-u.x,y:a.top+l.scrollTop-s.y-u.y,width:a.width,height:a.height}}function vr(e){return"static"===Zn(e).position}function yr(e,t){if(!On(e)||"fixed"===Zn(e).position)return null;if(t)return t(e);let n=e.offsetParent;return kn(e)===n&&(n=n.ownerDocument.body),n}function wr(e,t){const n=Dn(e);if(Hn(e))return n;if(!On(e)){let t=Xn(e);for(;t&&!Gn(t);){if(Ln(t)&&!vr(t))return t;t=Xn(t)}return n}let r=yr(e,t);for(;r&&Un(r)&&vr(r);)r=yr(r,t);return r&&Gn(r)&&vr(r)&&!Qn(r)?n:r||function(e){let t=Xn(e);for(;On(t)&&!Gn(t);){if(Qn(t))return t;if(Hn(t))return null;t=Xn(t)}return null}(e)||n}const br={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=kn(r),l=!!t&&Hn(t.floating);if(r===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},c=cn(1);const u=cn(0),d=On(r);if((d||!d&&!i)&&(("body"!==In(r)||zn(a))&&(s=Kn(r)),On(r))){const e=ur(r);c=lr(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!a||d||i?cn(0):fr(a,s);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-s.scrollTop*c.y+u.y+f.y}},getDocumentElement:kn,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?Hn(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=er(e,[],!1).filter((e=>Ln(e)&&"body"!==In(e))),o=null;const i="fixed"===Zn(e).position;let a=i?Xn(e):e;for(;Ln(a)&&!Gn(a);){const t=Zn(a),n=Qn(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&pr.has(o.position)||zn(a)&&!n&&hr(e,a))?r=r.filter((e=>e!==a)):o=t,a=Xn(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...i,r],l=a[0],s=a.reduce(((e,n)=>{const r=mr(t,n,o);return e.top=an(r.top,e.top),e.right=on(r.right,e.right),e.bottom=on(r.bottom,e.bottom),e.left=an(r.left,e.left),e}),mr(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:wr,getElementRects:async function(e){const t=this.getOffsetParent||wr,n=this.getDimensions,r=await n(e.floating);return{reference:gr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=ir(e);return{width:t,height:n}},getScale:lr,isElement:Ln,isRTL:function(e){return"rtl"===Zn(e).direction}};function xr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Mr(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=ar(e),u=o||i?[...c?er(c):[],...er(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&l?function(e,t){let n,r=null;const o=kn(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(l||t(),!f||!p)return;const m={rootMargin:-sn(d)+"px "+-sn(o.clientWidth-(u+f))+"px "+-sn(o.clientHeight-(d+p))+"px "+-sn(u)+"px",threshold:an(0,on(1,s))||1};let h=!0;function g(t){const r=t[0].intersectionRatio;if(r!==s){if(!h)return a();r?a(!1,r):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==r||xr(c,e.getBoundingClientRect())||a(),h=!1}try{r=new IntersectionObserver(g,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,m)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,m=null;a&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),c&&!s&&m.observe(c),m.observe(t));let h=s?ur(e):null;return s&&function t(){const r=ur(e);h&&!xr(h,r)&&n(),h=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=m)||e.disconnect(),m=null,s&&cancelAnimationFrame(f)}}const jr=rr,Nr=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:l}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=mn(n),l=hn(n),s="y"===wn(n),c=or.has(a)?-1:1,u=i&&s?-1:1,d=pn(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&"number"==typeof m&&(p="end"===l?-1*m:m),s?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},Er=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=pn(e,t),c={x:n,y:r},u=await rr(t,s),d=wn(mn(o)),f=gn(d);let p=c[f],m=c[d];if(i){const e="y"===f?"bottom":"right";p=fn(p+u["y"===f?"top":"left"],p,p-u[e])}if(a){const e="y"===d?"bottom":"right";m=fn(m+u["y"===d?"top":"left"],m,m-u[e])}const h=l.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:i,[d]:a}}}}}},Ar=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:l,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=pn(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=mn(o),y=wn(l),w=mn(l)===l,b=await(null==s.isRTL?void 0:s.isRTL(c.floating)),x=f||(w||!h?[An(l)]:function(e){const t=An(e);return[xn(e),t,xn(t)]}(l)),M="none"!==m;!f&&M&&x.push(...function(e,t,n,r){const o=hn(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?jn:Mn:t?Mn:jn;case"left":case"right":return t?Nn:En;default:return[]}}(mn(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(xn)))),i}(l,h,m,b));const j=[l,...x],N=await rr(t,g),E=[];let A=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&E.push(N[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=hn(e),o=bn(e),i=vn(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=An(a)),[a,An(a)]}(o,a,b);E.push(N[e[0]],N[e[1]])}if(A=[...A,{placement:o,overflows:E}],!E.every((e=>e<=0))){var T,S;const e=((null==(T=i.flip)?void 0:T.index)||0)+1,t=j[e];if(t&&("alignment"!==d||y===wn(t)||A.every((e=>wn(e.placement)!==y||e.overflows[0]>0))))return{data:{index:e,overflows:A},reset:{placement:t}};let n=null==(S=A.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:S.placement;if(!n)switch(p){case"bestFit":{var I;const e=null==(I=A.filter((e=>{if(M){const t=wn(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:I[0];e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}},Tr=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:l}=t,{apply:s=()=>{},...c}=pn(e,t),u=await rr(t,c),d=mn(o),f=hn(o),p="y"===wn(o),{width:m,height:h}=i.floating;let g,v;"top"===d||"bottom"===d?(g=d,v=f===(await(null==a.isRTL?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(v=d,g="end"===f?"top":"bottom");const y=h-u.top-u.bottom,w=m-u.left-u.right,b=on(h-u[g],y),x=on(m-u[v],w),M=!t.middlewareData.shift;let j=b,N=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(N=w),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(j=y),M&&!f){const e=an(u.left,0),t=an(u.right,0),n=an(u.top,0),r=an(u.bottom,0);p?N=m-2*(0!==e||0!==t?e+t:an(u.left,u.right)):j=h-2*(0!==n||0!==r?n+r:an(u.top,u.bottom))}await s({...t,availableWidth:N,availableHeight:j});const E=await a.getDimensions(l.floating);return m!==E.width||h!==E.height?{reset:{rects:!0}}:{}}}};var Sr="undefined"!=typeof document?r.useLayoutEffect:function(){};function Ir(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Ir(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||Ir(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function Dr(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function kr(e,t){const n=Dr(e);return Math.round(t*n)/n}function Cr(e){const t=r.useRef(e);return Sr((()=>{t.current=e})),t}const Lr=(e,t)=>({...Nr(e),options:[e,t]}),Or=(e,t)=>({...Ar(e),options:[e,t]}),Rr=(e,t)=>({...Tr(e),options:[e,t]}),Pr={...o},zr=Pr.useInsertionEffect||(e=>e());function _r(e){const t=r.useRef((()=>{}));return zr((()=>{t.current=e})),r.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}var Fr="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;let Ur=!1,Br=0;const Hr=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Br++,Vr=Pr.useId||function(){const[e,t]=r.useState((()=>Ur?Hr():void 0));return Fr((()=>{null==e&&t(Hr())}),[]),r.useEffect((()=>{Ur=!0}),[]),e},Wr=r.createContext(null),qr=r.createContext(null),Qr="data-floating-ui-focusable";const Yr="active",$r="selected";function Gr(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[Yr]:t,[$r]:__,...n}=e;i=n}return{..."floating"===n&&{tabIndex:-1,[Qr]:""},...i,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var a;o&&[Yr,$r].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(a=r.get(n))||a.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}function Zr(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}let Kr=(0,r.createContext)({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});Kr.displayName="FloatingContext";let Xr=(0,r.createContext)(null);function Jr({children:e,enabled:t=!0}){let[n,o]=(0,r.useState)(null),[i,a]=(0,r.useState)(0),l=(0,r.useRef)(null),[s,c]=(0,r.useState)(null);!function(e){De((()=>{if(!e)return;let t=new MutationObserver((()=>{let t=window.getComputedStyle(e).maxHeight,n=parseFloat(t);if(isNaN(n))return;let r=parseInt(t);isNaN(r)||n!==r&&(e.style.maxHeight=`${Math.ceil(n)}px`)}));return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}}),[e])}(s);let u=t&&null!==n&&null!==s,{to:d="bottom",gap:f=0,offset:p=0,padding:m=0,inner:h}=function(e,t){var n,r,o;let i=eo(null!=(n=null==e?void 0:e.gap)?n:"var(--anchor-gap, 0)",t),a=eo(null!=(r=null==e?void 0:e.offset)?r:"var(--anchor-offset, 0)",t),l=eo(null!=(o=null==e?void 0:e.padding)?o:"var(--anchor-padding, 0)",t);return{...e,gap:i,offset:a,padding:l}}(n,s),[g,v="center"]=d.split(" ");De((()=>{u&&a(0)}),[u]);let{refs:y,floatingStyles:w,context:b}=function(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:o}=e,i=Vr(),a=r.useRef({}),[l]=r.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}())),s=null!=((null==(m=r.useContext(Wr))?void 0:m.id)||null),[c,u]=r.useState(o.reference),d=_r(((e,t,r)=>{a.current.openEvent=e?t:void 0,l.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)})),f=r.useMemo((()=>({setPositionReference:u})),[]),p=r.useMemo((()=>({reference:c||o.reference||null,floating:o.floating||null,domReference:o.reference})),[c,o.reference,o.floating]);var m;return r.useMemo((()=>({dataRef:a,open:t,onOpenChange:d,elements:p,events:l,floatingId:i,refs:f})),[t,d,p,l,i,f])}({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||n,i=o.elements,[a,l]=r.useState(null),[s,c]=r.useState(null),u=(null==i?void 0:i.domReference)||a,d=r.useRef(null),f=r.useContext(qr);Fr((()=>{u&&(d.current=u)}),[u]);const p=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:l}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[d,f]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=r.useState(o);Ir(p,o)||m(o);const[h,g]=r.useState(null),[v,y]=r.useState(null),w=r.useCallback((e=>{e!==j.current&&(j.current=e,g(e))}),[]),b=r.useCallback((e=>{e!==N.current&&(N.current=e,y(e))}),[]),x=a||h,M=l||v,j=r.useRef(null),N=r.useRef(null),E=r.useRef(d),A=null!=c,T=Cr(c),S=Cr(i),I=Cr(u),D=r.useCallback((()=>{if(!j.current||!N.current)return;const e={placement:t,strategy:n,middleware:p};S.current&&(e.platform=S.current),((e,t,n)=>{const r=new Map,o={platform:br,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=nr(c,r,s),f=r,p={},m=0;for(let n=0;n<l.length;n++){const{name:i,fn:h}=l[n],{x:g,y:v,data:y,reset:w}=await h({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,p={...p,[i]:{...p[i],...y}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(c=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:u,y:d}=nr(c,f,s))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})})(j.current,N.current,e).then((e=>{const t={...e,isPositioned:!1!==I.current};k.current&&!Ir(E.current,t)&&(E.current=t,be.flushSync((()=>{f(t)})))}))}),[p,t,n,S,I]);Sr((()=>{!1===u&&E.current.isPositioned&&(E.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[u]);const k=r.useRef(!1);Sr((()=>(k.current=!0,()=>{k.current=!1})),[]),Sr((()=>{if(x&&(j.current=x),M&&(N.current=M),x&&M){if(T.current)return T.current(x,M,D);D()}}),[x,M,D,T,A]);const C=r.useMemo((()=>({reference:j,floating:N,setReference:w,setFloating:b})),[w,b]),L=r.useMemo((()=>({reference:x,floating:M})),[x,M]),O=r.useMemo((()=>{const e={position:n,left:0,top:0};if(!L.floating)return e;const t=kr(L.floating,d.x),r=kr(L.floating,d.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...Dr(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,L.floating,d.x,d.y]);return r.useMemo((()=>({...d,update:D,refs:C,elements:L,floatingStyles:O})),[d,D,C,L,O])}({...e,elements:{...i,...s&&{reference:s}}}),m=r.useCallback((e=>{const t=Ln(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),p.refs.setReference(t)}),[p.refs]),h=r.useCallback((e=>{(Ln(e)||null===e)&&(d.current=e,l(e)),(Ln(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!Ln(e))&&p.refs.setReference(e)}),[p.refs]),g=r.useMemo((()=>({...p.refs,setReference:h,setPositionReference:m,domReference:d})),[p.refs,h,m]),v=r.useMemo((()=>({...p.elements,domReference:u})),[p.elements,u]),y=r.useMemo((()=>({...p,...o,refs:g,elements:v,nodeId:t})),[p,g,v,t,o]);return Fr((()=>{o.dataRef.current.floatingContext=y;const e=null==f?void 0:f.nodesRef.current.find((e=>e.id===t));e&&(e.context=y)})),r.useMemo((()=>({...p,context:y,refs:g,elements:v})),[p,g,v,y])}({open:u,placement:"selection"===g?"center"===v?"bottom":`bottom-${v}`:"center"===v?`${g}`:`${g}-${v}`,strategy:"absolute",transform:!1,middleware:[Lr({mainAxis:"selection"===g?0:f,crossAxis:p}),(N={padding:m},{...Er(N),options:[N,void 0]}),"selection"!==g&&Or({padding:m}),"selection"===g&&h?(j={...h,padding:m,overflowRef:l,offset:i,minItemsVisible:4,referenceOverflowThreshold:m,onFallbackChange(e){var t,n;if(!e)return;let r=b.elements.floating;if(!r)return;let o=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,i=Math.min(4,r.childElementCount),l=0,s=0;for(let e of null!=(n=null==(t=b.elements.floating)?void 0:t.childNodes)?n:[])if(Fe(e)){let t=e.offsetTop,n=t+e.clientHeight+o,a=r.scrollTop,c=a+r.clientHeight;if(!(t>=a&&n<=c)){s=Math.max(0,Math.min(n,c)-Math.max(t,a)),l=e.clientHeight;break}i--}i>=1&&a((e=>{let t=l*i-s+o;return e>=t?e:t}))}},{name:"inner",options:j,async fn(e){const{listRef:t,overflowRef:n,onFallbackChange:r,offset:o=0,index:i=0,minItemsVisible:a=4,referenceOverflowThreshold:l=0,scrollRef:s,...c}=pn(j,e),{rects:u,elements:{floating:d}}=e,f=t.current[i],p=(null==s?void 0:s.current)||d,m=d.clientTop||p.clientTop,h=0!==d.clientTop,g=0!==p.clientTop,v=d===p;if(!f)return{};const y={...e,...await Lr(-f.offsetTop-d.clientTop-u.reference.height/2-f.offsetHeight/2-o).fn(e)},w=await jr(Zr(y,p.scrollHeight+m+d.clientTop),c),b=await jr(y,{...c,elementContext:"reference"}),x=an(0,w.top),M=y.y+x,N=(p.scrollHeight>p.clientHeight?e=>e:ln)(an(0,p.scrollHeight+(h&&v||g?2*m:0)-x-an(0,w.bottom)));if(p.style.maxHeight=N+"px",p.scrollTop=x,r){const e=p.offsetHeight<f.offsetHeight*on(a,t.current.length)-1||b.top>=-l||b.bottom>=-l;be.flushSync((()=>r(e)))}return n&&(n.current=await jr(Zr({...y,y:M},p.offsetHeight+m+d.clientTop),c)),{y:M}}}):null,Rr({padding:m,apply({availableWidth:e,availableHeight:t,elements:n}){Object.assign(n.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}})].filter(Boolean),whileElementsMounted:Mr}),[x=g,M=v]=b.placement.split("-");var j,N;"selection"===g&&(x="selection");let E=(0,r.useMemo)((()=>({anchor:[x,M].filter(Boolean).join(" ")})),[x,M]),A=function(e,t){const{open:n,elements:o}=e,{enabled:i=!0,overflowRef:a,scrollRef:l,onChange:s}=t,c=_r(s),u=r.useRef(!1),d=r.useRef(null),f=r.useRef(null);r.useEffect((()=>{if(!i)return;function e(e){if(e.ctrlKey||!t||null==a.current)return;const n=e.deltaY,r=a.current.top>=-.5,o=a.current.bottom>=-.5,i=t.scrollHeight-t.clientHeight,l=n<0?-1:1,s=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!r&&n>0||!o&&n<0?(e.preventDefault(),be.flushSync((()=>{c((e=>e+Math[s](n,i*l)))}))):/firefox/i.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}())&&(t.scrollTop+=n))}const t=(null==l?void 0:l.current)||o.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame((()=>{d.current=t.scrollTop,null!=a.current&&(f.current={...a.current})})),()=>{d.current=null,f.current=null,t.removeEventListener("wheel",e)}):void 0}),[i,n,o.floating,a,l,c]);const p=r.useMemo((()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){const e=(null==l?void 0:l.current)||o.floating;if(a.current&&e&&u.current){if(null!==d.current){const t=e.scrollTop-d.current;(a.current.bottom<-.5&&t<-1||a.current.top<-.5&&t>1)&&be.flushSync((()=>c((e=>e+t))))}requestAnimationFrame((()=>{d.current=e.scrollTop}))}}})),[o.floating,c,a,l]);return r.useMemo((()=>i?{floating:p}:{}),[i,p])}(b,{overflowRef:l,onChange:a}),{getReferenceProps:T,getFloatingProps:S}=function(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),o=e.map((e=>null==e?void 0:e.item)),i=r.useCallback((t=>Gr(t,e,"reference")),t),a=r.useCallback((t=>Gr(t,e,"floating")),n),l=r.useCallback((t=>Gr(t,e,"item")),o);return r.useMemo((()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:l})),[i,a,l])}([A]),I=Ce((e=>{c(e),y.setFloating(e)}));return r.createElement(Xr.Provider,{value:o},r.createElement(Kr.Provider,{value:{setFloating:I,setReference:y.setReference,styles:w,getReferenceProps:T,getFloatingProps:S,slot:E}},e))}function eo(e,t,n=void 0){let o=Ie(),i=Ce(((e,t)=>{if(null==e)return[n,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[n,null];let r=no(e,t);return[r,n=>{let i=to(e);{let a=i.map((e=>window.getComputedStyle(t).getPropertyValue(e)));o.requestAnimationFrame((function l(){o.nextFrame(l);let s=!1;for(let[e,n]of i.entries()){let r=window.getComputedStyle(t).getPropertyValue(n);if(a[e]!==r){a[e]=r,s=!0;break}}if(!s)return;let c=no(e,t);r!==c&&(n(c),r=c)}))}return o.dispose}]}return[n,null]})),a=(0,r.useMemo)((()=>i(e,t)[0]),[e,t]),[l=a,s]=(0,r.useState)();return De((()=>{let[n,r]=i(e,t);if(s(n),r)return r(s)}),[e,t]),l}function to(e){let t=/var\((.*)\)/.exec(e);if(t){let e=t[1].indexOf(",");if(-1===e)return[t[1]];let n=t[1].slice(0,e).trim(),r=t[1].slice(e+1).trim();return r?[n,...to(r)]:[n]}return[]}function no(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}function ro(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))io(n,oo(t,r),o);return n}function oo(e,t){return e?e+"["+t+"]":t}function io(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())io(e,oo(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):function(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}(n)&&!(0,r.isValidElement)(n)&&ro(n,t,e)}function ao(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}Xr.displayName="PlacementContext";var lo=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(lo||{}),so=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(so||{});function co(){let e=function(){let e=(0,r.useRef)([]),t=(0,r.useCallback)((t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)}),[]);return(...n)=>{if(!n.every((e=>null==e)))return e.current=n,t}}();return(0,r.useCallback)((t=>function({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a,mergeRefs:l}){l=null!=l?l:fo;let s=po(t,e);if(i)return uo(s,n,r,a,l);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=s;if(e)return uo(t,n,r,a,l)}if(1&c){let{unmount:e=!0,...t}=s;return at(e?0:1,{0:()=>null,1:()=>uo({...t,hidden:!0,style:{display:"none"}},n,r,a,l)})}return uo(s,n,r,a,l)}({mergeRefs:e,...t})),[e])}function uo(e,t={},n,o,i){let{as:a=n,children:l,refName:s="ref",...c}=vo(e,["unmount","static"]),u=void 0!==e.ref?{[s]:e.ref}:{},d="function"==typeof l?l(t):l;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(t)),c["aria-labelledby"]&&c["aria-labelledby"]===c.id&&(c["aria-labelledby"]=void 0);let f={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r.replace(/([A-Z])/g,(e=>`-${e.toLowerCase()}`)));if(e){f["data-headlessui-state"]=n.join(" ");for(let e of n)f[`data-${e}`]=""}}if(wo(a)&&(Object.keys(go(c)).length>0||Object.keys(go(f)).length>0)){if(!(!(0,r.isValidElement)(d)||Array.isArray(d)&&d.length>1||function(e){return wo(e.type)}(d))){let e=d.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>ao(t(...e),c.className):ao(t,c.className),o=n?{className:n}:{},a=po(d.props,go(vo(c,["ref"])));for(let e in f)e in a&&delete f[e];return(0,r.cloneElement)(d,Object.assign({},a,f,u,{ref:i(yo(d),u.ref)},o))}if(Object.keys(go(c)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(go(c)).concat(Object.keys(go(f))).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"))}return(0,r.createElement)(a,Object.assign({},vo(c,["ref"]),!wo(a)&&u,!wo(a)&&f),d)}function fo(...e){return e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function po(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])for(let e in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(n[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in n)Object.assign(t,{[e](t,...r){let o=n[e];for(let e of o){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function mo(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];for(let e in n)Object.assign(t,{[e](...t){let r=n[e];for(let e of r)null==e||e(...t)}});return t}function ho(e){var t;return Object.assign((0,r.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function go(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function vo(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function yo(e){return r.version.split(".")[0]>="19"?e.props.ref:e.ref}function wo(e){return e===r.Fragment||e===Symbol.for("react.fragment")}var bo=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(bo||{});let xo=ho((function(e,t){var n;let{features:r=1,...o}=e,i={ref:t,"aria-hidden":!(2&~r)||(null!=(n=o["aria-hidden"])?n:void 0),hidden:!(4&~r)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...!(4&~r)&&!!(2&~r)&&{display:"none"}}};return co()({ourProps:i,theirProps:o,slot:{},defaultTag:"span",name:"Hidden"})})),Mo=(0,r.createContext)(null);function jo({children:e}){let t=(0,r.useContext)(Mo);if(!t)return r.createElement(r.Fragment,null,e);let{target:n}=t;return n?(0,be.createPortal)(r.createElement(r.Fragment,null,e),n):null}function No({data:e,form:t,disabled:n,onReset:o,overrides:i}){let[a,l]=(0,r.useState)(null),s=Ie();return(0,r.useEffect)((()=>{if(o&&a)return s.addEventListener(a,"reset",o)}),[a,t,o]),r.createElement(jo,null,r.createElement(Eo,{setForm:l,formId:t}),ro(e).map((([e,o])=>r.createElement(xo,{features:bo.Hidden,...go({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:e,value:o,...i})}))))}function Eo({setForm:e,formId:t}){return(0,r.useEffect)((()=>{if(t){let n=document.getElementById(t);n&&e(n)}}),[e,t]),t?null:r.createElement(xo,{features:bo.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:t=>{if(!t)return;let n=t.closest("form");n&&e(n)}})}function Ao(e,t){let[n,o]=(0,r.useState)(t);return!e&&n!==t&&o(t),e?n:t}r.forwardRef((function({children:e,freeze:t},n){let o=Ao(t,e);return(0,r.isValidElement)(o)?(0,r.cloneElement)(o,{ref:n}):r.createElement(r.Fragment,null,o)}));let To=(0,r.createContext)(void 0);function So(){return(0,r.useContext)(To)}let Io=(0,r.createContext)(null);Io.displayName="OpenClosedContext";var Do=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Do||{});function ko(){return(0,r.useContext)(Io)}function Co({value:e,children:t}){return r.createElement(Io.Provider,{value:e},t)}var Lo=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(Lo||{});function Oo(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 1:-1===o&&(o=n.length);for(let e=o-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=o+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r;return r;case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}}let Ro=(0,r.createContext)(null);function Po(){let e=(0,r.useContext)(Ro);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Po),e}return e}Ro.displayName="DescriptionContext";let zo=ho((function(e,t){let n=(0,r.useId)(),o=rn(),{id:i=`headlessui-description-${n}`,...a}=e,l=Po(),s=Qt(t);De((()=>l.register(i)),[i,l.register]);let c=Wt({...l.slot,disabled:o||!1}),u={ref:s,...l.props,id:i};return co()({ourProps:u,theirProps:a,slot:c,defaultTag:"p",name:l.name||"Description"})}));Object.assign(zo,{});var _o,Fo=((_o=Fo||{}).Space=" ",_o.Enter="Enter",_o.Escape="Escape",_o.Backspace="Backspace",_o.Delete="Delete",_o.ArrowLeft="ArrowLeft",_o.ArrowUp="ArrowUp",_o.ArrowRight="ArrowRight",_o.ArrowDown="ArrowDown",_o.Home="Home",_o.End="End",_o.PageUp="PageUp",_o.PageDown="PageDown",_o.Tab="Tab",_o);let Uo=(0,r.createContext)(null);function Bo(){let e=(0,r.useContext)(Uo);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Bo),e}return e}function Ho(e){var t,n,o;let i=null!=(n=null==(t=(0,r.useContext)(Uo))?void 0:t.value)?n:void 0;return(null!=(o=null==e?void 0:e.length)?o:0)>0?[i,...e].filter(Boolean).join(" "):i}Uo.displayName="LabelContext";let Vo=ho((function(e,t){var n;let o=(0,r.useId)(),i=Bo(),a=So(),l=rn(),{id:s=`headlessui-label-${o}`,htmlFor:c=(null!=a?a:null==(n=i.props)?void 0:n.htmlFor),passive:u=!1,...d}=e,f=Qt(t);De((()=>i.register(s)),[s,i.register]);let p=Ce((e=>{let t=e.currentTarget;if((e.target===e.currentTarget||!function(e){return!!_e(e)&&e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]')}(e.target))&&(He(t)&&e.preventDefault(),i.props&&"onClick"in i.props&&"function"==typeof i.props.onClick&&i.props.onClick(e),He(t))){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let n=e.getAttribute("aria-disabled");if("true"===n||""===n)return;(Be(e)&&("file"===e.type||"radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}})),m=Wt({...i.slot,disabled:l||!1}),h={ref:f,...i.props,id:s,htmlFor:c,onClick:p};return u&&("onClick"in h&&(delete h.htmlFor,delete h.onClick),"onClick"in d&&delete d.onClick),co()({ourProps:h,theirProps:d,slot:m,defaultTag:c?"label":"div",name:i.name||"Label"})})),Wo=Object.assign(Vo,{});function qo(e){let t=Ce(e),n=(0,r.useRef)(!1);(0,r.useEffect)((()=>(n.current=!1,()=>{n.current=!0,Te((()=>{n.current&&t()}))})),[t])}let Qo=(0,r.createContext)(!1),Yo=r.Fragment,$o=ho((function(e,t){let{ownerDocument:n=null,...o}=e,i=(0,r.useRef)(null),a=Qt(function(e,t=!0){return Object.assign(e,{[qt]:t})}((e=>{i.current=e})),t),l=zt(i.current),s=function(e){let t=(0,r.useContext)(Qo),n=(0,r.useContext)(Zo),[o,i]=(0,r.useState)((()=>{var r;if(!t&&null!==n)return null!=(r=n.current)?r:null;if(je.isServer)return null;let o=null==e?void 0:e.getElementById("headlessui-portal-root");if(o)return o;if(null===e)return null;let i=e.createElement("div");return i.setAttribute("id","headlessui-portal-root"),e.body.appendChild(i)}));return(0,r.useEffect)((()=>{null!==o&&(null!=e&&e.body.contains(o)||null==e||e.body.appendChild(o))}),[o,e]),(0,r.useEffect)((()=>{t||null!==n&&i(n.current)}),[n,i,t]),o}(null!=n?n:l),c=(0,r.useContext)(Ko),u=Ie(),d=co();return qo((()=>{var e;s&&s.childNodes.length<=0&&(null==(e=s.parentElement)||e.removeChild(s))})),s?(0,be.createPortal)(r.createElement("div",{"data-headlessui-portal":"",ref:e=>{u.dispose(),c&&e&&u.add(c.register(e))}},d({ourProps:{ref:a},theirProps:o,slot:{},defaultTag:Yo,name:"Portal"})),s):null})),Go=r.Fragment,Zo=(0,r.createContext)(null),Ko=(0,r.createContext)(null),Xo=ho((function(e,t){let n=Qt(t),{enabled:o=!0,ownerDocument:i,...a}=e,l=co();return o?r.createElement($o,{...a,ownerDocument:i,ref:n}):l({ourProps:{ref:n},theirProps:a,slot:{},defaultTag:Yo,name:"Portal"})})),Jo=ho((function(e,t){let{target:n,...o}=e,i={ref:Qt(t)},a=co();return r.createElement(Zo.Provider,{value:n},a({ourProps:i,theirProps:o,defaultTag:Go,name:"Popover.Group"}))})),ei=Object.assign(Xo,{Group:Jo});const ti={Idle:{kind:"Idle"},Tracked:e=>({kind:"Tracked",position:e}),Moved:{kind:"Moved"}};function ni(e){let t=e.getBoundingClientRect();return`${t.x},${t.y}`}var ri=Object.defineProperty,oi=(e,t,n)=>(((e,t,n)=>{t in e?ri(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),ii=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ii||{}),ai=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(ai||{}),li=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(li||{}),si=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.SelectOption=5]="SelectOption",e[e.RegisterOptions=6]="RegisterOptions",e[e.UnregisterOptions=7]="UnregisterOptions",e[e.SetButtonElement=8]="SetButtonElement",e[e.SetOptionsElement=9]="SetOptionsElement",e[e.SortOptions=10]="SortOptions",e[e.MarkButtonAsMoved=11]="MarkButtonAsMoved",e))(si||{});function ci(e,t=e=>e){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=Lt(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),o=n?r.indexOf(n):null;return-1===o&&(o=null),{options:r,activeOptionIndex:o}}let ui={1(e){if(e.dataRef.current.disabled||1===e.listboxState)return e;let t=e.buttonElement?ti.Tracked(ni(e.buttonElement)):e.buttonPositionState;return{...e,activeOptionIndex:null,pendingFocus:{focus:Lo.Nothing},listboxState:1,__demoMode:!1,buttonPositionState:t}},0(e,t){if(e.dataRef.current.disabled||0===e.listboxState)return e;let n=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,o=e.options.findIndex((e=>r(e.dataRef.current.value)));return-1!==o&&(n=o),{...e,frozenValue:!1,pendingFocus:t.focus,listboxState:0,activeOptionIndex:n,__demoMode:!1,buttonPositionState:ti.Idle}},2(e,t){var n,r,o,i,a;if(e.dataRef.current.disabled||1===e.listboxState)return e;let l={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===Lo.Nothing)return{...l,activeOptionIndex:null};if(t.focus===Lo.Specific)return{...l,activeOptionIndex:e.options.findIndex((e=>e.id===t.id))};if(t.focus===Lo.Previous){let n=e.activeOptionIndex;if(null!==n){let i=e.options[n].dataRef.current.domRef,a=Oo(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==a){let t=e.options[a].dataRef.current.domRef;if((null==(r=i.current)?void 0:r.previousElementSibling)===t.current||null===(null==(o=t.current)?void 0:o.previousElementSibling))return{...l,activeOptionIndex:a}}}}else if(t.focus===Lo.Next){let n=e.activeOptionIndex;if(null!==n){let r=e.options[n].dataRef.current.domRef,o=Oo(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==o){let t=e.options[o].dataRef.current.domRef;if((null==(i=r.current)?void 0:i.nextElementSibling)===t.current||null===(null==(a=t.current)?void 0:a.nextElementSibling))return{...l,activeOptionIndex:o}}}}let s=ci(e),c=Oo(t,{resolveItems:()=>s.options,resolveActiveIndex:()=>s.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...l,...s,activeOptionIndex:c}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find((e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))})),i=o?e.options.indexOf(o):-1;return-1===i||i===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:i,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:e=>0===e.dataRef.current.mode?{...e,frozenValue:!0}:{...e},6:(e,t)=>{let n=e.options.concat(t.options),r=e.activeOptionIndex;if(e.pendingFocus.focus!==Lo.Nothing&&(r=Oo(e.pendingFocus,{resolveItems:()=>n,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled})),null===e.activeOptionIndex){let{isSelected:t}=e.dataRef.current;if(t){let e=n.findIndex((e=>null==t?void 0:t(e.dataRef.current.value)));-1!==e&&(r=e)}}return{...e,options:n,activeOptionIndex:r,pendingFocus:{focus:Lo.Nothing},pendingShouldSort:!0}},7:(e,t)=>{let n=e.options,r=[],o=new Set(t.options);for(let[e,t]of n.entries())if(o.has(t.id)&&(r.push(e),o.delete(t.id),0===o.size))break;if(r.length>0){n=n.slice();for(let e of r.reverse())n.splice(e,1)}return{...e,options:n,activationTrigger:1}},8:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},9:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},10:e=>e.pendingShouldSort?{...e,...ci(e),pendingShouldSort:!1}:e,11:e=>"Tracked"!==e.buttonPositionState.kind?e:{...e,buttonPositionState:ti.Moved}};class di extends tt{constructor(e){super(e),oi(this,"actions",{onChange:e=>{let{onChange:t,compare:n,mode:r,value:o}=this.state.dataRef.current;return at(r,{0:()=>null==t?void 0:t(e),1:()=>{let r=o.slice(),i=r.findIndex((t=>n(t,e)));return-1===i?r.push(e):r.splice(i,1),null==t?void 0:t(r)}})},registerOption:it((()=>{let e=[],t=new Set;return[(n,r)=>{t.has(r)||(t.add(r),e.push({id:n,dataRef:r}))},()=>(t.clear(),this.send({type:6,options:e.splice(0)}))]})),unregisterOption:it((()=>{let e=[];return[t=>e.push(t),()=>{this.send({type:7,options:e.splice(0)})}]})),goToOption:it((()=>{let e=null;return[(t,n)=>{e={type:2,...t,trigger:n}},()=>e&&this.send(e)]})),closeListbox:()=>{this.send({type:1})},openListbox:e=>{this.send({type:0,focus:e})},selectActiveOption:()=>{var e;if(null!==this.state.activeOptionIndex){let{dataRef:e}=this.state.options[this.state.activeOptionIndex];this.actions.selectOption(e.current.value)}else 0===this.state.dataRef.current.mode&&(this.actions.closeListbox(),null==(e=this.state.buttonElement)||e.focus({preventScroll:!0}))},selectOption:e=>{this.send({type:5,value:e})},search:e=>{this.send({type:3,value:e})},clearSearch:()=>{this.send({type:4})},setButtonElement:e=>{this.send({type:8,element:e})},setOptionsElement:e=>{this.send({type:9,element:e})}}),oi(this,"selectors",{activeDescendantId(e){var t;let n=e.activeOptionIndex,r=e.options;return null===n||null==(t=r[n])?void 0:t.id},isActive(e,t){var n;let r=e.activeOptionIndex,o=e.options;return null!==r&&(null==(n=o[r])?void 0:n.id)===t},hasFrozenValue:e=>e.frozenValue,shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.listboxState&&0!==e.activationTrigger&&this.isActive(e,t)},didButtonMove:e=>"Moved"===e.buttonPositionState.kind}),this.on(6,(()=>{requestAnimationFrame((()=>{this.send({type:10})}))}));{let e=this.state.id,t=pt.get(null);this.disposables.add(t.on(ut.Push,(n=>{!t.selectors.isTop(n,e)&&0===this.state.listboxState&&this.actions.closeListbox()}))),this.on(0,(()=>t.actions.push(e))),this.on(1,(()=>t.actions.pop(e)))}this.disposables.group((e=>{this.on(1,(t=>{t.buttonElement&&(e.dispose(),e.add(function(e,t,n){let r=Se();if("Tracked"===t.kind){let o=function(){i!==ni(e)&&(r.dispose(),n())},{position:i}=t,a=new ResizeObserver(o);a.observe(e),r.add((()=>a.disconnect())),r.addEventListener(window,"scroll",o,{passive:!0}),r.addEventListener(window,"resize",o)}return()=>r.dispose()}(t.buttonElement,t.buttonPositionState,(()=>{this.send({type:11})}))))}))})),this.on(5,((e,t)=>{var n;this.actions.onChange(t.value),0===this.state.dataRef.current.mode&&(this.actions.closeListbox(),null==(n=this.state.buttonElement)||n.focus({preventScroll:!0}))}))}static new({id:e,__demoMode:t=!1}){return new di({id:e,dataRef:{current:{}},listboxState:t?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,buttonElement:null,optionsElement:null,pendingShouldSort:!1,pendingFocus:{focus:Lo.Nothing},frozenValue:!1,__demoMode:t,buttonPositionState:ti.Idle})}reduce(e,t){return at(t.type,ui,e,t)}}const fi=(0,r.createContext)(null);function pi(e){let t=(0,r.useContext)(fi);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,mi),t}return t}function mi({id:e,__demoMode:t=!1}){let n=(0,r.useMemo)((()=>di.new({id:e,__demoMode:t})),[]);return qo((()=>n.dispose())),n}let hi=(0,r.createContext)(null);function gi(e){let t=(0,r.useContext)(hi);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,gi),t}return t}hi.displayName="ListboxDataContext";let vi=r.Fragment,yi=(0,r.createContext)(!1),wi=lo.RenderStrategy|lo.Static,bi=r.Fragment,xi=ho((function(e,t){let n=(0,r.useId)(),o=rn(),{value:i,defaultValue:a,form:l,name:s,onChange:c,by:u,invalid:d=!1,disabled:f=o||!1,horizontal:p=!1,multiple:m=!1,__demoMode:h=!1,...g}=e;const v=p?"horizontal":"vertical";let y=Qt(t),w=function(e){let[t]=(0,r.useState)(e);return t}(a),[b=(m?[]:void 0),x]=function(e,t,n){let[o,i]=(0,r.useState)(n),a=void 0!==e,l=(0,r.useRef)(a),s=(0,r.useRef)(!1),c=(0,r.useRef)(!1);return!a||l.current||s.current?!a&&l.current&&!c.current&&(c.current=!0,l.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(s.current=!0,l.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[a?e:o,Ce((e=>(a||(0,be.flushSync)((()=>i(e))),null==t?void 0:t(e))))]}(i,c,w),M=mi({id:n,__demoMode:h}),j=(0,r.useRef)({static:!1,hold:!1}),N=(0,r.useRef)(new Map),E=function(e=Le){return(0,r.useCallback)(((t,n)=>{if("string"==typeof e){let r=e;return(null==t?void 0:t[r])===(null==n?void 0:n[r])}return e(t,n)}),[e])}(u),A=(0,r.useCallback)((e=>at(T.mode,{[ai.Multi]:()=>b.some((t=>E(t,e))),[ai.Single]:()=>E(b,e)})),[b]),T=Wt({value:b,disabled:f,invalid:d,mode:m?ai.Multi:ai.Single,orientation:v,onChange:x,compare:E,isSelected:A,optionsPropsRef:j,listRef:N});De((()=>{M.state.dataRef.current=T}),[T]);let S=ht(M,(e=>e.listboxState)),I=pt.get(null),D=ht(I,(0,r.useCallback)((e=>I.selectors.isTop(e,n)),[I,n])),[k,C]=ht(M,(e=>[e.buttonElement,e.optionsElement]));!function(e,t){let n=ke(((e,t)=>{M.send({type:si.CloseListbox}),Dt(t,It.Loose)||(e.preventDefault(),null==k||k.focus())})),o=(0,r.useCallback)((function(e,r){if(e.defaultPrevented)return;let o=r(e);if(null===o||!o.getRootNode().contains(o)||!o.isConnected)return;let i=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t);for(let t of i)if(null!==t&&(t.contains(o)||e.composed&&e.composedPath().includes(t)))return;return!Dt(o,It.Loose)&&-1!==o.tabIndex&&e.preventDefault(),n.current(e,o)}),[n,t]),i=(0,r.useRef)(null);Pt(e,"pointerdown",(e=>{var t,n;Rt()||(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),Pt(e,"pointerup",(e=>{if(Rt()||!i.current)return;let t=i.current;return i.current=null,o(e,(()=>t))}),!0);let a=(0,r.useRef)({x:0,y:0});Pt(e,"touchstart",(e=>{a.current.x=e.touches[0].clientX,a.current.y=e.touches[0].clientY}),!0),Pt(e,"touchend",(e=>{let t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY;if(!(Math.abs(t-a.current.x)>=30||Math.abs(n-a.current.y)>=30))return o(e,(()=>Ue(e.target)?e.target:null))}),!0),function(e,t,n,i){let a=ke((e=>o(e,(()=>function(e){return Fe(e)&&"IFRAME"===e.nodeName}(window.document.activeElement)?window.document.activeElement:null))));(0,r.useEffect)((()=>{if(e)return window.addEventListener(t,n,i),()=>window.removeEventListener(t,n,i);function n(e){a.current(e)}}),[e,t,i])}(e,"blur",0,!0)}(D,[k,C]);let L=Wt({open:S===ii.Open,disabled:f,invalid:d,value:b}),[O,R]=function({inherit:e=!1}={}){let t=Ho(),[n,o]=(0,r.useState)([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,(0,r.useMemo)((()=>function(e){let t=Ce((e=>(o((t=>[...t,e])),()=>o((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),n=(0,r.useMemo)((()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value})),[t,e.slot,e.name,e.props,e.value]);return r.createElement(Uo.Provider,{value:n},e.children)}),[o])]}({inherit:!0}),P={ref:y},z=(0,r.useCallback)((()=>{if(void 0!==w)return null==x?void 0:x(w)}),[x,w]),_=co();return r.createElement(R,{value:O,props:{htmlFor:null==k?void 0:k.id},slot:{open:S===ii.Open,disabled:f}},r.createElement(Jr,null,r.createElement(fi.Provider,{value:M},r.createElement(hi.Provider,{value:T},r.createElement(Co,{value:at(S,{[ii.Open]:Do.Open,[ii.Closed]:Do.Closed})},null!=s&&null!=b&&r.createElement(No,{disabled:f,data:{[s]:b},form:l,onReset:z}),_({ourProps:P,theirProps:g,slot:L,defaultTag:vi,name:"Listbox"}))))))})),Mi=ho((function(e,t){let n=(0,r.useId)(),o=So(),i=gi("Listbox.Button"),a=pi("Listbox.Button"),{id:l=o||`headlessui-listbox-button-${n}`,disabled:s=i.disabled||!1,autoFocus:c=!1,...u}=e,d=Qt(t,(0,r.useContext)(Kr).setReference,a.actions.setButtonElement),f=(0,r.useContext)(Kr).getReferenceProps,[p,m,h]=ht(a,(e=>[e.listboxState,e.buttonElement,e.optionsElement]));!function(e,{trigger:t,action:n,close:o,select:i}){let a=(0,r.useRef)(null),l=(0,r.useRef)(null),s=(0,r.useRef)(null);Pt(e&&null!==t,"pointerdown",(e=>{ze(null==e?void 0:e.target)&&null!=t&&t.contains(e.target)&&(l.current=e.x,s.current=e.y,a.current=e.timeStamp)})),Pt(e&&null!==t,"pointerup",(e=>{var t,r;let c=a.current;if(null===c||(a.current=null,!Ue(e.target))||Math.abs(e.x-(null!=(t=l.current)?t:e.x))<5&&Math.abs(e.y-(null!=(r=s.current)?r:e.y))<5)return;let u=n(e);switch(u.kind){case 0:return;case 1:e.timeStamp-c>200&&(i(u.target),o());break;case 2:o()}}),{capture:!0})}(p===ii.Open,{trigger:m,action:(0,r.useCallback)((e=>{if(null!=m&&m.contains(e.target))return Ft.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return Fe(t)?Ft.Select(t):null!=h&&h.contains(e.target)?Ft.Ignore:Ft.Close}),[m,h]),close:a.actions.closeListbox,select:a.actions.selectActiveOption});let g=Ce((e=>{switch(e.key){case Fo.Enter:!function(e){var t,n;let r=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(r){for(let t of r.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type))return void t.click();null==(n=r.requestSubmit)||n.call(r)}}(e.currentTarget);break;case Fo.Space:case Fo.ArrowDown:e.preventDefault(),a.actions.openListbox({focus:i.value?Lo.Nothing:Lo.First});break;case Fo.ArrowUp:e.preventDefault(),a.actions.openListbox({focus:i.value?Lo.Nothing:Lo.Last})}})),v=Ce((e=>{e.key===Fo.Space&&e.preventDefault()})),y=function(e){let t=(0,r.useRef)(null),n=Ce((n=>{t.current=n.pointerType,!qe(n.currentTarget)&&"mouse"===n.pointerType&&n.button===Pe.Left&&(n.preventDefault(),e(n))})),o=Ce((n=>{"mouse"!==t.current&&(qe(n.currentTarget)||e(n))}));return{onPointerDown:n,onClick:o}}((e=>{var t;a.state.listboxState===ii.Open?((0,be.flushSync)((()=>a.actions.closeListbox())),null==(t=a.state.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),a.actions.openListbox({focus:Lo.Nothing}))})),w=Ce((e=>e.preventDefault())),b=Ho([l]),x=function(){var e,t;return null!=(t=null==(e=(0,r.useContext)(Ro))?void 0:e.value)?t:void 0}(),{isFocusVisible:M,focusProps:j}=function(e={}){let{autoFocus:t=!1,isTextInput:n,within:o}=e,i=(0,r.useRef)({isFocused:!1,isFocusVisible:t||ue()}),[a,l]=(0,r.useState)(!1),[s,c]=(0,r.useState)((()=>i.current.isFocused&&i.current.isFocusVisible)),u=(0,r.useCallback)((()=>c(i.current.isFocused&&i.current.isFocusVisible)),[]),d=(0,r.useCallback)((e=>{i.current.isFocused=e,l(e),u()}),[u]);var f,p,m;f=e=>{i.current.isFocusVisible=e,u()},p=[],m={isTextInput:n},se(),(0,r.useEffect)((()=>{let e=(e,t)=>{(function(e,t,n){let r=$(null==n?void 0:n.target);const o="undefined"!=typeof window?G(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,i="undefined"!=typeof window?G(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a="undefined"!=typeof window?G(null==n?void 0:n.target).HTMLElement:HTMLElement,l="undefined"!=typeof window?G(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||r.activeElement instanceof o&&!de.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof a&&r.activeElement.isContentEditable)&&"keyboard"===t&&n instanceof l&&!te[n.key])})(!!(null==m?void 0:m.isTextInput),e,t)&&f(ue())};return K.add(e),()=>{K.delete(e)}}),p);let{focusProps:h}=function(e){let{isDisabled:t,onFocus:n,onBlur:o,onFocusChange:i}=e;const a=(0,r.useCallback)((e=>{if(e.target===e.currentTarget)return o&&o(e),i&&i(!1),!0}),[o,i]),l=_(a),s=(0,r.useCallback)((e=>{const t=$(e.target),r=t?pe(t):pe();e.target===e.currentTarget&&r===me(e.nativeEvent)&&(n&&n(e),i&&i(!0),l(e))}),[i,n,l]);return{focusProps:{onFocus:!t&&(n||i||o)?s:void 0,onBlur:t||!o&&!i?void 0:a}}}({isDisabled:o,onFocusChange:d}),{focusWithinProps:g}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:o,onFocusWithinChange:i}=e,a=(0,r.useRef)({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:s}=he(),c=(0,r.useCallback)((e=>{e.currentTarget.contains(e.target)&&a.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(a.current.isFocusWithin=!1,s(),n&&n(e),i&&i(!1))}),[n,i,a,s]),u=_(c),d=(0,r.useCallback)((e=>{if(!e.currentTarget.contains(e.target))return;const t=$(e.target),n=pe(t);if(!a.current.isFocusWithin&&n===me(e.nativeEvent)){o&&o(e),i&&i(!0),a.current.isFocusWithin=!0,u(e);let n=e.currentTarget;l(t,"focus",(e=>{if(a.current.isFocusWithin&&!fe(n,e.target)){let r=new t.defaultView.FocusEvent("blur",{relatedTarget:e.target});!function(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}(r,n);let o=z(r);c(o)}}),{capture:!0})}}),[o,i,u,l,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:c}}}({isDisabled:!o,onFocusWithinChange:d});return{isFocused:a,isFocusVisible:s,focusProps:o?g:h}}({autoFocus:c}),{isHovered:N,hoverProps:E}=function(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:o,isDisabled:i}=e,[a,l]=(0,r.useState)(!1),s=(0,r.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,r.useEffect)(we,[]);let{addGlobalListener:c,removeAllGlobalListeners:u}=he(),{hoverProps:d,triggerHoverEnd:f}=(0,r.useMemo)((()=>{let e=(e,t)=>{let r=s.target;s.pointerType="",s.target=null,"touch"!==t&&s.isHovered&&r&&(s.isHovered=!1,u(),o&&o({type:"hoverend",target:r,pointerType:t}),n&&n(!1),l(!1))},r={};return"undefined"!=typeof PointerEvent&&(r.onPointerEnter=r=>{ge&&"mouse"===r.pointerType||((r,o)=>{if(s.pointerType=o,i||"touch"===o||s.isHovered||!r.currentTarget.contains(r.target))return;s.isHovered=!0;let a=r.currentTarget;s.target=a,c($(r.target),"pointerover",(t=>{s.isHovered&&s.target&&!fe(s.target,t.target)&&e(0,t.pointerType)}),{capture:!0}),t&&t({type:"hoverstart",target:a,pointerType:o}),n&&n(!0),l(!0)})(r,r.pointerType)},r.onPointerLeave=t=>{!i&&t.currentTarget.contains(t.target)&&e(0,t.pointerType)}),{hoverProps:r,triggerHoverEnd:e}}),[t,n,o,i,s,c,u]);return(0,r.useEffect)((()=>{i&&f({currentTarget:s.target},s.pointerType)}),[i]),{hoverProps:d,isHovered:a}}({isDisabled:s}),{pressed:A,pressProps:T}=function({disabled:e=!1}={}){let t=(0,r.useRef)(null),[n,o]=(0,r.useState)(!1),i=Ie(),a=Ce((()=>{t.current=null,o(!1),i.dispose()})),l=Ce((e=>{if(i.dispose(),null===t.current){t.current=e.currentTarget,o(!0);{let n=Ne(e.currentTarget);i.addEventListener(n,"pointerup",a,!1),i.addEventListener(n,"pointermove",(e=>{if(t.current){let n=function(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);o(function(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}(n,t.current.getBoundingClientRect()))}}),!1),i.addEventListener(n,"pointercancel",a,!1)}}}));return{pressed:n,pressProps:e?{}:{onPointerDown:l,onPointerUp:a,onClick:a}}}({disabled:s}),S=Wt({open:p===ii.Open,active:A||p===ii.Open,disabled:s,invalid:i.invalid,value:i.value,hover:N,focus:M,autofocus:c}),I=ht(a,(e=>e.listboxState===ii.Open)),D=mo(f(),{ref:d,id:l,type:Ut(e,m),"aria-haspopup":"listbox","aria-controls":null==h?void 0:h.id,"aria-expanded":I,"aria-labelledby":b,"aria-describedby":x,disabled:s||void 0,autoFocus:c,onKeyDown:g,onKeyUp:v,onKeyPress:w},y,j,E,T);return co()({ourProps:D,theirProps:u,slot:S,defaultTag:"button",name:"Listbox.Button"})})),ji=Wo,Ni=ho((function(e,t){let n=(0,r.useId)(),{id:o=`headlessui-listbox-options-${n}`,anchor:i,portal:a=!1,modal:l=!0,transition:s=!1,...c}=e,u=function(e){return(0,r.useMemo)((()=>e?"string"==typeof e?{to:e}:e:null),[e])}(i),[d,f]=(0,r.useState)(null);u&&(a=!0);let p=gi("Listbox.Options"),m=pi("Listbox.Options"),[h,g,v,y]=ht(m,(e=>[e.listboxState,e.buttonElement,e.optionsElement,e.__demoMode])),w=zt(g),b=zt(v),x=ko(),[M,j]=tn(s,d,null!==x?(x&Do.Open)===Do.Open:h===ii.Open);!function(e,t,n){let o=ke((e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()}));(0,r.useEffect)((()=>{if(!e)return;let n=null===t?null:Fe(t)?t:t.current;if(!n)return;let r=Se();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver((()=>o.current(n)));e.observe(n),r.add((()=>e.disconnect()))}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver((()=>o.current(n)));e.observe(n),r.add((()=>e.disconnect()))}return()=>r.dispose()}),[t,o,e])}(M,g,m.actions.closeListbox),function(e,t,n=()=>[document.body]){!function(e,t,n=()=>({containers:[]})){let o=function(e){return(0,r.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot)}(Vt),i=t?o.get(t):void 0;i&&i.count,De((()=>{if(t&&e)return Vt.dispatch("PUSH",t,n),()=>Vt.dispatch("POP",t,n)}),[e,t])}(vt(e,"scroll-lock"),t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}}))}(!y&&l&&h===ii.Open,b),function(e,{allowed:t,disallowed:n}={}){let r=vt(e,"inert-others");De((()=>{var e,o;if(!r)return;let i=Se();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&i.add(bt(t));let a=null!=(o=null==t?void 0:t())?o:[];for(let e of a){if(!e)continue;let t=Ne(e);if(!t)continue;let n=e.parentElement;for(;n&&n!==t.body;){for(let e of n.children)a.some((t=>e.contains(t)))||i.add(bt(e));n=n.parentElement}}return i.dispose}),[r,t,n])}(!y&&l&&h===ii.Open,{allowed:(0,r.useCallback)((()=>[g,v]),[g,v])});let N=!ht(m,m.selectors.didButtonMove)&&M,E=Ao(ht(m,m.selectors.hasFrozenValue)&&!e.static,p.value),A=(0,r.useCallback)((e=>p.compare(E,e)),[p.compare,E]),T=ht(m,(e=>{var t;if(null==u||null==(t=null==u?void 0:u.to)||!t.includes("selection"))return null;let n=e.options.findIndex((e=>A(e.dataRef.current.value)));return-1===n&&(n=0),n})),S=(()=>{if(null==u)return;if(null===T)return{...u,inner:void 0};let e=Array.from(p.listRef.current.values());return{...u,inner:{listRef:{current:e},index:T}}})(),[I,D]=function(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=(0,r.useContext)(Xr),n=(0,r.useMemo)((()=>e),[JSON.stringify(e,((e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t}))]);De((()=>{null==t||t(null!=n?n:null)}),[t,n]);let o=(0,r.useContext)(Kr);return(0,r.useMemo)((()=>[o.setFloating,e?o.styles:{}]),[o.setFloating,e,o.styles])}(S),k=function(){let{getFloatingProps:e,slot:t}=(0,r.useContext)(Kr);return(0,r.useCallback)(((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor})),[e,t])}(),C=Qt(t,u?I:null,m.actions.setOptionsElement,f),L=Ie();(0,r.useEffect)((()=>{let e=v;e&&h===ii.Open&&(function(e){return Ae(e)===e}(e)||null==e||e.focus({preventScroll:!0}))}),[h,v]);let O=Ce((e=>{var t;switch(L.dispose(),e.key){case Fo.Space:if(""!==m.state.searchQuery)return e.preventDefault(),e.stopPropagation(),m.actions.search(e.key);case Fo.Enter:e.preventDefault(),e.stopPropagation(),m.actions.selectActiveOption();break;case at(p.orientation,{vertical:Fo.ArrowDown,horizontal:Fo.ArrowRight}):return e.preventDefault(),e.stopPropagation(),m.actions.goToOption({focus:Lo.Next});case at(p.orientation,{vertical:Fo.ArrowUp,horizontal:Fo.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),m.actions.goToOption({focus:Lo.Previous});case Fo.Home:case Fo.PageUp:return e.preventDefault(),e.stopPropagation(),m.actions.goToOption({focus:Lo.First});case Fo.End:case Fo.PageDown:return e.preventDefault(),e.stopPropagation(),m.actions.goToOption({focus:Lo.Last});case Fo.Escape:return e.preventDefault(),e.stopPropagation(),(0,be.flushSync)((()=>m.actions.closeListbox())),void(null==(t=m.state.buttonElement)||t.focus({preventScroll:!0}));case Fo.Tab:e.preventDefault(),e.stopPropagation(),(0,be.flushSync)((()=>m.actions.closeListbox())),function(e,t,n=(null===e?document.body:Ee(e))){!function(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?Ee(e[0]):document:Ee(e),a=Array.isArray(e)?n?Lt(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(Mt)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e):St(e);o.length>0&&a.length>1&&(a=a.filter((e=>!o.some((t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))))),r=null!=r?r:null==i?void 0:i.activeElement;let l,s=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,a.indexOf(r))-1;if(4&t)return Math.max(0,a.indexOf(r))+1;if(8&t)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},d=0,f=a.length;do{if(d>=f||d+f<=0)return 0;let e=c+d;if(16&t)e=(e+f)%f;else{if(e<0)return 3;if(e>=f)return 1}l=a[e],null==l||l.focus(u),d+=s}while(l!==Ae(l));6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,Ct))&&n}(l)&&l.select()}(St(n),t,{relativeTo:e})}(m.state.buttonElement,e.shiftKey?Et.Previous:Et.Next);break;default:1===e.key.length&&(m.actions.search(e.key),L.setTimeout((()=>m.actions.clearSearch()),350))}})),R=ht(m,(e=>{var t;return null==(t=e.buttonElement)?void 0:t.id})),P=Wt({open:h===ii.Open}),z=mo(u?k():{},{id:o,ref:C,"aria-activedescendant":ht(m,m.selectors.activeDescendantId),"aria-multiselectable":p.mode===ai.Multi||void 0,"aria-labelledby":R,"aria-orientation":p.orientation,onKeyDown:O,role:"listbox",tabIndex:h===ii.Open?0:void 0,style:{...c.style,...D,"--button-width":Re(M,g,!0).width},...en(j)}),_=co(),F=(0,r.useMemo)((()=>p.mode===ai.Multi?p:{...p,isSelected:A}),[p,A]);return r.createElement(ei,{enabled:!!a&&(e.static||M),ownerDocument:w},r.createElement(hi.Provider,{value:F},_({ourProps:z,theirProps:c,slot:P,defaultTag:"div",features:wi,visible:N,name:"Listbox.Options"})))})),Ei=ho((function(e,t){let n=(0,r.useId)(),{id:o=`headlessui-listbox-option-${n}`,disabled:i=!1,value:a,...l}=e,s=!0===(0,r.useContext)(yi),c=gi("Listbox.Option"),u=pi("Listbox.Option"),d=ht(u,(e=>u.selectors.isActive(e,o))),f=c.isSelected(a),p=(0,r.useRef)(null),m=function(e){let t=(0,r.useRef)(""),n=(0,r.useRef)("");return Ce((()=>{let r=e.current;if(!r)return"";let o=r.innerText;if(t.current===o)return n.current;let i=function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map((e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():$t(t).trim()}return null})).filter(Boolean);if(e.length>0)return e.join(", ")}return $t(e).trim()}(r).trim().toLowerCase();return t.current=o,n.current=i,i}))}(p),h=ke({disabled:i,value:a,domRef:p,get textValue(){return m()}}),g=Qt(t,p,(e=>{e?c.listRef.current.set(o,e):c.listRef.current.delete(o)})),v=ht(u,(e=>u.selectors.shouldScrollIntoView(e,o)));De((()=>{if(v)return Se().requestAnimationFrame((()=>{var e,t;null==(t=null==(e=p.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}))}),[v,p]),De((()=>{if(!s)return u.actions.registerOption(o,h),()=>u.actions.unregisterOption(o)}),[h,o,s]);let y=Ce((e=>{if(i)return e.preventDefault();u.actions.selectOption(a)})),w=Ce((()=>{if(i)return u.actions.goToOption({focus:Lo.Nothing});u.actions.goToOption({focus:Lo.Specific,id:o})})),b=function(){let e=(0,r.useRef)([-1,-1]);return{wasMoved(t){let n=Gt(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=Gt(t)}}}(),x=Ce((e=>b.update(e))),M=Ce((e=>{b.wasMoved(e)&&(i||d&&u.state.activationTrigger===li.Pointer||u.actions.goToOption({focus:Lo.Specific,id:o},li.Pointer))})),j=Ce((e=>{b.wasMoved(e)&&(i||d&&u.state.activationTrigger===li.Pointer&&u.actions.goToOption({focus:Lo.Nothing}))})),N=Wt({active:d,focus:d,selected:f,disabled:i,selectedOption:f&&s}),E=s?{}:{id:o,ref:g,role:"option",tabIndex:!0===i?void 0:-1,"aria-disabled":!0===i||void 0,"aria-selected":f,disabled:void 0,onClick:y,onFocus:w,onPointerEnter:x,onMouseEnter:x,onPointerMove:M,onMouseMove:M,onPointerLeave:j,onMouseLeave:j},A=co();return!f&&s?null:A({ourProps:E,theirProps:l,slot:N,defaultTag:"div",name:"Listbox.Option"})})),Ai=ho((function(e,t){let{options:n,placeholder:o,...i}=e,a={ref:Qt(t)},l=gi("ListboxSelectedOption"),s=Wt({}),c=void 0===l.value||null===l.value||l.mode===ai.Multi&&Array.isArray(l.value)&&0===l.value.length,u=co();return r.createElement(yi.Provider,{value:!0},u({ourProps:a,theirProps:{...i,children:r.createElement(r.Fragment,null,o&&c?o:n)},slot:s,defaultTag:bi,name:"ListboxSelectedOption"}))})),Ti=Object.assign(xi,{Button:Mi,Label:ji,Options:Ni,Option:Ei,SelectedOption:Ai});function Si(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in o&&(e=>e.useSyncExternalStore)(o)((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=r.useState(je.isHandoffComplete);return t&&!1===je.isHandoffComplete&&n(!1),r.useEffect((()=>{!0!==t&&n(!0)}),[t]),r.useEffect((()=>je.handoff()),[]),!e&&t}function Ii(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||!wo(null!=(t=e.as)?t:Ri)||1===r.Children.count(e.children)}let Di=(0,r.createContext)(null);Di.displayName="TransitionContext";var ki=(e=>(e.Visible="visible",e.Hidden="hidden",e))(ki||{});let Ci=(0,r.createContext)(null);function Li(e){return"children"in e?Li(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Oi(e,t){let n=ke(e),o=(0,r.useRef)([]),i=function(){let e=(0,r.useRef)(!1);return De((()=>(e.current=!0,()=>{e.current=!1})),[]),e}(),a=Ie(),l=Ce(((e,t=so.Hidden)=>{let r=o.current.findIndex((({el:t})=>t===e));-1!==r&&(at(t,{[so.Unmount](){o.current.splice(r,1)},[so.Hidden](){o.current[r].state="hidden"}}),a.microTask((()=>{var e;!Li(o)&&i.current&&(null==(e=n.current)||e.call(n))})))})),s=Ce((e=>{let t=o.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):o.current.push({el:e,state:"visible"}),()=>l(e,so.Unmount)})),c=(0,r.useRef)([]),u=(0,r.useRef)(Promise.resolve()),d=(0,r.useRef)({enter:[],leave:[]}),f=Ce(((e,n,r)=>{c.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter((([t])=>t!==e))),null==t||t.chains.current[n].push([e,new Promise((e=>{c.current.push(e)}))]),null==t||t.chains.current[n].push([e,new Promise((e=>{Promise.all(d.current[n].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===n?u.current=u.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(n))):r(n)})),p=Ce(((e,t,n)=>{Promise.all(d.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=c.current.shift())||e()})).then((()=>n(t)))}));return(0,r.useMemo)((()=>({children:o,register:s,unregister:l,onStart:f,onStop:p,wait:u,chains:d})),[s,l,o,f,p,d,u])}Ci.displayName="NestingContext";let Ri=r.Fragment,Pi=lo.RenderStrategy,zi=ho((function(e,t){let{show:n,appear:o=!1,unmount:i=!0,...a}=e,l=(0,r.useRef)(null),s=Qt(...Ii(e)?[l,t]:null===t?[]:[t]);Si();let c=ko();if(void 0===n&&null!==c&&(n=(c&Do.Open)===Do.Open),void 0===n)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,d]=(0,r.useState)(n?"visible":"hidden"),f=Oi((()=>{n||d("hidden")})),[p,m]=(0,r.useState)(!0),h=(0,r.useRef)([n]);De((()=>{!1!==p&&h.current[h.current.length-1]!==n&&(h.current.push(n),m(!1))}),[h,n]);let g=(0,r.useMemo)((()=>({show:n,appear:o,initial:p})),[n,o,p]);De((()=>{n?d("visible"):!Li(f)&&null!==l.current&&d("hidden")}),[n,f]);let v={unmount:i},y=Ce((()=>{var t;p&&m(!1),null==(t=e.beforeEnter)||t.call(e)})),w=Ce((()=>{var t;p&&m(!1),null==(t=e.beforeLeave)||t.call(e)})),b=co();return r.createElement(Ci.Provider,{value:f},r.createElement(Di.Provider,{value:g},b({ourProps:{...v,as:r.Fragment,children:r.createElement(_i,{ref:s,...v,...a,beforeEnter:y,beforeLeave:w})},theirProps:{},defaultTag:r.Fragment,features:Pi,visible:"visible"===u,name:"Transition"})))})),_i=ho((function(e,t){var n,o;let{transition:i=!0,beforeEnter:a,afterEnter:l,beforeLeave:s,afterLeave:c,enter:u,enterFrom:d,enterTo:f,entered:p,leave:m,leaveFrom:h,leaveTo:g,...v}=e,[y,w]=(0,r.useState)(null),b=(0,r.useRef)(null),x=Ii(e),M=Qt(...x?[b,t,w]:null===t?[]:[t]),j=null==(n=v.unmount)||n?so.Unmount:so.Hidden,{show:N,appear:E,initial:A}=function(){let e=(0,r.useContext)(Di);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[T,S]=(0,r.useState)(N?"visible":"hidden"),I=function(){let e=(0,r.useContext)(Ci);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:D,unregister:k}=I;De((()=>D(b)),[D,b]),De((()=>{if(j===so.Hidden&&b.current)return N&&"visible"!==T?void S("visible"):at(T,{hidden:()=>k(b),visible:()=>D(b)})}),[T,b,D,k,N,j]);let C=Si();De((()=>{if(x&&C&&"visible"===T&&null===b.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[b,T,C,x]);let L=A&&!E,O=E&&N&&A,R=(0,r.useRef)(!1),P=Oi((()=>{R.current||(S("hidden"),k(b))}),I),z=Ce((e=>{R.current=!0;let t=e?"enter":"leave";P.onStart(b,t,(e=>{"enter"===e?null==a||a():"leave"===e&&(null==s||s())}))})),_=Ce((e=>{let t=e?"enter":"leave";R.current=!1,P.onStop(b,t,(e=>{"enter"===e?null==l||l():"leave"===e&&(null==c||c())})),"leave"===t&&!Li(P)&&(S("hidden"),k(b))}));(0,r.useEffect)((()=>{x&&i||(z(N),_(N))}),[N,x,i]);let F=!(!i||!x||!C||L),[,U]=tn(F,y,N,{start:z,end:_}),B=go({ref:M,className:(null==(o=ao(v.className,O&&u,O&&d,U.enter&&u,U.enter&&U.closed&&d,U.enter&&!U.closed&&f,U.leave&&m,U.leave&&!U.closed&&h,U.leave&&U.closed&&g,!U.transition&&N&&p))?void 0:o.trim())||void 0,...en(U)}),H=0;"visible"===T&&(H|=Do.Open),"hidden"===T&&(H|=Do.Closed),N&&"hidden"===T&&(H|=Do.Opening),!N&&"visible"===T&&(H|=Do.Closing);let V=co();return r.createElement(Ci.Provider,{value:P},r.createElement(Co,{value:H},V({ourProps:B,theirProps:v,defaultTag:Ri,features:Pi,visible:"visible"===T,name:"Transition.Child"})))})),Fi=ho((function(e,t){let n=null!==(0,r.useContext)(Di),o=null!==ko();return r.createElement(r.Fragment,null,!n&&o?r.createElement(zi,{ref:t,...e}):r.createElement(_i,{ref:t,...e}))})),Ui=Object.assign(zi,{Child:Fi,Root:zi});const Bi=r.forwardRef((function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.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"}))})),Hi=r.forwardRef((function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M10 3a1 1 0 01.707.293l3 3a1 1 0 01-1.414 1.414L10 5.414 7.707 7.707a1 1 0 01-1.414-1.414l3-3A1 1 0 0110 3zm-3.707 9.293a1 1 0 011.414 0L10 14.586l2.293-2.293a1 1 0 011.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z",clipRule:"evenodd"}))})),Vi={value:s().oneOfType([s().string,s().number,s().bool]).isRequired,label:s().string.isRequired},Wi=({value:e,label:t})=>{const n=w(),o=(0,r.useCallback)((({active:e,selected:t})=>a()("nfd-select__option",e&&"nfd-select__option--active",t&&"nfd-select__option--selected")),[]);return(0,c.jsx)(Ei,{value:e,className:o,children:({selected:e})=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:a()("nfd-select__option-label",e&&"nfd-font-semibold"),children:t}),e&&(0,c.jsx)(Bi,{className:"nfd-select__option-check",...n})]})})};Wi.propTypes=Vi;const qi=(0,r.forwardRef)((({id:e,value:t,options:n,children:o,selectedLabel:i,label:l,labelProps:s,labelSuffix:u,onChange:d,disabled:f,validation:m,className:h,buttonProps:g,...v},y)=>{const b=(0,r.useMemo)((()=>n.find((e=>t===(null==e?void 0:e.value)))||n[0]),[t,n]),x=w();return(0,c.jsxs)(Ti,{ref:y,as:"div",value:t,onChange:d,disabled:f,className:a()("nfd-select",f&&"nfd-select--disabled",h),...v,children:[l&&(0,c.jsxs)("div",{className:"nfd-flex nfd-items-center nfd-mb-2",children:[(0,c.jsx)(Wo,{as:p,...s,children:l}),u]}),(0,c.jsxs)(A,{as:Mi,"data-id":e,className:"nfd-select__button",validation:m,...g,children:[(0,c.jsx)("span",{className:"nfd-select__button-label",children:i||(null==b?void 0:b.label)||""}),!(null!=m&&m.message)&&(0,c.jsx)(Hi,{className:"nfd-select__button-icon",...x})]}),(0,c.jsx)(Ui,{as:r.Fragment,enter:"nfd-transition nfd-duration-100 nfd-ease-out",enterFrom:"nfd-transform nfd-scale-95 nfd-opacity-0",enterTo:"nfd-transform nfd-scale-100 nfd-opacity-100",leave:"nfd-transition nfd-duration-75 nfd-ease-out",leaveFrom:"nfd-transform nfd-scale-100 nfd-opacity-100",leaveTo:"nfd-transform nfd-scale-95 nfd-opacity-0",children:(0,c.jsx)(Ni,{className:"nfd-select__options",children:o||n.map((e=>(0,c.jsx)(Wi,{...e},e.value)))})})]})})),Qi={id:s().string.isRequired,value:s().oneOfType([s().string,s().number,s().bool]).isRequired,options:s().arrayOf(s().shape(Vi)),children:s().node,selectedLabel:s().string,label:s().string,labelProps:s().object,labelSuffix:s().node,onChange:s().func.isRequired,disabled:s().bool,validation:s().shape({variant:s().string,message:s().node}),className:s().string,buttonProps:s().object};qi.propTypes=Qi,qi.Option=Wi,qi.Option.displayName="Select.Option",qi.defaultProps={options:[],children:null,selectedLabel:"",label:"",labelProps:{},labelSuffix:null,disabled:!1,validation:{},className:"",buttonProps:{}},qi.displayName="Select";const Yi=e=>(0,c.jsx)(qi,{...e});Yi.propTypes=Qi,Yi.defaultProps=qi.defaultProps,Yi.displayName="Select";const $i=qi,Gi=window.wp.i18n,Zi=window.wp.element,Ki=(0,Zi.createContext)(),Xi=({children:e})=>{const t=new URLSearchParams(window.location.search),n=t.get("category"),r=t.get("s"),[o,i]=(0,Zi.useState)(n||"all"),[a,l]=(0,Zi.useState)(r||"");return(0,Zi.useEffect)((()=>{const e=new URL(window.location.href),t=new URLSearchParams(e.search),n=window.location.hash,r={s:a,category:o};Object.keys(r).map((e=>{r[e]?t.set(e,r[e]):t.delete(e)}));const i=`${e.pathname}?${t.toString()}${n||""}`;window.history.replaceState({},"",i)}),[a,o]),(0,c.jsx)(Ki.Provider,{value:{category:o,setCategory:i,search:a,setSearch:l,updateSearch:e=>{i("all"),l(e)}},children:e})},Ji=()=>(0,Zi.useContext)(Ki),ea=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M13.5 4.938a7 7 0 1 1-9.006 1.737c.202-.257.59-.218.793.039.278.352.594.672.943.954.332.269.786-.049.773-.476a5.977 5.977 0 0 1 .572-2.759 6.026 6.026 0 0 1 2.486-2.665c.247-.14.55-.016.677.238A6.967 6.967 0 0 0 13.5 4.938ZM14 12a4 4 0 0 1-4 4c-1.913 0-3.52-1.398-3.91-3.182-.093-.429.44-.643.814-.413a4.043 4.043 0 0 0 1.601.564c.303.038.531-.24.51-.544a5.975 5.975 0 0 1 1.315-4.192.447.447 0 0 1 .431-.16A4.001 4.001 0 0 1 14 12Z",clipRule:"evenodd"}))})),ta=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M10.868 2.884c-.321-.772-1.415-.772-1.736 0l-1.83 4.401-4.753.381c-.833.067-1.171 1.107-.536 1.651l3.62 3.102-1.106 4.637c-.194.813.691 1.456 1.405 1.02L10 15.591l4.069 2.485c.713.436 1.598-.207 1.404-1.02l-1.106-4.637 3.62-3.102c.635-.544.297-1.584-.536-1.65l-4.752-.382-1.831-4.401Z",clipRule:"evenodd"}))})),na=["ad68e506-8c2b-4c0f-a9e3-16623d00041e","20085485-7185-40fd-89e4-14dbb690aea2","d561ecd7-678b-4a19-ad34-385894bea07a"],ra=["20085485-7185-40fd-89e4-14dbb690aea2","ad68e506-8c2b-4c0f-a9e3-16623d00041e"],oa={id:"upgrade-card"};function ia(e,t){if(e?.image?.featureImage&&!t?.image?.featureImage)return-1;if(!e?.image?.featureImage&&t?.image?.featureImage)return 1;if(e?.priority!==t?.priority)return e?.priority>t?.priority?-1:1;const n=Object.fromEntries(NewfoldSolutions.categories.map((e=>[e.slug,e.priority])));return n[e.categorySlug]>n[t.categorySlug]?-1:n[e.categorySlug]>n[t.categorySlug]?1:0}const aa=({includePremium:e=!0,sortForLayout:t=!0,sortByPriority:n=!0,hasUpgradeCard:r=!1,search:o=null,category:i="all",columns:a=3})=>{let l=NewfoldSolutions.entitlements;return e&&(l=[...l,...NewfoldSolutions.premium.map((e=>(e.premium=!0,e)))].map((e=>(na.includes(e.id)&&(e.popular=!0),e)))),l.map((e=>(ra.includes(e.id)&&(e.wide=!0),e))),n&&l.sort(ia),"all"!==i&&(l=l.filter((e=>"premium"===i?e.premium:"popular"===i?e.popular:e?.categorySlug===i))),o&&(l=l.filter((e=>e?.name?.toLowerCase().includes(o.toLowerCase())||e?.plsSlug?.toLowerCase().includes(o.toLowerCase())||function(e,t){const n={"request-a-quote":["raq"]};return!!n[t]&&n[t].some((t=>t.toLowerCase().includes(e.toLowerCase())))}(o.toLowerCase(),e?.name?.toLowerCase().replace(/\s/g,"-"))))),t&&(a>1?l=function(e,t,n){if(1>=t)return e;const r=[];let o=t,i=[];const a=()=>{!r.length&&n&&i.push(oa),r.push(...i),i=[],o=t};for(n&&o--;e.length;){if(e[0]?.wide)if(o>1)i.push(e.shift()),o-=2;else{for(let t=0;t<e.length;t++)if(!e[t]?.wide){i.push(...e.splice(t,1)),o-=1;break}a()}else o>0&&(i.push(e.shift()),o-=1);o||a()}return a(),r}([...l],a,r):l.splice(2,0,oa)),l},la=()=>NewfoldSolutions?.solutions.find((e=>e?.sku===NewfoldSolutions?.solution)),sa=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M9 3.5a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11ZM2 9a7 7 0 1 1 12.452 4.391l3.328 3.329a.75.75 0 1 1-1.06 1.06l-3.329-3.328A7 7 0 0 1 2 9Z",clipRule:"evenodd"}))})),ca=()=>{const{search:e,updateSearch:t}=Ji();return(0,c.jsx)("div",{className:"nfd-solutions-search",children:(0,c.jsx)(L,{placeholder:(0,Gi.__)("Search tool","wp-module-solutions"),value:e,onChange:e=>{t(e.target.value)},icon:sa})})},ua=()=>{const e=(()=>{if(!window.NewfoldSolutions?.categories)return[];const e=[];window.NewfoldSolutions.categories.map((t=>{const{slug:n,name:r,priority:o,count:i}=t;e.push({id:n,label:r,priority:o,count:i})})),e.sort(((e,t)=>e.priority>t.priority?-1:1));const t=[{id:"popular",label:(0,Gi.__)("Most Popular","wp-module-solutions"),icon:ea},{id:"premium",label:(0,Gi.__)("Premium Tools","wp-module-solutions"),icon:ta}];return[{id:"all",label:(0,Gi.__)("All","wp-module-solutions")},...e,...t]})(),{category:t,setCategory:n}=Ji();return(0,c.jsxs)("div",{className:"nfd-solutions-filter-bar nfd-w-full nfd-flex nfd-justify-between",children:[(0,c.jsxs)("div",{className:"nfd-solutions-filter-bar-categories nfd-flex nfd-items-center nfd-gap-4 nfd-flex-1",children:[(0,Gi.__)("Filter by type","wp-module-solutions"),(0,c.jsx)($i,{onChange:n,value:t||"all",id:"nfd-solutions-category-selector",className:"nfd-solutions-category-selector nfd-min-w-[250px]",selectedLabel:e.find((e=>e.id===(t||"all"))).label,children:e.map((e=>(0,c.jsx)($i.Option,{label:e.label,value:e.id,className:"nfd-solutions-category-selector__"+e.id},e.id)))})]}),(0,c.jsx)(ca,{})]})},da=()=>(0,c.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"137",height:"111",fill:"none",viewBox:"0 0 137 111",children:[(0,c.jsx)("rect",{width:"66",height:"66",x:"16.203",y:"35.844",fill:"#DAEBF7",rx:"6",transform:"rotate(-9.277 16.203 35.844)"}),(0,c.jsx)("g",{clipPath:"url(#clip0_2393_5345)",children:(0,c.jsx)("path",{stroke:"#93C0E0",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M50.331 17.572c-.166-.76.083-1.533.411-2.238.338-.724.451-1.52.279-2.31-.483-2.216-3.03-3.542-5.69-2.963-2.658.58-4.422 2.846-3.94 5.062.173.79.607 1.466 1.215 1.984.592.504 1.14 1.105 1.305 1.864v0a1.403 1.403 0 0 1-1.106 1.682q-4.534.851-9.048 1.3a106 106 0 0 1 2.963 10.354 1.436 1.436 0 0 1-1.099 1.725v0c-.76.166-1.534-.082-2.239-.41a3.6 3.6 0 0 0-2.31-.28c-2.215.483-3.541 3.03-2.962 5.69.58 2.659 2.846 4.423 5.062 3.94a3.6 3.6 0 0 0 1.984-1.214c.504-.593 1.104-1.14 1.864-1.306v0c.662-.144 1.308.3 1.404.97.529 3.722.854 7.433.984 11.12q5.007-.451 10.043-1.396a1.403 1.403 0 0 0 1.107-1.682v0c-.166-.76-.714-1.36-1.306-1.864a3.6 3.6 0 0 1-1.214-1.984c-.483-2.216 1.28-4.482 3.94-5.062 2.659-.58 5.206.747 5.689 2.963.172.79.059 1.586-.279 2.31-.328.705-.576 1.478-.41 2.238v0a1.266 1.266 0 0 0 1.575.955 105 105 0 0 0 11.32-3.877 105 105 0 0 0-.954-10.366 1.165 1.165 0 0 0-1.406-.97v0c-.76.165-1.36.713-1.864 1.305a3.6 3.6 0 0 1-1.984 1.214c-2.216.483-4.482-1.281-5.062-3.94-.58-2.66.747-5.206 2.963-5.69a3.6 3.6 0 0 1 2.31.28c.705.328 1.478.576 2.238.41v0a1.44 1.44 0 0 0 1.1-1.726c-.897-3.867-1.999-7.636-3.29-11.297a105 105 0 0 1-12.017 4.164 1.266 1.266 0 0 1-1.576-.955"})}),(0,c.jsx)("g",{clipPath:"url(#clip1_2393_5345)",children:(0,c.jsx)("path",{stroke:"#93C0E0",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M90.14 65.674c.397-.668 1.108-1.063 1.83-1.354a3.6 3.6 0 0 0 1.78-1.496c1.161-1.948.208-4.657-2.13-6.05-2.338-1.394-5.174-.944-6.335 1.004-.414.694-.56 1.485-.47 2.278.089.773.079 1.586-.32 2.254v0a1.403 1.403 0 0 1-1.956.472 106 106 0 0 1-7.496-5.232 106 106 0 0 1-4.91 9.585 1.436 1.436 0 0 1-1.981.509v0c-.668-.398-1.064-1.108-1.354-1.83a3.6 3.6 0 0 0-1.496-1.781c-1.948-1.161-4.657-.208-6.05 2.13-1.394 2.338-.944 5.174 1.004 6.336a3.6 3.6 0 0 0 2.278.468c.773-.088 1.586-.078 2.254.32v0c.582.347.75 1.113.362 1.668a105 105 0 0 1-6.878 8.792 106 106 0 0 0 8.287 5.843 1.403 1.403 0 0 0 1.957-.472v0c.398-.668.408-1.481.32-2.254a3.6 3.6 0 0 1 .47-2.278c1.16-1.948 3.997-2.398 6.335-1.004 2.337 1.393 3.291 4.102 2.13 6.05a3.6 3.6 0 0 1-1.781 1.496c-.722.29-1.432.686-1.83 1.354v0a1.266 1.266 0 0 0 .499 1.774 105 105 0 0 0 10.915 4.902 105 105 0 0 0 6.384-8.221 1.165 1.165 0 0 0-.362-1.67v0c-.669-.398-1.481-.408-2.254-.32-.793.09-1.584-.055-2.278-.469-1.948-1.16-2.398-3.997-1.005-6.335s4.103-3.291 6.05-2.13a3.6 3.6 0 0 1 1.497 1.78c.29.723.685 1.432 1.354 1.83v0c.689.412 1.581.186 1.983-.508a106 106 0 0 0 5.314-10.498 105 105 0 0 1-11.62-5.17 1.266 1.266 0 0 1-.498-1.773"})}),(0,c.jsx)("g",{clipPath:"url(#clip2_2393_5345)",children:(0,c.jsx)("path",{stroke:"#93C0E0",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M16.24 69.477c-.524-.181-.902-.62-1.21-1.08a2.57 2.57 0 0 0-1.3-1.026c-1.527-.528-3.278.529-3.912 2.36-.633 1.833.09 3.746 1.617 4.273a2.57 2.57 0 0 0 1.657-.002c.526-.173 1.094-.284 1.618-.103v0c.532.184.812.77.612 1.296a76 76 0 0 1-2.564 5.985 76 76 0 0 1 7.395 2.037c.542.18.828.769.641 1.308v0c-.18.524-.619.902-1.08 1.21a2.57 2.57 0 0 0-1.026 1.3c-.528 1.527.53 3.278 2.361 3.911 1.832.634 3.745-.09 4.273-1.617a2.57 2.57 0 0 0-.003-1.656c-.173-.526-.283-1.094-.102-1.618v0a.83.83 0 0 1 1.11-.494 75 75 0 0 1 7.127 3.525 75 75 0 0 0 2.876-6.625 1 1 0 0 0-.613-1.296v0c-.524-.181-1.092-.07-1.618.102a2.57 2.57 0 0 1-1.657.003c-1.526-.528-2.25-2.441-1.616-4.273s2.384-2.889 3.91-2.36a2.57 2.57 0 0 1 1.302 1.025c.307.461.685.9 1.209 1.08v0a.9.9 0 0 0 1.165-.604 75 75 0 0 0 1.84-8.321 75 75 0 0 0-6.658-3.264.83.83 0 0 0-1.111.495v0c-.181.523-.07 1.091.102 1.618.178.54.191 1.112.003 1.657-.528 1.526-2.441 2.25-4.273 1.616s-2.889-2.384-2.36-3.91a2.57 2.57 0 0 1 1.025-1.302c.461-.307.899-.685 1.08-1.209v0c.187-.54-.1-1.13-.642-1.31a76 76 0 0 0-8.09-2.187 75 75 0 0 1-1.924 8.851.9.9 0 0 1-1.164.605"})}),(0,c.jsx)("path",{stroke:"#93C0E0",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"m128.875 56.875-14.074-14.074m0 0a20.25 20.25 0 0 0 5.949-14.364c0-11.218-9.094-20.312-20.312-20.312s-20.313 9.094-20.313 20.313 9.094 20.312 20.313 20.312a20.25 20.25 0 0 0 14.363-5.95"}),(0,c.jsxs)("defs",{children:[(0,c.jsx)("clipPath",{id:"clip0_2393_5345",children:(0,c.jsx)("path",{fill:"#fff",d:"M17 11.193 68.356 0 79.55 51.356 28.193 62.55z"})}),(0,c.jsx)("clipPath",{id:"clip1_2393_5345",children:(0,c.jsx)("path",{fill:"#fff",d:"m70.158 38.244 45.15 26.912-26.913 45.15-45.15-26.913z"})}),(0,c.jsx)("clipPath",{id:"clip2_2393_5345",children:(0,c.jsx)("path",{fill:"#fff",d:"M0 87.38 12.237 52l35.38 12.237-12.236 35.38z"})})]})]}),fa={size:{1:"nfd-title--1",2:"nfd-title--2",3:"nfd-title--3",4:"nfd-title--4",5:"nfd-title--5"}},pa=(0,r.forwardRef)((({children:e,as:t="h1",size:n,className:r,...o},i)=>(0,c.jsx)(t,{ref:i,className:a()("nfd-title",fa.size[n||("string"==typeof t&&t.startsWith("h")&&2===t.length?t[1]:"1")],r),...o,children:e})));pa.displayName="Title";const ma={children:s().node.isRequired,as:s().elementType,size:s().oneOf(Object.keys(fa.size)),className:s().string};pa.propTypes=ma,pa.defaultProps={as:"h1",size:void 0,className:""};const ha=e=>(0,c.jsx)(pa,{...e});ha.propTypes=ma,ha.defaultProps=pa.defaultProps,ha.displayName="Title";const ga=pa,va=()=>{const{search:e,updateSearch:t}=Ji();return(0,c.jsxs)("div",{className:"nfd-solutions-tools--empty nfd-flex nfd-flex-col nfd-items-center nfd-justify-center nfd-gap-5 nfd-h-full nfd--mt-12",children:[(0,c.jsx)(da,{className:"nfd-solutions-tools--empty__icon"}),(0,c.jsx)(ga,{as:"h2",children:(0,Gi.sprintf)(/* translators: %s: Search term */ /* translators: %s: Search term */ /* translators: %s: Search term */ /* translators: %s: Search term */ (0,Gi.__)("No matching tools for '%s'","wp-module-solutions"),e)}),(0,c.jsx)("p",{children:(0,Gi.__)("Check the spelling or try another keyword","wp-module-solutions")}),(0,c.jsx)("a",{className:"nfd-solutions-tools--empty__return-to-list nfd-cursor-pointer visited:nfd-text-inherit",onClick:()=>t(null),href:"#clear",children:(0,Gi.__)("Return to the tools list","wp-module-solutions")})]})},ya=({as:e="div",children:t,className:n="",...r})=>(0,c.jsx)(e,{...r,className:a()("nfd-card__header",n),children:t});ya.propTypes={as:l.PropTypes.element,children:l.PropTypes.node.isRequired,className:l.PropTypes.string};const wa=({as:e="div",children:t,className:n="",...r})=>(0,c.jsx)(e,{...r,className:a()("nfd-card__content",n),children:t});wa.propTypes={as:l.PropTypes.element,children:l.PropTypes.node.isRequired,className:l.PropTypes.string};const ba=({as:e="div",children:t,className:n="",...r})=>(0,c.jsx)(e,{...r,className:a()("nfd-card__footer",n),children:t});ba.propTypes={as:l.PropTypes.element,children:l.PropTypes.node.isRequired,className:l.PropTypes.string};const xa=(0,r.forwardRef)((({as:e="div",children:t,className:n,...r},o)=>(0,c.jsx)(e,{...r,className:a()("nfd-card",n),ref:o,children:t})));xa.displayName="Card";const Ma={as:l.PropTypes.elementType,children:l.PropTypes.node.isRequired,className:l.PropTypes.string};xa.propTypes=Ma,xa.defaultProps={as:"div",className:""},xa.Header=ya,xa.Header.displayName="Card.Header",xa.Content=wa,xa.Content.displayName="Card.Content",xa.Footer=ba,xa.Footer.displayName="Card.Footer";const ja=e=>(0,c.jsx)(xa,{...e});ja.propTypes=Ma,ja.defaultProps=xa.defaultProps,ja.displayName="Card";const Na=xa,Ea={variant:{default:"",primary:"nfd-text-primary-500",white:"nfd-text-white"},size:{3:"nfd-w-3 nfd-h-3",4:"nfd-w-4 nfd-h-4",8:"nfd-w-8 nfd-h-8"}},Aa=(0,r.forwardRef)((({variant:e,size:t,className:n},r)=>{const o=w();return(0,c.jsxs)("svg",{ref:r,xmlns:"http://www.w3.org/2000/svg/",fill:"none",viewBox:"0 0 24 24",className:a()("nfd-animate-spin",Ea.variant[e],Ea.size[t],n),...o,children:[(0,c.jsx)("circle",{className:"nfd-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,c.jsx)("path",{className:"nfd-opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})})),Ta={variant:s().oneOf((0,y.keys)(Ea.variant)),size:s().oneOf((0,y.keys)(Ea.size)),className:s().string};Aa.propTypes=Ta,Aa.defaultProps={variant:"default",size:"4",className:""},Aa.displayName="Spinner";const Sa=e=>(0,c.jsx)(Aa,{...e});Sa.propTypes=Ta,Sa.defaultProps=Aa.defaultProps,Sa.displayName="Spinner";const Ia=Aa,Da={variant:{primary:"nfd-button--primary",secondary:"nfd-button--secondary",error:"nfd-button--error",upsell:"nfd-button--upsell"},size:{default:"",small:"nfd-button--small",large:"nfd-button--large"}},ka=(0,r.forwardRef)((({children:e,as:t,type:n,variant:r,size:o,isLoading:i,disabled:l,className:s,...u},d)=>(0,c.jsxs)(t,{type:n||"button"===t&&"button"||void 0,disabled:l,ref:d,className:a()("nfd-button",Da.variant[r],Da.size[o],i&&"nfd-cursor-wait",l&&"nfd-button--disabled",s),...u,children:[i&&(0,c.jsx)(Ia,{size:"small"===o?"3":"4",className:"nfd-mr-2"}),e]}))),Ca={children:s().node.isRequired,as:s().elementType,type:s().oneOf(["button","submit","reset"]),variant:s().oneOf((0,y.keys)(Da.variant)),size:s().oneOf((0,y.keys)(Da.size)),isLoading:s().bool,disabled:s().bool,className:s().string};ka.propTypes=Ca,ka.defaultProps={as:"button",type:void 0,variant:"primary",size:"default",isLoading:!1,disabled:!1,className:""},ka.displayName="Button";const La=ka,Oa=e=>(0,c.jsx)(ka,{...e});Oa.propTypes=Ca,Oa.defaultProps=ka.defaultProps,Oa.displayName="Button";const Ra=({label:e,icon:t=null,rounded:n=!1,className:r="",...o})=>{const i=[r,"nfd-solutions-badge",{"nfd-solutions-badge--with-icon":!!t,"nfd-solutions-badge--rounded":n}];return(0,c.jsxs)("span",{className:a()(i),...o,children:[t&&(0,c.jsx)(t,{}),e]})},Pa=window.wp.url;function za(){return za=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},za.apply(null,arguments)}function _a(e,t){return _a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_a(e,t)}function Fa(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var Ua=n(597),Ba=new Map,Ha=function(e){return e.cloneNode(!0)},Va=function(){return"file:"===window.location.protocol},Wa=function(e,t,n){var r=new XMLHttpRequest;r.onreadystatechange=function(){try{if(!/\.svg/i.test(e)&&2===r.readyState){var t=r.getResponseHeader("Content-Type");if(!t)throw new Error("Content type not found");var o=(0,Ua.q)(t).type;if("image/svg+xml"!==o&&"text/plain"!==o)throw new Error("Invalid content type: ".concat(o))}if(4===r.readyState){if(404===r.status||null===r.responseXML)throw new Error(Va()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+e);if(!(200===r.status||Va()&&0===r.status))throw new Error("There was a problem injecting the SVG: "+r.status+" "+r.statusText);n(null,r)}}catch(e){if(r.abort(),!(e instanceof Error))throw e;n(e,r)}},r.open("GET",e),r.withCredentials=t,r.overrideMimeType&&r.overrideMimeType("text/xml"),r.send()},qa={},Qa=function(e,t){qa[e]=qa[e]||[],qa[e].push(t)},Ya=function(e,t,n){if(Ba.has(e)){var r=Ba.get(e);if(void 0===r)return void Qa(e,n);if(r instanceof SVGSVGElement)return void n(null,Ha(r))}Ba.set(e,void 0),Qa(e,n),Wa(e,t,(function(t,n){var r;t?Ba.set(e,t):(null===(r=n.responseXML)||void 0===r?void 0:r.documentElement)instanceof SVGSVGElement&&Ba.set(e,n.responseXML.documentElement),function(e){for(var t=function(t,n){setTimeout((function(){if(Array.isArray(qa[e])){var n=Ba.get(e),r=qa[e][t];n instanceof SVGSVGElement&&r(null,Ha(n)),n instanceof Error&&r(n),t===qa[e].length-1&&delete qa[e]}}),0)},n=0,r=qa[e].length;n<r;n++)t(n)}(e)}))},$a=function(e,t,n){Wa(e,t,(function(e,t){var r;e?n(e):(null===(r=t.responseXML)||void 0===r?void 0:r.documentElement)instanceof SVGSVGElement&&n(null,t.responseXML.documentElement)}))},Ga=0,Za=[],Ka={},Xa="http://www.w3.org/1999/xlink",Ja=function(e,t,n,r,o,i,a){var l=e.getAttribute("data-src")||e.getAttribute("src");if(l){if(-1!==Za.indexOf(e))return Za.splice(Za.indexOf(e),1),void(e=null);Za.push(e),e.setAttribute("src",""),(r?Ya:$a)(l,o,(function(r,o){if(!o)return Za.splice(Za.indexOf(e),1),e=null,void a(r);var s=e.getAttribute("id");s&&o.setAttribute("id",s);var c=e.getAttribute("title");c&&o.setAttribute("title",c);var u=e.getAttribute("width");u&&o.setAttribute("width",u);var d=e.getAttribute("height");d&&o.setAttribute("height",d);var f=Array.from(new Set(Fa(Fa(Fa([],(o.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();o.setAttribute("class",f);var p=e.getAttribute("style");p&&o.setAttribute("style",p),o.setAttribute("data-src",l);var m=[].filter.call(e.attributes,(function(e){return/^data-\w[\w-]*$/.test(e.name)}));if(Array.prototype.forEach.call(m,(function(e){e.name&&e.value&&o.setAttribute(e.name,e.value)})),n){var h,g,v,y,w,b={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]};Object.keys(b).forEach((function(e){h=e,v=b[e];for(var t=function(e,t){var n;y=g[e].id,w=y+"-"+ ++Ga,Array.prototype.forEach.call(v,(function(e){for(var t=0,r=(n=o.querySelectorAll("["+e+'*="'+y+'"]')).length;t<r;t++){var i=n[t].getAttribute(e);i&&!i.match(new RegExp('url\\("?#'+y+'"?\\)'))||n[t].setAttribute(e,"url(#"+w+")")}}));for(var r=o.querySelectorAll("[*|href]"),i=[],a=0,l=r.length;a<l;a++){var s=r[a].getAttributeNS(Xa,"href");s&&s.toString()==="#"+g[e].id&&i.push(r[a])}for(var c=0,u=i.length;c<u;c++)i[c].setAttributeNS(Xa,"href","#"+w);g[e].id=w},n=0,r=(g=o.querySelectorAll(h+"[id]")).length;n<r;n++)t(n)}))}o.removeAttribute("xmlns:a");for(var x,M,j=o.querySelectorAll("script"),N=[],E=0,A=j.length;E<A;E++)(M=j[E].getAttribute("type"))&&"application/ecmascript"!==M&&"application/javascript"!==M&&"text/javascript"!==M||((x=j[E].innerText||j[E].textContent)&&N.push(x),o.removeChild(j[E]));if(N.length>0&&("always"===t||"once"===t&&!Ka[l])){for(var T=0,S=N.length;T<S;T++)new Function(N[T])(window);Ka[l]=!0}var I=o.querySelectorAll("style");if(Array.prototype.forEach.call(I,(function(e){e.textContent+=""})),o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("xmlns:xlink",Xa),i(o),!e.parentNode)return Za.splice(Za.indexOf(e),1),e=null,void a(new Error("Parent node is null"));e.parentNode.replaceChild(o,e),Za.splice(Za.indexOf(e),1),e=null,a(null,o)}))}else a(new Error("Invalid data-src or src attribute"))},el=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],tl="http://www.w3.org/2000/svg",nl="http://www.w3.org/1999/xlink",rl=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).initialState={hasError:!1,isLoading:!0},t.state=t.initialState,t._isMounted=!1,t.reactWrapper=void 0,t.nonReactWrapper=void 0,t.refCallback=function(e){t.reactWrapper=e},t}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_a(e,t)}(t,e);var n=t.prototype;return n.renderSVG=function(){var e,t=this;if(this.reactWrapper instanceof(e=this.reactWrapper,((null==e?void 0:e.ownerDocument)||document).defaultView||window).Node){var n,r,o=this.props,i=o.desc,a=o.evalScripts,l=o.httpRequestWithCredentials,s=o.renumerateIRIElements,c=o.src,u=o.title,d=o.useRequestCache,f=this.props.onError,p=this.props.beforeInjection,m=this.props.afterInjection,h=this.props.wrapper;"svg"===h?((n=document.createElementNS(tl,h)).setAttribute("xmlns",tl),n.setAttribute("xmlns:xlink",nl),r=document.createElementNS(tl,h)):(n=document.createElement(h),r=document.createElement(h)),n.appendChild(r),r.dataset.src=c,this.nonReactWrapper=this.reactWrapper.appendChild(n);var g=function(e){t.removeSVG(),t._isMounted?t.setState((function(){return{hasError:!0,isLoading:!1}}),(function(){f(e)})):f(e)};!function(e,t){var n=void 0===t?{}:t,r=n.afterAll,o=void 0===r?function(){}:r,i=n.afterEach,a=void 0===i?function(){}:i,l=n.beforeEach,s=void 0===l?function(){}:l,c=n.cacheRequests,u=void 0===c||c,d=n.evalScripts,f=void 0===d?"never":d,p=n.httpRequestWithCredentials,m=void 0!==p&&p,h=n.renumerateIRIElements,g=void 0===h||h;if(e&&"length"in e)for(var v=0,y=0,w=e.length;y<w;y++)Ja(e[y],f,g,u,m,s,(function(t,n){a(t,n),e&&"length"in e&&e.length===++v&&o(v)}));else e?Ja(e,f,g,u,m,s,(function(t,n){a(t,n),o(1),e=null})):o(0)}(r,{afterEach:function(e,n){e?g(e):t._isMounted&&t.setState((function(){return{isLoading:!1}}),(function(){try{m(n)}catch(e){g(e)}}))},beforeEach:function(e){if(e.setAttribute("role","img"),i){var t=e.querySelector(":scope > desc");t&&e.removeChild(t);var n=document.createElement("desc");n.innerHTML=i,e.prepend(n)}if(u){var r=e.querySelector(":scope > title");r&&e.removeChild(r);var o=document.createElement("title");o.innerHTML=u,e.prepend(o)}try{p(e)}catch(e){g(e)}},cacheRequests:d,evalScripts:a,httpRequestWithCredentials:l,renumerateIRIElements:s})}},n.removeSVG=function(){var e;null!=(e=this.nonReactWrapper)&&e.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(e){var t=this;(function(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1})(za({},e),this.props)&&this.setState((function(){return t.initialState}),(function(){t.removeSVG(),t.renderSVG()}))},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var e=this.props;e.afterInjection,e.beforeInjection,e.desc,e.evalScripts;var t=e.fallback;e.httpRequestWithCredentials;var n=e.loading;e.renumerateIRIElements,e.src,e.title,e.useRequestCache;var o=e.wrapper,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,el),a=o;return r.createElement(a,za({},i,{ref:this.refCallback},"svg"===o?{xmlns:tl,xmlnsXlink:nl}:{}),this.state.isLoading&&n&&r.createElement(n,null),this.state.hasError&&t&&r.createElement(t,null))},t}(r.Component);rl.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"},rl.propTypes={afterInjection:l.func,beforeInjection:l.func,desc:l.string,evalScripts:l.oneOf(["always","once","never"]),fallback:l.oneOfType([l.func,l.object,l.string]),httpRequestWithCredentials:l.bool,loading:l.oneOfType([l.func,l.object,l.string]),onError:l.func,renumerateIRIElements:l.bool,src:l.string.isRequired,title:l.string,useRequestCache:l.bool,wrapper:l.oneOf(["div","span","svg"])};const ol=window.wp.compose,il=()=>(0,c.jsx)(Ra,{label:(0,Gi.__)("Popular","wp-module-solutions"),icon:ea,rounded:!0,className:"nfd-mb-2 nfd-solutions-badge--popular"}),al=()=>(0,c.jsx)(Ra,{label:(0,Gi.__)("Premium","wp-module-solutions"),rounded:!0,className:"nfd-mb-2 nfd-solutions-badge--premium"}),ll=({name:e,description:t="",premium:n=!1,popular:o=!1,wide:i=!1,featureIcon:l=null,smallIcon:s=null,plsSlug:u,plsProvider:d,isActive:f,ctaUrl:p,ctaLabel:m,ctbId:h,ctbHref:g,download:v,basename:y,dependency:w})=>{const b=(0,ol.useViewportMatch)("medium"),x=!!la(),M=n&&!!la(),j=["nfd-solutions-tool-card","nfd-solutions-tool-card-"+(0,Pa.cleanForSlug)(e),"nfd-bg-white","nfd-justify-end",{"nfd-solutions-tool-card--with-featured-icon":l,"nfd-solutions-tool-card--with-small-icon":!l&&s,"nfd-solutions-tool-card--wide":i,"nfd-col-span-1":i&&b,"nfd-solutions-tool-card--premium":M,"min-[520px]:nfd-col-span-2 ":i}],[N,E]=(0,r.useState)(h?g:"string"==typeof(A=p)||A instanceof String?window.NewfoldRuntime&&window.NewfoldRuntime.siteUrl?A.replace("{siteUrl}",window.NewfoldRuntime.siteUrl):A.replace("{siteUrl}",""):A);var A;(0,r.useEffect)((()=>{const e=setTimeout((()=>{if(window.NewfoldRuntime?.linkTracker?.addUtmParams instanceof Function){const e=window.NewfoldRuntime.linkTracker.addUtmParams(N);E(e)}}),200);return()=>clearTimeout(e)}),[]);const T=()=>(0,c.jsx)(c.Fragment,{children:l&&(0,c.jsx)(Na.Header,{className:"nfd-solutions-tool-card__header nfd-bg-inherit nfd-bg-transparent",children:(0,c.jsx)(rl,{alt:e,className:"nfd-solutions-card__feature-icon",src:l})})}),S=()=>(0,c.jsxs)(Na.Content,{children:[!l&&!!s&&(0,c.jsx)("img",{alt:e,className:"nfd-solutions-card__small-icon",src:s}),(M||o)&&(0,c.jsxs)("div",{className:"nfd-solutions-card-badges nfd-flex nfd-gap-1",children:[!!M&&(0,c.jsx)(al,{}),!!o&&(0,c.jsx)(il,{})]}),(0,c.jsx)(ga,{as:"h4",className:"nfd-solutions-card-title",children:e}),(0,c.jsx)("span",{className:"nfd-solutions-card-description",children:t})]});return(0,c.jsxs)(Na,{className:a()(j),children:[i&&(0,c.jsxs)("div",{className:"nfd-solutions-tool-card--wide-body nfd-flex nfd-gap-4 nfd-items-end",children:[(0,c.jsx)(S,{}),(0,c.jsx)(T,{})]}),!i&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(T,{}),(0,c.jsx)(S,{})]}),!!x&&(0,c.jsx)(Na.Footer,{className:M?"nfd-flex nfd-justify-end":"",children:(0,c.jsx)(La,{as:"a","data-ctb-id":h,"data-is-active":!!f||null,"data-nfd-installer-download-url":f||h?null:v,"data-nfd-installer-plugin-activate":h?null:"true","data-nfd-installer-plugin-basename":f||h?null:y,"data-nfd-installer-plugin-name":f||h?null:e,"data-nfd-installer-pls-provider":f||h?null:d,"data-nfd-installer-pls-slug":f||h?null:u,"data-nfd-installer-plugin-dependency":f||h?null:w,variant:M?"primary":"secondary",size:"small",href:N,target:h?"_blank":null,children:M?(0,Gi.__)("Get it","wp-module-solutions"):m})})]})},sl=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M14.615 1.595a.75.75 0 0 1 .359.852L12.982 9.75h7.268a.75.75 0 0 1 .548 1.262l-10.5 11.25a.75.75 0 0 1-1.272-.71l1.992-7.302H3.75a.75.75 0 0 1-.548-1.262l10.5-11.25a.75.75 0 0 1 .913-.143Z",clipRule:"evenodd"}))})),cl=()=>{const e=NewfoldSolutions?.solutions.find((e=>"WP_SOLUTION_COMMERCE"===e?.sku));return(0,c.jsxs)(Na,{className:a()(["nfd-upgrade-card","nfd-solutions-tool-card","nfd-bg-white","nfd-justify-end","nfd-solutions-tool-card--premium","nfd-solutions-tool-card--with-featured-icon"]),children:[(0,c.jsxs)(Na.Content,{children:[(0,c.jsxs)("div",{className:"nfd-upgrade-card__badge nfd-flex nfd-items-center nfd-gap-2 nfd-text-[--primary-color]",children:[(0,c.jsx)("span",{className:"nfd-w-[24px] nfd-bg-[--primary-color] nfd-rounded-lg nfd-p-1",children:(0,c.jsx)(sl,{className:"nfd-text-white"})}),(0,Gi.__)("Upgrade to Save","wp-module-solutions")]}),(0,c.jsx)(ga,{as:"h2",className:"nfd-font-bold nfd-pt-3 nfd-pb-4",children:(0,Gi.__)("The #1 Bundle of Commerce Tools","wp-module-solutions")}),(0,c.jsxs)("p",{className:"nfd-flex nfd-flex-col nfd-gap-2",children:[(0,c.jsx)("span",{children:(0,Gi.__)("Add-Ons designed to help shop owners to boost their online sales with a massive bundle of premium tools","wp-module-solutions")}),(0,c.jsxs)("span",{className:"nfd-flex nfd-flex-col",children:[(0,c.jsx)("span",{className:"nfd-font-bold nfd-text-[--primary-color]",children:(0,Gi.__)("Some features included:","wp-module-solutions")}),(0,Gi.__)("Boost Reviews, Booking & Appointments, Social Login, Product filters, etc.","wp-module-solutions"),(0,c.jsx)("span",{className:"nfd-font-bold nfd-underline",children:(0,Gi.__)("Bundle of 30 features for a value of $3,500","wp-module-solutions")})]})]})]}),(0,c.jsxs)(Na.Footer,{className:"nfd-flex nfd-justify-between nfd-items-center",children:[(0,c.jsxs)("div",{children:[(0,c.jsx)("span",{className:"nfd-font-bold nfd-text-2xl",children:e.price}),(0,Gi.__)("/month","wp-module-solutions")]}),(0,c.jsx)(La,{as:"a",href:"https://www.bluehost.com/my-account/hosting/details#click-to-buy-WP_SOLUTION_FAMILY","data-ctb-id":"5dc83bdd-9274-4557-a6d7-0b2adbc3919f",rel:"noreferrer",target:"_blank",children:(0,Gi.__)("Discover","wp-module-solutions")})]})]})},ul=()=>{const e=(0,Zi.useRef)(),{category:t,search:n}=Ji(),[r,o]=(0,Zi.useState)(aa({category:t,search:n})),i="WP_SOLUTION_CREATOR"===NewfoldSolutions.solution,a=()=>{if(e?.current){const r=window.getComputedStyle(e.current)["grid-template-columns"].split(" ").length;o(aa({category:t,search:n,columns:r,hasUpgradeCard:i}))}};return(0,Zi.useEffect)((()=>(window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a)})),[r]),(0,Zi.useEffect)((()=>{a()}),[t,n]),(0,c.jsxs)(c.Fragment,{children:[!r.length&&!!n&&(0,c.jsx)(va,{},"empty-tools"),(0,c.jsx)("div",{className:"nfd-solutions-tools nfd-grid nfd-gap-6 nfd-grid-cols-1 min-[520px]:nfd-grid-cols-2 min-[1200px]:nfd-grid-cols-3 min-[1520px]:nfd-grid-cols-4",ref:e,children:r.map((e=>"upgrade-card"===e?.id?(0,c.jsx)(cl,{},"upgrade-card"):(0,c.jsx)(ll,{name:e?.name,category:e.category,description:e.description,ctaUrl:e.cta?.url,ctaLabel:e.cta?.text,featureIcon:e?.image?.featureImage,smallIcon:e?.image?.primaryImage,wide:e?.wide,premium:e?.premium,popular:e?.popular,isActive:e?.isActive,plsProvider:e?.plsProviderName,basename:e?.basename,plsSlug:e?.plsSlug,ctbId:e?.ctbId,ctbHref:e?.ctbHref,download:e?.download,dependency:e?.dependency},e?.id)))})]})},dl=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M12 1.5a5.25 5.25 0 0 0-5.25 5.25v3a3 3 0 0 0-3 3v6.75a3 3 0 0 0 3 3h10.5a3 3 0 0 0 3-3v-6.75a3 3 0 0 0-3-3v-3c0-2.9-2.35-5.25-5.25-5.25Zm3.75 8.25v-3a3.75 3.75 0 1 0-7.5 0v3h7.5Z",clipRule:"evenodd"}))})),fl=({className:e="",children:t,title:n,secondaryTitle:o,...i})=>{const l=[e,"nfd-solutions-upgrade-banner"],[s,u]=(0,r.useState)("https://www.bluehost.com/my-account/hosting/details#click-to-buy-WP_SOLUTION_FAMILY");return(0,r.useEffect)((()=>{const e=setTimeout((()=>{if(window.NewfoldRuntime?.linkTracker?.addUtmParams instanceof Function){const e=window.NewfoldRuntime.linkTracker.addUtmParams(s);u(e)}}),200);return()=>clearTimeout(e)}),[]),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:"nfd-solutions-upgrade-banner__overlay"}),(0,c.jsxs)("div",{className:a()(l),...i,children:[(0,c.jsx)("span",{className:"nfd-solutions-upgrade-banner__lock-icon",children:(0,c.jsx)(dl,{})}),(0,c.jsx)(ga,{as:"h2",className:"nfd-solutions-upgrade-banner__title",children:n||(0,Gi.__)("Upgrade to unlock all features","wp-module-solutions")}),(0,c.jsx)(ga,{as:"h4",className:"nfd-solutions-upgrade-banner__title--secondary",children:o||(0,Gi.__)("Add-Ons to build any kind of site, store or blog","wp-module-solutions")}),(0,c.jsx)("span",{className:"nfd-solutions-upgrade-banner__content",children:t}),(0,c.jsx)(La,{as:"a",className:"nfd-solutions-upgrade-banner__button","data-ctb-id":"5dc83bdd-9274-4557-a6d7-0b2adbc3919f",href:s,rel:"noreferrer",size:"large",target:"_blank",children:(0,Gi.__)("Discover Now","wp-module-solutions")})]})]})},pl=()=>{const e=!!la(),t=a()("nfd-page-content","nfd-flex nfd-relative nfd-gap-6 nfd-max-w-full nfd-my-0 nfd-flex-col",{"nfd-page-content--no-solution":!e});return(0,c.jsx)(Xi,{children:(0,c.jsxs)("div",{className:t,children:[!e&&(0,c.jsx)(fl,{children:(0,Gi.__)("Start with a plan that fits your goals and unlock up to $3,500 in premium Bluehost and Yoast plugins.","wp-module-solutions")}),(0,c.jsx)(ua,{}),(0,c.jsx)("main",{className:"nfd-w-full",children:(0,c.jsx)(ul,{})})]})})}},556:(e,t,n)=>{e.exports=n(694)()},597:(e,t)=>{"use strict";var n=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,r=/\\([\u000b\u0020-\u00ff])/g,o=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;function i(e){this.parameters=Object.create(null),this.type=e}t.q=function(e){if(!e)throw new TypeError("argument string is required");var t="object"==typeof e?function(e){var t;if("function"==typeof e.getHeader?t=e.getHeader("content-type"):"object"==typeof e.headers&&(t=e.headers&&e.headers["content-type"]),"string"!=typeof t)throw new TypeError("content-type header is missing from object");return t}(e):e;if("string"!=typeof t)throw new TypeError("argument string is required to be a string");var a=t.indexOf(";"),l=-1!==a?t.slice(0,a).trim():t.trim();if(!o.test(l))throw new TypeError("invalid media type");var s=new i(l.toLowerCase());if(-1!==a){var c,u,d;for(n.lastIndex=a;u=n.exec(t);){if(u.index!==a)throw new TypeError("invalid parameter format");a+=u[0].length,c=u[1].toLowerCase(),34===(d=u[2]).charCodeAt(0)&&-1!==(d=d.slice(1,-1)).indexOf("\\")&&(d=d.replace(r,"$1")),s.parameters[c]=d}if(a!==t.length)throw new TypeError("invalid parameter format")}return s}},609:e=>{"use strict";e.exports=window.React},694:(e,t,n)=>{"use strict";var r=n(925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return o[e](n,n.exports,a),n.exports}a.m=o,t=[],a.O=(e,n,r,o)=>{if(!n){var i=1/0;for(u=0;u<t.length;u++){for(var[n,r,o]=t[u],l=!0,s=0;s<n.length;s++)(!1&o||i>=o)&&Object.keys(a.O).every((e=>a.O[e](n[s])))?n.splice(s--,1):(l=!1,o<i&&(i=o));if(l){t.splice(u--,1);var c=r();void 0!==c&&(e=c)}}return e}o=o||0;for(var u=t.length;u>0&&t[u-1][2]>o;u--)t[u]=t[u-1];t[u]=[n,r,o]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);a.r(o);var i={};n=n||[null,r({}),r([]),r(r)];for(var l=2&t&&e;("object"==typeof l||"function"==typeof l)&&!~n.indexOf(l);l=r(l))Object.getOwnPropertyNames(l).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,a.d(o,i),o},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={557:0,44:0};a.O.j=t=>0===e[t];var t=(t,n)=>{var r,o,[i,l,s]=n,c=0;if(i.some((t=>0!==e[t]))){for(r in l)a.o(l,r)&&(a.m[r]=l[r]);if(s)var u=s(a)}for(t&&t(n);c<i.length;c++)o=i[c],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return a.O(u)},n=globalThis.webpackChunk_newfold_labs_wp_module_solutions=globalThis.webpackChunk_newfold_labs_wp_module_solutions||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var l=a.O(void 0,[44],(()=>a(488)));l=a.O(l),e.exports=l})()},9397:(e,t,n)=>{"use strict";n.d(t,{S:()=>l});var r=n(1609),o=n(9669),i=n(3379),a=n(6339);function l(e,t){let n=(0,r.useId)(),l=o.D.get(t),[s,c]=(0,i.y)(l,(0,r.useCallback)((e=>[l.selectors.isTop(e,n),l.selectors.inStack(e,n)]),[l,n]));return(0,a.s)((()=>{if(e)return l.actions.push(n),()=>l.actions.pop(n)}),[l,e,n]),!!e&&(!c||s)}},9402:(e,t,n)=>{"use strict";n.d(t,{h:()=>u});var r,o,i,a,l,s=n(1609);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(null,arguments)}var u=function(e){return s.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 34 30"},e),r||(r=s.createElement("path",{fill:"#fff",stroke:"#293F54",d:"M32.8 28c0 .6-.5 1-1 1H2.1a1 1 0 0 1-1-1V2c0-.6.4-1 1-1h29.5c.6 0 1 .4 1 1v26Z"})),o||(o=s.createElement("path",{stroke:"#293F54",d:"M1 8h31.7"})),i||(i=s.createElement("path",{fill:"#00B1CC",d:"M3.8 5.4a.8.8 0 1 0 0-1.7.8.8 0 0 0 0 1.7m4 0a.8.8 0 1 0 0-1.7.8.8 0 0 0 0 1.7m4 0a.8.8 0 1 0 0-1.7.8.8 0 0 0 0 1.7"})),a||(a=s.createElement("path",{fill:"#293F54",d:"M17.1 5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m2.5 0a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m2.6 0a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m2.5 0a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m2.5 0a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m2.6 0a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M15.7 25.8a1 1 0 1 0 0-2 1 1 0 0 0 0 2m6.8 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2m1.5-4.2-1.2-8h-2l1 7.2h-2l-.8-4.4h-2l.8 4.4h-2l-2-8.3a1 1 0 0 0-.9-.7H6.2v1.9H12l2 8.3c0 .4.5.7 1 .7h8a1 1 0 0 0 .9-1Z"})),l||(l=s.createElement("path",{fill:"#00B1CC",d:"M15.5 11.6a1 1 0 0 1 1-.5 1 1 0 0 1 .8.5l.1.5a1 1 0 0 1-.5.9 1 1 0 0 1-.5 0 1 1 0 0 1-.5 0 1 1 0 0 1-.5-.8zm4-.4L16.7 15H16l2.8-3.7h.8Zm-3.4 1 .1.2h.4l.1-.1v-.4h-.1l-.2-.1h-.2a.3.3 0 0 0-.1.3v.2Zm2 1.4a1 1 0 0 1 1-.5 1 1 0 0 1 .8.5l.1.5a1 1 0 0 1-.5.8 1 1 0 0 1-.5.1 1 1 0 0 1-1-1zm.6.6a.3.3 0 0 0 .3.2h.2l.1-.2v-.1a.4.4 0 0 0-.1-.4H19a.3.3 0 0 0-.3.2z"})))}},9461:(e,t,n)=>{"use strict";n.d(t,{R:()=>s});var r=n(2894),o=n(1609),i=n(6948),a=n(4836),l=n(9672);function s(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:s,onFocusWithinChange:c}=e,u=(0,o.useRef)({isFocusWithin:!1}),{addGlobalListener:d,removeAllGlobalListeners:f}=(0,i.A)(),p=(0,o.useCallback)((e=>{e.currentTarget.contains(e.target)&&u.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(u.current.isFocusWithin=!1,f(),n&&n(e),c&&c(!1))}),[n,c,u,f]),m=(0,r.yB)(p),h=(0,o.useCallback)((e=>{if(!e.currentTarget.contains(e.target))return;const t=(0,a.TW)(e.target),n=(0,l.bq)(t);if(!u.current.isFocusWithin&&n===(0,l.wt)(e.nativeEvent)){s&&s(e),c&&c(!0),u.current.isFocusWithin=!0,m(e);let n=e.currentTarget;d(t,"focus",(e=>{if(u.current.isFocusWithin&&!(0,l.sD)(n,e.target)){let o=new t.defaultView.FocusEvent("blur",{relatedTarget:e.target});(0,r.o1)(o,n);let i=(0,r.eg)(o);p(i)}}),{capture:!0})}}),[s,c,m,d,p]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:h,onBlur:p}}}},9472:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(6087),o=n(2609),i=n(652),a=n(236),l=n(524),s=n(1124),c=n(2914),u=n(790),d=n(6087).useContext,__=n(7723).__;const f=()=>{const{store:e,setStore:t}=d(l.Ay),[n,f]=(0,r.useState)(e.features.performance),[p,m]=(0,r.useState)(!e.toggleableFeatures.performance),[h,g]=(0,r.useState)(!1),v=(0,c.h)(),y=()=>{const e=__("Performance Enabled","wp-plugin-bluehost"),t=__("Performance Disabled","wp-plugin-bluehost");return n?e:t},w=()=>{const e=__("You need to reload the page to manage Performance.","wp-plugin-bluehost"),t=__("Performance will no longer display.","wp-plugin-bluehost");return n?e:t};return(0,o.A)((()=>{var r,o;t({...e,performance:n}),r=y,o=w,v.push("feature-toggle-notice",{title:r(),description:o(),variant:"success",autoDismiss:5e3}),(0,s.AG)(".wppbh-app-navitem-Performance",n)}),[n]),(0,u.jsxs)("div",{className:"nfd-flex nfd-flex-col nfd-gap-6",children:[(0,u.jsx)(i.A,{id:"performance-toggle",label:"Performance",description:__("The performance feature provides improvements to loads faster for visitors including cache settings.","wp-plugin-bluehost"),disabled:p,checked:n,onChange:()=>{(0,s.JU)("performance",(e=>{e.success?f(!n):(m(!0),g(!0),v.push("feature-toggle-notice",{title:__("Sorry, that is not allowed.","wp-plugin-bluehost"),description:__("This feature cannot currently be modified.","wp-plugin-bluehost"),variant:"error"}))}))}}),h&&(0,u.jsx)(a.Ay,{variant:"error",children:__("Oops! Something went wrong. Please try again.","wp-plugin-bluehost")})]})}},9528:(e,t,n)=>{"use strict";n.d(t,{j:()=>a,u:()=>i});var r,o=n(6206),i=((r=i||{})[r.None=1]="None",r[r.Focusable=2]="Focusable",r[r.Hidden=4]="Hidden",r);let a=(0,o.FX)((function(e,t){var n;let{features:r=1,...i}=e,a={ref:t,"aria-hidden":!(2&~r)||(null!=(n=i["aria-hidden"])?n:void 0),hidden:!(4&~r)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...!(4&~r)&&!!(2&~r)&&{display:"none"}}};return(0,o.Ci)()({ourProps:a,theirProps:i,slot:{},defaultTag:"span",name:"Hidden"})}))},9594:(e,t,n)=>{"use strict";function r(){let e;return{before({doc:t}){var n;let r=t.documentElement,o=null!=(n=t.defaultView)?n:window;e=Math.max(0,o.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,o=Math.max(0,r.clientWidth-r.offsetWidth),i=Math.max(0,e-o);n.style(r,"paddingRight",`${i}px`)}}}n.d(t,{f:()=>r})},9603:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>y});var r=n(7832),o=n(5556),i=n.n(o),a=n(1609),l=n(5146),s=n(8468),c=n(6942),u=n.n(c),d=n(5410),f=n(790);const p=(0,a.createContext)({position:"bottom-left"}),m={variant:{info:"nfd-notification--info",warning:"nfd-notification--warning",success:"nfd-notification--success",error:"nfd-notification--error"},position:{"bottom-center":"nfd-translate-y-full","bottom-left":"nfd-translate-y-full","top-center":"nfd--translate-y-full"},size:{default:"",large:"nfd-notification--large"}},h=({children:e,id:t,variant:n="info",size:o="default",title:i,description:c="",onDismiss:h=null,autoDismiss:g=null,dismissScreenReaderLabel:v})=>{const{position:y}=(0,a.useContext)(p),[w,b]=(0,a.useState)(!1),x=(0,a.useCallback)((()=>{b(!1),setTimeout((()=>{h(t)}),150)}),[h,t]);return(0,a.useEffect)((()=>{let e;return b(!0),g&&(e=setTimeout((()=>{x()}),g)),()=>clearTimeout(e)}),[]),(0,f.jsx)(r.e,{show:w,enter:"nfd-transition nfd-ease-in-out nfd-duration-150",enterFrom:u()("nfd-opacity-0",m.position[y]),enterTo:"nfd-translate-y-0",leave:"nfd-transition nfd-ease-in-out nfd-duration-150",leaveFrom:"nfd-translate-y-0",leaveTo:u()("nfd-opacity-0",m.position[y]),className:u()("nfd-notification",m.variant[n],m.size[o]),role:"alert",children:(0,f.jsxs)("div",{className:"nfd-flex nfd-items-start nfd-gap-3",children:[(0,f.jsx)("div",{className:"nfd-flex-shrink-0",children:(0,f.jsx)(d.A,{variant:n,className:"nfd-notification__icon"})}),(0,f.jsxs)("div",{className:"nfd-w-0 nfd-flex-1",children:[(0,f.jsx)("p",{className:"nfd-text-sm nfd-font-medium nfd-text-slate-800",children:i}),e||c&&((0,s.isArray)(c)?(0,f.jsx)("ul",{className:"nfd-list-disc nfd-ml-4",children:c.map(((e,t)=>(0,f.jsx)("li",{className:"nfd-pt-1",children:e},`${e}-${t}`)))}):(0,f.jsx)("p",{children:c}))]}),h&&(0,f.jsx)("div",{className:"nfd-flex-shrink-0 nfd-flex",children:(0,f.jsxs)("button",{onClick:x,className:"nfd-bg-white nfd-rounded-md nfd-inline-flex nfd-text-slate-400 hover:nfd-text-slate-500 focus:nfd-outline-none focus:nfd-ring-2 focus:nfd-ring-offset-2 focus:nfd-ring-primary-500",children:[(0,f.jsx)("span",{className:"nfd-sr-only",children:v}),(0,f.jsx)(l.A,{className:"nfd-h-5 nfd-w-5"})]})})]})})};h.propTypes={children:i().node,id:i().string.isRequired,variant:i().oneOf((0,s.keys)(m.variant)),size:i().oneOf((0,s.keys)(m.size)),title:i().string.isRequired,description:i().oneOfType([i().node,i().arrayOf(i().node)]),onDismiss:i().func,autoDismiss:i().number,dismissScreenReaderLabel:i().string.isRequired};const g={position:{"bottom-center":"nfd-notifications--bottom-center","bottom-left":"nfd-notifications--bottom-left","top-center":"nfd-notifications--top-center"}},v=({children:e,position:t="bottom-left"})=>(0,f.jsx)(p.Provider,{value:{position:t},children:(0,f.jsx)("aside",{className:u()("nfd-notifications",g.position[t]),children:e})});v.propTypes={children:i().node,position:i().oneOf((0,s.keys)(g.position))},(v.Notification=h).displayName="Notifications.Notification";const y=v},9632:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{A:()=>L});var o=n(692),i=n(6658),a=n(5495),l=n(5245),s=n(4314),c=n(6427),u=n(7143),d=n(4177),f=n(1609),p=n(8468),m=n(524),h=n(2097),g=n(1859),v=n(9982),y=n(5798),w=n(2914),b=n(1124),x=n(9003),M=n(1455),j=n.n(M),N=n(3832),E=n(6087),A=n(790),T=n(6087).useContext,S=n(6942),I=e([h,g]);[h,g]=I.then?(await I)():I;const D=()=>{const e=(0,u.useSelect)((e=>e(o.store).getNotices().filter((e=>"snackbar"===e.type))),[]),{removeNotice:t}=(0,u.useDispatch)(o.store);return(0,A.jsx)(c.SnackbarList,{className:"edit-site-notices",notices:e,onRemove:t})},k=e=>{document.querySelectorAll("#adminmenu a").forEach((e=>{e.classList.remove("current");const t=e.closest("li");t&&(t.classList.remove("current"),t.classList.remove("wp-has-current-submenu"),t.classList.remove("wp-menu-open"))}));const t=(e=>{const t=(e=>e?e.replace(/^#/,"").replace(/\/+$/,""):"")(e);if(!t)return[];const n=t.split("/").filter(Boolean),r=[];for(let e=n.length;e>0;e--){const t="/"+n.slice(0,e).join("/");r.push(t)}return r})(e);let n=null;for(const e of t){const t=`admin.php?page=bluehost#${e}`,r=document.querySelector(`#adminmenu a[href="${t}"]`)||document.querySelector(`#adminmenu a[href^="${t}"]`);if(r){n=r;break}}if(n||(n=document.querySelector('#adminmenu a[href="admin.php?page=bluehost"]')),n){n.classList.add("current");const e=n.closest("li");if(e){e.classList.add("current");const t=e.closest(".wp-has-submenu");t&&(t.classList.add("wp-has-current-submenu"),t.classList.add("wp-menu-open"))}}},C=e=>{const t=(0,i.zy)(),n="#"+t.pathname,{booted:r,hasError:l}=T(m.Ay);return(0,y.R)(),(0,b.rS)(),(0,f.useEffect)((()=>{let e=t.pathname;switch(t?.pathname){case"/settings/performance":case"/settings/staging":case"/settings/settings":e="/settings"}k(e)}),[t]),(0,A.jsxs)("main",{id:"wppbh-app-rendered",className:S("wpadmin-brand-bluehost",`wppbh-wp-${a.NewfoldRuntime.wpVersion}`,`wppbh-page-${(0,p.kebabCase)(t.pathname)}`,e.className,"nfd-w-full nfd-p-4 min-[783px]:nfd-p-0"),children:[(0,A.jsx)(x.A,{constants:{context:"bluehost-plugin",page:n},methods:{apiFetch:j(),addQueryArgs:N.addQueryArgs,filter:p.filter,useState:E.useState,useEffect:f.useEffect}}),(0,A.jsxs)("div",{className:"wppbh-app-body",children:[(0,A.jsx)("header",{children:(0,A.jsx)(h.D9,{})}),(0,A.jsx)("div",{className:"wppbh-app-body-inner nfd-flex nfd-justify-center",children:(0,A.jsxs)(d.tH,{FallbackComponent:(0,A.jsx)(v.A,{}),children:[l&&(0,A.jsx)(v.A,{error:l}),!0===r&&(0,A.jsx)(g.Ay,{})||!l&&(0,A.jsx)(c.Spinner,{})]})})]}),(0,A.jsx)("div",{className:"wppbh-app-snackbar",children:void 0!==o.store&&(0,A.jsx)(D,{})})]})},L=()=>(0,A.jsx)(m.WA,{children:(0,A.jsx)(l.A,{context:{isRtl:!1},children:(0,A.jsx)(w.Y,{children:(0,A.jsx)(i.I9,{children:(0,A.jsx)(s.i,{children:(0,A.jsx)("div",{className:"wppbh-app-container min-[783px]:nfd-p-8 min-[783px]:nfd-flex nfd-gap-6 nfd-max-w-full xl:nfd-max-w-screen-xl 2xl:nfd-max-w-screen-2xl nfd-my-0 nfd-mx-auto",children:(0,A.jsx)(C,{})})})})})})});r()}catch(e){r(e)}}))},9641:(e,t,n)=>{"use strict";n.d(t,{h:()=>d});var r,o,i,a,l,s,c=n(1609);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(null,arguments)}var d=function(e){return c.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 115 60"},e),r||(r=c.createElement("path",{fill:"#346BD5",d:"M48.6 1.4c.2-.8 1-1.2 1.8-1l26.3 7a1.5 1.5 0 1 1-.8 2.8l-26.3-7c-.7-.2-1.2-1-1-1.8M38 40.9c.3-.8 1-1.3 1.8-1l26.3 7a1.5 1.5 0 0 1-.7 2.8l-26.3-7c-.8-.3-1.3-1-1-1.8Z"})),o||(o=c.createElement("path",{fill:"#346BD5",fillRule:"evenodd",d:"M51.6 1.7c.5.1.8.7.6 1.2-.8 3.3-1.4 5.6-1.3 8 .2 2.3 1.2 4.8 3.6 8.4l-.8.6.8-.6c.9 1.3 1.5 2.3 1.8 3.1.4.9.5 1.7.2 2.5a4 4 0 0 1-1.7 1.7l-1.9 1-.6.2h-.1A16 16 0 0 0 42 41.3a1 1 0 0 1-2-.3 18 18 0 0 1 12.1-15.3l1.7-.8.9-.7-.2-1c-.2-.7-.7-1.5-1.6-2.8a19.1 19.1 0 0 1-4-9.4c-.1-2.7.6-5.3 1.4-8.5v-.1a1 1 0 0 1 1.3-.7M75.1 8a1 1 0 0 0-1.2.7c-.9 3.3-1.5 5.6-2.8 7.6s-3.4 3.6-7.4 5.5l.4.9-.4-.9c-1.3.7-2.4 1.2-3 1.8-.8.6-1.3 1.2-1.4 2-.1.9.2 1.6.6 2.3l1.1 1.8.4.6a16 16 0 0 1 2.2 16.8 1 1 0 0 0 1.8.7 18 18 0 0 0-2.8-19.3l-1-1.6c-.4-.5-.4-.8-.4-1 0-.1 0-.4.6-.8s1.4-.9 2.8-1.5c4-2 6.5-3.9 8-6.2 1.6-2.3 2.3-4.9 3.2-8v-.2a1 1 0 0 0-.7-1.2",clipRule:"evenodd"})),i||(i=c.createElement("path",{fill:"#404040",d:"M44.6 39c1-3.5 4.7-5.7 8.3-4.7l4.7 1.2c3.6 1 5.8 4.7 4.8 8.4zm13.7-9.8a1.5 1.5 0 1 1-2.8-.8 1.5 1.5 0 0 1 2.8.8"})),a||(a=c.createElement("path",{fill:"#CCC",d:"M.7 52.7c0-1.3 1-2.4 2.4-2.4h111.3V55H3.1c-1.3 0-2.4-1-2.4-2.4Z"})),l||(l=c.createElement("path",{stroke:"#CCC",d:"M4.1 54.7H114v4.8H4.1z"})),s||(s=c.createElement("path",{fill:"#CCC",fillRule:"evenodd",d:"M102.3 17.2h12.1v32.1H85.3V39.1h5.1l.1-.4.8-2.1a1 1 0 1 1 .7-1.8l1.1-2.1a1 1 0 1 1 1.1-1.6l1.6-1.5a1 1 0 0 1 .7-1.7c.3 0 .7.2.8.6.7-.4 1.4-.8 2.2-1a1 1 0 1 1 1.8-.6l1-.3zm2 2v9l-.9.2c-4.3.7-6.8 2.6-8.3 4.9-1.4 1.9-2 4-2.7 5.9l-.4 1.2-.2.6h-4.6v6.4h25.3V19.2h-8.3Z",clipRule:"evenodd"})))}},9669:(e,t,n)=>{"use strict";n.d(t,{D:()=>f,Q:()=>c});var r,o=n(7555),i=n(4126),a=n(5897),l=Object.defineProperty,s=(e,t,n)=>(((e,t,n)=>{t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),c=((r=c||{})[r.Push=0]="Push",r[r.Pop=1]="Pop",r);let u={0(e,t){let n=t.id,r=e.stack,o=e.stack.indexOf(n);if(-1!==o){let t=e.stack.slice();return t.splice(o,1),t.push(n),r=t,{...e,stack:r}}return{...e,stack:[...e.stack,n]}},1(e,t){let n=t.id,r=e.stack.indexOf(n);if(-1===r)return e;let o=e.stack.slice();return o.splice(r,1),{...e,stack:o}}};class d extends o.u5{constructor(){super(...arguments),s(this,"actions",{push:e=>this.send({type:0,id:e}),pop:e=>this.send({type:1,id:e})}),s(this,"selectors",{isTop:(e,t)=>e.stack[e.stack.length-1]===t,inStack:(e,t)=>e.stack.includes(t)})}static new(){return new d({stack:[]})}reduce(e,t){return(0,a.Y)(t.type,u,e,t)}}const f=new i.G((()=>d.new()))},9672:(e,t,n)=>{"use strict";n.d(t,{bq:()=>a,sD:()=>i,wt:()=>l});var r=n(4836),o=n(3399);function i(e,t){if(!(0,o.Nf)())return!(!t||!e)&&e.contains(t);if(!e||!t)return!1;let n=t;for(;null!==n;){if(n===e)return!0;n="SLOT"===n.tagName&&n.assignedSlot?n.assignedSlot.parentNode:(0,r.Ng)(n)?n.host:n.parentNode}return!1}const a=(e=document)=>{var t;if(!(0,o.Nf)())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(null===(t=n.shadowRoot)||void 0===t?void 0:t.activeElement);)n=n.shadowRoot.activeElement;return n};function l(e){return(0,o.Nf)()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}},9674:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(1609);const o=r.forwardRef((function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",clipRule:"evenodd"}))}))},9683:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(6575),o=n(7590),i=n(2483),a=n(7592),l=n(3243),s=n(3114),c=n(790);const u=()=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(r.A,{}),(0,c.jsx)(o.A,{}),(0,c.jsx)(i.A,{}),(0,c.jsx)(a.A,{}),(0,c.jsx)(l.A,{}),(0,c.jsx)(s.A,{})]})},9685:(e,t,n)=>{"use strict";n.d(t,{l:()=>o});var r=n(7280);function o(e){let t=e.parentElement,n=null;for(;t&&!r.Er(t);)r.Jb(t)&&(n=t),t=t.parentElement;let o=""===(null==t?void 0:t.getAttribute("disabled"));return(!o||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(r.Jb(t))return!1;t=t.previousElementSibling}return!0}(n))&&o}},9781:(e,t,n)=>{"use strict";n.d(t,{Y:()=>i});var r=n(1609),o=n(6339);function i(e,t){let n=(0,r.useRef)({left:0,top:0});if((0,o.s)((()=>{if(!t)return;let e=t.getBoundingClientRect();e&&(n.current=e)}),[e,t]),null==t||!e||t===document.activeElement)return!1;let i=t.getBoundingClientRect();return i.top!==n.current.top||i.left!==n.current.left}},9796:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(5320),o=n(998),i=n(790),__=n(7723).__;const a={html:null,loading:!0,error:!1},l={text:{productPage:{error:{title:__("Oops! Something Went Wrong","wp-module-marketplace"),description:__("An error occurred while loading the content. Please try again later.","wp-module-marketplace")}}}},s=({productPageId:e,methods:t,constants:n})=>{const[s,c]=t.useState({...a});return n=Object.assign(l,n),t.useEffect((()=>{c({...a}),t.apiFetch({url:t.NewfoldRuntime.createApiUrl("/newfold-marketplace/v1/products/page",{id:e})}).then((e=>{e.hasOwnProperty("html")?c({html:e.html,loading:!1,error:!1}):c({html:null,loading:!1,error:!0})})).catch((()=>{c({html:null,loading:!1,error:!0})}))}),[e]),(0,i.jsxs)("div",{children:[s.loading&&(0,i.jsx)(o.A,{}),s.error&&(0,i.jsx)(r.A,{constants:n}),s.html&&(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:s.html}})]})}},9821:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(1609);function o(e,t){return(0,r.useMemo)((()=>{var n;if(e.type)return e.type;let r=null!=(n=e.as)?n:"button";return"string"==typeof r&&"button"===r.toLowerCase()||"BUTTON"===(null==t?void 0:t.tagName)&&!t.hasAttribute("type")?"button":void 0}),[e.type,e.as,t])}},9828:(e,t,n)=>{"use strict";n.d(t,{D:()=>u});var r=n(1609),o=n(5448),i=n(2498),a=n(5953),l=n(6206),s=n(9124),c=n(540);let u=(0,l.FX)((function(e,t){let n=`headlessui-control-${(0,r.useId)()}`,[u,d]=(0,c.b0)(),[f,p]=(0,s.rU)(),m=(0,o._)(),{disabled:h=m||!1,...g}=e,v=(0,r.useMemo)((()=>({disabled:h})),[h]),y={ref:t,disabled:h||void 0,"aria-disabled":h||void 0},w=(0,l.Ci)();return r.createElement(o.S,{value:h},r.createElement(d,{value:u},r.createElement(p,{value:f},r.createElement(a.J,{id:n},w({ourProps:y,theirProps:{...g,children:r.createElement(i.PC,null,"function"==typeof g.children?g.children(v):g.children)},slot:v,defaultTag:"div",name:"Field"})))))}))},9851:(e,t,n)=>{"use strict";n.d(t,{_:()=>i});var r=Object.defineProperty,o=(e,t,n)=>(((e,t,n)=>{t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let i=new class{constructor(){o(this,"current",this.detect()),o(this,"handoffState","pending"),o(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}}},9953:(e,t,n)=>{"use strict";n.d(t,{N:()=>o});var r=n(1609);const o="undefined"!=typeof document?r.useLayoutEffect:()=>{}},9979:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(6087),o=n(7723),i=n(4234),a=n(3928),l=n(8746),s=n(9152),c=n(948),u=n(9683),d=n(790);const f=()=>{const[e,t]=(0,r.useState)(!(!window?.NFDStoreInfo?.data?.address||!window?.NFDStoreInfo?.data?.city));(0,r.useEffect)((()=>{const e=document.getElementById("next-steps-portal"),t=document.getElementById("coming-soon-portal");return e&&window.NFDPortalRegistry.registerPortal("next-steps",e),t&&window.NFDPortalRegistry.registerPortal("coming-soon",t),()=>{window.NFDPortalRegistry.unregisterPortal("next-steps"),window.NFDPortalRegistry.unregisterPortal("coming-soon")}}),[]);const n=window.NewfoldRuntime.siteType||"website";return(0,r.useEffect)((()=>{const e=()=>{t(!(!window?.NFDStoreInfo?.data?.address||!window?.NFDStoreInfo?.data?.city))};return document.addEventListener("nfd-submit-store-info-form",e),()=>{document.removeEventListener("nfd-submit-store-info-form",e)}}),[]),(0,d.jsxs)(i.A,{className:"wppbh-home xl:nfd-max-w-screen-lg",children:[(0,d.jsxs)("div",{className:"nfd-home__title-section nfd-flex nfd-justify-between nfd-items-center",children:[(0,d.jsxs)("span",{className:"nfd-home__title-wrapper nfd-flex nfd-gap-4 nfd-items-center",children:[(0,d.jsx)(c.Wd,{}),(0,d.jsx)(a.Ay,{className:"nfd-mb-1 nfd-font-semibold",children:"store"===n?(0,o.__)("Congrats, your store is live!","wp-plugin-bluehost"):(0,o.__)("Congrats, your website is live!","wp-plugin-bluehost")})]}),"store"===n&&(0,d.jsx)(l.Ay,{as:"a",href:"#","data-store-info-trigger":!0,variant:"secondary",children:e?(0,o.__)("Store Details","wp-plugin-bluehost"):(0,o.__)("Add Store Details","wp-plugin-bluehost")})]}),"store"!==n&&(0,d.jsx)(s.A,{className:"nfd-max-w-full nfd-p-8 nfd-shadow-none nfd-rounded-xl nfd-border nfd-border-[#D5D5D5]",children:(0,d.jsx)("div",{id:"coming-soon-portal"})}),(0,d.jsx)(s.A,{className:"nfd-max-w-full nfd-p-8 nfd-shadow-none nfd-rounded-xl nfd-border nfd-border-[#D5D5D5]",children:(0,d.jsx)("div",{id:"next-steps-portal"})}),(0,d.jsxs)(s.A,{className:"nfd-max-w-full nfd-p-0 nfd-shadow-none nfd-bg-transparent nfd-border-0 nfd-mt-4",children:[(0,d.jsx)(a.Ay,{as:"h2",className:"nfd-text-xl nfd-font-semibold nfd-mb-6",children:(0,o.__)("Quick links","wp-plugin-bluehost")}),(0,d.jsx)("div",{className:"nfd-grid nfd-gap-4 nfd-grid-cols-1 min-[783px]:nfd-gap-6 min-[540px]:nfd-grid-cols-2 min-[960px]:nfd-grid-cols-3",children:(0,d.jsx)(u.A,{})})]})]})}},9982:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(3928),o=n(6427),i=n(1124),a=n(790),l=n(6942),__=n(7723).__;const s=({error:e,className:t,notice:n="Error!"})=>((0,i.d6)(n),(0,a.jsxs)(o.Card,{className:l("error-card",t),children:[(0,a.jsx)(o.CardHeader,{children:(0,a.jsxs)(r.Ay,{as:"h3",children:[(0,a.jsx)(o.Dashicon,{icon:"warning",style:{fontSize:"24px",width:"24px",height:"24px"}})," ",__("Oh No, An Error!","wp-plugin-bluehost")]})}),(0,a.jsxs)(o.CardBody,{children:[(0,a.jsx)("p",{children:__("You found an error, please refresh the page and try again!","wp-plugin-bluehost")}),(0,a.jsx)("p",{children:__("If the error persists, please contact support.","wp-plugin-bluehost")})]}),(0,a.jsx)(o.CardFooter,{children:(0,a.jsxs)("p",{children:[e&&e.message?e.message:"",e&&e.data?__("Error code:","wp-plugin-bluehost")+" "+e.data.status:""]})})]}))}},l={};function s(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={exports:{}};return a[e](n,n.exports,s),n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",r=e=>{e&&e.d<1&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(o,i,a)=>{var l;a&&((l=[]).d=-1);var s,c,u,d=new Set,f=o.exports,p=new Promise(((e,t)=>{u=t,c=e}));p[t]=f,p[e]=e=>(l&&e(l),d.forEach(e),p.catch((e=>{}))),o.exports=p,i((o=>{var i;s=(o=>o.map((o=>{if(null!==o&&"object"==typeof o){if(o[e])return o;if(o.then){var i=[];i.d=0,o.then((e=>{a[t]=e,r(i)}),(e=>{a[n]=e,r(i)}));var a={};return a[e]=e=>e(i),a}}var l={};return l[e]=e=>{},l[t]=o,l})))(o);var a=()=>s.map((e=>{if(e[n])throw e[n];return e[t]})),c=new Promise((t=>{(i=()=>t(a)).r=0;var n=e=>e!==l&&!d.has(e)&&(d.add(e),e&&!e.d&&(i.r++,e.push(i)));s.map((t=>t[e](n)))}));return i.r?c:a()}),(e=>(e?u(p[n]=e):c(f),r(l)))),l&&l.d<0&&(l.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},i=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var n=Object.create(null);s.r(n);var r={};o=o||[null,i({}),i([]),i(i)];for(var a=2&t&&e;"object"==typeof a&&!~o.indexOf(a);a=i(a))Object.getOwnPropertyNames(a).forEach((t=>r[t]=()=>e[t]));return r.default=()=>e,s.d(n,r),n},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s(2980)})();
Save
Cancel