1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[884],{41729:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_apps/[hostname]",function(){return i(37321)}])},40609:function(e,t,i){"use strict";i.d(t,{b:function(){return j}});var n=i(97458);i(52983);var s=i(46348),r=i(86848),o=i(47805),l=i(26969),a=i.n(l),d=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),m=i(701);function j(e){var t,i,l,j,y,b,P,S;let{site:_,hostname:w}=e,E=(0,s.useRouter)(),A=(0,d.p)(),{control:z,handleSubmit:C,formState:k}=(0,r.cI)(),{isDirty:N}=k,D=null==_?void 0:null===(l=_.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,O=(0,f._mg)({theme:null==_?void 0:null===(j=_.settings)||void 0===j?void 0:j.theme})({}),{mutate:T,isLoading:R}=(0,o.useMutation)(async e=>(0,m.Z)({method:"POST",url:"/api/pages/password",data:e,headers:{"X-Pory-Host":w}}),{onSuccess:()=>{var e;let t=null!==(e=null==_?void 0:_.integrations)&&void 0!==e?e:[],i=a()(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=>T(e)),children:(0,n.jsxs)(h.K,{spacing:"6",children:[D&&(0,n.jsx)(p.E,{width:"100px",src:D,alt:"logo"}),(0,n.jsx)(v.X,{fontSize:"3xl",fontFamily:null!==(S=null==_?void 0:null===(P=_.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)(r.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:R,isDisabled:R||!N,...O,children:"Submit"})})]})})})})}},16167:function(e,t,i){"use strict";i.d(t,{b:function(){return h}});var n=i(97458);i(52983);var s=i(60577),r=i(41571),o=i(10613),l=i(41050),a=i(97998),d=i(79379),u=i.n(d),c=i(80870);let h=()=>(0,n.jsx)(s.W,{maxW:"container.sm",children:(0,n.jsxs)(r.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)(a.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 s=i(60577),r=i(41571),o=i(10613),l=i(41050),a=i(97998),d=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)(s.W,{maxW:"container.sm",children:(0,n.jsxs)(r.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)(a.x,{fontSize:"lg",textAlign:"center",children:i}),(0,n.jsxs)(d.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,s;i.d(t,{o:function(){return n}}),(s=n||(n={})).SitePassword="password",s.UserAuthentication="user_authentication",s.AccessPermission="insufficient_permissions"},37321:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSP:function(){return m},default:function(){return j}});
1var n=i(97458),s=i(52983),r=i(41571),o=i(40646),l=i(46348),a=i(29787),d=i.n(a),u=i(95692),c=i(84757),h=i(16731),p=i(98677),v=i(40609),x=i(80870),f=i(81083),g=i(16167),m=!0;function j(e){var t,i,a,m;let{showLandingPage:j,error:y,page:b,redirect:P,hostname:S,required:_,site:w,appConfig:E}=e,A=(0,l.useRouter)(),z=(null==E?void 0:null===(t=E.identity)||void 0===t?void 0:t.enabled)||(null==b?void 0:b.passwordProtected),{session:C,isLoadingSession:k}=(0,h.k)({queryConfig:{enabled:z}});if((0,s.useEffect)(()=>{var e;!k&&d()(C)&&(null==E?void 0:null===(e=E.identity)||void 0===e?void 0:e.enabled)&&b.isProtected&&A.push("/account/login")},[k]),(0,s.useEffect)(()=>{_===p.o.UserAuthentication&&A.push(P)},[_]),j)return(0,n.jsx)(c.fy,{});if(_===p.o.UserAuthentication)return(0,n.jsx)(r.M,{height:"100vh",children:(0,n.jsx)(o.$,{speed:"0.65s",thickness:"3px",emptyColor:"gray.200",color:"gray.800",size:"xl"})});if(_===p.o.SitePassword)return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c._b,{preventCustomCode:!0,page:b,site:w,overrideHasActiveSubscription:!0}),(0,n.jsx)(v.b,{hostname:S,site:w})]});if(_===p.o.AccessPermission)return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c._b,{preventCustomCode:!0,page:b,site:w,overrideHasActiveSubscription:!1}),(0,n.jsx)(c.tK,{})]});if(null==y?void 0:y.type){if("APP.SUSPENDED"===y.type)return(0,n.jsx)(g.b,{});if("APP.SUBSCRIPTION_REQUIRED"===y.type)return(0,n.jsx)(f.A,{});if("APP.EMBED_ONLY"===y.type)return(0,n.jsx)(x.X6q,{children:"SET TO EMBED ONLY"})}return w&&b?(0,n.jsxs)(c.$l,{site:w,redirectOnLogout:null==E?void 0:null===(i=E.identity)||void 0===i?void 0:i.redirectOnLogin,identityEnabled:null===(a=E.identity)||void 0===a?void 0:a.enabled,registrationRestrictions:null==E?void 0:null===(m=E.identity)||void 0===m?void 0:m.registrationRestrictions,metaTags:(0,n.jsx)(c._b,{page:b,site:w}),children:[(0,n.jsx)(c.nz,{site:w,page:b,identityEnabled:z}),!(null==w?void 0:w.hasActiveSubscription)&&(0,n.jsx)(c.kK,{})]}):(0,n.jsx)(u.T,{})}}},function(e){e.O(0,[923,125,757,888,774,179],function(){return e(e.s=41729)}),_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.