PageSourceSearch

https://kulturhusetstadsteatern.se/themes/custom/khst_theme/vue_js…/favourite_icon_block/dist/main.js?tltj4e

js kulturhusetstadsteatern.se collected 2026-09-24 17:11:00 UTC 6,622 bytes, 2 lines download raw bytes

1!function(){"use strict";var e={262:function(e,t){t.A=(e,t)=>{const o=e.__vccOpts||e;for(const[e,r]of t)o[e]=r;return o}}},t={};function o(r){var a=t[r];if(void 0!==a)return a.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,o),n.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e=Vue,t=store,r=o.n(t),a={key:0,id:"favourite-event-icon",class:"header-right__favourite"},n={key:0,href:"/mina-sidor?my_account_page=favourite-events",class:"header-favourite__wrapper","aria-label":"favourite icon (login required)"},i=(0,e.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",class:"heart-icon heart-icon-black",width:"24",height:"24",fill:"#ff00ff",stroke:"#ff00ff","stroke-width":"2",viewBox:"0 0 24 24"},[(0,e.createElementVNode)("path",{d:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5\n          2 5.42 4.42 3 7.5 3c1.74 0 3.41 0.81\n          4.5 2.09C13.09 3.81 14.76 3 16.5 3\n          19.58 3 22 5.42 22 8.5c0 3.78-3.4\n          6.86-8.55 11.54L12 21.35z"})],-1),l={class:"header-favourite__count"},c=(0,e.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",class:"heart-icon heart-icon-black",width:"24",height:"24",fill:"#ff00ff",stroke:"#ff00ff","stroke-width":"2",viewBox:"0 0 24 24"},[(0,e.createElementVNode)("path",{d:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5\n            2 5.42 4.42 3 7.5 3c1.74 0 3.41 0.81\n            4.5 2.09C13.09 3.81 14.76 3 16.5 3\n            19.58 3 22 5.42 22 8.5c0 3.78-3.4\n            6.86-8.55 11.54L12 21.35z"})],-1),s={class:"header-favourite__count"},u={class:"favourite-modal__content"},d=[(0,e.createStaticVNode)('<svg width="30" height="30" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.29289 5.29289C5.68342 4.90237 6.31658 4.90237 6.70711 5.29289L12 10.5858L17.2929 5.29289C17.6834 4.90237 18.3166 4.90237 18.7071 5.29289C19.0976 5.68342 19.0976 6.31658 18.7071 6.70711L13.4142 12L18.7071 17.2929C19.0976 17.6834 19.0976 18.3166 18.7071 18.7071C18.3166 19.0976 17.6834 19.0976 17.2929 18.7071L12 13.4142L6.70711 18.7071C6.31658 19.0976 5.68342 19.0976 5.29289 18.7071C4.90237 18.3166 4.90237 17.6834 5.29289 17.2929L10.5858 12L5.29289 6.70711C4.90237 6.31658 4.90237 5.68342 5.29289 5.29289Z" fill="#000000"></path></g></svg>',1)],f=(0,e.createElementVNode)("h2",null,"Hittat en favorit?",-1),v=(0,e.createElementVNode)("p",null," Logga in eller skapa ett konto för att se och spara dina favoritevenemang. ",-1),p=(0,e.createElementVNode)("a",{href:"https://tix.kulturhusetstadsteatern.se/sv/login/?ReturnUrl=https://kulturhusetstadsteatern.se/login-redirect",class:"favourite-modal__link"},"Logga in/Skapa konto",-1),m=Vuex;function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function g(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function b(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?g(Object(o),!0).forEach((function(t){var r,a,n,i;r=e,a=t,n=o[t],i=function(e,t){if("object"!=h(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,"string");if("object"!=h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(a),(a="symbol"==h(i)?i:i+"")in r?Object.defineProperty(r,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[a]=n})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):g(Object(o)).forEac
1h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var y={name:"FavouriteIcon",data:function(){return{isLoggedIn:!1,isFavouriteModalVisible:!1}},methods:b(b({},(0,m.mapActions)(["updateFavouriteEventIds","fetchFavouriteIdsFromDB"])),{},{openFavouriteModal:function(){this.isFavouriteModalVisible=!0},closeFavouriteModal:function(){this.isFavouriteModalVisible=!1}}),computed:b({},(0,m.mapGetters)(["hasFavourites","totalFavourites"])),mounted:function(){var e=this;this.isLoggedIn="true"===localStorage.getItem("loggedInFavouriteCheck"),this.isLoggedIn?this.fetchFavouriteIdsFromDB().then((function(t){t||e.updateFavouriteEventIds()})):this.updateFavouriteEventIds()}};const k=(0,o(262).A)(y,[["render",function(t,o,r,m,h,g){return t.hasFavourites?((0,e.openBlock)(),(0,e.createElementBlock)("div",a,[h.isLoggedIn?((0,e.openBlock)(),(0,e.createElementBlock)("a",n,[i,(0,e.createElementVNode)("span",l,(0,e.toDisplayString)(t.totalFavourites),1)])):((0,e.openBlock)(),(0,e.createElementBlock)("button",{key:1,id:"favourite-modal-id",onClick:o[0]||(o[0]=function(){return g.openFavouriteModal&&g.openFavouriteModal.apply(g,arguments)}),class:"header-favourite__wrapper","aria-label":"favourite icon"},[c,(0,e.createElementVNode)("span",s,(0,e.toDisplayString)(t.totalFavourites),1)])),(0,e.createCommentVNode)(" Favourites Modal "),h.isFavouriteModalVisible?((0,e.openBlock)(),(0,e.createElementBlock)("div",{key:2,id:"favourite-modal-box",class:"header-favourite__modal",onClick:o[2]||(o[2]=(0,e.withModifiers)((function(){return g.closeFavouriteModal&&g.closeFavouriteModal.apply(g,arguments)}),["self"]))},[(0,e.createElementVNode)("div",u,[(0,e.createElementVNode)("span",{id:"favourite-modal-close-button",class:"header-favourite__modal--close",onClick:o[1]||(o[1]=function(){return g.closeFavouriteModal&&g.closeFavouriteModal.apply(g,arguments)})},d),f,v,p])])):(0,e.createCommentVNode)("v-if",!0),(0,e.createCommentVNode)(" Modal Overlay "),h.isFavouriteModalVisible?((0,e.openBlock)(),(0,e.createElementBlock)("div",{key:3,id:"favourite-modal-box-overlay",class:"favourite-modal__overlay",onClick:o[3]||(o[3]=function(){return g.closeFavouriteModal&&g.closeFavouriteModal.apply(g,arguments)})})):(0,e.createCommentVNode)("v-if",!0)])):(0,e.createCommentVNode)("v-if",!0)}]]);var w=k;(0,e.createApp)(w).use(r()).mount("#block-khst-theme-favourite-event-icon")}()}();
2//# sourceMappingURL=main.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.