PageSourceSearch

https://www.tourismebretagne.com/app/dist/crt-bretagne/addons/wood…/card/card-uniq-component.9637e7865a.mjs

js tourismebretagne.com collected 2026-10-02 05:16:41 UTC 1,168 bytes, 1 lines download raw bytes

1import c from"woody_library_woody_component";class l extends c{#t={card:".card"};constructor(){super()}init(e){super.init(e),this.style.display="block",this.config=Object.assign(this.#t,this.config)}updateCardContent(e){let t=this.querySelector(this.config.card);if(e&&t){t.classList.remove("card-loaded"),t.classList.add("skeleton-card");const n=t.getAttribute("data-card-path")||"",o=t.getAttribute("class").match(/\bratio[^\s]*/),s=o&&o.length>0?o[0]:"",a=t.getAttribute("data-card-display-options")||"",i=btoa(a),d=window.globals.current_lang?window.globals.current_lang:"";fetch(`/wp-json/woody/page/preview?lang=${d}&post=${e}&current_id=${window.globals.post_id}&html_format=true&tpl_twig=${n}&ratio=${s}&display=${i}`).then(r=>r.json()).then(r=>{n&&(this.appendCardContent(r,t,n,a),t.querySelector(".card-link").focus())}).catch(r=>{console.warn("CardUniqComponent.updateCardContent - error : ",r)})}}appendCardContent(e,t,n,o){const s=t.parentNode;if(t.outerHTML=e,s!==null){let a=s.querySelector(this.config.card);a&&(a.setAttribute("data-card-path",n),o&&a.setAttribute("data-card-display-options",o),a.classList.add("card-loaded"))}}}export{l as default};

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.