| 1 | var e={};const n=wp.apiFetch,{addQueryArgs:t,getQueryArg:a}=wp.url,c=window?.parent?.scFetchData?.root_url||window?.scFetchData?.root_url;c&&(n.fetchAllMiddleware=null,n.use(n.createRootURLMiddleware(c)),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 o=e.A;export{o as default}; |