import{S as y,i as h,s as B,a as l,w as c,a6 as P,h as u,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{F as q,Q as w}from"../../chunks/FieldDetails-21194f2f.js";import{E as N,f as x}from"../../chunks/pages-f56e3710.js";import{P as C}from"../../chunks/PreviousNextPage-f47aff1c.js";import"../../chunks/paths-b0dcd44a.js";import"../../chunks/ChevronDown-d5276f7c.js";import"../../chunks/ArgsList-2d417662.js";function D(i){let s,a,t,o,n,f;return document.title=s="Subscription - "+i[0].name,t=new q({props:{field:i[0],type:w.SUBSCRIPTION}}),n=new C({props:{page:i[1]}}),{c(){a=l(),c(t.$$.fragment),o=l(),c(n.$$.fragment)},l(e){P('[data-svelte="svelte-k3svq8"]',document.head).forEach(u),a=d(e),_(t.$$.fragment,e),o=d(e),_(n.$$.fragment,e)},m(e,r){g(e,a,r),$(t,e,r),g(e,o,r),$(n,e,r),f=!0},p(e,[r]){(!f||r&1)&&s!==(s="Subscription - "+e[0].name)&&(document.title=s);const m={};r&1&&(m.field=e[0]),t.$set(m);const p={};r&2&&(p.page=e[1]),n.$set(p)},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&&u(a),v(t,e),e&&u(o),v(n,e)}}}function O({params:i,url:s}){const a=N(i.subscription),t=x(s.pathname);return!a||!t?{status:404,error:`Subscription ${i.subscription} not found.`}:{props:{field:a,page:t}}}function E(i,s,a){let{field:t}=s,{page:o}=s;return i.$$set=n=>{"field"in n&&a(0,t=n.field),"page"in n&&a(1,o=n.page)},[t,o]}class R extends y{constructor(s){super(),h(this,s,E,D,B,{field:0,page:1})}}export{R as default,O as load};
