PageSourceSearch

https://www.pyretosnackan.se/ui/es5/923.198d75a00b1c0eaeab60.js

js pyretosnackan.se collected 2026-09-26 09:24:25 UTC 3,126 bytes, 2 lines download raw bytes

1(self.webpackChunk=self.webpackChunk||[]).push([[923],{4923:function(e,t,r){"use strict";r.r(t);r(9709),r(3938),r(1418),r(3238),r(1013),r(5610),r(7460),r(5901),r(2189),r(1047),r(5769),r(4078),r(2410),r(3352);var n=r(7378);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,a,i=[],l=!0,o=!1;try{for(r=r.call(e);!(l=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);l=!0);}catch(e){o=!0,a=e}finally{try{l||null==r.return||r.return()}finally{if(o)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e,t)||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.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var l=globalThis.lipscoreApiKey,o=globalThis.lipscoreLocale,c=function(e){var t=e.starState;return n.createElement("svg",{viewBox:"0 0 19 18.1",className:"lipscore-rating-star lipscore-svg-rating-star ".concat(t?"lipscore-star-".concat(t," lipscore-rating-star-").concat(t):""),width:"20px",height:"20px",style:{fillRule:"evenodd",fill:"#251e19"}},n.createElement("g",{transform:"matrix(0.896868,0,0,0.983811,-0.279534,0)"},n.createElement("path",{d:"M11.573,1.193L11.573,15.61L10.916,15.3L4.362,18.388L5.558,11.752L0.312,7.024L7.605,6.01L10.916,0L11.573,1.193Z"})),n.createElement("g",{className:"lipscore-star-last-half",transform:"matrix(1,0,0,1,-133.489,-464)"},n.createElement("path",{d:"M142.989,464.021L143,464L145.97,469.912L152.511,470.91L147.805,475.561L148.878,482.09L143,479.052L142.989,479.058L142.989,464.021Z"})))};t.default=function(){var e=a((0,n.useState)(),2),t=e[0],r=e[1];(0,n.useEffect)((function(){var e;(l||o)&&(e="https://wapi.lipscore.com/initial_data/products/show?api_key=".concat(l,"&internal_id=service_review&widgets=srw_t&translate_to_lang=").concat(o),fetch(e).then((function(e){return e.json()}))).then((function(e){return function(e){if(e.lipscore){var t=parseFloat(e.lipscore),n=Math.round(10*t)/10,a=Math.round(n/2*10)/10;r(a)}}(e)})).catch((function(e){return console.log(e)}))}),[]);var i=function(e){if(void 0!==t){var r=t-e;return r>0&&r<1?"incomplete":r<=0?"inactive":void 0}};return t?n.createElement(n.Fragment,null,n.createElement("div",{className:"lipscore-service-reviews__score"},t),n.createElement("div",{className:"lipscore-service-reviews__stars-and-amount"},n.createElement("div",{className:"lipscore-service-reviews__stars"},Array.from({length:5}).map((function(e,t){return n.createElement(c,{starState:i(t),key:"lipscore-stars-".concat(t)})}))))):null}},9709:function(e,t,r){r(1695)({global:!0},{globalThis:r(2086)})}}]);
2//# sourceMappingURL=923.198d75a00b1c0eaeab60.js.map

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.