PageSourceSearch

https://beletrina.si/build/bubbleComments.3a2ada47.js

js beletrina.si collected 2026-10-01 11:48:18 UTC 14,957 bytes, 2 lines download raw bytes

1/*! For license information please see bubbleComments.3a2ada47.js.LICENSE.txt */
2(self.webpackChunk=self.webpackChunk||[]).push([[586],{8394:(t,e,r)=>{"use strict";var n=r(9963),o=r(6252),i=r(3577),a={key:0,class:"small-text text-gray-500"},c={key:1,class:"small-text text-gray-500"},s={key:2,class:"swiper-holder__container--bubble_comments small-text relative"},u={class:"swiper-wrapper"},l={class:"swiper-slide"},p={class:"py-3 px-4 bg-bggray"},f={class:"flex items-center justify-start mb-1"},h={class:"small-text font-medium mr-2"},d={class:"flex items-center justify-start mb-2 space-x-1"},v={width:"14px",height:"15px",viewBox:"0 0 14 15",xmlns:"http://www.w3.org/2000/svg"},m=["fill"],g=[(0,o._)("polygon",{points:"6.4434 0 6.1934 0.24985 5.9458 0.49969 5.6981 0.74954 5.6981 0.99939 5.5755 1.2469 5.5755 1.6229 5.5755 2.3724 5.6981 3.8715 5.5755 4.6256 5.4505 4.9992 5.3278 5.3729 5.0802 5.3729 4.8325 5.2491 4.5849 5.1253 4.3372 4.8755 3.3444 3.7477 2.8491 3.3764 2.3538 2.9982 2.1061 2.9982 1.7335 3.1242 1.4859 3.248 1.1155 3.6216 0.24765 4.9992 3.4693 7.4977 0 9.9985 0.12269 10.372 0.24765 10.75 0.62025 11.25 0.8679 11.5 1.2382 11.747 1.4859 11.747 1.8585 11.624 2.6014 11.25 3.2217 10.627 4.0896 9.9985 4.4599 9.7463 4.8325 9.6248 5.2029 9.5011 5.6981 9.5011 6.0708 9.8747 6.4434 10.248 6.5683 10.627 6.691 11 6.691 11.5 6.691 11.997 6.4434 12.875 6.4434 13.748 6.4434 14.122 6.691 14.498 6.816 14.75 7.1863 14.876 7.8043 15 8.4223 15 8.5495 14.622 8.6722 14.377 8.6722 13.872 8.6722 13.375 8.5495 12.749 8.4223 12.247 8.4223 11.624 8.5495 11.124 8.6722 10.876 8.9221 10.627 9.1698 10.627 9.5401 10.627 10.158 10.75 11.524 11.25 11.892 11.374 12.139 11.374 12.387 11.374 12.639 11.25 12.762 11.25 12.887 11.124 13.009 10.876 13.257 10.372 13.257 9.8747 12.387 9.375 11.524 8.8753 11.028 8.6255 10.656 8.2518 10.406 7.8713 10.283 7.6238 10.158 7.3739 10.406 7.2502 10.656 7.0003 11.399 6.7482 13.009 6.1224 13.63 5.8726 13.875 5.625 14 5.3729 14 5.1253 14 4.8755 13.752 4.4995 13.382 3.9976 8.3019 4.9992 8.0542 4.6256 7.927 4.2497 7.8043 3.9976 7.8043 3.6216 7.6793 2.8744 7.6793 2.1226 7.6793 1.4968 7.5566 0.99939 7.309 0.62347 7.1863 0.49969 6.816 0.24985"},null,-1)],y=(0,o._)("div",null,[(0,o._)("svg",{class:"text-bggray ml-4",width:"30px",height:"15px",viewBox:"0 0 30 15",xmlns:"http://www.w3.org/2000/svg"},[(0,o._)("polygon",{fill:"currentColor",points:"30,0 15,15 0,0"})])],-1),w=["data-productId"],b=["href"],x=["src","alt"],_={class:"body-text--title"},k={key:0,class:"small-text mt-1"},L=(0,o._)("div",{class:"swiper-pagination"},null,-1),E={class:"swiper-button-custom-prev swiper-button-custom-prev--bubble"},j=["src"],O={class:"swiper-button-custom-next swiper-button-custom-next--bubble"},I=["src"];r(9554),r(1539),r(4747),r(2772),r(7042),r(3210),r(1058),r(8674),r(9070),r(2526),r(1817),r(2165),r(6992),r(8783),r(3948),r(2443),r(3680),r(3706),r(2703),r(8011),r(489),r(8309),r(8304),r(5069);var N=r(2262),S=r(9669),D=r.n(S);function P(t){return P="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},P(t)}function T(){T=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof f?e:f,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:x(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var p={};function f(){}function h(){}function d(){}var v={};s(v,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(j([])));g&&g!==e&&r.call(g,i)&&(v=g);var y=d.prototype=f.prototype=Object.create(v);function w(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==P(p)&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)}
vendor: 6,457 bytes, line 2
2)):e.resolve(p).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return O()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=_(a,r);if(c){if(c===p)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function _(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,p;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function j(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(y,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},w(b.prototype),s(b.prototype,a,(function(){return this})),t.AsyncIterator=b,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new b(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(y),s(y,c,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=j,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},t}function R(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function q(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){R(i,n,o,a,c,"next",t)}function c(t){R(i,n,o,a,c,"throw",t)}a(void 0)}))}}const A={name:"BubbleComments",setup:function(){var t=(0,N.qj)({comments:[],arrowLeft:"/build/icons/swiper/arrow_left.svg",arrowRight:"/build/icons/swiper/arrow_right.svg",status:"loading"}),e=document.querySelector("div[data-storeurl]"),r=e.dataset.storeurl,n=e.dataset.publickey,i=e.dataset.landingcommentsswiperjspath,a=e.dataset.productid,c=e.dataset.arrowleft,s=e.dataset.arrowright;c&&(t.arrowLeft=c),s&&(t.arrowRight=s);var u="https://stamped.io/api/widget/reviews?sortReviews=highest-rating&take=10&minRating=1&storeUrl="+r+"&apiKey="+n;return a&&(u+="&productId="+a),(0,o.bv)(q(T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:D().get(u).then((function(t){return t.data.data})).then((function(e){if(t.comments=e,0==t.comments.length)t.status="nocomments";
2else{t.status="displaycomments",t.comments.forEach((function(t){var e=t.productName.indexOf(":");-1===e?(t.productTitle=t.productName,t.bookAuthor=""):(t.productTitle=t.productName.slice(0,e),t.bookAuthor=t.productName.slice(e+1).trim());var r=t.reviewDate.split(" ");1==r.length&&(r=t.reviewDate.split("/")),r.length>=3&&(t.reviewDate=parseInt(r[0])+". "+parseInt(r[1])+". "+r[2])}));var r=document.createElement("script");r.setAttribute("src",i),document.head.appendChild(r)}})).catch((function(t){}));case 1:case"end":return e.stop()}}),e)})))),{state:t}}};const G=(0,r(3744).Z)(A,[["render",function(t,e,r,n,N,S){return(0,o.wg)(),(0,o.iD)(o.HY,null,[(0,o.kq)(" the structure must comply with what Swiper expects "),"loading"==n.state.status?((0,o.wg)(),(0,o.iD)("div",a," Nalagam... ")):"nocomments"==n.state.status?((0,o.wg)(),(0,o.iD)("div",c," Zaenkrat še ni komentarjev. ")):((0,o.wg)(),(0,o.iD)("div",s,[(0,o._)("div",u,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(n.state.comments,(function(t){return(0,o.wg)(),(0,o.iD)("div",l,[(0,o._)("div",p,[(0,o.kq)("<h2>One comment</h2>"),(0,o._)("div",f,[(0,o._)("span",h,(0,i.zw)(t.author),1),(0,o._)("span",null,(0,i.zw)(t.reviewDate),1)]),(0,o._)("div",d,[((0,o.wg)(),(0,o.iD)(o.HY,null,(0,o.Ko)(5,(function(e){return(0,o._)("svg",v,[(0,o._)("g",{"fill-rule":"evenodd",fill:e<=t.reviewRating?"#E25545":"#333"},g,8,m)])})),64))]),(0,o.kq)("      <div>{{comment.reviewTitle}}</div>"),(0,o._)("div",null,(0,i.zw)(t.reviewMessage),1)]),y,(0,o._)("div",null,[(0,o._)("div",{"data-productId":t.productId,class:"mt-1"},[(0,o._)("a",{href:t.productUrl,class:"flex items-start"},[(0,o._)("img",{src:t.productImageUrl,class:"h-[65px] w-auto ml-2 mr-4",alt:t.productTitle},null,8,x),(0,o._)("div",null,[(0,o._)("div",_,(0,i.zw)(t.productTitle),1),""!==t.bookAuthor?((0,o.wg)(),(0,o.iD)("div",k,(0,i.zw)(t.bookAuthor),1)):(0,o.kq)("v-if",!0)])],8,b),(0,o.kq)('\n            productId: 618\n            productImageLargeUrl: "http://admintest.beletrina.si/upload/media/book/0001/01/thumb_782_book_big.jpeg?"\n            productImageThumbnailUrl: "https://cdn.stamped.io/uploads/productImages/213404_618.jpeg?tr=h-180"\n            productImageUrl: "https://cdn.stamped.io/uploads/productImages/213404_618.jpeg?tr=h-180"\n            productName: "Zapiski iz podtalja"\n            ')],8,w)])])})),256))]),(0,o.kq)(" If we need pagination "),L,(0,o.kq)(" If we need navigation buttons "),(0,o._)("div",E,[(0,o._)("img",{src:n.state.arrowLeft,alt:"Nazaj"},null,8,j)]),(0,o._)("div",O,[(0,o._)("img",{src:n.state.arrowRight,alt:"Naprej"},null,8,I)])]))],2112)}]]);(0,n.ri)(G).mount("#bubble-comments")},3009:(t,e,r)=>{var n=r(7854),o=r(7293),i=r(1702),a=r(1340),c=r(3111).trim,s=r(1361),u=n.parseInt,l=n.Symbol,p=l&&l.iterator,f=/^[+-]?0x/i,h=i(f.exec),d=8!==u(s+"08")||22!==u(s+"0x16")||p&&!o((function(){u(Object(p))}));t.exports=d?function(t,e){var r=c(a(t));return u(r,e>>>0||(h(f,r)?16:10))}:u},6091:(t,e,r)=>{var n=r(6530).PROPER,o=r(7293),i=r(1361);t.exports=function(t){return o((function(){return!!i[t]()||"​…᠎"!=="​…᠎"[t]()||n&&i[t].name!==t}))}},3111:(t,e,r)=>{var n=r(1702),o=r(4488),i=r(1340),a=r(1361),c=n("".replace),s=RegExp("^["+a+"]+"),u=RegExp("(^|[^"+a+"])["+a+"]+$"),l=function(t){return function(e){var r=i(o(e));return 1&t&&(r=c(r,s,"")),2&t&&(r=c(r,u,"$1")),r}};t.exports={start:l(1),end:l(2),trim:l(3)}},1361:t=>{t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},2772:(t,e,r)=>{"use strict";var n=r(2109),o=r(1470),i=r(1318).indexOf,a=r(9341),c=o([].indexOf),s=!!c&&1/c([1],1,-0)<0;n({target:"Array",proto:!0,forced:s||!a("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return s?c(this,t,e)||0:i(this,t,e)}})},1058:(t,e,r)=>{var n=r(2109),o=r(3009);n({global:!0,forced:parseInt!=o},{parseInt:o})},3210:(t,e,r)=>{"use strict";var n=r(2109),o=r(3111).trim;n({target:"String",proto:!0,forced:r(6091)("trim")},{trim:function(){return o(this)}})}},t=>{t.O(0,[109,563,674,727,72,193,669],(()=>{return e=8394,t(t.s=e);var e}));t.O()}]);

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.