PageSourceSearch

https://pika.page/assets/lit-html--directives--unsafe-html.js-3c5c…7cddfb64c79d93815ff8093e8088d734ec9d5061.js

js pika.page collected 2026-10-03 21:39:49 UTC 922 bytes, 9 lines download raw bytes

1// lit-html/directives/[email protected] downloaded from https://ga.jspm.io/npm:[email protected]/directives/unsafe-html.js
2
3import{nothing as t,noChange as n}from"lit-html";import{Directive as r,PartType as i,directive as a}from"lit-html/directive";
4/**
5* @license
6* Copyright 2017 Google LLC
7* SPDX-License-Identifier: BSD-3-Clause
8*/let o=class e extends r{constructor(n){if(super(n),this.it=t,n.type!==i.CHILD)throw Error(this.constructor.directiveName+`() can only be used in child bindings`)}render(r){if(r===t||r==null)return this._t=void 0,this.it=r;if(r===n)return r;if(typeof r!=`string`)throw Error(this.constructor.directiveName+`() called with a non-string value`);if(r===this.it)return this._t;this.it=r;let i=[r];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}};o.directiveName=`unsafeHTML`,o.resultType=1;const s=a(o);export{o as UnsafeHTMLDirective,s as unsafeHTML};
9

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.