import{a as w,b,c as L}from"/build/_shared/chunk-BQWU2MNQ.js";import{e as v}from"/build/_shared/chunk-UJ53HPD4.js";import{a as B,d as g,g as u,p as N,v as y}from"/build/_shared/chunk-OQBK2LQE.js";import{c}from"/build/_shared/chunk-Q3IECNXJ.js";var n=c(B());var e=c(y()),P=["/profile","/admin","/plans"];function R(o){var p,h;let k=!!o.modal,{_:s,locale:x}=(0,n.useContext)(w),d=((p=N()[0])==null?void 0:p.data).origin||"https://songslikex.com/",r=g(),m=new URL(r.pathname,d);m.search=r.search;let f=new URL("/select-language",d);f.searchParams.set("redirect",m.toString());let i=!1,C=!1;(0,n.useEffect)(()=>{i&&setTimeout(()=>{var t;let a=window.fusetag||(window.fusetag={que:[]});a.pageInit?(t=a.pageInit)==null||t.call(a):a.que.push(function(){var l;(l=a.pageInit)==null||l.call(a),console.log("fusetag loaded")})},500)}),(0,n.useEffect)(()=>{var t;if(!i||!C)return;if(P.some(l=>r.pathname.includes(l))){(t=document.getElementById("nitro-002"))==null||t.remove();return}let a=window.nitroAds;a&&a.createAd("nitro-002",{demo:window.location.hostname.indexOf("songslikex")==-1,refreshLimit:20,refreshTime:30,format:"anchor",anchor:"bottom",anchorPersistClose:!1,mediaQuery:"(min-width: 0px)"})},[i]);let A=u().state!=="idle";return(0,e.jsxs)(e.Fragment,{children:[o.modal?(0,e.jsx)("aside",{className:"modal",children:o.modal}):null,(0,e.jsx)("div",{id:"snackbar"}),(0,e.jsxs)("main",{className:((h=o.className)!=null?h:"")+(k?" has-modal":"")+(i?" show-ads":"")+(A?" loading":""),children:[o.topBar?(0,e.jsxs)("div",{className:"topBar",children:[o.topBar," "]}):null,(0,e.jsx)(L,{href:"/",className:"logo",title:"Logo",children:(0,e.jsxs)("svg",{height:"95",width:"135",children:[(0,e.jsx)("defs",{children:(0,e.jsxs)("linearGradient",{id:"logo-gradient",gradientUnits:"userSpaceOnUse",x1:"28.1261",x2:"98.0448",y1:"45.0783",y2:"-.768499",children:[(0,e.jsx)("stop",{offset:"0",stopColor:"#af2896"}),(0,e.jsx)("stop",{offset:"1",stopColor:"#509af4"})]})}),(0,e.jsx)("use",{href:"/assets.svg#logo-symbol",fill:"url(#logo-gradient)",opacity:"0.7"}),(0,e.jsx)("use",{href:"/assets.svg#logo-text",fill:"#fff"})]})}),o.enableSpacerTop?(0,e.jsx)("div",{className:"spacer"}):null,o.children,o.disableSpacerBottom?null:(0,e.jsx)("div",{className:"spacer m-b-l"}),(0,e.jsxs)("footer",{children:[(0,e.jsx)("span",{children:s`Crafted with ${"\u{1F49A}"}`}),(0,e.jsx)("span",{className:"dot",children:"\u2022"}),(0,e.jsx)("a",{href:"mailto:hello@songslikex.com",children:s`Any feedback? ${"\u{1F917}"}`}),(0,e.jsx)("span",{className:"dot",children:"\u2022"}),(0,e.jsxs)(b,{to:f,children:[v[x]," \u{1F30E}"]}),(0,e.jsx)("span",{className:"dot",children:"\u2022"}),(0,e.jsx)("a",{href:"/privacy-policy",children:s`Privacy Policy ${"\u{1F512}"}`}),(0,e.jsx)("span",{className:"dot",children:"\u2022"}),(0,e.jsx)("a",{href:"/terms-of-use-for-website",children:s`Terms and Conditions ${"\u{1F4DC}"}`}),(0,e.jsx)("span",{className:"dot",children:"\u2022"}),(0,e.jsx)("a",{href:"/cookie-policy",children:s`Cookie Policy ${"\u{1F36A}"}`}),(0,e.jsx)("span",{className:"dot",children:"\u2022"}),(0,e.jsx)("div",{className:"termly-display-preferences",children:s`Cookie Preferences ${"\u2699\uFE0F"}`})]})]})]})}export{R as a};
