1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2336],{94262:(e,n,o)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/404",function(){return o(80346)}])},1186:(e,n,o)=>{"use strict";o.d(n,{A:()=>t});var l=o(74848),i=o(82097);function t(e){let{header:n,footer:o,children:t,className:a,fixed:s=!1}=e,{headerRef:d,footerRef:r,footerHeight:c}=(0,i.A)();return(0,l.jsxs)("div",{className:"".concat(s?"fixed":"fixed md:static"," w-full h-full z-40 overflow-auto flex flex-col left-0 top-0"),children:[(0,l.jsx)("div",{className:"w-full flex flex-col",ref:d,children:n}),(0,l.jsx)("div",{className:"overflow-y-scroll w-full flex-grow md:mb-0 overflow-x-hidden ".concat(a||""),style:{marginBottom:c},children:t}),(0,l.jsx)("div",{className:"w-full fixed bottom-0",ref:r,children:o})]})}},80346:(e,n,o)=>{"use strict";o.r(n),o.d(n,{default:()=>h});var l=o(74848),i=o(96540),t=o(29247),a=o(97286),s=o(82341),d=o(3991),r=o(18120),c=o(17775),u=o(86715),f=o(14240);function m(){var e,n,o;let m=(0,u.useRouter)(),[h,w]=(0,i.useState)(""),[v,x]=(0,i.useState)(""),[p,g]=(0,i.useState)(!1),_=(0,i.useRef)(null),{data:j,isLoading:b}=(0,a.I)({queryKey:["fetch_from_subdomain",{id:h}],queryFn:()=>(0,f.A)("api/organizations/".concat(h,"/fetch_from_subdomain"),{method:"GET"}),enabled:!!h}),{data:N,isLoading:y}=(0,a.I)({queryKey:["get_website_details",{id:null===(e=product)||void 0===e?void 0:e.organization_id}],queryFn:()=>{var e;return(0,f.A)("api/organization_fields/".concat(null===(e=product)||void 0===e?void 0:e.organization_id,"/website_details"),{method:"GET"})},staleTime:0,enabled:!!(null===(n=product)||void 0===n?void 0:n.organization_id)}),E=()=>{g(window.innerWidth<=c.wI)};return(0,i.useEffect)(()=>{_.current&&new ResizeObserver(()=>{E()}).observe(_.current)},[]),(0,i.useEffect)(()=>{g(window.innerWidth<=c.wI)},[]),(0,i.useEffect)(()=>{var e,n,o;if(null==N?void 0:null===(e=N.organization_fields)||void 0===e?void 0:e.length){let e=null==N?void 0:null===(n=N.organization_fields)||void 0===n?void 0:n.find(e=>"Brand color"===e.name);x((null==e?void 0:null===(o=e.value)||void 0===o?void 0:o.content)||"")}},[null==N?void 0:null===(o=N.organization_fields)||void 0===o?void 0:o.length]),(0,i.useEffect)(()=>{window&&w(window.location.hostname)},[]),(0,l.jsx)(r.A,{children:(null==j?void 0:j.organization_id)||b?b?(0,l.jsx)("div",{className:"h-screen p-6 flex justify-center mt-28",children:(0,l.jsx)(d.A,{})}):(0,l.jsx)(s.A,{data:j,color:v,website:N,children:y?(0,l.jsx)("div",{className:"h-screen p-6 flex justify-center",children:(0,l.jsx)(d.A,{})}):(0,l.jsx)("div",{className:"flex flex-col max-w-modal m-auto",style:{minHeight:p?"396px":"542px"},ref:_,children:(0,l.jsxs)("div",{className:"p-5 w-full",children:[(0,l.jsx)("h1",{className:"font-normal w-full text-center website",children:"Page can't be found"}),(0,l.jsxs)("p",{className:"website mt-10",children:["The page you're looking for couldn't be found."," ",(0,l.jsx)("span",{className:"underline font-bold cursor-pointer",onClick:()=>m.push("/"),style:{color:v,textUnderlineOffset:"3px"},children:"Click here"})," ","to go to our homepage, or reach out to us on Instagram"," ",(null==j?void 0:j.instagram_handle)&&(0,l.jsx)("a",{target:"_blank",href:"https://www.instagram.com/".concat(null==j?void 0:j.instagram_handle,"/"),rel:"noreferrer",children:(0,l.jsxs)("span",{className:"underline font-bold",style:{color:v,textUnderlineOffset:"3px"},children:["@",null==j?void 0:j.instagram_handle]})})]})]})})}):(0,l.jsx)(t.A,{})})}function h(){let[e,n]=(0,i.useState)(null);return(0,i.useEffect)(()=>{if(window){var e;"localhost"===window.location.hostname||"qa.getpaloma.com"===window.location.hostname||"qa.getpalomadev.com"===window.location.hostname||"app.getpaloma.com"===window.location.hostname||(null===(e=window.location.hostname)||void 0===e?void 0:e.includes(".vercel.app"))?n(!1):n(!0)}},[]),null===e?null:e?(0,l.jsx)(m,{}):(0,l.jsx)(t.A,{})}}},e=>{var n=n=>e(e.s=n);e.O(0,[5736,636,6593,8792],()=>n(94262)),_N_E=e.O()}]);
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.