PageSourceSearch

https://www.royalcanin.com/_next/static/chunks/141.0d09be096003d567.js

js royalcanin.com collected 2026-09-24 17:10:07 UTC 32,362 bytes, 195 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[141],{15765:(t,r,c)=>{c.d(r,{R:()=>e.R});var e=c(91165)},21479:(t,r,c)=>{c.d(r,{A:()=>e});const e=c(64283).AH`:host{display:block;position:relative;width:auto;--rc-product-card-custom-width: unset}:host([variant=portrait]){--rc-product-card-width: 19.5rem}:host([variant=portrait][size=mobile]){--rc-product-card-width: 20.5rem}:host([variant=mobile-carousel]){--rc-product-card-width: 15.25rem}:host([variant=landscape]){--rc-product-card-width: auto}:host([variant=cart]){--rc-product-card-width: 19.5rem}:host([variant=cart][size=mobile]){--rc-product-card-width: 20.5rem}*,*::before,*::after{box-sizing:border-box}::slotted(a[slot=product-title-link]){all:revert;-webkit-box-orient:vertical;color:var(--color-text-brand);display:block;display:-webkit-box;font-size:var(--text-font-size-title-m);font-weight:var(--text-font-weight-regular);-webkit-line-clamp:2;line-clamp:2;line-height:var(--text-line-height-title-m);overflow:hidden;text-decoration:none}::slotted(a[slot=product-title-link]:hover),::slotted(a[slot=product-title-link]:focus){color:var(--color-text-action-secondary)}.rc-product-card{background:var(--color-surface-primary);border:1px solid var(--color-border-quarternary);border-radius:var(--radius-l);box-sizing:border-box;display:flex;font-size:var(--text-font-size-body-m);height:100%;line-height:var(--text-line-height-body-m);min-width:var(--rc-product-card-width);position:relative;width:var(--rc-product-card-custom-width, var(--rc-product-card-width))}.rc-product-card:has(.rc-product-card__top-action:hover){box-shadow:0 var(--spacing-xs) var(--spacing-l) 0 var(--color-surface-shadow)}.rc-product-card--clickable:hover{box-shadow:0 var(--spacing-xs) var(--spacing-l) 0 var(--color-surface-shadow)}.rc-product-card--clickable:has(.rc-product-card__top-action:hover),.rc-product-card--clickable:has(.rc-product-card__actions:hover){box-shadow:none}.rc-product-card--portrait,.rc-product-card--mobile-carousel{flex-direction:column}.rc-product-card--landscape,.rc-product-card--cart{flex-direction:row}.rc-product-card--cart{flex-direction:column}.rc-product-card--mobile,.rc-product-card--mobile-carousel,.rc-product-card--landscape,.rc-product-card--cart{font-size:var(--text-font-size-meta);line-height:var(--text-line-height-meta)}.rc-product-card__insert-top{display:flex;overflow:hidden;position:absolute;width:100%}.rc-product-card--portrait .rc-product-card__insert-top,.rc-product-card--mobile-carousel .rc-product-card__insert-top{inset-inline-start:var(--spacing-xl);max-width:70%;top:var(--spacing-xl)}.rc-product-card--cart .rc-product-card__insert-top{border-radius:var(--radius-m) var(--radius-m) 0 0;display:flex;justify-content:center}
1.rc-product-card__top-action{display:block;inset-inline-end:var(--spacing-xl);position:absolute;top:var(--spacing-xl);z-index:2}.rc-product-card--cart .rc-product-card__top-action{inset-inline-end:var(--spacing-l);top:var(--spacing-l)}.rc-product-card__image-section{align-items:flex-start;display:flex;flex-shrink:0;padding:0;position:relative}.rc-product-card__image-section .rc-product-card__product-image{display:flex;justify-content:center;overflow:hidden;width:100%}.rc-product-card__image-section .rc-product-card__product-image img{block-size:auto;max-inline-size:100%}.rc-product-card--landscape .rc-product-card__image-section .rc-product-card__product-image{border-radius:var(--radius-l) var(--radius-l) 0 0}.rc-product-card--landscape .rc-product-card__image-section .rc-product-card__product-image img{-o-object-fit:cover;object-fit:cover}.rc-product-card--portrait .rc-product-card__image-section .rc-product-card__product-image{border-radius:var(--radius-l) var(--radius-l) 0 0;height:15.375rem}.rc-product-card--portrait .rc-product-card__image-section .rc-product-card__product-image img{aspect-ratio:4/3}.rc-product-card--cart .rc-product-card__image-section .rc-product-card__product-image{border-radius:var(--radius-l) var(--radius-l) 0 0;height:4rem;width:3rem}.rc-product-card--mobile-carousel .rc-product-card__image-section .rc-product-card__product-image{border-radius:var(--radius-l) var(--radius-l) 0 0}.rc-product-card--mobile-carousel .rc-product-card__image-section .rc-product-card__product-image img{aspect-ratio:4/3}.rc-product-card--cart .rc-product-card__image-section{align-items:center;justify-content:center;padding:0}.rc-product-card--cart .rc-product-card__image-section img{-o-object-fit:cover;object-fit:cover}.rc-product-card__image-section ::part(rc-product-card__image-slot){display:flex;justify-content:center;overflow:hidden;width:100%}.rc-product-card__image-section ::part(rc-product-card__image-slot) img,.rc-product-card__image-section ::part(rc-product-card__image-slot) picture{block-size:auto;max-inline-size:100%}.rc-product-card--landscape .rc-product-card__image-section ::part(rc-product-card__image-slot){border-radius:var(--radius-l) var(--radius-l) 0 0}.rc-product-card--landscape .rc-product-card__image-section ::part(rc-product-card__image-slot) img,.rc-product-card--landscape .rc-product-card__image-section ::part(rc-product-card__image-slot) picture{-o-object-fit:cover;object-fit:cover}.rc-product-card--portrait .rc-product-card__image-section ::part(rc-product-card__image-slot){border-radius:var(--radius-l) var(--radius-l) 0 0;height:15.375rem}.rc-product-card--portrait .rc-product-card__image-section ::part(rc-product-card__image-slot) img,.rc-product-card--portrait .rc-product-card__image-section ::part(rc-product-card__image-slot) picture{aspect-ratio:4/3}.rc-product-card--cart .rc-product-card__image-section ::part(rc-product-card__image-slot){border-radius:var(--radius-l) var(--radius-l) 0 0;height:4rem;width:3rem}.rc-product-card--mobile-carousel .rc-product-card__image-section ::part(rc-product-card__image-slot){border-radius:var(--radius-l) var(--radius-l) 0 0}.rc-product-card--mobile-carousel .rc-product-card__image-section ::part(rc-product-card__image-slot) img,.rc-product-card--mobile-carousel .rc-product-card__image-section ::part(rc-product-card__image-slot) picture{aspect-ratio:4/3}.rc-product-card--landscape .rc-product-card__image-section{align-items:center;flex:0 1 30%;flex-shrink:1;min-width:7rem;padding:var(--spacing-xl) 0}.rc-product-card--portrait .rc-product-card__promo-badge,.rc-product-card--mobile-carousel .rc-product-card__promo-badge{position:absolute;top:calc(-1*var(--spacing-l))}.rc-product-card--mobile-carousel .rc-product-card__promo-badge{top:calc(-1*var(--spacing-m))}.rc-product-card__title-section{align-items:center;display:flex;gap:var(--spacing-s)}.rc-product-card__title-section .product-title,.rc-product-card__title-section .product-title a{-webkit-box-orient:vertical;color:var(--color-text-brand) !important;display:-webkit-box;flex:1;font-size:var(--text-font-size-title-m);
1font-weight:var(--text-font-weight-regular);-webkit-line-clamp:2;line-clamp:2;line-height:var(--text-line-height-title-m);margin:0;overflow:hidden}.rc-product-card--portrait .rc-product-card__title-section .product-title,.rc-product-card--portrait .rc-product-card__title-section .product-title a{height:calc(2*var(--text-line-height-title-m))}.rc-product-card--mobile-carousel .rc-product-card__title-section .product-title,.rc-product-card--mobile-carousel .rc-product-card__title-section .product-title a{font-size:var(--text-font-size-title-s);height:calc(2*var(--text-line-height-title-s));line-height:var(--text-line-height-title-s)}.rc-product-card--cart .rc-product-card__title-section .product-title,.rc-product-card--cart .rc-product-card__title-section .product-title a{font-size:var(--text-font-size-title-xs);line-height:var(--text-line-height-title-xs);max-height:calc(2*var(--text-line-height-title-xs))}.rc-product-card--landscape .rc-product-card__title-section .product-title,.rc-product-card--landscape .rc-product-card__title-section .product-title a{font-size:var(--text-font-size-title-s);line-height:var(--text-line-height-title-s);max-height:calc(2*var(--text-line-height-title-s))}.rc-product-card--cart .rc-product-card__title-section,.rc-product-card--landscape .rc-product-card__title-section{padding-inline-end:var(--spacing-2xl)}.rc-product-card__rating{align-items:center;display:flex;gap:var(--spacing-xs)}.rc-product-card__price{display:flex;gap:var(--spacing-s)}.rc-product-card__controls{align-items:flex-start;display:flex;gap:var(--spacing-s);padding-top:var(--spacing-s)}.rc-product-card__controls>*{flex:1 1 12rem;min-width:0}.rc-product-card--mobile-carousel .rc-product-card__controls{gap:var(--spacing-s)}.rc-product-card--cart .rc-product-card__controls{align-items:flex-end;display:flex;flex-flow:column wrap;gap:var(--spacing-s);justify-content:space-between}.rc-product-card__product-type-select,.rc-product-card__quantity-selector{display:flex;flex-flow:row wrap;gap:var(--spacing-s);min-width:0;width:100%}.rc-product-card__product-type-select>*,.rc-product-card__quantity-selector>*{flex:1 1 12rem;min-width:0}.rc-product-card__actions{display:flex;flex-flow:column nowrap;gap:var(--spacing-s);justify-content:center;margin-top:auto;position:relative;z-index:2}.rc-product-card__actions>*{min-width:0;width:100%}.rc-product-card__actions .rc-product-link{display:flex;justify-content:center;margin-top:var(--spacing-l);width:100%}.rc-product-card--cart .rc-product-card__actions{display:flex;flex-flow:row wrap;gap:var(--spacing-s);justify-content:flex-start;margin-top:0;row-gap:var(--spacing-m);width:100%}.rc-product-card--cart .rc-product-card__actions>*:not(.rc-product-link){flex:1 1 0;min-width:0;width:auto}.rc-product-card--cart .rc-product-card__actions .rc-product-card__product-type-select{display:contents}.rc-product-card--cart .rc-product-card__actions .rc-product-link{margin-top:0}.rc-product-card--portrait .rc-product-card__actions,.rc-product-card--mobile-carousel .rc-product-card__actions,.rc-product-card--landscape .rc-product-card__actions{padding-top:var(--spacing-s)}.rc-product-card .rc-product-info{color:var(--color-text-primary);display:flex;flex-direction:column;gap:var(--spacing-2xs)}.rc-product-card .rc-product-info__meta{align-items:center;display:flex;font-weight:var(--text-font-weight-regular);gap:var(--spacing-xs)}.rc-product-card .rc-product-info>.rc-product-info__meta:not(:has(>*)),.rc-product-card .rc-product-info>.rc-product-info__meta:not(:has(>span)){display:none}.rc-product-card .rc-product-info:not(:has(>.rc-product-info__meta>*)){display:none}.rc-product-card .rc-product-info__separator{border-left:1px solid var(--color-border-quarternary);color:var(--color-text-secondary);height:16px}.rc-product-card .rc-product-info__additional-label{background-color:var(--color-surface-quarternary);border-radius:var(--radius-m);color:var(--color-text-invert);display:inline-block;font-size:var(--text-font-size-body-m);font-weight:var(--text-font-weight-medium);line-height:var(--text-line-height-body-m);margin-top:var(--spacing-s);max-width:70%;padding:0 var(--spacing-s);text-overflow:ellipsis}
1.rc-product-card--mobile-carousel .rc-product-info__meta{align-items:flex-start;height:calc(2*var(--text-line-height-meta))}.rc-product-card--mobile-carousel .rc-product-info__meta>span{-webkit-box-orient:vertical;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}.rc-product-details{display:flex;flex:1 1 auto;flex-direction:column;gap:var(--spacing-xs);padding:var(--spacing-xl) var(--spacing-xl) var(--spacing-xl);position:relative}.rc-product-details__stock-row{align-items:center;display:flex;flex-direction:row;gap:var(--spacing-s);justify-content:flex-start;margin-top:var(--spacing-xs)}.rc-product-details__stock-row:not(:has(>.rc-product-card__stock-status,>.rc-product-details__loyalty-points)){display:none}.rc-product-details__stock-row .rc-product-details__loyalty-points{background-color:var(--color-surface-panel);border:1px solid var(--color-border-quarternary);border-radius:var(--radius-m);color:var(--color-text-secondary);display:flex;font-size:var(--text-font-size-meta);font-weight:var(--text-font-weight-regular);gap:var(--spacing-xs);line-height:var(--text-line-height-meta);padding:var(--spacing-2xs) var(--spacing-s)}.rc-product-details__stock-row>.rc-product-card__stock-status+.rc-product-details__loyalty-points{margin-left:auto}.rc-product-details__stock-row:not(:has(.rc-product-card__stock-status))>.rc-product-details__loyalty-points{margin-left:auto}.rc-product-card--mobile-carousel .rc-product-details{padding:var(--spacing-l)}.rc-product-card--cart .rc-product-details{gap:var(--spacing-m);padding:var(--spacing-2xl) var(--spacing-l) var(--spacing-l)}.rc-product-card--cart .rc-product-details .rc-product-details__content{display:flex;flex:1 1 auto;flex-direction:row;gap:var(--spacing-m)}.rc-product-card--cart .rc-product-details .rc-product-details__content-info{display:flex;flex:1 1 auto;flex-direction:column;gap:var(--spacing-s)}.rc-product-card--cart .rc-product-details .rc-product-details__content-info-controls{align-items:flex-start;display:flex;flex:1 1 auto;gap:var(--spacing-m);justify-content:flex-start}.rc-product-card--cart .rc-product-details .rc-product-details__content-info-controls>*{min-width:0}.rc-product-card--cart .rc-product-details .rc-product-details__content-info-controls .product-price{flex:1 1 12rem;min-width:0;text-align:right}.rc-product-card--landscape .rc-product-details{justify-content:center}::slotted([slot=rc-product-card-clickable-overlay]),.rc-product-card__clickable-overlay{background-color:rgba(0,0,0,0);border:none;cursor:pointer;inset:0;position:absolute;z-index:1}:host(:dir(rtl)) .rc-product-card--cart .rc-product-card__insert-top{direction:rtl}.rc-product-card--cart ::slotted([slot=product-type-select]),.rc-product-card--cart ::slotted([slot=product-input]),.rc-product-card--cart ::slotted([slot=product-button]){flex:1 1 12rem;min-width:0;width:auto}.rc-product-card--cart ::slotted([slot=product-quantity-selector]){flex:0 0 7.5rem;min-width:0;width:7.5rem}.rc-product-card--cart ::slotted([slot=rc-product-link]){display:flex;justify-content:center;width:100%}:host(:not([has-price])) .rc-product-card__price,:host(:not([has-rating])) .rc-product-card__rating,:host(:not([has-product-title-link])) .rc-product-card__title-section slot[name=product-title-link],:host(:not([has-product-link])) .rc-product-link,:host(:not([has-product-quantity-selector])) .rc-product-card__quantity-selector,:host(:not([has-product-type-select])) .rc-product-card__product-type-select,:host(:not([has-product-input])) .rc-product-card__product-input{display:none}:host(:not([has-product-type-select],[has-product-quantity-selector])) .rc-product-card__controls,:host(:not([has-product-link],[has-product-type-select],[has-product-input],[action-button-label])) .rc-product-card__actions{display:none}`},31141:(t,r,c)=>{c.d(r,{R:()=>e.R});var e=c(15765)},43594:(t,r,c)=>{c.d(r,{$:()=>e.$});var e=c(95305)},91165:(t,r,c)=>{c.d(r,{R:()=>i});var e=c(94024),o=c(93738),a=c(91481);const i=(0,o.a)({tagName:"rc-product-card",elementClass:a.M,react:e,events:{onRcProductCardDelete:"rc-product-card-delete",onRcProductCardFavoriteToggle:"rc-product-card-favorite-toggle",onRcProductCardCheckboxToggle:"rc-product-card-checkbox-toggle",onRcProductCardClick:"rc-product-card-click",onRcProductCardActionButtonClick:"rc-product-card-action-button-click"}})},91481:(t,r,c)=>{c.d(r,{M:()=>_});var e=c(27447),o=c(65256),a=c(51960),i=c(20514),d=c(70582),s=c(43594),l=c(29537),n=c(64283),p=c(90767),u=c(61171),h=c(21479);class _ extends n.WF{constructor(){super(...arguments),this.title="",this.topActionDisabled=!1,this.category="",this.weight="",this.sku="",this.ean="",this.imageUrl="",this.stockLabel="",this.stockVariant="large",this.stockStatus="available",this.promoText="",this.insertTop="",this.insertTopColor="default",this.variant="portrait",this.size="desktop",this.actionButtonLabel=void 0,this.displayActionButtonIcon=!1,this.actionButtonDisabled=!1,this.selected=!1,this.clickable=!1}static{this.styles=(0,n.iz)(h.A)}static{this.dependencies={"rc-icon":i.s6,"rc-checkbox":a.s,"rc-insert":d.Q,"rc-stock":s.$,"rc-button":o.l}}
1firstUpdated(){this._syncSlotState(),this._validatePriceSlot(),this._validateRatingSlot(),this._addSlotChangeListener()}_syncSlotState(){this.toggleAttribute("has-price",this.priceSlot.length>0),this.toggleAttribute("has-rating",this.ratingSlot.length>0),this.toggleAttribute("has-product-title-link",this.productTitleLinkSlot.length>0),this.toggleAttribute("has-product-link",this.productLinkSlot.length>0),this.toggleAttribute("has-product-quantity-selector",this.productQuantitySelectorSlot.length>0),this.toggleAttribute("has-product-type-select",this.productTypeSelectSlot.length>0),this.toggleAttribute("has-product-input",this.productInputSlot.length>0)}_addSlotChangeListener(){const t=this.shadowRoot?.querySelector('slot[name="price"]');t&&t.addEventListener("slotchange",()=>{this._syncSlotState(),this._validatePriceSlot()});const r=this.shadowRoot?.querySelector('slot[name="rating"]');r&&(r.addEventListener("slotchange",()=>{this._syncSlotState(),this._validateRatingSlot()}),this.requestUpdate())}willUpdate(t){super.willUpdate(t),this.ratingSlot[0]&&t.has("clickable")&&this._handleHideRatingSlot()}_handleHideRatingSlot(){this.ratingSlot[0]&&(this.clickable?this.ratingSlot[0].setAttribute("hideSlot",this.clickable.toString()):this.ratingSlot[0].removeAttribute("hideSlot"))}_validatePriceSlot(){const t=this.shadowRoot?.querySelector('slot[name="price"]');if(t){t.assignedElements().some(t=>"rc-price"!==t.tagName.toLowerCase())&&this._removeInvalidElement("price"),this._syncSlotState(),this.requestUpdate()}}_validateRatingSlot(){const t=this.shadowRoot?.querySelector('slot[name="rating"]');if(t){t.assignedElements().some(t=>"rc-rating"!==t.tagName.toLowerCase())&&this._removeInvalidElement("rating"),this._syncSlotState(),this._handleHideRatingSlot()}}_removeInvalidElement(t){if(n.S$)return;Array.from(this.children).filter(r=>{const c=r.getAttribute("slot")===t;return"price"===t?c&&"rc-price"!==r.tagName.toLowerCase():"rating"===t&&(c&&"rc-rating"!==r.tagName.toLowerCase())}).forEach(t=>t.remove())}_renderStockStatus(){const t=(0,l.MS)(this.dataQa,"stock-status");return this.stockLabel&&this.stockStatus?n.qy`<rc-stock
2          badge-type="${this.stockStatus}"
3          variant="${this.stockVariant}"
4          class="rc-product-card__stock-status"
5          data-qa="${t}"
6          label=${this.stockLabel}
7        ></rc-stock>`:""}_emitRemoveProduct(){this.topActionDisabled||this.dispatchEvent(new CustomEvent("rc-product-card-delete",{detail:{product:this}}))}_emitFavoriteToggle(){this.topActionDisabled||(this.selected=!this.selected,this.dispatchEvent(new CustomEvent("rc-product-card-favorite-toggle",{detail:{favorite:this.selected}})))}_emitCheckboxToggle(){this.topActionDisabled||(this.selected=!this.selected,this.dispatchEvent(new CustomEvent("rc-product-card-checkbox-toggle",{detail:{checked:this.selected}})))}onProductCardClick(){this.dispatchEvent(new CustomEvent("rc-product-card-click",{bubbles:!0,composed:!0}))}_renderInsertTop(){if(!this.insertTop||"landscape"===this.variant)return"";const t=(0,l.MS)(this.dataQa,"insert-top"),r="cart"===this.variant?"subscription":"default";return n.qy`<rc-insert
8      class="rc-product-card__insert-top"
9      data-qa="${t}"
10      label=${this.insertTop}
11      variant=${r}
12      color=${this.insertTopColor}
13    ></rc-insert>`}_renderAdditionalLabel(){return this.additionalLabel?n.qy`<span class="rc-product-info__additional-label">${this.additionalLabel}</span>`:""}_renderTopAction(){const t=this.selected?"quaternary":"tertiary",r=this.selected?"like-filled":"like",c=(0,l.MS)(this.dataQa,"top-action-favorite-button"),e=(0,l.MS)(this.dataQa,"top-action-delete-button"),o=(0,l.MS)(this.dataQa,"top-action-checkbox");return n.qy`<div class="rc-product-card__top-action">
14      ${"Fav"===this.topActionType?n.qy`
15            <rc-button
16              variant="${t}"
17              rounded
18              size="small"
19              iconName="${r}"
20              ariaLabel=${this.topActionLabel}
21              data-qa="${c}"
22              ?disabled=${this.topActionDisabled}
23              @click=${()=>this._emitFavoriteToggle()}
24            >
25            </rc-button>
25
26          `:""}
27      ${"Delete"===this.topActionType?n.qy`
28            <rc-button
29              variant="tertiary"
30              rounded
31              size="small"
32              iconName="delete"
33              ariaLabel=${this.topActionLabel}
34              data-qa="${e}"
35              ?disabled=${this.topActionDisabled}
36              @click=${()=>this._emitRemoveProduct()}
37            ></rc-button>
38          `:""}
39      ${"Checkbox"===this.topActionType?n.qy`
40            <rc-checkbox
41              data-qa="${o}"
42              @rc-checkbox-change=${()=>this._emitCheckboxToggle()}
43              ariaLabel=${this.topActionLabel}
44              ?disabled=${this.topActionDisabled}
45            >
46              <input
47                slot="input"
48                type="checkbox"
49                ?checked=${this.selected}
50                ?disabled=${this.topActionDisabled}
51                placeholder=${this.topActionLabel}
52              />
53              <label aria-label=${this.topActionLabel}></label>
54            </rc-checkbox>
55          `:""}
56    </div>`}_renderImageSection(){const t=n.qy`${this._renderInsertTop()} ${this._renderTopAction()}`;return n.qy`
57      <div class="rc-product-card__image-section" part="rc-product-card__image-section">
58        ${["portrait","mobile-carousel"].includes(this.variant)?t:""} ${this._renderImageSlot()}
59      </div>
60    `}_renderImageSlot(){return n.qy`<slot name="product-image" class="rc-product-card__product-image" part="rc-product-card__image-slot">
61      ${this.imageUrl?n.qy`<img src="${this.imageUrl}" alt="" />`:""}
62    </slot>`}_renderPromoBadge(){const t=(0,l.MS)(this.dataQa,"promo-badge"),r="mobile-carousel"===this.variant||"landscape"===this.variant||"mobile"===this.size;return this.promoText?n.qy`<rc-insert
63          class="rc-product-card__promo-badge"
64          data-qa="${t}"
65          label=${this.promoText}
66          icon-name="gift"
67          variant="promo"
68          ?compact=${r}
69        ></rc-insert>`:""}_renderProductTitleSection(){const t=(0,l.MS)(this.dataQa,"title"),r=this.productTitleLinkSlot?.length>0;return n.qy` <div class="rc-product-card__title-section">
70      <slot name="product-title-link"></slot>
71      ${r?n.s6:n.qy`<h3 class="product-title" data-qa="${t}">${this.title}</h3>`}
72    </div>`}_renderProductMeta(){return n.qy` <div class="rc-product-info">
73      <div
74        class=${(0,u.H)({"rc-product-info__meta":!0})}
75      >
76        ${this.category?n.qy`<span>${this.category}</span>`:""}
77        ${this.category&&this.weight?n.qy`<div class="rc-product-info__separator"></div>`:""}
78        ${this.weight?n.qy`<span>${this.weight}</span>`:""}
79      </div>
80      <div
81        class=${(0,u.H)({"rc-product-info__meta":!0})}
82      >
83        ${this.sku?n.qy`<span>${this.sku}</span>`:""}
84        ${this.ean&&this.sku?n.qy`<div class="rc-product-info__separator"></div>`:""}
85        ${this.ean?n.qy`<span>${this.ean}</span>`:""}
86      </div>
87      ${"cart"===this.variant?n.qy`<div
88            class=${(0,u.H)({"rc-product-info__meta":!0})}
89          >
90            ${this._renderAdditionalLabel()}
91          </div>`:""}
92    </div>`}_renderRatingSlot(){return n.qy`<div
93      class=${(0,u.H)({"rc-product-card__rating":!0})}
94    >
95      <slot name="rating" @slotchange=${()=>this._validateRatingSlot()} class="rc-product-card__rating-slot"> </slot>
96    </div>`}_renderPriceSlot(){return n.qy`<div
97      class=${(0,u.H)({"rc-product-card__price":!0,"rc-product-card-part":!0})}
98    >
99      <slot name="price"></slot>
100    </div>`}_renderQuantitySelector(){return n.qy`<slot
101      class=${(0,u.H)({"rc-product-card__quantity-selector":!0})}
102      name="product-quantity-selector"
103    ></slot>`}_renderProductTypeSelect(){return n.qy`<slot
104      class=${(0,u.H)({"rc-product-card__product-type-select":!0})}
105      name="product-type-select"
106    ></slot>`}_renderProductInput(){return n.qy`<slot
107      class=${(0,u.H)({"rc-product-card__product-input":!0})}
108      name="product-input"
109    ></slot>`}_hasSlottedChild(t){return!n.S$&&Array.from(this.children).some(r=>r.getAttribute("slot")===t)}_renderControls(){return n.qy`<div
110      class=${(0,u.H)({"rc-product-card__controls":!0})}
111    >
112      ${"landscape"!==this.variant?this._renderProductTypeSelect():""} ${this._renderQuantitySelector()}
113    </div>`}_renderLink(){return n.qy` <slot
114      name="product-link"
115      class=${(0,u.H)({"rc-product-link":!0})}
116    >
117    </slot>`}_renderActions(){const t=this.actionButtonLabel&&""!==this.actionButtonLabel.trim()&&"landscape"!==this.variant,r="cart"===this.variant&&this._hasSlottedChild("product-type-select")&&!this.clickable,c="cart"===this.variant&&this._hasSlottedChild("product-input")&&!this.clickable,e="mobile-carou
117sel"===this.variant?"medium":"large",o=this.displayActionButtonIcon?"cart":void 0;return n.qy`
118      <div
119        class=${(0,u.H)({"rc-product-card__actions":!0})}
120      >
121        ${r?this._renderProductTypeSelect():""}
122        ${c?this._renderProductInput():""}
123        ${t?n.qy`
124              <slot name="product-button">
125                <rc-button
126                  variant="secondary-alt"
127                  iconName=${o}
128                  size=${e}
129                  iconPosition="left"
130                  ?disabled=${this.actionButtonDisabled}
131                  @click=${()=>this.dispatchEvent(new CustomEvent("rc-product-card-action-button-click"))}
132                >
133                  ${this.actionButtonLabel}
134                </rc-button>
135              </slot>
136            `:""}
137        ${this._renderLink()}
138      </div>
139    `}_renderLoyaltyPoints(){return this.loyaltyPoints?n.qy`<div class="rc-product-details__loyalty-points">
140          <span class="loyalty-points">${this.loyaltyPoints}</span>
141          <rc-icon name="loyalty-points" size="16px" color="--color-icon-brand-primary"></rc-icon>
142        </div>`:""}_renderCardContent(){switch(this.variant){case"landscape":return n.qy`
143          ${this._renderImageSection()}
144          <div class="rc-product-details">
145            ${this._renderTopAction()} ${this._renderPromoBadge()} ${this._renderProductTitleSection()}
146            ${this._renderProductMeta()} ${this._renderRatingSlot()} ${this._renderPriceSlot()}
147            <div
148              class=${(0,u.H)({"rc-product-details__stock-row":!0})}
149            >
150              ${this._renderStockStatus()} ${this._renderLoyaltyPoints()}
151            </div>
152            ${this._renderControls()} ${this._renderActions()}
153          </div>
154        `;case"cart":return n.qy`
155          ${this.insertTop?this._renderInsertTop():""} ${this._renderTopAction()}
156          <div class="rc-product-details">
157            <div class="rc-product-details__content">
158              ${this._renderImageSection()}
159              <div class="rc-product-details__content-info">
160                ${this._renderProductTitleSection()} ${this._renderProductMeta()}
161                <div
162                  class=${(0,u.H)({"rc-product-details__content-info-controls":!0})}
163                >
164                  ${this._renderQuantitySelector()} ${this._renderPriceSlot()}
165                </div>
166              </div>
167            </div>
168            ${this._renderActions()}
169          </div>
170        `;default:return n.qy`
171          ${this._renderImageSection()}
172          <div class="rc-product-details">
173            ${this._renderPromoBadge()} ${this._renderProductTitleSection()} ${this._renderProductMeta()}
174            ${this._renderRatingSlot()} ${this._renderPriceSlot()}
175            <div
176              class=${(0,u.H)({"rc-product-details__stock-row":!0})}
177            >
178              ${this._renderStockStatus()} ${this._renderLoyaltyPoints()}
179            </div>
180            ${this._renderControls()} ${this._renderActions()}
181          </div>
182        `}}render(){return n.qy`
183      <div
184        class=${(0,u.H)({"rc-product-card":!0,"rc-product-card--portrait":"portrait"===this.variant,"rc-product-card--mobile-carousel":"mobile-carousel"===this.variant,"rc-product-card--landscape":"landscape"===this.variant,"rc-product-card--cart":"cart"===this.variant,"rc-product-card--desktop":"desktop"===this.size,"rc-product-card--mobile":"mobile"===this.size,"rc-product-card--clickable":this.clickable})}
185      >
186        ${this._renderCardContent()}
187        ${this.clickable?n.qy` <slot name="rc-product-card-clickable-overlay">
188              <button
189                class="rc-product-card__clickable-overlay"
190                @click=${this.onProductCardClick}
191                aria-label=${this.buttonOverlayAriaLabel||this.title}
192              ></button>
193            </slot>`:""}
194      </div>
195    `}}(0,e.Cg)([(0,p.MZ)({reflect:!0})],_.prototype,"title",void 0),(0,e.Cg)([(0,p.MZ)({reflect:!0,attribute:"top-action-type"})],_.prototype,"topActionType",void 0),(0,e.Cg)([(0,p.MZ)({reflect:!0,attribute:"top-action-label"})],_.prototype,"topActionLabel",void 0),(0,e.Cg)([(0,p.MZ)({type:Boolean,reflect:!0,attribute:"top-action-disabled"})],_.prototype,"topActionDisabled",void 0),(0,e.Cg)([(0,p.MZ)({reflect:!0,attribute:"additional-label"})],_.prototype,"additionalLabel",void 0),(0,e.Cg)([(0,p.MZ)({reflect:!0})],_.prototype,"category",void 0),(0,e.Cg)([(0,p.MZ)({reflect:!0})],_.prototype,"weight",void 0),(0,e.Cg)([(0,p.MZ)({reflect:!0})],_.prototype,"sku",void 0),(0,e.Cg)([(0,p.MZ)({reflect:!0})],_.prototype,"ean",void 0),(0,e.Cg)([(0,p.MZ)({reflect:!0,attribute:"image-url"})],_.prototype,"imageUrl",void 0),(0,e.Cg)([(0,p.MZ)({reflect:!0,attribute:"stock-label"})],_.prototype,"stockLabel",void 0),(0,e.Cg)([(0,p.MZ)({reflect:!0,attribute:"stock-variant"})],_.prototype,"stockVariant",void 0),(0,e.Cg)([(0,p.MZ)({reflect:!0,attribute:"stock-status"})],_.prototype,"stockStatus",void 0),(0,e.Cg)([(0,p.MZ)({reflect:!0,attribute:"promo-text"})],_.prototype,"promoText",void 0),(0,e.Cg)([(0,p.MZ)({reflect:!0,attribute:"insert-top"})],_.prototype,"insertTop",void 0),(0,e.Cg)([(0,p.MZ)({reflect:!0,attribute:"insert-top-color"})],_.prototype,"insertTopColor",void 0),(0,e.Cg)([(0,p.MZ)({reflect:!0})],_.prototype,"variant",void 0),(0,e.Cg)([(0,p.MZ)({reflect:!0})],_.prototype,"size",void 0),(0,e.Cg)([(0,p.MZ)({reflect:!0,attribute:"action-button-label"})],_.prototype,"actionButtonLabel",void 0),(0,e.Cg)([(0,p.MZ)({reflect:!0,attribute:"display-action-button-icon"})],_.prototype,"displayActionButtonIcon",void 0),(0,e.Cg)([(0,p.MZ)({reflect:!0,attribute:"action-button-disabled"})],_.prototype,"actionButtonDisabled",void 0),(0,e.Cg)([(0,p.MZ)({type:Boolean,reflect:!0})],_.prototype,"selected",void 0),(0,e.Cg)([(0,p.MZ)({type:Number,reflect:!0,attribute:"loyalty-points"})],_.prototype,"loyaltyPoints",void 0),(0,e.Cg)([(0,p.MZ)({type:Boolean,reflect:!0})],_.prototype,"clickable",void 0),(0,e.Cg)([(0,p.MZ)({reflect:!0,attribute:"button-overlay-aria-label"})],_.prototype,"buttonOverlayAriaLabel",void 0),(0,e.Cg)([(0,p.MZ)({reflect:!0,attribute:"data-qa"})],_.prototype,"dataQa",void 0),(0,e.Cg)([(0,p.KN)({slot:"rating",selector:"rc-rating",flatten:!0})],_.prototype,"ratingSlot",void 0),(0,e.Cg)([(0,p.KN)({slot:"price",selector:"rc-price",flatten:!0})],_.prototype,"priceSlot",void 0),(0,e.Cg)([(0,p.KN)({slot:"product-image",selector:"img",flatten:!0})],_.prototype,"productImageSlot",void 0),(0,e.Cg)([(0,p.KN)({slot:"product-quantity-selector",selector:"rc-quantity-selector",flatten:!0})],_.prototype,"productQuantitySelectorSlot",void 0),(0,e.Cg)([(0,p.KN)({slot:"product-type-select",selector:"rc-select",flatten:!0})],_.prototype,"productTypeSelectSlot",void 0),(0,e.Cg)([(0,p.KN)({slot:"product-input",selector:"rc-input",flatten:!0})],_.prototype,"productInputSlot",void 0),(0,e.Cg)([(0,p.KN)({slot:"product-link",selector:"rc-link",flatten:!0})],_.prototype,"productLinkSlot",void 0),(0,e.Cg)([(0,p.gZ)({slot:"rc-product-card-clickable-overlay",flatten:!0})],_.prototype,"clickableOverlaySlot",void 0),(0,e.Cg)([(0,p.KN)({slot:"product-title-link",flatten:!0})],_.prototype,"productTitleLinkSlot",void 0),customElements.get("rc-product-card")||customElements.define("rc-product-card",_)}}]);

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.