{"version":3,"names":["SearchResultItemArticle","render","pictureClass","this","item","showVideoIcon","newFlag","isNew","h","class","Translate","translate","Host","key","href","url","srcSet","teaserImage","media","src","thumbnail","loading","decoding","alt","title","width","height","newUntil","Date","SearchResultItemCompany","innerHTML","content","SearchResultItemProduct","itemScope","itemType","itemprop","teaserContent","renderSpecial","renderSubtitle","renderTeaserContent","renderPrice","subtitle","isSpecial","price","specialPrice","SliderTeaserS","componentDidLoad","window","innerWidth","initializeSlider","import","swiper","el","slidesPerView","slidesPerGroup","spaceBetween","slideClass","pagination","clickable","disconnectedCallback","destroy"],"sources":["source/script/component/search-result-item-article/search-result-item-article.tsx","source/script/component/search-result-item-company/search-result-item-company.tsx","source/script/component/search-result-item-product/search-result-item-product.tsx","source/script/component/slider-teaser-s/slider-teaser-s.tsx"],"sourcesContent":["import { Component, h, Host, Prop } from '@stencil/core';\nimport { SearchResultItem } from '~model/search-result-item';\nimport { Translate } from '~service/translation-service';\n\n@Component({\n tag: 'staedtler-search-result-item-article',\n})\nexport class SearchResultItemArticle {\n @Prop() item: SearchResultItem;\n\n render() {\n const pictureClass = {\n 'has-play': this.item.showVideoIcon,\n };\n const newFlag = this.isNew ? {Translate.translate('search.result.new')} : '';\n return (\n \n \n \n \n \n \n \n \n {this.item.title}\n \n \n {newFlag}\n {this.item.title}\n \n \n \n );\n }\n\n get isNew() {\n if (!this.item) {\n return false;\n }\n if (!this.item.newUntil) {\n return false;\n }\n\n return new Date(this.item.newUntil) > new Date();\n }\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\nimport { SearchResultItem } from '~model/search-result-item';\nimport { Translate } from '~service/translation-service';\n\n@Component({\n tag: 'staedtler-search-result-item-company',\n})\nexport class SearchResultItemCompany {\n @Prop() item: SearchResultItem;\n\n render() {\n return (\n \n
\n
{this.item.title}
\n

\n {Translate.translate('search.result.readMore')}\n

\n
\n
\n );\n }\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\nimport { SearchResultItem } from '~model/search-result-item';\n\n@Component({\n tag: 'staedtler-search-result-item-product',\n})\nexport class SearchResultItemProduct {\n @Prop() item: SearchResultItem;\n\n render() {\n return (\n \n \n \n \n {this.renderSpecial()}\n \n\n \n {this.item.title}\n \n \n {this.renderSubtitle()}\n {this.renderTeaserContent()}\n {this.renderPrice()}\n \n \n );\n }\n\n protected renderSubtitle() {\n return this.item.subtitle ? (\n \n {this.item.subtitle}\n \n ) : (\n ''\n );\n }\n\n protected renderTeaserContent() {\n return this.item.teaserContent ? (\n \n {this.item.teaserContent}\n \n ) : (\n ''\n );\n }\n\n protected renderSpecial() {\n return this.item.isSpecial ? % : '';\n }\n\n protected renderPrice() {\n return this.item.price ? (\n \n {this.item.price}\n {this.item.isSpecial ? {this.item.specialPrice} : ''}\n \n ) : (\n ''\n );\n }\n}\n","import { Build, Component, Element, h } from '@stencil/core';\n\n@Component({\n tag: 'staedtler-slider-teaser-s',\n})\nexport class SliderTeaserS {\n @Element() el: HTMLElement;\n swiper;\n\n async componentDidLoad() {\n if (!Build.isBrowser) {\n return;\n }\n if (window.innerWidth < 768) {\n const { initializeSlider } = await import('~service/swiper');\n this.swiper = initializeSlider(this.el, {\n slidesPerView: 1,\n slidesPerGroup: 1,\n spaceBetween: 0,\n slideClass: 'teaser-s',\n\n pagination: {\n el: '.swiper-pagination',\n clickable: true,\n },\n });\n }\n }\n\n disconnectedCallback() {\n if (this.swiper) {\n this.swiper.destroy();\n }\n }\n\n render() {\n return (\n
\n
\n \n
\n
\n
\n );\n }\n}\n"],"mappings":"mGAOaA,EAAuB,M,yBAGlC,MAAAC,GACE,MAAMC,EAAe,CACnB,WAAYC,KAAKC,KAAKC,eAExB,MAAMC,EAAUH,KAAKI,MAAQC,EAAA,QAAMC,MAAM,cAAcC,EAAUC,UAAU,sBAA+B,GAC1G,OACEH,EAACI,EAAI,CAAAC,IAAA,2CAACJ,MAAO,gDACXD,EAAA,KAAAK,IAAA,2CAAGC,KAAMX,KAAKC,KAAKW,KACjBP,EAAA,WAAAK,IA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