PageSourceSearch

https://www.jared.com/scripts/amor-category-buttons.module-FZ2EHA3J.js

js jared.com collected 2026-10-04 00:28:14 UTC 4,877 bytes, 2 lines download raw bytes

1import{a as G}from"./chunk-N2OMGYSR.js";import{Xd as F,ej as j}from"./chunk-JWTTV2TH.js";import"./chunk-HKNOB5YZ.js";import{v as D,wa as E,za as M}from"./chunk-NGZBGJL5.js";import"./chunk-UBDARBLF.js";import{fa as R}from"./chunk-DM3NC7AB.js";import{$b as _,$c as v,Bc as a,Bd as s,Cc as m,Dc as c,De as U,Ee as I,Fa as f,Hd as k,Id as h,Jb as r,Kc as p,Ld as A,Oe as N,Rc as l,Wb as C,ac as T,dd as w,ed as x,fc as B,fd as O,gd as S,uc as u,wc as g}from"./chunk-WVBH4ZDA.js";import"./chunk-YDOXD4O3.js";var b=(t,e)=>({buttonUrl:t,buttonText:e});function z(t,e){if(t&1&&(m(0,"h2",2),x(1),c()),t&2){let o=l();r(),O(o.headerText)}}function V(t,e){t&1&&p(0)}function $(t,e){t&1&&p(0)}function q(t,e){t&1&&p(0)}function H(t,e){t&1&&p(0)}function J(t,e){if(t&1&&(m(0,"cx-generic-link",5),x(1),c()),t&2){let o=e.buttonUrl,n=e.buttonText,i=l(2),y=l();w("btn-amor amor-category-btn "+(y.getBannerBgClass(i.buttonsBackgroundColor)||"")+" "+(i.buttonsCorners===y.BUTTONS_CORNERS_ROUND?"btn-rounded-corners":"")+" "+(y.isBanterSite?"amor-category-btn-border":"")),a("url",o),r(),S(" ",n," ")}}function K(t,e){if(t&1&&(m(0,"div",3),B(1,V,1,0,"ng-container",4)(2,$,1,0,"ng-container",4)(3,q,1,0,"ng-container",4)(4,H,1,0,"ng-container",4)(5,J,2,4,"ng-template",null,0,A),c()),t&2){let o=v(6),n=l();r(),a("ngTemplateOutlet",n.button1Text&&n.amorCategoryButton1Url?o:null)("ngTemplateOutletContext",s(8,b,n.amorCategoryButton1Url,n.button1Text)),r(),a("ngTemplateOutlet",n.button2Text&&n.amorCategoryButton2Url?o:null)("ngTemplateOutletContext",s(11,b,n.amorCategoryButton2Url,n.button2Text)),r(),a("ngTemplateOutlet",n.button3Text&&n.amorCategoryButton3Url?o:null)("ngTemplateOutletContext",s(14,b,n.amorCategoryButton3Url,n.button3Text)),r(),a("ngTemplateOutlet",n.button4Text&&n.amorCategoryButton4Url?o:null)("ngTemplateOutletContext",s(17,b,n.amorCategoryButton4Url,n.button4Text))}}function Q(t,e){if(t&1&&(m(0,"div",1),u(1,z,2,1,"h2",2),u(2,K,7,20,"div",3),c()),t&2){let o=e;r(),g(o.headerText?1:-1),r(),g(o.button1Text||o.button2Text||o.button3Text||o.button4Text?2:-1)}}var d=class t{constructor(e,o){this.component=e;this.siteIdentificationService=o;this.BUTTONS_CORNERS_ROUND=F;this.isBanterSite=!1}ngOnInit(){this.isBanterSite=this.siteIdentificationService.isBanter}getBannerBgClass(e){return e?.length>0&&j[e.toUpperCase()]||""}static{this.\u0275fac=function(o){return new(o||t)(C(D),C(G))}}static{this.\u0275cmp=_({type:t,selectors:[["app-amor-category-buttons"]],standalone:!1,decls:2,vars:3,consts:[["buttonTemplate",""],[1,"amor-container","amor-category-buttons-wrapper"],[1,"header-display-4","text-center"],[1,"amor-category-buttons-block"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"category-btn-link",3,"url"]],template:function(o,n){if(o&1&&(u(0,Q,3,2,"div",1),k(1,"async")),o&2){let i;g((i=h(1,1,n.component.data$))?0:-1,i)}},dependencies:[U,E,I],styles:[`.amor-category-buttons-wrapper{margin:0 60px 56px}.amor-category-buttons-wrapper .amor-category-buttons-block{margin-top:56px;display:flex;gap:32px}.amor-category-buttons-wrapper .amor-category-buttons-block cx-generic-link.category-btn-link{width:initial;flex:1 1 calc(50% - 32px)}.amor-category-buttons-wrapper .amor-category-buttons-block .btn-amor.amor-category-btn{font-family:Open Sans Bold,Arial Bold,sans-serif;font-size:24px;padding:32px;line-height:30px;min-height:48px;text-wrap:balance;text-transform:uppercase;border-radius:0;border:1px solid transparent}.amor-category-buttons-wrapper .amor-category-buttons-block .btn-amor.amor-category-btn.no-background-color{background-color:transparent}.amor-category-buttons-wrapper .amor-category-buttons-block .btn-amor.amor-category-btn.btn-rounded-corners{border-radius:8px}.amor-category-buttons-wrapper .amor-category-buttons-block .btn-amor.amor-category-btn.btn-rounded-corners.was-in-focus:not(:focus),.amor-category-buttons-wrapper .amor-category-buttons-block .btn-amor.amor-category-btn.btn-rounded-corners:focus{--shadow-radius: 8px}.amor-category-buttons-wrapper .amor-category-buttons-block .btn-amor.amor-category-btn.neutral-light.amor-category-btn-border{border:1px solid #000000}@media(min-width:320px)and (max-width:1280px){.amor-category-buttons-wrapper{margin:0 16px 56px}.amor-category-buttons-wrapper .amor-category-buttons-block{margin-top:32px;flex-wrap:wrap;gap:16px}.amor-category-buttons-wrapper .amor-category-buttons-block cx-generic-link.category-btn-link{width:initial;flex:1 1 calc(50% - 16px)}.amor-category-buttons-wrapper .amor-category-buttons-block .btn-amor.amor-category-btn{padding:24px 8px;font-size:16px;line-height:24px}}
2`],encapsulation:2})}};var L=class t{static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275mod=T({type:t})}static{this.\u0275inj=f({providers:[R({cmsComponents:{AmorCategoryButtonsComponent:{component:d}}})],imports:[N,M]})}};export{L as AmorCategoryButtonsModule};

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.