"use strict";(self.webpackChunkfont_awesome_admin=self.webpackChunkfont_awesome_admin||[]).push([[268],{9268:(e,a,r)=>{r.r(a),r.d(a,{default:()=>n});var t=r(634),o=r.n(t);const n=e=>async(a,r)=>{try{const{apiNonce:t,rootUrl:n,restApiNamespace:s}=e;return o().use(o().createRootURLMiddleware(n)),o().use(o().createNonceMiddleware(t)),await o()({path:`${s}/api`,method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({query:a.replace(/\s+/g," "),variables:r})})}catch(e){throw console.error("CAUGHT:",e),new Error(e)}}}}]);