PageSourceSearch

https://www.poltronesofa.co.uk/on/demandware.static/Sites-SFRA_SCS…/js/productDetailBazaarVoice.js

js poltronesofa.co.uk collected 2026-10-04 09:39:16 UTC 6,703 bytes, 1 lines download raw bytes

1!function(){var t={9941:function(t){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}t.exports=function(t){"function"==typeof t?t():"object"===e(t)&&Object.keys(t).forEach(function(e){"function"==typeof t[e]&&t[e]()})}},2550:function(){function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}$(document).ready(function(){$("body").on("click",".bv-content-product-stats-item",function(t){var e=$(t.currentTarget).find("[data-content-type]");if(e.length){var n=e.data("content-type");"question"===n&&($("#qa-tab").trigger("click"),$("#qa-tab").get(0).scrollIntoView()),"review"===n&&($("#reviews-tab").trigger("click"),$("#reviews-tab").get(0).scrollIntoView())}});var e=document.querySelector('[data-bv-show="reviews"]');e&&new MutationObserver(function(e,n){var r,o=function(e,n){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,n){if(e){if("string"==typeof e)return t(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){r&&(e=r);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var t=r.next();return u=t.done,t},e:function(t){c=!0,a=t},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw a}}}}(e);try{for(o.s();!(r=o.n()).done;)if("childList"===r.value.type){var i=$(".bv-content-product-stats-item");i.length&&i.each(function(t,e){var n=$(e);n.hasClass("bv-content-product-stats-item-reviews")&&n.removeClass("bv-content-product-stats-item-reviews"),n.hasClass("bv-content-product-stats-item-questions")&&n.removeClass("bv-content-product-stats-item-questions"),n.hasClass("bv-content-product-stats-item-answers")&&n.removeClass("bv-content-product-stats-item-answers")})}}catch(t){o.e(t)}finally{o.f()}}).observe(e,{attributes:!1,childList:!0,subtree:!0})})},170:function(t){function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var n="small-device",r="mobile",o="tablet",i="desktop",a="(max-width: ".concat(479,"px)"),u="(max-width: ".concat(767,"px)"),c="(min-width: ".concat(768,"px) and (max-width: ").concat(921,"px)"),s="(min-width: ".concat(922,"px)"),l=[[n,a],[r,u],[o,c],[i,s]],f=function(){var t=l.filter(function(t){var n,r,o=(n=t,r=2,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(n,r)||function(t,n){if(t){if("string"==typeof t)return e(t,n);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1];return window.matchMedia(o).matches})[0];return t&&t[0]};t.exports={isSmallDeviceView:function(){return f()===n},isMobileView:function(){return f()===r},isTabletView:function(){return f()===o},isDesktopView:function(){return f()===i}}},3303:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var o=n(170);function i(t){var e=0,n=setInterval(function(){var r=document.querySelectorAll(".js-pdp-questions-and-answers");if(r&&r.length)if(t.shadowRoot.getElementById("bv-question-btn"))clearInterval(n);else{var o=function(t){if(!t||!t.shadowRoot)return null;for(var e=t.shadowRoot.querySelectorAll("span"),n=/of\s(\d+)\sQuestion/,r=0;r<e.length;r++){var o=e[r];if(o.innerText&&n.test(o.innerText)){var i=o.innerText.match(n);
1return i&&i[1]?i[1]:null}}return null}(t);if(o){var i=document.createElement("span");i.className="number-of-questions",i.innerText="(".concat(o,")"),r.forEach(function(t){t.appendChild(i)}),clearInterval(n)}else e++>5&&clearInterval(n)}else clearInterval(n)},150)}t.exports={init:function(){$('[data-custom-bv-replace-container="true"]').each(function(){o.isMobileView()&&"mobile"!=$(this).data("device")||o.isDesktopView()&&"desktop"!=$(this).data("device")?$(this).remove():$(this).replaceWith($(this).html())})},populateNumberOfQuestions:function(){var t=document.getElementById("pdpQuestionsAndAnswersContent").querySelector("div[data-bv-show=questions]");if(t){var e="data-bv-ready";if(t.hasAttribute(e))i(t);else{var n=new MutationObserver(function(o){var a,u=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){c=!0,a=t},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw a}}}}(o);try{for(u.s();!(a=u.n()).done;){var c=a.value;"attributes"===c.type&&c.attributeName===e&&(i(t),n.disconnect())}}catch(t){u.e(t)}finally{u.f()}});n.observe(t,{attributes:!0})}}}}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}!function(){"use strict";var t=n(9941);t(n(2550)),$(document).ready(function(){t(n(3303))})}()}();

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.