6 lines
966 B
JavaScript
6 lines
966 B
JavaScript
import{f as p,u}from"./lit-element-BUNo9pnf.js";/**
|
|
* @license
|
|
* Copyright 2017 Google LLC
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/const l={attribute:!0,type:String,converter:u,reflect:!1,hasChanged:p},d=(t=l,s,r)=>{const{kind:a,metadata:i}=r;let o=globalThis.litPropertyMetadata.get(i);if(o===void 0&&globalThis.litPropertyMetadata.set(i,o=new Map),a==="setter"&&((t=Object.create(t)).wrapped=!0),o.set(r.name,t),a==="accessor"){const{name:n}=r;return{set(e){const c=s.get.call(this);s.set.call(this,e),this.requestUpdate(n,c,t,!0,e)},init(e){return e!==void 0&&this.C(n,void 0,t,e),e}}}if(a==="setter"){const{name:n}=r;return function(e){const c=this[n];s.call(this,e),this.requestUpdate(n,c,t,!0,e)}}throw Error("Unsupported decorator location: "+a)};function f(t){return(s,r)=>typeof r=="object"?d(t,s,r):((a,i,o)=>{const n=i.hasOwnProperty(o);return i.constructor.createProperty(o,a),n?Object.getOwnPropertyDescriptor(i,o):void 0})(t,s,r)}export{f as n};
|