@jenkinsci/jenkins-io-components 1.40.0 → 1.41.0

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.
@@ -1,2 +1,2 @@
1
- System.register(["./jio-locale.cjs.js","./jio-report-infra-issue.cjs.js","./jio-report-a-problem.cjs.js","./jio-improve-this-page.cjs.js","./jio-changelog-weather-icon.cjs.js","./jio-changelog-ratings.cjs.js","./jio-weather-icon.cjs.js","./jio-socialmedia-buttons.cjs.js","./jio-datetime-box.cjs.js","./jio-navbar.cjs.js","./jio-navbar-link.cjs.js","./jio-footer.cjs.js","./jio-searchbox.cjs.js","./lit-localize-92178a16.cjs.js","./query-assigned-elements-6c30dcea.cjs.js","./lit-element-3df8b27a.cjs.js","./property-86ac9183.cjs.js","./shared-styles.cjs.js","./index-1698649c.cjs.js","./localized-decorator-3cb5e3e2.cjs.js","./global-0bfaef7b.cjs.js","./jio-cdf-logo.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_jioLocaleCjsJs){},function(_jioReportInfraIssueCjsJs){},function(_jioReportAProblemCjsJs){},function(_jioImproveThisPageCjsJs){},function(_jioChangelogWeatherIconCjsJs){},function(_jioChangelogRatingsCjsJs){},function(_jioWeatherIconCjsJs){},function(_jioSocialmediaButtonsCjsJs){},function(_jioDatetimeBoxCjsJs){},function(_jioNavbarCjsJs){},function(_jioNavbarLinkCjsJs){},function(_jioFooterCjsJs){},function(_jioSearchboxCjsJs){},function(_litLocalize001CjsJs){},function(_queryAssignedElements002CjsJs){},function(_litElement003CjsJs){},function(_property004CjsJs){},function(_sharedStylesCjsJs){},function(_index005CjsJs){},function(_localizedDecorator006CjsJs){},function(_global007CjsJs){},function(_jioCdfLogoCjsJs){}],execute:function(){}};});
1
+ System.register(["./jio-locale.cjs.js","./jio-report-infra-issue.cjs.js","./jio-report-a-problem.cjs.js","./jio-improve-this-page.cjs.js","./jio-changelog-weather-icon.cjs.js","./jio-changelog-ratings.cjs.js","./jio-weather-icon.cjs.js","./jio-socialmedia-buttons.cjs.js","./jio-datetime-box.cjs.js","./jio-navbar.cjs.js","./jio-navbar-link.cjs.js","./jio-footer.cjs.js","./jio-searchbox.cjs.js","./jio-read-time.cjs.js","./lit-localize-92178a16.cjs.js","./query-assigned-elements-6c30dcea.cjs.js","./lit-element-3df8b27a.cjs.js","./property-86ac9183.cjs.js","./shared-styles.cjs.js","./index-1698649c.cjs.js","./localized-decorator-3cb5e3e2.cjs.js","./global-0bfaef7b.cjs.js","./jio-cdf-logo.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_jioLocaleCjsJs){},function(_jioReportInfraIssueCjsJs){},function(_jioReportAProblemCjsJs){},function(_jioImproveThisPageCjsJs){},function(_jioChangelogWeatherIconCjsJs){},function(_jioChangelogRatingsCjsJs){},function(_jioWeatherIconCjsJs){},function(_jioSocialmediaButtonsCjsJs){},function(_jioDatetimeBoxCjsJs){},function(_jioNavbarCjsJs){},function(_jioNavbarLinkCjsJs){},function(_jioFooterCjsJs){},function(_jioSearchboxCjsJs){},function(_jioReadTimeCjsJs){},function(_litLocalize001CjsJs){},function(_queryAssignedElements002CjsJs){},function(_litElement003CjsJs){},function(_property004CjsJs){},function(_sharedStylesCjsJs){},function(_index005CjsJs){},function(_localizedDecorator006CjsJs){},function(_global007CjsJs){},function(_jioCdfLogoCjsJs){}],execute:function(){}};});
2
2
  //# sourceMappingURL=jio-components.cjs.js.map
@@ -11,4 +11,5 @@ export { Navbar } from './jio-navbar';
11
11
  export { NavbarLink } from './jio-navbar-link';
12
12
  export { Footer } from './jio-footer';
13
13
  export { Searchbox } from './jio-searchbox';
14
+ export { ReadTimeEstimation } from './jio-read-time';
14
15
  //# sourceMappingURL=jio-components.d.ts.map
@@ -1,2 +1,2 @@
1
- import"./jio-locale.esm.js";import"./jio-report-infra-issue.esm.js";import"./jio-report-a-problem.esm.js";import"./jio-improve-this-page.esm.js";import"./jio-changelog-weather-icon.esm.js";import"./jio-changelog-ratings.esm.js";import"./jio-weather-icon.esm.js";import"./jio-socialmedia-buttons.esm.js";import"./jio-datetime-box.esm.js";import"./jio-navbar.esm.js";import"./jio-navbar-link.esm.js";import"./jio-footer.esm.js";import"./jio-searchbox.esm.js";import"./lit-localize-a395d291.esm.js";import"./query-assigned-elements-f06332ea.esm.js";import"./lit-element-1adb71ee.esm.js";import"./property-6d5dc9b4.esm.js";import"./shared-styles.esm.js";import"./index-02ecfee8.esm.js";import"./localized-decorator-ec94f142.esm.js";import"./global-d62b227f.esm.js";import"./jio-cdf-logo.esm.js";
1
+ import"./jio-locale.esm.js";import"./jio-report-infra-issue.esm.js";import"./jio-report-a-problem.esm.js";import"./jio-improve-this-page.esm.js";import"./jio-changelog-weather-icon.esm.js";import"./jio-changelog-ratings.esm.js";import"./jio-weather-icon.esm.js";import"./jio-socialmedia-buttons.esm.js";import"./jio-datetime-box.esm.js";import"./jio-navbar.esm.js";import"./jio-navbar-link.esm.js";import"./jio-footer.esm.js";import"./jio-searchbox.esm.js";import"./jio-read-time.esm.js";import"./lit-localize-a395d291.esm.js";import"./query-assigned-elements-f06332ea.esm.js";import"./lit-element-1adb71ee.esm.js";import"./property-6d5dc9b4.esm.js";import"./shared-styles.esm.js";import"./index-02ecfee8.esm.js";import"./localized-decorator-ec94f142.esm.js";import"./global-d62b227f.esm.js";import"./jio-cdf-logo.esm.js";
2
2
  //# sourceMappingURL=jio-components.esm.js.map
@@ -1,2 +1,2 @@
1
- System.register(["./query-assigned-elements-6c30dcea.cjs.js","./lit-element-3df8b27a.cjs.js","./property-86ac9183.cjs.js","./shared-styles.cjs.js","./lit-localize-92178a16.cjs.js","./localized-decorator-3cb5e3e2.cjs.js"],function(_export,_context){"use strict";var t,o,s,e,r,i,h,a,n,p,_templateObject,_templateObject2,_templateObject3,c;function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return typeof key==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(typeof input!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(typeof res!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _possibleConstructorReturn(self,call){if(call&&(typeof call==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}return{setters:[function(_queryAssignedElements002CjsJs){t=_queryAssignedElements002CjsJs._;o=_queryAssignedElements002CjsJs.e;},function(_litElement003CjsJs){s=_litElement003CjsJs.i;e=_litElement003CjsJs.s;r=_litElement003CjsJs.x;},function(_property004CjsJs){i=_property004CjsJs.e;},function(_sharedStylesCjsJs){h=_sharedStylesCjsJs.i;},function(_litLocalize001CjsJs){a=_litLocalize001CjsJs.m;n=_litLocalize001CjsJs.s;},function(_localizedDecorator006CjsJs){p=_localizedDecorator006CjsJs.l;}],execute:function(){c=/*#__PURE__*/function(_e){_inherits(c,_e);var _super=_createSuper(c);function c(){var _this;_classCallCheck(this,c);_this=_super.apply(this,arguments),_this.sourcePath="",_this.githubRepo="",_this.githubBranch="master";return _this;}_createClass(c,[{key:"render",value:function render(){if(!this.sourcePath)return null;if(!this.githubRepo)return null;var t=this.sourcePath,o=this.githubRepo,s=this.githubBranch;return r(_templateObject||(_templateObject=_taggedTemplateLiteral(["<a href=\"","\" title=\"","\" rel=\"noreferrer noopener\"><ion-icon name=\"logo-github\"></ion-icon><span class=\"text\">","</span></a>"])),"https://github.com/".concat(o,"/edit/").concat(s,"/").concat(t),a(n(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["Edit "," on GitHub"])),t)),a("Improve this page"));}}]);return c;}(e);c.styles=[h,s(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["ion-icon{color:#000}"])))],t([i()],c.prototype,"sourcePath",void 0),t([i()],c.prototype,"githubRepo",void 0),t([i()],c.prototype,"githubBranch",void 0),c=t([p(),o("jio-improve-this-page")],c);}};});
1
+ System.register(["./query-assigned-elements-6c30dcea.cjs.js","./lit-element-3df8b27a.cjs.js","./property-86ac9183.cjs.js","./shared-styles.cjs.js","./lit-localize-92178a16.cjs.js","./localized-decorator-3cb5e3e2.cjs.js"],function(_export,_context){"use strict";var t,e,o,s,r,i,a,n,h,p,_templateObject,_templateObject2,_templateObject3,c;function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return typeof key==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(typeof input!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(typeof res!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _possibleConstructorReturn(self,call){if(call&&(typeof call==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}return{setters:[function(_queryAssignedElements002CjsJs){t=_queryAssignedElements002CjsJs._;e=_queryAssignedElements002CjsJs.e;},function(_litElement003CjsJs){o=_litElement003CjsJs.i;s=_litElement003CjsJs.s;r=_litElement003CjsJs.x;},function(_property004CjsJs){i=_property004CjsJs.e;},function(_sharedStylesCjsJs){a=_sharedStylesCjsJs.i;},function(_litLocalize001CjsJs){n=_litLocalize001CjsJs.m;h=_litLocalize001CjsJs.s;},function(_localizedDecorator006CjsJs){p=_localizedDecorator006CjsJs.l;}],execute:function(){c=/*#__PURE__*/function(_s){_inherits(c,_s);var _super=_createSuper(c);function c(){var _this;_classCallCheck(this,c);_this=_super.apply(this,arguments),_this.sourcePath="",_this.githubRepo="",_this.githubBranch="master";return _this;}_createClass(c,[{key:"render",value:function render(){if(!this.sourcePath)return null;if(!this.githubRepo)return null;var t=this.sourcePath,e=this.githubRepo,o=this.githubBranch;return r(_templateObject||(_templateObject=_taggedTemplateLiteral(["<a href=\"","\" title=\"","\" rel=\"noreferrer noopener\"><ion-icon name=\"logo-github\"></ion-icon><span class=\"text\">","</span></a>"])),"https://github.com/".concat(e,"/edit/").concat(o,"/").concat(t),n(h(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["Edit "," on GitHub"])),t)),n("Improve this page"));}}]);return c;}(s);c.styles=[a,o(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["ion-icon{color:#000}a{display:flex;align-items:center;gap:.25rem}"])))],t([i()],c.prototype,"sourcePath",void 0),t([i()],c.prototype,"githubRepo",void 0),t([i()],c.prototype,"githubBranch",void 0),c=t([p(),e("jio-improve-this-page")],c);}};});
2
2
  //# sourceMappingURL=jio-improve-this-page.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"jio-improve-this-page.cjs.js","sources":["../src/jio-improve-this-page.ts"],"sourcesContent":[null],"names":["ImproveThisPage","constructor","super","arguments","this","sourcePath","githubRepo","githubBranch","_this","render","LitElement"],"mappings":"u+HAiBKA,uEAEHC,SAAAA,EAAAA,CAEAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,EAAAA,KAAAA,CAAAA,MAAAA,CAAAA,KAAAA,MAAAC,SAMAC,EAAAA,KAAAA,CAAAC,WAAA,EAMeD,CAAAA,KAAAA,CAAAE,WAAA,EAkBbF,CAAAA,KAAAA,CAAuBG,aAAA,QACxB,QAAAC,KAAA,EACFC,YAAAA,CAAAA,CAAAA,GAAAA,GAAAA,UAAAA,KAAAA,UAAAA,OAAAA,mhBApCIC,CAAAA"}
1
+ {"version":3,"file":"jio-improve-this-page.cjs.js","sources":["../src/jio-improve-this-page.ts"],"sourcesContent":[null],"names":["ImproveThisPage","constructor","super","arguments","this","sourcePath","githubRepo","githubBranch","_this","render","LitElement"],"mappings":"u+HAuBKA,uEAEHC,SAAAA,EAAAA,CAEAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,EAAAA,KAAAA,CAAAA,MAAAA,CAAAA,KAAAA,MAAAC,SAMAC,EAAAA,KAAAA,CAAAC,WAAA,EAMeD,CAAAA,KAAAA,CAAAE,WAAA,EAkBbF,CAAAA,KAAAA,CAAuBG,aAAA,QACxB,QAAAC,KAAA,EACFC,YAAAA,CAAAA,CAAAA,GAAAA,GAAAA,UAAAA,KAAAA,UAAAA,OAAAA,mhBApCIC,CAAAA"}
@@ -1,2 +1,2 @@
1
- import{_ as t,e}from"./query-assigned-elements-f06332ea.esm.js";import{i as o,s,x as r}from"./lit-element-1adb71ee.esm.js";import{e as i}from"./property-6d5dc9b4.esm.js";import{i as h}from"./shared-styles.esm.js";import{m as a,s as n}from"./lit-localize-a395d291.esm.js";import{l as p}from"./localized-decorator-ec94f142.esm.js";let m=class extends s{constructor(){super(...arguments),this.sourcePath="",this.githubRepo="",this.githubBranch="master"}render(){if(!this.sourcePath)return null;if(!this.githubRepo)return null;const t=this.sourcePath,e=this.githubRepo,o=this.githubBranch;return r`<a href="${`https://github.com/${e}/edit/${o}/${t}`}" title="${a(n`Edit ${t} on GitHub`)}" rel="noreferrer noopener"><ion-icon name="logo-github"></ion-icon><span class="text">${a("Improve this page")}</span></a>`}};m.styles=[h,o`ion-icon{color:#000}`],t([i()],m.prototype,"sourcePath",void 0),t([i()],m.prototype,"githubRepo",void 0),t([i()],m.prototype,"githubBranch",void 0),m=t([p(),e("jio-improve-this-page")],m);
1
+ import{_ as e,e as t}from"./query-assigned-elements-f06332ea.esm.js";import{i as o,s,x as r}from"./lit-element-1adb71ee.esm.js";import{e as i}from"./property-6d5dc9b4.esm.js";import{i as a}from"./shared-styles.esm.js";import{m as n,s as h}from"./lit-localize-a395d291.esm.js";import{l as p}from"./localized-decorator-ec94f142.esm.js";let m=class extends s{constructor(){super(...arguments),this.sourcePath="",this.githubRepo="",this.githubBranch="master"}render(){if(!this.sourcePath)return null;if(!this.githubRepo)return null;const e=this.sourcePath,t=this.githubRepo,o=this.githubBranch;return r`<a href="${`https://github.com/${t}/edit/${o}/${e}`}" title="${n(h`Edit ${e} on GitHub`)}" rel="noreferrer noopener"><ion-icon name="logo-github"></ion-icon><span class="text">${n("Improve this page")}</span></a>`}};m.styles=[a,o`ion-icon{color:#000}a{display:flex;align-items:center;gap:.25rem}`],e([i()],m.prototype,"sourcePath",void 0),e([i()],m.prototype,"githubRepo",void 0),e([i()],m.prototype,"githubBranch",void 0),m=e([p(),t("jio-improve-this-page")],m);
2
2
  //# sourceMappingURL=jio-improve-this-page.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"jio-improve-this-page.esm.js","sources":["../src/jio-improve-this-page.ts"],"sourcesContent":[null],"names":["ImproveThisPage","LitElement","constructor","super","arguments","this","sourcePath","githubRepo","githubBranch","render"],"mappings":"yUAiBK,IAAAA,EAAA,cAAAC,EAEHC,cAEAC,SAAAC,WAMAC,KAAAC,WAAA,GAMeD,KAAAE,WAAA,GAkBbF,KAAuBG,aAAA,QACxB,CACFC"}
1
+ {"version":3,"file":"jio-improve-this-page.esm.js","sources":["../src/jio-improve-this-page.ts"],"sourcesContent":[null],"names":["ImproveThisPage","LitElement","constructor","super","arguments","this","sourcePath","githubRepo","githubBranch","render"],"mappings":"8UAuBK,IAAAA,EAAA,cAAAC,EAEHC,cAEAC,SAAAC,WAMAC,KAAAC,WAAA,GAMeD,KAAAE,WAAA,GAkBbF,KAAuBG,aAAA,QACxB,CACFC"}
@@ -0,0 +1,2 @@
1
+ System.register(["./query-assigned-elements-6c30dcea.cjs.js","./lit-element-3df8b27a.cjs.js","./property-86ac9183.cjs.js"],function(_export,_context){"use strict";var t,e,r,n,o,_templateObject,s;function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return typeof key==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(typeof input!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(typeof res!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _possibleConstructorReturn(self,call){if(call&&(typeof call==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}return{setters:[function(_queryAssignedElements002CjsJs){t=_queryAssignedElements002CjsJs._;e=_queryAssignedElements002CjsJs.e;},function(_litElement003CjsJs){r=_litElement003CjsJs.s;n=_litElement003CjsJs.x;},function(_property004CjsJs){o=_property004CjsJs.e;}],execute:function(){s=/*#__PURE__*/function(_r){_inherits(s,_r);var _super=_createSuper(s);function s(){var _this;_classCallCheck(this,s);_this=_super.apply(this,arguments),_this.content=null,_this.wordsPerMinute=200;return _this;}_createClass(s,[{key:"render",value:function render(){var t=function(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:200;var r;if(!(t&&t instanceof HTMLElement))return"";var n=(null===(r=t.textContent)||void 0===r?void 0:r.replace(/\s+/g," ").trim())||"";if(!n)return"";var o=n.split(" ").length;return Math.max(1,Math.ceil(o/e)).toString()+" min read";}(this.content,this.wordsPerMinute);return n(_templateObject||(_templateObject=_taggedTemplateLiteral(["",""])),t);}}]);return s;}(r);t([o({type:Object})],s.prototype,"content",void 0),t([o({type:Number})],s.prototype,"wordsPerMinute",void 0),s=t([e("jio-read-time-estimation")],s);}};});
2
+ //# sourceMappingURL=jio-read-time.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jio-read-time.cjs.js","sources":["../src/jio-read-time.ts"],"sourcesContent":[null],"names":["contentElement","wordsPerMinute","arguments","length","undefined","_a","HTMLElement","text","replace","trim"],"mappings":"83HA8BE,CAAA,SAAqBA,EAAA,IAAAC,CAAAA,CAAA,CAAAC,SAAA,CAAAC,MAAA,IAAAD,SAAA,MAAAE,SAAA,CAAAF,SAAA,IAAA,GAAA,CAEZ,GAAMG,CAAAA,CAAAA,CAQhB,GAAAL,EAAAA,CAAAA,EAAAA,YAAAM,CAAAA,WACO,CAAA,CAAA,MAAO,MAEeC,CAAAA,CAAqB,CAAA,CAAA,IAAA,IAArBF,EAAAL,oBAAqB,EAAAK,GAAAA,CAAAA,CAAAA,IAAA,EAAAA,CAAAA,CAAAA,CAAAG,QAAA,MAAA,CAAA,GAAA,CAAA,CAAAC,IAAA,EAAA,GAAA,EAAA,CAChD,GAAAF,CAAAA,CAAAA,CACF,MAAA"}
@@ -0,0 +1,12 @@
1
+ import { LitElement } from 'lit';
2
+ export declare class ReadTimeEstimation extends LitElement {
3
+ content: HTMLElement | null;
4
+ wordsPerMinute: number;
5
+ render(): import("lit-html").TemplateResult<1>;
6
+ }
7
+ declare global {
8
+ interface HTMLElementTagNameMap {
9
+ 'jio-read-time-estimation': ReadTimeEstimation;
10
+ }
11
+ }
12
+ //# sourceMappingURL=jio-read-time.d.ts.map
@@ -0,0 +1,2 @@
1
+ import{_ as t,e}from"./query-assigned-elements-f06332ea.esm.js";import{s as r,x as n}from"./lit-element-1adb71ee.esm.js";import{e as o}from"./property-6d5dc9b4.esm.js";let s=class extends r{constructor(){super(...arguments),this.content=null,this.wordsPerMinute=200}render(){const t=function(t,e=200){var r;if(!(t&&t instanceof HTMLElement))return"";const n=(null===(r=t.textContent)||void 0===r?void 0:r.replace(/\s+/g," ").trim())||"";if(!n)return"";const o=n.split(" ").length;return Math.max(1,Math.ceil(o/e)).toString()+" min read"}(this.content,this.wordsPerMinute);return n`${t}`}};t([o({type:Object})],s.prototype,"content",void 0),t([o({type:Number})],s.prototype,"wordsPerMinute",void 0),s=t([e("jio-read-time-estimation")],s);
2
+ //# sourceMappingURL=jio-read-time.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jio-read-time.esm.js","sources":["../src/jio-read-time.ts"],"sourcesContent":[null],"names":["contentElement","wordsPerMinute","_a","HTMLElement","text","replace","trim"],"mappings":"2RA8BE,SAAqBA,EAAAC,EAAA,KAEZ,IAAMC,EAQhB,KAAAF,GAAAA,aAAAG,aACO,MAAO,SAEeC,GAAqB,QAArBF,EAAAF,qBAAqB,IAAAE,OAAA,EAAAA,EAAAG,QAAA,OAAA,KAAAC,SAAA,GAChD,IAAAF,EACF,MAAA"}
@@ -1,2 +1,2 @@
1
- System.register(["./query-assigned-elements-6c30dcea.cjs.js","./lit-element-3df8b27a.cjs.js","./property-86ac9183.cjs.js","./shared-styles.cjs.js","./lit-localize-92178a16.cjs.js","./index-1698649c.cjs.js","./localized-decorator-3cb5e3e2.cjs.js"],function(_export,_context){"use strict";var e,t,i,s,r,o,p,a,h,l,n,_templateObject,_templateObject2,_templateObject3,_templateObject4,d;function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return typeof key==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(typeof input!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(typeof res!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _possibleConstructorReturn(self,call){if(call&&(typeof call==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}return{setters:[function(_queryAssignedElements002CjsJs){e=_queryAssignedElements002CjsJs._;t=_queryAssignedElements002CjsJs.e;},function(_litElement003CjsJs){i=_litElement003CjsJs.i;s=_litElement003CjsJs.s;r=_litElement003CjsJs.x;},function(_property004CjsJs){o=_property004CjsJs.e;},function(_sharedStylesCjsJs){p=_sharedStylesCjsJs.i;},function(_litLocalize001CjsJs){a=_litLocalize001CjsJs.m;h=_litLocalize001CjsJs.s;},function(_index005CjsJs){l=_index005CjsJs.d;},function(_localizedDecorator006CjsJs){n=_localizedDecorator006CjsJs.l;}],execute:function(){d=/*#__PURE__*/function(_s){_inherits(d,_s);var _super=_createSuper(d);function d(){var _this;_classCallCheck(this,d);_this=_super.apply(this,arguments),_this.pageTitle="",_this.url="",_this.sourcePath="",_this.githubRepo="",_this.githubBranch="master",_this.template="",_this.templateField="problem",_this.labels="bug";return _this;}_createClass(d,[{key:"locationHref",get:function get(){return("undefined"!=typeof location?location:{href:"http://unknown"}).href;}},{key:"windowTitle",get:function get(){return("undefined"!=typeof document?document:{title:"Unknown"}).title;}},{key:"derivedTitle",get:function get(){return this.pageTitle||this.windowTitle;}},{key:"derivedUrl",get:function get(){return this.url||this.locationHref;}},{key:"reportUrl",get:function get(){if(this.template&&(this.template.endsWith(".yml")||this.template.endsWith(".yaml"))){var _e=new URLSearchParams();_e.append("labels",this.labels),_e.append("template",this.template);var _t="[".concat(this.derivedTitle,"](").concat(this.derivedUrl,") page");return this.sourcePath&&(_t+="[source file](https://github.com/".concat(this.githubRepo,"/tree/").concat(this.githubBranch,"/").concat(this.sourcePath,")")),_e.append(this.templateField,_t),"https://github.com/".concat(this.githubRepo,"/issues/new?").concat(_e.toString());}{var _e2=new URLSearchParams();_e2.append("labels","bug"),_e2.append("template","4-bug.md"),_e2.append("title","".concat(this.derivedTitle," page - TODO: Put a summary here"));var _t2="Problem with the [".concat(this.derivedTitle,"](").concat(this.derivedUrl,") page");return this.sourcePath&&(_t2+="[source file](https://github.com/".concat(this.githubRepo,"/tree/").concat(this.githubBranch,"/").concat(this.sourcePath,")")),_t2+="\n TODO: Describe the expected and actual behavior here\n # Screenshots\n TODO: Add screenshots if possible\n # Possible Solution\n \x3c!-- If you have suggestions on a fix for the bug, please describe it here. --\x3e\n N/A",_e2.append("body",l(_templateObject||(_templateObject=_taggedTemplateLiteral(["",""])),_t2.split("\n").map(function(e){return e.trim();}).join("\n"))),"https://github.com/".concat(this.githubRepo,"/issues/new?").concat(_e2.toString());}}},{key:"render",value:function render(){return this.githubRepo&&null!=this.template?r(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<a href=\"","\" title=\"","\"><ion-icon class=\"report\" name=\"warning\"></ion-icon><span class=\"text\">","</span></a>"])),this.reportUrl,a(h(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["Report a page issue with ",""])),this.sourcePath||this.derivedUrl)),a("Report page issue")):null;}}]);return d;}(s);d.styles=[p,i(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["ion-icon{color:#ffa91b}"])))],e([o()],d.prototype,"pageTitle",void 0),e([o()],d.prototype,"url",void 0),e([o()],d.prototype,"sourcePath",void 0),e([o()],d.prototype,"githubRepo",void 0),e([o()],d.prototype,"githubBranch",void 0),e([o({type:String})],d.prototype,"template",void 0),e([o({type:String})],d.prototype,"templateField",void 0),e([o({type:String})],d.prototype,"labels",void 0),d=e([n(),t("jio-report-a-problem")],d);}};});
1
+ System.register(["./query-assigned-elements-6c30dcea.cjs.js","./lit-element-3df8b27a.cjs.js","./property-86ac9183.cjs.js","./shared-styles.cjs.js","./lit-localize-92178a16.cjs.js","./index-1698649c.cjs.js","./localized-decorator-3cb5e3e2.cjs.js"],function(_export,_context){"use strict";var e,t,i,s,r,o,p,a,h,l,n,_templateObject,_templateObject2,_templateObject3,_templateObject4,d;function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return typeof key==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(typeof input!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(typeof res!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _possibleConstructorReturn(self,call){if(call&&(typeof call==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}return{setters:[function(_queryAssignedElements002CjsJs){e=_queryAssignedElements002CjsJs._;t=_queryAssignedElements002CjsJs.e;},function(_litElement003CjsJs){i=_litElement003CjsJs.i;s=_litElement003CjsJs.s;r=_litElement003CjsJs.x;},function(_property004CjsJs){o=_property004CjsJs.e;},function(_sharedStylesCjsJs){p=_sharedStylesCjsJs.i;},function(_litLocalize001CjsJs){a=_litLocalize001CjsJs.m;h=_litLocalize001CjsJs.s;},function(_index005CjsJs){l=_index005CjsJs.d;},function(_localizedDecorator006CjsJs){n=_localizedDecorator006CjsJs.l;}],execute:function(){d=/*#__PURE__*/function(_s){_inherits(d,_s);var _super=_createSuper(d);function d(){var _this;_classCallCheck(this,d);_this=_super.apply(this,arguments),_this.pageTitle="",_this.url="",_this.sourcePath="",_this.githubRepo="",_this.githubBranch="master",_this.template="",_this.templateField="problem",_this.labels="bug";return _this;}_createClass(d,[{key:"locationHref",get:function get(){return("undefined"!=typeof location?location:{href:"http://unknown"}).href;}},{key:"windowTitle",get:function get(){return("undefined"!=typeof document?document:{title:"Unknown"}).title;}},{key:"derivedTitle",get:function get(){return this.pageTitle||this.windowTitle;}},{key:"derivedUrl",get:function get(){return this.url||this.locationHref;}},{key:"reportUrl",get:function get(){if(this.template&&(this.template.endsWith(".yml")||this.template.endsWith(".yaml"))){var _e=new URLSearchParams();_e.append("labels",this.labels),_e.append("template",this.template);var _t="[".concat(this.derivedTitle,"](").concat(this.derivedUrl,") page");return this.sourcePath&&(_t+="[source file](https://github.com/".concat(this.githubRepo,"/tree/").concat(this.githubBranch,"/").concat(this.sourcePath,")")),_e.append(this.templateField,_t),"https://github.com/".concat(this.githubRepo,"/issues/new?").concat(_e.toString());}{var _e2=new URLSearchParams();_e2.append("labels","bug"),_e2.append("template","4-bug.md"),_e2.append("title","".concat(this.derivedTitle," page - TODO: Put a summary here"));var _t2="Problem with the [".concat(this.derivedTitle,"](").concat(this.derivedUrl,") page");return this.sourcePath&&(_t2+="[source file](https://github.com/".concat(this.githubRepo,"/tree/").concat(this.githubBranch,"/").concat(this.sourcePath,")")),_t2+="\n TODO: Describe the expected and actual behavior here\n # Screenshots\n TODO: Add screenshots if possible\n # Possible Solution\n \x3c!-- If you have suggestions on a fix for the bug, please describe it here. --\x3e\n N/A",_e2.append("body",l(_templateObject||(_templateObject=_taggedTemplateLiteral(["",""])),_t2.split("\n").map(function(e){return e.trim();}).join("\n"))),"https://github.com/".concat(this.githubRepo,"/issues/new?").concat(_e2.toString());}}},{key:"render",value:function render(){return this.githubRepo&&null!=this.template?r(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<a href=\"","\" title=\"","\"><ion-icon class=\"report\" name=\"warning\"></ion-icon><span class=\"text\">","</span></a>"])),this.reportUrl,a(h(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["Report a page issue with ",""])),this.sourcePath||this.derivedUrl)),a("Report page issue")):null;}}]);return d;}(s);d.styles=[p,i(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["ion-icon{color:#ffa91b}a{display:flex;align-items:center;gap:.25rem}"])))],e([o()],d.prototype,"pageTitle",void 0),e([o()],d.prototype,"url",void 0),e([o()],d.prototype,"sourcePath",void 0),e([o()],d.prototype,"githubRepo",void 0),e([o()],d.prototype,"githubBranch",void 0),e([o({type:String})],d.prototype,"template",void 0),e([o({type:String})],d.prototype,"templateField",void 0),e([o({type:String})],d.prototype,"labels",void 0),d=e([n(),t("jio-report-a-problem")],d);}};});
2
2
  //# sourceMappingURL=jio-report-a-problem.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"jio-report-a-problem.cjs.js","sources":["../src/jio-report-a-problem.ts"],"sourcesContent":[null],"names":["ReportAProblem","_s","_inherits","d","_super","_createSuper","constructor","this","labels","_this","locationHref","location","href","windowTitle","LitElement"],"mappings":"kkIAqBEA,CAAe,uBAAAC,EAAA,EAAAC,SAAA,CAAAC,CAAA,CAAAF,EAAA,MAAAG,MAAA,CAAAC,YAAA,CAAAF,CAAA,EAEfG,SAAAA,EAAAA,CAAAA,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,2JA+CIC,KAAAA,eAGH,SA4CcA,CAAAA,KAAAA,CAAAC,OAAA,KAchB,QAAAC,KAAA,EAEOC,YAAAA,CAAAA,CAAAA,GAAAA,GAAAA,gBAAAA,GAAAA,UAAAA,IAAAA,CAEJ,CAAA,MAAA,CAD6B,mBAAAC,CAAAA,QAAAA,CAAAA,QAAAA,CAAA,CAAAC,IAAAA,CAAA,gBACPA,CAAAA,EAAAA,IACvB,EACFC,GAAAA,GAAAA,eAAAA,GAAAA,UAAAA,IAAAA,CAAAA,wpEApHgBC,CAEfR"}
1
+ {"version":3,"file":"jio-report-a-problem.cjs.js","sources":["../src/jio-report-a-problem.ts"],"sourcesContent":[null],"names":["ReportAProblem","_s","_inherits","d","_super","_createSuper","constructor","this","labels","_this","locationHref","location","href","windowTitle","LitElement"],"mappings":"kkIA2BEA,CAAe,uBAAAC,EAAA,EAAAC,SAAA,CAAAC,CAAA,CAAAF,EAAA,MAAAG,MAAA,CAAAC,YAAA,CAAAF,CAAA,EAEfG,SAAAA,EAAAA,CAAAA,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,2JA+CIC,KAAAA,eAGH,SA4CcA,CAAAA,KAAAA,CAAAC,OAAA,KAchB,QAAAC,KAAA,EAEOC,YAAAA,CAAAA,CAAAA,GAAAA,GAAAA,gBAAAA,GAAAA,UAAAA,IAAAA,CAEJ,CAAA,MAAA,CAD6B,mBAAAC,CAAAA,QAAAA,CAAAA,QAAAA,CAAA,CAAAC,IAAAA,CAAA,gBACPA,CAAAA,EAAAA,IACvB,EACFC,GAAAA,GAAAA,eAAAA,GAAAA,UAAAA,IAAAA,CAAAA,wpEApHgBC,CAEfR"}
@@ -1,2 +1,2 @@
1
- import{_ as e,e as t}from"./query-assigned-elements-f06332ea.esm.js";import{i,s,x as r}from"./lit-element-1adb71ee.esm.js";import{e as o}from"./property-6d5dc9b4.esm.js";import{i as p}from"./shared-styles.esm.js";import{m as a,s as h}from"./lit-localize-a395d291.esm.js";import{d as l}from"./index-02ecfee8.esm.js";import{l as n}from"./localized-decorator-ec94f142.esm.js";let d=class extends s{constructor(){super(...arguments),this.pageTitle="",this.url="",this.sourcePath="",this.githubRepo="",this.githubBranch="master",this.template="",this.templateField="problem",this.labels="bug"}get locationHref(){return("undefined"!=typeof location?location:{href:"http://unknown"}).href}get windowTitle(){return("undefined"!=typeof document?document:{title:"Unknown"}).title}get derivedTitle(){return this.pageTitle||this.windowTitle}get derivedUrl(){return this.url||this.locationHref}get reportUrl(){if(this.template&&(this.template.endsWith(".yml")||this.template.endsWith(".yaml"))){const e=new URLSearchParams;e.append("labels",this.labels),e.append("template",this.template);let t=`[${this.derivedTitle}](${this.derivedUrl}) page`;return this.sourcePath&&(t+=`[source file](https://github.com/${this.githubRepo}/tree/${this.githubBranch}/${this.sourcePath})`),e.append(this.templateField,t),`https://github.com/${this.githubRepo}/issues/new?${e.toString()}`}{const e=new URLSearchParams;e.append("labels","bug"),e.append("template","4-bug.md"),e.append("title",`${this.derivedTitle} page - TODO: Put a summary here`);let t=`Problem with the [${this.derivedTitle}](${this.derivedUrl}) page`;return this.sourcePath&&(t+=`[source file](https://github.com/${this.githubRepo}/tree/${this.githubBranch}/${this.sourcePath})`),t+="\n TODO: Describe the expected and actual behavior here\n # Screenshots\n TODO: Add screenshots if possible\n # Possible Solution\n \x3c!-- If you have suggestions on a fix for the bug, please describe it here. --\x3e\n N/A",e.append("body",l`${t.split("\n").map((e=>e.trim())).join("\n")}`),`https://github.com/${this.githubRepo}/issues/new?${e.toString()}`}}render(){return this.githubRepo&&null!=this.template?r`<a href="${this.reportUrl}" title="${a(h`Report a page issue with ${this.sourcePath||this.derivedUrl}`)}"><ion-icon class="report" name="warning"></ion-icon><span class="text">${a("Report page issue")}</span></a>`:null}};d.styles=[p,i`ion-icon{color:#ffa91b}`],e([o()],d.prototype,"pageTitle",void 0),e([o()],d.prototype,"url",void 0),e([o()],d.prototype,"sourcePath",void 0),e([o()],d.prototype,"githubRepo",void 0),e([o()],d.prototype,"githubBranch",void 0),e([o({type:String})],d.prototype,"template",void 0),e([o({type:String})],d.prototype,"templateField",void 0),e([o({type:String})],d.prototype,"labels",void 0),d=e([n(),t("jio-report-a-problem")],d);
1
+ import{_ as e,e as t}from"./query-assigned-elements-f06332ea.esm.js";import{i,s,x as r}from"./lit-element-1adb71ee.esm.js";import{e as o}from"./property-6d5dc9b4.esm.js";import{i as p}from"./shared-styles.esm.js";import{m as a,s as h}from"./lit-localize-a395d291.esm.js";import{d as l}from"./index-02ecfee8.esm.js";import{l as n}from"./localized-decorator-ec94f142.esm.js";let d=class extends s{constructor(){super(...arguments),this.pageTitle="",this.url="",this.sourcePath="",this.githubRepo="",this.githubBranch="master",this.template="",this.templateField="problem",this.labels="bug"}get locationHref(){return("undefined"!=typeof location?location:{href:"http://unknown"}).href}get windowTitle(){return("undefined"!=typeof document?document:{title:"Unknown"}).title}get derivedTitle(){return this.pageTitle||this.windowTitle}get derivedUrl(){return this.url||this.locationHref}get reportUrl(){if(this.template&&(this.template.endsWith(".yml")||this.template.endsWith(".yaml"))){const e=new URLSearchParams;e.append("labels",this.labels),e.append("template",this.template);let t=`[${this.derivedTitle}](${this.derivedUrl}) page`;return this.sourcePath&&(t+=`[source file](https://github.com/${this.githubRepo}/tree/${this.githubBranch}/${this.sourcePath})`),e.append(this.templateField,t),`https://github.com/${this.githubRepo}/issues/new?${e.toString()}`}{const e=new URLSearchParams;e.append("labels","bug"),e.append("template","4-bug.md"),e.append("title",`${this.derivedTitle} page - TODO: Put a summary here`);let t=`Problem with the [${this.derivedTitle}](${this.derivedUrl}) page`;return this.sourcePath&&(t+=`[source file](https://github.com/${this.githubRepo}/tree/${this.githubBranch}/${this.sourcePath})`),t+="\n TODO: Describe the expected and actual behavior here\n # Screenshots\n TODO: Add screenshots if possible\n # Possible Solution\n \x3c!-- If you have suggestions on a fix for the bug, please describe it here. --\x3e\n N/A",e.append("body",l`${t.split("\n").map((e=>e.trim())).join("\n")}`),`https://github.com/${this.githubRepo}/issues/new?${e.toString()}`}}render(){return this.githubRepo&&null!=this.template?r`<a href="${this.reportUrl}" title="${a(h`Report a page issue with ${this.sourcePath||this.derivedUrl}`)}"><ion-icon class="report" name="warning"></ion-icon><span class="text">${a("Report page issue")}</span></a>`:null}};d.styles=[p,i`ion-icon{color:#ffa91b}a{display:flex;align-items:center;gap:.25rem}`],e([o()],d.prototype,"pageTitle",void 0),e([o()],d.prototype,"url",void 0),e([o()],d.prototype,"sourcePath",void 0),e([o()],d.prototype,"githubRepo",void 0),e([o()],d.prototype,"githubBranch",void 0),e([o({type:String})],d.prototype,"template",void 0),e([o({type:String})],d.prototype,"templateField",void 0),e([o({type:String})],d.prototype,"labels",void 0),d=e([n(),t("jio-report-a-problem")],d);
2
2
  //# sourceMappingURL=jio-report-a-problem.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"jio-report-a-problem.esm.js","sources":["../src/jio-report-a-problem.ts"],"sourcesContent":[null],"names":["ReportAProblem","LitElement","constructor","this","labels","locationHref","location","href","windowTitle"],"mappings":"qXAqBE,IAAAA,EAAe,cAAAC,EAEfC,kJA+CIC,mBAGH,UA4CcA,KAAAC,OAAA,KAchB,CAEOC,mBAEJ,OAD6B,oBAAAC,SAAAA,SAAA,CAAAC,KAAA,mBACPA,IACvB,CACFC"}
1
+ {"version":3,"file":"jio-report-a-problem.esm.js","sources":["../src/jio-report-a-problem.ts"],"sourcesContent":[null],"names":["ReportAProblem","LitElement","constructor","this","labels","locationHref","location","href","windowTitle"],"mappings":"qXA2BE,IAAAA,EAAe,cAAAC,EAEfC,kJA+CIC,mBAGH,UA4CcA,KAAAC,OAAA,KAchB,CAEOC,mBAEJ,OAD6B,oBAAAC,SAAAA,SAAA,CAAAC,KAAA,mBACPA,IACvB,CACFC"}
@@ -1,2 +1,2 @@
1
- System.register(["./query-assigned-elements-6c30dcea.cjs.js","./lit-element-3df8b27a.cjs.js","./property-86ac9183.cjs.js","./shared-styles.cjs.js","./lit-localize-92178a16.cjs.js","./index-1698649c.cjs.js","./localized-decorator-3cb5e3e2.cjs.js"],function(_export,_context){"use strict";var e,t,i,s,r,o,n,a,h,p,l,_templateObject,_templateObject2,_templateObject3,_templateObject4,d;function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return typeof key==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(typeof input!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(typeof res!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _possibleConstructorReturn(self,call){if(call&&(typeof call==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}return{setters:[function(_queryAssignedElements002CjsJs){e=_queryAssignedElements002CjsJs._;t=_queryAssignedElements002CjsJs.e;},function(_litElement003CjsJs){i=_litElement003CjsJs.i;s=_litElement003CjsJs.s;r=_litElement003CjsJs.x;},function(_property004CjsJs){o=_property004CjsJs.e;},function(_sharedStylesCjsJs){n=_sharedStylesCjsJs.i;},function(_litLocalize001CjsJs){a=_litLocalize001CjsJs.m;h=_litLocalize001CjsJs.s;},function(_index005CjsJs){p=_index005CjsJs.d;},function(_localizedDecorator006CjsJs){l=_localizedDecorator006CjsJs.l;}],execute:function(){d=/*#__PURE__*/function(_s){_inherits(d,_s);var _super=_createSuper(d);function d(){var _this;_classCallCheck(this,d);_this=_super.apply(this,arguments),_this.pageTitle="",_this.url="",_this.sourcePath="",_this.githubRepo="",_this.githubBranch="master",_this.template="";return _this;}_createClass(d,[{key:"locationHref",get:function get(){return("undefined"!=typeof location?location:{href:"http://unknown"}).href;}},{key:"windowTitle",get:function get(){return("undefined"!=typeof document?document:{title:"Unknown"}).title;}},{key:"derivedTitle",get:function get(){return this.pageTitle||this.windowTitle;}},{key:"derivedUrl",get:function get(){return this.url||this.locationHref;}},{key:"reportUrl",get:function get(){if(this.template&&(this.template.endsWith(".yml")||this.template.endsWith(".yaml"))){var _e=new URLSearchParams();_e.append("labels","infra"),_e.append("template",this.template);var _t="[".concat(this.derivedTitle,"](").concat(this.derivedUrl,") page");return this.sourcePath&&(_t+=" [source file](https://github.com/".concat(this.githubRepo,"/tree/").concat(this.githubBranch,"/").concat(this.sourcePath,")")),_e.append("problem",_t),"https://github.com/jenkins-infra/helpdesk/issues/new?".concat(_e.toString());}{var _e2=new URLSearchParams();_e2.append("labels","infra"),_e2.append("template","infra-issue.yml"),_e2.append("title","".concat(this.derivedTitle," page - TODO: Put a summary here"));var _t2="Problem with the [".concat(this.derivedTitle,"](").concat(this.derivedUrl,") page");return this.sourcePath&&(_t2+=" [source file](https://github.com/".concat(this.githubRepo,"/tree/").concat(this.githubBranch,"/").concat(this.sourcePath,")")),_t2+="\n TODO: Describe the expected and actual behavior here\n # Screenshots\n TODO: Add screenshots if possible\n # Possible Solution\n \x3c!-- If you have suggestions on a fix for the bug, please describe it here. --\x3e\n N/A",_e2.append("body",p(_templateObject||(_templateObject=_taggedTemplateLiteral(["",""])),_t2.split("\n").map(function(e){return e.trim();}).join("\n"))),"https://github.com/jenkins-infra/helpdesk/issues/new?".concat(_e2.toString());}}},{key:"render",value:function render(){return this.githubRepo?r(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<a href=\"","\" title=\"","\"><ion-icon class=\"report\" name=\"warning\"></ion-icon><span class=\"text\">","</span></a>"])),this.reportUrl,a(h(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["Report an infrastructure issue related to ",""])),this.sourcePath||this.derivedUrl)),a("Report an Infra Issue")):null;}}]);return d;}(s);d.styles=[n,i(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["ion-icon{color:#ffa91b}"])))],e([o()],d.prototype,"pageTitle",void 0),e([o()],d.prototype,"url",void 0),e([o()],d.prototype,"sourcePath",void 0),e([o()],d.prototype,"githubRepo",void 0),e([o()],d.prototype,"githubBranch",void 0),e([o({type:String})],d.prototype,"template",void 0),d=e([l(),t("jio-report-infra-issue")],d);}};});
1
+ System.register(["./query-assigned-elements-6c30dcea.cjs.js","./lit-element-3df8b27a.cjs.js","./property-86ac9183.cjs.js","./shared-styles.cjs.js","./lit-localize-92178a16.cjs.js","./index-1698649c.cjs.js","./localized-decorator-3cb5e3e2.cjs.js"],function(_export,_context){"use strict";var e,t,i,s,r,o,n,a,h,p,l,_templateObject,_templateObject2,_templateObject3,_templateObject4,d;function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return typeof key==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(typeof input!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(typeof res!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _possibleConstructorReturn(self,call){if(call&&(typeof call==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}return{setters:[function(_queryAssignedElements002CjsJs){e=_queryAssignedElements002CjsJs._;t=_queryAssignedElements002CjsJs.e;},function(_litElement003CjsJs){i=_litElement003CjsJs.i;s=_litElement003CjsJs.s;r=_litElement003CjsJs.x;},function(_property004CjsJs){o=_property004CjsJs.e;},function(_sharedStylesCjsJs){n=_sharedStylesCjsJs.i;},function(_litLocalize001CjsJs){a=_litLocalize001CjsJs.m;h=_litLocalize001CjsJs.s;},function(_index005CjsJs){p=_index005CjsJs.d;},function(_localizedDecorator006CjsJs){l=_localizedDecorator006CjsJs.l;}],execute:function(){d=/*#__PURE__*/function(_s){_inherits(d,_s);var _super=_createSuper(d);function d(){var _this;_classCallCheck(this,d);_this=_super.apply(this,arguments),_this.pageTitle="",_this.url="",_this.sourcePath="",_this.githubRepo="",_this.githubBranch="master",_this.template="";return _this;}_createClass(d,[{key:"locationHref",get:function get(){return("undefined"!=typeof location?location:{href:"http://unknown"}).href;}},{key:"windowTitle",get:function get(){return("undefined"!=typeof document?document:{title:"Unknown"}).title;}},{key:"derivedTitle",get:function get(){return this.pageTitle||this.windowTitle;}},{key:"derivedUrl",get:function get(){return this.url||this.locationHref;}},{key:"reportUrl",get:function get(){if(this.template&&(this.template.endsWith(".yml")||this.template.endsWith(".yaml"))){var _e=new URLSearchParams();_e.append("labels","infra"),_e.append("template",this.template);var _t="[".concat(this.derivedTitle,"](").concat(this.derivedUrl,") page");return this.sourcePath&&(_t+=" [source file](https://github.com/".concat(this.githubRepo,"/tree/").concat(this.githubBranch,"/").concat(this.sourcePath,")")),_e.append("problem",_t),"https://github.com/jenkins-infra/helpdesk/issues/new?".concat(_e.toString());}{var _e2=new URLSearchParams();_e2.append("labels","infra"),_e2.append("template","infra-issue.yml"),_e2.append("title","".concat(this.derivedTitle," page - TODO: Put a summary here"));var _t2="Problem with the [".concat(this.derivedTitle,"](").concat(this.derivedUrl,") page");return this.sourcePath&&(_t2+=" [source file](https://github.com/".concat(this.githubRepo,"/tree/").concat(this.githubBranch,"/").concat(this.sourcePath,")")),_t2+="\n TODO: Describe the expected and actual behavior here\n # Screenshots\n TODO: Add screenshots if possible\n # Possible Solution\n \x3c!-- If you have suggestions on a fix for the bug, please describe it here. --\x3e\n N/A",_e2.append("body",p(_templateObject||(_templateObject=_taggedTemplateLiteral(["",""])),_t2.split("\n").map(function(e){return e.trim();}).join("\n"))),"https://github.com/jenkins-infra/helpdesk/issues/new?".concat(_e2.toString());}}},{key:"render",value:function render(){return this.githubRepo?r(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<a href=\"","\" title=\"","\"><ion-icon class=\"report\" name=\"warning\"></ion-icon><span class=\"text\">","</span></a>"])),this.reportUrl,a(h(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["Report an infrastructure issue related to ",""])),this.sourcePath||this.derivedUrl)),a("Report an Infra Issue")):null;}}]);return d;}(s);d.styles=[n,i(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["ion-icon{color:#ffa91b}a{display:flex;align-items:center;gap:.25rem}"])))],e([o()],d.prototype,"pageTitle",void 0),e([o()],d.prototype,"url",void 0),e([o()],d.prototype,"sourcePath",void 0),e([o()],d.prototype,"githubRepo",void 0),e([o()],d.prototype,"githubBranch",void 0),e([o({type:String})],d.prototype,"template",void 0),d=e([l(),t("jio-report-infra-issue")],d);}};});
2
2
  //# sourceMappingURL=jio-report-infra-issue.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"jio-report-infra-issue.cjs.js","sources":["../src/jio-report-infra-issue.ts"],"sourcesContent":[null],"names":["ReportInfraIssue","_s","_inherits","d","_super","_createSuper","constructor","this","template","_this","locationHref","location","href","windowTitle","LitElement"],"mappings":"kkIAqBEA,CAAe,uBAAAC,EAAA,EAAAC,SAAA,CAAAC,CAAA,CAAAF,EAAA,MAAAG,MAAA,CAAAC,YAAA,CAAAF,CAAA,EAEfG,SAAAA,EAAAA,CAAAA,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,yFA2BIC,KAAAA,YAGH,EAeGA,CAAAA,KAAAA,aAgCH,CAAA,QAAA,CAEcA,KAAAA,CAAAC,QAAAA,CAAA,EAahB,QAAAC,KAAA,EAEOC,YAAAA,CAAAA,CAAAA,GAAAA,GAAAA,gBAAAA,GAAAA,UAAAA,IAAAA,CAEJ,CAAA,MAAA,CAD6B,WAAAC,EAAAA,MAAAA,CAAAA,QAAAA,CAAAA,QAAA,CAAA,CAAAC,IAAA,CAAA,gBAAA,CAAA,EACLA,IACzB,EACFC,GAAAA,GAAAA,eAAAA,GAAAA,UAAAA,IAAAA,6oEApGgBC,CAEfR"}
