classicy 0.5.8 → 0.5.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ /*! For license information please see dash.all.min.js.LICENSE.txt */
package/340.index.js ADDED
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 340.index.js.LICENSE.txt */
2
+ export const __webpack_id__=340;export const __webpack_ids__=[340];export const __webpack_modules__={2868:(t,e,i)=>{i.r(e),i.d(e,{default:()=>L});var s=i(6540);const o=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","waitingforkey","resize","enterpictureinpicture","leavepictureinpicture","webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"],n=globalThis.document?.createElement("template");n&&(n.innerHTML="\n <style>\n :host {\n display: inline-block;\n line-height: 0;\n }\n\n video,\n audio {\n max-width: 100%;\n max-height: 100%;\n min-width: 100%;\n min-height: 100%;\n }\n </style>\n <slot></slot>\n ");const a=(t,{tag:e,is:i})=>{const s=globalThis.document?.createElement(e,{is:i}),a=s?l(s):[];return class d extends t{static Events=o;static template=n;static skipAttributes=[];static#t;static get observedAttributes(){return d.#e(),[...s?.constructor?.observedAttributes??[],"autopictureinpicture","disablepictureinpicture","disableremoteplayback","autoplay","controls","controlslist","crossorigin","loop","muted","playsinline","poster","preload","src"]}static#e(){if(this.#t)return;this.#t=!0;const t=new Set(this.observedAttributes);t.delete("muted");for(let e of a)if(!(e in this.prototype))if("function"==typeof s[e])this.prototype[e]=function(...t){this.#i();const i=()=>this.call?this.call(e,...t):this.nativeEl[e].apply(this.nativeEl,t);return this.loadComplete&&!this.isLoaded?this.loadComplete.then(i):i()};else{let i={get(){this.#i();let i=e.toLowerCase();if(t.has(i)){const t=this.getAttribute(i);return null!==t&&(""===t||t)}return this.get?.(e)??this.nativeEl?.[e]??this.#s[e]}};e!==e.toUpperCase()&&(i.set=async function(i){this.#i();let s=e.toLowerCase();t.has(s)?!0===i||!1===i||null==i?this.toggleAttribute(s,Boolean(i)):this.setAttribute(s,i):(this.loadComplete&&!this.isLoaded&&await this.loadComplete,this.set?this.set(e,i):this.nativeEl[e]=i)}),Object.defineProperty(this.prototype,e,i)}}#o;#n;#a=!1;#l=!1;#r;#s;constructor(){super(),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.append(this.constructor.template.content.cloneNode(!0))),this.load!==d.prototype.load&&(this.loadComplete=new r)}get loadComplete(){return this.#n}set loadComplete(t){this.#l=!1,this.#n=t,t?.then(()=>{this.#l=!0})}get isLoaded(){return this.#l}get nativeEl(){return this.#r??this.shadowRoot.querySelector(e)??this.querySelector(e)}set nativeEl(t){this.#r=t}get defaultMuted(){return this.hasAttribute("muted")}set defaultMuted(t){this.toggleAttribute("muted",Boolean(t))}get src(){return this.getAttribute("src")}set src(t){this.setAttribute("src",`${t}`)}get preload(){return this.getAttribute("preload")??this.nativeEl?.preload}set preload(t){this.setAttribute("preload",`${t}`)}async#i(){if(this.#o)return;this.#o=!0,this.#d(),this.#c();for(let t of a)this.#u(t);const t=new Map,e=this.shadowRoot.querySelector("slot:not([name])");e?.addEventListener("slotchange",()=>{const i=new Map(t);e.assignedElements().filter(t=>["track","source"].includes(t.localName)).forEach(async e=>{i.delete(e);let s=t.get(e);s||(s=e.cloneNode(),t.set(e,s)),this.loadComplete&&!this.isLoaded&&await this.loadComplete,this.nativeEl.append?.(s)}),i.forEach(t=>t.remove())});for(let t of this.constructor.Events)this.shadowRoot.addEventListener?.(t,t=>{t.target===this.nativeEl&&this.dispatchEvent(new CustomEvent(t.type,{detail:t.detail}))},!0)}#u(t){if(Object.prototype.hasOwnProperty.call(this,t)){const e=this[t];delete this[t],this[t]=e}}#d(){const t=document.createElement(e,{is:i});t.muted=this.hasAttribute("muted");for(let{name:e,value:i}of this.attributes)t.setAttribute(e,i);this.#s={};for(let e of l(t))this.#s[e]=t[e];t.removeAttribute("src"),t.load()}async#c(){if(this.loadComplete&&!this.isLoaded&&await this.loadComplete,!this.nativeEl){const t=document.createElement(e,{is:i});t.part=e,this.shadowRoot.append(t)}this.nativeEl.muted=this.hasAttribute("muted")}attributeChangedCallback(t,e,i){this.#i(),"src"===t&&this.load!==d.prototype.load&&this.#h(),this.#p(t,e,i)}async#h(){this.#a&&(this.loadComplete=new r),this.#a=!0,await Promise.resolve(),await this.load(),this.loadComplete?.resolve(),await this.loadComplete}async#p(t,e,i){this.loadComplete&&!this.isLoaded&&await this.loadComplete,["id","class",...this.constructor.skipAttributes].includes(t)||(null===i?this.nativeEl.removeAttribute?.(t):this.nativeEl.setAttribute?.(t,i))}connectedCallback(){this.#i()}}};function l(t){let e=[];for(let i=Object.getPrototypeOf(t);i&&i!==HTMLElement.prototype;i=Object.getPrototypeOf(i))e.push(...Object.getOwnPropertyNames(i));return e}class r extends Promise{constructor(t=()=>{}){let e,i;super((s,o)=>{t(s,o),e=s,i=o}),this.resolve=e,this.reject=i}}const d=globalThis.document?a(HTMLElement,{tag:"video"}):class{};var c,u;globalThis.document&&a(HTMLElement,{tag:"audio"});const h=null==(c=globalThis.document)?void 0:c.createElement("template");h&&(h.innerHTML='\n <div class="wistia_embed"></div>\n ');const p=null==(u=globalThis.document)?void 0:u.createElement("template");p&&(p.innerHTML="\n <style>\n :host {\n display: inline-block;\n min-width: 300px;\n min-height: 150px;\n position: relative;\n }\n ::slotted(.wistia_embed) {\n position: absolute;\n width: 100%;\n height: 100%;\n }\n </style>\n <slot></slot>\n ");class m extends d{static template=p;static skipAttributes=["src"];get nativeEl(){var t;return(null==(t=this.api)?void 0:t.elem())??this.querySelector("video")}async load(){var t;if(null==(t=this.querySelector(".wistia_embed"))||t.remove(),!this.src)return;await new Promise(t=>setTimeout(t,50));const e=this.src.match(/(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/i)[1],i={autoPlay:this.autoplay,preload:this.preload??"metadata",playsinline:this.playsInline,endVideoBehavior:this.loop&&"loop",chromeless:!this.controls,playButton:this.controls,muted:this.defaultMuted};this.append(h.content.cloneNode(!0));const s=this.querySelector(".wistia_embed");s.id||(s.id=`${e}${++b}`),s.classList.add(`wistia_async_${e}`),await async function(t,e){return e?f[t]?f[t]:self[e]?self[e]:f[t]=new Promise((i,s)=>{const o=document.createElement("script");o.defer=!0,o.src=t,o.onload=()=>i(self[e]),o.onerror=s,document.head.append(o)}):import(t)}("https://fast.wistia.com/assets/external/E-v1.js","Wistia"),this.api=await new Promise(t=>{globalThis._wq.push({id:s.id,onReady:t,options:i})})}async attributeChangedCallback(t,e,i){"controls"!==t?super.attributeChangedCallback(t,e,i):(await this.loadComplete,"controls"===t&&(this.api.bigPlayButtonEnabled(this.controls),this.controls?this.api.releaseChromeless():this.api.requestChromeless()))}get duration(){var t;return null==(t=this.api)?void 0:t.duration()}play(){return this.api.play(),new Promise(t=>this.addEventListener("playing",t))}}const f={};let b=0;globalThis.customElements&&!globalThis.customElements.get("wistia-video")&&globalThis.customElements.define("wistia-video",m);var v=m,y=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),g={className:"class",htmlFor:"for"};function w(t){return t.toLowerCase()}function E(t){return"boolean"==typeof t?t?"":void 0:"function"==typeof t||"object"==typeof t&&null!==t?void 0:t}function C(t,e,i){var s;t[e]=i,null==i&&e in((null==(s=globalThis.HTMLElement)?void 0:s.prototype)??{})&&t.removeAttribute(e)}var L=function({react:t,tagName:e,elementClass:i,events:s,displayName:o,defaultProps:n,toAttributeName:a=w,toAttributeValue:l=E}){const r=Number.parseInt(t.version)>=19,d=t.forwardRef((o,d)=>{var c,u;const h=t.useRef(null),p=t.useRef(new Map),m={},f={},b={},v={};for(const[t,e]of Object.entries(o)){if(y.has(t)){b[t]=e;continue}const s=a(g[t]??t);if(t in i.prototype&&!(t in((null==(c=globalThis.HTMLElement)?void 0:c.prototype)??{}))&&!(null==(u=i.observedAttributes)?void 0:u.some(t=>t===s))){v[t]=e;continue}if(t.startsWith("on")){m[t]=e;continue}const o=l(e);if(s&&null!=o&&(f[s]=String(o),r||(b[s]=o)),s&&r){const t=E(e);b[s]=o!==t?o:e}}if("undefined"!=typeof window){for(const e in m){const i=m[e],o=e.endsWith("Capture"),n=((null==s?void 0:s[e])??e.slice(2).toLowerCase()).slice(0,o?-7:void 0);t.useLayoutEffect(()=>{const t=null==h?void 0:h.current;if(t&&"function"==typeof i)return t.addEventListener(n,i,o),()=>{t.removeEventListener(n,i,o)}},[null==h?void 0:h.current,i])}t.useLayoutEffect(()=>{if(null===h.current)return;const t=new Map;for(const e in v)C(h.current,e,v[e]),p.current.delete(e),t.set(e,v[e]);for(const[t,e]of p.current)C(h.current,t,void 0);p.current=t})}if("undefined"==typeof window&&(null==i?void 0:i.getTemplateHTML)&&(null==i?void 0:i.shadowRootOptions)){const{mode:e,delegatesFocus:s}=i.shadowRootOptions,n=t.createElement("template",{shadowrootmode:e,shadowrootdelegatesfocus:s,dangerouslySetInnerHTML:{__html:i.getTemplateHTML(f,o)}});b.children=[n,b.children]}return t.createElement(e,{...n,...b,ref:t.useCallback(t=>{h.current=t,"function"==typeof d?d(t):null!==d&&(d.current=t)},[d])})});return d.displayName=o??i.name,d}({react:s,tagName:"wistia-video",elementClass:v,toAttributeName:t=>"muted"===t?"":"defaultMuted"===t?"muted":w(t)})}};
@@ -0,0 +1,11 @@
1
+ /*! Bundled license information:
2
+
3
+ ce-la-react/dist/ce-la-react.js:
4
+ (**
5
+ * @license
6
+ * Copyright 2018 Google LLC
7
+ * SPDX-License-Identifier: BSD-3-Clause
8
+ *
9
+ * Modified version of `@lit/react` for vanilla custom elements with support for SSR.
10
+ *)
11
+ */
package/353.index.js ADDED
@@ -0,0 +1 @@
1
+ export const __webpack_id__=353;export const __webpack_ids__=[353];export const __webpack_modules__={1924:(e,r,t)=>{t.r(r),t.d(r,{default:()=>n});var a=t(6540);const l="64px",i={};var n=({src:e,light:r,oEmbedUrl:t,onClickPreview:n,playIcon:o,previewTabIndex:s,previewAriaLabel:c})=>{const[d,p]=(0,a.useState)(null);(0,a.useEffect)(()=>{e&&r&&t&&u({src:e,light:r,oEmbedUrl:t})},[e,r,t]);const u=async({src:e,light:r,oEmbedUrl:t})=>{if(a.isValidElement(r))return;if("string"==typeof r)return void p(r);if(i[e])return void p(i[e]);p(null);const l=await fetch(t.replace("{url}",e)),n=await l.json();if(n.thumbnail_url){const r=n.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");p(r),i[e]=r}},_=a.isValidElement(r),b={display:"flex",alignItems:"center",justifyContent:"center"},h={preview:{width:"100%",height:"100%",backgroundImage:d&&!_?`url(${d})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...b},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:l,width:l,height:l,position:_?"absolute":void 0,...b},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},g=a.createElement("div",{style:h.shadow,className:"react-player__shadow"},a.createElement("div",{style:h.playIcon,className:"react-player__play-icon"}));return a.createElement("div",{style:h.preview,className:"react-player__preview",tabIndex:s,onClick:e=>{null==n||n(e)},onKeyPress:e=>{"Enter"!==e.key&&" "!==e.key||null==n||n(e)},...c?{"aria-label":c}:{}},_?r:null,o||g)}}};