PageSourceSearch

https://www.banyuls-sur-mer.com/app/dist/banyuls-sur-mer/addons/wo…/woody-addon-favorites-tools.c69f1fe31d.mjs

js banyuls-sur-mer.com collected 2026-09-24 20:12:38 UTC 1,677 bytes, 1 lines download raw bytes

1function i(){const t="woody_favorites";if(window.localStorage!==void 0&&window.localStorage)try{const e=window.localStorage.getItem(t);return e==null||e==null||e==""?{}:JSON.parse(e)}catch(e){console.error(["[FAVORITES]",e])}return{}}const v="woody:favorites-updated";function c(t){const e="woody_favorites";if(window.localStorage!==void 0&&window.localStorage)try{window.localStorage.removeItem(e),window.localStorage.setItem(e,JSON.stringify(t)),document.dispatchEvent(new CustomEvent(v))}catch(o){console.error(["[FAVORITES]",o])}}function a(t="f"){let e=[];const o=i();return Object.keys(o).forEach(function(r){const n=o[r];t===n&&e.push(r)}),e}function g(){let t="",e=a("f"),o=a("v");return e.length!==0&&(e.sort(function(r,n){return r-n}),t+="f:"+e.join(",")),o.length!==0&&(o.sort(function(r,n){return r-n}),t+=t!==""?"-":"",t+="v:"+o.join(",")),t}function d(){const t=document.querySelector(".woody-favorites-cart");if(t){const e=new Event("update");t.dispatchEvent(e)}}const s="s";function w(t,e){return e==="sheet"?s+t:t}function f(t,e){const o=i();o[w(t,e)]="f",c(o),d()}function u(t,e){const o=i();delete o[w(t,e)],c(o),d()}function l(t){const e=a("f");return t==="sheet"?e.filter(o=>o.startsWith(s)).map(o=>o.substring(s.length)):e}window.woodyAddFavorite=f,window.woodyRemoveFavorite=u,window.woodyGetFavorites=l,window.hawwwaiAddSheetFavorite=t=>f(t,"sheet"),window.hawwwaiRemoveSheetFavorite=t=>u(t,"sheet"),window.hawwwaiGetSheetFavorites=()=>l("sheet");export{v as FAVORITES_UPDATED_EVENT,s as SHEET_ID_PREFIX,f as addFavorite,a as getByType,l as getFavorites,i as getStorage,g as getUrlParamsFromStorage,u as removeFavorite,c as setStorage,d as updateCart};

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.