1"use strict";(self.webpackChunkPorscheDesignSystem_4_7_0=self.webpackChunkPorscheDesignSystem_4_7_0||[]).push([["tag-dismissible"],{6241(e,t,a){var o=a(2505);a.d(t,["p",0,e=>{if(e)return Object.fromEntries(Object.entries((0,o.e)(e)).map(([e,t])=>[e,"boolean"==typeof t?`${t}`:t]))},"s",0,(...e)=>e.filter(Boolean).join(" ")||null])},5674(e,t,a){a.d(t,["c",0,"--p-color-contrast-high"])},1042(e,t,a){a.d(t,["c",0,"--p-color-frosted"])},1039(e,t,a){a.d(t,["c",0,"--p-color-primary"])},7957(e,t,a){a.d(t,["f",0,"--p-font-weight-normal"])},7050(e,t,a){a.d(t,["h",0,(e,t)=>null===e||null===t||"object"!=typeof e||"object"!=typeof t?e!==t:Array.isArray(e)&&Array.isArray(t)?!(e.length===t.length&&e.every((e,a)=>e===t[a])):!(Object.keys(e).length===Object.keys(t).length&&Object.entries(e).every(([e,a])=>a===t[e]))])},4247(e,t,a){const o="--p-duration-md",r="--p-duration-sm",i="--p-duration-xl",s="--p-ease-in-out",n=(e,t)=>`var(${e}${void 0===t?"":`,${t}`})`,l=e=>({"@media(forced-colors:active)":e}),c={short:n(r),moderate:n(o),long:n("--p-duration-lg"),veryLong:n(i)},d={base:n(s),in:n("--p-ease-in"),out:n("--p-ease-out"),linear:"linear"},p="--p-transition-duration",h="--p-animation-duration",u=e=>`${e} !important`,b=e=>Object.entries(e).reduce((e,[t,a])=>(null===a||(e[t]="object"==typeof a?b(a):u(a)),e),{});a.d(t,["a",0,b,"b",0,(e=2)=>({outline:`2px solid ${n("--p-color-focus")}`,outlineOffset:`${e}px`,...l({outlineColor:"Highlight"})}),"c",0,(e,t="short",a="base",o)=>`${e} ${n(p,c[t])} ${d[a]}`,"d",0,(e=!0,t)=>e?{position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap"}:{position:"static",width:"auto",height:"auto",padding:0,margin:0,overflow:"visible",clip:"auto",whiteSpace:"normal",...t},"e",0,u,"f",0,l,"g",0,e=>({opacity:.4,...l({opacity:1,color:"GrayText",...e})}),"h",0,{"&([hidden])":{display:"none"}},"i",0,p,"j",0,i,"k",0,h,"l",0,r,"m",0,c,"n",0,o,"o",0,s,"p",0,(e,t="short",a="base")=>`${e} ${n(h,c[t])} ${d[a]}`,"r",0,n])},451(e,t,a){a.d(t,["h",0,e=>({"@media(hover:hover)":e})])},6809(e,t,a){a.d(t,["f",0,"--p-font-porsche-next","l",0,"--p-leading-normal"])},7377(e,t,a){a.r(t);var o=a(2505),r=a(6241),i=a(7050),s=a(4247),n=a(1068),l=a(451),c=a(7057),d=a(2762),p=a(5674),h=a(7957),u=a(5849),b=a(6809),f=a(1039),g=a(1042),y=a(6542),m=a(7668);const x="--_p-tag-dismissible-a",$=(e,t)=>{const a=e?`calc(16.8px * (${(0,s.r)(x)} - 0.64285714))`:`calc(28px * (${(0,s.r)(x)} - 0.64285714) + 6px)`,r=`calc(22.4px * (${(0,s.r)(x)} - 0.64285714) + 4px)`,i=`calc(22.4px * (${(0,s.r)(x)} - 0.64285714) + 4px)`,$=`calc(11.2px * (${(0,s.r)(x)} - 0.64285714))`,v=`calc(-1 * ${$})`;return(0,o.i)({"@global":{":host":{[`${x}`]:t?.64285714:1,display:"inline-block",verticalAlign:"top",...(0,s.a)({...s.h})},...n.p,button:{all:"unset",display:"flex",position:"relative",alignItems:"center",gap:i,padding:`${a} ${r}`,borderRadius:t?(0,s.r)(y.r):(0,s.r)(m.r),cursor:"pointer",background:(0,s.r)(g.c),color:(0,s.r)(f.c),textAlign:"start",font:`${(0,s.r)(h.f)} ${(0,s.r)(u.t)} / ${(0,s.r)(b.l)} ${(0,s.r)(b.f)}`,...(0,l.h)({"&:hover > .icon":{backgroundColor:(0,s.r)(g.c)}}),...(0,s.f)({outline:"2px solid CanvasText",outlineOffset:"-2px"}),"&:focus-visible":(0,s.b)()}},...e&&{label:{display:"block",marginBottom:"-4px",color:(0,s.r)(p.c),fontSize:(0,s.r)(d.t)}},icon:{padding:$,margin:v,transition:(0,s.c)("background-color"),borderRadius:(0,s.r)(c.r)},"sr-only":(0,s.d)()})},v={label:o.A.string,compact:o.A.boolean,aria:o.A.aria(["aria-label"])};a.d(t,["p_tag_dismissible",0,class{constructor(e){(0,o.r)(this,e),this.compact=!1}componentShouldUpdate(e,t){return(0,i.h)(e,t)}render(){(0,o.v)(this,v),(0,o.w)(this.host,$,!!this.label,this.compact);const e=(0,o.a)(this.host);return(0,o.x)("button",{key:"ff7e7016872489dec7b1812d971c90d4cbf1aadd",type:"button",...(0,r.p)(this.aria)},(0,o.x)("span",{key:"e303d32f54d725c8789f2822014cb0c0d83ae1f9",class:"sr-only"},"Remove:"),(0,o.x)("span",{key:"4e48ea0943efca701fefbeda60d0cdf047ee111a"},this.label&&(0,o.x)("span",{key:"7ca186731d06255086576cd5adf55f8fc3a5d2e7",class:"label"},this.label),(0,o.x)("slot",{key:"e6d959331e2a008445a6d15138968897659e68a5"})),(0,o.x)("span",{key:"e9fdd49b4b213158c1227b8c4ec224ded5d9d131",class:"icon"},(0,o.x)(e.pIcon,{key:"4f5ecc725b3aa42413d7535d45da509178f400c4",name:"close","aria-hidden":"true"})))}static get delegatesFocus(){return!0}get host(){return(0,o.y)(this)}}])},1068(e,t,a){a.d(t,["p",0,{":not(:defined,[data-ssr])":{visibility:"hidden"}}])},7057(e,t,a){a.d(t,["r",0,"--p-radius-full"])},6542(e,t,a){a.d(t,["r",0,"--p-radius-lg"])},7668(e,t,a){a.d(t,["r",0,"--p-radius-xl"])},5849(e,t,a){a.d(t,["t",0,"--p-typescale-sm"])},2762(e,t,a){a.d(t,["t",0,"--p-typescale-xs"])}}]);
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.