advanced-sheet-handler
Version:
Data card for detegent molecule in the detbelt WS
5 lines • 14.5 kB
JavaScript
/*! Built with http://stenciljs.com */
(function(Context,appNamespace,hydratedCssClass,publicPath){"use strict";
var s=document.querySelector("script[data-namespace='advanced-sheet-handler']");if(s){publicPath=s.getAttribute('data-path');}
(function(n,t,e,o,i){"use strict";function c(n,t,e,o,i,c,f){let s=e.n+(o||E),l=e[s];if(l||(l=e[s=e.n+E]),l){let o=t.t;if(t.e)if(1===e.encapsulation)o=i.shadowRoot;else for(;i=t.o(i);)if(i.host&&i.host.shadowRoot){o=i.host.shadowRoot;break}const c=n.i.get(o)||{};if(!c[s]){f=l.content.cloneNode(!0);const e=o.querySelectorAll("[data-styles]");t.c(o,f,e.length&&e[e.length-1].nextSibling||o.f),c[s]=!0,n.i.set(o,c)}}}function f(n){return{s:n[0],l:n[1],r:!!n[2],u:!!n[3],a:!!n[4]}}function s(n,t){if(x(t)){if(n===Boolean||3===n)return"false"!==t&&(""===t||!!t);if(n===Number||4===n)return parseFloat(t)}return t}function l(n,t,e,o){const i=n.p.get(t);i&&((o=i.$activeLoading)&&((e=o.indexOf(t))>-1&&o.splice(e,1),!o.length&&i.$initLoad()),n.p.delete(t))}function r(n,t,e){let o,i=!1,c=!1;for(var f=arguments.length;f-- >2;)P.push(arguments[f]);for(;P.length;)if((e=P.pop())&&void 0!==e.pop)for(f=e.length;f--;)P.push(e[f]);else"boolean"==typeof e&&(e=null),(c="function"!=typeof n)&&(null==e?e="":"number"==typeof e?e=String(e):"string"!=typeof e&&(c=!1)),c&&i?o[o.length-1].d+=e:void 0===o?o=[c?u(e):e]:o.push(c?u(e):e),i=c;const s=new L;if(s.m=n,s.y=o,t&&(s.v=t,s.b=t.w,s.M=t.ref,t.className&&(t.class=t.className),"object"==typeof t.class)){for(f in t.class)t.class[f]&&P.push(f);t.class=P.join(" "),P.length=0}return s}function u(n){const t=new L;return t.d=n,t}function a(n,t){n.k.has(t)||(n.k.set(t,!0),n.g.add(()=>{(function n(t,e,o,i,c){if(t.k.delete(e),!t.C.has(e)){let f;if(i=t.W.get(e),o=!i){if((c=t.p.get(e))&&!c.$rendered)return void(c.$onRender=c.$onRender||[]).push(()=>{n(t,e)});i=function f(n,t,e,o,i,c){try{(function f(n,t,e,o,i,c){for(c in n.N.set(o,e),n.j.has(e)||n.j.set(e,{}),(i=Object.assign({color:{type:String}},t.properties)).mode={type:String},i)d(n,i[c],e,o,c)})(n,o=n.x(t).O,t,e=new o),function s(n,t,e){if(t){const o=n.N.get(e);t.forEach(t=>{e[t.method]={emit:e=>{n.S(o,t.name,{bubbles:t.bubbles,composed:t.composed,cancelable:t.cancelable,detail:e})}}})}}(n,o.events,e);try{if(i=n.T.get(t)){for(c=0;c<i.length;c+=2)e[i[c]](i[c+1]);n.T.delete(t)}}catch(e){n.A(e,2,t)}}catch(o){e={},n.A(o,7,t,!0)}return n.W.set(t,e),e}(t,e)}else try{i.componentWillUpdate&&(f=i.componentWillUpdate())}catch(n){t.A(n,5,e)}f&&f.then?f.then(()=>p(t,e,i,o)):p(t,e,i,o)}})(n,t)}))}function p(n,t,e,o){(function i(n,t,e,o,c){try{const i=t.O.host;if(o.render||o.hostData||i){n.L=!0;const i=o.render&&o.render();let f;n.L=!1;const s=n.P.get(e)||new L;s.R=e,n.P.set(e,n.render(s,r(null,f,i),c,n.q.get(e),n.B.get(e),t.O.encapsulation))}n.D(n,n.H,t,o.mode,e),e.$rendered=!0,e.$onRender&&(e.$onRender.forEach(n=>n()),e.$onRender=null)}catch(t){n.L=!1,n.A(t,8,e,!0)}})(n,n.x(t),t,e,!o);try{o?t.$initLoad():e.componentDidUpdate&&e.componentDidUpdate()}catch(e){n.A(e,6,t,!0)}}function d(n,t,e,o,i){if(t.type||t.state){const c=n.j.get(e);if(!t.state){if(t.attr&&(void 0===c[i]||""===c[i])){const o=n.H.F(e,t.attr);null!=o&&(c[i]=s(t.type,o))}e.hasOwnProperty(i)&&(void 0===c[i]&&(c[i]=e[i]),delete e[i])}o.hasOwnProperty(i)&&void 0===c[i]&&(c[i]=o[i]),t.watchCallbacks&&(c[R+i]=t.watchCallbacks.slice()),y(o,i,function c(t){return(t=n.j.get(n.N.get(this)))&&t[i]},function f(e,o){(o=n.N.get(this))&&(t.state||t.mutable)&&m(n,o,i,e)})}else t.elementRef&&h(o,i,e)}function m(n,t,e,o,i,c,f){(i=n.j.get(t))||n.j.set(t,i={}),o!==i[e]&&(i[e]=o,n.W.get(t)&&(i[R+e],!n.L&&t.$rendered&&a(n,t)))}function h(n,t,e){Object.defineProperty(n,t,{configurable:!0,value:e})}function y(n,t,e,o){Object.defineProperty(n,t,{configurable:!0,get:e,set:o})}function v(n,t,e,o,i){const c=11===e.R.nodeType&&e.R.host?e.R.host:e.R,f=t&&t.v||N,s=e.v||N;for(i in f)s&&null!=s[i]||null==f[i]||b(n,c,i,f[i],void 0,o);for(i in s)i in f&&s[i]===("value"===i||"checked"===i?c[i]:f[i])||b(n,c,i,f[i],s[i],o)}function b(n,t,e,o,i,c,f,s){if("class"!==e||c)if("style"===e){for(f in o=o||N,i=i||N,o)i[f]||(t.style[f]="");for(f in i)i[f]!==o[f]&&(t.style[f]=i[f])}else if("o"!==e[0]||"n"!==e[1]||e in t)if("list"!==e&&"type"!==e&&!c&&(e in t||-1!==["object","function"].indexOf(typeof i)&&null!==i)){const o=n.x(t);o&&o.z&&o.z[e]?w(t,e,i):"ref"!==e&&(w(t,e,null==i?"":i),null!=i&&!1!==i||t.removeAttribute(e))}else null!=i&&(f=e!==(e=e.replace(/^xlink\:?/,"")),1!==q[e]||i&&"false"!==i?"function"!=typeof i&&(f?t.setAttributeNS(B,T(e),i):t.setAttribute(e,i)):f?t.removeAttributeNS(B,T(e)):t.removeAttribute(e));else e=T(e.substring(2)),i?i!==o&&n.H.I(t,e,i):n.H.Q(t,e);else if(o!==i){const n=null==o||""===o?j:o.trim().split(/\s+/),e=null==i||""===i?j:i.trim().split(/\s+/);let c=null==t.className||""===t.className?j:t.className.trim().split(/\s+/);for(f=0,s=n.length;f<s;f++)-1===e.indexOf(n[f])&&(c=c.filter(t=>t!==n[f]));for(f=0,s=e.length;f<s;f++)-1===n.indexOf(e[f])&&(c=[...c,e[f]]);t.className=c.join(" ")}}function w(n,t,e){try{n[t]=e}catch(n){}}function M(n,t){function e(o,i,c){let f=0;if("function"==typeof o.m&&(o=o.m(Object.assign({},o.v,{U:o.y}))),!u&&"slot"===o.m){if(l||r){a&&t.G(i,a+"-slot","");const e=o.v&&o.v.name;let c;if(c=x(e)?r&&r[e]:l,x(c)){for(n.J=!0;f<c.length;f++)t.K(c[f]),t.V(i,c[f]);n.J=!1}}return null}if(x(o.d))o.R=t.X(o.d);else{const i=o.R=t.Y(o.m);v(n,null,o,D),null!==a&&i.Z!==a&&t.G(i,i.Z=a,"");const c=o.y;if(c){let n;for(;f<c.length;++f)(n=e(c[f],i))&&t.V(i,n)}"svg"===o.m&&(D=!1)}return o.R}function o(n,o,i,c,f,s,l){const r=n.$defaultHolder&&t.o(n.$defaultHolder)||n;for(;c<=f;++c)l=i[c],x(l)&&(s=x(l.d)?t.X(l.d):e(l,n),x(s)&&(l.R=s,t.c(r,s,o)))}function i(n,e,o){for(;e<=o;++e)x(n[e])&&t.K(n[e].R)}function c(n,t){return n.m===t.m&&n.b===t.b}function f(n,t,e){const o={};let i,c,f;for(i=t;i<=e;++i)null!=(f=n[i])&&void 0!==(c=f.b)&&(o._=i);return o}let s,l,r,u,a;return function u(p,d,m,h,y,b,w){return s=m,l=h,r=y,a="scoped"===b||"shadow"===b&&!t.e?"data-"+t.nn(p.R):null,s||a&&t.G(p.R,a+"-host",""),function s(l,r){const u=r.R=l.R,a=l.y,p=r.y;let d;if(S(r.d))"slot"!==r.m&&v(n,l,r,D),x(a)&&x(p)?function m(n,l,r){let u,a,p,d,m=0,h=0,y=l.length-1,v=l[0],b=l[y],w=r.length-1,M=r[0],$=r[w];for(;m<=y&&h<=w;)null==v?v=l[++m]:null==b?b=l[--y]:null==M?M=r[++h]:null==$?$=r[--w]:c(v,M)?(s(v,M),v=l[++m],M=r[++h]):c(b,$)?(s(b,$),b=l[--y],$=r[--w]):c(v,$)?(s(v,$),t.c(n,v.R,t.tn(b.R)),v=l[++m],$=r[--w]):c(b,M)?(s(b,M),t.c(n,b.R,v.R),b=l[--y],M=r[++h]):(S(u)&&(u=f(l,m,y)),a=u[M.b],S(a)?(d=e(M,n),M=r[++h]):((p=l[a]).m!==M.m?d=e(M,n):(s(p,M),l[a]=void 0,d=p.R),M=r[++h]),d&&t.c(v.R&&v.R.parentNode||n,d,v.R));m>y?o(n,null==r[w+1]?null:r[w+1].R,r,h,w):h>w&&i(l,m,y)}(u,a,p):x(p)?(x(l.d)&&t.en(u,""),o(u,null,p,0,p.length-1)):x(a)&&i(a,0,a.length-1);else if(d=n.q.get(u)){const e=d[0].parentElement;t.en(e,r.d),n.q.set(u,[e.childNodes[0]])}else l.d!==r.d&&t.en(u,r.d);"svg"===r.m&&D&&(D=!1)}(p,d),d}}function $(n,t){n&&(n.M&&n.M(t?null:n.R),n.y&&n.y.forEach(n=>{$(n,t)}))}function k(n,t,e,o,i){const c=n.on(t);let f,s,l,r;if(i&&1===c){(s=n.F(t,W))&&(l=s.split("."))[0]===o&&((r=new L).m=n.nn(r.R=t),e.y||(e.y=[]),e.y[l[1]]=r,e=r,i=""!==l[2]);for(let c=0;c<t.childNodes.length;c++)k(n,t.childNodes[c],e,o,i)}else 3===c&&(f=t.previousSibling)&&8===n.on(f)&&"s"===(l=n.in(f).split("."))[0]&&l[1]===o&&((r=u(n.in(t))).R=t,e.y||(e.y=[]),e.y[l[2]]=r)}function g(n,t,e,o){return function(){const i=arguments;return function c(n,t,e){return new Promise(o=>{let i=t[e];i||(i=n.cn.querySelector(e)),i||(i=t[e]=n.Y(e),n.V(n.cn,i)),i.componentOnReady(o)})}(n,t,e).then(n=>n[o].apply(n,i))}}const C="data-ssrv",W="data-ssrc",E="$",N={},j=[],O={enter:13,escape:27,space:32,tab:9,left:37,up:38,right:39,down:40},x=n=>void 0!==n&&null!==n,S=n=>void 0===n||null===n,T=n=>n.toLowerCase(),A=()=>{};class L{}const P=[],R="wc-",q={allowfullscreen:1,async:1,autofocus:1,autoplay:1,checked:1,controls:1,disabled:1,enabled:1,formnovalidate:1,hidden:1,multiple:1,noresize:1,readonly:1,required:1,selected:1,spellcheck:1},B="http://www.w3.org/1999/xlink";let D=!1;const H=n[o]=n[o]||{};{const o=function F(t,e,o,i,u,p){const d={html:{}},v={},b=function w(n,t){const e=new WeakMap,o={fn:t.documentElement,t:t.head,cn:t.body,sn:!1,on:n=>n.nodeType,Y:n=>t.createElement(n),ln:(n,e)=>t.createElementNS(n,e),X:n=>t.createTextNode(n),rn:n=>t.createComment(n),c:(n,t,e)=>n.insertBefore(t,e),K:n=>n.remove(),V:(n,t)=>n.appendChild(t),un:n=>n.childNodes,o:n=>n.parentNode,tn:n=>n.nextSibling,nn:n=>T(n.tagName),in:n=>n.textContent,en:(n,t)=>n.textContent=t,F:(n,t)=>n.getAttribute(t),G:(n,t,e)=>n.setAttribute(t,e),an:(n,t,e,o)=>n.setAttributeNS(t,e,o),pn:(n,t)=>n.removeAttribute(t),dn:(e,i)=>"child"===i?e.firstElementChild:"parent"===i?o.mn(e):"body"===i?o.cn:"document"===i?t:"window"===i?n:e,I:(n,t,i,c,f,s,l,r)=>{const u=t;let a=n,p=e.get(n);if(p&&p[u]&&p[u](),"string"==typeof s?a=o.dn(n,s):"object"==typeof s?a=s:(r=t.split(":")).length>1&&(a=o.dn(n,r[0]),t=r[1]),!a)return;let d=i;(r=t.split(".")).length>1&&(t=r[0],d=(n=>{n.keyCode===O[r[1]]&&i(n)})),l=o.sn?{capture:!!c,passive:!!f}:!!c,a.addEventListener(t,d,l),p||e.set(n,p={}),p[u]=(()=>{a&&a.removeEventListener(t,d,l),p[u]=null})},Q:(n,t)=>{const o=e.get(n);o&&(t?o[t]&&o[t]():Object.keys(o).forEach(n=>{o[n]&&o[n]()}))},hn:(t,e,o)=>t&&t.dispatchEvent(new n.CustomEvent(e,o))};try{n.addEventListener("e",null,Object.defineProperty({},"passive",{get:()=>o.sn=!0}))}catch(n){}return o.mn=((n,t)=>(t=o.o(n))&&11===o.on(t)?t.host:t),o}(o,i);t.isServer=t.isPrerender=!(t.isClient=!0),t.window=o,t.location=o.location,t.document=i,t.publicPath=u,t.enableListener=((n,t,e,o,i)=>(function c(n,t,e,o,i,f){if(t){const c=n.N.get(t),s=n.x(c);if(s&&s.yn)if(o){const o=s.yn.find(n=>n.s===e);o&&n.H.I(c,e,n=>t[o.l](n),o.a,void 0===f?o.u:!!f,i)}else n.H.Q(c,e)}})(N,n,t,e,o,i)),t.emit=((n,e,o)=>b.hn(n,t.eventNameFn?t.eventNameFn(e):e,o)),e.h=r,e.Context=t;const W=o.$definedCmps=o.$definedCmps||{},N={vn:function j(n,e){e.mode||(e.mode=b.F(e,"mode")||t.mode),b.F(e,C)||function o(n,t){return n&&1===t.encapsulation}(b.e,n)||function i(n,t,e,o,c,f,s,l,r){for(e.$defaultHolder||t.c(e,e.$defaultHolder=t.rn(""),o[0]),r=0;r<o.length;r++)c=o[r],1===t.on(c)&&null!=(f=t.F(c,"slot"))?(l=l||{})[f]?l[f].push(c):l[f]=[c]:s?s.push(c):s=[c];n.q.set(e,s),n.B.set(e,l)}(N,b,e,e.childNodes),b.e||1!==n.encapsulation||(e.shadowRoot=e)},H:b,bn:function x(n,t){if(!W[n.n]){W[n.n]=!0,function e(n,t,o,i){o.connectedCallback=function(){(function e(n,t,o){n.wn.has(o)||(n.wn.set(o,!0),function i(n,t){const e=n.x(t);e.yn&&e.yn.forEach(e=>{e.r||n.H.I(t,e.s,function o(n,t,e,i){return o=>{(i=n.W.get(t))?i[e](o):((i=n.T.get(t)||[]).push(e,o),n.T.set(t,i))}}(n,t,e.l),e.a,e.u)})}(n,o)),n.C.delete(o),n.Mn.has(o)||(n.Mn.set(o,!0),function c(n,t,e){for(e=t;e=n.H.mn(e);)if(n.$n(e)){n.kn.has(t)||(n.p.set(t,e),(e.$activeLoading=e.$activeLoading||[]).push(t));break}}(n,o),n.g.add(()=>{n.vn(t,o),n.loadBundle(t,o.mode,()=>a(n,o))},3))})(n,t,this)},o.attributeChangedCallback=function(n,e,o){(function i(n,t,e,o,c,f){if(o!==c&&n)for(f in e=T(e),n)if(n[f].gn===e){t[f]=s(n[f].Cn,c);break}})(t.z,this,n,e,o)},o.disconnectedCallback=function(){(function t(n,e,o){!n.J&&function i(n,t){for(;t;){if(!n.o(t))return 9!==n.on(t);t=n.o(t)}}(n.H,e)&&(n.C.set(e,!0),l(n,e),$(n.P.get(e),!0),n.H.Q(e),n.wn.delete(e),(o=n.W.get(e))&&o.componentDidUnload&&o.componentDidUnload())})(n,this)},o.componentOnReady=function(t,e){return t||(e=new Promise(n=>t=n)),function o(n,t,e,i){n.C.has(t)||(n.kn.has(t)?e(t):((i=n.Wn.get(t)||[]).push(e),n.Wn.set(t,i)))}(n,this,t),e},o.$initLoad=function(){(function t(n,e,o,i,c){if(!n.kn.has(e)&&(i=n.W.get(e))&&!n.C.has(e)&&(!e.$activeLoading||!e.$activeLoading.length)){delete e.$activeLoading,n.kn.set(e,!0);try{$(n.P.get(e)),(c=n.Wn.get(e))&&(c.forEach(n=>n(e)),n.Wn.delete(e)),i.componentDidLoad&&i.componentDidLoad()}catch(t){n.A(t,4,e)}e.classList.add(o),l(n,e)}})(n,this,i)},o.En=function(){a(n,this)},function c(n,t,e){t&&Object.keys(t).forEach(o=>{const i=t[o].Nn;1===i||2===i?y(e,o,function t(){return(n.j.get(this)||{})[o]},function t(e){m(n,this,o,e)}):6===i&&h(e,o,A)})}(n,t.z,o)}(N,n,t.prototype,p);{const e=[];for(const t in n.z)n.z[t].gn&&e.push(n.z[t].gn);t.observedAttributes=e}o.customElements.define(n.n,t)}},S:t.emit,x:n=>d[b.nn(n)],jn:n=>t[n],isClient:!0,$n:n=>!(!W[b.nn(n)]&&!N.x(n)),loadBundle:function S(n,t,e){if(n.O)e();else{const o="string"==typeof n.On?n.On:n.On[t],i=u+o+(function o(n,t){return 2===t.encapsulation||1===t.encapsulation&&!n}(b.e,n)?".sc":"")+".js";import(i).then(t=>{try{n.O=t[(n=>T(n).split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(""))(n.n)],function o(n,t,e){const o=e.style;if(o){const i=e.is+(e.styleMode||E);if(!t[i]){const e=n.Y("template");t[i]=e,e.innerHTML=`<style>${o}</style>`,n.V(n.t,e)}}}(b,n,n.O)}catch(t){n.O=class{}}e()}).catch(n=>void 0)}},A:(n,t,e)=>void 0,xn:n=>(function t(n,e,o){return{create:g(n,e,o,"create"),componentOnReady:g(n,e,o,"componentOnReady")}})(b,v,n),g:function P(t,e,o){function i(){for(;u.length>0;)u.shift()();e=!1}function c(n){for(n=s(),i();a.length>0&&s()-n<40;)a.shift()();(o=a.length>0)&&l(f)}function f(n){for(i(),n=4+s();a.length>0&&s()<n;)a.shift()();(o=a.length>0)&&l(c)}const s=()=>t.performance.now(),l=t=>n.requestAnimationFrame(t),r=Promise.resolve(),u=[],a=[];return{add:(n,t)=>{3===t?(u.push(n),e||(e=!0,r.then(i))):(a.push(n),o||(o=!0,l(c)))}}}(o),Sn:n=>(n||[]).map(n=>(function t(n,e,o,i){const c={n:n[0],z:{color:{gn:"color"}}};c.On=n[1];const s=n[3];if(s)for(o=0;o<s.length;o++)i=s[o],c.z[i[0]]={Nn:i[1],gn:"string"==typeof i[2]?i[2]:i[2]?i[0]:0,Cn:i[3]};return c.encapsulation=n[4],n[5]&&(c.yn=n[5].map(f)),e[c.n]=c})(n,d)),p:new WeakMap,i:new WeakMap,q:new WeakMap,Mn:new WeakMap,wn:new WeakMap,kn:new WeakMap,N:new WeakMap,W:new WeakMap,C:new WeakMap,k:new WeakMap,B:new WeakMap,Wn:new WeakMap,T:new WeakMap,P:new WeakMap,j:new WeakMap};N.render=M(N,b);const R=b.fn;return R.$rendered=!0,R.$activeLoading=[],R.$initLoad=(()=>N.kn.set(R,!0)),function q(n,t,e){const o=e.querySelectorAll(`[${C}]`),i=o.length;let c,f,s,l,r,u;if(i>0)for(n.kn.set(e,!0),l=0;l<i;l++)for(c=o[l],f=t.F(c,C),(s=new L).m=t.nn(s.R=c),n.P.set(c,s),r=0,u=c.childNodes.length;r<u;r++)k(t,c.childNodes[r],s,f,!0)}(N,b,R),N.D=c,N}(e,H,n,t,i,hydratedCssClass);o.Sn(H.components).forEach(n=>o.bn(n,class extends HTMLElement{}))}})(window,document,Context,appNamespace,publicPath);
})({},"AdvancedSheetHandler","hydrated","/build/advanced-sheet-handler/");