import{r as i,h as t,H as s,g as r}from"./p-a0569a5f.js";import{m as a,i as c}from"./p-08136f3c.js";import{A as e}from"./p-1118cf69.js";import"./p-83f217d4.js";const n={damga:"shield-check",kimlik:"padlock"};let o=class{constructor(t){i(this,t)}render(){const{product:i}=this;return i?t(s,null,t("div",{class:{"icon-container":!0,[i.type]:!0}},t("dvn-icon",{iconName:`uil uil-${n[i.type]||"question"}`,scale:"large"})),i.name):t(s,null,t("div",{class:"icon-container"},t("dvn-icon",{iconName:"uil uil-plus",scale:"large"})),"Add new product")}};o.style="devingen-product-card{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:calc(2 * var(--spacing-unit));color:var(--color-text);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}devingen-product-card .icon-container{padding:calc(1.5 * var(--spacing-unit));background:var(--color-background-primary);border-radius:calc(var(--corner-radius) / 3 * 2);margin-right:calc(2 * var(--spacing-unit))}devingen-product-card .icon-container.damga{background:var(--color-primary);color:white}devingen-product-card .icon-container.kimlik{background:var(--color-secondary);color:white}";let l=class{constructor(t){i(this,t),this.unsubscribe=()=>{},this.activeClass="link-active",this.exact=!1,this.strict=!0,this.custom="a",this.match=null}componentWillLoad(){this.computeMatch()}computeMatch(){this.location&&(this.match=a(this.location.pathname,{path:this.urlMatch||this.url,exact:this.exact,strict:this.strict}))}handleClick(i){var t,s;if(!c(i)&&this.history&&this.url&&this.root)return i.preventDefault(),this.history.push((s=this.root,"/"==(t=this.url).charAt(0)&&"/"==s.charAt(s.length-1)?s.slice(0,s.length-1)+t:s+t))}render(){let i={class:{[this.activeClass]:null!==this.match},onClick:this.handleClick.bind(this)};return this.anchorClass&&(i.class[this.anchorClass]=!0),"a"===this.custom&&(i=Object.assign({},i,{href:this.url,title:this.anchorTitle,role:this.anchorRole,tabindex:this.anchorTabIndex,"aria-haspopup":this.ariaHaspopup,id:this.anchorId,"aria-posinset":this.ariaPosinset,"aria-setsize":this.ariaSetsize,"aria-label":this.ariaLabel})),t(this.custom,Object.assign({},i),t("slot",null))}get el(){return r(this)}static get watchers(){return{location:["computeMatch"]}}};e.injectProps(l,["history","location","root"]);export{o as devingen_product_card,l as stencil_route_link}