PageSourceSearch

https://www.dermalogica.co.uk/cdn/shop/t/333/assets/rte-formatter.js?v=82027280148162881561775040250

js dermalogica.co.uk collected 2026-09-24 21:06:23 UTC 1,815 bytes, 2 lines download raw bytes

1const VOID_SELECTOR="img, picture, video, iframe, svg, object, embed, canvas, input, textarea, select, table";function isEmptyRteParagraph(p){return!(p instanceof HTMLParagraphElement)||p.closest("table")||p.matches(VOID_SELECTOR)||p.querySelector(VOID_SELECTOR)?!1:p.textContent.replace(/\u00a0/g," ").replace(/\uFEFF/g,"").replace(/\s+/g," ").trim()===""}function processRteContainer(container){const paragraphs=container.querySelectorAll("p");paragraphs.forEach(p=>{p.hidden=isEmptyRteParagraph(p),p.style.marginBlockEnd=""});for(let i=paragraphs.length-1;i>=0;i-=1){const paragraph=paragraphs[i];if(paragraph&&!paragraph.hidden){paragraph.style.marginBlockEnd="0";break}}}function initGlobalRteEmptyParagraphs(){document.querySelectorAll(".rte:not(:has(rte-formatter)), .shopify-policy__title").forEach(processRteContainer)}class RTEFormatter extends HTMLElement{#observer;connectedCallback(){this.querySelectorAll("table").forEach(this.#formatTable),this.#processParagraphs(),this.#observer=new MutationObserver(()=>{requestAnimationFrame(()=>this.#processParagraphs())}),this.#observer.observe(this,{childList:!0,subtree:!0,characterData:!0})}disconnectedCallback(){this.#observer?.disconnect(),this.#observer=void 0}#processParagraphs(){processRteContainer(this)}#formatTable(table){const wrapper=document.createElement("div");wrapper.classList.add("rte-table-wrapper");const parent=table.parentNode;parent&&(parent.insertBefore(wrapper,table),wrapper.appendChild(table))}}customElements.get("rte-formatter")||customElements.define("rte-formatter",RTEFormatter),document.readyState==="loading"?document.addEventListener("DOMContentLoaded",initGlobalRteEmptyParagraphs,{once:!0}):initGlobalRteEmptyParagraphs();
2//# sourceMappingURL=/cdn/shop/t/333/assets/rte-formatter.js.map?v=82027280148162881561775040250

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.