PageSourceSearch

https://galatas-site.vercel.app/_next/static/chunks/8054-a303cca050c470d3.js

js galatas-site.vercel.app collected 2026-10-03 07:00:09 UTC 10,940 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8054],{4769:function(e,t,s){"use strict";s.d(t,{Z:function(){return l}});var i=s(1527),n=s(6568),a=s.n(n),r=s(2001);function l(e){return(0,i.jsx)("div",{className:(0,r.m6)("relative flex h-48 w-48 flex-col items-center justify-center text-center text-xs italic text-base-content/30",e.imageURL&&"boder",e.className),children:e.imageURL?(0,i.jsx)(a(),{src:e.imageURL,alt:"business logo",sizes:"55vw",fill:!0,className:(0,r.m6)(e.classNameImage,e.rounded&&"rounded-full")}):(0,i.jsx)("div",{children:"no business image"})})}},540:function(e,t,s){"use strict";s.d(t,{Z:function(){return a}});var i=s(1527),n=s(2001);function a(e){return(0,i.jsx)("div",{className:(0,n.m6)("m-auto max-w-2xl px-4 py-2 pb-32 md:px-5",e.className),children:e.children})}},4102:function(e,t,s){"use strict";var i=s(1527),n=s(959),a=s(2102),r=s(7276);t.Z=()=>{let{setShowLogin:e}=n.useContext(a.O);return(0,i.jsxs)(r.Z,{children:[(0,i.jsx)("h2",{children:"You need to login first"}),(0,i.jsx)("button",{className:"btn-primary btn btn-sm",onClick:()=>e(!0),children:"Login"})]})}},7276:function(e,t,s){"use strict";var i=s(1527),n=s(9407),a=s.n(n);s(959),t.Z=e=>(0,i.jsx)("div",{className:a()("z-10 flex w-full flex-col items-center justify-center gap-5",{"h-screen":!e.disableScreenCenter,"mt-5":e.disableScreenCenter}),children:e.children})},3401:function(e,t,s){"use strict";var i=s(1527),n=s(3987),a=s(9558),r=s(1588),l=s.n(r),c=s(6568),o=s.n(c),d=s(5084),m=s.n(d),x=s(31);s(959);let u=e=>{var t,s,r,c;let{data:d}=n.SX.serverConfig.getServerUrl.useQuery(void 0,{cacheTime:864e7,staleTime:864e7}),u=null!=d?d:"",h=(0,x.useRouter)(),f=h.asPath,p=null!==(t=e.shareDescription)&&void 0!==t?t:e.description,g=null!==(s=e.keywords)&&void 0!==s?s:"galatas",j=e.image||"/_next/image?url=/android-chrome-512x512.png&w=384&q=75",v="".concat(null!==(r=e.headerTitle)&&void 0!==r?r:e.title," ").concat(e.hideSiteName?"":"(Galatas 6)"),b=null!==(c=e.headerDescription)&&void 0!==c?c:e.description;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(l(),{children:[(0,i.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,i.jsx)("meta",{charSet:"utf-8"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"}),(0,i.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"}),(0,i.jsx)("title",{children:v}),(0,i.jsx)("meta",{name:"description",content:b}),(0,i.jsx)("meta",{name:"keywords",content:g}),e.author&&(0,i.jsx)("meta",{name:"author",content:e.author}),(0,i.jsx)("meta",{property:"og:title",content:v}),(0,i.jsx)("meta",{property:"og:site_name",content:v}),(0,i.jsx)("meta",{property:"og:url",content:u+f}),(0,i.jsx)("meta",{property:"og:description",content:p}),(0,i.jsx)("meta",{property:"og:type",content:"website"}),(0,i.jsx)("meta",{property:"og:image",itemProp:"image",content:j}),(0,i.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,i.jsx)("meta",{name:"twitter:url",content:u+f}),(0,i.jsx)("meta",{name:"twitter:title",content:v}),(0,i.jsx)("meta",{name:"twitter:description",content:p}),(0,i.jsx)("meta",{name:"twitter:image",content:j}),(0,i.jsx)("link",{rel:"canonical",href:"".concat(u).concat(f),hrefLang:"en"}),h.locales&&h.locales.filter(e=>"en"!==e).map(e=>(0,i.jsx)("link",{rel:"alternate",href:"".concat(u,"/").concat(e).concat(f),hrefLang:e},e))]}),e.showImage&&e.image&&(0,i.jsx)("div",{style:{margin:"-14px -8px 12px -8px"},children:(0,i.jsx)(o(),{id:a.gT.ID_HEROIMAGE,src:e.image,layout:"responsive",height:50,width:100,alt:"image for"+e.title})}),e.breadCrumbs&&(0,i.jsx)("div",{className:"breadcrumbs flex justify-center text-sm",children:(0,i.jsx)("ul",{children:e.breadCrumbs.map(e=>e.to?(0,i.jsx)("li",{children:(0,i.jsx)(m(),{href:e.to,className:"link text-primary",children:e.name})},e.name):(0,i.jsx)("li",{children:e.name},e.name))})}),!e.hideTitle&&(0,i.jsxs)("header",{children:[e.overline&&(0,i.jsx)("div",{className:"text-primary-focus px-3 text-center text-sm font-extralight",children:e.overline}),(0,i.jsx)("h1",{className:"text-center",children:e.title}),!e.hideSubTitle&&(0,i.jsx)("div",{className:"text mt-4 px-3 text-center italic",children:e.description}),!e.hideDivider&&(0,i.jsx)("div",{className:"divider mb-2 mt-1"})]})]})};u.defaultProps={ogImage:"/logo.png"},t.Z=u},8054:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return N}});var i=s(1527),n=s(4769),a=s(540),r=s(9661),l=s(1136),c=s(6989),o=s(4102),d=s(3401),m=s(2826),x=s(3987),u=s(9558),h=s(5726),f=s.n(h),p=s(281),g=s(5084),j=s.n(g),v=s(31),b=s(2001);function N(){var e;let t=(0,v.useRouter)(),s=(0,p.useSession)(),{newbusiness:h}=t.query,g=x.SX.business.getMyBusinesses.useQuery(void 0,{enabled:"authenticated"===s.status,refetchInterval:"string"==typeof h&&5e3,onSuccess:e=>{e.filter(e=>e.allInfos.find(e=>e.name===h)).length>0&&t.push(u.dl.MB_Home)}}),N=x.SX.business.getPortal.useMutation();return"loading"===s.status?(0,i.jsx)(m.Z,{}):"unauthenticated"===s.status?(0,i.jsx)(o.Z,{}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.Z,{title:"My Businesses",description:"",breadCrumbs:[{name:"Home",to:"/"},{name:"My Businesses"}]}),(0,i.jsxs)(a.Z,{children:[(0,i.jsxs)("div",{className:"mb-10 flex justify-center gap-5",children:[(0,i.jsxs)("div",{className:"flex cursor-pointer items-center gap-2 font-semibold text-primary",onClick:async()=>{let e=await N.mutateAsync();e&&t.push(e.url)},children:[(0,i.jsx)(r.DLc,{}),"Manage your billing"]}),(0,i.jsxs)(j(),{href:u.dl.MB_New,className:"flex items-center gap-2 font-semibold text-primary",children:[(0,i.jsx)(l.S$f,{className:"white h-5 w-5"})," Add a business"]})]}),(0,i.jsxs)("div",{className:"flex flex-col gap-5",children:["string"==typeof h&&(0,i.jsxs)("div",{className:"card flex min-h-40  w-full flex-col items-center justify-center p-2 text-center ",children:[(0,i.jsx)("div",{className:"loading loading-dots p-2"}),(0,i.jsx)("div",{className:"mb-3 text-lg font-bold",children:"setting up your new business listing"}),(0,i.jsx)("div",{className:"text-sm italic",children:"Please wait while we validate your payment"})]}),null===(e=g.data)||void 0===e?void 0:e.map(e=>{var s;let a="",o=e.allInfos.find(e=>e.status===u.tf.INITIAL_PLACEHOLDER)||e.allInfos.find(e=>e.status===u.tf.PUBLISHED)||e.allInfos.find(e=>e.status===u.tf.PENDING_REVIEW),d=null===(s=e.allInfos.find(e=>e.status===u.tf.PENDING_REVIEW))||void 0===s?void 0:s.id;return(d=d!==(null==o?void 0:o.id)?d:void 0,e.subscription.status===u.yh.ACTIVE&&null===e.subscription.cancelOn&&(a=f()(e.subscription.endDate).format("LL")+" (auto renew)"),e.subscription.status===u.yh.ACTIVE&&null!==e.subscription.cancelOn&&e.subscription.endDate>new Date&&(a="this listing will be active until "+f()(e.subscription.endDate).format("LL")),(e.subscription.status!==u.yh.ACTIVE||e.subscription.endDate<new Date)&&(a="Your listing is no longer active"),o)?o.status===u.tf.INITIAL_PLACEHOLDER?(0,i.jsxs)("div",{className:"card flex flex-col items-center gap-4  bg-base-300 p-2 py-8 ",children:[(0,i.jsx)("div",{className:"text-5xl",children:"\uD83C\uDF89"}),(0,i.jsx)("div",{className:"max-w-sm px-5 text-center text-2xl font-extralight",children:"Your business listing is ready to edit and submit for review"}),(0,i.jsx)(j(),{href:u.dl.MB_EditBusiness+"?id="+e.id,className:"btn btn-primary uppercase",children:"Edit my business"})]},e.id):(0,i.jsx)("div",{children:(0,i.jsxs)("div",{className:"card flex flex-col items-center  gap-4 bg-base-300 p-2 ",children:[(0,i.jsx)(n.Z,{imageURL:o.imageURL,rounded:!0,className:"m-auto h-24 w-24 md:m-0"}),(0,i.jsxs)("div",{className:"flex w-full flex-1 flex-col justify-around",children:[(0,i.jsx)("div",{className:"text-center text-xl font-bold  ",children:o.name}),e.subscription.status===u.yh.INACTIVE&&(0,i.jsx)("div",{className:"alert-icon alert alert-info m-auto mb-4 mt-6 flex max-w-sm flex-col justify-center gap-2 text-center text-lg",children:(0,i.jsx)("div",{children:"The subscription for this business listing was cancelled"})}),e.subscription.status===u.yh.ACTIVE&&(0,i.jsxs)("div",{className:"m-auto my-3 grid grid-cols-2 gap-3 text-center text-sm md:text-left",children:[(0,i.jsx)(y,{header:"next billing",content:a,className:"col-span-2"}),(0,i.jsx)(y,{header:"subscription type",content:e.subscription.productName}),(0,i.jsx)(y,{header:"page status",content:o.status}),(0,i.jsx)(y,{header:"listed on",content:o.regions.length>0?o.regions.map(e=>e.region.slug.toUpperCase()).join(", "):"none"}),(0,i.jsx)(y,{header:"home parish",content:o.parish?o.parish.name:"none"})]}),(0,i.jsxs)("div",{className:"m-auto mb-4 mt-4 flex gap-3 text-sm text-base-content/65",children:[(0,i.jsxs)("div",{className:"flex items-center gap-1",children:[(0,i.jsx)(c.dSq,{})," ",(0,i.jsx)("div",{children:e.pageViews})]}),(0,i.jsxs)("div",{className:"flex items-center gap-1",children:[(0,i.jsx)(r.q3R,{})," ",(0,i.jsx)("div",{children:e.phoneReveals})]}),(0,i.jsxs)("div",{className:"flex items-center gap-1",children:[(0,i.jsx)(l.rs1,{})," ",(0,i.jsx)("div",{children:e.webSiteClicks})]}),(0,i.jsxs)("div",{className:"flex items-center gap-1",children:[(0,i.jsx)(r.g5G,{})," ",(0,i.jsx)("div",{children:e.emailReveals})]})]}),o.status===u.tf.PENDING_REVIEW&&(0,i.jsx)("div",{className:"alert-icon alert alert-info flex flex-col justify-center gap-2 text-center text-sm",children:(0,i.jsx)("div",{children:"Our team is currently reviewing your business listing changes, this process won't take long."})}),d&&(0,i.jsx)("div",{className:"alert-icon alert alert-info flex flex-col justify-center gap-2 text-center text-sm",children:(0,i.jsxs)("div",{className:"",children:["Your recent business listing changes are currently under review, this process won't take long. You can see what your new listing will look like"," ",(0,i.jsx)(j(),{className:"link font-bold",href:u.dl.MB_Preview+"/"+d,children:"here"}),"."]})}),(0,i.jsxs)("div",{className:"mt-2 flex justify-end gap-2 uppercase",children:[e.subscription.status===u.yh.ACTIVE&&(0,i.jsx)(j(),{href:u.dl.MB_EditBusiness+"?id="+e.id,className:"btn btn-ghost text-primary",children:"Edit"}),(0,i.jsx)("button",{onClick:e=>{if(o.status!==u.tf.PUBLISHED){e.preventDefault(),e.stopPropagation();return}t.push("".concat(o.regions[0].region.slug).concat(u.dl.RG_BusinessPage,"/").concat(o.regions[0].slug))},className:(0,b.m6)("btn btn-ghost uppercase",o.status!==u.tf.PUBLISHED&&"text-base-content/50 line-through"),children:"View Listing"})]})]})]})},e.id):(0,i.jsx)("div",{className:"alert alert-error flex flex-col items-center justify-center text-center",children:"there was an error"})})]})]})]})}function y(e){return(0,i.jsxs)("div",{className:(0,b.m6)("text-center",e.className),children:[(0,i.jsx)("div",{className:"text-xs font-semibold uppercase text-base-content/50",children:e.header}),(0,i.jsx)("div",{className:"italic",children:e.content})]})}},1588:function(e,t,s){e.exports=s(8232)}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.