var e={};const n=wp.apiFetch,{addQueryArgs:t,getQueryArg:a}=wp.url;n.fetchAllMiddleware=null,n.use(n.createRootURLMiddleware(window?.parent?.scFetchData?.root_url||window?.scFetchData?.root_url)),window?.scFetchData?.nonce&&(n.nonceMiddleware=n.createNonceMiddleware(window?.scFetchData?.nonce),n.use(n.nonceMiddleware)),window?.scFetchData?.nonce_endpoint&&(n.nonceEndpoint=window?.scFetchData?.nonce_endpoint),n.use(((e,n)=>(e.path=t(e.path,{t:Date.now()}),n(e)))),n.use(((e,n)=>(e.path=t(e.path,{...!!a(window.location.href,"currency")&&{currency:a(window.location.href,"currency")}}),n(e)))),e.A=n;var c=e.A;export{c as default};