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{Q as N}from"../../chunks/Switch-356716ae.js";import{F as T}from"../../chunks/FieldDetails-7626f159.js";import{i as q,f as x}from"../../chunks/pages-d34b2ec3.js";import{P as D}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 F(o){let n,i,t,r,a,f;return document.title=n="Mutation - "+o[0].name,t=new T({props:{field:o[0],type:N.MUTATION}}),a=new D({props:{page:o[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,s){g(e,i,s),$(t,e,s),g(e,r,s),$(a,e,s),f=!0},p(e,[s]){(!f||s&1)&&n!==(n="Mutation - "+e[0].name)&&(document.title=n);const u={};s&1&&(u.field=e[0]),t.$set(u);const l={};s&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 j({params:o,url:n}){const i=q(o.mutation),t=x(n.pathname);return!i||!t?{status:404,error:`Mutation ${o.mutation} not found.`}:{props:{field:i,page:t}}}function Q(o,n,i){let{field:t}=n,{page:r}=n;return o.$$set=a=>{"field"in a&&i(0,t=a.field),"page"in a&&i(1,r=a.page)},[t,r]}class k extends M{constructor(n){super(),B(this,n,Q,F,P,{field:0,page:1})}}export{k as default,j as load};
