PageSourceSearch

https://www.winerist.com/default-src_app_shared_product-card_product-card_component_ts.c426540fae4a2eb9.js

js winerist.com collected 2026-10-02 11:22:26 UTC 11,354 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwinerist=self.webpackChunkwinerist||[]).push([["default-src_app_shared_product-card_product-card_component_ts"],{47352:(I,b,s)=>{s.d(b,{n:()=>u});var e=s(94650),m=s(36895);function T(i,p){if(1&i&&(e.TgZ(0,"span",5),e._uU(1),e.qZA()),2&i){const _=e.oxw(2);e.xp6(1),e.Oqu(_.separator)}}function t(i,p){if(1&i&&(e.TgZ(0,"a",6),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.s9C("href",_.path.toLowerCase(),e.LSH),e.xp6(1),e.Oqu(_.name)}}function d(i,p){if(1&i&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.name)}}function Z(i,p){if(1&i&&(e.YNc(0,T,2,1,"span",2),e.YNc(1,t,2,2,"ng-template",3),e.YNc(2,d,2,1,"ng-template",null,4,e.W1O)),2&i){const _=p.$implicit,f=p.index,l=e.MAs(3),g=e.oxw();e.Q6J("ngIf",f>0),e.xp6(1),e.Q6J("ngIf",g.anchors&&_.path)("ngIfElse",l)}}let u=(()=>{const p=class{constructor(){this.separator=" / ",this.variant="full",this.anchors=!0}ngOnInit(){this.breadcrumbSegments=this.getBreadcrumbSegments(this.product)}getBreadcrumbSegments({location:f}){const{countryName:l,regionName:g}=f,x=[];let h="";return"full"===this.variant&&(x.push({name:"Home",path:"/"}),x.push({name:"Destinations"})),l&&(h+=`/country/${l.replace(/\s/g,"-")}`,x.push({name:l,path:h}),g&&(h+=`/wine-region/${g.replace(/\s/g,"-")}`,x.push({name:`${g} region`,path:h}))),x}};let i=p;
1return p.\u0275fac=function(l){return new(l||p)},p.\u0275cmp=e.Xpm({type:p,selectors:[["app-breadcrumbs"]],inputs:{product:"product",separator:"separator",variant:"variant",anchors:"anchors"},decls:2,vars:1,consts:[[1,"breadcrumbs"],["ngFor","",3,"ngForOf"],["class","separator",4,"ngIf"],[3,"ngIf","ngIfElse"],["simpleSpan",""],[1,"separator"],[3,"href"]],template:function(l,g){1&l&&(e.TgZ(0,"div",0),e.YNc(1,Z,4,3,"ng-template",1),e.qZA()),2&l&&(e.xp6(1),e.Q6J("ngForOf",g.breadcrumbSegments))},dependencies:[m.sg,m.O5],encapsulation:2}),i})()},87046:(I,b,s)=>{s.d(b,{c:()=>T});var e=s(94650),m=s(26853);let T=(()=>{const d=class{constructor(u){this.imageService=u,this.thumborHeight="0"}set src(u){this._src=this.imageService.prodImageUrl(u)}getSrc(u=""){return this.imageService.thumborUrl(this._src,this.thumborWidth,this.thumborHeight,u,void 0,this.fit)}};let t=d;return d.\u0275fac=function(i){return new(i||d)(e.Y36(m.A))},d.\u0275cmp=e.Xpm({type:d,selectors:[["app-image"]],inputs:{class:"class",alt:"alt",thumborWidth:"thumborWidth",thumborHeight:"thumborHeight",fit:"fit",src:"src"},decls:3,vars:7,consts:[["type","image/webp",3,"srcset"],["loading","lazy",3,"src","alt"]],template:function(i,p){1&i&&(e.TgZ(0,"picture"),e._UZ(1,"source",0)(2,"img",1),e.qZA()),2&i&&(e.xp6(1),e.Tol(p.class),e.Q6J("srcset",p.getSrc("webp")),e.xp6(1),e.Tol(p.class),e.Q6J("src",p.getSrc(),e.LSH)("alt",p.alt))},encapsulation:2}),t})()},83797:(I,b,s)=>{s.d(b,{Y:()=>y});var e=s(14503),m=s(42119),T=s(26853),t=s(94650),d=s(36895),Z=s(87046),u=s(47352),i=s(28729);function p(r,c){1&r&&t._UZ(0,"i",27)}function _(r,c){if(1&r&&(t.TgZ(0,"span",25),t.YNc(1,p,1,0,"i",26),t._uU(2),t.qZA()),2&r){const o=c.$implicit,a=t.oxw();t.Q6J("ngClass",a.isBestSeller(o)?"best-seller-label":a.isWineristRecommends(o)?"winerist-recommends-label":a.isWineristExclusive(o)?"winerist-exclusive-label":""),t.xp6(1),t.Q6J("ngIf",a.isWineristExclusive(o)),t.xp6(1),t.hij(" ",o," ")}}function f(r,c){1&r&&(t.TgZ(0,"u"),t._uU(1,"See More"),t.qZA())}function l(r,c){1&r&&t._UZ(0,"div")}function g(r,c){if(1&r&&(t.TgZ(0,"div"),t.YNc(1,l,1,0,"div",32),t.qZA()),2&r){t.oxw();const o=t.MAs(5),a=t.MAs(7),v=t.oxw();
1t.xp6(1),t.Q6J("ngIf",v.product.isPrivate)("ngIfThen",o)("ngIfElse",a)}}function x(r,c){if(1&r&&(t.TgZ(0,"div"),t._UZ(1,"i",33),t.TgZ(2,"span",34),t._uU(3),t.qZA()()),2&r){const o=t.oxw(2);t.xp6(3),t.Oqu(o.getProductLanguages(o.product))}}function h(r,c){if(1&r&&(t._UZ(0,"i",35),t.TgZ(1,"span",36),t._uU(2),t.qZA()),2&r){const o=t.oxw(2);t.xp6(2),t.hij("Private ",o.getProductType(o.product),"")}}function C(r,c){if(1&r&&(t._UZ(0,"i",35),t.TgZ(1,"span",36),t._uU(2),t.qZA()),2&r){const o=t.oxw(2);t.xp6(2),t.hij("Group ",o.getProductType(o.product),"")}}function P(r,c){if(1&r&&(t.TgZ(0,"div"),t._UZ(1,"i",37),t.TgZ(2,"span",38),t._uU(3),t.qZA()()),2&r){const o=t.oxw(2);t.xp6(3),t.Oqu(o.product.duration)}}function A(r,c){1&r&&(t.TgZ(0,"div"),t._UZ(1,"i",39),t.TgZ(2,"span",36),t._uU(3,"Hotel pickup included"),t.qZA()())}function U(r,c){if(1&r&&(t.TgZ(0,"div",28)(1,"div",29),t.YNc(2,g,2,3,"div",21),t.YNc(3,x,4,1,"div",21),t.qZA(),t.YNc(4,h,3,1,"ng-template",null,30,t.W1O),t.YNc(6,C,3,1,"ng-template",null,31,t.W1O),t.TgZ(8,"div",29),t.YNc(9,P,4,1,"div",21),t.YNc(10,A,4,0,"div",21),t.qZA()()),2&r){const o=t.oxw();t.xp6(2),t.Q6J("ngIf",o.product.productTypeId===o.productTypeId.Tour),t.xp6(1),t.Q6J("ngIf",null==o.product.languages?null:o.product.languages.length),t.xp6(6),t.Q6J("ngIf",o.product.duration),t.xp6(1),t.Q6J("ngIf","true"===o.product.isHotelPickupIncluded)}}function w(r,c){if(1&r&&(t.TgZ(0,"div",43),t._UZ(1,"i",44),t.TgZ(2,"span",38),t._uU(3),t.qZA()()),2&r){const o=c.$implicit,a=c.index;t.xp6(3),t.Oqu(3===a?o+", and more...":o)}}function E(r,c){if(1&r&&(t.TgZ(0,"div",41),t.YNc(1,w,4,1,"div",42),t.qZA()),2&r){const o=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",o.product.services.slice(0,4))}}function O(r,c){if(1&r&&(t.TgZ(0,"div"),t.YNc(1,E,2,1,"div",40),t.qZA()),2&r){const o=t.oxw();t.xp6(1),t.Q6J("ngIf",null==o.product.services?null:o.product.services.length)}}let y=(()=>{const c=class{constructor(){this.target="_self",this.productLink=e.x.getPath,this.getProductType=e.x.getTypeName,this.productTypeId=m.XM}productImageUrl(a){return a.imageUrl||T.k}formatDescription(a){return a.substring(0,190).split(" ").join(" ")+"..."}isBestSeller(a){return a===m.jm.BestSeller}isWineristRecommends(a){return a===m.jm.WineristRecommends}isWineristExclusive(a){return a===m.jm.WineristExclusive}getProductLanguages(a){return a.languages.join(", ")}};let r=c;return c.\u0275fac=function(v){return new(v||c)},c.\u0275cmp=t.Xpm({type:c,selectors:[["app-product-card"]],inputs:{product:"product",currency:"currency",target:"target"},decls:37,vars:27,consts:[[1,"product-card","text-decoration-none",3,"target","routerLink"],[1,"product-container","p-3","p-sm-4"],[1,"d-flex","flex-column","flex-sm-row"],[1,"col-12","col-sm-4","px-0","pr-sm-3"],[1,"product-image",3,"thumborWidth","src","alt"],[1,"col-12","col-sm-8","mt-3","mt-sm-0","px-0"],[1,"product-container-header"],[1,"d-flex"],[1,"col-12","col-sm-10","px-0"],[1,"product-name"],[1,"location","mt-2"],["variant","partial","separator",", ",3,"product","anchors"],[1,"mt-2","pl-3","row","mb-2"],[1,"product-labels","text-nowrap","product-type-label"],["class","product-labels text-nowrap",3,"ngClass",4,"ngFor","ngForOf"],[1,"d-none","d-sm-block","col-2","px-0","text-right"],[1,"product-lowest-price"],[1,"d-inline","d-sm-block","from-span"],[1,"price-span"],[1,"description"],[1,"m-0"],[4,"ngIf"],["class","labels mt-2 d-sm-flex",4,"ngIf"],[1,"d-sm-none","col-12","px-0","text-right"],[1,"from-span"],[1,"product-labels","text-nowrap",3,"ngClass"],["class","star-icon fas fa-star",4,"ngIf"],[1,"star-icon","fas","fa-star"],[1,"labels","mt-2","d-sm-flex"],[1,"d-flex","flex-column","col-12","col-sm-6","px-0"],["privateTour",""],["group",""],[4,"ngIf","ngIfThen","ngIfElse"],[1,"col-1","px-0","label-icon","fas","fa-globe-americas"],[1,"col","px-2","label-span","text-capitalize"],[1,"col-1","px-0","label-icon","fas","fa-user-friends"],[1,"col-5","px-2","label-span","text-capitalize"],[1,"col-1","px-0","label-icon","fas","fa-hourglass-start"],[1,"col-5","px-2","label-span"],[1,"col-1","px-0","label-icon","fas","fa-car"],["class","row mt-2",4,"ngIf"],[1,"row","mt-2"],["class","col-12 col-sm-6",4,"ngFor","ngForOf"],[1,"col-12","col-sm-6"],[1,"col-1","px-0","label-icon","fas","fa-check"]],template:function(v,n){1&v&&(t.TgZ(0,"a",0)(1,"div",1)(2,"div",2)(3,"div",3),t._UZ(4,"app-image",4),t.qZA(),t.TgZ(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9),t._uU(10),t.qZA(),t.TgZ(11,"div",10),t._UZ(12,"app-breadcrumbs",11),t.qZA(),t.TgZ(13,"div",12)(14,"span",13),t._uU(15),t.qZA(),t.YNc(16,_,3,3,"span",14),t.qZA()(),t.TgZ(17,"div",15)(18,"div",16)(19,"span",17),t._uU(20,"from"),t.qZA(),t.TgZ(21,"span",18),t._uU(22),t.ALo(23,"currency"),t.qZA()()()()(),t.TgZ(24,"div",19)(25,"p",20),t._uU(26),t.YNc(27,f,2,0,"u",21),t.qZA()(),t.YNc(28,U,11,4,"div",22),t.YNc(29,O,2,1,"div",21),t.TgZ(30,"div",23)(31,"div",16)(32,"span",24),t._uU(33,"from"),t.qZA(),t.TgZ(34,"span",18),t._uU(35),t.ALo(36,"currency"),t.qZA()()()()()()()),2&v&&(t.Q6J("target",n.target)("routerLink",n.productLink(n.product)),t.xp6(2),t.uIk("test-id","search-result-item-"+n.product.id),t.xp6(2),t.Q6J("thumborWidth",600)("src",n.productImageUrl(n.product))("alt","A photo of "+n.product.name),t.xp6(6),t.hij(" ",n.product.name," "),t.xp6(2),t.Q6J("product",n.product)("anchors",!1),t.xp6(3),t.hij(" ",n.getProductType(n.product)," "),t.xp6(1),t.Q6J("ngForOf",n.product.specialStatuses),t.xp6(6),t.hij(" ",t.gM2(23,17,n.product.lowestPrice,n.currency,"symbol-narrow",".0-0")," "),t.xp6(4),t.hij(" ",n.formatDescription(n.product.description)," "),t.xp6(1),t.Q6J("ngIf",(null==n.product.description?null:n.product.description.length)>=190),t.xp6(1),t.Q6J("ngIf",n.product.productTypeId===n.productTypeId.Tour||n.product.productTypeId===n.productTypeId.Winery),t.xp6(1),t.Q6J("ngIf",n.product.productTypeId===n.productTypeId.Hotel),t.xp6(6),t.hij(" ",t.gM2(36,22,n.product.lowestPrice,n.currency,"symbol-narrow",".0-0")," "))},dependencies:[d.mk,d.sg,d.O5,Z.c,u.n,i.rH,d.H9],styles:[".product-card .product-container{border:1px solid #ddd;border-radius:7px;box-sizing:border-box}
1.product-card .product-container:hover{transition:box-shadow .2s ease;box-shadow:0 1px 9px #00000026}.product-card .product-container .product-image{object-position:center;object-fit:cover;height:195px;width:100%;border-radius:5px}.product-card .product-container .product-name{font-size:20px;font-weight:600;line-height:1;padding-bottom:2px;color:#2b2c29}.product-card .product-container .location{color:#5a5a5a;font-size:12px!important;line-height:14px}.product-card .product-container .description{font-size:14px;line-height:21px;color:#212529}.product-card .product-container .product-labels{display:flex;align-items:center;height:20px;border-radius:4px;padding:3px 7px;font-size:12px;font-weight:700;text-transform:uppercase;margin-bottom:5px}.label-icon{color:#b71540;font-size:14px;text-align:center}.label-span{font-weight:500;font-size:14px;line-height:16px;color:#000;text-align:left}.product-card .product-container .product-type-label{background-color:#008dc7;color:#fff;margin-right:5px}.product-card .product-container .product-lowest-price .from-span{font-size:12px;line-height:12px}.product-card .product-container .product-lowest-price .price-span{font-size:20px;line-height:24px;color:#2b2c29;font-weight:700}.best-seller-label{background-color:#ff9818;color:#fff;margin-right:5px}.winerist-recommends-label{background-color:#b71540;color:#fff;margin-right:5px}.winerist-exclusive-label{background-color:#fff;color:#b71540;margin-right:5px;border:1px solid #b71540}.star-icon{padding-right:5px;font-size:10px}@media screen and (max-width: 576px){.product-lowest-price{margin-top:6px}.product-lowest-price .price-span{color:#b71540}.label-icon{color:#5a5a5a}}\n"],encapsulation:2}),r})()}}]);

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.