PageSourceSearch

https://bello.gov.co/SiteAssets/v1/assets/components/home/popUpHome/src/js/features/update/config.js

js bello.gov.co collected 2026-09-25 04:15:56 UTC 1,739 bytes, 67 lines download raw bytes

1// UPDATE (edición de un solo ítem)
2import { SITE, LIST } from "../../services/config.js";
3
4/* IDs */
5export const UPD_IDS = {
6  overlay: "phu2-overlay",
7  modal: "phu2-modal",
8  content: "phu2-content",
9  table: "phu2-table",
10  tbody: "phu2-tbody",
11  error: "phu2-error",
12  cancel: "phu2-cancel",
13  save: "phu2-save",
14  pubSelect: "phu2-published",
15  orderInput: "phu2-order",
16};
17
18/* Clases (para estilos) */
19export const UPD_CLASSES = {
20  overlay: "phu2-overlay",
21  modal: "phu2-modal",
22  body: "phu2-body",
23  footer: "phu2-footer",
24  actions: "phu2-actions",
25
26  table: "phu2-table",
27  th: "phu2-th",
28  td: "phu2-td",
29  row: "phu2-row",
30
31  preview: "phu2-preview",
32  typeBadge: "phu2-typeBadge",
33  typeImg: "phu2-typeBadge--image",
34  typeVid: "phu2-typeBadge--video",
35  typeNA:  "phu2-typeBadge--na",
36
37  btn: "phu2-btn",
38  btnGhost: "phu2-btn--ghost",
39  btnPrimary: "phu2-btn--primary",
40
41  select: "phu2-select",
42  input: "phu2-input",
43  inputXs: "phu2-input--xs",
44  orderBox: "phu2-orderBox",
45  error: "phu2-error",
46};
47
48/* Defaults */
49export const DEFAULTS = { site: SITE, list: LIST };
50
51/* Helpers YouTube (para miniatura) */
52export function youTubeIdFromUrl(url) {
53  try {
54    const u = new URL(url);
55    if (u.hostname.includes("youtu.be")) return u.pathname.replace("/", "") || null;
56    if (u.hostname.includes("youtube.com")) {
57      if (u.pathname.startsWith("/embed/")) return u.pathname.split("/")[2] || null;
58      const v = u.searchParams.get("v");
59      if (v) return v;
60    }
61  } catch {}
62  return null;
63}
64export function youTubeThumb(url) {
65  const id = youTubeIdFromUrl(url);
66  return id ? `https://img.youtube.com/vi/${id}/hqdefault.jpg` : null;
67}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.