Fix prettier formatting issues

This commit is contained in:
adilallo
2025-08-30 13:46:35 -06:00
parent 1e795e1340
commit 12deae75e8
97 changed files with 335281 additions and 54857 deletions
+58 -1
View File
@@ -1 +1,58 @@
const p="modulepreload",v=function(l){return"/CommunityRuleStorybook/"+l},u={},E=function(d,c,y){let i=Promise.resolve();if(c&&c.length>0){let m=function(e){return Promise.all(e.map(o=>Promise.resolve(o).then(s=>({status:"fulfilled",value:s}),s=>({status:"rejected",reason:s}))))};document.getElementsByTagName("link");const r=document.querySelector("meta[property=csp-nonce]"),t=r?.nonce||r?.getAttribute("nonce");i=m(c.map(e=>{if(e=v(e),e in u)return;u[e]=!0;const o=e.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${e}"]${s}`))return;const n=document.createElement("link");if(n.rel=o?"stylesheet":p,o||(n.as="script"),n.crossOrigin="",n.href=e,t&&n.setAttribute("nonce",t),document.head.appendChild(n),o)return new Promise((f,h)=>{n.addEventListener("load",f),n.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${e}`)))})}))}function a(r){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=r,window.dispatchEvent(t),!t.defaultPrevented)throw r}return i.then(r=>{for(const t of r||[])t.status==="rejected"&&a(t.reason);return d().catch(a)})};export{E as _};
const p = "modulepreload",
v = function (l) {
return "/CommunityRuleStorybook/" + l;
},
u = {},
E = function (d, c, y) {
let i = Promise.resolve();
if (c && c.length > 0) {
let m = function (e) {
return Promise.all(
e.map((o) =>
Promise.resolve(o).then(
(s) => ({ status: "fulfilled", value: s }),
(s) => ({ status: "rejected", reason: s }),
),
),
);
};
document.getElementsByTagName("link");
const r = document.querySelector("meta[property=csp-nonce]"),
t = r?.nonce || r?.getAttribute("nonce");
i = m(
c.map((e) => {
if (((e = v(e)), e in u)) return;
u[e] = !0;
const o = e.endsWith(".css"),
s = o ? '[rel="stylesheet"]' : "";
if (document.querySelector(`link[href="${e}"]${s}`)) return;
const n = document.createElement("link");
if (
((n.rel = o ? "stylesheet" : p),
o || (n.as = "script"),
(n.crossOrigin = ""),
(n.href = e),
t && n.setAttribute("nonce", t),
document.head.appendChild(n),
o)
)
return new Promise((f, h) => {
(n.addEventListener("load", f),
n.addEventListener("error", () =>
h(new Error(`Unable to preload CSS for ${e}`)),
));
});
}),
);
}
function a(r) {
const t = new Event("vite:preloadError", { cancelable: !0 });
if (((t.payload = r), window.dispatchEvent(t), !t.defaultPrevented))
throw r;
}
return i.then((r) => {
for (const t of r || []) t.status === "rejected" && a(t.reason);
return d().catch(a);
});
};
export { E as _ };