mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
1 line
2.7 KiB
JavaScript
1 line
2.7 KiB
JavaScript
import{S as e,i as t,s,v as a,D as i,q as l,L as n,h as o,k as c,l as r,n as d,o as u,r as h,M as p,w as f,N as b,O as v,I as w,z as m,A as x,t as $,b as y,J as g,C,G as M}from"./index.6b674a45.js";function k(e){let t,s;return{c(){t=n("title"),s=o(e[2])},l(a){t=c(a,"title",{},1);var i=r(t);s=d(i,e[2]),i.forEach(u)},m(e,a){l(e,t,a),h(t,s)},p(e,t){4&t&&p(s,e[2])},d(e){e&&u(t)}}}function A(e){let t,s,o,d,p;const C=e[8].default,M=a(C,e,e[7],null),A=M||function(e){let t,s=e[2]&&k(e);return{c(){s&&s.c(),t=i()},l(e){s&&s.l(e),t=i()},m(e,a){s&&s.m(e,a),l(e,t,a)},p(e,a){e[2]?s?s.p(e,a):(s=k(e),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null)},d(e){s&&s.d(e),e&&u(t)}}}(e);let B=[{"data-carbon-icon":"ChevronDown16"},{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 16 16"},{fill:"currentColor"},{width:"16"},{height:"16"},{class:e[0]},{preserveAspectRatio:"xMidYMid meet"},{style:e[3]},{id:e[1]},e[4]],D={};for(let e=0;e<B.length;e+=1)D=f(D,B[e]);return{c(){t=n("svg"),s=n("path"),A&&A.c(),this.h()},l(e){t=c(e,"svg",{"data-carbon-icon":!0,xmlns:!0,viewBox:!0,fill:!0,width:!0,height:!0,class:!0,preserveAspectRatio:!0,style:!0,id:!0},1);var a=r(t);s=c(a,"path",{d:!0},1),r(s).forEach(u),A&&A.l(a),a.forEach(u),this.h()},h(){b(s,"d","M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"),v(t,D)},m(a,i){l(a,t,i),h(t,s),A&&A.m(t,null),o=!0,d||(p=[w(t,"click",e[9]),w(t,"mouseover",e[10]),w(t,"mouseenter",e[11]),w(t,"mouseleave",e[12]),w(t,"keyup",e[13]),w(t,"keydown",e[14])],d=!0)},p(e,[s]){M?M.p&&128&s&&m(M,C,e,e[7],s,null,null):A&&A.p&&4&s&&A.p(e,s),v(t,D=x(B,[{"data-carbon-icon":"ChevronDown16"},{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 16 16"},{fill:"currentColor"},{width:"16"},{height:"16"},(!o||1&s)&&{class:e[0]},{preserveAspectRatio:"xMidYMid meet"},(!o||8&s)&&{style:e[3]},(!o||2&s)&&{id:e[1]},16&s&&e[4]]))},i(e){o||($(A,e),o=!0)},o(e){y(A,e),o=!1},d(e){e&&u(t),A&&A.d(e),d=!1,g(p)}}}function B(e,t,s){let a,i,l,n,{$$slots:o={},$$scope:c}=t,{class:r}=t,{id:d}=t,{tabindex:u}=t,{focusable:h=!1}=t,{title:p}=t,{style:b}=t;return e.$$set=e=>{s(18,t=f(f({},t),C(e))),"class"in e&&s(0,r=e.class),"id"in e&&s(1,d=e.id),"tabindex"in e&&s(5,u=e.tabindex),"focusable"in e&&s(6,h=e.focusable),"title"in e&&s(2,p=e.title),"style"in e&&s(3,b=e.style),"$$scope"in e&&s(7,c=e.$$scope)},e.$$.update=()=>{s(15,a=t["aria-label"]),s(16,i=t["aria-labelledby"]),98308&e.$$.dirty&&s(17,l=a||i||p),229472&e.$$.dirty&&s(4,n={"aria-label":a,"aria-labelledby":i,"aria-hidden":!l||void 0,role:l?"img":void 0,focusable:"0"===u||h,tabindex:u})},t=C(t),[r,d,p,b,n,u,h,c,o,function(t){M(e,t)},function(t){M(e,t)},function(t){M(e,t)},function(t){M(e,t)},function(t){M(e,t)},function(t){M(e,t)}]}class D extends e{constructor(e){super(),t(this,e,B,A,s,{class:0,id:1,tabindex:5,focusable:6,title:2,style:3})}}export{D as C};
|