PluginProbe
WindPress – Tailwind CSS integration for WordPress / 3.2.85
WindPress – Tailwind CSS integration for WordPress v3.2.85
3.2.90 3.2.89 3.2.88 3.2.87 3.2.86 3.2.85 3.2.84 3.2.83 3.2.82 3.2.81 trunk 3.0.0 3.0.1 3.0.10 3.0.11 3.0.12 3.0.13 3.0.14 3.0.15 3.0.16 3.0.17 3.0.2 3.0.3 3.0.4 3.0.5 All 144 releases
windpress / build / assets / api-DL2Um68W.js

api-DL2Um68W.js in WindPress – Tailwind CSS integration for WordPress 3.2.85, at build/assets/api-DL2Um68W.js

54 lines 2.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 var e = (function e2(t2) {
2 function n2(e3, t3, r2) {
3 var i, a = {};
4 if (Array.isArray(e3)) return e3.concat(t3);
5 for (i in e3) a[r2 ? i.toLowerCase() : i] = e3[i];
6 for (i in t3) {
7 var o = r2 ? i.toLowerCase() : i, s = t3[i];
8 a[o] = o in a && typeof s == `object` ? n2(a[o], s, o == `headers`) : s;
9 }
10 return a;
11 }
12 function r(e3, r2, i, a, o) {
13 var s = typeof e3 == `string` ? e3 : (r2 = e3).url, c = { config: r2 }, l = n2(t2, r2), u = {};
14 a || (a = l.data), (l.transformRequest || []).map(function(e4) {
15 a = e4(a, l.headers) || a;
16 }), l.auth && (u.authorization = l.auth), a && typeof a == `object` && typeof a.append != `function` && typeof a.text != `function` && (a = JSON.stringify(a), u[`content-type`] = `application/json`);
17 try {
18 u[l.xsrfHeaderName] = decodeURIComponent(document.cookie.match(RegExp(`(^|; )` + l.xsrfCookieName + `=([^;]*)`))[2]);
19 } catch {
20 }
21 return l.baseURL && (s = s.replace(/^(?!.*\/\/)\/?/, l.baseURL + `/`)), l.params && (s += (~s.indexOf(`?`) ? `&` : `?`) + (l.paramsSerializer ? l.paramsSerializer(l.params) : new URLSearchParams(l.params))), (l.fetch || fetch)(s, { method: (i || l.method || `get`).toUpperCase(), body: a, headers: n2(l.headers, u, true), credentials: l.withCredentials ? `include` : o }).then(function(e4) {
22 for (var t3 in e4) typeof e4[t3] != `function` && (c[t3] = e4[t3]);
23 return l.responseType == `stream` ? (c.data = e4.body, c) : e4[l.responseType || `text`]().then(function(e5) {
24 c.data = e5, c.data = JSON.parse(e5);
25 }).catch(Object).then(function() {
26 return (l.validateStatus ? l.validateStatus(e4.status) : e4.ok) ? c : Promise.reject(c);
27 });
28 });
29 }
30 return t2 || (t2 = {}), r.request = r, r.get = function(e3, t3) {
31 return r(e3, t3, `get`);
32 }, r.delete = function(e3, t3) {
33 return r(e3, t3, `delete`);
34 }, r.head = function(e3, t3) {
35 return r(e3, t3, `head`);
36 }, r.options = function(e3, t3) {
37 return r(e3, t3, `options`);
38 }, r.post = function(e3, t3, n3) {
39 return r(e3, n3, `post`, t3);
40 }, r.put = function(e3, t3, n3) {
41 return r(e3, n3, `put`, t3);
42 }, r.patch = function(e3, t3, n3) {
43 return r(e3, n3, `patch`, t3);
44 }, r.all = Promise.all.bind(Promise), r.spread = function(e3) {
45 return e3.apply.bind(e3, e3);
46 }, r.CancelToken = typeof AbortController == `function` ? AbortController : Object, r.defaults = t2, r.create = e2, r;
47 })(), t;
48 function n(n2 = {}) {
49 return t || (t = e.create(Object.assign({ baseURL: window.windpress.rest_api.url || ``, headers: { "content-type": `application/json`, accept: `application/json`, "X-WP-Nonce": window.windpress.rest_api.nonce || `` } }, n2))), t;
50 }
51 export {
52 n as t
53 };
54