UNPKG

quarkd

Version:

Mobile UI Components built on Web Components.

2 lines (1 loc) 2.35 kB
import{d as t,a as e,f as n,r as i,w as o,s as c,M as r,h as s}from"./index22.js";var u=function(s){n(f,s);var u,a,l=(u=f,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var n,i=t(u);if(a){var o=t(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return e(this,n)});function f(){var t;return i(this,f),(t=l.call(this)).attachShadow({mode:"open"}).innerHTML="\n <style>\n ".concat(o,'\n </style>\n <svg class="icon" id="icon" aria-hidden="true" viewBox="0 0 1024 1024">\n ').concat('<path d="M654.72 160c28.16 0 54.208 15.008 68 39.008l41.216 71.712a22.24 22.24 0 0 0 19.2 10.976h28.8c81.632 0 148.064 65.088 148.064 145.056v292.224C960 798.944 893.568 864 811.936 864H212.064C130.432 864 64 798.944 64 718.976v-292.224c0-80 66.432-145.056 148.064-145.056h28.8c8 0 15.296-4.192 19.2-10.976L301.184 199.04A78.24 78.24 0 0 1 369.216 160zM512 308.224c-123.52 0-224 99.744-224 222.304s100.48 222.304 224 222.304 224-99.744 224-222.304-100.48-222.304-224-222.304z m0 74.08c82.304 0 149.344 66.432 149.344 148.224 0 81.792-66.944 148.224-149.344 148.224-82.4 0-149.344-66.432-149.344-148.224 0-81.792 67.04-148.224 149.344-148.224z" p-id="9428"></path>',"\n </svg>\n "),t.icon=t.shadowRoot.getElementById("icon"),t}return c(f,[{key:"connectedCallback",value:function(){this.upgradeProperty()}},{key:"attributeChangedCallback",value:function(t,e,n){if("color"===t)this.icon.style.color=n;else if("size"===t){var i=this.getFontSize();this.icon.style.fontSize="".concat(i)}}},{key:"upgradeProperty",value:function(){this.size=this.size,this.color=this.color}},{key:"getFontSize",value:function(){return r(this.size)}},{key:"size",get:function(){return this.getAttribute("size")},set:function(t){this.setAttribute("size",t)}},{key:"color",get:function(){return this.getAttribute("color")},set:function(t){this.setAttribute("color",t)}}],[{key:"observedAttributes",get:function(){return["size","color"]}}]),f}(s(HTMLElement));customElements.get("quark-icon-camera-fill")||customElements.define("quark-icon-camera-fill",u);