summaryrefslogtreecommitdiffstats
path: root/RaspberryPITVHDMI_archivos/plugin-d3f2aabe1f4c66e75c9ad0d17efb33e5633e91ae4b556c155058c9.js
diff options
context:
space:
mode:
authorHender2023-04-13 00:38:16 -0400
committerGitHub2023-04-13 00:38:16 -0400
commitbd36e6c1f959b511eca6120e5099d108bbb2c426 (patch)
tree1b0edf875937b7154dd6512a217fe6af78ba6186 /RaspberryPITVHDMI_archivos/plugin-d3f2aabe1f4c66e75c9ad0d17efb33e5633e91ae4b556c155058c9.js
parentb5ad1f3cde58e2c49b142be534b919b21a960a6c (diff)
downloadbash-cec-origin/master.tar.gz
bash-cec-origin/master.tar.bz2
bash-cec-origin/master.zip
Delete RaspberryPITVHDMI_archivos directoryHEADorigin/masterorigin/HEADmaster
Diffstat (limited to 'RaspberryPITVHDMI_archivos/plugin-d3f2aabe1f4c66e75c9ad0d17efb33e5633e91ae4b556c155058c9.js')
-rw-r--r--RaspberryPITVHDMI_archivos/plugin-d3f2aabe1f4c66e75c9ad0d17efb33e5633e91ae4b556c155058c9.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/RaspberryPITVHDMI_archivos/plugin-d3f2aabe1f4c66e75c9ad0d17efb33e5633e91ae4b556c155058c9.js b/RaspberryPITVHDMI_archivos/plugin-d3f2aabe1f4c66e75c9ad0d17efb33e5633e91ae4b556c155058c9.js
deleted file mode 100644
index 9333117..0000000
--- a/RaspberryPITVHDMI_archivos/plugin-d3f2aabe1f4c66e75c9ad0d17efb33e5633e91ae4b556c155058c9.js
+++ /dev/null
@@ -1,4 +0,0 @@
-!function(e,t){function n(e){e.toggleClass("open")}var s=function(e){var t,n=e.createElement("details");if(!("open"in n))return!1;var s=e.body||function(){var n=e.documentElement;return t=!0,n.insertBefore(e.createElement("body"),n.firstElementChild||n.firstChild)}();n.innerHTML="<summary>a</summary>b",n.style.display="block",s.appendChild(n);var o=n.offsetHeight;return n.open=!0,o=o!==n.offsetHeight,s.removeChild(n),t&&s.parentNode.removeChild(s),o}(e);t.fn.details=function(){return s?this:this.each(function(){var e=t(this),s=t("summary",e).first();s.prop("tabIndex",0),s.on("keydown",function(t){if(32===t.keyCode||13===t.keyCode)return n(e),!1}),s.on("click",function(){s.focus(),n(e)})})}}(document,jQuery),define("discourse/plugins/discourse-details/initializers/apply-details",["exports","discourse/lib/plugin-api"],function(e,t){"use strict";function n(e){e.decorateCooked(function(e){return $("details",e).details()},{id:"discourse-details"}),e.addToolbarPopupMenuOptionsCallback(function(){return{action:"insertDetails",icon:"caret-right",label:"details.title"}}),e.modifyClass("controller:composer",{actions:{insertDetails:function(){this.toolbarEvent.applySurround('\n[details="'+I18n.t("composer.details_title")+'"]\n',"\n[/details]\n","details_text",{multiline:!1})}}})}Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"apply-details",initialize:function(){(0,t.withPluginApi)("0.8.7",n)}}}),define("discourse/plugins/discourse-details/lib/discourse-markdown/details",["exports"],function(e){"use strict";function t(e){e.whiteList(["summary","summary[title]","details","details[open]","details.elided"]),e.registerPlugin(function(e){e.block.bbcode.ruler.push("details",n)})}Object.defineProperty(e,"__esModule",{value:!0}),e.setup=t;var n={tag:"details",before:function(e,t){var n=t.attrs;e.push("bbcode_open","details",1),e.push("bbcode_open","summary",1),e.push("text","",0).content=n._default||"",e.push("bbcode_close","summary",-1)},after:function(e){e.push("bbcode_close","details",-1)}}}),function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};clearTimeout(this.timeout);var s=moment().utc(),l=n.time?n.date+" "+n.time:n.date,i=void 0,a=void 0;a=n.time?n.displayedTimezone||moment.tz.guess():n.displayedTimezone||n.timezone||moment.tz.guess(),(i=n.timezone?o(l,n.timezone):moment.utc(l))<s&&(n.recurring?i=u(i,n.recurring):e.addClass("past"));var c=i.tz(a),h=d(c.clone(),a,n),v=p(h),b=m(h),g=r(c,a,n);e.html(f).attr("aria-label",v).attr("data-html-tooltip",'<div class="locale-dates-previews">'+b+"</div>").addClass("cooked-date").find(".relative-time").text(g),this.timeout=setTimeout(function(){return t(e,n)},1e4)}function n(e){return e.replace("_"," ").replace("Etc/","").split("/")}function s(e){var t=n(e);return t[1]||t[0]}function o(e,t){return moment.tz(e,t).utc()}function l(e,t){var n=I18n.t("discourse_local_dates.relative_dates."+t,{time:"LT"});return e?n.split("LT").map(function(e){return"["+e+"]"}).join("LT"):"["+n.replace(" LT","")+"]"}function i(e){return{sameDay:l(e,"today"),nextDay:l(e,"tomorrow"),lastDay:l(e,"yesterday"),sameElse:"L"}}function a(e,t){return moment.tz(e).utcOffset()===moment.tz(t).utcOffset()}function r(e,t,o){var l=a(t,moment.tz.guess()),r=e.isBetween(moment().subtract(2,"days"),moment().add(1,"days").endOf("day"));return o.calendar&&r?l?e=o.time?e.calendar(null,i(o.time)):e.calendar(null,i(null)):(e=e.format(o.format),e=e.replace("TZ",""),e=e+" ("+s(t)+")"):o.time?(e=e.format(o.format),o.displayedTimezone&&!l?(e=e.replace("TZ",""),e=e+" ("+s(t)+")"):e=e.replace("TZ",n(t).join(": "))):(e=e.format(o.format),l?e=e.replace("TZ",s(t)):(e=e.replace("TZ",""),e=e+" ("+s(t)+")")),e}function u(e,t){var n=t.split("."),s=parseInt(n[0],10),o=n[1],l=moment().diff(e,o),i=Math.ceil(l+s),a=moment(e.format()).isDST(),r=e.add(i,o),u=moment(r.format()).isDST();return!a&&u&&r.subtract(1,"hour"),a&&!u&&r.add(1,"hour"),r}function c(e,t){var n=moment(e).tz(t);return[n.format("LLL"),"→",n.add(24,"hours").format("LLL")].join(" ")}function d(e,t,n){var s=[],o=moment.tz.guess(),l=n.timezones.filter(function(e){return e!==o});return s.push({timezone:o,current:!0,dateTime:n.time?moment(e).tz(o).format("LLL"):c(e,o)}),n.timezone&&t===o&&n.timezone!==t&&!a(t,n.timezone)&&l.unshift(n.timezone),l.filter(function(e){return e}).forEach(function(l){a(l,t)||(a(l,o)&&(l=o),s.push({timezone:l,dateTime:n.time?moment(e).tz(l).format("LLL"):c(e,l)}))}),s.length||s.push({timezone:"Etc/UTC",dateTime:n.time?moment(e).tz("Etc/UTC").format("LLL"):c(e,"Etc/UTC")}),_.uniq(s,"timezone")}function p(e){return e.map(function(e){var t=s(e.timezone);return e.dateTime.match(/TZ/)?e.dateTime.replace(/TZ/,t):t+" "+e.dateTime}).join(", ")}function m(t){return t.map(function(t){var n=e(h);return t.current&&n.addClass("current"),n.find(".timezone").text(s(t.timezone)),n.find(".date-time").text(t.dateTime),n[0].outerHTML}).join("")}var f='\n <span>\n <svg class="fa d-icon d-icon-globe-americas svg-icon" xmlns="http://www.w3.org/2000/svg">\n <use xlink:href="#globe-americas"></use>\n </svg>\n <span class="relative-time"></span>\n </span>\n ',h="\n <div class='preview'>\n <span class='timezone'></span>\n <span class='date-time'></span>\n </div>\n ";e.fn.applyLocalDates=function(){return this.each(function(){var n=e(this),s={};s.time=n.attr("data-time"),s.date=n.attr("data-date"),s.recurring=n.attr("data-recurring"),s.timezones=(n.attr("data-timezones")||Discourse.SiteSettings.discourse_local_dates_default_timezones||"Etc/UTC").split("|"),s.timezone=n.attr("data-timezone"),s.calendar="on"===(n.attr("data-calendar")||"on"),s.displayedTimezone=n.attr("data-displayed-timezone"),s.format=n.attr("data-format")||(s.time?"LLL":"LL"),t(n,s)})}}(jQuery),define("discourse/plugins/discourse-local-dates/discourse/components/discourse-local-dates-create-form",["exports","discourse/lib/computed","discourse/lib/load-script","ember-addons/ember-computed-decorators","discourse/lib/text","discourse/lib/debounce"],function(e,t,n,s,o,l){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t,n,s,o){var l={};return Object.keys(s).forEach(function(e){l[e]=s[e]}),l.enumerable=!!l.enumerable,l.configurable=!!l.configurable,("value"in l||l.initializer)&&(l.writable=!0),l=n.slice().reverse().reduce(function(n,s){return s(e,t,n)||n},l),o&&void 0!==l.initializer&&(l.value=l.initializer?l.initializer.call(o):void 0,l.initializer=void 0),void 0===l.initializer&&(Object.defineProperty(e,t,l),l=null),l}Object.defineProperty(e,"__esModule",{value:!0});var r,u,c,d,p,m,f,h,v,b,g,_,y,w;e.default=Ember.Component.extend((r=(0,s.default)("date","toDate","toTime"),u=(0,s.default)("computedConfig","isRange"),c=(0,s.default)("date","time","isRange","options.{format,timezone}"),d=(0,s.default)("toDate","toTime","isRange","options.{timezone,format}"),p=(0,s.default)("recurring","timezones","timezone","format"),m=(0,s.default)("fromConfig.{date}","toConfig.{date}","options.{recurring,timezones,timezone,format}"),f=(0,s.default)("currentUserTimezone"),h=(0,s.default)("formats"),v=(0,s.default)("advancedMode"),b=(0,s.default)("computedConfig.{from,to,options}","options","isValid","isRange"),g=(0,s.default)("fromConfig.dateTime"),_=(0,s.default)("toConfig.dateTime","toSelected"),w={timeFormat:"HH:mm:ss",dateFormat:"YYYY-MM-DD",dateTimeFormat:"YYYY-MM-DD HH:mm:ss",date:null,toDate:null,time:null,toTime:null,format:null,formats:null,recurring:null,advancedMode:!1,isValid:!0,timezone:null,fromSelected:null,fromFilled:Ember.computed.notEmpty("date"),toSelected:null,toFilled:Ember.computed.notEmpty("toDate"),init:function(){this._super.apply(this,arguments),this._picker=null,this.setProperties({timezones:[],formats:(this.siteSettings.discourse_local_dates_default_formats||"").split("|").filter(function(e){return e}),timezone:moment.tz.guess(),date:moment().format(this.dateFormat)})},didInsertElement:function(){var e=this;this._super.apply(this,arguments),this._setupPicker().then(function(t){e._picker=t,e.send("focusFrom")})},_renderPreview:(0,l.default)(function(){var e=this,t=this.markup;t&&(0,o.cookAsync)(t).then(function(t){e.set("currentPreview",t),Ember.run.schedule("afterRender",function(){return e.$(".preview .discourse-local-date").applyLocalDates()})})},250).observes("markup"),isRange:function(e,t,n){return e&&(t||n)}},i(w,"isValid",function(e,t){var n=e.from;if(!e.from.dateTime||!e.from.dateTime.isValid())return!1;if(t){var s=e.to;if(!s.dateTime||!s.dateTime.isValid()||s.dateTime.diff(n.dateTime)<0)return!1}return!0}),i(w,"fromConfig",function(e,t,n){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=!t,l=void 0;l=o?moment.tz(e,s.timezone):moment.tz(e+" "+t,s.timezone),o||(t=l.format(this.timeFormat));var i=s.format;return o&&this.formats.includes(i)&&(i="LL"),Ember.Object.create({date:l.format(this.dateFormat),time:t,dateTime:l,format:i,range:!!n&&"start"})}),i(w,"toConfig",function(e,t,n){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=!t;t&&!e&&(e=moment().format(this.dateFormat));var l=void 0;l=o?moment.tz(e,s.timezone).endOf("day"):moment.tz(e+" "+t,s.timezone),o||(t=l.format(this.timeFormat));var i=s.format;return o&&this.formats.includes(i)&&(i="LL"),Ember.Object.create({date:l.format(this.dateFormat),time:t,dateTime:l,format:i,range:!!n&&"end"})}),i(w,"options",function(e,t,n,s){return Ember.Object.create({recurring:e,timezones:t,timezone:n,format:s})}),i(w,"computedConfig",function(e,t,n){return Ember.Object.create({from:e,to:t,options:n})}),i(w,"currentUserTimezone",function(){return moment.tz.guess()}),i(w,"allTimezones",function(){return moment.tz.names()}),i(w,"timezoneIsDifferentFromUserTimezone",(0,t.propertyNotEqual)("currentUserTimezone","options.timezone")),i(w,"formatedCurrentUserTimezone",function(e){return e.replace("_"," ").replace("Etc/","").split("/")}),i(w,"previewedFormats",function(e){return e.map(function(e){return{format:e,preview:moment().format(e)}})}),i(w,"recurringOptions",function(){var e="discourse_local_dates.create.form.recurring";return[{name:I18n.t(e+".every_day"),id:"1.days"},{name:I18n.t(e+".every_week"),id:"1.weeks"},{name:I18n.t(e+".every_two_weeks"),id:"2.weeks"},{name:I18n.t(e+".every_month"),id:"1.months"},{name:I18n.t(e+".every_two_months"),id:"2.months"},{name:I18n.t(e+".every_three_months"),id:"3.months"},{name:I18n.t(e+".every_six_months"),id:"6.months"},{name:I18n.t(e+".every_year"),id:"1.years"}]}),i(w,"_generateDateMarkup",function(e,t,n){var s="[date="+e.date;return e.time&&(s+=" time="+e.time),e.format&&e.format.length&&(s+=' format="'+e.format+'"'),t.timezone&&(s+=' timezone="'+t.timezone+'"'),t.timezones&&t.timezones.length&&(s+=' timezones="'+t.timezones.join("|")+'"'),t.recurring&&!n&&(s+=' recurring="'+t.recurring+'"'),s+="]"}),i(w,"toggleModeBtnLabel",function(e){return e?"discourse_local_dates.create.form.simple_mode":"discourse_local_dates.create.form.advanced_mode"}),i(w,"markup",function(e,t,n,s){var o=void 0;return n&&e.from&&(o=this._generateDateMarkup(e.from,t,s),e.to&&e.to.range&&(o+=" → ",o+=this._generateDateMarkup(e.to,t,s))),o}),i(w,"formattedFrom",function(e){return e.format("LLLL")}),i(w,"formattedTo",function(e,t){var n=t?"&nbsp;":I18n.t("discourse_local_dates.create.form.until");return e.isValid()?e.format("LLLL"):n}),i(w,"actions",{setTime:function(e){this._setTimeIfValid(e.target.value,"time")},setToTime:function(e){this._setTimeIfValid(e.target.value,"toTime")},eraseToDateTime:function(){this.setProperties({toDate:null,toTime:null}),this._setPickerDate(null)},focusFrom:function(){this.setProperties({fromSelected:!0,toSelected:!1}),this._setPickerDate(this.get("fromConfig.date")),this._setPickerMinDate(null)},focusTo:function(){this.setProperties({toSelected:!0,fromSelected:!1}),this._setPickerDate(this.get("toConfig.date")),this._setPickerMinDate(this.get("fromConfig.date"))},advancedMode:function(){this.toggleProperty("advancedMode")},save:function(){var e=this.markup;e&&(this._closeModal(),this.toolbarEvent.addText(e))},cancel:function(){this._closeModal()}}),i(w,"_setTimeIfValid",function(e,t){if(Ember.isEmpty(e))return void this.set(t,null);/^(0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/.test(e)&&this.set(t,e)}),i(w,"_setupPicker",function(){var e=this;return new Ember.RSVP.Promise(function(t){(0,n.default)("/javascripts/pikaday.js").then(function(){var n={field:e.$(".fake-input")[0],container:e.$("#picker-container-"+e.elementId)[0],bound:!1,format:"YYYY-MM-DD",reposition:!1,firstDay:1,defaultDate:moment(e.date,e.dateFormat).toDate(),setDefaultDate:!0,keyboardInput:!1,i18n:{previousMonth:I18n.t("dates.previous_month"),nextMonth:I18n.t("dates.next_month"),months:moment.months(),weekdays:moment.weekdays(),weekdaysShort:moment.weekdaysShort()},onSelect:function(t){var n=moment(t).format("YYYY-MM-DD");e.fromSelected&&e.set("date",n),e.toSelected&&e.set("toDate",n)}};t(new Pikaday(n))})})}),i(w,"_setPickerMinDate",function(e){var t=this;e&&!moment(e,this.dateFormat).isValid()&&(e=null),Ember.run.schedule("afterRender",function(){t._picker.setMinDate(moment(e,t.dateFormat).toDate())})}),i(w,"_setPickerDate",function(e){var t=this;e&&!moment(e,this.dateFormat).isValid()&&(e=null),Ember.run.schedule("afterRender",function(){t._picker.setDate(e,!0)})}),i(w,"_closeModal",function(){Discourse.__container__.lookup("controller:composer").send("closeModal")}),y=w,a(y,"isRange",[r],Object.getOwnPropertyDescriptor(y,"isRange"),y),a(y,"isValid",[u],Object.getOwnPropertyDescriptor(y,"isValid"),y),a(y,"fromConfig",[c],Object.getOwnPropertyDescriptor(y,"fromConfig"),y),a(y,"toConfig",[d],Object.getOwnPropertyDescriptor(y,"toConfig"),y),a(y,"options",[p],Object.getOwnPropertyDescriptor(y,"options"),y),a(y,"computedConfig",[m],Object.getOwnPropertyDescriptor(y,"computedConfig"),y),a(y,"currentUserTimezone",[s.default],Object.getOwnPropertyDescriptor(y,"currentUserTimezone"),y),a(y,"allTimezones",[s.default],Object.getOwnPropertyDescriptor(y,"allTimezones"),y),a(y,"formatedCurrentUserTimezone",[f],Object.getOwnPropertyDescriptor(y,"formatedCurrentUserTimezone"),y),a(y,"previewedFormats",[h],Object.getOwnPropertyDescriptor(y,"previewedFormats"),y),a(y,"recurringOptions",[s.default],Object.getOwnPropertyDescriptor(y,"recurringOptions"),y),a(y,"toggleModeBtnLabel",[v],Object.getOwnPropertyDescriptor(y,"toggleModeBtnLabel"),y),a(y,"markup",[b],Object.getOwnPropertyDescriptor(y,"markup"),y),a(y,"formattedFrom",[g],Object.getOwnPropertyDescriptor(y,"formattedFrom"),y),a(y,"formattedTo",[_],Object.getOwnPropertyDescriptor(y,"formattedTo"),y),y))}),Ember.TEMPLATES["javascripts/components/discourse-local-dates-create-form"]=Ember.HTMLBars.template({id:null,block:'{"symbols":["previewedFormat"],"statements":[[4,"d-modal-body",null,[["title","class","style"],["discourse_local_dates.title","discourse-local-dates-create-modal","overflow: auto"]],{"statements":[[0,"\\n "],[7,"div"],[11,"class","form"],[9],[0,"\\n"],[4,"unless",[[23,["isValid"]]],null,{"statements":[[0," "],[7,"div"],[11,"class","validation-error alert alert-error"],[9],[0,"\\n "],[1,[27,"i18n",["discourse_local_dates.create.form.invalid_date"],null],false],[0,"\\n "],[10],[0,"\\n"]],"parameters":[]},{"statements":[[4,"if",[[23,["timezoneIsDifferentFromUserTimezone"]]],null,{"statements":[[0," "],[7,"div"],[11,"class","preview alert alert-info"],[9],[0,"\\n "],[7,"b"],[9],[1,[21,"formatedCurrentUserTimezone"],false],[0," "],[10],[1,[21,"currentPreview"],false],[0,"\\n "],[10],[0,"\\n"]],"parameters":[]},null]],"parameters":[]}],[0,"\\n "],[1,[21,"computeDate"],false],[0,"\\n\\n "],[7,"div"],[11,"class","date-time-configuration"],[9],[0,"\\n "],[7,"div"],[11,"class","inputs-panel"],[9],[0,"\\n "],[7,"div"],[12,"class",[28,["date-time-control from ",[27,"if",[[23,["fromSelected"]],"is-selected"],null]," ",[27,"if",[[23,["fromFilled"]],"is-filled"],null]]]],[9],[0,"\\n "],[1,[27,"d-icon",["calendar-alt"],null],false],[0,"\\n "],[1,[27,"d-button",null,[["action","translatedLabel","class"],[[27,"action",[[22,0,[]],"focusFrom"],null],[23,["formattedFrom"]],"date-time"]]],false],[0,"\\n "],[10],[0,"\\n\\n "],[7,"div"],[12,"class",[28,["date-time-control to ",[27,"if",[[23,["toSelected"]],"is-selected"],null]," ",[27,"if",[[23,["toFilled"]],"is-filled"],null]]]],[9],[0,"\\n "],[1,[27,"d-icon",["calendar-alt"],null],false],[0,"\\n "],[1,[27,"d-button",null,[["action","translatedLabel","class"],[[27,"action",[[22,0,[]],"focusTo"],null],[23,["formattedTo"]],"date-time"]]],false],[0,"\\n"],[4,"if",[[23,["toFilled"]]],null,{"statements":[[0," "],[1,[27,"d-button",null,[["icon","action","class"],["times",[27,"action",[[22,0,[]],"eraseToDateTime"],null],"delete-to-date"]]],false],[0,"\\n"]],"parameters":[]},null],[0," "],[10],[0,"\\n\\n"],[4,"unless",[[23,["site","mobileView"]]],null,{"statements":[[0," "],[1,[27,"timezone-input",null,[["headerIcon","value","onSelect"],["globe",[23,["timezone"]],[27,"action",[[22,0,[]],[27,"mut",[[23,["timezone"]]],null]],null]]]],false],[0,"\\n"]],"parameters":[]},null],[0," "],[10],[0,"\\n\\n "],[7,"div"],[11,"class","picker-panel"],[9],[0,"\\n "],[1,[27,"input",null,[["class"],["fake-input"]]],false],[0,"\\n "],[7,"div"],[11,"class","date-picker"],[12,"id",[28,["picker-container-",[21,"elementId"]]]],[9],[10],[0,"\\n\\n"],[4,"if",[[23,["fromSelected"]]],null,{"statements":[[0," "],[7,"div"],[11,"class","time-pickers"],[9],[0,"\\n "],[1,[27,"d-icon",["far-clock"],null],false],[0,"\\n "],[1,[27,"input",null,[["maxlength","placeholder","input","type","value","class"],[5,"hh:mm",[27,"action",[[22,0,[]],"setTime"],null],"time",[27,"unbound",[[23,["time"]]],null],"time-picker"]]],false],[0,"\\n "],[10],[0,"\\n"]],"parameters":[]},null],[0,"\\n"],[4,"if",[[23,["toSelected"]]],null,{"statements":[[4,"if",[[23,["toDate"]]],null,{"statements":[[0," "],[7,"div"],[11,"class","time-pickers"],[9],[0,"\\n "],[1,[27,"d-icon",["far-clock"],null],false],[0,"\\n "],[1,[27,"input",null,[["maxlength","placeholder","input","type","value","class"],[5,"hh:mm",[27,"action",[[22,0,[]],"setToTime"],null],"time",[27,"unbound",[[23,["toTime"]]],null],"time-picker"]]],false],[0,"\\n "],[10],[0,"\\n"]],"parameters":[]},null]],"parameters":[]},null],[0," "],[10],[0,"\\n\\n"],[4,"if",[[23,["site","mobileView"]]],null,{"statements":[[0," "],[1,[27,"timezone-input",null,[["headerIcon","value","onSelect"],["globe",[23,["timezone"]],[27,"action",[[22,0,[]],[27,"mut",[[23,["timezone"]]],null]],null]]]],false],[0,"\\n"]],"parameters":[]},null],[0," "],[10],[0,"\\n\\n"],[4,"if",[[23,["advancedMode"]]],null,{"statements":[[0," "],[7,"div"],[11,"class","advanced-options"],[9],[0,"\\n"],[4,"unless",[[23,["isRange"]]],null,{"statements":[[0," "],[7,"div"],[11,"class","control-group recurrence"],[9],[0,"\\n "],[7,"label"],[11,"class","control-label"],[9],[0,"\\n "],[1,[27,"i18n",["discourse_local_dates.create.form.recurring_title"],null],false],[0,"\\n "],[10],[0,"\\n "],[7,"p"],[9],[1,[27,"i18n",["discourse_local_dates.create.form.recurring_description"],null],true],[10],[0,"\\n "],[7,"div"],[11,"class","controls"],[9],[0,"\\n "],[1,[27,"combo-box",null,[["content","class","value","onSelect","none"],[[23,["recurringOptions"]],"recurrence-input",[23,["recurring"]],[27,"action",[[22,0,[]],[27,"mut",[[23,["recurring"]]],null]],null],"discourse_local_dates.create.form.recurring_none"]]],false],[0,"\\n "],[10],[0,"\\n "],[10],[0,"\\n"]],"parameters":[]},null],[0,"\\n "],[7,"div"],[11,"class","control-group format"],[9],[0,"\\n "],[7,"label"],[9],[1,[27,"i18n",["discourse_local_dates.create.form.format_title"],null],false],[10],[0,"\\n "],[7,"p"],[9],[0,"\\n "],[1,[27,"i18n",["discourse_local_dates.create.form.format_description"],null],false],[0,"\\n "],[7,"a"],[11,"target","_blank"],[11,"rel","noopener"],[11,"href","https://momentjs.com/docs/#/parsing/string-format/"],[9],[0,"\\n "],[1,[27,"d-icon",["question-circle"],null],false],[0,"\\n "],[10],[0,"\\n "],[10],[0,"\\n "],[7,"div"],[11,"class","controls"],[9],[0,"\\n "],[1,[27,"text-field",null,[["value","class"],[[23,["format"]],"format-input"]]],false],[0,"\\n "],[10],[0,"\\n "],[10],[0,"\\n "],[7,"div"],[11,"class","control-group"],[9],[0,"\\n "],[7,"ul"],[11,"class","formats"],[9],[0,"\\n"],[4,"each",[[23,["previewedFormats"]]],null,{"statements":[[0," "],[7,"li"],[11,"class","format"],[9],[0,"\\n "],[7,"a"],[11,"class","moment-format"],[11,"href",""],[9],[0,"\\n "],[1,[22,1,["format"]],false],[0,"\\n "],[3,"action",[[22,0,[]],[27,"mut",[[23,["format"]]],null],[22,1,["format"]]]],[10],[0,"\\n "],[7,"span"],[11,"class","previewed-format"],[9],[0,"\\n "],[1,[22,1,["preview"]],false],[0,"\\n "],[10],[0,"\\n "],[10],[0,"\\n"]],"parameters":[1]},null],[0," "],[10],[0,"\\n "],[10],[0,"\\n\\n "],[7,"div"],[11,"class","control-group timezones"],[9],[0,"\\n "],[7,"label"],[9],[1,[27,"i18n",["discourse_local_dates.create.form.timezones_title"],null],false],[10],[0,"\\n "],[7,"p"],[9],[1,[27,"i18n",["discourse_local_dates.create.form.timezones_description"],null],false],[10],[0,"\\n "],[7,"div"],[11,"class","controls"],[9],[0,"\\n "],[1,[27,"multi-select",null,[["class","allowAny","maximum","content","values"],["timezones-input",false,5,[23,["allTimezones"]],[23,["timezones"]]]]],false],[0,"\\n "],[10],[0,"\\n "],[10],[0,"\\n "],[10],[0,"\\n"]],"parameters":[]},null],[0," "],[10],[0,"\\n"]],"parameters":[]},null],[0,"\\n"],[7,"div"],[11,"class","modal-footer discourse-local-dates-create-modal-footer"],[9],[0,"\\n"],[4,"if",[[23,["isValid"]]],null,{"statements":[[0," "],[1,[27,"d-button",null,[["class","action","label"],["btn btn-primary",[27,"action",[[22,0,[]],"save"],null],"discourse_local_dates.create.form.insert"]]],false],[0,"\\n"]],"parameters":[]},null],[0,"\\n "],[7,"a"],[11,"class","cancel-action"],[11,"href",""],[9],[0,"\\n "],[1,[27,"i18n",["cancel"],null],false],[0,"\\n "],[3,"action",[[22,0,[]],"cancel"]],[10],[0,"\\n\\n "],[1,[27,"d-button",null,[["class","action","icon","label"],["btn-default advanced-mode-btn",[27,"action",[[22,0,[]],"advancedMode"],null],"cog",[23,["toggleModeBtnLabel"]]]]],false],[0,"\\n"],[10],[0,"\\n"]],"hasEval":false}',meta:{moduleName:"javascripts/components/discourse-local-dates-create-form"}}),Ember.TEMPLATES["javascripts/modal/discourse-local-dates-create-modal"]=Ember.HTMLBars.template({id:null,block:'{"symbols":[],"statements":[[1,[27,"discourse-local-dates-create-form",null,[["config","toolbarEvent"],[[23,["config"]],[23,["toolbarEvent"]]]]],false],[0,"\\n"]],"hasEval":false}',meta:{moduleName:"javascripts/modal/discourse-local-dates-create-modal"}}),define("discourse/plugins/discourse-local-dates/lib/discourse-markdown/discourse-local-dates",["exports","pretty-text/engines/discourse-markdown/bbcode-block"],function(e,t){"use strict";function n(e,n,o){var l=void 0,i={date:null,time:null,timezone:null,format:null,timezones:null,displayedTimezone:null},a=(0,t.parseBBCodeTag)("[date date"+n[1]+"]",0,n[1].length+11);if(i.date=a.attrs.date,i.format=a.attrs.format,i.calendar=a.attrs.calendar,i.time=a.attrs.time,i.timezone=a.attrs.timezone,i.recurring=a.attrs.recurring,i.timezones=a.attrs.timezones,i.displayedTimezone=a.attrs.displayedTimezone,l=new o.Token("span_open","span",1),l.attrs=[["data-date",o.md.utils.escapeHtml(i.date)]],!i.date.match(/\d{4}-\d{2}-\d{2}/))return void s(e,o,moment.invalid().format());if(i.time&&!i.time.match(/\d{2}:\d{2}(?::\d{2})?/))return void s(e,o,moment.invalid().format());var r=i.date;if(i.time&&(l.attrs.push(["data-time",o.md.utils.escapeHtml(i.time)]),r=r+" "+i.time),!moment(r).isValid())return void s(e,o,moment.invalid().format());if(l.attrs.push(["class","discourse-local-date"]),i.format&&l.attrs.push(["data-format",o.md.utils.escapeHtml(i.format)]),i.calendar&&l.attrs.push(["data-calendar",o.md.utils.escapeHtml(i.calendar)]),i.displayedTimezone&&moment.tz.names().includes(i.displayedTimezone)&&l.attrs.push(["data-displayed-timezone",o.md.utils.escapeHtml(i.displayedTimezone)]),i.timezones){var u=i.timezones.split("|").filter(function(e){return moment.tz.names().includes(e)});l.attrs.push(["data-timezones",o.md.utils.escapeHtml(u.join("|"))])}i.timezone&&moment.tz.names().includes(i.timezone)?(l.attrs.push(["data-timezone",o.md.utils.escapeHtml(i.timezone)]),r=moment.tz(r,i.timezone)):r=moment.utc(r),i.recurring&&l.attrs.push(["data-recurring",o.md.utils.escapeHtml(i.recurring)]),e.push(l);var c=r.tz("Etc/UTC").format(o.md.options.discourse.datesEmailFormat||moment.defaultFormat);l.attrs.push(["data-email-preview",c+" UTC"]),s(e,o,r.utc().format(i.format))}function s(e,t,n){var s=void 0;s=new t.Token("text","",0),s.content=n,e.push(s),s=new t.Token("span_close","span",-1),e.push(s)}function o(e){e.whiteList(["span.discourse-local-date","span[data-*]","span[aria-label]"]),e.registerOptions(function(e,t){e.datesEmailFormat=t.discourse_local_dates_email_format,e.features["discourse-local-dates"]=!!t.discourse_local_dates_enabled}),e.registerPlugin(function(e){var t={matcher:/\[date(=.+?)\]/,onMatch:n};e.core.textPostProcess.ruler.push("discourse-local-dates",t)})}Object.defineProperty(e,"__esModule",{value:!0}),e.setup=o}),define("discourse/plugins/discourse-local-dates/initializers/discourse-local-dates",["exports","discourse/lib/plugin-api","discourse/lib/show-modal"],function(e,t,n){"use strict";function s(e){e.decorateCooked(function(e){$(".discourse-local-date",e).applyLocalDates()},{id:"discourse-local-date"}),e.onToolbarCreate(function(e){e.addButton({title:"discourse_local_dates.title",id:"local-dates",group:"extras",icon:"calendar-alt",sendAction:function(t){return e.context.send("insertDiscourseLocalDate",t)}})}),e.modifyClass("component:d-editor",{actions:{insertDiscourseLocalDate:function(e){(0,n.default)("discourse-local-dates-create-modal").setProperties({toolbarEvent:e})}}})}Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"discourse-local-dates",initialize:function(e){e.lookup("site-settings:main").discourse_local_dates_enabled&&(0,t.withPluginApi)("0.8.8",s)}}}),define("discourse/plugins/discourse-narrative-bot/initializers/new-user-narrative",["exports","discourse/lib/plugin-api"],function(e,t){"use strict";function n(e){var t=e.container.lookup("message-bus:main"),n=e.getCurrentUser(),s=e.container.lookup("app-events:main");e.modifyClass("component:site-header",{didInsertElement:function(){this._super.apply(this,arguments),this.dispatch("header:search-context-trigger","header")}}),e.attachWidgetAction("header","headerSearchContextTrigger",function(){this.site.mobileView?this.state.skipSearchContext=!1:(this.state.contextEnabled=!0,this.state.searchContextType="topic")}),t&&n&&t.subscribe("/new_user_narrative/tutorial_search",function(){s.trigger("header:search-context-trigger")})}Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"new-user-narratve",initialize:function(e){e.lookup("site-settings:main").discourse_narrative_bot_enabled&&(0,t.withPluginApi)("0.8.7",n)}}}),define("discourse/plugins/discourse-patreon/discourse/routes/admin-plugins-patreon",["exports","discourse/models/group","discourse/lib/ajax","discourse/plugins/discourse-patreon/discourse/models/filter-rule"],function(e,t,n,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function e(e,t){var n=[],s=!0,o=!1,l=void 0;try{for(var i,a=e[Symbol.iterator]();!(s=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);s=!0);}catch(e){o=!0,l=e}finally{try{!s&&a.return&&a.return()}finally{if(o)throw l}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e.default=Discourse.Route.extend({model:function(){return Ember.RSVP.Promise.all([(0,n.ajax)("/patreon/list.json"),t.default.findAll({ignore_automatic:!0})]).then(function(e){var t=o(e,2),n=t[0],s=t[1];return{filters:n.filters,rewards:n.rewards,last_sync_at:n.last_sync_at,groups:s}})},setupController:function(e,t){var n=t.rewards,o=t.groups,l=_.map(t.filters,function(e,t){var l=e.map(function(e){return n[e]?" $"+n[e].amount_cents/100+" - "+n[e].title:""}),i=_.find(o,function(e){return e.id===parseInt(t)});return s.default.create({group:i.name,rewards:l,group_id:t,reward_ids:e})});e.setProperties({model:l,groups:o,rewards:n,last_sync_at:t.last_sync_at})}})}),define("discourse/plugins/discourse-patreon/discourse/patreon-route-map",["exports"],function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={resource:"admin.adminPlugins",path:"/plugins",map:function(){this.route("patreon")}}}),define("discourse/plugins/discourse-patreon/discourse/models/filter-rule",["exports","discourse/models/rest"],function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=t.default.extend({group_id:-1,reward_list:""})}),define("discourse/plugins/discourse-patreon/discourse/controllers/admin-plugins-patreon",["exports","ember-addons/ember-computed-decorators","discourse/plugins/discourse-patreon/discourse/models/filter-rule","discourse/lib/ajax","discourse/lib/ajax-error"],function(e,t,n,s,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l,i;e.default=Ember.Controller.extend((l=(0,t.default)("rewards"),i={prettyPrintReward:function(e){return"$"+e.amount_cents/100+" - "+e.title},rewardsNames:function(){var e=this;return _.filter(this.rewards,function(e){return e.id>=0}).map(function(t){return e.prettyPrintReward(t)})},editing:n.default.create({}),actions:{save:function(){var e=this,t=this.get("editing"),l=this.get("model");t.set("group",this.groups.find(function(e){return e.id===parseInt(t.get("group_id"))})),t.set("rewards_ids",_.filter(this.rewards,function(n){return t.get("reward_list").includes(e.prettyPrintReward(n))}).map(function(e){return e.id})),(0,s.ajax)("/patreon/list.json",{method:"POST",data:t.getProperties("group_id","rewards_ids")}).then(function(){var s=l.find(function(e){return e.get("group_id")===t.get("group_id")}),o=t.get("reward_list").replace(/\|/g,", ");s?(s.set("reward_list",o),s.set("rewards",o),s.set("rewards_ids",t.rewards_ids)):l.pushObject(n.default.create({group:t.get("group.name"),rewards:o})),e.set("editing",n.default.create({}))}).catch(o.popupAjaxError)},delete:function(e){var t=this.get("model");(0,s.ajax)("/patreon/list.json",{method:"DELETE",data:e.getProperties("group_id")}).then(function(){var n=t.find(function(t){return t.get("group_id")===e.get("group_id")});t.removeObject(n)}).catch(o.popupAjaxError)},updateData:function(){var e=this;this.set("updatingData",!0),(0,s.ajax)("/patreon/update_data.json",{method:"POST"}).catch(o.popupAjaxError).finally(function(){return e.set("updatingData",!1)}),this.messageBus.subscribe("/patreon/background_sync",function(){e.messageBus.unsubscribe("/patreon/background_sync"),e.set("updatingData",!1),bootbox.alert(I18n.t("patreon.refresh_page"),function(){window.location.pathname=Discourse.getURL("/admin/plugins/patreon")})})}}},function(e,t,n,s,o){var l={};return Object.keys(s).forEach(function(e){l[e]=s[e]}),l.enumerable=!!l.enumerable,l.configurable=!!l.configurable,("value"in l||l.initializer)&&(l.writable=!0),
-l=n.slice().reverse().reduce(function(n,s){return s(e,t,n)||n},l),o&&void 0!==l.initializer&&(l.value=l.initializer?l.initializer.call(o):void 0,l.initializer=void 0),void 0===l.initializer&&(Object.defineProperty(e,t,l),l=null),l}(i,"rewardsNames",[l],Object.getOwnPropertyDescriptor(i,"rewardsNames"),i),i))}),define("discourse/plugins/discourse-patreon/discourse/templates/connectors/admin-user-details/patreon",["exports"],function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={setupComponent:function(e,t){var n=e.model.patreon_email,s="https://patreon.com/members";n&&(s=s+"?query="+n),t.set("patron_url",s)},shouldRender:function(e,t){return t.siteSettings.patreon_enabled&&e.model.patreon_id}}}),Ember.TEMPLATES["javascripts/connectors/admin-user-details/patreon"]=Ember.HTMLBars.template({id:null,block:'{"symbols":[],"statements":[[4,"if",[[22,0,["siteSettings","patreon_enabled"]]],null,{"statements":[[0," "],[7,"section"],[11,"class","details"],[9],[0,"\\n "],[7,"h1"],[9],[1,[27,"i18n",["patreon.title"],null],false],[10],[0,"\\n "],[7,"div"],[11,"class","display-row"],[9],[0,"\\n "],[7,"div"],[11,"class","field"],[9],[1,[27,"i18n",["patreon.field.id"],null],false],[10],[0,"\\n "],[7,"div"],[11,"class","value"],[9],[1,[23,["model","patreon_id"]],false],[10],[0,"\\n "],[10],[0,"\\n"],[4,"if",[[23,["model","patreon_email"]]],null,{"statements":[[0," "],[7,"div"],[11,"class","display-row"],[9],[0,"\\n "],[7,"div"],[11,"class","field"],[9],[1,[27,"i18n",["patreon.field.email"],null],false],[10],[0,"\\n "],[7,"div"],[11,"class","value"],[9],[1,[23,["model","patreon_email"]],false],[10],[0,"\\n "],[10],[0,"\\n"]],"parameters":[]},null],[4,"if",[[23,["model","patreon_amount_cents"]]],null,{"statements":[[0," "],[7,"div"],[11,"class","display-row"],[9],[0,"\\n "],[7,"div"],[11,"class","field"],[9],[1,[27,"i18n",["patreon.field.amount_cents"],null],false],[10],[0,"\\n "],[7,"div"],[11,"class","value"],[9],[1,[23,["model","patreon_amount_cents"]],false],[10],[0,"\\n "],[10],[0,"\\n"]],"parameters":[]},null],[4,"if",[[23,["model","patreon_rewards"]]],null,{"statements":[[0," "],[7,"div"],[11,"class","display-row"],[9],[0,"\\n "],[7,"div"],[11,"class","field"],[9],[1,[27,"i18n",["patreon.field.rewards"],null],false],[10],[0,"\\n "],[7,"div"],[11,"class","value"],[9],[1,[23,["model","patreon_rewards"]],false],[10],[0,"\\n "],[10],[0,"\\n"]],"parameters":[]},null],[4,"if",[[23,["model","patreon_declined_since"]]],null,{"statements":[[0," "],[7,"div"],[11,"class","display-row"],[9],[0,"\\n "],[7,"div"],[11,"class","field"],[9],[1,[27,"i18n",["patreon.field.declined_since"],null],false],[10],[0,"\\n "],[7,"div"],[11,"class","value"],[9],[1,[27,"format-date",[[23,["model","patreon_declined_since"]]],null],true],[10],[0,"\\n "],[10],[0,"\\n"]],"parameters":[]},null],[0," "],[7,"div"],[11,"class","display-row"],[9],[0,"\\n "],[7,"div"],[11,"class","field"],[9],[1,[27,"i18n",["patreon.field.more_details.label"],null],false],[10],[0,"\\n "],[7,"div"],[11,"class","value"],[9],[7,"a"],[11,"target","_blank"],[12,"href",[28,[[21,"patron_url"]]]],[9],[1,[27,"d-icon",["external-link-alt"],null],false],[10],[10],[0,"\\n "],[7,"div"],[11,"class","controls"],[9],[0,"\\n"],[4,"if",[[23,["model","patreon_email"]]],null,{"statements":[[0," "],[1,[27,"i18n",["patreon.field.more_details.help_text.email_available"],null],false],[0,"\\n"]],"parameters":[]},{"statements":[[0," "],[1,[27,"i18n",["patreon.field.more_details.help_text.email_not_available"],null],false],[0,"\\n"]],"parameters":[]}],[0," "],[10],[0,"\\n "],[10],[0,"\\n "],[10],[0,"\\n"]],"parameters":[]},null]],"hasEval":false}',meta:{moduleName:"javascripts/connectors/admin-user-details/patreon"}}),Ember.TEMPLATES["javascripts/admin/plugins-patreon"]=Ember.HTMLBars.template({id:null,block:'{"symbols":["rule"],"statements":[[7,"section"],[11,"id","patreon"],[9],[0,"\\n "],[7,"h1"],[9],[1,[27,"i18n",["patreon.header.rules"],null],false],[10],[0,"\\n "],[7,"table"],[9],[0,"\\n "],[7,"tr"],[9],[0,"\\n "],[7,"th"],[9],[1,[27,"i18n",["patreon.group"],null],false],[10],[0,"\\n "],[7,"th"],[9],[1,[27,"i18n",["patreon.rewards"],null],false],[10],[0,"\\n "],[7,"th"],[9],[10],[0,"\\n "],[10],[0,"\\n\\n"],[4,"each",[[23,["model"]]],null,{"statements":[[0," "],[7,"tr"],[11,"class",""],[9],[0,"\\n "],[7,"td"],[9],[1,[22,1,["group"]],false],[10],[0,"\\n "],[7,"td"],[9],[1,[22,1,["rewards"]],false],[10],[0,"\\n "],[7,"td"],[9],[0,"\\n "],[7,"div"],[11,"class","pull-right"],[9],[0,"\\n "],[1,[27,"d-button",null,[["action","actionParam","icon","class","title"],["delete",[22,1,[]],"trash-o","delete btn-danger","patreon.delete"]]],false],[0,"\\n "],[10],[0,"\\n "],[10],[0,"\\n "],[10],[0,"\\n"]],"parameters":[1]},null],[0,"\\n "],[7,"tr"],[11,"class","new-filter"],[9],[0,"\\n "],[7,"td"],[9],[1,[27,"combo-box",null,[["value","content"],[[23,["editing","group_id"]],[23,["groups"]]]]],false],[10],[0,"\\n "],[7,"td"],[9],[1,[27,"list-setting",null,[["settingValue","choices","class"],[[23,["editing","reward_list"]],[23,["rewardsNames"]],"rewards"]]],false],[10],[0,"\\n "],[7,"td"],[9],[0,"\\n "],[7,"div"],[11,"class","pull-right"],[9],[0,"\\n "],[1,[27,"d-button",null,[["action","icon","class","title"],["save","check","save btn-primary","patreon.save"]]],false],[0,"\\n "],[10],[0,"\\n "],[10],[0,"\\n "],[10],[0,"\\n "],[10],[0,"\\n\\n "],[7,"p"],[9],[1,[27,"i18n",["patreon.help_text"],null],false],[10],[0,"\\n\\n "],[1,[27,"d-button",null,[["action","icon","class","disabled","title","label"],["updateData","refresh","test",[23,["updatingData"]],"patreon.update_data","patreon.update_data"]]],false],[0,"\\n\\n"],[4,"if",[[23,["last_sync_at"]]],null,{"statements":[[0," "],[7,"span"],[11,"class","last_synced"],[9],[1,[27,"i18n",["patreon.last_synced"],null],false],[0,": "],[1,[27,"format-date",[[23,["last_sync_at"]]],[["leaveAgo"],["true"]]],true],[10],[0,"\\n"]],"parameters":[]},null],[10],[0,"\\n"]],"hasEval":false}',meta:{moduleName:"javascripts/admin/plugins-patreon"}}),define("discourse/plugins/discourse-presence/discourse/components/composer-presence-display",["exports","discourse/lib/ajax","ember-addons/ember-computed-decorators"],function(e,t,n){"use strict";function s(e,t,n,s,o){var l={};return Object.keys(s).forEach(function(e){l[e]=s[e]}),l.enumerable=!!l.enumerable,l.configurable=!!l.configurable,("value"in l||l.initializer)&&(l.writable=!0),l=n.slice().reverse().reduce(function(n,s){return s(e,t,n)||n},l),o&&void 0!==l.initializer&&(l.value=l.initializer?l.initializer.call(o):void 0,l.initializer=void 0),void 0===l.initializer&&(Object.defineProperty(e,t,l),l=null),l}Object.defineProperty(e,"__esModule",{value:!0}),e.bufferTime=e.keepAliveDuration=void 0;var o,l,i,a,r,u,c,d=e.keepAliveDuration=1e4,p=e.bufferTime=3e3;e.default=Ember.Component.extend((o=(0,n.on)("didInsertElement"),l=(0,n.observes)("action","post.id","topic.id"),i=(0,n.observes)("reply","title"),a=(0,n.on)("willDestroyElement"),r=(0,n.observes)("currentState"),u=(0,n.default)("presenceUsers","currentUser.id"),c={action:null,post:null,topic:null,reply:null,title:null,previousState:null,currentState:null,presenceUsers:null,channel:null,composerOpened:function(){this._lastPublish=new Date,Ember.run.once(this,"updateState")},composerStateChanged:function(){Ember.run.once(this,"updateState")},typing:function(){new Date-this._lastPublish>d&&this.publish({current:this.currentState})},composerClosing:function(){this.publish({previous:this.currentState}),Ember.run.cancel(this._pingTimer),Ember.run.cancel(this._clearTimer)},updateState:function(){var e=null,t=this.action;"reply"!==t&&"edit"!==t||(e={action:t},"reply"===t&&(e.topic_id=this.get("topic.id")),"edit"===t&&(e.post_id=this.get("post.id"))),this.set("previousState",this.currentState),this.set("currentState",e)},currentStateChanged:function(){var e=this;this.channel&&(this.messageBus.unsubscribe(this.channel),this.set("channel",null)),this.clear(),["reply","edit"].includes(this.action)&&this.publish({response_needed:!0,previous:this.previousState,current:this.currentState}).then(function(t){e.isDestroyed||(e.set("presenceUsers",t.users),e.set("channel",t.messagebus_channel),t.messagebus_channel&&e.messageBus.subscribe(t.messagebus_channel,function(t){e.isDestroyed||e.set("presenceUsers",t.users),e._clearTimer=Ember.run.debounce(e,"clear",d+p)},t.messagebus_id))})},clear:function(){this.isDestroyed||this.set("presenceUsers",[])},publish:function(e){return this._lastPublish=new Date,this.currentUser.hide_profile_and_presence?Ember.RSVP.Promise.resolve():(0,t.ajax)("/presence/publish",{type:"POST",data:e})},users:function(e,t){return(e||[]).filter(function(e){return e.id!==t})},isReply:Ember.computed.equal("action","reply"),shouldDisplay:Ember.computed.gt("users.length",0)},s(c,"composerOpened",[o],Object.getOwnPropertyDescriptor(c,"composerOpened"),c),s(c,"composerStateChanged",[l],Object.getOwnPropertyDescriptor(c,"composerStateChanged"),c),s(c,"typing",[i],Object.getOwnPropertyDescriptor(c,"typing"),c),s(c,"composerClosing",[a],Object.getOwnPropertyDescriptor(c,"composerClosing"),c),s(c,"currentStateChanged",[r],Object.getOwnPropertyDescriptor(c,"currentStateChanged"),c),s(c,"users",[u],Object.getOwnPropertyDescriptor(c,"users"),c),c))}),define("discourse/plugins/discourse-presence/discourse/components/topic-presence-display",["exports","ember-addons/ember-computed-decorators","discourse/plugins/discourse-presence/discourse/components/composer-presence-display"],function(e,t,n){"use strict";function s(e,t,n,s,o){var l={};return Object.keys(s).forEach(function(e){l[e]=s[e]}),l.enumerable=!!l.enumerable,l.configurable=!!l.configurable,("value"in l||l.initializer)&&(l.writable=!0),l=n.slice().reverse().reduce(function(n,s){return s(e,t,n)||n},l),o&&void 0!==l.initializer&&(l.value=l.initializer?l.initializer.call(o):void 0,l.initializer=void 0),void 0===l.initializer&&(Object.defineProperty(e,t,l),l=null),l}Object.defineProperty(e,"__esModule",{value:!0});var o,l,i,a,r;e.default=Ember.Component.extend((o=(0,t.on)("didInsertElement"),l=(0,t.on)("willDestroyElement"),i=(0,t.default)("topicId"),a=(0,t.default)("presenceUsers","currentUser.{id,ignored_users}"),r={topicId:null,presenceUsers:null,clear:function(){this.isDestroyed||this.set("presenceUsers",[])},_inserted:function(){var e=this;this.clear(),this.messageBus.subscribe(this.channel,function(t){e.isDestroyed||e.set("presenceUsers",t.users),e._clearTimer=Ember.run.debounce(e,"clear",n.keepAliveDuration+n.bufferTime)},-2)},_destroyed:function(){Ember.run.cancel(this._clearTimer),this.messageBus.unsubscribe(this.channel)},channel:function(e){return"/presence/topic/"+e},users:function(e,t){var n=t.ignored_users||[];return(e||[]).filter(function(e){return e.id!==t.id&&!n.includes(e.username)})},shouldDisplay:Ember.computed.gt("users.length",0)},s(r,"_inserted",[o],Object.getOwnPropertyDescriptor(r,"_inserted"),r),s(r,"_destroyed",[l],Object.getOwnPropertyDescriptor(r,"_destroyed"),r),s(r,"channel",[i],Object.getOwnPropertyDescriptor(r,"channel"),r),s(r,"users",[a],Object.getOwnPropertyDescriptor(r,"users"),r),r))}),Ember.TEMPLATES["javascripts/connectors/topic-above-footer-buttons/presence"]=Ember.HTMLBars.template({id:null,block:'{"symbols":[],"statements":[[1,[27,"topic-presence-display",null,[["topicId"],[[23,["model","id"]]]]],false],[0,"\\n"]],"hasEval":false}',meta:{moduleName:"javascripts/connectors/topic-above-footer-buttons/presence"}}),define("discourse/plugins/discourse-presence/discourse/templates/connectors/topic-above-footer-buttons/presence",["exports"],function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={shouldRender:function(e,t){return t.siteSettings.presence_enabled}}}),Ember.TEMPLATES["javascripts/connectors/composer-fields/presence"]=Ember.HTMLBars.template({id:null,block:'{"symbols":[],"statements":[[1,[27,"composer-presence-display",null,[["action","post","topic","reply","title"],[[23,["model","action"]],[23,["model","post"]],[23,["model","topic"]],[23,["model","reply"]],[23,["model","title"]]]]],false],[0,"\\n"]],"hasEval":false}',meta:{moduleName:"javascripts/connectors/composer-fields/presence"}}),define("discourse/plugins/discourse-presence/discourse/templates/connectors/composer-fields/presence",["exports"],function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={shouldRender:function(e,t){return t.siteSettings.presence_enabled}}}),Ember.TEMPLATES["javascripts/components/composer-presence-display"]=Ember.HTMLBars.template({id:null,block:'{"symbols":["user"],"statements":[[4,"if",[[23,["shouldDisplay"]]],null,{"statements":[[0," "],[7,"div"],[11,"class","presence-users"],[9],[0,"\\n "],[7,"div"],[11,"class","presence-avatars"],[9],[0,"\\n"],[4,"each",[[23,["users"]]],null,{"statements":[[0," "],[1,[27,"avatar",[[22,1,[]]],[["avatarTemplatePath","usernamePath","imageSize"],["avatar_template","username","small"]]],false],[0,"\\n"]],"parameters":[1]},null],[0," "],[10],[0,"\\n "],[7,"span"],[11,"class","presence-text"],[9],[0,"\\n "],[7,"span"],[11,"class","description"],[9],[0,"\\n"],[4,"if",[[23,["isReply"]]],null,{"statements":[[1,[27,"i18n",["presence.replying"],null],false]],"parameters":[]},{"statements":[[1,[27,"i18n",["presence.editing"],null],false]],"parameters":[]}],[10],[10],[7,"span"],[11,"class","wave"],[9],[7,"span"],[11,"class","dot"],[9],[0,"."],[10],[7,"span"],[11,"class","dot"],[9],[0,"."],[10],[7,"span"],[11,"class","dot"],[9],[0,"."],[10],[0,"\\n "],[10],[0,"\\n "],[10],[0,"\\n"]],"parameters":[]},null]],"hasEval":false}',meta:{moduleName:"javascripts/components/composer-presence-display"}}),Ember.TEMPLATES["javascripts/components/topic-presence-display"]=Ember.HTMLBars.template({id:null,block:'{"symbols":["user"],"statements":[[4,"if",[[23,["shouldDisplay"]]],null,{"statements":[[0," "],[7,"div"],[11,"class","presence-users"],[9],[0,"\\n "],[7,"div"],[11,"class","presence-avatars"],[9],[0,"\\n"],[4,"each",[[23,["users"]]],null,{"statements":[[0," "],[1,[27,"avatar",[[22,1,[]]],[["avatarTemplatePath","usernamePath","imageSize"],["avatar_template","username","small"]]],false],[0,"\\n"]],"parameters":[1]},null],[0," "],[10],[0,"\\n "],[7,"span"],[11,"class","presence-text"],[9],[0,"\\n "],[7,"span"],[11,"class","description"],[9],[1,[27,"i18n",["presence.replying_to_topic"],[["count"],[[23,["users","length"]]]]],false],[10],[7,"span"],[11,"class","wave"],[9],[7,"span"],[11,"class","dot"],[9],[0,"."],[10],[7,"span"],[11,"class","dot"],[9],[0,"."],[10],[7,"span"],[11,"class","dot"],[9],[0,"."],[10],[10],[0,"\\n "],[10],[0,"\\n "],[10],[0,"\\n"]],"parameters":[]},null]],"hasEval":false}',meta:{moduleName:"javascripts/components/topic-presence-display"}}),define("discourse/plugins/discourse-solved/discourse/routes/user-activity-solved",["exports","discourse/routes/user-activity-stream"],function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=t.default.extend({userActionType:15,noContentHelpKey:"solved.no_solutions"})}),define("discourse/plugins/discourse-solved/discourse/solved-route-map",["exports"],function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={resource:"user.userActivity",map:function(){this.route("solved")}}}),Ember.TEMPLATES["javascripts/discourse/connectors/user-activity-bottom/solved-list"]=Ember.HTMLBars.template({id:null,block:'{"symbols":[],"statements":[[4,"link-to",["userActivity.solved"],null,{"statements":[[0," "],[1,[27,"d-icon",["check-square"],null],false],[0," "],[1,[27,"i18n",["solved.title"],null],false],[0,"\\n"]],"parameters":[]},null]],"hasEval":false}',meta:{moduleName:"javascripts/discourse/connectors/user-activity-bottom/solved-list"}}),Ember.TEMPLATES["javascripts/discourse/connectors/category-custom-settings/solved-settings"]=Ember.HTMLBars.template({id:null,block:'{"symbols":[],"statements":[[4,"unless",[[23,["siteSettings","allow_solved_on_all_topics"]]],null,{"statements":[[7,"h3"],[9],[1,[27,"i18n",["solved.title"],null],false],[10],[0,"\\n"],[7,"section"],[11,"class","field"],[9],[0,"\\n "],[7,"div"],[11,"class","enable-accepted-answer"],[9],[0,"\\n "],[7,"label"],[11,"class","checkbox-label"],[9],[0,"\\n "],[1,[27,"input",null,[["type","checked"],["checkbox",[23,["category","enable_accepted_answers"]]]]],false],[0,"\\n "],[1,[27,"i18n",["solved.allow_accepted_answers"],null],false],[0,"\\n "],[10],[0,"\\n "],[10],[0,"\\n"],[10],[0,"\\n"]],"parameters":[]},null]],"hasEval":false}',meta:{moduleName:"javascripts/discourse/connectors/category-custom-settings/solved-settings"}}),Ember.TEMPLATES["javascripts/discourse/connectors/topic-after-cooked/solved-panel"]=Ember.HTMLBars.template({id:null,block:'{"symbols":[],"statements":[[4,"if",[[23,["topic","accepted_answer"]]],null,{"statements":[[7,"p"],[11,"class","solved"],[9],[0,"\\n"],[1,[23,["topic","acceptedAnswerHtml"]],true],[0,"\\n"],[10],[0,"\\n"]],"parameters":[]},null]],"hasEval":false}',meta:{moduleName:"javascripts/discourse/connectors/topic-after-cooked/solved-panel"}}),define("discourse/plugins/discourse-solved/discourse/connectors/bread-crumbs-right/solved-status-filter",["exports","discourse/lib/url"],function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={shouldRender:function(e,t){if(t.siteSettings.show_filter_by_solved_status){if(t.siteSettings.allow_solved_on_all_topics)return!0;var n=Discourse.__container__.lookup("controller:navigation/category");return n&&n.get("category.enable_accepted_answers")}return!1},setupComponent:function(e,t){var n=["all","solved","unsolved"].map(function(e){return{name:I18n.t("solved.topic_status_filter."+e),value:e}});t.set("statuses",n);var s=window.location.search;s.match(/solved=yes/)?t.set("status","solved"):s.match(/solved=no/)?t.set("status","unsolved"):t.set("status","all")},actions:{changeStatus:function(e){var n=window.location,s=n.search,o=s.startsWith("?")?s.substr(1).split("&"):[];o=o.filter(function(e){return!e.startsWith("solved=")}),e&&"all"!==e&&(e="solved"===e?"yes":"no",o.push("solved="+e)),s=o.length>0?"?"+o.join("&"):"",t.default.routeTo(""+n.pathname+s+n.hash)}}}}),Ember.TEMPLATES["javascripts/discourse/connectors/bread-crumbs-right/solved-status-filter"]=Ember.HTMLBars.template({id:null,block:'{"symbols":[],"statements":[[4,"if",[[23,["siteSettings","solved_enabled"]]],null,{"statements":[[0," "],[1,[27,"combo-box",null,[["content","value","valueAttribute","onSelect"],[[23,["statuses"]],[23,["status"]],"value",[27,"action",[[22,0,[]],"changeStatus"],null]]]],false],[0,"\\n"]],"parameters":[]},null]],"hasEval":false}',meta:{moduleName:"javascripts/discourse/connectors/bread-crumbs-right/solved-status-filter"}}),Ember.TEMPLATES["javascripts/discourse/connectors/user-summary-stat/solved-count"]=Ember.HTMLBars.template({id:null,block:'{"symbols":[],"statements":[[4,"link-to",["userActivity.solved"],null,{"statements":[[0," "],[1,[27,"user-stat",null,[["value","label","icon"],[[23,["model","solved_count"]],"solved.solution_summary","check-square"]]],false],[0,"\\n"]],"parameters":[]},null]],"hasEval":false}',meta:{moduleName:"javascripts/discourse/connectors/user-summary-stat/solved-count"}}),define("discourse/plugins/discourse-solved/discourse/pre-initializers/extend-category-for-solved",["exports","ember-addons/ember-computed-decorators","discourse/models/category"],function(e,t,n){"use strict";function s(e,t,n,s,o){var l={};return Object.keys(s).forEach(function(e){l[e]=s[e]}),l.enumerable=!!l.enumerable,l.configurable=!!l.configurable,("value"in l||l.initializer)&&(l.writable=!0),l=n.slice().reverse().reduce(function(n,s){return s(e,t,n)||n},l),o&&void 0!==l.initializer&&(l.value=l.initializer?l.initializer.call(o):void 0,l.initializer=void 0),void 0===l.initializer&&(Object.defineProperty(e,t,l),l=null),l}Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"extend-category-for-solved",before:"inject-discourse-objects",initialize:function(){var e,o,l;n.default.reopen((e=(0,t.default)("custom_fields.enable_accepted_answers"),o={enable_accepted_answers:{get:function(e){return"true"===e},set:function(e){return e=e?"true":"false",this.set("custom_fields.enable_accepted_answers",e),e}}},s(o,"enable_accepted_answers",[e],(l=Object.getOwnPropertyDescriptor(o,"enable_accepted_answers"),l=l?l.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return l}}),o),o))}}}),define("discourse/plugins/discourse-solved/discourse/initializers/extend-for-solved-button",["exports","discourse/models/topic","discourse/models/user","discourse/raw-views/topic-status","discourse/helpers/topic-status-icons","discourse/lib/ajax-error","discourse/lib/plugin-api","discourse/lib/ajax","discourse/widgets/post-cooked","discourse/lib/utilities","discourse-common/lib/icon-library"],function(e,t,n,s,o,l,i,a,r,u,c){"use strict";function d(e){e.get("postStream.posts").forEach(function(e){e.get("post_number")>1&&(e.set("accepted_answer",!1),e.set("can_accept_answer",!0),e.set("can_unaccept_answer",!1))})}function p(e){if(e.get("can_unaccept_answer")){var t=e.topic;e.setProperties({can_accept_answer:!0,can_unaccept_answer:!1,accepted_answer:!1}),t.set("accepted_answer",void 0),(0,a.ajax)("/solution/unaccept",{type:"POST",data:{id:e.get("id")}}).catch(l.popupAjaxError)}}function m(e){var t=e.topic;d(t),e.setProperties({can_unaccept_answer:!0,can_accept_answer:!1,accepted_answer:!0}),t.set("accepted_answer",{username:e.get("username"),post_number:e.get("post_number"),excerpt:e.get("cooked")}),(0,a.ajax)("/solution/accept",{type:"POST",data:{id:e.get("id")}}).catch(l.popupAjaxError)}function f(e){var t=e.getCurrentUser();o.default.addObject(["has_accepted_answer","far-check-square","solved"]),e.includePostAttributes("can_accept_answer","can_unaccept_answer","accepted_answer"),e.addDiscoveryQueryParam&&e.addDiscoveryQueryParam("solved",{replace:!0,refreshModel:!0}),e.addPostMenuButton("solved",function(e){var n=e.can_accept_answer,s=e.can_unaccept_answer,o=e.accepted_answer,l=t&&t.id===e.topicCreatedById,i=o||!n||l?"first":"second-last-hidden";if(n)return{action:"acceptAnswer",icon:"far-check-square",className:"unaccepted",title:"solved.accept_answer",position:i};if(s||o){return{action:"unacceptAnswer",icon:"check-square",title:s?"solved.unaccept_answer":"solved.accepted_answer",className:"accepted fade-out",position:i,beforeButton:function(e){return e("span.accepted-text",I18n.t("solved.solution"))}}}}),e.decorateWidget("post-contents:after-cooked",function(e){if(1===e.attrs.post_number){var t=e.getModel();if(t){var n=t.get("topic");if(n.get("accepted_answer")){var s=!!n.get("accepted_answer").excerpt,o="\n <aside class='quote accepted-answer' data-post=\""+n.get("accepted_answer").post_number+'" data-topic="'+n.get("id")+"\">\n <div class='title'>\n "+n.get("acceptedAnswerHtml")+' <div class="quote-controls"></div>\n </div>\n <blockquote>\n '+n.get("accepted_answer").excerpt+"\n </blockquote>\n </aside>",l="\n <aside class='quote accepted-answer'>\n <div class='title title-only'>\n "+n.get("acceptedAnswerHtml")+"\n </div>\n &l