1
+ {"version":3,"file":"jio-report-infra-issue.cjs.js","sources":["../src/jio-report-infra-issue.ts"],"sourcesContent":[null],"names":["ReportInfraIssue","_s","_inherits","d","_super","_createSuper","constructor","this","template","_this","locationHref","location","href","windowTitle","LitElement"],"mappings":"kkIA2BEA,CAAe,uBAAAC,EAAA,EAAAC,SAAA,CAAAC,CAAA,CAAAF,EAAA,MAAAG,MAAA,CAAAC,YAAA,CAAAF,CAAA,EAEfG,SAAAA,EAAAA,CAAAA,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,yFA2BIC,KAAAA,YAGH,EAeGA,CAAAA,KAAAA,aAgCH,CAAA,QAAA,CAEcA,KAAAA,CAAAC,QAAAA,CAAA,EAahB,QAAAC,KAAA,EAEOC,YAAAA,CAAAA,CAAAA,GAAAA,GAAAA,gBAAAA,GAAAA,UAAAA,IAAAA,CAEJ,CAAA,MAAA,CAD6B,WAAAC,EAAAA,MAAAA,CAAAA,QAAAA,CAAAA,QAAA,CAAA,CAAAC,IAAA,CAAA,gBAAA,CAAA,EACLA,IACzB,EACFC,GAAAA,GAAAA,eAAAA,GAAAA,UAAAA,IAAAA,6oEApGgBC,CAEfR"}
@@ -1,2 +1,2 @@
1
- import{_ as e,e as t}from"./query-assigned-elements-f06332ea.esm.js";import{i,s,x as r}from"./lit-element-1adb71ee.esm.js";import{e as o}from"./property-6d5dc9b4.esm.js";import{i as n}from"./shared-styles.esm.js";import{m as a,s as h}from"./lit-localize-a395d291.esm.js";import{d as p}from"./index-02ecfee8.esm.js";import{l}from"./localized-decorator-ec94f142.esm.js";let d=class extends s{constructor(){super(...arguments),this.pageTitle="",this.url="",this.sourcePath="",this.githubRepo="",this.githubBranch="master",this.template=""}get locationHref(){return("undefined"!=typeof location?location:{href:"http://unknown"}).href}get windowTitle(){return("undefined"!=typeof document?document:{title:"Unknown"}).title}get derivedTitle(){return this.pageTitle||this.windowTitle}get derivedUrl(){return this.url||this.locationHref}get reportUrl(){if(this.template&&(this.template.endsWith(".yml")||this.template.endsWith(".yaml"))){const e=new URLSearchParams;e.append("labels","infra"),e.append("template",this.template);let t=`[${this.derivedTitle}](${this.derivedUrl}) page`;return this.sourcePath&&(t+=` [source file](https://github.com/${this.githubRepo}/tree/${this.githubBranch}/${this.sourcePath})`),e.append("problem",t),`https://github.com/jenkins-infra/helpdesk/issues/new?${e.toString()}`}{const e=new URLSearchParams;e.append("labels","infra"),e.append("template","infra-issue.yml"),e.append("title",`${this.derivedTitle} page - TODO: Put a summary here`);let t=`Problem with the [${this.derivedTitle}](${this.derivedUrl}) page`;return this.sourcePath&&(t+=` [source file](https://github.com/${this.githubRepo}/tree/${this.githubBranch}/${this.sourcePath})`),t+="\n TODO: Describe the expected and actual behavior here\n # Screenshots\n TODO: Add screenshots if possible\n # Possible Solution\n \x3c!-- If you have suggestions on a fix for the bug, please describe it here. --\x3e\n N/A",e.append("body",p`${t.split("\n").map((e=>e.trim())).join("\n")}`),`https://github.com/jenkins-infra/helpdesk/issues/new?${e.toString()}`}}render(){return this.githubRepo?r`<a href="${this.reportUrl}" title="${a(h`Report an infrastructure issue related to ${this.sourcePath||this.derivedUrl}`)}"><ion-icon class="report" name="warning"></ion-icon><span class="text">${a("Report an Infra Issue")}</span></a>`:null}};d.styles=[n,i`ion-icon{color:#ffa91b}`],e([o()],d.prototype,"pageTitle",void 0),e([o()],d.prototype,"url",void 0),e([o()],d.prototype,"sourcePath",void 0),e([o()],d.prototype,"githubRepo",void 0),e([o()],d.prototype,"githubBranch",void 0),e([o({type:String})],d.prototype,"template",void 0),d=e([l(),t("jio-report-infra-issue")],d);
1
+ import{_ as e,e as t}from"./query-assigned-elements-f06332ea.esm.js";import{i,s,x as r}from"./lit-element-1adb71ee.esm.js";import{e as o}from"./property-6d5dc9b4.esm.js";import{i as n}from"./shared-styles.esm.js";import{m as a,s as h}from"./lit-localize-a395d291.esm.js";import{d as p}from"./index-02ecfee8.esm.js";import{l}from"./localized-decorator-ec94f142.esm.js";let d=class extends s{constructor(){super(...arguments),this.pageTitle="",this.url="",this.sourcePath="",this.githubRepo="",this.githubBranch="master",this.template=""}get locationHref(){return("undefined"!=typeof location?location:{href:"http://unknown"}).href}get windowTitle(){return("undefined"!=typeof document?document:{title:"Unknown"}).title}get derivedTitle(){return this.pageTitle||this.windowTitle}get derivedUrl(){return this.url||this.locationHref}get reportUrl(){if(this.template&&(this.template.endsWith(".yml")||this.template.endsWith(".yaml"))){const e=new URLSearchParams;e.append("labels","infra"),e.append("template",this.template);let t=`[${this.derivedTitle}](${this.derivedUrl}) page`;return this.sourcePath&&(t+=` [source file](https://github.com/${this.githubRepo}/tree/${this.githubBranch}/${this.sourcePath})`),e.append("problem",t),`https://github.com/jenkins-infra/helpdesk/issues/new?${e.toString()}`}{const e=new URLSearchParams;e.append("labels","infra"),e.append("template","infra-issue.yml"),e.append("title",`${this.derivedTitle} page - TODO: Put a summary here`);let t=`Problem with the [${this.derivedTitle}](${this.derivedUrl}) page`;return this.sourcePath&&(t+=` [source file](https://github.com/${this.githubRepo}/tree/${this.githubBranch}/${this.sourcePath})`),t+="\n TODO: Describe the expected and actual behavior here\n # Screenshots\n TODO: Add screenshots if possible\n # Possible Solution\n \x3c!-- If you have suggestions on a fix for the bug, please describe it here. --\x3e\n N/A",e.append("body",p`${t.split("\n").map((e=>e.trim())).join("\n")}`),`https://github.com/jenkins-infra/helpdesk/issues/new?${e.toString()}`}}render(){return this.githubRepo?r`<a href="${this.reportUrl}" title="${a(h`Report an infrastructure issue related to ${this.sourcePath||this.derivedUrl}`)}"><ion-icon class="report" name="warning"></ion-icon><span class="text">${a("Report an Infra Issue")}</span></a>`:null}};d.styles=[n,i`ion-icon{color:#ffa91b}a{display:flex;align-items:center;gap:.25rem}`],e([o()],d.prototype,"pageTitle",void 0),e([o()],d.prototype,"url",void 0),e([o()],d.prototype,"sourcePath",void 0),e([o()],d.prototype,"githubRepo",void 0),e([o()],d.prototype,"githubBranch",void 0),e([o({type:String})],d.prototype,"template",void 0),d=e([l(),t("jio-report-infra-issue")],d);
2
2
  //# sourceMappingURL=jio-report-infra-issue.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"jio-report-infra-issue.esm.js","sources":["../src/jio-report-infra-issue.ts"],"sourcesContent":[null],"names":["ReportInfraIssue","LitElement","constructor","this","template","locationHref","location","href","windowTitle"],"mappings":"gXAqBE,IAAAA,EAAe,cAAAC,EAEfC,mFA2BIC,gBAGH,GAeGA,kBAgCH,SAEcA,KAAAC,SAAA,EAahB,CAEOC,mBAEJ,OAD6B,oBAAAC,SAAAA,SAAA,CAAAC,KAAA,mBACLA,IACzB,CACFC"}
