import{S as y,i as h,s as B,a as l,w as c,a6 as P,h as m,c as d,x as _,b as g,y as $,f as b,t as S,B as v}from"../../chunks/index-de1c04e4.js";import{Q as q}from"../../chunks/Switch-356716ae.js";import{F as w}from"../../chunks/FieldDetails-7626f159.js";import{E as N,f as x}from"../../chunks/pages-d34b2ec3.js";import{P as C}from"../../chunks/PreviousNextPage-213c9a22.js";import"../../chunks/paths-b0dcd44a.js";import"../../chunks/ChevronDown-ebec7262.js";import"../../chunks/prism-json-f6ca42ec.js";import"../../chunks/ArgsList-13f0c384.js";function D(a){let i,s,t,o,n,f;return document.title=i="Subscription - "+a[0].name,t=new w({props:{field:a[0],type:q.SUBSCRIPTION}}),n=new C({props:{page:a[1]}}),{c(){s=l(),c(t.$$.fragment),o=l(),c(n.$$.fragment)},l(e){P('[data-svelte="svelte-k3svq8"]',document.head).forEach(m),s=d(e),_(t.$$.fragment,e),o=d(e),_(n.$$.fragment,e)},m(e,r){g(e,s,r),$(t,e,r),g(e,o,r),$(n,e,r),f=!0},p(e,[r]){(!f||r&1)&&i!==(i="Subscription - "+e[0].name)&&(document.title=i);const p={};r&1&&(p.field=e[0]),t.$set(p);const u={};r&2&&(u.page=e[1]),n.$set(u)},i(e){f||(b(t.$$.fragment,e),b(n.$$.fragment,e),f=!0)},o(e){S(t.$$.fragment,e),S(n.$$.fragment,e),f=!1},d(e){e&&m(s),v(t,e),e&&m(o),v(n,e)}}}function j({params:a,url:i}){const s=N(a.subscription),t=x(i.pathname);return!s||!t?{status:404,error:`Subscription ${a.subscription} not found.`}:{props:{field:s,page:t}}}function E(a,i,s){let{field:t}=i,{page:o}=i;return a.$$set=n=>{"field"in n&&s(0,t=n.field),"page"in n&&s(1,o=n.page)},[t,o]}class z extends y{constructor(i){super(),h(this,i,E,D,B,{field:0,page:1})}}export{z as default,j as load};
