Files
dealplustech/dealplustech-astro/node_modules/deterministic-object-hash/dist/encoders.js
Kunthawat Greethong 3ed9f3f3ff 🎨 Fix CSS: Import global.css + plain CSS styles
CSS was not being imported! Fixed:

 Added 'import ../styles/global.css' to BaseLayout.astro
 Rewrote CSS with plain CSS (not @apply which wasn't working)
 Cookie banner has inline styles as backup
 Font size: 16px base
 Solid colors: green-600 (#16a34a), gray-900 (#111827)
 Footer has policy links

Build: 12 pages 
2026-03-10 08:21:30 +07:00

29 lines
955 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.encoders = void 0;
const base_64_1 = require("base-64");
const binary = (input) => {
let binary = "";
const bytes = new Uint8Array(input);
const len = bytes.byteLength;
for (let i = 0; i < len; i++) {
const buffer = bytes[i];
if (buffer)
binary += String.fromCharCode(buffer);
}
return binary;
};
const hex = (input) => [...new Uint8Array(input)]
.map((b) => b.toString(16).padStart(2, "0"))
.join("");
// @see https://stackoverflow.com/questions/35155089/node-sha-256-base64-digest
// @see https://stackoverflow.com/questions/9267899/arraybuffer-to-base64-encoded-string
const base64 = (input) => (0, base_64_1.encode)(binary(input));
const base64url = (input) => base64(input).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
exports.encoders = {
base64,
base64url,
hex,
binary,
};