PageSourceSearch

https://www.sweeek.co.uk/build/3786.c1f82265.js

js sweeek.co.uk collected 2026-10-07 17:52:18 UTC 17,402 bytes, 2 lines download raw bytes

vendor: 5,000 bytes, lines 1-2
1/*! For license information please see 3786.c1f82265.js.LICENSE.txt */
2"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[3786],{3786:function(t,e,r){function n(t){return n="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},n(t)}function i(){i=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof d?e:d,o=Object.create(i.prototype),c=new O(n||[]);return a(o,"_invoke",{value:P(t,r,c)}),o}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=h;var p={};function d(){}function v(){}function g(){}var y={};u(y,c,(function(){return this}));var b=Object.getPrototypeOf,m=b&&b(b(S([])));m&&m!==e&&r.call(m,c)&&(y=m);var w=g.prototype=d.prototype=Object.create(y);function k(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function i(a,o,c,s){var l=f(t[a],t,o);if("throw"!==l.type){var u=l.arg,h=u.value;return h&&"object"==n(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){i("next",t,c,s)}),(function(t){i("throw",t,c,s)})):e.resolve(h).then((function(t){u.value=t,c(u)}),(function(t){return i("throw",t,c,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){i(t,r,e,n)}))}return o=o?o.then(n,n):n()}})}function P(t,e,r){var n="suspendedStart";return function(i,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw a;return j()}for(r.method=i,r.arg=a;;){var o=r.delegate;if(o){var c=x(o,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=f(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 x(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,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var i=f(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,p;var a=i.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function T(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 E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function S(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=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 i.next=i}}return{next:j}}function j(){return{value:void 0,done:!0}}return v.prototype=g,a(w,"constructor",{value:g,configurable:!0}),a(g,"constructor",{value:v,configurable:!0}),v.displayName=u(g,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,l,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},k(L.prototype),u(L.prototype,s,(function(){return this})),t.AsyncIterator=L,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var o=new L(h(e,r,n,i),a);return t.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},k(w),u(w,l,"Generator"),u(w,c,(function(){return this})),u(w,"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=S,O.prototype={constructor:O,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.forEac
vendor: 2,354 bytes, line 2
2h(E),!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 o.type="throw",o.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(o)},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),E(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 i=n.arg;E(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},t}function a(t,e,r,n,i,a,o){try{var c=t[a](o),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,i)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,p(n.key),n)}}
2function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=h(t);if(e){var i=h(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return u(this,r)}}function u(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function f(t,e,r){return(e=p(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function p(t){var e=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!==n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===n(e)?e:String(e)}r.r(e),r.d(e,{default:function(){return d}});var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(p,t);var e,r,n,u,h,f=l(p);function p(){return o(this,p),f.apply(this,arguments)}return e=p,r=[{key:"connect",value:function(){this.page=1,this.loadPage()}},{key:"loadPage",value:(u=i().mark((function t(){var e,r,n,a,o=this;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,this.showLoader(),(e=new URL(this.urlValue,window.location.origin)).searchParams.set("page",this.page),this.hasStartDateTarget&&this.startDateTarget.value&&e.searchParams.set("startDate",this.startDateTarget.value),this.hasEndDateTarget&&this.endDateTarget.value&&e.searchParams.set("endDate",this.endDateTarget.value),this.hasPeriodTarget&&this.periodTarget.value&&e.searchParams.set("period",this.periodTarget.value),this.hasCashRegisterIdTarget&&this.cashRegisterIdTarget.value&&e.searchParams.set("cashRegisterId",this.cashRegisterIdTarget.value),t.next=10,fetch(e.toString());case 10:return r=t.sent,t.next=13,r.json();case 13:n=t.sent,this.lastPageNumber=n.lastPage?this.extractLastPage(n.lastPage):1,a="".concat(this.pageLabelValue," "),n.sessions&&n.sessions.length>0?(this.displayPrevNextBtn(),this.paginationContainerTarget.classList.remove("hidden"),this.tbodyTarget.innerHTML=n.sessions.map((function(t){var e=t.session_date?new Date(t.session_date).toLocaleDateString(o.localeValue,{day:"2-digit",month:"2-digit",year:"numeric"}):t.session_date,r=(t.total||0).toFixed(2).replace(".",",").replace(/\B(?=(\d{3})+(?!\d))/g," "),n=[];t.session&&t.session.forEach((function(t){var e=t.id;if(e){var r=o.ticketzUrlPatternValue.replace("SESSION_ID_PLACEHOLDER",e);n.push('\n                                    <div class="cash-register-item fw-bold">\n                                        <div class="cash-register-label">'.concat(t.label||o.cashRegisterLabelValue,'</div>\n                                        <div class="cash-register-icons">\n                                            <button type="button"\n                                                    class="btn p-0 border-0 text-dark"\n                                                    data-controller="retail--ticketz-printer"\n                                                    data-retail--ticketz-printer-retail--thermal-receipt-printer-outlet="#thermal-receipt-printer-controller"\n                                                    data-action="click->
2retail--ticketz-printer#download"\n                                                    data-retail--ticketz-printer-endpoint-param="').concat(r,'">\n                                                <i class="fa-solid fa-download"></i>\n                                            </button>\n                                            <button type="button"\n                                                    class="btn p-0 border-0 text-dark"\n                                                    data-controller="retail--ticketz-printer"\n                                                    data-retail--ticketz-printer-retail--thermal-receipt-printer-outlet="#thermal-receipt-printer-controller"\n                                                    data-action="click->retail--ticketz-printer#print"\n                                                    data-retail--ticketz-printer-endpoint-param="').concat(r,'">\n                                                <i class="fa-solid fa-print show-loader-on-click cursor-pointer"></i>\n                                            </button>\n                                        </div>\n                                    </div>\n                                '))}else console.error("Session ID not found in object:",t)}));var i=o.globalTicketzUrlPatternValue.replace("DATE_PLACEHOLDER",t.session_date),a='\n                            <div class="summary-button recap">\n                                '.concat(o.recapLabelValue,'\n                            </div>\n                            <div class="summary-button-icons">\n                                <button type="button"\n                                        class="btn p-0 border-0 text-dark"\n                                        data-controller="retail--ticketz-printer"\n                                        data-retail--ticketz-printer-retail--thermal-receipt-printer-outlet="#thermal-receipt-printer-controller"\n                                        data-action="click->retail--ticketz-printer#download"\n                                        data-retail--ticketz-printer-endpoint-param="').concat(i,'">\n                                    <i class="fa-solid fa-download"></i>\n                                </button>\n                                <button type="button"\n                                        class="btn p-0 border-0"\n                                        data-controller="retail--ticketz-printer"\n                                        data-retail--ticketz-printer-retail--thermal-receipt-printer-outlet="#thermal-receipt-printer-controller"\n                                        data-action="click->retail--ticketz-printer#print"\n                                        data-retail--ticketz-printer-endpoint-param="').concat(i,'">\n                                    <i class="fa-solid fa-print show-loader-on-click cursor-pointer"></i>\n                                </button>\n                            </div>\n                        ');return'\n                            <tr>\n                                <td>\n                                    <div class="fs-16">'.concat(e,'</div>\n                                </td>\n                                <td>\n                                    <div class="fs-16">').concat(r,'€</div>\n                                </td>\n                                <td>\n                                    <div class="ticketz-cash-registers-grid">\n                                        ').concat(n.join(""),'\n                                    </div>\n                                    <div class="ticketz-recap-container">\n                                        ').concat(a,"\n                                    </div>\n                                </td>\n                            </tr>\n                        ")})).join(""),this.currentPageTarget.textContent=a.concat(this.page)):(this.paginationContainerTarget.classList.add("hidden"),this.tbodyTarget.innerHTML='<tr><td colspan="3" class="text-center p-4">'.concat(this.noTicketzLabelValue,"</td></tr>")),t.next=22;break;case 19:t.prev=19,t.t0=t.catch(0),console.error("Pagination error:",t.t0);case 22:return t.prev=22,this.hideLoader(),t.finish(22);case 25:case"end":return t.stop()}}),t,this,[[0,19,22,25]])})),h=function(){var t=this,e=arguments;return new Promise((function(r,n){var i=u.apply(t,e);
2function o(t){a(i,r,n,o,c,"next",t)}function c(t){a(i,r,n,o,c,"throw",t)}o(void 0)}))},function(){return h.apply(this,arguments)})},{key:"applyFilters",value:function(){this.page=1,this.loadPage()}},{key:"nextPage",value:function(){this.page++,this.loadPage()}},{key:"prevPage",value:function(){this.page>1&&(this.page--,this.loadPage())}},{key:"showLoader",value:function(){this.loaderTarget.classList.remove("hidden"),this.ticketzListTarget.classList.add("hidden")}},{key:"hideLoader",value:function(){this.loaderTarget.classList.add("hidden"),this.ticketzListTarget.classList.remove("hidden")}},{key:"displayPrevNextBtn",value:function(){this.hidePaginationBtn(this.nextPageTarget,this.page!==this.lastPageNumber),this.hidePaginationBtn(this.prevPageTarget,1!==this.page)}},{key:"hidePaginationBtn",value:function(t,e){t.style.display=e?"":"none"}},{key:"extractLastPage",value:function(t){var e;if(!t)return 1;var r=t.split("?")[1];if(!r)return 1;var n=new URLSearchParams(r);return null!==(e=parseInt(n.get("page")))&&void 0!==e?e:1}}],r&&c(e.prototype,r),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),p}(r(6599).Qr);f(d,"values",{url:String,marketplaceCode:String,ticketzUrlPattern:String,globalTicketzUrlPattern:String,noTicketzLabel:String,recapLabel:String,cashRegisterLabel:String,pageLabel:String,locale:{type:String,default:"fr-FR"}}),f(d,"targets",["tbody","currentPage","loader","ticketzList","paginationContainer","nextPage","prevPage","startDate","endDate","period","cashRegisterId"])}}]);

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.