1
+ {"version":3,"file":"jio-report-infra-issue.esm.js","sources":["../src/jio-report-infra-issue.ts"],"sourcesContent":[null],"names":["ReportInfraIssue","LitElement","constructor","this","template","locationHref","location","href","windowTitle"],"mappings":"gXA2BE,IAAAA,EAAe,cAAAC,EAEfC,mFA2BIC,gBAGH,GAeGA,kBAgCH,SAEcA,KAAAC,SAAA,EAahB,CAEOC,mBAEJ,OAD6B,oBAAAC,SAAAA,SAAA,CAAAC,KAAA,mBACLA,IACzB,CACFC"}
@@ -388,6 +388,14 @@
388
388
  "name": "Searchbox",
389
389
  "module": "./jio-searchbox"
390
390
  }
391
+ },
392
+ {
393
+ "kind": "js",
394
+ "name": "ReadTimeEstimation",
395
+ "declaration": {
396
+ "name": "ReadTimeEstimation",
397
+ "module": "./jio-read-time"
398
+ }
391
399
  }
392
400
  ]
393
401
  },
@@ -1276,6 +1284,79 @@
1276
1284
  }
1277
1285
  ]
1278
1286
  },
1287
+ {
1288
+ "kind": "javascript-module",
1289
+ "path": "src/jio-read-time.ts",
1290
+ "declarations": [
1291
+ {
1292
+ "kind": "class",
1293
+ "description": "",
1294
+ "name": "ReadTimeEstimation",
1295
+ "members": [
1296
+ {
1297
+ "kind": "field",
1298
+ "name": "content",
1299
+ "type": {
1300
+ "text": "HTMLElement | null"
1301
+ },
1302
+ "default": "null",
1303
+ "attribute": "content"
1304
+ },
1305
+ {
1306
+ "kind": "field",
1307
+ "name": "wordsPerMinute",
1308
+ "type": {
1309
+ "text": "number"
1310
+ },
1311
+ "default": "200",
1312
+ "attribute": "wordsPerMinute"
1313
+ }
1314
+ ],
1315
+ "attributes": [
1316
+ {
1317
+ "name": "content",
1318
+ "type": {
1319
+ "text": "HTMLElement | null"
1320
+ },
1321
+ "default": "null",
1322
+ "fieldName": "content"
1323
+ },
1324
+ {
1325
+ "name": "wordsPerMinute",
1326
+ "type": {
1327
+ "text": "number"
1328
+ },
1329
+ "default": "200",
1330
+ "fieldName": "wordsPerMinute"
1331
+ }
1332
+ ],
1333
+ "superclass": {
1334
+ "name": "LitElement",
1335
+ "package": "lit"
1336
+ },
1337
+ "tagName": "jio-read-time-estimation",
1338
+ "customElement": true
1339
+ }
1340
+ ],
1341
+ "exports": [
1342
+ {
1343
+ "kind": "js",
1344
+ "name": "ReadTimeEstimation",
1345
+ "declaration": {
1346
+ "name": "ReadTimeEstimation",
1347
+ "module": "src/jio-read-time.ts"
1348
+ }
1349
+ },
1350
+ {
1351
+ "kind": "custom-element-definition",
1352
+ "name": "jio-read-time-estimation",
1353
+ "declaration": {
1354
+ "name": "ReadTimeEstimation",
1355
+ "module": "src/jio-read-time.ts"
1356
+ }
1357
+ }
1358
+ ]
1359
+ },
1279
1360
  {
1280
1361
  "kind": "javascript-module",
1281
1362
  "path": "src/jio-report-a-problem.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jenkinsci/jenkins-io-components",
3
- "version": "1.40.0",
3
+ "version": "1.41.0",
4
4
  "description": "Random parts shared between jenkins.io",
5
5
  "publishConfig": {
6
6
  "access": "public"