PageSourceSearch

https://www.opera.si/dist/monthCalendar.bundle.js

js opera.si collected 2026-09-24 23:40:08 UTC 14,592 bytes, 2 lines download raw bytes

1/*! For license information please see monthCalendar.bundle.js.LICENSE.txt */
2(()=>{"use strict";var t,e,r,n={1075:(t,e,r)=>{var n=r(6540),o=r(5338),i=r(7836),a=r(7404),u=r(8797),c=r(2150),s=r(1359),l=r(4883),f=r(1873),h=r(4848);function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}const v=function(){var t,e,r=(t=(0,n.useState)(new Date),e=2,function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return p(t,e);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)?p(t,e):void 0}}(t,e)||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.")}()),o=r[0],i=r[1],a=(0,c.w)(o),u=(0,s.p)(o);return console.log("calendar view wrapper"),(0,h.jsx)(f.V,{goToNextMonth:function(){i((function(t){return(0,l.P)(t,1)}))},goToPrevMonth:function(){i((function(t){return(0,l.P)(t,-1)}))},currentDate:o,monthStart:a,monthEnd:u})};var d=r(2389),y=r(2635);const g=JSON.parse('{"std":{"loading":"Loading..."},"calendar":{"prevMonth":"Previous Month","nextMonth":"Next Month","buyTickets":"Tickets","loadMore":"Load more"},"eventList":{"loading":"Loading events...","error":"Error loading events","prevMonth":"Previous month","nextMonth":"Next month","noEvents":"There are no events scheduled for the selected month.","changeRight":"We reserve the right to change the program.","type":"Type","month":"Month","year":"Year","submit":"Submit","premiere":"Premiere","soldOut":"Sold Out","more":"more","abonma":"Abonma","castExceptions":"Cast","upcomingEvents":"Upcoming events"},"eventType":{"0":"Opera","1":"Ballet","2":"Concert","3":"Other events","4":"Visiting","5":"ArtLab"},"eventShow":{"soldout":"Sold out","premiere":"Premiere"}}'),m=JSON.parse('{"std":{"loading":"Nalagam..."},"calendar":{"prevMonth":"Prejšnji mesec","nextMonth":"Naslednji mesec","buyTickets":"Vstopnice","loadMore":"Naloži več"},"eventList":{"loading":"Nalaganje dogodkov...","error":"Napaka pri nalaganju","prevMonth":"Prejšnji mesec","nextMonth":"Naslednji mesec","noEvents":"Za izbrani mesec ni vpisanih prireditev.","changeRight":"Pridržujemo si pravico do spremembe programa.","type":"Tip","month":"Mesec","year":"Leto","submit":"Potrdi","premiere":"Premiera","soldOut":"Razprodano","more":"Več info","abonma":"Abonma","castExceptions":"Zasedba vlog","upcomingEvents":"Prihajajoči dogodki"},"eventType":{"0":"Opera","1":"Balet","2":"Koncert","3":"Drugi dogodki","4":"Gostujoče predstave","5":"ArtLab"},"eventShow":{"soldout":"Razprodano","premiere":"Premiere"}}');var b,w,O,j=r(2564),S=r(9708);function E(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var x=(0,S.J1)(b||(b=E(["\n    fragment EventShowData on EventShow\n    {\n        id\n        startDate\n        startTime\n        location\n        eventAttraction\n        premiere\n        soldout\n        abonma\n        ticketUrl\n        notice\n        castExceptions\n        event {\n            id\n            title\n            eventAuthor\n            eventType\n            eventTypeName\n            eventAttraction\n            subtitle\n            urlSegment\n            link\n            ticketUrl\n        }\n    }\n"])));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 D(){D=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r,n){return Object.defineProperty(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(e,r,n,o){var i=r&&r.prototype instanceof h?r:h,a=Object.create(i.prototype);return c(a,"_invoke",function(e,r,n){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:t,done:!0}}
2for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=O(u,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var s=l(e,r,n);if("normal"===s.type){if(o=n.done?4:2,s.arg===f)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=4,n.method="throw",n.arg=s.arg)}}}(e,n,new E(o||[])),!0),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var f={};function h(){}function p(){}function v(){}var d={};c(d,i,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(x([])));g&&g!==r&&n.call(g,i)&&(d=g);var m=v.prototype=h.prototype=Object.create(d);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function r(o,i,a,u){var c=l(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==P(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var o;c(this,"_invoke",(function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}),!0)}function O(e,r){var n=r.method,o=e.i[n];if(o===t)return r.delegate=null,"throw"===n&&e.i.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.r]=a.value,r.next=e.n,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,f):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,f)}function j(t){this.tryEntries.push(t)}function S(e){var r=e[4]||{};r.type="normal",r.arg=t,e[4]=r}function E(t){this.tryEntries=[[-1]],t.forEach(j,this),this.reset(!0)}function x(e){if(null!=e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(P(e)+" is not iterable")}return p.prototype=v,c(m,"constructor",v),c(v,"constructor",p),p.displayName=c(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c(t,u,"GeneratorFunction")),t.prototype=Object.create(m),t},e.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new w(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(m),c(m,u,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.unshift(n);return function t(){for(;r.length;)if((n=r.pop())in e)return t.value=n,t.done=!1,t;return t.done=!0,t}},e.values=x,E.prototype={constructor:E,reset:function(e){if(this.prev=this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0][4];if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(t){a.type="throw",a.arg=e,r.next=t}for(var o=r.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],u=this.prev,c=i[1],s=i[2];if(-1===i[0])return n("end"),!1;if(!c&&!s)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=u){if(u<c)return this.method="next",this.arg=t,n(c),!0;if(u<s)return n(s),!1}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break}}o&&("break"===t||"continue"===t)&&o[0]<=e&&e<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o[2],f):this.complete(i)},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),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r[2]===t)return this.complete(r[4],r[3]),S(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r[0]===t){var n=r[4];if("throw"===n.type){var o=n.arg;S(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={i:x(e),r,n},"next"===this.method&&(this.arg=t),f}},e}function _(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function k(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
2e%2?_(Object(r),!0).forEach((function(e){M(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function M(t,e,r){return(e=function(t){var e=function(t){if("object"!=P(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=P(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==P(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function T(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}(0,S.J1)(w||(w=E(["\n    query ReadEventShows($startDate: String!, $eventID: ID, $page: Int) {\n        readEventShows(\n            filter: {\n                startDate: { gte: $startDate}\n                eventID: {eq: $eventID}\n            }\n            limit: $page\n            sort: { startDate: ASC}\n        ) {\n            nodes {\n               ...EventShowData\n            }\n        }\n    }\n"]))),(0,S.J1)(O||(O=E(["\n    query ReadEventShows($startDate: String!, $endDate: String!,$limit: Int) {\n        readEventShows(\n            filter: {\n                startDate: { gte: $startDate, lte: $endDate }\n            }\n            limit: $limit\n            sort: {startDate: ASC}\n        ) {\n            nodes {\n                ...EventShowData\n            }\n        }\n    }\n"])));var A=new i.R({uri:"/graphql",cache:new a.D({fragments:(0,j.G)(x)})});function N(t){return $.apply(this,arguments)}function $(){var t;return t=D().mark((function t(e){var r,i,a,c=arguments;return D().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=c.length>1&&void 0!==c[1]?c[1]:{},i=document.querySelector(e),a=(null==i?void 0:i.dataset.locale)||"sl",i&&(y.Ay.use(d.r9).init({lng:a,debug:!0,resources:{en:{translation:g},sl:{translation:m}}}),console.log("calendar view init"),o.createRoot(i).render((0,h.jsx)(n.StrictMode,{children:(0,h.jsx)(d.xC,{i18n:y.Ay,children:(0,h.jsx)(u.X,{client:A,children:(0,h.jsx)(v,k({},r))})})})));case 4:case"end":return t.stop()}}),t)})),$=function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){T(i,n,o,a,u,"next",t)}function u(t){T(i,n,o,a,u,"throw",t)}a(void 0)}))},$.apply(this,arguments)}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",(function(){console.log("init calendar view"),N("#react-calendar-root")})):(console.log("init calendar view"),N("#react-calendar-root"))}},o={};function i(t){var e=o[t];if(void 0!==e)return e.exports;var r=o[t]={exports:{}};return n[t](r,r.exports,i),r.exports}i.m=n,t=[],i.O=(e,r,n,o)=>{if(!r){var a=1/0;for(l=0;l<t.length;l++){for(var[r,n,o]=t[l],u=!0,c=0;c<r.length;c++)(!1&o||a>=o)&&Object.keys(i.O).every((t=>i.O[t](r[c])))?r.splice(c--,1):(u=!1,o<a&&(a=o));if(u){t.splice(l--,1);var s=n();void 0!==s&&(e=s)}}return e}o=o||0;for(var l=t.length;l>0&&t[l-1][2]>o;l--)t[l]=t[l-1];t[l]=[r,n,o]},i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},r=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,i.t=function(t,n){if(1&n&&(t=this(t)),8&n)return t;if("object"==typeof t&&t){if(4&n&&t.__esModule)return t;if(16&n&&"function"==typeof t.then)return t}var o=Object.create(null);i.r(o);var a={};e=e||[null,r({}),r([]),r(r)];for(var u=2&n&&t;"object"==typeof u&&!~e.indexOf(u);u=r(u))Object.getOwnPropertyNames(u).forEach((e=>a[e]=()=>t[e]));return a.default=()=>t,i.d(o,a),o},i.d=(t,e)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.j=45,(()=>{var t={45:0};i.O.j=e=>0===t[e];var e=(e,r)=>{var n,o,[a,u,c]=r,s=0;if(a.some((e=>
20!==t[e]))){for(n in u)i.o(u,n)&&(i.m[n]=u[n]);if(c)var l=c(i)}for(e&&e(r);s<a.length;s++)o=a[s],i.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return i.O(l)},r=self.webpackChunkcalendar_view=self.webpackChunkcalendar_view||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))})();var a=i.O(void 0,[96],(()=>i(1075)));a=i.O(a)})();

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.