PageSourceSearch

https://www.floraprima.de/skin/frontend/base/default/wishlist/js/wishlist-storage.min.js?1790247895

js floraprima.de collected 2026-09-24 11:20:27 UTC 3,695 bytes, 1 lines download raw bytes

1(()=>{var e,t="fpWishlistStore";function r(e){e=document.getElementById(e);return e&&"string"==typeof e.value?e.value:""}function o(e,t){if(!e)return Promise.resolve({success:!1});var r,n=[];for(r in t=t||{})Object.prototype.hasOwnProperty.call(t,r)&&n.push(encodeURIComponent(r)+"="+encodeURIComponent(t[r]));var o="string"==typeof window.FORM_KEY&&window.FORM_KEY?window.FORM_KEY:(o=document.querySelector('input[name="form_key"]'))&&"string"==typeof o.value?o.value:"";return o&&n.push("form_key="+encodeURIComponent(o)),fetch(e,{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},body:n.join("&")}).then(function(e){return e.json().catch(function(){return{}})}).catch(function(){return{success:!1,error:"network"}})}function n(e){for(var t=document.cookie?document.cookie.split(";"):[],r=0;r<t.length;r++){var n=t[r].trim();if(0===n.indexOf(e+"="))return n.substring(e.length+1)}return null}function i(){try{var e,t,r=n("wl:items:v1");return r?(e=decodeURIComponent(r),(t=JSON.parse(e))&&Array.isArray(t.ids)?(t.ids=t.ids.map(function(e){return String(e).trim()}).filter(function(e){return""!==e}),t.c=parseInt(t.c,10),isNaN(t.c)&&(t.c=t.ids.length),t):null):null}catch(e){return null}}window[t]||(e={_cfg:{urls:{addDirect:"",removeDirect:"",addTo:"",removeFrom:"",create:"",lists:"",count:""}},init:function(e){if((e=e||{}).urls)for(var t in e.urls)Object.prototype.hasOwnProperty.call(e.urls,t)&&(this._cfg.urls[t]=e.urls[t]);return this._ensureUrlsFromDom(),this},_ensureUrlsFromDom:function(){var e=this._cfg.urls;if(e.create||(e.create=r("fpWishlistCreateUrl")),e.addTo||(e.addTo=r("fpWishlistAddUrl")),e.removeFrom||(e.removeFrom=r("fpWishlistRemoveUrl")||r("fpWishlistRemoveDirectUrl")),e.addDirect||(e.addDirect=r("fpWishlistAddDirectUrl")),e.removeDirect||(e.removeDirect=r("fpWishlistRemoveDirectUrl")),e.lists||(e.lists=r("fpWishlistListsUrl")),e.count||(e.count=r("fpWishlistCountUrl")),e.count)try{var t=e.count.replace(/count.*$/,"");e.addDirect||(e.addDirect=t+"addItem"),e.removeDirect||(e.removeDirect=t+"removeItem")}catch(e){}},_lastItemsRecord:null,_getItemsRecord:function(e){return!e&&this._lastItemsRecord||(this._lastItemsRecord=i()),this._lastItemsRecord},_readCountCookie:function(){var e=n("fp_wishlist_item_cnt"),e=parseInt(e,10);return isNaN(e)?null:e},getCount:function(e){this._ensureUrlsFromDom();var t,r,n=this._readCountCookie();return null===n||e?(r=this._getItemsRecord(!!e))&&void 0!==r.c&&!e?Promise.resolve({count:r.c,cached:!0}):(e=this._cfg.urls.count)?(t=this,((r=e)?fetch(r,{credentials:"same-origin"}).then(function(e){return e.json().catch(function(){return{}})}).catch(function(){return{}}):Promise.resolve({})).then(function(e){e=e&&void 0!==e.count?parseInt(e.count,10):0;return isNaN(e)&&(e=0),t._lastItemsRecord=i(),{count:e,cached:!1}})):Promise.resolve({count:0,cached:!0}):Promise.resolve({count:n,cached:!0})},getMembership:function(e,t){return(e=null==e?"":String(e).trim())&&(t=this._getItemsRecord(!!t))&&Array.isArray(t.ids)?Promise.resolve(-1!==t.ids.indexOf(e)):Promise.resolve(!1)},toggleSingle:function(r,e){var t,n;return this._ensureUrlsFromDom(),(r=null==r?"":String(r).trim())?(t=this._cfg.urls,e=!!e?t.addDirect||t.addTo:t.removeDirect||t.removeFrom,n=this,o(e,{avaArNr:r}).then(function(e){return e&&e.success?n.getCount(!0).then(function(t){return n.getMembership(r,!0).then(function(e){return{success:!0,count:t&&void 0!==t.count?t.count:0,active:e}})}):{success:!1}})):Promise.resolve({success:!1})}},"function"==typeof Promise?Promise.resolve().then(function(){try{e.init()}catch(e){}}):setTimeout(function(){try{e.init()}catch(e){}},0),window[t]=e)})();

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.