PageSourceSearch

https://weitling-apotheke.de/ia/lib/IaProductOffersCarousel.ce.LG27OEuE.js

js weitling-apotheke.de collected 2026-10-08 06:22:29 UTC 2,631 bytes, 1 lines download raw bytes

1import{_ as b}from"./GlobalSetup.vue_vue_type_script_setup_true_lang.C7wyEG68.js";import{_ as S}from"./ProductCarousel.vue_vue_type_script_setup_true_lang.CRFsctFF.js";import"./add-to-cart.IRT0Cgdq.js";import{b as P,d as N}from"./user.BJAGcee8.js";import{a as k,e2 as O}from"./define-custom-element.DLPh09AG.js";import{o as T,a as A,p as B}from"./ProductCard.vue_vue_type_script_setup_true_lang.DQd7lbUd.js";import{k as g,w as $,A as l,y as a,N as y,R as C,Z as R,c as w,t as D,S as I,x as L}from"./vue-vendor.Da7g9d9U.js";import{p as H,c as K}from"./carousel-autoplay-key.D6rxIL1m.js";import{u as x}from"./product-search-link.Dk4zpQ4C.js";const V=g({__name:"ProductOffersCarousel",props:{searchOffersRoute:{type:String},containerClass:{type:String},bgColor:{type:String},hideHeading:{type:Boolean},preventNavigation:{type:Boolean}},emits:["noData","selected","addedToCart","loaded"],setup(e,{emit:o}){const t=e,r=o,s=P(),{state:n,isLoading:d,execute:i}=k((async()=>{if(!s.pharmacyId)return;const{data:e,success:a}=await O(s.pharmacyId);return e?.length||r("noData"),e&&a?(r("loaded",e),e):void 0}),void 0);$([()=>s.pharmacyId],(()=>i()));const c=w((()=>n.value??[])),{t:u}=N();return l(T,((e,a)=>{r("selected",e,a)})),l(A,(e=>{r("addedToCart",e)})),l(B,D((()=>t.preventNavigation??!1))),(o,t)=>{const r=S;return a(s).pharmacyId?(y(),C(r,{key:0,products:a(c),loading:a(d),title:e.hideHeading?void 0:a(u)("carousel.product.offer"),"container-class":e.containerClass??"!mb-0",link:e.searchOffersRoute?{label:a(u)("carousel.product.offerLink"),href:e.searchOffersRoute}:void 0,"aria-label-controls":a(u)("keyword.ariaLabelControls"),"aria-label-carousel":a(u)("carousel.product.offer"),"bg-color":e.bgColor},null,8,["products","loading","title","container-class","link","aria-label-controls","aria-label-carousel","bg-color"])):R("",!0)}}}),Q=g({__name:"IaProductOffersCarousel.ce",props:{bgColor:{type:String},hideHeading:{type:Boolean},preventNavigation:{type:Boolean},autoplay:{type:[Boolean,Number]}},emits:["noData","selected","addedToCart","loaded"],setup(e,{emit:o}){const t=o;l(K,H(e.autoplay));const r=(e,a)=>t("selected",e,a),{getProductSearchOffers:s}=x();return(o,t)=>{const n=V,l=b;return y(),C(l,null,{default:I((()=>[L(n,{"hide-heading":e.hideHeading,"search-offers-route":a(s)("offer"),"bg-color":e.bgColor,"prevent-navigation":e.preventNavigation,onNoData:t[0]||(t[0]=e=>o.$emit("noData")),onLoaded:t[1]||(t[1]=e=>o.$emit("loaded",e)),onSelected:r,onAddedToCart:t[2]||(t[2]=e=>o.$emit("addedToCart",e))},null,8,["hide-heading","search-offers-route","bg-color","prevent-navigation"])])),_:1})}}});
1export{Q as default};

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.