import{S as M,i as B,s as P,a as p,w as c,a6 as w,h as m,c as d,x as _,b as g,y as $,f as y,t as v,B as h}from"../../chunks/index-de1c04e4.js";import{F as N,Q as T}from"../../chunks/FieldDetails-0d1eb005.js";import{i as q,f as x}from"../../chunks/pages-332adf61.js";import{P as D}from"../../chunks/PreviousNextPage-50deeb7d.js";import"../../chunks/paths-b0dcd44a.js";import"../../chunks/ChevronDown-d5276f7c.js";import"../../chunks/ArgsList-bd10805a.js";function F(s){let n,i,t,r,a,f;return document.title=n="Mutation - "+s[0].name,t=new N({props:{field:s[0],type:T.MUTATION}}),a=new D({props:{page:s[1]}}),{c(){i=p(),c(t.$$.fragment),r=p(),c(a.$$.fragment)},l(e){w('[data-svelte="svelte-1m825ru"]',document.head).forEach(m),i=d(e),_(t.$$.fragment,e),r=d(e),_(a.$$.fragment,e)},m(e,o){g(e,i,o),$(t,e,o),g(e,r,o),$(a,e,o),f=!0},p(e,[o]){(!f||o&1)&&n!==(n="Mutation - "+e[0].name)&&(document.title=n);const u={};o&1&&(u.field=e[0]),t.$set(u);const l={};o&2&&(l.page=e[1]),a.$set(l)},i(e){f||(y(t.$$.fragment,e),y(a.$$.fragment,e),f=!0)},o(e){v(t.$$.fragment,e),v(a.$$.fragment,e),f=!1},d(e){e&&m(i),h(t,e),e&&m(r),h(a,e)}}}function I({params:s,url:n}){const i=q(s.mutation),t=x(n.pathname);return!i||!t?{status:404,error:`Mutation ${s.mutation} not found.`}:{props:{field:i,page:t}}}function Q(s,n,i){let{field:t}=n,{page:r}=n;return s.$$set=a=>{"field"in a&&i(0,t=a.field),"page"in a&&i(1,r=a.page)},[t,r]}class O extends M{constructor(n){super(),B(this,n,Q,F,P,{field:0,page:1})}}export{O as default,I as load};
