1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[918],{64962:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_apps/[hostname]/[...path]",function(){return i(5160)}])},40609:function(e,t,i){"use strict";i.d(t,{b:function(){return m}});var n=i(97458);i(52983);var r=i(46348),s=i(86848),o=i(47805),l=i(26969),d=i.n(l),a=i(5397),u=i(12722),c=i(60577),h=i(10613),p=i(5992),v=i(41050),x=i(51438),f=i(80870),g=i(86677),j=i(701);function m(e){var t,i,l,m,y,b,P,S;let{site:w,hostname:_}=e,E=(0,r.useRouter)(),A=(0,a.p)(),{control:z,handleSubmit:C,formState:k}=(0,s.cI)(),{isDirty:N}=k,T=null==w?void 0:null===(l=w.contents)||void 0===l?void 0:null===(i=l.header)||void 0===i?void 0:null===(t=i.data)||void 0===t?void 0:t.logoUrl,D=(0,f._mg)({theme:null==w?void 0:null===(m=w.settings)||void 0===m?void 0:m.theme})({}),{mutate:O,isLoading:I}=(0,o.useMutation)(async e=>(0,j.Z)({method:"POST",url:"/api/pages/password",data:e,headers:{"X-Pory-Host":_}}),{onSuccess:()=>{var e;let t=null!==(e=null==w?void 0:w.integrations)&&void 0!==e?e:[],i=d()(t,{type:"analytics"})||{};if((null==i?void 0:i.name)==="ga"){let e=E.asPath;(0,g.k1)({label:"Protected page ".concat("/"===e?"":e)})}E.reload()},onError:e=>{var t,i,n;(0,f.CFj)({toast:A,isSuccess:!1,message:null!==(n=null==e?void 0:null===(i=e.response)||void 0===i?void 0:null===(t=i.data)||void 0===t?void 0:t.message)&&void 0!==n?n:"An unknown error occurred. Please try again."})}});return(0,n.jsx)(u.x,{minH:"100vh",display:"flex",justifyContent:"center",w:"full",children:(0,n.jsx)(c.W,{maxW:"lg",mt:"200px",children:(0,n.jsx)("form",{onSubmit:C(e=>O(e)),children:(0,n.jsxs)(h.K,{spacing:"6",children:[T&&(0,n.jsx)(p.E,{width:"100px",src:T,alt:"logo"}),(0,n.jsx)(v.X,{fontSize:"3xl",fontFamily:null!==(S=null==w?void 0:null===(P=w.settings)||void 0===P?void 0:null===(b=P.theme)||void 0===b?void 0:null===(y=b.heading)||void 0===y?void 0:y.fontFamily)&&void 0!==S?S:"Inter",children:"Protected Content"}),(0,n.jsx)(f.n2V,{isDark:!1,label:"Password",children:(0,n.jsx)(s.Qr,{name:"password",control:z,render:e=>{let{field:t}=e;return(0,n.jsx)(f.G51,{inputProps:{variant:"default"},field:t})}})}),(0,n.jsx)(u.x,{children:(0,n.jsx)(x.z,{height:"40px",width:"100%",type:"submit",size:"md",isLoading:I,isDisabled:I||!N,...D,children:"Submit"})})]})})})})}},16167:function(e,t,i){"use strict";i.d(t,{b:function(){return h}});var n=i(97458);i(52983);var r=i(60577),s=i(41571),o=i(10613),l=i(41050),d=i(97998),a=i(79379),u=i.n(a),c=i(80870);let h=()=>(0,n.jsx)(r.W,{maxW:"container.sm",children:(0,n.jsxs)(s.M,{h:"100vh",display:"flex",flexDir:"column",children:[(0,n.jsx)(u(),{src:"/empty-states/pory-happy-cat.svg",height:160,width:160,alt:""}),(0,n.jsxs)(o.K,{mt:6,spacing:2,align:"center",children:[(0,n.jsx)(l.X,{fontSize:"3xl",textAlign:"center",children:"This site has been suspended"}),(0,n.jsx)(d.x,{fontSize:"lg",textAlign:"center",children:"It is no longer available because the account behind it was suspended for breaking Pory's terms of use. If you believe this is a mistake, please get in touch."}),(0,n.jsx)(c.VzE,{href:"https://airtable.pory.io/contact-us?ref=suspended",colorScheme:"primary",size:"lg",mt:"4",children:"Contact Support"})]})]})})},81083:function(e,t,i){"use strict";i.d(t,{A:function(){return p}});var n=i(97458);i(52983);var r=i(60577),s=i(41571),o=i(10613),l=i(41050),d=i(97998),a=i(6142),u=i(79379),c=i.n(u),h=i(80870);let p=e=>{let{title:t="Subscription Required",description:i="You're just one step away from accessing all the powerful features of Pory.",buttonText:u="Upgrade Now",buttonProps:p}=e;return(0,n.jsx)(r.W,{maxW:"container.sm",children:(0,n.jsxs)(s.M,{h:"100vh",display:"flex",flexDir:"column",children:[(0,n.jsx)(c(),{src:"/empty-states/pory-happy-cat.svg",height:160,width:160,alt:"Not Found"}),(0,n.jsxs)(o.K,{mt:6,spacing:2,align:"center",children:[(0,n.jsx)(l.X,{fontSize:"3xl",textAlign:"center",children:t}),(0,n.jsx)(d.x,{fontSize:"lg",textAlign:"center",children:i}),(0,n.jsxs)(a.k,{gap:"3",mt:"4",children:[(0,n.jsx)(h.VzE,{href:"https://airtable.pory.io/contact-us?ref=pory-404",size:"lg",...p,children:"Contact Support"}),(0,n.jsx)(h.VzE,{href:"https://airtable.pory.io/pricing?ref=pory-404",colorScheme:"primary",size:"lg",...p,children:u})]})]})]})})}},98677:function(e,t,i){"use strict";var n,r;i.d(t,{o:function(){return n}}),(r=n||(n={})).SitePassword="password",r.UserAuthentication="user_authentication",r.AccessPermission="insufficient_permissions"},5160:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSP:function(){return j},default:function(){return m}});
1var n=i(97458),r=i(52983),s=i(41571),o=i(40646),l=i(46348),d=i(29787),a=i.n(d),u=i(95692),c=i(40609),h=i(84757),p=i(16731),v=i(98677),x=i(80870),f=i(81083),g=i(16167),j=!0;function m(e){var t,i,d,j,m,y;let{page:b,error:P,recordContent:S,hostname:w,site:_,appConfig:E,isRecordPage:A,required:z,redirect:C,browserHistory:k,recordId:N,showLandingPage:T=!1}=e,D=(0,l.useRouter)(),O=(null==E?void 0:null===(t=E.identity)||void 0===t?void 0:t.enabled)||(null==b?void 0:b.passwordProtected),{session:I,isLoadingSession:R}=(0,p.k)({queryConfig:{enabled:O}});if((0,r.useEffect)(()=>{var e;!R&&a()(I)&&(null==E?void 0:null===(e=E.identity)||void 0===e?void 0:e.enabled)&&(null==b?void 0:b.isProtected)&&D.push("/account/login")},[R,E,I,b]),(0,r.useEffect)(()=>{z===v.o.UserAuthentication&&C&&D.push(C)},[z]),T)return(0,n.jsx)(h.fy,{});if(z===v.o.UserAuthentication)return(0,n.jsx)(s.M,{height:"100vh",children:(0,n.jsx)(o.$,{speed:"0.65s",thickness:"3px",emptyColor:"gray.200",color:"gray.800",size:"xl"})});if(A)return(null==S?void 0:S.content)?(0,n.jsx)(h.je,{recordId:N,recordContent:S,browserHistory:k}):(0,n.jsx)(u.T,{});if(null==P?void 0:P.type){if("APP.SUSPENDED"===P.type)return(0,n.jsx)(g.b,{});if("APP.SUBSCRIPTION_REQUIRED"===P.type)return(0,n.jsx)(f.A,{});if("APP.EMBED_ONLY"===P.type)return(0,n.jsx)(x.X6q,{children:"SET TO EMBED ONLY"})}if((!_||!b)&&!z)return(0,n.jsx)(u.T,{});if(z===v.o.SitePassword)return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h._b,{preventCustomCode:!0,overrideHasActiveSubscription:!0,site:_,page:b}),(0,n.jsx)(c.b,{hostname:w,site:_})]});if(z===v.o.AccessPermission)return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h._b,{preventCustomCode:!0,overrideTitle:"Forbidden Page",site:_,page:null}),(0,n.jsx)(h.tK,{})]});let U=null!==(m=null==E?void 0:null===(i=E.identity)||void 0===i?void 0:i.registrationRestrictions)&&void 0!==m?m:[];return(0,n.jsxs)(h.$l,{site:_,redirectOnLogout:null==E?void 0:null===(d=E.identity)||void 0===d?void 0:d.redirectOnLogout,identityEnabled:null!==(y=null==E?void 0:null===(j=E.identity)||void 0===j?void 0:j.enabled)&&void 0!==y&&y,currentPath:null==b?void 0:b.path,registrationRestrictions:null!=U?U:[],metaTags:(0,n.jsx)(h._b,{page:b,site:_}),children:[(0,n.jsx)(h.nz,{site:_,page:b,identityEnabled:O}),!(null==_?void 0:_.hasActiveSubscription)&&(0,n.jsx)(h.kK,{})]})}}},function(e){e.O(0,[923,125,757,888,774,179],function(){return e(e.s=64962)}),_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.