PageSourceSearch

https://www.norema.no/gui/dist/cmp-pages-kitchenmodeloverview-kitchenmodeloverview.js

js norema.no collected 2026-10-10 01:49:28 UTC 19,645 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkathena=globalThis.webpackChunkathena||[]).push([[8943,2307],{1513:(e,t,i)=>{i.d(t,{n:()=>a,x:()=>n});var s=i(4672),r=i(8648);const a=new s.r({cloud:{cloudName:"dgg9enyjv"},url:{privateCdn:!0,secureDistribution:"assets.nobiadigital.com"}}),n=(e,t,i,s,n="fill",o=0)=>{const l=a.image(e),c=s||e.startsWith("http");o&&0!==o&&l.setVersion(o),c&&l.setDeliveryType("fetch"),l.quality("auto"),l.format("auto");const d=window.innerWidth<680?680:t,u=window.innerWidth<680?480:i;let h;if(h="fit"===n?(0,r.Tj)().width(d):("pad"===n?(0,r.vk)():(0,r.hl)()).width(d),u){const e=Math.round(d/u*1e4)/1e4;h.aspectRatio(e)}return l.resize(h),decodeURIComponent(l.toURL())}},7641:(e,t,i)=>{i.r(t),i.d(t,{KitchenModelOverview:()=>p,KitchenModelOverviewModel:()=>f});i(1313),i(9173);var s=i(538);const r={name:"a-kitchen-model-overview-model",props:{imageheight:Number,variant:Object,preload:Boolean,from:String},computed:{variantColorImages:function(){return this.variant.VariantColorImages.slice(0,6)},moreVariantsNumber:function(){return this.variant.VariantColorImages.length>6?this.variant.VariantColorImages.length-6:0}}};var a=i(1900);const n=(0,a.Z)(r,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.variant?i("div",{staticClass:"model-container"},[e.preload||"TeaserPage"===e.variant.BlockType?e._e():i("a-carousel",{attrs:{preventAutoplay:""}},e._l(e.variant.Images,(function(t,s){return i("div",{key:s,staticClass:"content-carousel__item swiper-slide"},[i("a",{staticClass:"item-link",attrs:{href:e.variant.Url}},[i("a-cloudinarypicture",{attrs:{"public-id":t.Key,width:1600,"width-mobile":720,"height-mobile":770,height:e.imageheight,"alt-text":t.Value}})],1)])})),0),e._v(" "),e.preload||"TeaserPage"===e.variant.BlockType?e._e():i("div",{staticClass:"modelinfo"},[i("a",{staticClass:"model-link",attrs:{href:e.variant.Url}},[i("h3",{staticClass:"model-variant-title"},[e._v(e._s(e.variant.Title))]),e._v(" "),e.variant.ShortDescription?i("p",{staticClass:"model-variant-description"},[e._v("\n        "+e._s(e.variant.ShortDescription)+"\n      ")]):e._e(),e._v(" "),i("div",{staticClass:"variants"},[e._l(e.variantColorImages,(function(e,t){return i("span",{key:t},[i("img",{class:{border:e.Border},attrs:{src:e.ImageUrl,alt:e.AltText,width:"22",height:"22",loading:"lazy"}})])})),e._v(" "),e.moreVariantsNumber>0?i("span",{staticClass:"variants__number"},[e._v("\n          +"+e._s(e.moreVariantsNumber)+"\n        ")]):e._e()],2)])]),e._v(" "),"TeaserPage"===e.variant.BlockType?i("div",{staticClass:"teaserblock",style:{backgroundColor:e.variant.BackgroundColor||null}},[i(e.variant.LinkUrl?"a":"div",{tag:"component",staticClass:"teaser",attrs:{href:e.variant.LinkUrl}},[i("div",{staticClass:"content"},[i("a-cloudinarypicture",{attrs:{"public-id":e.variant.Image,width:1600,height:1400,"width-mobile":720,"height-mobile":770}}),e._v(" "),i("div",{staticClass:"text-container"},[e.variant.PreheadingLabel?i("p",{staticClass:"title-label"},[e._v("\n            "+e._s(e.variant.PreheadingLabel)+"\n          ")]):e._e(),e._v(" "),e.variant.Heading?i("h3",[e._v(e._s(e.variant.Heading))]):e._e(),e._v(" "),e.variant.Text?i("div",{staticClass:"text"},[e._v(e._s(e.variant.Text))]):e._e(),e._v(" "),e.variant.LinkUrl?i("div",{class:["link",e.variant.LinkElementType],attrs:{href:e.variant.LinkUrl}},[e._v("\n            "+e._s(e.variant.LinkText)+"\n          ")]):e._e()])],1)])],1):e._e(),e._v(" "),"TeaserPage"===e.variant.BlockType?i("div",{staticClass:"modelinfo modelinfo-teaserblock"}):e._e()],1):e._e()}),[],!1,null,null,null).exports;const o="position-scroll";let l=!1;function c(){sessionStorage.setItem(o,String(window.scrollY))}function d(){(function(){const[e]=performance.getEntriesByType("navigation");return"back_forward"===e?.type||"reload"===e?.type})()&&function(){const e=sessionStorage.getItem(o);if(!e)return;const t=Number(e);Number.isFinite(t)&&window.scrollTo(0,t)}()}const u={name:"a-kitchen-model-overview",props:{contentId:Number},data:()=>({variants:[{ParentId:"1"},{ParentId:"2"},{ParentId:"3"}],models:[{ParentId:"1"},{ParentId:"2"},{ParentId:"3"}],filteredVariants:[],filters:[],categoryFilters:[{},{},{}],selectedCategories:[],groupedResult:!0,selectedFilterCount:[],openFilter:[],preload:!0,scrollRestored:!1}),computed:{isFilteredList:function(){return this.selectedCategories.length>0}},methods:{updateStructuredData:function(){let e=[];
1if(this.filteredVariants&&this.filteredVariants.length>0?e=this.filteredVariants:this.variants&&this.variants.length>0?e=this.variants:this.models&&this.models.length>0&&(e=this.models),!e||0===e.length)return;let t=document.querySelectorAll('script[type="application/ld+json"]'),i=null,s=null;for(let e=0;e<t.length;e++)try{const r=JSON.parse(t[e].textContent);if(Array.isArray(r)&&r.some((e=>"CollectionPage"===e["@type"]))){i=t[e],s=r;break}}catch(e){console.error("Error parsing JSON-LD:",e)}i&&s||(i=document.createElement("script"),i.type="application/ld+json",document.head.appendChild(i),s=[]);let r=s.find((e=>"CollectionPage"===e["@type"]));r||(r={"@context":"https://schema.org","@type":"CollectionPage",name:document.querySelector("h1")?.innerText||document.title,url:window.location.href},s.push(r));const a=e.map((e=>{let t=e.StructureDataImageUrl;const i=e.Url?e.Url.startsWith("http")?e.Url:window.location.origin+e.Url:window.location.href,s={"@type":"Product",name:e.Title||e.Heading||"Kitchen Model",description:e.ShortDescription||e.Text||"",url:i};return t&&(s.image=t),e.Price&&(s.offers={"@type":"Offer",price:e.Price.replace(/[^\d.,]/g,""),priceCurrency:"EUR"}),s}));r.mainEntity?(r.mainEntity.itemListElement=a,r.mainEntity.numberOfItems=a.length):r.mainEntity={"@type":"ItemList",itemListElement:a,numberOfItems:a.length},i.textContent=JSON.stringify(s,null,2)},addSelectedCategories(e){this.filters.forEach((t=>{for(const i in t)t.hasOwnProperty(i)&&"Categories"===i&&t[i].forEach((t=>{t.ContentId===e&&(this.selectedCategories.includes(t)||this.selectedCategories.push(t))}))})),this.categoryFilters.forEach((t=>{for(const i in t)t.hasOwnProperty(i)&&"Categories"===i&&t[i].forEach((t=>{t.ContentId===e&&(this.selectedCategories.includes(t)||this.selectedCategories.push(t))}))}))},removeSelectedCategories(e){this.filters.forEach((t=>{for(const i in t)t.hasOwnProperty(i)&&"Categories"===i&&t[i].forEach((t=>{t.ContentId===e&&this.selectedCategories.includes(t)&&this.selectedCategories.splice(this.selectedCategories.indexOf(t),1)}))})),this.categoryFilters.forEach((t=>{for(const i in t)t.hasOwnProperty(i)&&"Categories"===i&&t[i].forEach((t=>{t.ContentId===e&&this.selectedCategories.includes(t)&&this.selectedCategories.splice(this.selectedCategories.indexOf(t),1)}))}))},showModel:function(e){var t=e%10;return 0==t||3==t||5==t||8==t},getAllModels:function(){this.$http.get("/KitchenModelOverviewPage/GetAllModels/",{params:{contentId:this.contentId}}).then((e=>{e.data.models.length>3&&(this.models[0]=e.data.models[0],this.models[1]=e.data.models[1],this.models[2]=e.data.models[2]),this.models=e.data.models,this.filters=e.data.filters,this.categoryFilters=e.data.categoryFilters,this.variants=null;var t=this.getParsedQueryString("filters");null!=t&&""!=t&&(this.getPreSelectedCategories(),this.filterItems()),this.preload=!1,this.updateStructuredData(),t&&!this.groupedResult&&!this.variants||this.maybeRestoreScrollAfterLoad()}))},getAllVariants:function(){this.$http.get("/KitchenModelOverviewPage/GetAllVariants/",{params:{contentId:this.contentId}}).then((e=>{this.variants=e.data.variants,this.filters=e.data.filters,this.categoryFilters=e.data.categoryFilters,this.getPreSelectedCategories(),this.filterItemVariants(this.variants),this.preload=!1,this.updateStructuredData(),this.maybeRestoreScrollAfterLoad()}))},maybeRestoreScrollAfterLoad:function(){this.scrollRestored||(this.scrollRestored=!0,setTimeout((()=>{d()}),1e3))},filterItems:function(){this.setGroupResult(),this.groupedResult?this.filterItemVariants(this.models):this.variants?this.filterItemVariants(this.variants):this.getAllVariants(),this.updateStructuredData()},setGroupResult:function(){var e=this.groupBy(this.selectedCategories,"ParentId");for(var t in this.groupedResult=!0,e){var i=this.categoryFilters.filter((function(e){if(e.ContentId==t)return e}));i.length<1&&(i=this.filters.filter((function(e){if(e.ContentId==t)return e}))),this.groupedResult&&(this.groupedResult=i[0].GroupResult)}},filterItemVariants:function(e){var t=this.groupBy(this.selectedCategories,"ParentId");for(var i in t)e=this.filterItemsByFilterCategory(e,t[i]);this.filteredVariants=e.sort((function(e,t){return e.SortIndex<t.SortIndex?-1:e.SortIndex>t.SortIndex?1:0}))},filterItemsByFilterCategory:function(e,t){return e.filter((function(e){return 0==t.length||t.filter((function(t){return e.Categories&&e.Categories.filter((function(e){return e.ContentId==t.ContentId})).length>0})).length>0}))},setSelectedCategory:function(e){var t=[];if(this.selectedCategories.filter((function(t){return t==e})).length>0){this.selectedCategories.splice(this.selectedCategories.indexOf(e),1),this.removeSelectedCategories(e.ContentId);const i=t.indexOf(e.ContentId);-1!==i&&t.splice(i,1)}else this.selectedCategories.push(e),this.addSelectedCategories(e.ContentId);
1this.selectedCategories.forEach((function(e){t.includes(e.ContentId)||t.push(e.ContentId)}));var i=new URL(window.location.href);t.length>0?i.searchParams.set("filters",t.join(",")):(i.searchParams.delete("filters"),this.groupedResult=!0),window.history.pushState(null,"",i),this.updateFilterCount(),this.filterItems()},checkSelectedCategory:function(e){return this.selectedCategories.filter((function(t){return t==e})).length>0},clearSelection:function(){this.selectedCategories=[],this.updateFilterCount();var e=new URL(window.location.href);e.searchParams.delete("filters"),window.history.pushState(null,"",e),this.closeOverlay("filterOverlay")},groupBy:function(e,t){const i={};return e.forEach((e=>{i[e[t]]||(i[e[t]]=[]),i[e[t]].push(e)})),i},getPreSelectedCategories:function(){var e=this.getParsedQueryString("filters");if(null!=e){var t=e.split(","),i=[];for(var s in t)this.filters.filter((function(e){e.Categories.filter((function(e){e.ContentId==t[s]&&i.push(e)}))})),this.categoryFilters.filter((function(e){e.Categories.filter((function(e){e.ContentId==t[s]&&i.push(e)}))}));this.selectedCategories=i,this.updateFilterCount()}},getParsedQueryString:function(e){for(var t=window.location.search.substring(1).split("&"),i=0;i<t.length;i++){var s=t[i].split("="),r=decodeURIComponent(s[0]);if(null!=r&&r.toLocaleLowerCase()==e)return decodeURIComponent(s[1])}return""},updateFilterCount:function(){this.selectedFilterCount=this.groupBy(this.selectedCategories,"ParentId")},openOverlay:function(e){this.$root.$refs[e]&&this.$root.$refs[e].openOverlay()},closeOverlay:function(e){this.$root.$refs[e]&&this.$root.$refs[e].closeOverlay()},setOpenFilter:function(e){this.openFilter=e},isFiltered(){return Object.keys(this.selectedFilterCount).length>0},updateOpenFilter(){this.openFilter=[]}},mounted:function(){l||(l=!0,"scrollRestoration"in history&&(history.scrollRestoration="manual"),window.addEventListener("pagehide",c)),this.getAllModels()}};const h=(0,a.Z)(u,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",[e._t("default",null,{models:e.models,filteredVariants:e.filteredVariants,filters:e.filters,categoryFilters:e.categoryFilters,selectedCategories:e.selectedCategories,checkSelectedCategory:e.checkSelectedCategory,setSelectedCategory:e.setSelectedCategory,groupedResult:e.groupedResult,openOverlay:e.openOverlay,closeOverlay:e.closeOverlay,selectedFilterCount:e.selectedFilterCount,clearSelection:e.clearSelection,isFilteredList:e.isFilteredList,showModel:e.showModel,isFiltered:e.isFiltered,openFilter:e.openFilter,setOpenFilter:e.setOpenFilter,updateOpenFilter:e.updateOpenFilter,preload:e.preload,updateStructuredData:e.updateStructuredData})],2)}),[],!1,null,null,null).exports,p=s.default.component(h.name,h),f=s.default.component(n.name,n)},1313:(e,t,i)=>{i.r(t),i.d(t,{CloudinaryPicture:()=>f});var s=i(538),r=i(2469),a=i(8648),n=i(1618),o=i(8718),l=i(1513);const c={name:"a-cld-source",props:{publicId:String,format:{type:String,required:!0},width:{type:Number,default:0,required:!0},height:{type:Number,default:0},fetch:{type:Boolean,default:!1},fallbackImage:{type:String,default:""},mqSize:{type:Number,required:!0},size:{type:Number,required:!0},cropType:{type:String,default:"fill"},isStorePage:{type:Boolean,default:!1}},computed:{srcset(){const e=l.n.image(this.publicId);this.fetch&&e.setDeliveryType("fetch"),e.quality("auto"),e.format(this.format);let t=("pad"===this.cropType?(0,a.vk)():(0,a.hl)()).width(this.width);if(this.isStorePage&&t.gravity((0,o.v0)((0,n.L4)())),this.height){const e=Math.round(this.width/this.height*1e4)/1e4;t.aspectRatio(e)}return e.resize(t),this.fallbackImage&&e.delivery((0,r.FM)(this.fallbackImage.replace(/\//g,":"))),decodeURIComponent(e.toURL())},mq(){return`(min-width: ${this.mqSize}px)`},type(){return`image/${this.format}`}}};var d=i(1900);const u=(0,d.Z)(c,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("source",{attrs:{srcset:e.srcset,media:e.mq,type:e.type}})}),[],!1,null,null,null).exports,h={name:"a-cloudinarypicture",props:{publicId:String,publicIdMobile:String,width:{type:Number,default:0,required:!0},widthMobile:{type:Number,default:0},height:{type:Number,default:0},heightMobile:{type:Number,default:0},cssClass:{type:String,default:""},altText:String,title:{type:String,default:void 0},loadingType:{type:String,default:"lazy"},fetch:{type:Boolean,default:!1},fallbackImage:{type:String,default:""},cropType:{type:String,default:"fill"},isStorePage:{type:Boolean,default:!1},version:{type:Number,default:0}},components:{CloudinarySource:u},data:()=>({sizes:[{size:2560,mq:1921},{size:1920,mq:1601},{size:1600,mq:1241},{size:1240,mq:961},{size:960,mq:681},{size:680,mq:361},{size:360,mq:0}]}),computed:{titleAttr(){return this.title?this.title:this.altText||void 0},isFetch(){return this.fetch||this.publicId.startsWith("http")},src(){const e=l.n.image(this.publicId);this.version&&0!==this.version&&e.setVersion(this.version),this.isFetch&&e.setDeliveryType("fetch"),e.quality("auto"),e.format("auto");const t=window.innerWidth<680&&this.widthMobile||this.width,i=window.innerWidth<680&&this.heightMobile||this.height;let s=("pad"===this.cropType?(0,a.vk)():(0,a.hl)()).width(t);if(this.isStorePage&&s.gravity((0,o.v0)((0,n.L4)())),i){const e=Math.round(t/i*1e4)/1e4;s.aspectRatio(e)}return e.resize(s),this.fallbackImage&&e.delivery((0,r.FM)(this.fallbackImage.replace(/\//g,":"))),decodeURIComponent(e.toURL())},sources(){const e="auto";let t=this.sizes.filter((e=>e.size<this.width));if(!t.find((e=>e.size==this.width))){const e=t.length>0?t[0].size+1:0;t.unshift({size:this.width,mq:e})}const i=this.widthMobile||this.width,s=this.heightMobile||this.height;return t.map((t=>{const r=t.size<=680?i:this.width,a=t.size<=680?s:this.height;return{key:`${r}_${a}_auto_${t.size}_${t.mq}`,format:e,mq:t.mq,size:t.size,width:r,height:a,cropType:this.cropType}}))}}};const p=(0,d.Z)(h,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("picture",[e._l(e.sources,(function(t){return i("CloudinarySource",{key:t.key,attrs:{publicId:e.publicId,fetch:e.isFetch,format:t.format,mqSize:t.mq,size:t.size,width:t.width,height:t.height,"crop-type":t.cropType,fallbackImage:e.fallbackImage,"is-store-page":e.isStorePage}})})),e._v(" "),i("img",{class:"image-file "+e.cssClass,attrs:{src:e.src,width:e.width,height:e.height>0?e.height:"",loading:e.loadingType,alt:e.altText,title:e.titleAttr}})],2)}),[],!1,null,null,null).exports,f=s.default.component(p.name,p)},9173:(e,t,i)=>{i.r(t),i.d(t,{Carousel:()=>o});var s=i(538),r=i(188);const a={name:"a-carousel",props:{delay:Number,hideArrows:Boolean,hideBullets:Boolean,cssclass:String,preventAutoplay:Boolean,pauseOnHover:Boolean},data(){return{intervalId:0,intervalDelay:parseInt(this.delay)||5e3,autoPlay:!this.preventAutoplay,hideArrowsOutput:this.hideArrows,hideBulletsOutput:this.hideBullets,swiper:null,pauseOnHover
1Enter:null,pauseOnHoverLeave:null}},methods:{transformProps(e){let t=Math.floor(this.intervalDelay+1200);e.style=`--td: ${t}ms;`},checkSlideCount(e){1==e&&(this.hideArrowsOutput=!0,this.hideBulletsOutput=!0)},autoplayVideoActiveSlide(e,t){if(!e)return;const i=e.play();void 0!==i&&i.then((()=>{})).catch((t=>{if(t)throw t;e.muted=!0,e.play()})),t.autoplay.stop(),e.onended=()=>{t.autoplay.start(),t.slideNext()}}},mounted(){var e=this,t=[...e.$refs.carousel.querySelectorAll(".swiper-slide")];const i=new r.ZP(this.$refs.carousel,{modules:[r.W_,r.tl,r.xW,r.pt],slidesPerView:1,rewind:!0,speed:800,watchSlidesVisibility:!1,effect:"fade",fadeEffect:{crossFade:!0},autoplay:{delay:this.intervalDelay},pagination:{el:this.$refs.bullets,type:"bullets",clickable:!0},navigation:{nextEl:this.$refs.swiperNext,prevEl:this.$refs.swiperPrev},on:{beforeInit:function(){const i=this.el;e.transformProps(i,this.activeIndex),e.checkSlideCount(t.length)},init:function(){const t=this.el;e.transformProps(t,this.activeIndex),setTimeout((function(){t.classList.add("has-loaded")}),400);const i=this.slides[this.activeIndex];if(i){const t=i.querySelector("video");if(i.querySelector(".play-video")||!e.autoPlay)return;e.autoplayVideoActiveSlide(t,this)}},slideChange:function(){const t=this.el;e.transformProps(t,this.activeIndex);const i=this.slides[this.activeIndex];if(i){const t=i.querySelector("video");if(i.querySelector(".play-video")||!e.autoPlay)return;e.autoplayVideoActiveSlide(t,this)}}}});if(this.swiper=i,this.autoPlay||i.autoplay.stop(),this.pauseOnHover&&this.autoPlay){const e=this.$refs.carousel;this.pauseOnHoverEnter=()=>i.autoplay.stop(),this.pauseOnHoverLeave=()=>i.autoplay.start(),e.addEventListener("mouseenter",this.pauseOnHoverEnter),e.addEventListener("mouseleave",this.pauseOnHoverLeave)}i.slides.forEach((e=>{const t=e.querySelector("video"),s=e.querySelector(".play-video");(t||s)&&function(e,t){e&&e.addEventListener("click",(s=>{s.preventDefault(),e.style.opacity=0,e.style.pointerEvents="none",t.setAttribute("controls","controls"),t.play(),i.autoplay.stop()}))}(s,t)}))},beforeDestroy(){const e=this.$refs.carousel;e&&this.pauseOnHoverEnter&&(e.removeEventListener("mouseenter",this.pauseOnHoverEnter),e.removeEventListener("mouseleave",this.pauseOnHoverLeave),this.pauseOnHoverEnter=null,this.pauseOnHoverLeave=null),this.swiper&&(this.swiper.destroy(!0,!0),this.swiper=null)}};const n=(0,i(1900).Z)(a,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"carousel",staticClass:"swiper content-carousel",class:e.cssclass},[i("div",{staticClass:"content-carousel__item-container swiper-wrapper"},[e._t("default")],2),e._v(" "),i("div",{staticClass:"content-carousel__navigation-container"},[e.hideArrowsOutput?e._e():i("div",{staticClass:"swiper-buttons"},[i("button",{ref:"swiperPrev",staticClass:"swiper-button swiper-button-prev",attrs:{"aria-label":"Previous slide"}},[i("i",{staticClass:"icon icon-arrow-previous"})]),e._v(" "),i("button",{ref:"swiperNext",staticClass:"swiper-button swiper-button-next",attrs:{"aria-label":"Next slide"}},[i("i",{staticClass:"icon icon-arrow-previous"})])]),e._v(" "),e.hideBulletsOutput?e._e():i("div",{ref:"bullets",staticClass:"swiper-pagination"})])])}),[],!1,null,null,null).exports,o=s.default.component(n.name,n)},2469:(e,t,i)=>{i.d(t,{FM:()=>a});i(4405),i(2021),i(8779);var s=i(8315);i(4799);s.x;var r=i(4883);r.a;r.a;i(8873);r.a;function a(e){return new s.x("d",e,"defaultImage")}}}]);

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.