mirror of
https://github.com/rubyjs/mini_racer
synced 2023-03-27 23:21:28 -04:00
68 lines
2 MiB
JavaScript
68 lines
2 MiB
JavaScript
|
!function(){var e=window.jQuery,t=!1,r=null;Discourse.Ajax=Em.Mixin.create({setTransientHeader:function(e,t){r={key:e,value:t}},viewTrackingRequired:function(){t=!0},ajax:function(){var a,n,i;if(1===arguments.length?"string"==typeof arguments[0]?(a=arguments[0],n={}):(n=arguments[0],a=n.url,delete n.url):2===arguments.length&&(a=arguments[0],n=arguments[1]),n.success||n.error)throw"Discourse.ajax should use promises";var o,s=function(o,s){n.headers=n.headers||{},r&&(n.headers[r.key]=r.value,r=null),!t||n.type&&"GET"!==n.type||(t=!1,n.headers["Discourse-Track-View"]="true"),n.success=function(e,t,r){r.getResponseHeader("Discourse-Readonly")&&Ember.run(function(){Discourse.Site.currentProp("isReadOnly",!0)}),n.returnXHR&&(e={result:e,xhr:r}),Ember.run(null,o,e)},n.error=function(e,t,r){return 403===e.status&&"['BAD CSRF']"===e.responseText&&Discourse.Session.current().set("csrfToken",null),200===e.status?n.success(e):(e.jqTextStatus=t,e.requestedUrl=a,void Ember.run(null,s,{jqXHR:e,textStatus:t,errorThrown:r}))},n.type||(n.type="GET"),n.dataType||"GET"!==n.type.toUpperCase()||(n.dataType="json"),"script"===n.dataType&&(n.headers["Discourse-Script"]=!0),"GET"===n.type&&n.cache!==!0&&(n.cache=!1),i=e.ajax(Discourse.getURL(a),n)};return o=n.type&&"GET"!==n.type.toUpperCase()&&!Discourse.Session.currentProp("csrfToken")?new Ember.RSVP.Promise(function(t,r){i=e.ajax(Discourse.getURL("/session/csrf"),{cache:!1}).success(function(e){Discourse.Session.currentProp("csrfToken",e.csrf),s(t,r)})}):new Ember.RSVP.Promise(s),o.abort=function(){i&&i.abort()},o}})}(this),function(){function e(e){this._removedName=e}function t(){console.warn("The "+this._removedName+" object has been removed from Discourse and your plugin needs to be updated.")}var r=window.jQuery,a=require("discourse/ember/resolver")["default"];define("ember",["exports"],function(e){e["default"]=Ember});var n=[];window.Discourse=Ember.Application.extend(Discourse.Ajax,{rootElement:"#main",_docTitle:document.title,__TAGS_INCLUDED__:!0,getURL:function(e){return e&&("/"===e||/^\/[^\/]/.test(e))?-1!==e.indexOf(Discourse.BaseUri)?e:("/"!==e[0]&&(e="/"+e),Discourse.BaseUri+e):e},getURLWithCDN:function(e){return e=this.getURL(e),Discourse.CDN&&/^\/[^\/]/.test(e)?e=Discourse.CDN+e:Discourse.S3CDN&&(e=e.replace(Discourse.S3BaseUrl,Discourse.S3CDN)),e},Resolver:a,_titleChanged:function(){var e=this.get("_docTitle")||Discourse.SiteSettings.title;r("title").text()!==e&&r("title").text(e);var t=this.get("notifyCount");t>0&&!Discourse.User.currentProp("dynamic_favicon")&&(e="("+t+") "+e),document.title=e}.observes("_docTitle","hasFocus","notifyCount"),faviconChanged:function(){if(Discourse.User.currentProp("dynamic_favicon")){var e=Discourse.SiteSettings.favicon_url;/^http/.test(e)&&(e=Discourse.getURL("/favicon/proxied?"+encodeURIComponent(e))),new Favcount(e).set(this.get("notifyCount"))}}.observes("notifyCount"),postButtons:function(){return Discourse.SiteSettings.post_menu.split("|").map(function(e){return e.replace(/\+/,"").capitalize()})}.property(),notifyTitle:function(e){this.set("notifyCount",e)},notifyBackgroundCountIncrement:function(){this.get("hasFocus")||(this.set("backgroundNotify",!0),this.set("notifyCount",(this.get("notifyCount")||0)+1))},resetBackgroundNotifyCount:function(){this.get("hasFocus")&&this.get("backgroundNotify")&&this.set("notifyCount",0),this.set("backgroundNotify",!1)}.observes("hasFocus"),authenticationComplete:function(e){var t=Discourse.__container__.lookup("controller:login");return t.authenticationComplete(e)},start:function(){r("noscript").remove(),Object.keys(requirejs._eak_seen).forEach(function(e){if(/\/pre\-initializers\//.test(e)){var t=require(e,null,null,!0);if(!t)throw new Error(e+" must export an initializer.");Discourse.initializer(t["default"])}}),Object.keys(requirejs._eak_seen).forEach(function(e){if(/\/initializers\//.test(e)){var t=require(e,null,null,!0);if(!t)throw new Error(e+" must export an initializer.");var r=t["default"],a=r.initialize;r.initialize=function(e){a.call(this,e.container,Discourse)},Discourse.instanceInitializ
|
|||
|
throw e})},destroy:function(){return this.get("newBadge")?Ember.RSVP.resolve():Discourse.ajax("/admin/badges/"+this.get("id"),{type:"DELETE"})}});i.reopenClass({createFromJson:function(e){var t={};"badge_types"in e&&e.badge_types.forEach(function(e){t[e.id]=Ember.Object.create(e)});var r={};"badge_groupings"in e&&e.badge_groupings.forEach(function(e){r[e.id]=a.create(e)});var n=[];return"badge"in e?n=[e.badge]:e.badges&&(n=e.badges),n=n.map(function(e){var a=i.create(e);return a.set("badge_type",t[a.get("badge_type_id")]),a.set("badge_grouping",r[a.get("badge_grouping_id")]),a}),"badge"in e?n[0]:n},findAll:function(e){var t="";return e&&e.onlyListable&&(t="?only_listable=true"),Discourse.ajax("/badges.json"+t).then(function(e){return i.createFromJson(e)})},findById:function(e){return Discourse.ajax("/badges/"+e).then(function(e){return i.createFromJson(e)})}}),r["default"]=i}),define("discourse/models/permission-type",["exports"],function(e){"use strict";var t=Discourse.Model.extend({description:function(){var e="";switch(this.get("id")){case 1:e="full";break;case 2:e="create_post";break;case 3:e="readonly"}return I18n.t("permission_types."+e)}.property("id")});t.FULL=1,t.CREATE_POST=2,t.READONLY=3,e["default"]=t}),define("discourse/models/user-action-group",["exports"],function(e){"use strict";e["default"]=Discourse.Model.extend({push:function(e){return this.items||(this.items=[]),this.items.push(e)}})}),define("discourse/models/category",["discourse/models/rest","ember-addons/ember-computed-decorators","discourse/models/permission-type","exports"],function(e,t,r,a){"use strict";function n(e){for(var t={},r=0;r<e.length;r++){var a=e[r],n=a.decorators,i=a.key;if(delete a.key,delete a.decorators,a.enumerable=!0,a.configurable=!0,("value"in a||a.initializer)&&(a.writable=!0),n)for(var o=0;o<n.length;o++){var s=n[o];if("function"!=typeof s)throw new TypeError("The decorator for method "+a.key+" is of the invalid type "+typeof s);a=s(t,i,a)||a}a.initializer&&(a.value=a.initializer.call(t)),Object.defineProperty(t,i,a)}return t}var i,o=e["default"],s=t.on,c=r["default"],d=o.extend(n([{key:"setupGroupsAndPermissions",decorators:[s("init")],value:function(){var e=this.get("available_groups");if(e){this.set("availableGroups",e);var t=this.get("group_permissions");t&&this.set("permissions",t.map(function(t){return e.removeObject(t.group_name),{group_name:t.group_name,permission:c.create({id:t.permission_type})}}))}}},{key:"availablePermissions",initializer:function(){return function(){return[c.create({id:c.FULL}),c.create({id:c.CREATE_POST}),c.create({id:c.READONLY})]}.property()}},{key:"searchContext",initializer:function(){return function(){return{type:"category",id:this.get("id"),category:this}}.property("id")}},{key:"url",initializer:function(){return function(){return Discourse.getURL("/c/")+d.slugFor(this)}.property("name")}},{key:"fullSlug",initializer:function(){return function(){return this.get("url").slice(3).replace("/","-")}.property("url")}},{key:"nameLower",initializer:function(){return function(){return this.get("name").toLowerCase()}.property("name")}},{key:"unreadUrl",initializer:function(){return function(){return this.get("url")+"/l/unread"}.property("url")}},{key:"newUrl",initializer:function(){return function(){return this.get("url")+"/l/new"}.property("url")}},{key:"style",initializer:function(){return function(){return"background-color: #"+this.get("category.color")+"; color: #"+this.get("category.text_color")+";"}.property("color","text_color")}},{key:"moreTopics",initializer:function(){return function(){return this.get("topic_count")>Discourse.SiteSettings.category_featured_topics}.property("topic_count")}},{key:"save",initializer:function(){return function(){var e="/categories";return this.get("id")&&(e="/categories/"+this.get("id")),Discourse.ajax(e,{data:{name:this.get("name"),slug:this.get("slug"),color:this.get("color"),text_color:this.get("text_color"),secure:this.get("secure"),permissions:this.get("permissionsForUpdate"),auto_close_hours:this.get("auto_close_hours"),auto_close_based_on_last_post:t
|
|||
|
return t.get("isNew")?(o(e,t.get("id")),Ember.RSVP.Promise.resolve(!0)):this.adapterFor(e).destroyRecord(this,e,t).then(function(r){return o(e,t.get("id")),r})},_resultSet:function(e,t,r){var a=this,n=Ember.String.underscore(this.pluralize(e)),i=t[n].map(function(r){return a._hydrate(e,r,t)}),o={content:i,findArgs:r,totalRows:t["total_rows_"+n]||i.length,loadMoreUrl:t["load_more_"+n],refreshUrl:t["refresh_"+n],store:this,__type:e};return t.extras&&(o.extras=t.extras),d.create(o)},_build:function(e,t){t.store=this,t.__type=e,t.__state=t.id?"created":"new",t.topicTrackingState=this.container.lookup("topic-tracking-state:main"),t.keyValueStore=this.container.lookup("key-value-store:main");var r=this.container.lookupFactory("model:"+e)||c,a=r.create(t);return n(e,t.id,a),a},adapterFor:function(e){return this.container.lookup("adapter:"+e)||this.container.lookup("adapter:rest")},_lookupSubType:function(e,t,r,a){var n=this;if("category"===e&&"topic"!==t)return Discourse.Category.findById(r);var i=this.pluralize(e),o=a[this.pluralize(e)];if(o){var s=function(){var t="__hashed_"+i,s=a[t];s||(s={},o.forEach(function(e){s[e.id]=e}),a[t]=s);var c=s[r];if(c){var d=n._hydrate(e,c,a);return s[r]=d,{v:d}}}();if("object"==typeof s)return s.v}},_hydrateEmbedded:function(e,t,r){var a=this;Object.keys(t).forEach(function(n){var i=/(.+)\_id(s?)$/.exec(n);i&&!function(){var o=i[1];if(i[2]){var s=t[n].map(function(t){return a._lookupSubType(o,e,t,r)});t[a.pluralize(o)]=s||[],delete t[n]}else{var s=a._lookupSubType(o,e,t[n],r);s&&(t[o]=s,delete t[n])}}()})},_hydrate:function(e,t,r){if(!t)throw"Can't hydrate "+e+" of `null`";if(!t.id)throw"Can't hydrate "+e+" without an `id`";r=r||t,"1"===r.__rest_serializer&&this._hydrateEmbedded(e,t,r);var a=i(e,t.id);if(a===t)return a;if(a){delete t.id;var n=this.container.lookupFactory("model:"+e)||c;return a.setProperties(n.munge(t)),a}return this._build(e,t)}}),r.flushMap=a}),define("discourse/models/post-action-type",["discourse/models/rest","exports"],function(e,t){"use strict";var r=e["default"],a=r.extend({notCustomFlag:Em.computed.not("is_custom_flag")}),n=500;t.MAX_MESSAGE_LENGTH=n,t["default"]=a}),define("discourse/models/action-summary",["discourse/models/rest","discourse/lib/ajax-error","exports"],function(e,t,r){"use strict";var a=e["default"],n=t.popupAjaxError;r["default"]=a.extend({canToggle:function(){return this.get("can_undo")||this.get("can_act")}.property("can_undo","can_act"),removeAction:function(){this.setProperties({acted:!1,count:this.get("count")-1,can_act:!0,can_undo:!1})},togglePromise:function(e){return this.get("acted")?this.undo(e):this.act(e)},toggle:function(e){return this.get("acted")?(this.undo(e),!1):(this.act(e),!0)},act:function(e,t){t||(t={});var r=this.get("actionType.name_key");this.setProperties({acted:!0,count:this.get("count")+1,can_act:!1,can_undo:!0}),("notify_moderators"===r||"notify_user"===r)&&(this.set("can_undo",!1),this.set("can_defer_flags",!1));var a=this;return Discourse.ajax("/post_actions",{type:"POST",data:{id:this.get("flagTopic")?this.get("flagTopic.id"):e.get("id"),post_action_type_id:this.get("id"),message:t.message,is_warning:t.isWarning,take_action:t.takeAction,flag_topic:this.get("flagTopic")?!0:!1},returnXHR:!0}).then(function(t){a.get("flagTopic")||e.updateActionsSummary(t.result);var r=parseInt(t.xhr.getResponseHeader("Discourse-Actions-Remaining")||0),n=parseInt(t.xhr.getResponseHeader("Discourse-Actions-Max")||0);return{acted:!0,remaining:r,max:n}})["catch"](function(t){n(t),a.removeAction(e)})},undo:function(e){return this.removeAction(e),Discourse.ajax("/post_actions/"+e.get("id"),{type:"DELETE",data:{post_action_type_id:this.get("id")}}).then(function(t){return e.updateActionsSummary(t),{acted:!1}})},deferFlags:function(e){var t=this;return Discourse.ajax("/post_actions/defer_flags",{type:"POST",data:{post_action_type_id:this.get("id"),id:e.get("id")}}).then(function(){return t.set("count",0)})}})}),define("discourse/models/post",["discourse/models/rest","discourse/lib/ajax-error","discourse/models/action-summary","discourse/lib/compu
|
|||
|
}},{key:"createdAt",initializer:function(){return function(){return new Date(this.get("created_at"))}.property("created_at")}},{key:"postStream",initializer:function(){return function(){return this.store.createRecord("postStream",{id:this.get("id"),topic:this})}.property()}},{key:"visibleListTags",decorators:[f("tags")],value:function(e){if(!e||!Discourse.SiteSettings.suppress_overlapping_tags_in_list)return e;var t=this.get("title"),r=[];return e.forEach(function(e){(-1===t.toLowerCase().indexOf(e)||-1!==Discourse.SiteSettings.staff_tags.indexOf(e))&&r.push(e)}),r}},{key:"replyCount",initializer:function(){return function(){return this.get("posts_count")-1}.property("posts_count")}},{key:"details",initializer:function(){return function(){return this.store.createRecord("topicDetails",{id:this.get("id"),topic:this})}.property()}},{key:"invisible",initializer:function(){return Em.computed.not("visible")}},{key:"deleted",initializer:function(){return Em.computed.notEmpty("deleted_at")}},{key:"searchContext",initializer:function(){return function(){return{type:"topic",id:this.get("id")}}.property("id")}},{key:"_categoryIdChanged",initializer:function(){return function(){this.set("category",Discourse.Category.findById(this.get("category_id")))}.observes("category_id").on("init")}},{key:"_categoryNameChanged",initializer:function(){return function(){var e=this.get("categoryName"),t=void 0;e&&(t=Discourse.Category.list().findProperty("name",e)),this.set("category",t)}.observes("categoryName")}},{key:"categoryClass",initializer:function(){return function(){return"category-"+this.get("category.fullSlug")}.property("category.fullSlug")}},{key:"shareUrl",initializer:function(){return function(){var e=Discourse.User.current();return this.get("url")+(e?"?u="+e.get("username_lower"):"")}.property("url")}},{key:"url",initializer:function(){return function(){var e=this.get("slug")||"";return 0===e.trim().length&&(e="topic"),Discourse.getURL("/t/")+e+"/"+this.get("id")}.property("id","slug")}},{key:"urlForPostNumber",value:function(e){var t=this.get("url");return e&&e>0&&(t+="/"+e),t}},{key:"totalUnread",initializer:function(){return function(){var e=(this.get("unread")||0)+(this.get("new_posts")||0);return e>0?e:null}.property("new_posts","unread")}},{key:"lastReadUrl",initializer:function(){return function(){return this.urlForPostNumber(this.get("last_read_post_number"))}.property("url","last_read_post_number")}},{key:"lastUnreadUrl",initializer:function(){return function(){var e=Math.min(this.get("last_read_post_number")+1,this.get("highest_post_number"));return this.urlForPostNumber(e)}.property("url","last_read_post_number","highest_post_number")}},{key:"lastPostUrl",initializer:function(){return function(){return this.urlForPostNumber(this.get("highest_post_number"))}.property("url","highest_post_number")}},{key:"firstPostUrl",initializer:function(){return function(){return this.urlForPostNumber(1)}.property("url")}},{key:"summaryUrl",initializer:function(){return function(){return this.urlForPostNumber(1)+(this.get("has_summary")?"?filter=summary":"")}.property("url")}},{key:"lastPosterUrl",initializer:function(){return function(){return Discourse.getURL("/users/")+this.get("last_poster.username")}.property("last_poster")}},{key:"displayNewPosts",initializer:function(){return function(){var e=Discourse.Session.currentProp("highestSeenByTopic")[this.get("id")];if(e){var t=e-this.get("last_read_post_number");if(t>0){var r=this.get("new_posts")-t;return 0>r&&(r=0),r}}return this.get("new_posts")}.property("new_posts","id")}},{key:"viewsHeat",initializer:function(){return function(){var e=this.get("views");return e>=Discourse.SiteSettings.topic_views_heat_high?"heatmap-high":e>=Discourse.SiteSettings.topic_views_heat_medium?"heatmap-med":e>=Discourse.SiteSettings.topic_views_heat_low?"heatmap-low":null}.property("views")}},{key:"archetypeObject",initializer:function(){return function(){return Discourse.Site.currentProp("archetypes").findProperty("id",this.get("archetype"))}.property("archetype")}},{key:"isPrivateMessage",initializer:
|
|||
|
t.set("draftStatus",I18n.t("composer.saved_draft_tip"))})["catch"](function(){t.set("draftStatus",I18n.t("composer.drafts_offline"))})}}},{key:"dataChanged",initializer:function(){return function(){var e=this.get("draftStatus"),t=this;e&&!this._clearingStatus&&(this._clearingStatus=Em.run.later(this,function(){t.set("draftStatus",null),t._clearingStatus=null},1e3))}.observes("title","reply")}}]));k.reopenClass({create:function(e){return e=e||{},e.user=e.user||Discourse.User.current(),e.site=e.site||Discourse.Site.current(),e.siteSettings=e.siteSettings||Discourse.SiteSettings,this._super(e)},serializeToTopic:function(e,t){t||(t=e),N[e]=t},serializeOnCreate:function(e,t){t||(t=e),F[e]=t},serializedFieldsForCreate:function(){return Object.keys(F)},CLOSED:m,SAVING:g,OPEN:v,DRAFT:f,CREATE_TOPIC:b,PRIVATE_MESSAGE:C,REPLY:y,EDIT:x,REPLY_AS_NEW_TOPIC_KEY:T}),o["default"]=k}),define("discourse/mixins/add-archetype-class",["exports"],function(e){"use strict";e["default"]={_init:function(){this.get("archetype")}.on("init"),_cleanUp:function(){$("body").removeClass(function(e,t){return(t.match(/\barchetype-\S+/g)||[]).join(" ")})},_archetypeChanged:function(){var e=this.get("archetype");this._cleanUp(),e&&$("body").addClass("archetype-"+e)}.observes("archetype"),_willDestroyElement:function(){this._cleanUp()}.on("willDestroyElement")}}),Discourse.AddArchetypeClass=require("discourse/mixins/add-archetype-class")["default"],define("discourse/mixins/add-category-class",["ember","exports"],function(e,t){"use strict";var r=e["default"],a=r.on,n=r.observer;t["default"]={_categoryChanged:a("didInsertElement",n("categoryFullSlug",function(){var e=this.get("categoryFullSlug");this._removeClass(),e&&$("body").addClass("category-"+e)})),_leave:a("willDestroyElement",function(){this.removeObserver("categoryFullSlug"),this._removeClass()}),_removeClass:function(){$("body").removeClass(function(e,t){return(t.match(/\bcategory-\S+/g)||[]).join(" ")})}}}),Discourse.AddCategoryClass=require("discourse/mixins/add-category-class")["default"],define("discourse/mixins/badge-select-controller",["discourse/models/badge","exports"],function(e,t){"use strict";var r=e["default"];t["default"]=Ember.Mixin.create({saving:!1,saved:!1,selectableUserBadges:function(){var e=this.get("filteredList");return e=_.uniq(e,!1,function(e){return e.get("badge.name")}),e.unshiftObject(Em.Object.create({badge:r.create({name:I18n.t("badges.none")})})),e}.property("filteredList"),savingStatus:function(){return this.get("saving")?I18n.t("saving"):I18n.t("save")}.property("saving"),selectedUserBadge:function(){var e=parseInt(this.get("selectedUserBadgeId")),t=null;return this.get("selectableUserBadges").forEach(function(r){r.get("id")===e&&(t=r)}),t}.property("selectedUserBadgeId"),disableSave:Em.computed.alias("saving")})}),Discourse.BadgeSelectController=require("discourse/mixins/badge-select-controller")["default"],define("discourse/mixins/buffered-content",["exports"],function(e){"use strict";function t(e){var t={buffered:function(){return Em.ObjectProxy.extend(BufferedProxy).create({content:this.get(e)})}.property(e),rollbackBuffer:function(){this.get("buffered").discardBufferedChanges()},commitBuffer:function(){this.get("buffered").applyBufferedChanges()}};return t.property=null,Ember.Mixin.create(t)}e.bufferedProperty=t,e["default"]=t("content")}),Discourse.BufferedContent=require("discourse/mixins/buffered-content")["default"],define("discourse/mixins/bulk-topic-selection",["discourse/lib/notification-levels","exports"],function(e,t){"use strict";var r=e["default"];t["default"]=Ember.Mixin.create({bulkSelectEnabled:!1,selected:null,canBulkSelect:Em.computed.alias("currentUser.staff"),resetSelected:function(){this.set("selected",[])}.on("init"),actions:{toggleBulkSelect:function(){this.toggleProperty("bulkSelectEnabled"),this.get("selected").clear()},dismissRead:function(e){var t=this,a=this.get("selected"),n=void 0;n="posts"===e?{type:"dismiss_posts"}:{type:"change_notification_level",notification_level_id:r.REGULAR};var i=void 0;i=a.length>0?Discourse.Topic.bulkOperati
|
|||
|
return r[e]}var t=window.jQuery,r={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},a=/[&<>"'`]/g,n=/[&<>"'`]/;Discourse.Utilities={translateSize:function(e){switch(e){case"tiny":return 20;case"small":return 25;case"medium":return 32;case"large":return 45;case"extra_large":return 60;case"huge":return 120}return e},escapeExpression:function(t){return t instanceof Handlebars.SafeString?t.toString():null==t?"":t?(t=""+t,n.test(t)?t.replace(a,e):t):t+""},avatarUrl:function(e,t){if(!e)return"";var r=Discourse.Utilities.getRawSize(Discourse.Utilities.translateSize(t));return e.replace(/\{size\}/g,r)},getRawSize:function(e){var t=window.devicePixelRatio||1;return e*Math.min(3,Math.max(1,Math.round(t)))},avatarImg:function(e){var t=Discourse.Utilities.translateSize(e.size),r=Discourse.Utilities.avatarUrl(e.avatarTemplate,t);if(!r||0===r.length)return"";var a="avatar"+(e.extraClasses?" "+e.extraClasses:""),n=e.title?" title='"+Handlebars.Utils.escapeExpression(e.title||"")+"'":"";return"<img alt='' width='"+t+"' height='"+t+"' src='"+Discourse.getURLWithCDN(r)+"' class='"+a+"'"+n+">"},tinyAvatar:function(e,t){return Discourse.Utilities.avatarImg(_.merge({avatarTemplate:e,size:"tiny"},t))},postUrl:function(e,t,r){var a=Discourse.getURL("/t/");return a+=e?e+"/":"topic/",a+=t,r>1&&(a+="/"+r),a},userUrl:function(e){return Discourse.getURL("/users/"+e.toLowerCase())},emailValid:function(e){var t=/^[a-zA-Z0-9!#$%&'*+\/=?\^_`{|}~\-]+(?:\.[a-zA-Z0-9!#$%&'\*+\/=?\^_`{|}~\-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/;return t.test(e)},selectedText:function(){var e="";if("undefined"!=typeof window.getSelection){var r=window.getSelection();if(r.rangeCount){for(var a=document.createElement("div"),n=0,i=r.rangeCount;i>n;++n)a.appendChild(r.getRangeAt(n).cloneContents());e=a.innerHTML}}else"undefined"!=typeof document.selection&&"Text"===document.selection.type&&(e=document.selection.createRange().htmlText);var o=document.createElement("div");o.innerHTML=e;var s=t(o);s.find("img.emoji").replaceWith(function(){return this.title}),t(".clicks",s).remove();var c=o.textContent||o.innerText||"";return String(c).trim()},caretRowCol:function(e){var t=Discourse.Utilities.caretPosition(e),r=e.value.slice(0,t).split("\n"),a=r.length,n=t-r.splice(0,a-1).reduce(function(e,t){return e+t.length+1},0);return{rowNum:a,colNum:n}},caretPosition:function(e){var t,r,a;return e.selectionStart?e.selectionStart:document.selection?(e.focus(),(t=document.selection.createRange())?(a=e.createTextRange(),r=a.duplicate(),a.moveToBookmark(t.getBookmark()),r.setEndPoint("EndToStart",a),r.text.length):0):0},setCaretPosition:function(e,t){var r;return e.setSelectionRange?(e.focus(),void e.setSelectionRange(t,t)):e.createTextRange?(r=e.createTextRange(),r.collapse(!0),r.moveEnd("character",t),r.moveStart("character",t),r.select()):void 0},validateUploadedFiles:function(e,t){if(!e||0===e.length)return!1;if(e.length>1)return bootbox.alert(I18n.t("post.errors.too_many_uploads")),!1;var r=e[0];"undefined"!=typeof Blob&&"undefined"!=typeof File&&r instanceof Blob&&!(r instanceof File)&&"image/png"===r.type&&(r.name="blob.png");var a=Discourse.Utilities.uploadTypeFromFileName(r.name);return Discourse.Utilities.validateUploadedFile(r,a,t)},validateUploadedFile:function(e,t,r){if(!Discourse.Utilities.authorizesAllExtensions()&&!Discourse.Utilities.isAuthorizedUpload(e)){var a=Discourse.Utilities.authorizedExtensions();return bootbox.alert(I18n.t("post.errors.upload_not_authorized",{authorized_extensions:a})),!1}return r||Discourse.User.current().isAllowedToUploadAFile(t)?!0:(bootbox.alert(I18n.t("post.errors."+t+"_upload_not_allowed_for_new_user")),!1)},uploadTypeFromFileName:function(e){return Discourse.Utilities.isAnImage(e)?"image":"attachment"},authorizesAllExtensions:function(){return Discourse.SiteSettings.authorized_extensions.indexOf("*")>=0},isAuthorizedUpload:function(e){if(e&&e.name){var t=_.chain(Discourse.SiteSettings.authorized_extensions.split("|")).reject(function(e){return e.indexOf("*")>=0}).
|
|||
|
tabicon:"grinning",icons:["slight_smile","grinning","grin","joy","smiley","smile","sweat_smile","laughing","innocent","smiling_imp","imp","wink","blush","relaxed","yum","relieved","heart_eyes","sunglasses","smirk","neutral_face","expressionless","unamused","sweat","pensive","confused","confounded","kissing","kissing_heart","kissing_smiling_eyes","kissing_closed_eyes","stuck_out_tongue","stuck_out_tongue_winking_eye","stuck_out_tongue_closed_eyes","disappointed","worried","angry","rage","cry","persevere","triumph","disappointed_relieved","frowning","anguished","fearful","weary","sleepy","tired_face","grimacing","sob","open_mouth","hushed","cold_sweat","scream","astonished","flushed","sleeping","dizzy_face","no_mouth","mask","smile_cat","joy_cat","smiley_cat","heart_eyes_cat","smirk_cat","kissing_cat","pouting_cat","crying_cat_face","scream_cat","footprints","bust_in_silhouette","busts_in_silhouette","baby","boy","girl","man","woman","family","couple","two_men_holding_hands","two_women_holding_hands","dancers","bride_with_veil","person_with_blond_hair","man_with_gua_pi_mao","man_with_turban","older_man","older_woman","cop","construction_worker","princess","guardsman","angel","santa","ghost","japanese_ogre","japanese_goblin","hankey","skull","alien","space_invader","bow","information_desk_person","no_good","ok_woman","raising_hand","person_with_pouting_face","person_frowning","massage","haircut","couple_with_heart","couplekiss","raised_hands","clap","hand","ear","eyes","nose","lips","kiss","tongue","nail_care","wave","+1","-1","point_up","point_up_2","point_down","point_left","point_right","ok_hand","v","facepunch","fist","raised_hand","muscle","open_hands","pray","anger_right","eye","frowning2","hand_splayed","head_bandage","hugging","middle_finger","money_mouth","nerd","poop","punch","robot","rolling_eyes","skull_crossbones","slight_frown","speaking_head","spy","thinking","thumbsdown","thumbsup","upside_down","urn","vulcan","wind_blowing_face","writing_hand","zipper_mouth"]},{name:"nature",fullname:"Nature",tabicon:"evergreen_tree",icons:["seedling","evergreen_tree","deciduous_tree","palm_tree","cactus","tulip","cherry_blossom","rose","hibiscus","sunflower","blossom","bouquet","ear_of_rice","herb","four_leaf_clover","maple_leaf","fallen_leaf","leaves","mushroom","chestnut","rat","mouse2","mouse","hamster","ox","water_buffalo","cow2","cow","tiger2","leopard","tiger","rabbit2","rabbit","cat2","cat","racehorse","horse","ram","sheep","goat","rooster","chicken","baby_chick","hatching_chick","hatched_chick","bird","penguin","elephant","dromedary_camel","camel","boar","pig2","pig","pig_nose","dog2","poodle","dog","wolf","bear","koala","panda_face","monkey_face","see_no_evil","hear_no_evil","speak_no_evil","monkey","dragon","dragon_face","crocodile","snake","turtle","frog","whale2","whale","dolphin","octopus","fish","tropical_fish","blowfish","shell","snail","bug","ant","bee","beetle","feet","zap","fire","crescent_moon","sunny","partly_sunny","cloud","droplet","sweat_drops","umbrella","dash","snowflake","star2","star","stars","sunrise_over_mountains","sunrise","rainbow","ocean","volcano","milky_way","mount_fuji","japan","globe_with_meridians","earth_africa","earth_americas","earth_asia","new_moon","waxing_crescent_moon","first_quarter_moon","moon","full_moon","waning_gibbous_moon","last_quarter_moon","waning_crescent_moon","new_moon_with_face","full_moon_with_face","first_quarter_moon_with_face","last_quarter_moon_with_face","sun_with_face","chipmunk","cloud_lightning","cloud_rain","cloud_snow","cloud_tornado","comet","crab","dove","fog","lion_face","scorpion","spider","spider_web","thunder_cloud_rain","turkey","unicorn","waxing_gibbous_moon","white_sun_cloud","white_sun_rain_cloud","white_sun_small_cloud"]},{name:"food",fullname:"Food & Drink",tabicon:"hamburger",icons:["tomato","eggplant","corn","sweet_potato","grapes","melon","watermelon","tangerine","lemon","banana","pineapple","apple","green_apple","pear","peach","cherries","strawberry","hamburger","pizza","meat_on_bone","poultry_leg","rice_cracker","rice_ball","rice","curr
|
|||
|
this.tick(),this.flush(),this.reset(),this._topicId=null,this._topicController=null,this._interval&&(clearInterval(this._interval),this._interval=null))}},{key:"setOnscreen",value:function(e){this._onscreen=e}},{key:"reset",value:function(){var e=o();this._lastTick=e,this._lastScrolled=e,this._lastFlush=0,this._timings={},this._totalTimings={},this._topicTime=0,this._onscreen=[]}},{key:"scrolled",value:function(){this._lastScrolled=o()}},{key:"registerAnonCallback",value:function(e){this._anonCallback=e}},{key:"flush",value:function(){var e=this,t={},r=this._totalTimings,a=this._timings;Object.keys(this._timings).forEach(function(e){var i=a[e];r[e]=r[e]||0,i>0&&r[e]<n&&(r[e]+=i,t[e]=i),a[e]=0});var o=parseInt(this._topicId,10),s=0;Object.keys(t).forEach(function(e){s=Math.max(s,parseInt(e,10))});var c=this.session.get("highestSeenByTopic");if((c[o]||0)<s&&(c[o]=s),this.topicTrackingState.updateSeen(o,s),!$.isEmptyObject(t)){if(this.currentUser)Discourse.ajax("/topics/timings",{data:{timings:t,topic_time:this._topicTime,topic_id:o},cache:!1,type:"POST",headers:{"X-SILENCE-LOGGER":"true"}}).then(function(){var r=e._topicController;if(r){var a=Object.keys(t).map(function(e){return parseInt(e,10)});r.readPosts(o,a)}});else if(this._anonCallback){var d=this.keyValueStore,l=d.getInt("anon-topic-time");d.setItem("anon-topic-time",l+this._topicTime);var h=d.get("anon-topic-ids");h=h?h.split(",").map(function(e){return parseInt(e)}):[],-1===h.indexOf(o)&&h.length<i&&(h.push(o),d.setItem("anon-topic-ids",h.join(","))),this._anonCallback()}this._topicTime=0}this._lastFlush=0}},{key:"tick",value:function(){var e=(new Date).getTime(),t=e-this._lastScrolled;if(!(t>a)){var r=e-this._lastTick;this._lastFlush+=r,this._lastTick=e;var n=this._totalTimings,i=this._timings,o=1e3*this.siteSettings.flush_timings_secs,s=Object.keys(i).some(function(e){return i[e]>0&&!n[e]});(this._lastFlush>o||s)&&this.flush(),Discourse.get("hasFocus")&&(this._topicTime+=r,this._onscreen.forEach(function(e){return i[e]=(i[e]||0)+r}))}}}]),e}();e["default"]=s}),define("discourse/routes/discourse",["discourse/models/composer","exports"],function(e,t){"use strict";function r(){window.MiniProfiler&&window.MiniProfiler.pageTransition(),$("header ul.icons li").removeClass("active"),$('[data-toggle="dropdown"]').parent().removeClass("open"),$.magnificPopup&&$.magnificPopup.instance&&($.magnificPopup.instance.close(),$("body").removeClass("mfp-zoom-out-cur")),$(document.activeElement).not("body").not(".no-blur").blur(),Discourse.set("notifyCount",0),$("#discourse-modal").modal("hide");var e=$("html").data("hide-dropdown");e&&e();var t=Discourse.__container__.lookup("app-events:main");t.trigger("dom:clean")}t.cleanDOM=r;var a=e["default"],n=Ember.Route.extend({resfreshQueryWithoutTransition:!1,refresh:function(){var e=this;return this.refreshQueryWithoutTransition?void(this.router.router.activeTransition||!function(){var t=e.controller,r=t.get("model"),a=e.controller.getProperties(Object.keys(e.queryParams));r.set("loading",!0),e.model(a).then(function(r){return e.setupController(t,r)})}()):this._super()},_refreshTitleOnce:function(){this.send("_collectTitleTokens",[])},actions:{_collectTitleTokens:function(e){if(this.titleToken){var t=this.titleToken();t&&t.length&&(t instanceof Array?t.forEach(function(t){e.push(t)}):e.push(t))}return!0},refreshTitle:function(){Ember.run.once(this,this._refreshTitleOnce)}},redirectIfLoginRequired:function(){var e=this.controllerFor("application");e.get("loginRequired")&&this.replaceWith("login")},openTopicDraft:function(e){if(e.draft){var t=this.controllerFor("composer");t.get("model.viewOpen")||t.open({action:a.CREATE_TOPIC,draft:e.draft,draftKey:e.draft_key,draftSequence:e.draft_sequence})}},isPoppedState:function(e){return!e._discourse_intercepted&&!!e.intent.url}});t["default"]=n}),Discourse.Route=require("discourse/routes/discourse")["default"],define("discourse/routes/build-topic-route",["discourse/controllers/discovery-sortable","exports"],function(e,t){"use strict";function r(e,t){var r=t||{};return e&&Object.keys(n).forEach(
|
|||
|
this.keyTrapper.bind(t,function(){return a.routeTo(e)})},_bindToClick:function(e,t){t=t.split(","),this.keyTrapper.bind(t,function(t){var r=$(e);if(t&&13===t.keyCode){if(0===r.length)return;t.preventDefault()}r.click()})},_bindToFunction:function(e,t){"function"==typeof this[e]&&this.keyTrapper.bind(t,_.bind(this[e],this))},_moveSelection:function(e){var t=this._findArticles();if("undefined"!=typeof t){var r=t.filter(".selected"),a=t.index(r);if(0!==r.length){if(-1===e&&0===a)return;if(1===e&&a===t.size()-1)return}0===r.length&&!function(){var r=$(document).scrollTop();a=0,t.each(function(){var e=$(this).position().top;return e>=r?!1:void(a+=1)}),a>=t.length&&(a=t.length-1),e=0}();var n=t.eq(a+e);n.size()>0&&(t.removeClass("selected"),n.addClass("selected"),n.is(".topic-post")&&$("a.tabLoc",n).focus(),this._scrollList(n,e))}},_scrollList:function(e){var t=e.offset(),r=e.height(),a=$("header.d-header").height(),n=$(window).scrollTop(),i=$(window).height();if(!(t.top-a>n&&t.top+r<n+i)){var o=t.top+r/2-.5*i;r>i-a&&(o=t.top-a),0>o&&(o=0),this._scrollAnimation&&this._scrollAnimation.stop(),this._scrollAnimation=$("html, body").animate({scrollTop:o+"px"},100)}},_findArticles:function(){var e=$(".topic-list"),t=$(".posts-wrapper");return t.size()>0?$(".posts-wrapper .topic-post, .topic-list tbody tr"):e.size()>0?e.find(".topic-list-item"):void 0},_changeSection:function(e){var t=$(".nav.nav-pills li"),r=$(".nav.nav-pills li.active"),a=t.index(r)+e;a>=0&&a<t.length&&t.eq(a).find("a").click()},_stopCallback:function(){var e=this.keyTrapper.prototype.stopCallback;this.keyTrapper.prototype.stopCallback=function(t,r,a,n){return"ctrl+f"!==a&&"command+f"!==a||"search-term"!==r.id?e.call(this,t,r,a,n):!1}},_replyToPost:function(){this.container.lookup("controller:topic").send("replyToPost")}}}),define("discourse/lib/lightbox",["discourse/lib/load-script","exports"],function(e,t){"use strict";var r=e["default"];t["default"]=function(e){$("a.lightbox",e).each(function(e,t){r("/javascripts/jquery.magnific-popup-min.js").then(function(){var e=$(t);e.parents(".spoiler").length>0||e.parents(".spoiled").length>0||e.magnificPopup({type:"image",closeOnContentClick:!1,removalDelay:300,mainClass:"mfp-zoom-in",callbacks:{open:function(){var e=this.wrap,t=this.currItem.img,r=t.css("max-height");e.on("click.pinhandler","img",function(){e.toggleClass("mfp-force-scrollbars"),t.css("max-height",e.hasClass("mfp-force-scrollbars")?"none":r)})},beforeClose:function(){this.wrap.off("click.pinhandler"),this.wrap.removeClass("mfp-force-scrollbars")}},image:{titleSrc:function(e){var t=e.el.data("download-href")||e.src,r=[e.el.attr("title"),$("span.informations",e.el).text().replace("x","×")];return(!Discourse.SiteSettings.prevent_anons_from_downloading_files||Discourse.User.current())&&r.push('<a class="image-source-link" href="'+t+'">'+I18n.t("lightbox.download")+"</a>"),r.join(" · ")}}})})})}}),define("discourse/lib/link-category-hashtags",["discourse/lib/category-hashtags","exports"],function(e,t){"use strict";function r(e,t){Ember.run.schedule("afterRender",function(){e.each(function(e,r){var a=t[e],n=o[a],c=$(r);n?i(c,a,n):-1!==s.indexOf(a)&&c.addClass(d)})})}function a(e){var t=$("span.hashtag:not(."+d+")",e),a=[];if(t.length){var n=t.map(function(e,t){return $(t).text().substr(1)});n.length&&_.uniq(n).forEach(function(e){-1===s.indexOf(e)&&a.push(e)}),r(t,n)}return a}function n(e){return Discourse.ajax("/category_hashtags/check",{data:{category_slugs:e}}).then(function(t){t.valid.forEach(function(e){o[e.slug]=e.url}),s.push.apply(s,e)})}t.linkSeenCategoryHashtags=a,t.fetchUnseenCategoryHashtags=n;var i=e.replaceSpan,o={},s=[],c="tested",d="hashtag-"+c}),define("discourse/lib/link-tag-hashtag",["discourse/lib/category-hashtags","discourse/lib/tag-hashtags","exports"],function(e,t,r){"use strict";function a(e,t){Ember.run.schedule("afterRender",function(){e.each(function(e,r){var a=t[e],n=c[a],i=$(r);n?o(i,a,n):-1!==d.indexOf(a)&&i.addClass(l)})})}function n(e){var t=$("span.hashtag:not(."+l+")",e),r=[];if(t.length){var n=t.map(function(e,t
|
|||
|
!i)return["p",["aside",n,["blockquote"].concat(t)]];var l=["div",{"class":"title"},["div",{"class":"quote-controls"}],s?["__RAW",s]:"",i?I18n.t("user.said",{username:i}):""];if(a.topicId&&c&&a.getTopicInfo&&d!==a.topicId){var h=a.getTopicInfo(d);if(h){var u=h.href;c>0&&(u+="/"+c),l.pop(),l.push(["a",{href:u},h.title])}}return["aside",n,l,["blockquote"].concat(t)]})}(this),function(){var e=(window.jQuery,function(e){var t="";return e.forEach(function(e){t+=e,e.trailing&&(t+=e.trailing)}),t.replace(/[\n\r]/g," ")}),t=function(t){return window.html4&&1!==window.html4.ELEMENTS.td&&(window.html4.ELEMENTS.table=0,window.html4.ELEMENTS.tbody=1,window.html4.ELEMENTS.td=1,window.html4.ELEMENTS.thead=1,window.html4.ELEMENTS.th=1,window.html4.ELEMENTS.tr=1),["table",{"class":"md-table"},e.apply(this,[t])]},r={start:/(<table[^>]*>)([\S\s]*)/gim,stop:/<\/table>/gim,rawContents:!0,emitter:t,priority:1},a=function(){Discourse.SiteSettings.allow_html_tables&&(Discourse.Markdown.whiteListTag("table"),Discourse.Markdown.whiteListTag("table","class","md-table"),Discourse.Markdown.whiteListTag("tbody"),Discourse.Markdown.whiteListTag("thead"),Discourse.Markdown.whiteListTag("tr"),Discourse.Markdown.whiteListTag("th"),Discourse.Markdown.whiteListTag("td"),Discourse.Dialect.replaceBlock(r))};Discourse.SiteSettings?a():Discourse.initializer({initialize:a,name:"enable-html-tables"})}(this),define("discourse/controllers/about",["exports"],function(e){"use strict";e["default"]=Ember.Controller.extend({faqOverriden:Ember.computed.gt("siteSettings.faq_url.length",0),contactInfo:function(){return this.siteSettings.contact_url?I18n.t("about.contact_info",{contact_info:"<a href='"+this.siteSettings.contact_url+"' target='_blank'>"+this.siteSettings.contact_url+"</a>"}):this.siteSettings.contact_email?I18n.t("about.contact_info",{contact_info:this.siteSettings.contact_email}):null}.property()})}),define("discourse/controllers/application",["ember-addons/ember-computed-decorators","exports"],function(e,t){"use strict";function r(e){for(var t={},r=0;r<e.length;r++){var a=e[r],n=a.decorators,i=a.key;if(delete a.key,delete a.decorators,a.enumerable=!0,a.configurable=!0,("value"in a||a.initializer)&&(a.writable=!0),n)for(var o=0;o<n.length;o++){var s=n[o];if("function"!=typeof s)throw new TypeError("The decorator for method "+a.key+" is of the invalid type "+typeof s);a=s(t,i,a)||a}a.initializer&&(a.value=a.initializer.call(t)),Object.defineProperty(t,i,a)}return t}var a=e["default"];t["default"]=Ember.Controller.extend(r([{key:"showTop",initializer:function(){return!0}},{key:"showFooter",initializer:function(){return!1}},{key:"styleCategory",initializer:function(){return null}},{key:"canSignUp",decorators:[a],value:function(){return!Discourse.SiteSettings.invite_only&&Discourse.SiteSettings.allow_new_registrations&&!Discourse.SiteSettings.enable_sso}},{key:"loginRequired",decorators:[a],value:function(){return Discourse.SiteSettings.login_required&&!Discourse.User.current()}}]))}),define("discourse/controllers/avatar-selector",["ember-addons/ember-computed-decorators","discourse/mixins/modal-functionality","exports"],function(e,t,r){"use strict";function a(e){for(var t={},r=0;r<e.length;r++){var a=e[r],n=a.decorators,i=a.key;if(delete a.key,delete a.decorators,a.enumerable=!0,a.configurable=!0,("value"in a||a.initializer)&&(a.writable=!0),n)for(var o=0;o<n.length;o++){var s=n[o];if("function"!=typeof s)throw new TypeError("The decorator for method "+a.key+" is of the invalid type "+typeof s);a=s(t,i,a)||a}a.initializer&&(a.value=a.initializer.call(t)),Object.defineProperty(t,i,a)}return t}var n=e["default"],i=t["default"];r["default"]=Ember.Controller.extend(i,a([{key:"selectedUploadId",decorators:[n("selected","system_avatar_upload_id","gravatar_avatar_upload_id","custom_avatar_upload_id")],value:function(e,t,r,a){switch(e){case"system":return t;case"gravatar":return r;default:return a}}},{key:"selectedAvatarTemplate",decorators:[n("selected","system_avatar_template","gravatar_avatar_template","custom_avatar_template")],value:function(e,t,r,a){switch(e){
|
|||
|
reason:I18n.t("user.username.checking")})),this.checkUsernameAvailability()}}.observes("accountEmail")}},{key:"basicUsernameValidation",initializer:function(){return function(){return this.set("uniqueUsernameValidation",null),this.get("accountUsername")===this.get("prefilledUsername")?Discourse.InputValidation.create({ok:!0,reason:I18n.t("user.username.prefilled")}):Ember.isEmpty(this.get("accountUsername"))?Discourse.InputValidation.create({failed:!0}):this.get("accountUsername").length<Discourse.SiteSettings.min_username_length?Discourse.InputValidation.create({failed:!0,reason:I18n.t("user.username.too_short")}):this.get("accountUsername").length>this.get("maxUsernameLength")?Discourse.InputValidation.create({failed:!0,reason:I18n.t("user.username.too_long")}):(this.checkUsernameAvailability(),Discourse.InputValidation.create({failed:!0,reason:I18n.t("user.username.checking")}))}.property("accountUsername")}},{key:"shouldCheckUsernameMatch",initializer:function(){return function(){return!Ember.isEmpty(this.get("accountUsername"))&&this.get("accountUsername").length>=this.get("minUsernameLength")}}},{key:"checkUsernameAvailability",initializer:function(){return o(function(){var e=this;return this.shouldCheckUsernameMatch()?Discourse.User.checkUsername(this.get("accountUsername"),this.get("accountEmail")).then(function(t){return e.set("isDeveloper",!1),t.available?(t.is_developer&&e.set("isDeveloper",!0),e.set("uniqueUsernameValidation",Discourse.InputValidation.create({ok:!0,reason:I18n.t("user.username.available")}))):t.suggestion?e.set("uniqueUsernameValidation",Discourse.InputValidation.create({failed:!0,reason:I18n.t("user.username.not_available",t)})):t.errors?e.set("uniqueUsernameValidation",Discourse.InputValidation.create({failed:!0,reason:t.errors.join(" ")})):e.set("uniqueUsernameValidation",Discourse.InputValidation.create({failed:!0,reason:I18n.t("user.username.enter_email")}))}):void 0},500)}},{key:"usernameValidation",initializer:function(){return function(){var e=this.get("basicUsernameValidation"),t=this.get("uniqueUsernameValidation");return t?t:e}.property("uniqueUsernameValidation","basicUsernameValidation")}},{key:"usernameNeedsToBeValidatedWithEmail",value:function(){return this.get("globalNicknameExists")||!1}},{key:"passwordValidation",initializer:function(){return function(){if(!this.get("passwordRequired"))return Discourse.InputValidation.create({ok:!0});var e=this.get("accountPassword");if(Ember.isEmpty(this.get("accountPassword")))return Discourse.InputValidation.create({failed:!0});var t=this.get("isDeveloper")?Discourse.SiteSettings.min_admin_password_length:Discourse.SiteSettings.min_password_length;return e.length<t?Discourse.InputValidation.create({failed:!0,reason:I18n.t("user.password.too_short")}):this.get("rejectedPasswords").contains(e)?Discourse.InputValidation.create({failed:!0,reason:I18n.t("user.password.common")}):Ember.isEmpty(this.get("accountUsername"))||this.get("accountPassword")!==this.get("accountUsername")?Ember.isEmpty(this.get("accountEmail"))||this.get("accountPassword")!==this.get("accountEmail")?Discourse.InputValidation.create({ok:!0,reason:I18n.t("user.password.ok")}):Discourse.InputValidation.create({failed:!0,reason:I18n.t("user.password.same_as_email")}):Discourse.InputValidation.create({failed:!0,reason:I18n.t("user.password.same_as_username")})}.property("accountPassword","rejectedPasswords.[]","accountUsername","accountEmail","isDeveloper")}},{key:"fetchConfirmationValue",decorators:[d("init")],value:function(){var e=this;return Discourse.ajax("/users/hp.json").then(function(t){e.set("accountPasswordConfirm",t.value),e.set("accountChallenge",t.challenge.split("").reverse().join(""))})}},{key:"actions",initializer:function(){return{externalLogin:function(e){this.get("controllers.login").send("externalLogin",e)},createAccount:function(){var e=this,t=this.getProperties("accountName","accountEmail","accountPassword","accountUsername","accountPasswordConfirm","accountChallenge"),r=this.get("userFields");return Ember.isEmpty(r)||(t.userFields={},r.forEach(functi
|
|||
|
},toggleBulkSelect:function(){this.toggleProperty("bulkSelectEnabled"),this.get("selected").clear()},refresh:function(){this.set("bulkSelectEnabled",!1),this.get("selected").clear(),this.search()},showSearchHelp:function(){Discourse.ajax("/static/search_help.html",{dataType:"html"}).then(function(e){l("searchHelp",{model:e})})},search:function(){this.get("searchButtonDisabled")||this.search()}}}}]))}),define("discourse/controllers/group-index",["discourse/lib/computed","exports"],function(e,t){"use strict";var r=e.fmt;t["default"]=Ember.ArrayController.extend({needs:["group"],loading:!1,emptyText:r("type","groups.empty.%@"),actions:{loadMore:function(){var e=this;if(!this.get("loading")){this.set("loading",!0);var t=this.get("model");if(t&&t.length){var r=t[t.length-1].get("id"),a=this.get("controllers.group.model"),n={beforePostId:r,type:this.get("type")};a.findPosts(n).then(function(r){t.addObjects(r),e.set("loading",!1)})}}}}})}),define("discourse/controllers/group",["ember-addons/ember-computed-decorators","exports"],function(e,t){"use strict";function r(e){for(var t={},r=0;r<e.length;r++){var a=e[r],n=a.decorators,i=a.key;if(delete a.key,delete a.decorators,a.enumerable=!0,a.configurable=!0,("value"in a||a.initializer)&&(a.writable=!0),n)for(var o=0;o<n.length;o++){var s=n[o];if("function"!=typeof s)throw new TypeError("The decorator for method "+a.key+" is of the invalid type "+typeof s);a=s(t,i,a)||a}a.initializer&&(a.value=a.initializer.call(t)),Object.defineProperty(t,i,a)}return t}var a=e["default"],n=e.observes,i=Em.Object.extend(r([{key:"location",decorators:[a("name")],value:function(e){return"group."+e}},{key:"message",decorators:[a("name")],value:function(e){return I18n.t("groups."+e)}}]));t["default"]=Ember.Controller.extend(r([{key:"counts",initializer:function(){return null}},{key:"showing",initializer:function(){return"posts"}},{key:"countsChanged",decorators:[n("counts")],value:function(){var e=this.get("counts");this.get("tabs").forEach(function(t){t.set("count",e.get(t.get("name")))})}},{key:"showingChanged",decorators:[n("showing")],value:function(){var e=this.get("showing");this.get("tabs").forEach(function(t){t.set("active",e===t.get("name"))})}},{key:"tabs",initializer:function(){return[i.create({name:"posts",active:!0,location:"group.index"}),i.create({name:"topics"}),i.create({name:"mentions"}),i.create({name:"members"}),i.create({name:"messages"})]}}]))}),define("discourse/controllers/group/members",["discourse/lib/ajax-error","ember-addons/ember-computed-decorators","discourse/models/group","exports"],function(e,t,r,a){"use strict";function n(e){for(var t={},r=0;r<e.length;r++){var a=e[r],n=a.decorators,i=a.key;if(delete a.key,delete a.decorators,a.enumerable=!0,a.configurable=!0,("value"in a||a.initializer)&&(a.writable=!0),n)for(var o=0;o<n.length;o++){var s=n[o];if("function"!=typeof s)throw new TypeError("The decorator for method "+a.key+" is of the invalid type "+typeof s);a=s(t,i,a)||a}a.initializer&&(a.value=a.initializer.call(t)),Object.defineProperty(t,i,a)}return t}var i=e.popupAjaxError,o=t["default"],s=r["default"];a["default"]=Ember.Controller.extend(n([{key:"loading",initializer:function(){return!1}},{key:"limit",initializer:function(){return null}},{key:"offset",initializer:function(){return null}},{key:"isOwner",decorators:[o("model.owners.[]")],value:function(e){if(this.get("currentUser.admin"))return!0;var t=this.get("currentUser.id");return t?!!e.findBy("id",t):void 0}},{key:"actions",initializer:function(){return{removeMember:function(e){this.get("model").removeMember(e)},addMembers:function(){var e=this,t=this.get("usernames");t&&t.length>0&&this.get("model").addMembers(t).then(function(){return e.set("usernames",[])})["catch"](i)},loadMore:function(){var e=this;this.get("loading")||this.get("model.members.length")>=this.get("model.user_count")||(this.set("loading",!0),s.loadMembers(this.get("model.name"),this.get("model.members.length"),this.get("limit")).then(function(t){e.get("model.members").addObjects(t.members.map(function(e){return Discourse.User.create(e)})),e.s
|
|||
|
return!t||2>t?void e.set("model.user_option.mailing_list_mode",!0):void bootbox.confirm(I18n.t("user.enable_mailing_list",{count:t}),I18n.t("no_value"),I18n.t("yes_value"),function(t){t&&e.set("model.user_option.mailing_list_mode",!0)})})},save:function(){var e=this;this.set("saved",!1);var t=this.get("model"),r=this.get("userFields");return Ember.isEmpty(r)||!function(){var e=t.get("user_fields");Ember.isEmpty(e)||r.forEach(function(t){e[t.get("field.id").toString()]=t.get("value")})}(),t.set("name",this.get("newNameInput")),t.save().then(function(){Discourse.User.currentProp("id")===t.get("id")&&Discourse.User.currentProp("name",t.get("name")),t.set("bio_cooked",Discourse.Markdown.cook(Discourse.Markdown.sanitize(t.get("bio_raw")))),e.set("saved",!0)})["catch"](c)},changePassword:function(){var e=this;return this.get("passwordProgress")?void 0:(this.set("passwordProgress",I18n.t("user.change_password.in_progress")),this.get("model").changePassword().then(function(){e.setProperties({changePasswordProgress:!1,passwordProgress:I18n.t("user.change_password.success")})})["catch"](function(){e.setProperties({changePasswordProgress:!1,passwordProgress:I18n.t("user.change_password.error")})}))},"delete":function(){var e=this;this.set("deleting",!0);var t=this,r=I18n.t("user.delete_account_confirm"),a=this.get("model"),n=[{label:I18n.t("cancel"),"class":"cancel-inline",link:!0,callback:function(){e.set("deleting",!1)}},{label:'<i class="fa fa-exclamation-triangle"></i> '+I18n.t("user.delete_account"),"class":"btn btn-danger",callback:function(){a["delete"]().then(function(){bootbox.alert(I18n.t("user.deleted_yourself"),function(){window.location.pathname=Discourse.getURL("/")})},function(){bootbox.alert(I18n.t("user.delete_yourself_not_allowed")),t.set("deleting",!1)})}}];bootbox.dialog(r,n,{classes:"delete-account"})}}}}]))}),define("discourse/controllers/preferences/about",["exports"],function(e){"use strict";e["default"]=Ember.Controller.extend({saving:!1,newBio:null,saveButtonText:function(){return this.get("saving")?I18n.t("saving"):I18n.t("user.change")}.property("saving")})}),define("discourse/controllers/preferences/badge-title",["discourse/mixins/badge-select-controller","exports"],function(e,t){"use strict";var r=e["default"];t["default"]=Ember.ArrayController.extend(r,{filteredList:function(){return this.get("model").filterBy("badge.allow_title",!0)}.property("model"),actions:{save:function(){this.setProperties({saved:!1,saving:!0});var e=this;Discourse.ajax(this.get("user.path")+"/preferences/badge_title",{type:"PUT",data:{user_badge_id:e.get("selectedUserBadgeId")}}).then(function(){e.setProperties({saved:!0,saving:!1,"user.title":e.get("selectedUserBadge.badge.name")})},function(){bootbox.alert(I18n.t("generic_error"))})}}})}),define("discourse/controllers/preferences/card-badge",["discourse/mixins/badge-select-controller","exports"],function(e,t){"use strict";var r=e["default"];t["default"]=Ember.ArrayController.extend(r,{filteredList:function(){return this.get("model").filter(function(e){return!Ember.isEmpty(e.get("badge.image"))})}.property("model"),actions:{save:function(){this.setProperties({saved:!1,saving:!0});var e=this;Discourse.ajax(this.get("user.path")+"/preferences/card-badge",{type:"PUT",data:{user_badge_id:e.get("selectedUserBadgeId")}}).then(function(){e.setProperties({saved:!0,saving:!1,"user.card_image_badge":e.get("selectedUserBadge.badge.image")})})["catch"](function(){e.set("saving",!1),bootbox.alert(I18n.t("generic_error"))})}}})}),define("discourse/controllers/preferences/email",["discourse/lib/computed","exports"],function(e,t){"use strict";var r=e.propertyEqual;t["default"]=Ember.Controller.extend({taken:!1,saving:!1,error:!1,success:!1,newEmail:null,newEmailEmpty:Em.computed.empty("newEmail"),saveDisabled:Em.computed.or("saving","newEmailEmpty","taken","unchanged"),unchanged:r("newEmailLower","currentUser.email"),newEmailLower:function(){return this.get("newEmail").toLowerCase().trim()}.property("newEmail"),saveButtonText:function(){return this.get("saving")?I18n.t("saving"):I18n.t("user
|
|||
|
}},{key:"suggestedTitle",decorators:[b("model")],value:function(e){return e.get("isPrivateMessage")?"<i class='private-message-glyph fa fa-envelope'></i> "+I18n.t("suggested_topics.pm_title"):I18n.t("suggested_topics.title")}},{key:"username_filters",decorators:[b("model.postStream.streamFilters.username_filters")],initializer:function(){return{set:function(e){var t=this.get("model.postStream");if(t)return t.set("streamFilters.username_filters",e),t.get("streamFilters.username_filters")},get:function(){return this.get("postStream.streamFilters.username_filters")}}}},{key:"_clearSelected",initializer:function(){return function(){this.set("selectedPosts",[]),this.set("selectedReplies",[])}.on("init")}},{key:"showCategoryChooser",initializer:function(){return Ember.computed.not("model.isPrivateMessage")}},{key:"gotoInbox",value:function(e){var t="/users/"+this.get("currentUser.username_lower")+"/messages";e&&(t=t+"/group/"+e),y.routeTo(t)}},{key:"selectedQuery",initializer:function(){return function(){var e=this;return function(t){return e.postSelected(t)}}.property()}},{key:"canEditTags",decorators:[b("model.isPrivateMessage")],value:function(e){return!e&&this.site.get("can_tag_topics")}},{key:"actions",initializer:function(){return{fillGapBefore:function(e){return this.get("model.postStream").fillGapBefore(e.post,e.gap)},fillGapAfter:function(e){return this.get("model.postStream").fillGapAfter(e.post,e.gap)},topVisibleChanged:function(e){var t=e.post,r=e.refresh;if(t){var a=this.get("model.postStream"),n=a.get("posts.firstObject"),i=t.get("post_number");this.set("model.currentPost",i),this.send("postChangedRoute",i),1!==t.get("post_number")&&n&&n===t&&a.prependMore().then(function(){return r()})}},bottomVisibleChanged:function(e){var t=e.post,r=e.refresh,a=this.get("model.postStream"),n=a.get("posts.lastObject");this.set("controllers.topic-progress.progressPosition",a.progressIndexOfPost(t)),n&&n===t&&a.get("canAppendMore")&&(a.appendMore().then(function(){return r()}),r())},toggleSummary:function(){return this.get("model.postStream").toggleSummary()},removeAllowedUser:function(e){return this.get("model.details").removeAllowedUser(e)},showTopicAdminMenu:function(){this.set("adminMenuVisible",!0)},hideTopicAdminMenu:function(){this.set("adminMenuVisible",!1)},deleteTopic:function(){this.deleteTopic()},archiveMessage:function(){var e=this,t=this.get("model");t.archiveMessage().then(function(){e.gotoInbox(t.get("inboxGroupName"))})},moveToInbox:function(){var e=this,t=this.get("model");t.moveToInbox().then(function(){e.gotoInbox(t.get("inboxGroupName"))})},replyToPost:function(e){var t=this.get("controllers.composer"),r=this.get("controllers.quote-button"),a=v.build(r.get("post"),r.get("buffer")),n=e?e.get("topic"):this.get("model");if(r.set("buffer",""),t.get("content.topic.id")===n.get("id")&&t.get("content.action")===C.REPLY)t.set("content.post",e),t.set("content.composeState",C.OPEN),this.appEvents.trigger("composer:insert-text",a.trim());else{var i={action:C.REPLY,draftKey:n.get("draft_key"),draftSequence:n.get("draft_sequence")};a&&(i.quote=a),e&&1!==e.get("post_number")?i.post=e:i.topic=n,t.open(i)}return!1},recoverPost:function(e){return 1===e.get("post_number")?void this.recoverTopic():void e.recover()},deletePost:function(e){var t=this;if(1===e.get("post_number"))return this.deleteTopic();if(!e.can_delete)return!1;var r=Discourse.User.current(),a=e.get("reply_count"),n=this;return r.get("staff")&&a>0?void bootbox.dialog(I18n.t("post.controls.delete_replies.confirm",{count:a}),[{label:I18n.t("cancel"),"class":"btn-danger right"},{label:I18n.t("post.controls.delete_replies.no_value"),callback:function(){e.destroy(r)}},{label:I18n.t("post.controls.delete_replies.yes_value"),"class":"btn-primary",callback:function(){Discourse.Post.deleteMany([e],[e]),n.get("model.postStream.posts").forEach(function(t){(t===e||t.get("reply_to_post_number")===e.get("post_number"))&&t.setDeletedState(r)})}}]):e.destroy(r).then(function(){t.appEvents.trigger("post-stream:refresh")})["catch"](function(t){f(t),e.undoDeleteState()})},editPos
|
|||
|
decorators:[s("model.user_fields.@each.value")],value:function(){var e=this,t=this.site.get("user_fields");if(!Ember.isEmpty(t)){var r=function(){var r=e.get("model.user_fields");return{v:t.filterProperty("show_on_profile",!0).sortBy("position").map(function(e){e.dasherized_name=e.get("name").dasherize();var t=r?r[e.get("id").toString()]:null;return Ember.isEmpty(t)?null:Ember.Object.create({value:t,field:e})}).compact()}}();if("object"==typeof r)return r.v}}},{key:"actions",initializer:function(){return{expandProfile:function(){this.set("forceExpand",!0)},adminDelete:function(){var e=require("admin/models/admin-user")["default"];e.find(this.get("model.id")).then(function(e){return e.destroy({deletePosts:!0})})}}}}]))}),define("discourse/controllers/users",["discourse/lib/debounce","exports"],function(e,t){"use strict";var r=e["default"];t["default"]=Ember.Controller.extend({needs:["application"],queryParams:["period","order","asc","name"],period:"weekly",order:"likes_received",asc:null,name:"",showTimeRead:Ember.computed.equal("period","all"),_setName:r(function(){this.set("name",this.get("nameInput"))},500).observes("nameInput"),_showFooter:function(){this.set("controllers.application.showFooter",!this.get("model.canLoadMore"))}.observes("model.canLoadMore"),actions:{loadMore:function(){this.get("model").loadMore()}}})}),define("discourse/models/admin-post",["discourse/models/post","exports"],function(e,t){"use strict";var r=e["default"];t["default"]=r.extend({_attachCategory:function(){var e=this.get("category_id");e&&this.set("category",Discourse.Category.findById(e))}.on("init"),presentName:Em.computed.any("name","username"),sameUser:function(){return this.get("username")===Discourse.User.currentProp("username")}.property("username"),descriptionKey:function(){return this.get("reply_to_post_number")?this.get("sameUser")?"you_replied_to_post":"user_replied_to_post":this.get("sameUser")?"you_replied_to_topic":"user_replied_to_topic"}.property("reply_to_post_number","sameUser")})}),define("discourse/models/archetype",["discourse/lib/computed","discourse/models/rest","exports"],function(e,t,r){"use strict";var a=e.propertyEqual,n=t["default"];r["default"]=n.extend({hasOptions:Em.computed.gt("options.length",0),isDefault:a("id","site.default_archetype"),notDefault:Em.computed.not("isDefault")})}),define("discourse/models/category-list",["exports"],function(e){"use strict";var t=Ember.ArrayProxy.extend({init:function(){this.set("content",[]),this._super()}});t.reopenClass({categoriesFrom:function(e,r){var a=t.create(),n=Discourse.Model.extractByKey(r.featured_users,Discourse.User),i=Discourse.Category.list();return r.category_list.categories.forEach(function(t){t.parent_category_id&&(t.parentCategory=i.findBy("id",t.parent_category_id)),t.subcategory_ids&&(t.subcategories=t.subcategory_ids.map(function(e){return i.findBy("id",parseInt(e,10))})),t.featured_user_ids&&(t.featured_users=t.featured_user_ids.map(function(e){return n[e]})),t.topics&&(t.topics=t.topics.map(function(e){return Discourse.Topic.create(e)})),a.pushObject(e.createRecord("category",t))}),a},listForParent:function(e,r){var a=this;return Discourse.ajax("/categories.json?parent_category_id="+r.get("id")).then(function(n){return t.create({categories:a.categoriesFrom(e,n),parentCategory:r})})},list:function(e){var r=this,a=function(){return Discourse.ajax("/categories.json")};return PreloadStore.getAndRemove("categories_list",a).then(function(a){return t.create({categories:r.categoriesFrom(e,a),can_create_category:a.category_list.can_create_category,can_create_topic:a.category_list.can_create_topic,draft_key:a.category_list.draft_key,draft:a.category_list.draft,draft_sequence:a.category_list.draft_sequence})})}}),e["default"]=t}),function(){window.jQuery;Discourse.ComposerMessage=Em.Object.extend({}),Discourse.ComposerMessage.reopenClass({find:function(e){var t={composerAction:e.get("action")},r=e.get("topic.id"),a=e.get("post.id");return r&&(t.topic_id=r),a&&(t.post_id=a),Discourse.ajax("/composer-messages",{data:t}).then(function(e){return e.map(function(e
|
|||
|
},{key:"canBeDeleted",initializer:function(){return Em.computed.and("can_be_deleted","hasNotPosted")}},{key:"redirected_to_top",initializer:function(){return{reason:null}}},{key:"stream",decorators:[x()],value:function(){return f.create({user:this})}},{key:"postsStream",decorators:[x()],value:function(){return b.create({user:this})}},{key:"staff",initializer:function(){return Em.computed.or("admin","moderator")}},{key:"destroySession",value:function(){return Discourse.ajax("/session/"+this.get("username"),{type:"DELETE"})}},{key:"searchContext",decorators:[x("username_lower")],value:function(e){return{type:"user",id:e,user:this}}},{key:"displayName",decorators:[x("username","name")],value:function(e,t){return Discourse.SiteSettings.enable_names&&!Ember.isEmpty(t)?t:e}},{key:"profileBackground",decorators:[x("profile_background")],value:function(e){return!Em.isEmpty(e)&&Discourse.SiteSettings.allow_profile_backgrounds?("background-image: url("+Discourse.getURLWithCDN(e)+")").htmlSafe():void 0}},{key:"path",decorators:[x()],value:function(){return Discourse.getURL("/users/"+this.get("username_lower"))}},{key:"pmPath",value:function(e){var t=this.get("id"),r=this.get("username_lower"),a=e&&e.get("details"),n=a&&a.get("allowed_users"),i=a&&a.get("allowed_groups");return!i||n&&n.findBy("id",t)?Discourse.getURL("/users/"+r+"/messages"):i&&i[0]?Discourse.getURL("/users/"+r+"/messages/group/"+i[0].name):void 0}},{key:"adminPath",initializer:function(){return g("id","username_lower","/admin/users/%@1/%@2")}},{key:"mutedTopicsPath",initializer:function(){return g("/latest?state=muted")}},{key:"username_lower",decorators:[x("username")],value:function(e){return e.toLowerCase()}},{key:"trustLevel",decorators:[x("trust_level")],value:function(e){return Discourse.Site.currentProp("trustLevels").findProperty("id",parseInt(e,10))}},{key:"isBasic",initializer:function(){return Em.computed.equal("trust_level",0)}},{key:"isLeader",initializer:function(){return Em.computed.equal("trust_level",3)}},{key:"isElder",initializer:function(){return Em.computed.equal("trust_level",4)}},{key:"canManageTopic",initializer:function(){return Em.computed.or("staff","isElder")}},{key:"isSuspended",initializer:function(){return Em.computed.equal("suspended",!0)}},{key:"suspended",decorators:[x("suspended_till")],value:function(e){return e&&moment(e).isAfter()}},{key:"suspendedTillDate",decorators:[x("suspended_till")],value:function(e){return y(e)}},{key:"changeUsername",value:function(e){return Discourse.ajax("/users/"+this.get("username_lower")+"/preferences/username",{type:"PUT",data:{new_username:e}})}},{key:"changeEmail",value:function(e){return Discourse.ajax("/users/"+this.get("username_lower")+"/preferences/email",{type:"PUT",data:{email:e}})}},{key:"copy",value:function(){return Discourse.User.create(this.getProperties(Object.keys(this)))}},{key:"save",value:function(){var e=this,t=this.getProperties("bio_raw","website","location","name","locale","custom_fields","user_fields","muted_usernames","profile_background","card_background");return["email_always","mailing_list_mode","external_links_in_new_tab","email_digests","email_direct","email_in_reply_to","email_private_messages","email_previous_replies","dynamic_favicon","enable_quoting","disable_jump_reply","automatically_unpin_topics","digest_after_minutes","new_topic_duration_minutes","auto_track_topics_after_msecs","like_notification_frequency","include_tl0_in_digests"].forEach(function(r){t[r]=e.get("user_option."+r)}),["muted","watched","tracked"].forEach(function(r){var a=e.get(r+"Categories").map(function(e){return e.get("id")});0===a.length&&(a=[-1]),t[r+"_category_ids"]=a}),Discourse.SiteSettings.edit_history_visible_to_public||(t.edit_history_public=this.get("user_option.edit_history_public")),this.set("isSaving",!0),Discourse.ajax("/users/"+this.get("username_lower"),{data:t,type:"PUT"}).then(function(t){e.set("bio_excerpt",t.user.bio_excerpt);var r=Em.getProperties(e.get("user_option"),"enable_quoting","external_links_in_new_tab","dynamic_favicon");Discourse.User.current().setProperties
|
|||
|
a=s(t,i,a)||a}a.initializer&&(a.value=a.initializer.call(t)),Object.defineProperty(t,i,a)}return t}var s=e["default"],c=t["default"],d=t.on,l=r.linkSeenMentions,h=r.fetchUnseenMentions,u=a.linkSeenCategoryHashtags,p=a.fetchUnseenCategoryHashtags,m=n.fetchUnseenTagHashtags,g=n.linkSeenTagHashtags;i["default"]=Ember.Component.extend(o([{key:"classNames",initializer:function(){return["wmd-controls"]}},{key:"classNameBindings",initializer:function(){return["showToolbar:toolbar-visible",":wmd-controls","showPreview","showPreview::hide-preview"]}},{key:"uploadProgress",initializer:function(){return 0}},{key:"showPreview",initializer:function(){return!0}},{key:"_xhr",initializer:function(){return null}},{key:"uploadPlaceholder",decorators:[c],value:function(){return"["+I18n.t("uploading")+"]() "}},{key:"_setupPreview",decorators:[d("init")],value:function(){var e=this.site.mobileView?!1:this.keyValueStore.get("composer.showPreview")||"true";this.set("showPreview","true"===e)}},{key:"toggleText",decorators:[c("showPreview")],initializer:function(){return function(e){return e?I18n.t("composer.hide_preview"):I18n.t("composer.show_preview")}}},{key:"_renderUnseenTagHashtags",value:function(e,t){m(t).then(function(){g(e)})}},{key:"paintTagHashtags",decorators:[d("previewRefreshed")],value:function(e){if(this.siteSettings.tagging_enabled){var t=g(e);t.length&&Ember.run.debounce(this,this._renderUnseenTagHashtags,e,t,500)}}},{key:"markdownOptions",decorators:[c],value:function(){var e=this;return{lookupAvatarByPostNumber:function(t,r){var a=e.get("topic");if(a){var n=a.get("postStream.posts");if(n&&r===a.get("id")){var i=n.findProperty("post_number",t);if(i)return Discourse.Utilities.tinyAvatar(i.get("avatar_template"))}}}}}},{key:"_composerEditorInit",decorators:[d("didInsertElement")],value:function(){var e=this,t=this.get("topic.id"),r=this.container.lookup("template:user-selector-autocomplete.raw"),a=this.$(".d-editor-input");a.autocomplete({template:r,dataSource:function(e){return s({term:e,topicId:t,includeGroups:!0})},key:"@",transformComplete:function(e){return e.username||e.name}}),a.on("scroll",function(){return Ember.run.throttle(e,e._syncEditorAndPreviewScroll,20)}),this.get("composer.canEditTitle")||this.capabilities.isIOS||this.$(".d-editor-input").putCursorAtEnd(),this._bindUploadTarget(),this.appEvents.trigger("composer:opened")}},{key:"validation",decorators:[c("composer.reply","composer.replyLength","composer.missingReplyCharacters","composer.minimumPostLength","lastValidatedAt")],value:function(e,t,r,a,n){var i=this.get("composer.post.post_type");if(i!==this.site.get("post_types.small_action")){var o=void 0;if(1>t)o=I18n.t("composer.error.post_missing");else if(r>0){o=I18n.t("composer.error.post_length",{min:a});var s=Discourse.User.currentProp("trust_level");(0===s||1===s)&&(o+="<br/>"+I18n.t("composer.error.try_like"))}return o?Discourse.InputValidation.create({failed:!0,reason:o,lastShownAt:n}):void 0}}},{key:"_syncEditorAndPreviewScroll",value:function(){var e=this.$(".d-editor-input");if(e){var t=this.$(".d-editor-preview");if(0===e.scrollTop())return void t.scrollTop(0);var r=e[0].scrollHeight,a=t[0].scrollHeight;if(e.height()+e.scrollTop()+100>r)return void t.scrollTop(a);var n=e.scrollTop(),i=a/r,o=n*i;t.scrollTop(o+50)}}},{key:"_renderUnseenMentions",initializer:function(){return function(e,t){var r=this;h(e,t).then(function(){l(e,r.siteSettings),r._warnMentionedGroups(e)})}}},{key:"_renderUnseenCategoryHashtags",initializer:function(){return function(e,t){p(t).then(function(){u(e)})}}},{key:"_warnMentionedGroups",value:function(e){var t=this;Ember.run.scheduleOnce("afterRender",function(){t._warnedMentions=t._warnedMentions||[];var r=[];e.find(".mention-group.notify").each(function(e,a){var n=$(a),i=n.data("name");r.push(i),-1===t._warnedMentions.indexOf(i)&&(t._warnedMentions.push(i),t.sendAction("groupsMentioned",[{name:i,user_count:n.data("mentionable-user-count")}]))}),t._warnedMentions=r})}},{key:"_resetUpload",value:function(e){this._validUploads--,0===this._validUploads&&this.setProperties({uploadP
|
|||
|
var r=e.propertyEqual;t["default"]=Em.Component.extend({tagName:"li",classNameBindings:["active","tabClassName"],tabClassName:function(){return"edit-category-"+this.get("tab")}.property("tab"),active:r("selectedTab","tab"),title:function(){return I18n.t("category."+this.get("tab").replace("-","_"))}.property("tab"),_addToCollection:function(){this.get("panels").addObject(this.get("tabClassName"))}.on("didInsertElement"),actions:{select:function(){this.set("selectedTab",this.get("tab"))}}})}),define("discourse/components/edit-category-topic-template",["discourse/components/edit-category-panel","exports"],function(e,t){"use strict";var r=e.buildCategoryPanel;t["default"]=r("topic-template",{_activeTabChanged:function(){var e=this;this.get("activeTab")&&Ember.run.scheduleOnce("afterRender",function(){return e.$(".d-editor-input").focus()})}.observes("activeTab")})}),define("discourse/components/emoji-uploader",["discourse/mixins/upload","exports"],function(e,t){"use strict";var r=e["default"];t["default"]=Em.Component.extend(r,{type:"emoji",uploadUrl:"/admin/customize/emojis",hasName:Em.computed.notEmpty("name"),addDisabled:Em.computed.not("hasName"),data:function(){return Ember.isBlank(this.get("name"))?{}:{name:this.get("name")}}.property("name"),uploadDone:function(e){this.set("name",null),this.sendAction("done",e)}})}),define("discourse/components/featured-topic",["exports"],function(e){"use strict";e["default"]=Ember.Component.extend({classNameBindings:[":featured-topic"],click:function(e){var t=$(e.target);return t.closest(".last-posted-at").length?(this.sendAction("action",{topic:this.get("topic"),position:t.offset()}),!1):void 0}})}),define("discourse/components/flag-action-type",["discourse/models/post-action-type","ember-addons/ember-computed-decorators","exports"],function(e,t,r){"use strict";function a(e){for(var t={},r=0;r<e.length;r++){var a=e[r],n=a.decorators,i=a.key;if(delete a.key,delete a.decorators,a.enumerable=!0,a.configurable=!0,("value"in a||a.initializer)&&(a.writable=!0),n)for(var o=0;o<n.length;o++){var s=n[o];if("function"!=typeof s)throw new TypeError("The decorator for method "+a.key+" is of the invalid type "+typeof s);a=s(t,i,a)||a}a.initializer&&(a.value=a.initializer.call(t)),Object.defineProperty(t,i,a)}return t}var n=e.MAX_MESSAGE_LENGTH,i=t["default"];r["default"]=Ember.Component.extend(a([{key:"customPlaceholder",decorators:[i("flag.name_key")],value:function(e){return I18n.t("flagging.custom_placeholder_"+e)}},{key:"formattedName",decorators:[i("flag.name","flag.name_key","flag.is_custom_flag","username")],value:function(e,t,r,a){return r?e.replace("{{username}}",a):I18n.t("flagging.formatted_name."+t)}},{key:"selected",decorators:[i("flag","selectedFlag")],value:function(e,t){return e===t}},{key:"showMessageInput",initializer:function(){return Em.computed.and("flag.is_custom_flag","selected")}},{key:"showDescription",initializer:function(){return Em.computed.not("showMessageInput")}},{key:"isNotifyUser",initializer:function(){return Em.computed.equal("flag.name_key","notify_user")}},{key:"customMessageLengthClasses",decorators:[i("message.length")],value:function(e){return e<Discourse.SiteSettings.min_private_message_post_length?"too-short":"ok"}},{key:"customMessageLength",decorators:[i("message.length")],value:function(e){var t=e||0,r=Discourse.SiteSettings.min_private_message_post_length;return 0===t?I18n.t("flagging.custom_message.at_least",{n:r}):r>t?I18n.t("flagging.custom_message.more",{n:r-t}):I18n.t("flagging.custom_message.left",{n:n-t})}},{key:"actions",initializer:function(){return{changePostActionType:function(e){this.sendAction("changePostActionType",e)}}}}]))}),define("discourse/components/global-notice",["ember-addons/ember-computed-decorators","discourse/mixins/string-buffer","discourse/helpers/fa-icon","discourse/services/logs-notice","exports"],function(e,t,r,a,n){"use strict";function i(e){for(var t={},r=0;r<e.length;r++){var a=e[r],n=a.decorators,i=a.key;if(delete a.key,delete a.decorators,a.enumerable=!0,a.configurable=!0,("value"in a||a.initializer)&&(a.writabl
|
|||
|
return Ember.run.debounce(e,e._scrollTriggered,10)};this._previouslyNearby={},this.appEvents.on("post-stream:refresh",t),$(document).bind("touchmove.post-stream",t),$(window).bind("scroll.post-stream",t),this._scrollTriggered(),this.appEvents.on("post-stream:posted",function(t){var r=e.currentUser.get("disable_jump_reply");e.queueRerender(function(){if(t&&!r){var e=t.get("post_number");s.jumpToPost(e,{skipIfOnScreen:!0})}})}),this.$().on("mouseenter.post-stream","button.widget-button",function(e){$("button.widget-button").removeClass("d-hover"),$(e.target).addClass("d-hover")}),this.$().on("mouseleave.post-stream","button.widget-button",function(){$("button.widget-button").removeClass("d-hover")}),this.appEvents.on("post-stream:refresh",function(t){t&&(t.id?(c("post-"+t.id),t.refreshLikes&&c("post-menu-"+t.id,{onRefresh:"refreshLikes"})):t.force&&c("*")),e.queueRerender()})},willDestroyElement:function(){this._super(),$(document).unbind("touchmove.post-stream"),$(window).unbind("scroll.post-stream"),this.appEvents.off("post-stream:refresh"),this.$().off("mouseenter.post-stream"),this.$().off("mouseleave.post-stream"),this.appEvents.off("post-stream:refresh"),this.appEvents.off("post-stream:posted")}})}),define("discourse/components/search-text-field",["ember-addons/ember-computed-decorators","discourse/components/text-field","exports"],function(e,t,r){"use strict";function a(e){for(var t={},r=0;r<e.length;r++){var a=e[r],n=a.decorators,i=a.key;if(delete a.key,delete a.decorators,a.enumerable=!0,a.configurable=!0,("value"in a||a.initializer)&&(a.writable=!0),n)for(var o=0;o<n.length;o++){var s=n[o];if("function"!=typeof s)throw new TypeError("The decorator for method "+a.key+" is of the invalid type "+typeof s);a=s(t,i,a)||a}a.initializer&&(a.value=a.initializer.call(t)),Object.defineProperty(t,i,a)}return t}var n=e["default"],i=e.on,o=t["default"];r["default"]=o.extend(a([{key:"placeholder",decorators:[n("searchService.searchContextEnabled")],value:function(e){return e?"":I18n.t("search.title")}},{key:"becomeFocused",decorators:[i("didInsertElement")],value:function(){this.get("hasAutofocus")&&($(window).scrollTop(0),this.$().focus())}}]))}),define("discourse/components/share-source",["exports"],function(e){"use strict";e["default"]=Ember.Component.extend({classNameBindings:[":social-link"],actions:{share:function(e){this.sendAction("action",e)}}})}),define("discourse/components/show-popup-button",["discourse/components/d-button","exports"],function(e,t){"use strict";var r=e["default"];t["default"]=r.extend({click:function(){var e=this.$(),t=e.position(),r=e.innerWidth(),a={position:this.get("position")||"fixed",left:t.left+r,top:t.top};this.appEvents.trigger("popup-menu:open",a),this.sendAction("action")}})}),define("discourse/components/signup-cta",["exports"],function(e){"use strict";e["default"]=Ember.Component.extend({action:"showCreateAccount",actions:{neverShow:function(){this.keyValueStore.setItem("anon-cta-never","t"),this.session.set("showSignupCta",!1)},hideForSession:function(){var e=this;this.session.set("hideSignupCta",!0),this.keyValueStore.setItem("anon-cta-hidden",(new Date).getTime()),Em.run.later(function(){return e.session.set("showSignupCta",!1)},2e4)},showCreateAccount:function(){this.sendAction()}},_turnOffIfHidden:function(){this.session.get("hideSignupCta")&&this.session.set("showSignupCta",!1)}.on("willDestroyElement")})}),define("discourse/components/small-action",["discourse/lib/formatter","exports"],function(e,t){"use strict";function r(e,t,r){var a=new Date(t),i=n(a,{format:"medium-with-ago"}),o=r?'<a class="mention" href="/users/'+r+'">@'+r+"</a>":"";return I18n.t("action_codes."+e,{who:o,when:i}).htmlSafe()}function a(e,t,a){return function(){var n=this.get(e);return n?r(n,this.get(t),this.get(a)):void 0}.property(e,t)}t.actionDescriptionHtml=r,t.actionDescription=a;var n=e.autoUpdatingRelativeAge;t["default"]=Ember.Component.extend({layoutName:"components/small-action",classNames:["small-action"],description:a("actionCode","post.created_at","post.action_code_who"),actions:{edit:function(
|
|||
|
},renderIcon:function(e){e.push(n("flag"))}})}),define("discourse/views/full-page-search",["exports"],function(e){"use strict";e["default"]=Ember.View.extend()}),define("discourse/views/hide-modal",["exports"],function(e){"use strict";e["default"]=Em.View.extend({render:Em.K,_hideModal:function(){$("#discourse-modal").modal("hide")}.on("didInsertElement")})}),define("discourse/views/history",["discourse/views/modal-body","discourse/lib/click-track","exports"],function(e,t,r){"use strict";var a=e["default"],n=t["default"];r["default"]=a.extend({templateName:"modal/history",title:I18n.t("history"),resizeModal:function(){var e=$(window).height();this.$(".modal-body").css("max-height",Math.floor(.8*e)+"px")}.on("didInsertElement"),_inserted:function(){this.$().on("mouseup.discourse-redirect","#revisions a",function(e){var t=window.getSelection&&window.getSelection();if(("Range"===t.type||t.rangeCount>0)&&""!==Discourse.Utilities.selectedText())return!0;var r=$(e.target);return r.hasClass("mention")||r.parents(".expanded-embed").length?!1:n.trackClick(e)})}.on("didInsertElement"),_destroyed:function(){this.$().off("mouseup.discourse-redirect","#revisions a")}.on("willDestroyElement")})}),define("discourse/views/invite-reply-button",["discourse/views/button","discourse/helpers/fa-icon","exports"],function(e,t,r){"use strict";var a=e["default"],n=t.iconHTML;r["default"]=a.extend({textKey:"topic.invite_reply.title",helpKey:"topic.invite_reply.help",attributeBindings:["disabled"],disabled:Em.computed.or("controller.model.archived","controller.model.closed","controller.model.deleted"),renderIcon:function(e){e.push(n("users"))},click:function(){this.get("controller").send("showInvite")}})}),define("discourse/views/invite",["discourse/views/modal-body","exports"],function(e,t){"use strict";var r=e["default"];t["default"]=r.extend({templateName:"modal/invite",title:function(){return this.get("controller.isMessage")?I18n.t("topic.invite_private.title"):this.get("controller.invitingToTopic")?I18n.t("topic.invite_reply.title"):I18n.t("user.invited.create")}.property("controller.{invitingToTopic,isMessage}"),inviteLinkChanged:function(){Ember.isEmpty(this.get("controller.model.inviteLink"))||Em.run.next(function(){$(".invite-link-input").select().focus()})}.observes("controller.model.inviteLink")})}),define("discourse/views/list/post-count-or-badges",["exports"],function(e){"use strict";e["default"]=Ember.Object.extend({postCountsPresent:Ember.computed.or("topic.unread","topic.displayNewPosts"),showBadges:Ember.computed.and("postBadgesEnabled","postCountsPresent")})}),define("discourse/views/list/posts-count-column",["discourse/lib/computed","exports"],function(e,t){"use strict";var r=e.fmt;t["default"]=Ember.Object.extend({tagName:"td",ratio:function(){var e=parseFloat(this.get("topic.like_count")),t=parseFloat(this.get("topic.posts_count"));return 10>t?0:(e||0)/t}.property(),title:function(){return I18n.messageFormat("posts_likes_MF",{count:this.get("topic.replyCount"),ratio:this.get("ratioText")}).trim()}.property(),ratioText:function(){var e=this.get("ratio"),t=Discourse.SiteSettings;return e>t.topic_post_like_heat_high?"high":e>t.topic_post_like_heat_medium?"med":e>t.topic_post_like_heat_low?"low":""}.property(),likesHeat:r("ratioText","heatmap-%@")})}),define("discourse/views/loading",["discourse/helpers/loading-spinner","exports"],function(e,t){"use strict";var r=e.spinnerHTML;t["default"]=Ember.View.extend({render:function(e){e.push(r)}})}),define("discourse/views/login-reply-button",["discourse/views/button","exports"],function(e,t){"use strict";var r=e["default"];t["default"]=r.extend({textKey:"topic.reply.title",classNames:["btn","btn-primary","create"],click:function(){this.get("controller").send("showLogin")},renderIcon:function(e){e.push("<i class='fa fa-reply'></i>")}})}),define("discourse/views/login",["discourse/views/modal-body","exports"],function(e,t){"use strict";var r=e["default"];t["default"]=r.extend({templateName:"modal/login",title:I18n.t("login.title"),classNames:["login-modal"],mouseMove:function(e){this.set(
|
|||
|
r("raw-date",function(e){return a(new Date(e))}),r("age-with-tooltip",function(e){return new o(n(new Date(e),{title:!0}))}),r("number",function(e,t){e=parseInt(e,10),isNaN(e)&&(e=0);var r=e;t.numberKey&&(r=I18n.t(t.numberKey,{number:e}));var a="number";t["class"]&&(a+=" "+t["class"]);var n="<span class='"+a+"'",s=i(e);return s!==r&&(n+=" title='"+Handlebars.Utils.escapeExpression(r)+"'"),n+=">"+s+"</span>",new o(n)})}),define("discourse/helpers/as-hash",["exports"],function(e){"use strict";function t(e){var t={};return Object.keys(e.hash).forEach(function(r){t[r]=e.data.view.getStream(e.hash[r]).value()}),t}e["default"]=t}),define("discourse/helpers/border-color",["discourse/lib/helpers","exports"],function(e,t){"use strict";var r=e.htmlHelper;t["default"]=r(function(e){return"border-color: #"+e})}),define("discourse/helpers/bound-avatar-template",["discourse/lib/helpers","exports"],function(e,t){"use strict";var r=e.htmlHelper;t["default"]=r(function(e,t){return Discourse.Utilities.avatarImg({size:t,avatarTemplate:e})})}),define("discourse/helpers/bound-avatar",["discourse/lib/helpers","exports"],function(e,t){"use strict";var r=e.htmlHelper;t["default"]=r(function(e,t){if(Ember.isEmpty(e))return"<div class='avatar-placeholder'></div>";var r=Em.get(e,"avatar_template");return Discourse.Utilities.avatarImg({size:t,avatarTemplate:r})})}),define("discourse/helpers/bound-category-link",["discourse/lib/helpers","discourse/helpers/category-link","exports"],function(e,t,r){"use strict";var a=e.htmlHelper,n=t.categoryLinkHTML;r["default"]=a(n)}),define("discourse/helpers/bound-date",["discourse/lib/formatter","discourse/lib/helpers","exports"],function(e,t,r){"use strict";var a=e.autoUpdatingRelativeAge,n=t.htmlHelper;r["default"]=n(function(e){return a(new Date(e),{format:"medium",title:!0})})}),define("discourse/helpers/capitalize-string",["discourse/lib/helpers","exports"],function(e,t){"use strict";var r=e.htmlHelper;t["default"]=r(function(e){return e[0].toUpperCase()+e.slice(1)})}),define("discourse/helpers/category-badge",["discourse/helpers/category-link","discourse/lib/helpers"],function(e,t){"use strict";var r=e.categoryLinkHTML,a=t.registerUnbound;a("category-badge",function(e,t){return t.link=!1,r(e,t)})}),define("discourse/helpers/cook-text",["discourse/lib/helpers"],function(e){"use strict";var t=e.registerUnbound;t("cook-text",function(e){return new Handlebars.SafeString(Discourse.Markdown.cook(e,{sanitize:!0}))})}),define("discourse/helpers/custom-html",["discourse/lib/helpers","exports"],function(e,t){"use strict";function r(e){var t=i[e];if(t)return new Handlebars.SafeString(t);var r=PreloadStore.get("customHTML");return r&&r[e]&&r[e].length?new Handlebars.SafeString(r[e]):void 0}function a(e,t){i[e]=t}t.getCustomHTML=r,t.setCustomHTML=a;var n=e.registerHelper,i={};n("custom-html",function(e,t,a,n){var i=e[0],o=r(i);if(o)return o;var s=e[1],c=n||s,d=c.container||c.data.view.container;return d.lookup("template:"+i)?n.helpers.partial.helperFunction.apply(this,arguments):void 0})}),define("discourse/helpers/dash-if-empty",["discourse/lib/helpers","exports"],function(e,t){"use strict";var r=e.htmlHelper;t["default"]=r(function(e){return Ember.isEmpty(e)?"—":e})}),define("discourse/helpers/discouse-tag",["discourse/lib/helpers","discourse/lib/render-tag","exports"],function(e,t,r){"use strict";var a=e.registerUnbound,n=t["default"];r["default"]=a("discourse-tag",function(e,t){return new Handlebars.SafeString(n(e,t))})}),define("discourse/helpers/format-age",["discourse/lib/formatter","discourse/lib/helpers"],function(e,t){"use strict";var r=e.autoUpdatingRelativeAge,a=t.registerUnbound;a("format-age",function(e){return e=new Date(e),new Handlebars.SafeString(r(e))})}),define("discourse/helpers/format-date",["discourse/lib/helpers","discourse/lib/formatter"],function(e,t){"use strict";var r=e.registerUnbound,a=t.autoUpdatingRelativeAge;r("format-date",function(e,t){var r,n="medium",i=!0;if(t.leaveAgo&&(r="true"===t.leaveAgo),t.format&&(n=t.format),t.noTitle&&(i=!1),e){var o=new Date(e);return new Handlebars.S
|
|||
|
n}}}()),Ember.TEMPLATES.application=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.inline;a.detectNamespace(r);var o;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(o=this.build(a),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=a.cloneNode(this.cachedFragment,!0))):o=this.build(a);var s=a.createMorphAt(o,1,1,r);return i(t,s,e,"custom-html",["top"],{}),o}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.inline;a.detectNamespace(r);var o;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(o=this.build(a),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=a.cloneNode(this.cachedFragment,!0))):o=this.build(a);var s=a.createMorphAt(o,1,1,r);return i(t,s,e,"custom-html",["footer"],{}),o}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n\n");e.appendChild(t,r);var r=e.createElement("div");e.setAttribute(r,"id","main-outlet"),e.setAttribute(r,"class","wrap");var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement("div");e.setAttribute(a,"class","container");var n=e.createTextNode("\n");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode(" ");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a=e.createTextNode("\n");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n\n");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n\n");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(r,a,n){var i=a.dom,o=a.hooks,s=o.get,c=o.inline,d=o.block,l=o.content;i.detectNamespace(n);var h;a.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(h=this.build(i),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=i.cloneNode(this.cachedFragment,!0))):h=this.build(i);var u=i.childAt(h,[2]),p=i.childAt(u,[1]),m=i.createMorphAt(h,0,0,n),g=i.createMorphAt(p,1,1),v=i.createMorphAt(p,3,3),f=i.createMorphAt(p,5,5),b=i.createMorphAt(u,3,3),C=i.createMorphAt(u,5,5),y=i.createMorphAt(h,4,4,n),x=i.createMorphAt(h,6,6,n),T=i.createMorphAt(h,7,7,n),_=i.createMorphAt(h,9,9,n),F=i.createMorphAt(h,11,11,n),N=i.createMorphAt(h,13,13,n);return i.insertBoundary(h,0),c(a,m,r,"site-header",[],{canSignUp:s(a,r,"canSignUp"),showCreateAccount:"showCreateAccount",showLogin:"showLogin",showKeyboard:"showKeyboardShortcutsHelp",toggleMobileView:"toggleMobileView",toggleAnonymous:"toggleAnonymous",logout:"logout",showSearchHelp:"showSearchHelp"}),d(a,g,r,"if",[s(a,r,"
|
|||
|
a.detectNamespace(r);var o;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(o=this.build(a),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=a.cloneNode(this.cachedFragment,!0))):o=this.build(a);var s=a.createMorphAt(a.childAt(o,[1]),0,0);return i(t,s,e,"fa-icon",["check"],{}),o}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createComment("");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createElement("div");e.setAttribute(r,"class","badge-contents");var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement("div"),n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement("div");e.setAttribute(a,"class","badge-info");var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createElement("div");e.setAttribute(n,"class","badge-info-item");var i=e.createTextNode("\n ");e.appendChild(n,i);var i=e.createElement("h3"),o=e.createComment("");e.appendChild(i,o),e.appendChild(n,i);var i=e.createTextNode("\n ");e.appendChild(n,i);var i=e.createElement("div");e.setAttribute(i,"class","badge-summary");var o=e.createComment("");e.appendChild(i,o),e.appendChild(n,i);var i=e.createTextNode("\n ");e.appendChild(n,i),e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode("\n");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(r,a,n){var i=a.dom,o=a.hooks,s=o.get,c=o.block,d=o.concat,l=o.attribute,h=o.inline,u=o.content;i.detectNamespace(n);var p;a.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(p=this.build(i),this.hasRendered?this.cachedFragment=p:this.hasRendered=!0),this.cachedFragment&&(p=i.cloneNode(this.cachedFragment,!0))):p=this.build(i);var m=i.childAt(p,[2]),g=i.childAt(m,[1]),v=i.childAt(m,[3,1]),f=i.createMorphAt(p,0,0,n),b=i.createMorphAt(p,1,1,n),C=i.createMorphAt(g,1,1),y=i.createAttrMorph(g,"class"),x=i.createMorphAt(i.childAt(v,[1]),0,0),T=i.createUnsafeMorphAt(i.childAt(v,[3]),0,0);return i.insertBoundary(p,0),c(a,f,r,"if",[s(a,r,"displayCount")],{},e,null),c(a,b,r,"if",[s(a,r,"badge.has_badge")],{},t,null),l(a,y,g,"class",d(a,["badge-icon ",s(a,r,"badge.badgeTypeClassName")])),h(a,C,r,"icon-or-image",[s(a,r,"badge.icon")],{}),u(a,x,r,"badge.name"),u(a,T,r,"summary"),p}}}()),Ember.TEMPLATES["components/basic-topic-list"]=Ember.HTMLBars.template(function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.get,o=n.inline;a.detectNamespace(r);var s;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(s=this.build(a),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=a.cloneNode(this.cachedFragment,!0))):s=this.build(a);var c=a.createMorphAt(s,1,1,r);return o(t,c,e,"topic-list",[],{showParticipants:i(t,e,"showParticipants"),showPosters:i(t,e,"showPosters"),hideCategory:i(t,e,"hideCategory"),topics:i(t,e,"topics"),expandExcerpts:i(t,e,"expandExcerpts"),bulkSelectEnabled:i(t,e,"bulkSelectEnabled"),canBulkSelect:i(t,e,"canBulkSelect"),selected:i(t,e,"selected")}),s}}}(),t=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("div");e.setAttribute(r,"class","alert alert-info");var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a
|
|||
|
i.detectNamespace(n);var l;a.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(l=this.build(i),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=i.cloneNode(this.cachedFragment,!0))):l=this.build(i);var h=i.createMorphAt(i.childAt(l,[0]),0,0),u=i.createMorphAt(l,2,2,n),p=i.createMorphAt(l,4,4,n);return i.insertBoundary(l,null),s(a,h,r,"i18n",["choose_topic.title.search"],{}),s(a,u,r,"text-field",[],{value:c(a,r,"topicTitle"),placeholderKey:"choose_topic.title.placeholder",id:"choose-topic-title"}),d(a,p,r,"if",[c(a,r,"loading")],{},e,t),l}}}()),Ember.TEMPLATES["components/color-input"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.get,o=n.inline;a.detectNamespace(r);var s;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(s=this.build(a),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=a.cloneNode(this.cachedFragment,!0))):s=this.build(a);var c=a.createMorphAt(s,0,0,r);return a.insertBoundary(s,0),o(t,c,e,"text-field",[],{"class":"hex-input",value:i(t,e,"hexValue"),maxlength:"6"}),s}}}()),Ember.TEMPLATES["components/composer-editor"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("input");e.setAttribute(r,"type","file"),e.setAttribute(r,"id","mobile-uploader"),e.setAttribute(r,"multiple",""),e.appendChild(t,r);var r=e.createTextNode("\n ");e.appendChild(t,r);var r=e.createElement("a"),a=e.createComment("");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.get,o=n.subexpr,s=n.concat,c=n.attribute,d=n.inline;a.detectNamespace(r);var l;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(l=this.build(a),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=a.cloneNode(this.cachedFragment,!0))):l=this.build(a);var h=a.childAt(l,[3]),u=a.createMorphAt(h,0,0),p=a.createAttrMorph(h,"class");return c(t,p,h,"class",s(t,["mobile-file-upload ",o(t,e,"if",[i(t,e,"isUploading"),"hidden"],{})])),d(t,u,e,"i18n",["upload"],{}),l}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("a");e.setAttribute(r,"href",""),e.setAttribute(r,"class","toggle-preview");var a=e.createComment("");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.element,o=n.content;a.detectNamespace(r);var s;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(s=this.build(a),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=a.cloneNode(this.cachedFragment,!0))):s=this.build(a);var c=a.childAt(s,[1]),d=a.createUnsafeMorphAt(c,0,0);return i(t,c,e,"action",["togglePreview"],{}),o(t,d,e,"toggleText"),s}}}(),r=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("a");e.setAttribute(r,"href",""),e.setAttribute(r,"id","cancel-file-upload");var a=e.createComment("");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.element,o=n.inline;a.detectNamespace(r);var s;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(s=this.build(a),this.hasRendered?this.cachedFragment=s:
|
|||
|
var r=e.createTextNode("\n\n");e.appendChild(t,r);var r=e.createComment("");return e.appendChild(t,r),t},render:function(t,r,a){var n=r.dom,i=r.hooks,o=i.get,s=i.inline,c=i.block;n.detectNamespace(a);var d;r.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(d=this.build(n),this.hasRendered?this.cachedFragment=d:this.hasRendered=!0),this.cachedFragment&&(d=n.cloneNode(this.cachedFragment,!0))):d=this.build(n);var l=n.createMorphAt(d,0,0,a),h=n.createMorphAt(d,2,2,a);return n.insertBoundary(d,null),n.insertBoundary(d,0),s(r,l,t,"fa-icon",[o(r,t,"icon")],{modifier:"stack-2x"}),c(r,h,t,"if",[o(r,t,"disabled")],{},e,null),d}}}()),Ember.TEMPLATES["components/discourse-banner"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("p"),a=e.createElement("a"),n=e.createComment("");e.appendChild(a,n),e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.get,o=n.concat,s=n.attribute,c=n.inline;a.detectNamespace(r);var d;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(d=this.build(a),this.hasRendered?this.cachedFragment=d:this.hasRendered=!0),this.cachedFragment&&(d=a.cloneNode(this.cachedFragment,!0))):d=this.build(a);var l=a.childAt(d,[1,0]),h=a.createUnsafeMorphAt(l,0,0),u=a.createAttrMorph(l,"href");return s(t,u,l,"href",o(t,[i(t,e,"banner.url")])),c(t,h,e,"i18n",["banner.edit"],{}),d}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createElement("div");e.setAttribute(r,"class","row");var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement("div");e.setAttribute(a,"id","banner");var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createElement("div");e.setAttribute(n,"id","banner-content");var i=e.createTextNode("\n ");e.appendChild(n,i);var i=e.createElement("div");e.setAttribute(i,"class","close");var o=e.createElement("i");e.setAttribute(o,"class","fa fa-times"),e.appendChild(i,o),e.appendChild(n,i);var i=e.createTextNode("\n ");e.appendChild(n,i);var i=e.createComment("");e.appendChild(n,i);var i=e.createTextNode("\n");e.appendChild(n,i);var i=e.createComment("");e.appendChild(n,i);var i=e.createTextNode(" ");e.appendChild(n,i),e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode("\n");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(t,r,a){var n=r.dom,i=r.hooks,o=i.get,s=i.attribute,c=i.element,d=i.subexpr,l=i.concat,h=i.content,u=i.block;n.detectNamespace(a);var p;r.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(p=this.build(n),this.hasRendered?this.cachedFragment=p:this.hasRendered=!0),this.cachedFragment&&(p=n.cloneNode(this.cachedFragment,!0))):p=this.build(n);var m=n.childAt(p,[0,1]),g=n.childAt(m,[1]),v=n.childAt(g,[1]),f=n.childAt(v,[0]),b=n.createAttrMorph(m,"class"),C=n.createAttrMorph(f,"title"),y=n.createUnsafeMorphAt(g,3,3),x=n.createMorphAt(g,5,5);return s(r,b,m,"class",o(r,t,"overlay")),c(r,v,t,"action",["dismiss"],{}),s(r,C,f,"title",l(r,[d(r,t,"i18n",["banner.close"],{})])),h(r,y,t,"banner.html"),u(r,x,t,"if",[o(r,t,"currentUser.staff")],{},e,null),p}}}()),Ember.TEMPLATES["components/discourse-tag-bound"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createComment("");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.content;a.detectNamespace(r);var o;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(o=this.build(a),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=a.cloneNode(this.cachedFragment,!0))):o=this
|
|||
|
var o;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(o=this.build(a),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=a.cloneNode(this.cachedFragment,!0))):o=this.build(a);var s=a.childAt(o,[1]),c=a.createMorphAt(s,1,1),d=a.createMorphAt(a.childAt(s,[3]),0,0);return i(t,c,e,"i18n",["category.email_in_disabled"],{}),i(t,d,e,"i18n",["category.email_in_disabled_click"],{}),o}}}(),a=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("section");e.setAttribute(r,"class","field");var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement("a");e.setAttribute(a,"href","/admin/site_settings/category/basic");var n=e.createComment("");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.inline;a.detectNamespace(r);var o;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(o=this.build(a),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=a.cloneNode(this.cachedFragment,!0))):o=this.build(a);var s=a.childAt(o,[1]),c=a.createMorphAt(s,1,1),d=a.createMorphAt(a.childAt(s,[3]),0,0);return i(t,c,e,"i18n",["category.position_disabled"],{}),i(t,d,e,"i18n",["category.position_disabled_click"],{}),o}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createElement("section");e.setAttribute(r,"class","field");var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a=e.createTextNode("\n");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n\n");e.appendChild(t,r);var r=e.createElement("section");e.setAttribute(r,"class","field");var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement("label"),n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode("\n");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n\n");e.appendChild(t,r);var r=e.createElement("section");e.setAttribute(r,"class","field");var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement("label"),n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode("\n");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n\n");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(n,i,o){var s=i.dom,c=i.hooks,d=c.get,l=c.inline,h=c.block;s.detectNamespace(o);var u;i.useFragmentCache&&s.canClone?(null===this.cachedFragment&&(u=this.build(s),this.hasRendered?this.cachedFragment=u:this.hasRendered=!0),this.cachedFragment&&(u=s.cloneNode(this.cachedFragment,!0))):u=this.build(s);var p=s.childAt(u,[2,1]),m=s.childAt(u,[4,1]),g=s.createMorphAt(s.childAt(u,[0]),1,1),v=s.createMorphAt(p,1,1),f=s.createMorphAt(p,3,3),b=s.createMorphAt(m,1,1),C=s.createMorphAt(m,3,3),y=s.createMorphA
|
|||
|
e.setAttribute(i,"style","visibility: hidden; position: absolute;"),e.appendChild(n,i);var i=e.createTextNode("\n ");e.appendChild(n,i),e.appendChild(a,n);var n=e.createTextNode("\n");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode(" ");e.appendChild(a,n);var n=e.createElement("span"),i=e.createComment("");e.appendChild(n,i);var i=e.createTextNode(" ");e.appendChild(n,i);var i=e.createComment("");e.appendChild(n,i);var i=e.createTextNode("%");e.appendChild(n,i),e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode("\n");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(t,r,a){var n=r.dom,i=r.hooks,o=i.get,s=i.attribute,c=i.subexpr,d=i.concat,l=i.inline,h=i.block,u=i.content;n.detectNamespace(a);var p;r.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(p=this.build(n),this.hasRendered?this.cachedFragment=p:this.hasRendered=!0),this.cachedFragment&&(p=n.cloneNode(this.cachedFragment,!0))):p=this.build(n);var m=n.childAt(p,[0]),g=n.childAt(m,[1]),v=n.childAt(g,[1]),f=n.childAt(v,[3]),b=n.childAt(g,[5]),C=n.createAttrMorph(m,"style"),y=n.createMorphAt(v,1,1),x=n.createAttrMorph(v,"class"),T=n.createAttrMorph(f,"disabled"),_=n.createMorphAt(g,3,3),F=n.createMorphAt(b,0,0),N=n.createMorphAt(b,2,2),k=n.createAttrMorph(b,"class");return s(r,C,m,"style",o(r,t,"backgroundStyle")),s(r,x,v,"class",d(r,["btn pad-left no-text ",c(r,t,"if",[o(r,t,"uploading"),"disabled"],{})])),l(r,y,t,"fa-icon",["picture-o"],{}),s(r,T,f,"disabled",o(r,t,"uploading")),h(r,_,t,"if",[o(r,t,"backgroundStyle")],{},e,null),s(r,k,b,"class",d(r,["btn ",c(r,t,"unless",[o(r,t,"uploading"),"hidden"],{})])),l(r,F,t,"i18n",["upload_selector.uploading"],{}),u(r,N,t,"uploadProgress"),p}}}()),Ember.TEMPLATES["components/ip-lookup"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("button");e.setAttribute(r,"class","btn");var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.element,o=n.inline;a.detectNamespace(r);var s;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(s=this.build(a),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=a.cloneNode(this.cachedFragment,!0))):s=this.build(a);var c=a.childAt(s,[1]),d=a.createMorphAt(c,1,1),l=a.createMorphAt(c,2,2);return i(t,c,e,"action",["lookup"],{}),o(t,d,e,"fa-icon",["globe"],{}),o(t,l,e,"i18n",["admin.user.ip_lookup"],{}),s}}}(),t=function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("dt"),a=e.createComment("");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n ");e.appendChild(t,r);var r=e.createElement("dd"),a=e.createComment("");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.inline,o=n.content;a.detectNamespace(r);var s;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(s=this.build(a),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=a.cloneNode(this.cachedFragment,!0))):s=this.build(a);var c=a.createMorphAt(a.childAt(s,[1]),0,0),d=a.createMorphAt(a.childAt(s,[3]),0,0);return i(t,c,e,"i18n",["ip_lookup.hostname"],{}),o(t,d,e,"location.hostname"),s}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:
|
|||
|
var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("a");e.setAttribute(r,"data-auto-route","true");var a=e.createComment("");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.get,o=n.subexpr,s=n.concat,c=n.attribute,d=n.inline;a.detectNamespace(r);var l;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(l=this.build(a),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=a.cloneNode(this.cachedFragment,!0))):l=this.build(a);var h=a.childAt(l,[1]),u=a.createMorphAt(h,0,0),p=a.createAttrMorph(h,"href");return c(t,p,h,"href",s(t,[o(t,e,"unbound",[i(t,e,"fullPath")],{})])),d(t,u,e,"i18n",[i(t,e,"label")],{}),l}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("a");e.setAttribute(r,"data-auto-route","true");var a=e.createComment("");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.get,o=n.subexpr,s=n.concat,c=n.attribute,d=n.inline;a.detectNamespace(r);var l;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(l=this.build(a),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=a.cloneNode(this.cachedFragment,!0))):l=this.build(a);var h=a.childAt(l,[1]),u=a.createMorphAt(h,0,0),p=a.createAttrMorph(h,"href");return c(t,p,h,"href",s(t,[o(t,e,"unbound",[i(t,e,"href")],{})])),d(t,u,e,"i18n",[i(t,e,"label")],{}),l}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createComment("");return e.appendChild(t,r),t},render:function(r,a,n){var i=a.dom,o=a.hooks,s=o.get,c=o.block;i.detectNamespace(n);var d;a.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(d=this.build(i),this.hasRendered?this.cachedFragment=d:this.hasRendered=!0),this.cachedFragment&&(d=i.cloneNode(this.cachedFragment,!0))):d=this.build(i);var l=i.createMorphAt(d,0,0,n);return i.insertBoundary(d,null),i.insertBoundary(d,0),c(a,l,r,"if",[s(a,r,"path")],{},e,t),d}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createComment("");return e.appendChild(t,r),t},render:function(r,a,n){var i=a.dom,o=a.hooks,s=o.get,c=o.block;i.detectNamespace(n);var d;a.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(d=this.build(i),this.hasRendered?this.cachedFragment=d:this.hasRendered=!0),this.cachedFragment&&(d=i.cloneNode(this.cachedFragment,!0))):d=this.build(i);var l=i.createMorphAt(d,0,0,n);return i.insertBoundary(d,null),i.insertBoundary(d,0),c(a,l,r,"if",[s(a,r,"route")],{},e,t),d}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createComment("");return e.appendChild(t,r),t},render:function(r,a,n){var i=a.dom,o=a.hooks,s=o.get,c=o.block;i.detectNamespace(n);var d;a.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(d=this.build(i),this.hasRendered?this.cachedFragment=d:this.hasRendered=!0),this.cachedFragment&&(d=i.cloneNode(this.cachedFragment,!0))):d=this.build(i);var l=i.createMorphAt(d,0,0,n);return i.insertBoundary(d,null),i.insertBoundary(d,0),c(a,l,r,"if",[s(a,r,"routeParam")],{},e,t),d}}}()),Ember.TEMPLATES["components/navigation-bar"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:1,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r,a){var n=t.dom,i=t.hooks,o=i.set,s=i.get,c=i.inline
|
|||
|
e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(r,a,n){var i=a.dom,o=a.hooks,s=o.get,c=o.block,d=o.attribute,l=o.inline;i.detectNamespace(n);var h;a.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(h=this.build(i),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=i.cloneNode(this.cachedFragment,!0))):h=this.build(i);var u=i.childAt(h,[3]),p=i.createMorphAt(h,0,0,n),m=i.createMorphAt(h,1,1,n),g=i.createMorphAt(u,1,1),v=i.createAttrMorph(u,"href"),f=i.createAttrMorph(u,"data-user-card");return i.insertBoundary(h,0),c(a,p,r,"if",[s(a,r,"post.can_delete")],{},e,null),c(a,m,r,"if",[s(a,r,"post.can_edit")],{},t,null),d(a,v,u,"href",s(a,r,"post.usernameUrl")),d(a,f,u,"data-user-card",s(a,r,"post.username")),l(a,g,r,"avatar",[s(a,r,"post")],{imageSize:"small"}),h}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createElement("div");e.setAttribute(r,"class","small-action-desc");var a=e.createTextNode("\n");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(t,r,a){var n=r.dom,i=r.hooks,o=i.get,s=i.block;n.detectNamespace(a);var c;r.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(c=this.build(n),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=n.cloneNode(this.cachedFragment,!0))):c=this.build(n);var d=n.createMorphAt(n.childAt(c,[0]),1,1);return s(r,d,t,"if",[o(r,t,"post")],{},e,null),c}}}()),Ember.TEMPLATES["components/stream-item"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("p");e.setAttribute(r,"class","excerpt");var a=e.createComment("");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.content;a.detectNamespace(r);var o;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(o=this.build(a),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=a.cloneNode(this.cachedFragment,!0))):o=this.build(a);var s=a.createMorphAt(a.childAt(o,[1]),0,0);return i(t,s,e,"actionDescription"),o}}}(),t=function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("button");e.setAttribute(r,"class","btn btn-default remove-bookmark");var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a=e.createTextNode(" ");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.get,o=n.element,s=n.inline;a.detectNamespace(r);var c;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(c=this.build(a),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=a.cloneNode(this.cachedFragment,!0))):c=this.build(a);var d=a.childAt(c,[1]),l=a.createMorphAt(d,1,1),h=a.createMorphAt(d,3,3);return o(t,d,e,"action",["removeBookmark",i(t,e,"grandChild")],{}),s(t,l,e,"fa-icon",["times"],{}),s(t,h,e,"i18n",["bookmarks.remove"],{}),c}}}(),t=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" — ");e.appendChild(t,r);var r=e.createElement("span");e.setAttribute(r,"class","edit-reason");var a=e.createComment("");return e.appendChild(r,a),e.appendChild(t,r),t},render:
|
|||
|
hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createComment("");return e.appendChild(t,r),t},render:function(t,r,a){var n=r.dom,i=r.hooks,o=i.get,s=i.block;n.detectNamespace(a);var c;r.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(c=this.build(n),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=n.cloneNode(this.cachedFragment,!0))):c=this.build(n);var d=n.createMorphAt(c,0,0,a);return n.insertBoundary(c,null),n.insertBoundary(c,0),s(r,d,t,"if",[o(r,t,"showGrantCount")],{},e,null),c}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createElement("a"),a=e.createTextNode("\n");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(t,r,a){var n=r.dom,i=r.hooks,o=i.get,s=i.concat,c=i.attribute,d=i.block;n.detectNamespace(a);var l;r.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(l=this.build(n),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=n.cloneNode(this.cachedFragment,!0))):l=this.build(n);var h=n.childAt(l,[0]),u=n.createMorphAt(h,1,1),p=n.createAttrMorph(h,"href");return c(r,p,h,"href",s(r,[o(r,t,"badgeUrl")])),d(r,u,t,"badge-button",[],{badge:o(r,t,"badge")},e,null),l}}}()),Ember.TEMPLATES["components/user-fields/confirm"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createElement("div");e.setAttribute(r,"class","controls");var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement("label"),n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode(" ");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode("\n");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.get,o=n.inline,s=n.content;a.detectNamespace(r);var c;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(c=this.build(a),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=a.cloneNode(this.cachedFragment,!0))):c=this.build(a);var d=a.childAt(c,[0,1]),l=a.createMorphAt(d,0,0),h=a.createUnsafeMorphAt(d,2,2);return o(t,l,e,"input",[],{checked:i(t,e,"value"),type:"checkbox"}),s(t,h,e,"field.description"),c}}}()),Ember.TEMPLATES["components/user-fields/dropdown"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createElement("span");e.setAttribute(r,"class","required");var a=e.createTextNode("*");return e.appendChild(r,a),e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom;a.detectNamespace(r);var n;return t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(n=this.build(a),this.hasRendered?this.cachedFragment=n:this.hasRendered=!0),this.cachedFragment&&(n=a.cloneNode(this.cachedFragment,!0))):n=this.build(a),n}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createElement("label"),a=e.createComment("");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");e.appendChild(t,r);var r=e.createElement("div");e.setAttribute(r,"class","controls");var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement("p"),n=e.createComment("");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode("\n");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(t,r,a){var n=r.dom,i=r.hooks,o
|
|||
|
var m=s.childAt(p,[1]),g=s.childAt(m,[1]),v=s.childAt(g,[3]),f=s.createMorphAt(g,1,1),b=s.createUnsafeMorphAt(v,1,1),C=s.createMorphAt(v,3,3),y=s.createMorphAt(v,5,5),x=s.createMorphAt(g,5,5),T=s.createMorphAt(g,7,7),_=s.createMorphAt(m,3,3),F=s.createMorphAt(m,5,5);return d(i,f,n,"plugin-outlet",["composer-open"],{}),l(i,b,n,"model.actionTitle"),u(i,C,n,"unless",[h(i,n,"site.mobileView")],{},e,null),u(i,y,n,"if",[h(i,n,"canEdit")],{},t,null),u(i,x,n,"if",[h(i,n,"model.canEditTitle")],{},r,null),d(i,T,n,"plugin-outlet",["composer-fields"],{}),d(i,_,n,"composer-editor",[],{topic:h(i,n,"topic"),composer:h(i,n,"model"),lastValidatedAt:h(i,n,"lastValidatedAt"),canWhisper:h(i,n,"canWhisper"),draftStatus:h(i,n,"model.draftStatus"),isUploading:h(i,n,"isUploading"),groupsMentioned:"groupsMentioned",importQuote:"importQuote",showOptions:"showOptions",showToolbar:h(i,n,"showToolbar"),showUploadSelector:"showUploadSelector"}),u(i,F,n,"if",[h(i,n,"currentUser")],{},a,null),p}}}(),a=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("a");e.setAttribute(r,"class","permalink");var a=e.createComment("");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.inline,o=n.get,s=n.subexpr,c=n.concat,d=n.attribute,l=n.element;a.detectNamespace(r);var h;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(h=this.build(a),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=a.cloneNode(this.cachedFragment,!0))):h=this.build(a);var u=a.childAt(h,[3]),p=a.createMorphAt(h,1,1,r),m=a.createMorphAt(u,0,0),g=a.createAttrMorph(u,"href");return i(t,p,e,"i18n",["composer.saved"],{}),d(t,g,u,"href",c(t,[s(t,e,"unbound",[o(t,e,"createdPost.url")],{})])),l(t,u,e,"action",["viewNewReply"],{}),i(t,m,e,"i18n",["composer.view_new_post"],{}),h}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.inline;a.detectNamespace(r);var o;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(o=this.build(a),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=a.cloneNode(this.cachedFragment,!0))):o=this.build(a);var s=a.createMorphAt(o,1,1,r),c=a.createMorphAt(o,3,3,r);return i(t,s,e,"i18n",["composer.saving"],{}),i(t,c,e,"loading-spinner",[],{size:"small"}),o}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("div");e.setAttribute(r,"class","row");var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement("div");e.setAttribute(a,"class","span24");var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createElement("div");e.setAttribute(n,"class","saving-text");var i=e.createTextNode("\n");e.appendChild(n,i);var i=e.createComment("");e.appendChild(n,i);var i=e.createTextNode(" ");e.appendChild(n,i),e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createElement("div");e.setAttribute(n,"class","draft-text");var i=e.createTextNode("\n ");e.appendChild(n,i);var i=e.createComment("");e.appendChild(n,i);var i=e.createTextNode("\n ");e.appendChild(n,i),e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNod
|
|||
|
this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=a.cloneNode(this.cachedFragment,!0))):s=this.build(a);var c=a.createMorphAt(a.childAt(s,[1]),1,1);return o(t,c,e,"period-chooser",[],{period:i(t,e,"period"),action:"changePeriod"}),s}}}(),t=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("div"),a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement("div");e.setAttribute(a,"class","alert alert-info clickable");var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.get,o=n.subexpr,s=n.concat,c=n.attribute,d=n.element,l=n.inline;a.detectNamespace(r);var h;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(h=this.build(a),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=a.cloneNode(this.cachedFragment,!0))):h=this.build(a);var u=a.childAt(h,[1]),p=a.childAt(u,[1]),m=a.createAttrMorph(u,"class"),g=a.createMorphAt(p,1,1),v=a.createMorphAt(p,3,3);return c(t,m,u,"class",s(t,["show-more ",o(t,e,"if",[i(t,e,"hasTopics"),"has-topics"],{})])),d(t,p,e,"action",["showInserted"],{}),l(t,g,e,"count-i18n",[],{key:"topic_count_",suffix:i(t,e,"topicTrackingState.filter"),count:i(t,e,"topicTrackingState.incomingCount")}),l(t,v,e,"i18n",["click_to_show"],{}),h}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createComment("");return e.appendChild(t,r),t},render:function(t,r,a){var n=r.dom,i=r.hooks,o=i.get,s=i.block;n.detectNamespace(a);var c;r.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(c=this.build(n),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=n.cloneNode(this.cachedFragment,!0))):c=this.build(n);var d=n.createMorphAt(c,0,0,a);return n.insertBoundary(c,null),n.insertBoundary(c,0),s(r,d,t,"if",[o(r,t,"topicTrackingState.hasIncoming")],{},e,null),c}}}(),r=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.get,o=n.inline;a.detectNamespace(r);var s;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(s=this.build(a),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=a.cloneNode(this.cachedFragment,!0))):s=this.build(a);var c=a.createMorphAt(s,1,1,r);return o(t,c,e,"topic-list",[],{showTopicPostBadges:i(t,e,"showTopicPostBadges"),showPosters:!0,currentUser:i(t,e,"currentUser"),canBulkSelect:i(t,e,"canBulkSelect"),changeSort:"changeSort",toggleBulkSelect:"toggleBulkSelect",hideCategory:i(t,e,"model.hideCategory"),order:i(t,e,"order"),ascending:i(t,e,"ascending"),bulkSelectEnabled:i(t,e,"bulkSelectEnabled"),selected:i(t,e,"selected"),expandGloballyPinned:i(t,e,"expandGloballyPinned"),expandAllPinned:i(t,e,"expandAllPinned"),topics:i(t,e,"model.topics")}),s}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");e.appendChild(t,r);var r=e.createComment("");return e.appendChild(t,r),t},render:function(a,n,i){var o=n.dom,s=n.hooks,c=s.get,d=s.block;o.detectNamespace(i);var l;n.useFragmentCache&&o.canClone?
|
|||
|
this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=a.cloneNode(this.cachedFragment,!0))):s=this.build(a);var c=a.childAt(s,[1]),d=a.childAt(c,[1]),l=a.childAt(c,[3]),h=a.createMorphAt(d,0,0),u=a.createMorphAt(l,0,0);return i(t,d,e,"action",["selectAll"],{}),o(t,h,e,"i18n",["search.select_all"],{}),i(t,l,e,"action",["clearAll"],{}),o(t,u,e,"i18n",["search.clear_all"],{}),s}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createComment("");return e.appendChild(t,r),t},render:function(t,r,a){var n=r.dom,i=r.hooks,o=i.get,s=i.block;n.detectNamespace(a);var c;r.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(c=this.build(n),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=n.cloneNode(this.cachedFragment,!0))):c=this.build(n);var d=n.createMorphAt(c,0,0,a);return n.insertBoundary(c,null),n.insertBoundary(c,0),s(r,d,t,"if",[o(r,t,"bulkSelectEnabled")],{},e,null),c}}}(),a=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createElement("div");e.setAttribute(r,"class","fps-search-context");var a=e.createTextNode("\n");e.appendChild(r,a);var a=e.createElement("label"),n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode(" ");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode("\n");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode("\n");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.get,o=n.inline,s=n.content;a.detectNamespace(r);var c;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(c=this.build(a),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=a.cloneNode(this.cachedFragment,!0))):c=this.build(a);var d=a.childAt(c,[0,1]),l=a.createMorphAt(d,1,1),h=a.createMorphAt(d,3,3);return o(t,l,e,"input",[],{type:"checkbox",name:"searchContext",checked:i(t,e,"searchContextEnabled")}),s(t,h,e,"searchContextDescription"),c}}}(),n=function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.inline;a.detectNamespace(r);var o;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(o=this.build(a),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=a.cloneNode(this.cachedFragment,!0))):o=this.build(a);var s=a.createMorphAt(o,1,1,r);return i(t,s,e,"i18n",["search.no_results"],{}),o}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("h3"),a=e.createTextNode("\n");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a=e.createTextNode(" ");e.appendChild(r,a);var a=e.createElement("a");e.setAttribute(a,"href",""),e.setAttribute(a,"class","show-help");var n=e.createComment("");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(t,r,a){var n=r.dom,i=r.hooks,o=i.get,s=i.block,c=i.element,d=i.inline;n.detectNamespace(a);var l;r.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(l=this.build(n),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=n.cloneNode(this.cachedFragment,!0))):l=this.build(n);var h=n.childAt(l,[1]),u=n.childAt(h,[3]),p=n.createMorphAt(h,1,1),m=n.createMorphAt(u,0,0);return s(r,p,t,"if"
|
|||
|
this.hasRendered?this.cachedFragment=d:this.hasRendered=!0),this.cachedFragment&&(d=i.cloneNode(this.cachedFragment,!0))):d=this.build(i);var l=i.createMorphAt(d,0,0,n);return i.insertBoundary(d,null),i.insertBoundary(d,0),c(a,l,r,"if",[s(a,r,"model")],{},e,t),d}}}()),Ember.TEMPLATES["group-selector-autocomplete.raw"]=Discourse.EmberCompatHandlebars.template({1:function(e,t,r,a,n){return" <li><a href>"+e.escapeExpression(r.get.call(null!=t?t:{},"option.name",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:n}))+"</a></li>\n"},compiler:[7,">= 4.0.0"],main:function(e,t,r,a,n){var i;return"<div class='autocomplete'>\n <ul>\n"+(null!=(i=r.each.call(null!=t?t:{},"option","in","options",{name:"each",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,n,0),inverse:e.noop,types:["PathExpression","CommentStatement","PathExpression"],contexts:[t,t,t],data:n}))?i:"")+" </ul>\n</div>\n"},useData:!0}),Ember.TEMPLATES.group=Ember.HTMLBars.template(function(){var e=function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createElement("span");e.setAttribute(r,"class","count");var a=e.createTextNode("(");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a=e.createTextNode(")");return e.appendChild(r,a),e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.content;a.detectNamespace(r);var o;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(o=this.build(a),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=a.cloneNode(this.cachedFragment,!0))):o=this.build(a);var s=a.createMorphAt(a.childAt(o,[0]),1,1);return i(t,s,e,"tab.count"),o}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(t,r,a){var n=r.dom,i=r.hooks,o=i.content,s=i.get,c=i.block;n.detectNamespace(a);var d;r.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(d=this.build(n),this.hasRendered?this.cachedFragment=d:this.hasRendered=!0),this.cachedFragment&&(d=n.cloneNode(this.cachedFragment,!0))):d=this.build(n);var l=n.createMorphAt(d,1,1,a),h=n.createMorphAt(d,3,3,a);return o(r,l,t,"tab.message"),c(r,h,t,"if",[s(r,t,"tab.count")],{},e,null),d}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:1,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("li"),a=e.createTextNode("\n");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a=e.createTextNode(" ");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(t,r,a,n){var i=r.dom,o=r.hooks,s=o.set,c=o.get,d=o.subexpr,l=o.concat,h=o.attribute,u=o.block;i.detectNamespace(a);var p;r.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(p=this.build(i),this.hasRendered?this.cachedFragment=p:this.hasRendered=!0),this.cachedFragment&&(p=i.cloneNode(this.cachedFragment,!0))):p=this.build(i);var m=i.childAt(p,[1]),g=i.createMorphAt(m,1,1),v=i.createAttrMorph(m,"class");return s(r,t,"tab",n[0]),h(r,v,m,"class",l(r,[d(r,t,"if",[c(r,t,"tab.active"),"active"],{})])),u(r,g,t,"link-to",[c(r,t,"tab.location"),c(r,t,"model")],{title:c(r,t,"tab.message")},e,null),p}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createElement("div");e.setAttribute(r,"class","container user-table");var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement("div");e.setAttribute(a,"class","wrapper");var n=e.createTe
|
|||
|
return o(t,e,"p",a[0]),l(t,g,p,"href",d(t,[c(t,e,"unbound",[s(t,e,"p.user.path")],{})])),l(t,v,p,"class",d(t,[c(t,e,"unbound",[s(t,e,"p.extras")],{})])),h(t,m,e,"avatar",[s(t,e,"p")],{usernamePath:"user.username",imageSize:"small"}),u}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("div");e.setAttribute(r,"class","participants");var a=e.createTextNode("\n");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a=e.createTextNode(" ");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(t,r,a){var n=r.dom,i=r.hooks,o=i.get,s=i.block;n.detectNamespace(a);var c;r.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(c=this.build(n),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=n.cloneNode(this.cachedFragment,!0))):c=this.build(n);var d=n.createMorphAt(n.childAt(c,[1]),1,1);return s(r,d,t,"each",[o(r,t,"participants")],{},e,null),c}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:1,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("tr"),a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement("td"),n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createElement("div");e.setAttribute(n,"class","main-link");var i=e.createTextNode("\n ");e.appendChild(n,i);var i=e.createComment("");e.appendChild(n,i);var i=e.createTextNode("\n ");e.appendChild(n,i);var i=e.createComment("");e.appendChild(n,i);var i=e.createTextNode("\n");e.appendChild(n,i);var i=e.createComment("");e.appendChild(n,i);var i=e.createComment("");e.appendChild(n,i);var i=e.createTextNode(" ");e.appendChild(n,i),e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createElement("div");e.setAttribute(n,"class","pull-right");var i=e.createTextNode("\n ");e.appendChild(n,i);var i=e.createComment("");e.appendChild(n,i);var i=e.createTextNode("\n ");e.appendChild(n,i),e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createElement("div");e.setAttribute(n,"class","clearfix"),e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createElement("div");e.setAttribute(n,"class","topic-item-stats clearfix");var i=e.createTextNode("\n ");e.appendChild(n,i);var i=e.createElement("div");e.setAttribute(i,"class","pull-right");var o=e.createTextNode("\n ");e.appendChild(i,o);var o=e.createComment("");e.appendChild(i,o);var o=e.createTextNode("\n ");e.appendChild(i,o);var o=e.createElement("a"),s=e.createComment("");e.appendChild(o,s),e.appendChild(i,o);var o=e.createTextNode("\n ");e.appendChild(i,o),e.appendChild(n,i);var i=e.createTextNode("\n");e.appendChild(n,i);var i=e.createComment("");e.appendChild(n,i);var i=e.createComment("");e.appendChild(n,i);var i=e.createTextNode(" ");e.appendChild(n,i);var i=e.createElement("div");e.setAttribute(i,"class","clearfix"),e.appendChild(n,i);var i=e.createTextNode("\n ");e.appendChild(n,i),e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(n,i,o,s){var c=i.dom,d=i.hooks,l=d.set,h=d.get,u=d.subexpr,p=d.concat,m=d.attribute,g=d.inline,v=d.block,f=d.content;c.detectNamespace(o);var b;i.useFragmentCache&&c.canClone?(null===this.cachedFragment&&(b=this.build(c),this.hasRendered?this.cachedFragment=b:this.hasRendered=!0),this.cachedFragment&&(b=c.cloneNode(this.cachedFragment,!0))):b=this.build(c);var C=c.childAt(b,[1]),y=c.childAt(C,[1]),x=c.childAt(y,[1])
|
|||
|
var c;r.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(c=this.build(n),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=n.cloneNode(this.cachedFragment,!0))):c=this.build(n);var d=n.createMorphAt(c,0,0,a);return n.insertBoundary(c,null),n.insertBoundary(c,0),s(r,d,t,"each",[o(r,t,"model.categories")],{},e,null),c}}}()),Ember.TEMPLATES["mobile/discovery/topics"]=Ember.HTMLBars.template(function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("div");e.setAttribute(r,"class","top-lists");var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.get,o=n.inline;a.detectNamespace(r);var s;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(s=this.build(a),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=a.cloneNode(this.cachedFragment,!0))):s=this.build(a);var c=a.createMorphAt(a.childAt(s,[1]),1,1);return o(t,c,e,"period-chooser",[],{period:i(t,e,"period"),action:"changePeriod"}),s}}}(),t=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("div");e.setAttribute(r,"class","alert alert-info");var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.element,o=n.get,s=n.inline;a.detectNamespace(r);var c;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(c=this.build(a),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=a.cloneNode(this.cachedFragment,!0))):c=this.build(a);var d=a.childAt(c,[1]),l=a.createMorphAt(d,1,1),h=a.createMorphAt(d,3,3);return i(t,d,e,"action",["showInserted"],{}),s(t,l,e,"count-i18n",[],{key:"topic_count_",suffix:o(t,e,"topicTrackingState.filter"),count:o(t,e,"topicTrackingState.incomingCount")}),s(t,h,e,"i18n",["click_to_show"],{}),c}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createComment("");return e.appendChild(t,r),t},render:function(t,r,a){var n=r.dom,i=r.hooks,o=i.get,s=i.block;n.detectNamespace(a);var c;r.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(c=this.build(n),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=n.cloneNode(this.cachedFragment,!0))):c=this.build(n);var d=n.createMorphAt(c,0,0,a);return n.insertBoundary(c,null),n.insertBoundary(c,0),s(r,d,t,"if",[o(r,t,"topicTrackingState.hasIncoming")],{},e,null),c}}}(),r=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.get,o=n.inline;a.detectNamespace(r);var s;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(s=this.build(a),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=a.cloneNode(this.cachedFragment,!0))):s=this.build(a);var c=a.createMorphAt(s,1,1,r);return o(t,c,e,"topic-list",[],{showPosters:!0,currentUser:i(t,e,"currentUser"),hideCategory:i(t,e,"model.hideCategory"),topics:i(t,e,"model
|
|||
|
var e=function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:1,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r,a){var n=t.dom,i=t.hooks,o=i.set,s=i.get,c=i.inline;n.detectNamespace(r);var d;t.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(d=this.build(n),this.hasRendered?this.cachedFragment=d:this.hasRendered=!0),this.cachedFragment&&(d=n.cloneNode(this.cachedFragment,!0))):d=this.build(n);var l=n.createMorphAt(d,1,1,r);return o(t,e,"item",a[0]),c(t,l,e,"directory-item",[],{tagName:"div","class":"user",item:s(t,e,"item"),showTimeRead:s(t,e,"showTimeRead")}),d}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("div");e.setAttribute(r,"class","total-rows");var a=e.createComment("");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(t,r,a){var n=r.dom,i=r.hooks,o=i.get,s=i.inline,c=i.block;n.detectNamespace(a);var d;r.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(d=this.build(n),this.hasRendered?this.cachedFragment=d:this.hasRendered=!0),this.cachedFragment&&(d=n.cloneNode(this.cachedFragment,!0))):d=this.build(n);var l=n.createMorphAt(n.childAt(d,[1]),0,0),h=n.createMorphAt(d,3,3,a),u=n.createMorphAt(d,5,5,a);return s(r,l,t,"i18n",["directory.total_rows"],{count:o(r,t,"model.totalRows")}),c(r,h,t,"each",[o(r,t,"model")],{},e,null),s(r,u,t,"conditional-loading-spinner",[],{condition:o(r,t,"model.loadingMore")}),d}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("div");e.setAttribute(r,"class","clearfix"),e.appendChild(t,r);var r=e.createTextNode("\n ");e.appendChild(t,r);var r=e.createElement("p"),a=e.createComment("");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.inline;a.detectNamespace(r);var o;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(o=this.build(a),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=a.cloneNode(this.cachedFragment,!0))):o=this.build(a);var s=a.createMorphAt(a.childAt(o,[3]),0,0);return i(t,s,e,"i18n",["directory.no_results"],{}),o}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createComment("");return e.appendChild(t,r),t},render:function(r,a,n){var i=a.dom,o=a.hooks,s=o.get,c=o.block;i.detectNamespace(n);var d;a.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(d=this.build(i),this.hasRendered?this.cachedFragment=d:this.hasRendered=!0),this.cachedFragment&&(d=i.cloneNode(this.cachedFragment,!0))):d=this.build(i);var l=i.createMorphAt(d,0,0,n);return i.insertBoundary(d,null),i.insertBoundary(d,0),c(a,l,r,"if",[s(a,r,"model.length")],{},e,t),d}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createElement("div");e.setAttribute(r,"class","container");var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement("div");e.setAttribute(a,"class","directory");var n=e.createTextNode("\n\n ");e.appendChild(a,n);var n=e.createElement("div");e.setAttribute(n,"class","clearfix user-controls");var i=e.createTextNode("\n ");e.appendChild(n,i);
|
|||
|
e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n ");e.appendChild(t,r);var r=e.createElement("tr");e.setAttribute(r,"class","instructions");var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement("td");e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement("td"),n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createElement("label"),i=e.createComment("");e.appendChild(n,i),e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createElement("div"),i=e.createElement("i");e.setAttribute(i,"class","fa fa-exclamation-triangle"),e.appendChild(n,i);var i=e.createTextNode(" ");e.appendChild(n,i);var i=e.createComment("");e.appendChild(n,i),e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.inline,o=n.get,s=n.content,c=n.subexpr,d=n.concat,l=n.attribute;a.detectNamespace(r);var h;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(h=this.build(a),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=a.cloneNode(this.cachedFragment,!0))):h=this.build(a);var u=a.childAt(h,[1]),p=a.childAt(u,[3]),m=a.childAt(h,[3,3]),g=a.childAt(m,[3]),v=a.createMorphAt(a.childAt(u,[1,0]),0,0),f=a.createMorphAt(p,1,1),b=a.createMorphAt(p,3,3),C=a.createMorphAt(a.childAt(m,[1]),0,0),y=a.createAttrMorph(g,"class"),x=a.createMorphAt(g,2,2);return i(t,v,e,"i18n",["user.password.title"],{}),i(t,f,e,"password-field",[],{value:o(t,e,"accountPassword"),type:"password",id:"new-account-password",capsLockOn:o(t,e,"capsLockOn")}),i(t,b,e,"input-tip",[],{validation:o(t,e,"passwordValidation")}),s(t,C,e,"passwordInstructions"),l(t,y,g,"class",d(t,["caps-lock-warning ",c(t,e,"unless",[o(t,e,"capsLockOn"),"invisible"],{})])),i(t,x,e,"i18n",["login.caps_lock_warning"],{}),h}}}(),a=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:1,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r,a){var n=t.dom,i=t.hooks,o=i.set,s=i.get,c=i.inline;n.detectNamespace(r);var d;t.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(d=this.build(n),this.hasRendered?this.cachedFragment=d:this.hasRendered=!0),this.cachedFragment&&(d=n.cloneNode(this.cachedFragment,!0))):d=this.build(n);var l=n.createMorphAt(d,1,1,r);return o(t,e,"f",a[0]),c(t,l,e,"user-field",[],{field:s(t,e,"f.field"),value:s(t,e,"f.value")}),d}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("div");e.setAttribute(r,"class","user-fields");var a=e.createTextNode("\n");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a=e.createTextNode(" ");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(t,r,a){var n=r.dom,i=r.hooks,o=i.get,s=i.block;n.detectNamespace(a);var c;r.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(c=this.build(n),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=n.cloneNode(this.cachedFragment,!0))):c=this.build(n);var d=n.createMorphAt(n.childAt(c,[1]),1,1);return s(r,d,t,"each",[o(r,t,"userFields")],{},e,null),c}}}();return{isHTMLBars:!0,revision:"Emb
|
|||
|
build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.content;a.detectNamespace(r);var o;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(o=this.build(a),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=a.cloneNode(this.cachedFragment,!0))):o=this.build(a);var s=a.createUnsafeMorphAt(o,1,1,r);return i(t,s,e,"alreadyPinnedMessage"),o}}}(),t=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.get,o=n.inline;a.detectNamespace(r);var s;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(s=this.build(a),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=a.cloneNode(this.cachedFragment,!0))):s=this.build(a);var c=a.createUnsafeMorphAt(s,1,1,r);return o(t,c,e,"i18n",["topic.feature_topic.already_pinned_globally"],{count:i(t,e,"pinnedGloballyCount")}),s}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.inline;a.detectNamespace(r);var o;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(o=this.build(a),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=a.cloneNode(this.cachedFragment,!0))):o=this.build(a);var s=a.createUnsafeMorphAt(o,1,1,r);return i(t,s,e,"i18n",["topic.feature_topic.not_pinned_globally"],{}),o}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createComment("");return e.appendChild(t,r),t},render:function(r,a,n){var i=a.dom,o=a.hooks,s=o.get,c=o.block;i.detectNamespace(n);var d;a.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(d=this.build(i),this.hasRendered?this.cachedFragment=d:this.hasRendered=!0),this.cachedFragment&&(d=i.cloneNode(this.cachedFragment,!0))):d=this.build(i);var l=i.createMorphAt(d,0,0,n);return i.insertBoundary(d,null),i.insertBoundary(d,0),c(a,l,r,"if",[s(a,r,"pinnedGloballyCount")],{},e,t),d}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("div");e.setAttribute(r,"class","feature-section");var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement("div");e.setAttribute(a,"class","desc");var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createElement("p"),i=e.createTextNode("\n");e.appendChild(n,i);var i=e.createComment("");e.appendChild(n,i);var i=e.createTextNode(" ");e.appendChild(n,i),e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createElement("p"),i=e.createTextNode("\n ");e.appendChild(n,i);var i=e.createComment("");e.appendChild(n,i);var i=e.createTextNode("\n ");e.appendChild(n,i),e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createElement("p");e.setAttribute(n,"class","with-validation");var i=e.createTextNode("\n ");e.appendChild(n,i);var i=e.createComment("");e.appendChild(n,i);var i=e.createTextNode("\n ");e.appendChild(n,i);var i=e.createComment("");e.appendChild(n,i);var i=e.createTextNode("\n ");e.appendChild(n,i);var i=e.createComment("");e.appendChild(n,i);var i=e.createTextNod
|
|||
|
this.cachedFragment&&(s=a.cloneNode(this.cachedFragment,!0))):s=this.build(a);var c=a.createMorphAt(s,1,1,r);return o(t,c,e,"disabled-icon",[],{icon:"pencil-square-o",secondary:i(t,e,"wikiDisabled")}),s}}}(),r=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" — ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.get,o=n.inline;a.detectNamespace(r);var s;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(s=this.build(a),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=a.cloneNode(this.cachedFragment,!0))):s=this.build(a);var c=a.createMorphAt(s,1,1,r);return o(t,c,e,"disabled-icon",[],{icon:"shield",disabled:i(t,e,"postTypeDisabled")}),s}}}(),a=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" — ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode(" → ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.content;a.detectNamespace(r);var o;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(o=this.build(a),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=a.cloneNode(this.cachedFragment,!0))):o=this.build(a);var s=a.createUnsafeMorphAt(o,1,1,r),c=a.createUnsafeMorphAt(o,3,3,r);return i(t,s,e,"previousCategory"),i(t,c,e,"currentCategory"),o}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createComment("");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createComment("");return e.appendChild(t,r),t},render:function(n,i,o){var s=i.dom,c=i.hooks,d=c.get,l=c.block;s.detectNamespace(o);var h;i.useFragmentCache&&s.canClone?(null===this.cachedFragment&&(h=this.build(s),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=s.cloneNode(this.cachedFragment,!0))):h=this.build(s);var u=s.createMorphAt(h,0,0,o),p=s.createMorphAt(h,1,1,o),m=s.createMorphAt(h,2,2,o),g=s.createMorphAt(h,3,3,o);return s.insertBoundary(h,null),s.insertBoundary(h,0),l(i,u,n,"if",[d(i,n,"model.user_changes")],{},e,null),l(i,p,n,"if",[d(i,n,"model.wiki_changes")],{},t,null),l(i,m,n,"if",[d(i,n,"model.post_type_changes")],{},r,null),l(i,g,n,"if",[d(i,n,"model.category_id_changes")],{},a,null),h}}}(),i=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("div");e.setAttribute(r,"class","row");var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement("h2"),n=e.createComment("");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.content;a.detectNamespace(r);var o;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(o=this.build(a),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=a.cloneNode(this.cachedFragment,!0))):o=this.build(a);var s=a.createUnsafeMorphAt(a.childAt(o,[1,1]),0,0);return i(t,s,e,"titleDiff"),o}}}(),o=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("div");e.setAttribute(r,"class","row");var a=e.createTextNode("\n ");e.a
|
|||
|
e.setAttribute(n,"class","span6");var i=e.createTextNode("\n ");e.appendChild(n,i);var i=e.createElement("h4"),o=e.createComment("");e.appendChild(i,o),e.appendChild(n,i);var i=e.createTextNode("\n ");e.appendChild(n,i);var i=e.createElement("ul"),o=e.createTextNode("\n ");e.appendChild(i,o);var o=e.createElement("li"),s=e.createComment("");e.appendChild(o,s),e.appendChild(i,o);var o=e.createTextNode("\n ");e.appendChild(i,o);var o=e.createElement("li"),s=e.createComment("");e.appendChild(o,s),e.appendChild(i,o);var o=e.createTextNode("\n ");e.appendChild(i,o);var o=e.createElement("li"),s=e.createComment("");e.appendChild(o,s),e.appendChild(i,o);var o=e.createTextNode("\n ");e.appendChild(i,o);var o=e.createElement("li"),s=e.createComment("");e.appendChild(o,s),e.appendChild(i,o);var o=e.createTextNode("\n ");e.appendChild(i,o);var o=e.createElement("li"),s=e.createComment("");e.appendChild(o,s),e.appendChild(i,o);var o=e.createTextNode("\n ");e.appendChild(i,o);var o=e.createElement("li"),s=e.createComment("");e.appendChild(o,s),e.appendChild(i,o);var o=e.createTextNode("\n ");e.appendChild(i,o);var o=e.createElement("li"),s=e.createComment("");e.appendChild(o,s),e.appendChild(i,o);var o=e.createTextNode("\n ");e.appendChild(i,o);var o=e.createElement("li"),s=e.createComment("");e.appendChild(o,s),e.appendChild(i,o);var o=e.createTextNode("\n ");e.appendChild(i,o);var o=e.createElement("li"),s=e.createComment("");e.appendChild(o,s),e.appendChild(i,o);var o=e.createTextNode("\n ");e.appendChild(i,o),e.appendChild(n,i);var i=e.createTextNode("\n ");e.appendChild(n,i);var i=e.createElement("h4"),o=e.createComment("");e.appendChild(i,o),e.appendChild(n,i);var i=e.createTextNode("\n ");e.appendChild(n,i);var i=e.createElement("ul"),o=e.createTextNode("\n ");e.appendChild(i,o);var o=e.createElement("li"),s=e.createComment("");e.appendChild(o,s),e.appendChild(i,o);var o=e.createTextNode("\n ");e.appendChild(i,o);var o=e.createElement("li"),s=e.createComment("");e.appendChild(o,s),e.appendChild(i,o);var o=e.createTextNode("\n ");e.appendChild(i,o);var o=e.createElement("li"),s=e.createComment("");e.appendChild(o,s),e.appendChild(i,o);var o=e.createTextNode("\n ");e.appendChild(i,o);var o=e.createElement("li"),s=e.createComment("");e.appendChild(o,s),e.appendChild(i,o);var o=e.createTextNode("\n ");e.appendChild(i,o);var o=e.createElement("li"),s=e.createComment("");e.appendChild(o,s),e.appendChild(i,o);var o=e.createTextNode("\n ");e.appendChild(i,o),e.appendChild(n,i);var i=e.createTextNode("\n ");e.appendChild(n,i),e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createElement("div");e.setAttribute(n,"class","span6");var i=e.createTextNode("\n ");e.appendChild(n,i);var i=e.createElement("h4"),o=e.createComment("");e.appendChild(i,o),e.appendChild(n,i);var i=e.createTextNode("\n ");e.appendChild(n,i);var i=e.createElement("ul"),o=e.createTextNode("\n ");e.appendChild(i,o);var o=e.createElement("li"),s=e.createComment("");e.appendChild(o,s),e.appendChild(i,o);var o=e.createTextNode("\n ");e.appendChild(i,o);var o=e.createElement("li"),s=e.createComment("");e.appendChild(o,s),e.appendChild(i,o);var o=e.createTextNode("\n ");e.appendChild(i,o);var o=e.createElement("li"),s=e.createComment("");e.appendChild(o,s),e.appendChild(i,o);var o=e.createTextNode("\n ");e.appendChild(i,o);var o=e.createElement("li"),s=e.createComment("");e.appendChild(o,s),e.appendChild(i,o);var o=e.createTextNode("\n ");e.appendChild(i,o);var o=e.createElement("li"),s=e.createComment("");e.appendChild(o,s),e.appendChild(i,o);var o=e.createTextNode("\n ");e.appendChild(i,o);var o=e.createElement("li"),s=e.createComment("");e.appendChild(o,s),e.appendChild(i,o);var o=e.createTextNode("\n ");e.appendChild(i,o);var o=e.createElement("li"),s=e.createComment("");e.appendChild(o,s),e.appendChild(i,o);var o=e.createTextNode("\n ");e.append
|
|||
|
e.setAttribute(r,"class","modal-footer");var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement("button");e.setAttribute(a,"class","btn btn-primary");var n=e.createComment("");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode("\n");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(r,a,n){var i=a.dom,o=a.hooks,s=o.get,c=o.block,d=o.element,l=o.inline;i.detectNamespace(n);var h;a.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(h=this.build(i),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=i.cloneNode(this.cachedFragment,!0))):h=this.build(i);var u=i.childAt(h,[2,1]),p=i.createMorphAt(i.childAt(h,[0]),1,1),m=i.createMorphAt(u,0,0);return c(a,p,r,"if",[s(a,r,"emailSent")],{},e,t),d(a,u,r,"action",["closeModal"],{}),l(a,m,r,"i18n",["close"],{}),h}}}()),Ember.TEMPLATES["modal/option_boolean"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createElement("label"),a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a=e.createTextNode("\n");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n\n");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.get,o=n.inline,s=n.content;a.detectNamespace(r);var c;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(c=this.build(a),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=a.cloneNode(this.cachedFragment,!0))):c=this.build(a);var d=a.childAt(c,[0]),l=a.createMorphAt(d,1,1),h=a.createMorphAt(d,3,3),u=a.createMorphAt(c,2,2,r);return o(t,l,e,"input",[],{type:"checkbox",checked:i(t,e,"checked")}),s(t,h,e,"title"),s(t,u,e,"description"),c}}}()),Ember.TEMPLATES["modal/post-enqueued"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createElement("div");e.setAttribute(r,"class","modal-body");var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement("p"),n=e.createComment("");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode("\n\n ");e.appendChild(r,a);var a=e.createElement("p"),n=e.createComment("");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode("\n");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");e.appendChild(t,r);var r=e.createElement("div");e.setAttribute(r,"class","modal-footer");var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a=e.createTextNode("\n");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.content,o=n.get,s=n.inline;a.detectNamespace(r);var c;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(c=this.build(a),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=a.cloneNode(this.cachedFragment,!0))):c=this.build(a);var d=a.childAt(c,[0]),l=a.createUnsafeMorphAt(a.childAt(d,[1]),0,0),h=a.createUnsafeMorphAt(a.childAt(d,[3]),0,0),u=a.createMorphAt(a.childAt(c,[2]),1,1);return i(t,l,e,"description"),s(t,h,e,"i18n",["queue.approval.pending_posts"],{count:o(t,e,"model.pending_count")}),s(t,u,e,"d-button",[],{action:"closeModal","class":"btn-primary",label:"queue.approval.ok"}),c}}}()),Ember.TEMPLATES["modal/raw_email"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");retu
|
|||
|
a.detectNamespace(r);var o;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(o=this.build(a),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=a.cloneNode(this.cachedFragment,!0))):o=this.build(a);var s=a.createMorphAt(o,1,1,r);return i(t,s,e,"categories-admin-dropdown"),o}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("button");e.setAttribute(r,"id","create-topic"),e.setAttribute(r,"class","btn btn-default");var a=e.createElement("i");e.setAttribute(a,"class","fa fa-plus"),e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.element,o=n.inline;a.detectNamespace(r);var s;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(s=this.build(a),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=a.cloneNode(this.cachedFragment,!0))):s=this.build(a);var c=a.childAt(s,[1]),d=a.createMorphAt(c,1,1);return i(t,c,e,"action",["createTopic"],{}),o(t,d,e,"i18n",["topic.create"],{}),s}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n\n");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n\n");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createComment("");return e.appendChild(t,r),t},render:function(r,a,n){var i=a.dom,o=a.hooks,s=o.get,c=o.inline,d=o.block;i.detectNamespace(n);var l;a.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(l=this.build(i),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=i.cloneNode(this.cachedFragment,!0))):l=this.build(i);var h=i.createMorphAt(l,0,0,n),u=i.createMorphAt(l,2,2,n),p=i.createMorphAt(l,4,4,n),m=i.createMorphAt(l,5,5,n);return i.insertBoundary(l,null),i.insertBoundary(l,0),c(a,h,r,"bread-crumbs",[],{categories:s(a,r,"categories")}),c(a,u,r,"navigation-bar",[],{navItems:s(a,r,"navItems"),filterMode:s(a,r,"filterMode")}),d(a,p,r,"if",[s(a,r,"canCreateCategory")],{},e,null),d(a,m,r,"if",[s(a,r,"canCreateTopic")],{},t,null),l}}}()),Ember.TEMPLATES["navigation/category"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.get,o=n.inline;a.detectNamespace(r);var s;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(s=this.build(a),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=a.cloneNode(this.cachedFragment,!0))):s=this.build(a);var c=a.createMorphAt(s,1,1,r);return o(t,c,e,"category-notifications-button",[],{category:i(t,e,"category")}),s}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.get,o=n.inline;a.detectNamespace(r);var s;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(s=this.build(a),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=a.cloneNode(this.cachedFragment,!0))):s=this.build(a);var c=a.createMorphAt(s,1,1,r);return o(t,c,e,"d-button",[],{id:"create-topic","class":"btn-default",action:"createTopic",icon:"plus",label:"topic.create",disabled:i(t,e,"cannotCreateTopicOnCategory")}),s}}}(),r=
|
|||
|
var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.inline;a.detectNamespace(r);var o;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(o=this.build(a),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=a.cloneNode(this.cachedFragment,!0))):o=this.build(a);var s=a.createMorphAt(o,1,1,r);return i(t,s,e,"d-button",[],{action:"showCreateAccount","class":"btn-primary sign-up-button",label:"sign_up"}),o}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.inline;a.detectNamespace(r);var o;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(o=this.build(a),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=a.cloneNode(this.cachedFragment,!0))):o=this.build(a);var s=a.createMorphAt(o,1,1,r);return i(t,s,e,"d-button",[],{action:"showLogin","class":"btn-primary login-button",icon:"user",label:"log_in"}),o}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createElement("div");e.setAttribute(r,"class","container");var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement("div");e.setAttribute(a,"class","contents clearfix body-page");var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode("\n\n");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode("\n");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode(" ");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode("\n");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(r,a,n){var i=a.dom,o=a.hooks,s=o.inline,c=o.content,d=o.get,l=o.block;i.detectNamespace(n);var h;a.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(h=this.build(i),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=i.cloneNode(this.cachedFragment,!0))):h=this.build(i);var u=i.childAt(h,[0,1]),p=i.createMorphAt(u,1,1),m=i.createUnsafeMorphAt(u,3,3),g=i.createMorphAt(u,5,5),v=i.createMorphAt(u,7,7);return s(a,p,r,"plugin-outlet",["above-static"],{}),c(a,m,r,"model.html"),l(a,g,r,"if",[d(a,r,"showSignupButton")],{},e,null),l(a,v,r,"if",[d(a,r,"showLoginButton")],{},t,null),h}}}()),Ember.TEMPLATES.tags=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createElement("div");e.setAttribute(r,"class","container list-container");var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement("div");e.setAttribute(a,"class","row");var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createElement("div");e.setAttribute(n,"class","full-width");var i=e.createTextNode("\n ");e.appendChild(n,i);var i=e.createElement("div");e.setAttribute(i,"id","list-area");var o=e.createTextNode("\n ");e.appendChild(i,o);var o=e.createComment("");e.appendChild(i,o);var o=e.createTextNode("\n ");e.appendChild(i,o),e.appendChild(n,i);var i=e.createTextNode("\n ");e.appendChild(n,i),e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode("\n");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.content;a.detectNamespace(r);var o;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(o=this.build(
|
|||
|
name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:n}))+"' class='badge badge-notification new-posts' title='"+e.escapeExpression((r.i18n||t&&t.i18n||r.helperMissing).call(null!=t?t:{},"topic.total_unread_posts",{name:"i18n",hash:{count:"newPosts"},hashTypes:{count:"PathExpression"},hashContexts:{count:t},types:["StringLiteral"],contexts:[t],data:n}))+"'>"+e.escapeExpression(r.get.call(null!=t?t:{},"newPosts",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:n}))+"</a>\n"},5:function(e,t,r,a,n){return"<a href='"+e.escapeExpression(r.get.call(null!=t?t:{},"url",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:n}))+"' class='badge badge-notification new-topic' title='"+e.escapeExpression((r.i18n||t&&t.i18n||r.helperMissing).call(null!=t?t:{},"topic.new",{name:"i18n",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:n}))+"'>"+e.escapeExpression((r.i18n||t&&t.i18n||r.helperMissing).call(null!=t?t:{},"filters.new.lower_title",{name:"i18n",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:n}))+"</a>\n"},compiler:[7,">= 4.0.0"],main:function(e,t,r,a,n){var i;return"<span class='topic-post-badges'>\n"+(null!=(i=r["if"].call(null!=t?t:{},"unread",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,n,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:n}))?i:"")+(null!=(i=r["if"].call(null!=t?t:{},"newPosts",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(3,n,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:n}))?i:"")+(null!=(i=r["if"].call(null!=t?t:{},"unseen",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(5,n,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:n}))?i:"")+"</span>\n"},useData:!0}),Ember.TEMPLATES["topic-progress"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("nav");e.setAttribute(r,"id","topic-progress-expanded");var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement("div");e.setAttribute(a,"class","jump-form");var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.get,o=n.inline;a.detectNamespace(r);var s;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(s=this.build(a),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=a.cloneNode(this.cachedFragment,!0))):s=this.build(a);var c=a.childAt(s,[1]),d=a.childAt(c,[3]),l=a.createMorphAt(c,1,1),h=a.createMorphAt(d,1,1),u=a.createMorphAt(d,3,3),p=a.createMorphAt(c,5,5);return o(t,l,e,"d-button",[],{action:"jumpTop",disabled:i(t,e,"jumpTopDisabled"),"class":"full no-text",icon:"caret-up",label:"topic.progress.go_top"}),o(t,h,e,"input",[],{value:i(t,e,"toPostIndex")}),o(t,u,e,"d-button",[],{action:"jumpPost",label:"topic.progress.go"}),o(t,p,e,"d-button",[],{action:"jumpBottom",disabled:i(t,e,"jumpBottomDisabled"),"class":"full no-text jump-bottom",icon:"caret-down",label:"topic.progress.go_bottom"}),s}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createComment("");e.appendChild(t,r);var r=e.createElement("nav");e.setAttribute(r,"id","topic-progress");var a=e.createTex
|
|||
|
var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n\n");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(i,o,s){var c=o.dom,d=o.hooks,l=d.get,h=d.inline,u=d.block;c.detectNamespace(s);var p;o.useFragmentCache&&c.canClone?(null===this.cachedFragment&&(p=this.build(c),this.hasRendered?this.cachedFragment=p:this.hasRendered=!0),this.cachedFragment&&(p=c.cloneNode(this.cachedFragment,!0))):p=this.build(c);var m=c.createMorphAt(p,1,1,s),g=c.createMorphAt(p,3,3,s),v=c.createMorphAt(p,5,5,s),f=c.createMorphAt(p,7,7,s),b=c.createMorphAt(p,9,9,s),C=c.createMorphAt(p,11,11,s);return h(o,m,i,"topic-closing",[],{topic:l(o,i,"model")}),u(o,g,i,"if",[l(o,i,"session.showSignupCta")],{},e,t),u(o,v,i,"if",[l(o,i,"model.pending_posts_count")],{},r,null),u(o,f,i,"if",[l(o,i,"showSelectedPostsAtBottom")],{},a,null),h(o,b,i,"plugin-outlet",["topic-above-suggested"],{}),u(o,C,i,"if",[l(o,i,"model.details.suggested_topics.length")],{},n,null),p}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createComment("");return e.appendChild(t,r),t},render:function(t,r,a){var n=r.dom,i=r.hooks,o=i.get,s=i.block;n.detectNamespace(a);var c;r.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(c=this.build(n),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=n.cloneNode(this.cachedFragment,!0))):c=this.build(n);var d=n.createMorphAt(c,0,0,a);return n.insertBoundary(c,null),n.insertBoundary(c,0),s(r,d,t,"if",[o(r,t,"loadedAllPosts")],{},e,null),c}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n ");e.appendChild(t,r);var r=e.createElement("div");e.setAttribute(r,"class","container posts");var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement("div"),n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode("\n\n ");e.appendChild(r,a);var a=e.createElement("div");e.setAttribute(a,"class","row");var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createElement("section");e.setAttribute(n,"class","topic-area"),e.setAttribute(n,"id","topic");var i=e.createTextNode("\n ");e.appendChild(n,i);var i=e.createElement("div");e.setAttribute(i,"class","posts-wrapper");var o=e.createTextNode("\n\n ");e.appendChild(i,o);var o=e.createComment("");e.appendChild(i,o);var o=e.createTextNode("\n\n ");e.appendChild(i,o);var o=e.createComment("");e.appendChild(i,o);var o=e.createTextNode("\n\n ");e.appendChild(i,o);var o=e.createComment("");e.appendChild(i,o);var o=e.createTextNode("\n\n");e.appendChild(i,o);var o=e.createComment("");e.appendChild(i,o);var o=e.createTextNode(" ");e.appendChild(i,o),e.appendChild(n,i);var i=e.createTextNode("\n ");e.appendChild(n,i);var i=e.createElement("div");e.setAttribute(i,"id","topic-bottom"),e.appendChild(n,i);var i=e.createTextNode("\n\n");e.appendChild(n,i);var i=e.createComment("");e.appendChild(n,i);var i=e.createTextNode("\n ");e.appendChild(n,i),e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode("\n\n ");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(a,n,i){var o=n.dom,s=n.hooks,c=s.get,d=s.block,l=s.subexpr,h=s.concat,u=s.attribute,p=s.inline;o.detectNamespace(i);var m;n.useFragmentCache&&o.canClone?(null===this.cachedFragment&&(m=this.build(o),this.hasRendered?this.cachedFragment=m:this.hasRendered=!0),this.cachedFragment&&(m=o.cloneNode(this.cachedFragment,!0))):m=this.build(o);var g=o.childAt(m,[2]),v=o.childAt(g,[1]),f=o.childAt(g,[3,1]),b=o.childAt(f,[1]),C=o.createMorphAt(m
|
|||
|
o(t,p,e,"topic-notifications-button",[],{topic:s(t,e,"model")}),c}}}()),Ember.TEMPLATES["user-card"]=Ember.HTMLBars.template(function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("h2"),a=e.createComment("");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.content;a.detectNamespace(r);var o;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(o=this.build(a),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=a.cloneNode(this.cachedFragment,!0))):o=this.build(a);var s=a.createMorphAt(a.childAt(o,[1]),0,0);return i(t,s,e,"user.name"),o}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("h2"),a=e.createComment("");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.content;a.detectNamespace(r);var o;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(o=this.build(a),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=a.cloneNode(this.cachedFragment,!0))):o=this.build(a);var s=a.createMorphAt(a.childAt(o,[1]),0,0);return i(t,s,e,"user.title"),o}}}(),r=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("li"),a=e.createElement("a");e.setAttribute(a,"class","btn btn-primary");var n=e.createComment("");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n),e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.get,o=n.element,s=n.inline;a.detectNamespace(r);var c;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(c=this.build(a),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=a.cloneNode(this.cachedFragment,!0))):c=this.build(a);var d=a.childAt(c,[1,0]),l=a.createMorphAt(d,0,0),h=a.createMorphAt(d,1,1);return o(t,d,e,"action",["composePrivateMessage",i(t,e,"user"),i(t,e,"post")],{}),s(t,l,e,"fa-icon",["envelope"],{}),s(t,h,e,"i18n",["user.private_message"],{}),c}}}(),a=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("li"),a=e.createElement("a");e.setAttribute(a,"class","btn"),e.setAttribute(a,"href","");var n=e.createComment("");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n),e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.get,o=n.element,s=n.inline;a.detectNamespace(r);var c;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(c=this.build(a),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=a.cloneNode(this.cachedFragment,!0))):c=this.build(a);var d=a.childAt(c,[1,0]),l=a.createMorphAt(d,0,0),h=a.createMorphAt(d,1,1);return o(t,d,e,"action",["togglePosts",i(t,e,"user")],{}),s(t,l,e,"fa-icon",["filter"],{}),s(t,h,e,"i18n",["topic.filter_to"],{username:i(t,e,"username"),post_count:i(t,e,"topicPostCount")}),c}}}(),n=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("li"),a=e.createElement("a");e.setAttribute(a,"class","btn"),e.setAttribute(a,"href","");var n=e.create
|
|||
|
this.hasRendered?this.cachedFragment=d:this.hasRendered=!0),this.cachedFragment&&(d=n.cloneNode(this.cachedFragment,!0))):d=this.build(n);var l=n.childAt(d,[1]),h=n.childAt(l,[1,1]),u=n.childAt(l,[3]),p=n.createMorphAt(h,1,1),m=n.createMorphAt(h,3,3),g=n.createMorphAt(u,1,1),v=n.createMorphAt(u,3,3);return s(r,p,t,"nav-item",[],{route:"userInvited.show",routeParam:"pending",i18nLabel:o(r,t,"pendingLabel")}),s(r,m,t,"nav-item",[],{route:"userInvited.show",routeParam:"redeemed",i18nLabel:o(r,t,"redeemedLabel")}),s(r,g,t,"d-button",[],{icon:"plus",action:"showInvite",label:"user.invited.create","class":"btn"}),c(r,v,t,"if",[o(r,t,"canBulkInvite")],{},e,null),d}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("div");e.setAttribute(r,"class","user-invite-search");var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement("form"),n=e.createComment("");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.get,o=n.inline;a.detectNamespace(r);var s;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(s=this.build(a),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=a.cloneNode(this.cachedFragment,!0))):s=this.build(a);var c=a.createMorphAt(a.childAt(s,[1,1]),0,0);return o(t,c,e,"text-field",[],{value:i(t,e,"searchTerm"),placeholderKey:"user.invited.search"}),s}}}(),r=function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("th"),a=e.createComment("");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n ");e.appendChild(t,r);var r=e.createElement("th"),a=e.createComment("");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n ");e.appendChild(t,r);var r=e.createElement("th"),a=e.createComment("");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n ");e.appendChild(t,r);var r=e.createElement("th"),a=e.createComment("");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n ");e.appendChild(t,r);var r=e.createElement("th"),a=e.createComment("");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.inline;a.detectNamespace(r);var o;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(o=this.build(a),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=a.cloneNode(this.cachedFragment,!0))):o=this.build(a);var s=a.createMorphAt(a.childAt(o,[1]),0,0),c=a.createMorphAt(a.childAt(o,[3]),0,0),d=a.createMorphAt(a.childAt(o,[5]),0,0),l=a.createMorphAt(a.childAt(o,[7]),0,0),h=a.createMorphAt(a.childAt(o,[9]),0,0);return i(t,s,e,"i18n",["user.last_seen"],{}),i(t,c,e,"i18n",["user.invited.topics_entered"],{}),i(t,d,e,"i18n",["user.invited.posts_read_count"],{}),i(t,l,e,"i18n",["user.invited.time_read"],{}),i(t,h,e,"i18n",["user.invited.days_visited"],{}),o}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("th"),a=e.createComment("");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n ");e.appendChild(t,r);var r=e.createElement("th"),a=e.createComment("");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");e.appendChild(t,r);var r=e.createComment("");return e.appendChild(t,r),t},render:function(t,r,a){var n=r.dom,i=r.hooks,o=i.inline,s=i.get,c=i.block;n.detectNamespace(a);var d;r.u
|
|||
|
this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=a.cloneNode(this.cachedFragment,!0))):o=this.build(a);var s=a.createMorphAt(o,0,0,r);return a.insertBoundary(o,null),a.insertBoundary(o,0),i(t,s,e,"i18n",["user.filters.all"],{}),o}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createComment("");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.inline;a.detectNamespace(r);var o;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(o=this.build(a),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=a.cloneNode(this.cachedFragment,!0))):o=this.build(a);var s=a.createMorphAt(o,0,0,r);return a.insertBoundary(o,null),a.insertBoundary(o,0),i(t,s,e,"i18n",["user_action_groups.4"],{}),o}}}(),r=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("i");e.setAttribute(r,"class","glyph fa fa-reply"),e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.inline;a.detectNamespace(r);var o;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(o=this.build(a),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=a.cloneNode(this.cachedFragment,!0))):o=this.build(a);var s=a.createMorphAt(o,2,2,r);return i(t,s,e,"i18n",["user_action_groups.5"],{}),o}}}(),a=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("i");e.setAttribute(r,"class","glyph fa fa-heart"),e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.inline;a.detectNamespace(r);var o;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(o=this.build(a),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=a.cloneNode(this.cachedFragment,!0))):o=this.build(a);var s=a.createMorphAt(o,2,2,r);return i(t,s,e,"i18n",["user_action_groups.1"],{}),o}}}(),n=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("i");e.setAttribute(r,"class","glyph fa fa-bookmark"),e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.inline;a.detectNamespace(r);var o;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(o=this.build(a),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=a.cloneNode(this.cachedFragment,!0))):o=this.build(a);var s=a.createMorphAt(o,2,2,r);return i(t,s,e,"i18n",["user_action_groups.3"],{}),o}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("li"),a=e.createTextNode("\n");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a=e.createTextNode(" ");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(t,r,a){var n=r.dom,i=r.hooks,o=i.block;n.detectNamespace(a);var s;r.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(s=this.build(n),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=n.cloneNode(this.cachedFragment,!0))):s=this.build(n);var c=n.createMorphAt(n.childAt(s,[1]),1,1);return o(r,c,t,"
|
|||
|
isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.inline;a.detectNamespace(r);var o;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(o=this.build(a),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=a.cloneNode(this.cachedFragment,!0))):o=this.build(a);var s=a.createMorphAt(o,1,1,r);return i(t,s,e,"d-button",[],{"class":"btn-primary new-private-message",action:"composePrivateMessage",icon:"envelope",label:"user.new_private_message"}),o}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createComment("");return e.appendChild(t,r),t},render:function(t,r,a){var n=r.dom,i=r.hooks,o=i.get,s=i.block;n.detectNamespace(a);var c;r.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(c=this.build(n),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=n.cloneNode(this.cachedFragment,!0))):c=this.build(n);var d=n.createMorphAt(c,0,0,a);return n.insertBoundary(c,null),n.insertBoundary(c,0),s(r,d,t,"if",[o(r,t,"showNewPM")],{},e,null),c}}}(),a=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("button");e.setAttribute(r,"class","btn btn-archive");var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.element,o=n.inline;a.detectNamespace(r);var s;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(s=this.build(a),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=a.cloneNode(this.cachedFragment,!0))):s=this.build(a);var c=a.childAt(s,[1]),d=a.createMorphAt(c,1,1);return i(t,c,e,"action",["archive"],{}),o(t,d,e,"i18n",["user.messages.move_to_archive"],{}),s}}}(),n=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("button");e.setAttribute(r,"class","btn btn-to-inbox");var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.element,o=n.inline;a.detectNamespace(r);var s;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(s=this.build(a),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=a.cloneNode(this.cachedFragment,!0))):s=this.build(a);var c=a.childAt(s,[1]),d=a.createMorphAt(c,1,1);return i(t,c,e,"action",["toInbox"],{}),o(t,d,e,"i18n",["user.messages.move_to_inbox"],{}),s}}}(),i=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("button");e.setAttribute(r,"class","btn btn-select-all");var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.element,o=n.inline;a.detectNamespace(r);var s;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(s=this.build(a),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),th
|
|||
|
var s=a.createMorphAt(a.childAt(o,[1]),0,0);return i(t,s,e,"model.name"),o}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("div");e.setAttribute(r,"class","control-group pref-name");var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement("label");e.setAttribute(a,"class","control-label");var n=e.createComment("");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement("div");e.setAttribute(a,"class","controls");var n=e.createTextNode("\n");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode(" ");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement("div");e.setAttribute(a,"class","instructions");var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(r,a,n){var i=a.dom,o=a.hooks,s=o.inline,c=o.get,d=o.block,l=o.content;i.detectNamespace(n);var h;a.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(h=this.build(i),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=i.cloneNode(this.cachedFragment,!0))):h=this.build(i);var u=i.childAt(h,[1]),p=i.createMorphAt(i.childAt(u,[1]),0,0),m=i.createMorphAt(i.childAt(u,[3]),1,1),g=i.createMorphAt(i.childAt(u,[5]),1,1);return s(a,p,r,"i18n",["user.name.title"],{}),d(a,m,r,"if",[c(a,r,"model.can_edit_name")],{},e,t),l(a,g,r,"nameInstructions"),h}}}(),r=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createComment("");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.inline;a.detectNamespace(r);var o;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(o=this.build(a),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=a.cloneNode(this.cachedFragment,!0))):o=this.build(a);var s=a.createMorphAt(o,0,0,r);return a.insertBoundary(o,null),a.insertBoundary(o,0),i(t,s,e,"fa-icon",["pencil"],{}),o}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("div");e.setAttribute(r,"class","control-group pref-title");var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement("label");e.setAttribute(a,"class","control-label");var n=e.createComment("");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement("div");e.setAttribute(a,"class","controls");var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createElement("span");e.setAttribute(n,"class","static");var i=e.createComment("");e.appendChild(n,i),e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(t,r,a){var n=r.dom,i=r.hooks,o=i.inline,s=i.content,c=i.block;n.detectNamespace(a);var d;r.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(d=this.build(n),this.hasRendered?this.cachedFragment=d:this.hasRendered=!0),this.cachedFragment&&(d=n.cloneNode(this.cachedFragment,!0))):d=this.build(n);var l=n.childAt(d,[1]),h=n.childAt(l,[3]),u=n.createMorphAt(n.childAt(l,[1]),0,0),p=n.createMorphAt(n.childAt(h,[1]),0,0),m=n.createMorphAt(h,3,3);return o(r,u,t,"i18
|
|||
|
var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode("\n");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode("\n");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode("\n");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createElement("div");e.setAttribute(n,"class","control-group pref-avatar");var i=e.createTextNode("\n ");e.appendChild(n,i);var i=e.createElement("label");e.setAttribute(i,"class","control-label");var o=e.createComment("");e.appendChild(i,o),e.appendChild(n,i);var i=e.createTextNode("\n ");e.appendChild(n,i);var i=e.createElement("div");e.setAttribute(i,"class","controls");var o=e.createTextNode("\n ");e.appendChild(i,o);var o=e.createComment("");e.appendChild(i,o);var o=e.createTextNode("\n");e.appendChild(i,o);var o=e.createComment("");e.appendChild(i,o);var o=e.createTextNode(" ");e.appendChild(i,o),e.appendChild(n,i);var i=e.createTextNode("\n ");e.appendChild(n,i),e.appendChild(a,n);var n=e.createTextNode("\n\n");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode("\n");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createElement("div");e.setAttribute(n,"class","control-group pref-bio");var i=e.createTextNode("\n ");e.appendChild(n,i);var i=e.createElement("label");e.setAttribute(i,"class","control-label");var o=e.createComment("");e.appendChild(i,o),e.appendChild(n,i);var i=e.createTextNode("\n ");e.appendChild(n,i);var i=e.createElement("div");e.setAttribute(i,"class","controls bio-composer");var o=e.createTextNode("\n ");e.appendChild(i,o);var o=e.createComment("");e.appendChild(i,o);var o=e.createTextNode("\n ");e.appendChild(i,o),e.appendChild(n,i);var i=e.createTextNode("\n ");e.appendChild(n,i),e.appendChild(a,n);var n=e.createTextNode("\n\n");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode(" ");e.appendChild(a,n);var n=e.createElement("div");e.setAttribute(n,"class","clearfix"),e.appendChild(a,n);var n=e.createTextNode("\n\n ");e.appendChild(a,n);var n=e.createElement("div");e.setAttribute(n,"class","control-group pref-location");var i=e.createTextNode("\n ");e.appendChild(n,i);var i=e.createElement("label");e.setAttribute(i,"class","control-label");var o=e.createComment("");e.appendChild(i,o),e.appendChild(n,i);var i=e.createTextNode("\n ");e.appendChild(n,i);var i=e.createElement("div");e.setAttribute(i,"class","controls");var o=e.createTextNode("\n ");e.appendChild(i,o);var o=e.createComment("");e.appendChild(i,o);var o=e.createTextNode("\n ");e.appendChild(i,o),e.appendChild(n,i);var i=e.createTextNode("\n ");e.appendChild(n,i),e.appendChild(a,n);var n=e.createTextNode("\n\n ");e.appendChild(a,n);var n=e.createElement("div");e.setAttribute(n,"class","control-group pref-website");var i=e.createTextNode("\n ");e.appendChild(n,i);var i=e.createElement("label");e.setAttribute(i,"class","control-label");var o=e.createComment("");e.appendChild(i,o),e.appendChild(n,i);var i=e.createTextNode("\n ");e.appendChild(n,i);var i=e.createElement("div");e.setAttribute(i,"class","controls");var o=e.createTextNode("\n ");e.appendChild(i,o);var o=e.createComment("");e.appendChild(i,o);var o=e.createTextNode("\n ");e.appendChild(i,o),e.appendChild(n,i);var i=e.createTextNode("\n ");e.appendChild(n,i),e.appendChild(a,n);var n=e.createTextNode("\n\n ");e.appendChild(a,n);var n=e.createElement("div");e.setAttribute(n,"class","control-group pref-card-badge");var i=e.createTextNode("\n ");e.appendChild(n,i);var i=e.createElement("label");e.setAttribute(i,"class","control-label");var o=e.createComment("");e.appendChild(i,o),e.appendChild(n,i);var i=e.createTextNode("\n ");e.appendChild(n,i);var i=e.createElement("div");e.setAttribute(i,"class","controls");var o=e.createTextNode("\n");
|
|||
|
var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(t,r,a){var n=r.dom,i=r.hooks,o=i.get,s=i.block;n.detectNamespace(a);var c;r.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(c=this.build(n),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=n.cloneNode(this.cachedFragment,!0))):c=this.build(n);var d=n.createMorphAt(n.childAt(c,[1]),0,0);return s(r,d,t,"link-to",["userActivity.replies",o(r,t,"user")],{"class":"more"},e,null),c}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("ul"),a=e.createTextNode("\n");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a=e.createTextNode(" ");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");e.appendChild(t,r);var r=e.createComment("");return e.appendChild(t,r),t},render:function(r,a,n){var i=a.dom,o=a.hooks,s=o.get,c=o.block;i.detectNamespace(n);var d;a.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(d=this.build(i),this.hasRendered?this.cachedFragment=d:this.hasRendered=!0),this.cachedFragment&&(d=i.cloneNode(this.cachedFragment,!0))):d=this.build(i);var l=i.createMorphAt(i.childAt(d,[1]),1,1),h=i.createMorphAt(d,3,3,n);return i.insertBoundary(d,null),c(a,l,r,"each",[s(a,r,"model.replies")],{},e,null),c(a,h,r,"if",[s(a,r,"moreReplies")],{},t,null),d}}}(),r=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("p"),a=e.createComment("");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.inline;a.detectNamespace(r);var o;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(o=this.build(a),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=a.cloneNode(this.cachedFragment,!0))):o=this.build(a);var s=a.createMorphAt(a.childAt(o,[1]),0,0);return i(t,s,e,"i18n",["user.summary.no_replies"],{}),o}}}(),a=function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ·\n ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("span");e.setAttribute(r,"class","like-count");var a=e.createComment("");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.inline,o=n.get;a.detectNamespace(r);var s;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(s=this.build(a),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=a.cloneNode(this.cachedFragment,!0))):s=this.build(a);var c=a.createMorphAt(s,1,1,r),d=a.createMorphAt(a.childAt(s,[3]),0,0);return i(t,c,e,"fa-icon",["heart"],{}),i(t,d,e,"number",[o(t,e,"topic.like_count")],{}),s}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:1,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("li"),a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement("span");e.setAttribute(a,"class","topic-info");var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode("\n");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode(" ");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement("br");e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement
|
|||
|
this.hasRendered?this.cachedFragment=N:this.hasRendered=!0),this.cachedFragment&&(N=C.cloneNode(this.cachedFragment,!0))):N=this.build(C);var k=C.childAt(N,[0]),E=C.childAt(k,[3]),A=C.childAt(E,[3]),w=C.childAt(N,[2]),M=C.childAt(w,[1]),R=C.childAt(w,[3]),P=C.childAt(N,[4]),D=C.childAt(P,[1]),S=C.childAt(P,[3]),L=C.childAt(N,[6]),B=C.childAt(L,[1]),H=C.childAt(L,[3]),I=C.childAt(N,[8]),z=C.createMorphAt(C.childAt(k,[1]),0,0),U=C.createMorphAt(C.childAt(E,[1]),0,0),j=C.createMorphAt(C.childAt(A,[1]),0,0),O=C.createUnsafeMorphAt(C.childAt(A,[3]),0,0),q=C.createMorphAt(C.childAt(E,[5]),0,0),$=C.createMorphAt(C.childAt(E,[7]),0,0),V=C.createMorphAt(E,9,9),W=C.createMorphAt(C.childAt(E,[11]),0,0),G=C.createMorphAt(C.childAt(E,[13]),0,0),K=C.createMorphAt(C.childAt(E,[15]),0,0),Y=C.createMorphAt(C.childAt(M,[1]),0,0),J=C.createMorphAt(M,3,3),Q=C.createMorphAt(C.childAt(R,[1]),0,0),X=C.createMorphAt(R,3,3),Z=C.createMorphAt(C.childAt(D,[1]),0,0),ee=C.createMorphAt(D,3,3),te=C.createMorphAt(C.childAt(S,[1]),0,0),re=C.createMorphAt(S,3,3),ae=C.createMorphAt(C.childAt(B,[1]),0,0),ne=C.createMorphAt(B,3,3),ie=C.createMorphAt(C.childAt(H,[1]),0,0),oe=C.createMorphAt(H,3,3),se=C.createMorphAt(C.childAt(I,[1]),0,0),ce=C.createMorphAt(I,3,3),de=C.createMorphAt(I,4,4);return x(f,z,v,"i18n",["user.summary.stats"],{}),x(f,U,v,"user-stat",[],{value:T(f,v,"model.days_visited"),label:"user.summary.days_visited"}),_(f,j,v,"model.time_read"),x(f,O,v,"i18n",["user.summary.time_read"],{}),x(f,q,v,"user-stat",[],{value:T(f,v,"model.posts_read_count"),label:"user.summary.posts_read"}),x(f,$,v,"user-stat",[],{value:T(f,v,"model.likes_given"),label:"user.summary.likes_given"}),F(f,V,v,"if",[T(f,v,"model.bookmark_count")],{},e,null),x(f,W,v,"user-stat",[],{value:T(f,v,"model.topic_count"),label:"user.summary.topic_count"}),x(f,G,v,"user-stat",[],{value:T(f,v,"model.post_count"),label:"user.summary.post_count"}),x(f,K,v,"user-stat",[],{value:T(f,v,"model.likes_received"),label:"user.summary.likes_received"}),x(f,Y,v,"i18n",["user.summary.top_replies"],{}),F(f,J,v,"if",[T(f,v,"model.replies.length")],{},t,r),x(f,Q,v,"i18n",["user.summary.top_topics"],{}),F(f,X,v,"if",[T(f,v,"model.topics.length")],{},a,n),x(f,Z,v,"i18n",["user.summary.top_links"],{}),F(f,ee,v,"if",[T(f,v,"model.links.length")],{},i,o),x(f,te,v,"i18n",["user.summary.most_replied_to_users"],{}),F(f,re,v,"if",[T(f,v,"model.most_replied_to_users.length")],{},s,c),x(f,ae,v,"i18n",["user.summary.most_liked_by"],{}),F(f,ne,v,"if",[T(f,v,"model.most_liked_by_users.length")],{},d,l),x(f,ie,v,"i18n",["user.summary.most_liked_users"],{}),F(f,oe,v,"if",[T(f,v,"model.most_liked_users.length")],{},h,u),x(f,se,v,"i18n",["user.summary.top_badges"],{}),F(f,ce,v,"each",[T(f,v,"model.badges")],{},p,m),F(f,de,v,"if",[T(f,v,"moreBadges")],{},g,null),N}}}()),Ember.TEMPLATES["user/user"]=Ember.HTMLBars.template(function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("div"),a=e.createElement("span");e.setAttribute(a,"class","helpful-flags");var n=e.createComment("");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode(" ");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.content,o=n.inline;a.detectNamespace(r);var s;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(s=this.build(a),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=a.cloneNode(this.cachedFragment,!0))):s=this.build(a);var c=a.childAt(s,[1]),d=a.createMorphAt(a.childAt(c,[0]),0,0),l=a.createMorphAt(c,2,2);return i(t,d,e,"model.number_of_flags_given"),o(t,l,e,"i18n",["user.staff_counters.flags_given"],{}),s}}}(),t=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){
|
|||
|
a.detectNamespace(r);var o;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(o=this.build(a),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=a.cloneNode(this.cachedFragment,!0))):o=this.build(a);var s=a.createMorphAt(o,0,0,r);return a.insertBoundary(o,null),a.insertBoundary(o,0),i(t,s,e,"group.name"),o}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:1,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("span"),a=e.createComment("");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(t,r,a,n){var i=r.dom,o=r.hooks,s=o.set,c=o.get,d=o.block;i.detectNamespace(a);var l;r.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(l=this.build(i),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=i.cloneNode(this.cachedFragment,!0))):l=this.build(i);var h=i.createMorphAt(i.childAt(l,[1]),0,0);return s(r,t,"group",n[0]),d(r,h,t,"link-to",["group",c(r,t,"group")],{"class":"group-link"},e,null),l}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("dt"),a=e.createComment("");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n ");e.appendChild(t,r);var r=e.createElement("dd");e.setAttribute(r,"class","groups");var a=e.createTextNode("\n");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a=e.createTextNode(" ");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(t,r,a){var n=r.dom,i=r.hooks,o=i.get,s=i.inline,c=i.block;n.detectNamespace(a);var d;r.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(d=this.build(n),this.hasRendered?this.cachedFragment=d:this.hasRendered=!0),this.cachedFragment&&(d=n.cloneNode(this.cachedFragment,!0))):d=this.build(n);var l=n.createMorphAt(n.childAt(d,[1]),0,0),h=n.createMorphAt(n.childAt(d,[3]),1,1);return s(r,l,t,"i18n",["groups.title"],{count:o(r,t,"model.displayGroups.length")}),c(r,h,t,"each",[o(r,t,"model.displayGroups")],{},e,null),d}}}(),o=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.inline;a.detectNamespace(r);var o;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(o=this.build(a),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=a.cloneNode(this.cachedFragment,!0))):o=this.build(a);var s=a.createMorphAt(o,1,1,r);return i(t,s,e,"d-button",[],{action:"adminDelete",icon:"exclamation-triangle",label:"user.admin_delete","class":"btn-danger"}),o}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("div");e.setAttribute(r,"class","secondary");var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement("dl"),n=e.createTextNode("\n");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode(" ");e.appendChild(a,n);var n=e.createElement("dt"),i=e.createComment("");e.appendChild(n,i),e.appendChild(a,n);var n=e.createElement("dd"),i=e.createComment("");e.appendChild(n,i),e.appendChild(a,n);var n=e.createTextNode("\n");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode(" ");e.appendChild(a,n);var n=e.createElement("dt");e.setAttribute(n,"class"
|
|||
|
this.hasRendered?this.cachedFragment=d:this.hasRendered=!0),this.cachedFragment&&(d=n.cloneNode(this.cachedFragment,!0))):d=this.build(n);var l=n.createMorphAt(d,1,1,r);return o(t,e,"item",a[0]),c(t,l,e,"directory-item",[],{item:s(t,e,"item"),showTimeRead:s(t,e,"showTimeRead")}),d}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("div");e.setAttribute(r,"class","total-rows");var a=e.createComment("");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n\n ");e.appendChild(t,r);var r=e.createElement("table"),a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement("thead"),n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createElement("th"),i=e.createTextNode(" ");e.appendChild(n,i),e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode("\n");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode(" ");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement("tbody"),n=e.createTextNode("\n");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode(" ");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n\n ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(r,a,n){var i=a.dom,o=a.hooks,s=o.get,c=o.inline,d=o.block;i.detectNamespace(n);var l;a.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(l=this.build(i),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=i.cloneNode(this.cachedFragment,!0))):l=this.build(i);var h=i.childAt(l,[3]),u=i.childAt(h,[1]),p=i.createMorphAt(i.childAt(l,[1]),0,0),m=i.createMorphAt(u,3,3),g=i.createMorphAt(u,5,5),v=i.createMorphAt(u,7,7),f=i.createMorphAt(u,9,9),b=i.createMorphAt(u,11,11),C=i.createMorphAt(u,13,13),y=i.createMorphAt(u,15,15),x=i.createMorphAt(u,17,17),T=i.createMorphAt(i.childAt(h,[3]),1,1),_=i.createMorphAt(l,5,5,n);return c(a,p,r,"i18n",["directory.total_rows"],{count:s(a,r,"model.totalRows")}),c(a,m,r,"directory-toggle",[],{field:"likes_received",order:s(a,r,"order"),asc:s(a,r,"asc"),icon:"heart"}),c(a,g,r,"directory-toggle",[],{field:"likes_given",order:s(a,r,"order"),asc:s(a,r,"asc"),icon:"heart"}),c(a,v,r,"directory-toggle",[],{field:"topic_count",order:s(a,r,"order"),asc:s(a,r,"asc")}),c(a,f,r,"directory-toggle",[],{field:"post_count",order:s(a,r,"order"),asc:s(a,r,"asc")}),c(a,b,r,"directory-toggle",[],{field:"topics_entered",order:s(a,r,"order"),asc:s(a,r,"asc")}),c(a,C,r,"directory-toggle",[],{field:"posts_read",order:s(a,r,"order"),asc:s(a,r,"asc")}),c(a,y,r,"directory-toggle",[],{field:"days_visited",order:s(a,r,"order"),asc:s(a,r,"asc")}),d(a,x,r,"if",[s(a,r,"showTimeRead")],{},e,null),d(a,T,r,"each",[s(a,r,"model")],{},t,null),c(a,_,r,"conditional-loading-spinner",[],{condition:s(a,r,"model.loadingMore")}),l}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.cr
|
|||
|
var t=this;Discourse.User.current()?t.replaceWith("discovery.latest").then(function(r){t.controllerFor("navigation/default").get("canCreateTopic")&&Ember.run.next(function(){r.send("createNewTopicViaParams",e.queryParams.title,e.queryParams.body,e.queryParams.category_id,e.queryParams.category)})}):(t.session.set("shouldRedirectToUrl",window.location.href),t.replaceWith("login"))}})}),define("discourse/routes/preferences-about",["discourse/routes/restricted-user","exports"],function(e,t){"use strict";var r=e["default"];t["default"]=r.extend({model:function(){return this.modelFor("user")},renderTemplate:function(){this.render({into:"user"})},setupController:function(e,t){e.setProperties({model:t,newBio:t.get("bio_raw")})},deactivate:function(){this._super(),this.render("preferences",{into:"user",controller:"preferences"})},actions:{changeAbout:function(){var e=this,t=e.controllerFor("preferences/about");return t.setProperties({saving:!0}),t.get("model").save().then(function(){t.set("saving",!1),e.transitionTo("user.index")},function(){t.set("saving",!1),alert(I18n.t("generic_error"))})}}})}),define("discourse/routes/preferences-badge-title",["discourse/models/user-badge","discourse/routes/restricted-user","exports"],function(e,t,r){"use strict";var a=e["default"],n=t["default"];r["default"]=n.extend({model:function(){return a.findByUsername(this.modelFor("user").get("username"))},renderTemplate:function(){return this.render("user/badge-title",{into:"user"})},deactivate:function(){this._super(),this.render("preferences",{into:"user",controller:"preferences"})},setupController:function(e,t){e.set("model",t),e.set("user",this.modelFor("user")),t.forEach(function(t){t.get("badge.name")===e.get("user.title")&&e.set("selectedUserBadgeId",t.get("id"))}),!e.get("selectedUserBadgeId")&&e.get("selectableUserBadges.length")>0&&e.set("selectedUserBadgeId",e.get("selectableUserBadges")[0].get("id"))}})}),define("discourse/routes/preferences-card-badge",["discourse/models/user-badge","discourse/routes/restricted-user","exports"],function(e,t,r){"use strict";var a=e["default"],n=t["default"];r["default"]=n.extend({model:function(){return a.findByUsername(this.modelFor("user").get("username"))},renderTemplate:function(){return this.render({into:"user"})},deactivate:function(){this._super(),this.render("preferences",{into:"user",controller:"preferences"})},setupController:function(e,t){e.set("model",t),e.set("user",this.modelFor("user")),t.forEach(function(t){t.get("badge.image")===e.get("user.card_image_badge")&&e.set("selectedUserBadgeId",t.get("id"))})}})}),define("discourse/routes/preferences-email",["discourse/routes/restricted-user","exports"],function(e,t){"use strict";var r=e["default"];t["default"]=r.extend({model:function(){return this.modelFor("user")},renderTemplate:function(){this.render({into:"user"})},setupController:function(e,t){e.setProperties({model:t,newEmail:t.get("email")})},deactivate:function(){this._super(),this.render("preferences",{into:"user",controller:"preferences"})}})}),define("discourse/routes/preferences-index",["discourse/routes/restricted-user","exports"],function(e,t){"use strict";var r=e["default"];t["default"]=r.extend({renderTemplate:function(){this.render("preferences",{into:"user",controller:"preferences"})}})}),define("discourse/routes/preferences-username",["discourse/routes/restricted-user","exports"],function(e,t){"use strict";var r=e["default"];t["default"]=r.extend({model:function(){return this.modelFor("user")},renderTemplate:function(){return this.render({into:"user"})},deactivate:function(){this._super(),this.render("preferences",{into:"user",controller:"preferences"})},setupController:function(e,t){e.setProperties({model:t,newUsername:t.get("username")})}})}),define("discourse/routes/preferences",["discourse/routes/restricted-user","discourse/lib/show-modal","discourse/lib/ajax-error","exports"],function(e,t,r,a){"use strict";var n=e["default"],i=t["default"],o=r.popupAjaxError;a["default"]=n.extend({model:function(){return this.modelFor("user")},setupController:function(e,t){e.reset(),
|
|||
|
$('script[type="text/x-handlebars"]').each(function(){var e=$(this),t=e.attr("name")||e.data("template-name");window.console&&window.console.log("WARNING: you have a handlebars template named "+t+" this is an unsupported setup, precompile your templates"),e.remove()})}}}),define("discourse/pre-initializers/sniff-capabilities",["exports"],function(e){"use strict";e["default"]={name:"sniff-capabilities",initialize:function(e,t){var r=$("html"),a=r.hasClass("touch")||Modernizr.prefixed("MaxTouchPoints",navigator)>1,n={touch:a};if(r.addClass(a?"discourse-touch":"discourse-no-touch"),navigator){var i=navigator.userAgent;i&&(n.isAndroid=-1!==i.indexOf("Android"),n.isWinphone=-1!==i.indexOf("Windows Phone"),n.isOpera=!!window.opera||i.indexOf(" OPR/")>=0,n.isFirefox="undefined"!=typeof InstallTrigger,n.isSafari=Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0,n.isChrome=!!window.chrome&&!n.isOpera,n.canPasteImages=n.isChrome||n.isFirefox),n.isIOS=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}n.highRes=window.screen.width>=1280,t.register("capabilities:main",n,{instantiate:!1}),t.inject("view","capabilities","capabilities:main"),t.inject("controller","capabilities","capabilities:main"),t.inject("component","capabilities","capabilities:main")}}}),define("discourse/initializers/android-app-banner-service-worker",["exports"],function(e){"use strict";e["default"]={name:"android-app-banner-service-worker",initialize:function(e){var t=e.lookup("capabilities:main"),r="https:"===document.location.protocol;r&&t.isAndroid&&"serviceWorker"in navigator&&navigator.serviceWorker.register(Discourse.BaseUri+"/service-worker.js",{scope:"./"})}}}),define("discourse/initializers/apply-flagged-properties",["discourse/components/site-header","exports"],function(e,t){"use strict";var r=e.applyFlaggedProperties;t["default"]={name:"apply-flagged-properties",initialize:r}}),define("discourse/initializers/asset-version",["exports"],function(e){"use strict";e["default"]={name:"asset-version",after:"message-bus",initialize:function(e){var t=!1,r=e.lookup("message-bus:main");r&&r.subscribe("/global/asset-version",function(e){Discourse.set("assetVersion",e),!t&&Discourse.get("requiresRefresh")&&(setTimeout(function(){bootbox.confirm(I18n.lookup("assets_changed_confirm"),function(e){e&&document.location.reload()})},72e5),t=!0)})}}}),define("discourse/initializers/auto-load-modules",["exports"],function(e){"use strict";function t(){Object.keys(requirejs.entries).forEach(function(e){/\/helpers\//.test(e)&&require(e,null,null,!0),/\/widgets\//.test(e)&&require(e,null,null,!0)})}e.autoLoadModules=t,e["default"]={name:"auto-load-modules",initialize:t}}),define("discourse/initializers/banner",["exports"],function(e){"use strict";e["default"]={name:"banner",after:"message-bus",initialize:function(e){var t=Em.Object.create(PreloadStore.get("banner")),r=e.lookup("site:main");r.set("banner",t);var a=e.lookup("message-bus:main");a&&a.subscribe("/site/banner",function(e){r.set("banner",Em.Object.create(e))})}}}),define("discourse/initializers/click-interceptor",["discourse/lib/intercept-click","discourse/lib/url","exports"],function(e,t,r){"use strict";var a=e["default"],n=t["default"];r["default"]={name:"click-interceptor",initialize:function(){$("#main").on("click.discourse","a",a),$(window).on("hashchange",function(){return n.routeTo(document.location.hash)})}}}),define("discourse/initializers/csrf-token",["exports"],function(e){"use strict";e["default"]={name:"csrf-token",initialize:function(e){var t=e.lookup("session:main");t.set("csrfToken",$("meta[name=csrf-token]").attr("content")),$.ajaxPrefilter(function(e,r,a){e.crossDomain||a.setRequestHeader("X-CSRF-Token",t.get("csrfToken"))})}}}),define("discourse/initializers/ember-events",["exports"],function(e){"use strict";e["default"]={name:"ember-events",initialize:function(){Ember.EventDispatcher.reopen({events:{touchstart:"touchStart",touchend:"touchEnd",touchcancel:"touchCancel",keydown:"keyDown",keyup:"keyUp",keypress:"keyPress",mousedown:"mouseDown",mouseup:"mouseUp",
|
|||
|
return t&&a.get("parent_category_id")?!0:e&&a.get("isUncategorizedCategory")&&!r?!0:!1});return this.attach("hamburger-categories",{categories:a})},footerLinks:function(e,t){var r=this,a=[];a.push({route:"about",className:"about-link",label:"about.simple_title"}),e||a.push({href:t,className:"faq-link",label:"faq"});var n=this.site;return n.mobileView||this.capabilities.touch||a.push({action:"showKeyboard",className:"keyboard-shortcuts-link",label:"keyboard_shortcuts_help.title"}),(this.site.mobileView||this.siteSettings.enable_mobile_theme&&this.capabilities.touch)&&a.push({action:"toggleMobileView",className:"mobile-toggle-link",label:this.site.mobileView?"desktop_view":"mobile_view"}),a.map(function(e){return r.attach("link",e)})},panelContents:function(){var e=this,t=this.currentUser,r=[],a=this.siteSettings.faq_url;a&&0!==a.length||(a=Discourse.getURL("/faq"));var o=this.currentUser&&!this.currentUser.read_faq;return o&&r.push(this.attach("menu-links",{heading:!0,contents:function(){return e.faqLink(a)}})),t&&t.staff&&r.push(this.attach("menu-links",{contents:function(){var t=n(e,"admin-links",e.attrs,e.state)||[];return e.adminLinks().concat(t)}})),r.push(this.attach("menu-links",{contents:function(){return e.generalLinks()}})),r.push(this.listCategories()),r.push(i("hr")),r.push(this.attach("menu-links",{omitRule:!0,contents:function(){return e.footerLinks(o,a)}})),r},html:function(){var e=this;return this.attach("menu-panel",{contents:function(){return e.panelContents()}})},clickOutside:function(){this.sendWidgetAction("toggleHamburger")}})}),define("discourse/widgets/header-topic-info",["discourse/widgets/widget","virtual-dom","discourse/helpers/fa-icon","discourse/lib/url","discourse/widgets/raw-html","discourse/lib/render-tag","exports"],function(e,t,r,a,n,i,o){"use strict";var s=e.createWidget,c=t.h,d=r.iconNode,l=a["default"],h=n["default"],u=i.tagNode;o["default"]=s("header-topic-info",{tagName:"div.extra-info-wrapper",html:function(e){var t=this,r=e.topic,a=[],n=!r.get("is_warning")&&r.get("isPrivateMessage");if(n){var i=this.currentUser&&this.currentUser.pmPath(r);i&&a.push(c("a",{attributes:{href:i}},c("span.private-message-glyph",d("envelope"))))}var o=r.get("details.loaded");o&&!function(){a.push(t.attach("topic-status",e));var n=new h({html:"<span>"+r.get("fancyTitle")+"</span>"});a.push(t.attach("link",{className:"topic-link",action:"jumpToTopPost",href:r.get("url"),contents:function(){return n}}))}();var s=[c("h1",a)];if(o){var l=r.get("category");if(l&&(!l.get("isUncategorizedCategory")||!this.siteSettings.suppress_uncategorized_badge)){var p=l.get("parentCategory");p&&s.push(this.attach("category-link",{category:p})),s.push(this.attach("category-link",{category:l}))}if(this.siteSettings.tagging_enabled){var m=r.get("tags")||[];m.length&&s.push(c("div.list-tags",m.map(u)))}}var g=c("div.title-wrapper",s);return c("div.extra-info",{className:s.length>1?"two-rows":""},g)},jumpToTopPost:function(){var e=this.attrs.topic;e&&l.routeTo(e.get("firstPostUrl"))}})}),define("discourse/widgets/header",["discourse/widgets/widget","discourse/helpers/fa-icon","discourse/widgets/post","discourse/lib/url","discourse/lib/intercept-click","virtual-dom","exports"],function(e,t,r,a,n,i,o){"use strict";var s=e.createWidget,c=t.iconNode,d=r.avatarImg,l=a["default"],h=n.wantsNewWindow,u=i.h,p={buildClasses:function(e){return e.active?"active":void 0},click:function(e){h(e)||(e.preventDefault(),this.attrs.active||this.sendWidgetAction(this.attrs.action))}};s("header-notifications",{html:function(e){var t=this.currentUser,r=[d("medium",{template:t.get("avatar_template"),username:t.get("username")})],a=t.get("unread_notifications");a&&r.push(this.attach("link",{action:e.action,className:"badge-notification unread-notifications",rawLabel:a}));var n=t.get("unread_private_messages");return n&&r.push(this.attach("link",{action:e.action,className:"badge-notification unread-private-messages",rawLabel:n})),r}}),s("user-dropdown",jQuery.extend({tagName:"li.header-dropdown-toggle.current-user",buildId:function(){return"current-user"
|
|||
|
e.multiSelect&&(v.selected=e.selectedQuery(u),v.selectedPostsCount=e.selectedPostsCount)),e.searchService&&(v.highlightTerm=e.searchService.highlightTerm);var f=n[u.id];f&&a.push(this.attach("post-gap",{pos:"before",postId:u.id,gap:f},{model:u}));var b=new Date(v.created_at).getTime();if(s){var C=Math.floor((b-s)/p);C>this.siteSettings.show_time_gap_days&&a.push(this.attach("time-gap",{daysSince:C}))}s=b;var y=g[u.id];y&&(v.cloaked=!0,v.height=y),v.isSmallAction?a.push(this.attach("post-small-action",v,{model:u})):a.push(this.attach("post",v,{model:u}));var x=i[u.id];x&&a.push(this.attach("post-gap",{pos:"after",postId:u.id,gap:x},{model:u})),o=u}}return a}})}),define("discourse/widgets/post",["discourse/widgets/post-cooked","discourse/widgets/decorator-helper","discourse/widgets/widget","discourse/helpers/fa-icon","discourse/lib/transform-post","virtual-dom","discourse/lib/url","discourse/helpers/node","exports"],function(e,t,r,a,n,i,o,s,c){"use strict";function d(e,t){var r=Discourse.Utilities.translateSize(e),a=Discourse.Utilities.avatarUrl(t.template,r);if(a&&0!==a.length){var n=t.username,i={attributes:{alt:"",width:r,height:r,src:Discourse.getURLWithCDN(a),title:n},className:"avatar"};return b("img",i)}}function l(e,t){return b("a",{className:"trigger-user-card "+(t.className||""),attributes:{href:t.url,"data-user-card":t.username}},d(e,t))}function h(e,t){return e.replyToUsername&&(!e.replyDirectlyAbove||!t.suppress_reply_directly_above)}c.avatarImg=d,c.avatarFor=l;var u=e["default"],p=t["default"],m=r.createWidget,g=r.applyDecorators,v=a.iconNode,f=n.transformBasicPost,b=i.h,C=o["default"],y=s.dateNode;m("select-post",{tagName:"div.select-posts",html:function(e){var t=[];e.replyCount>0&&!e.selected&&t.push(this.attach("button",{label:"topic.multi_select.select_replies",action:"selectReplies"}));var r=e.selected?"topic.multi_select.selected":"topic.multi_select.select";return t.push(this.attach("button",{className:"select-post",label:r,labelOptions:{count:e.selectedPostsCount},action:"selectPost"})),t}}),m("reply-to-tab",{tagName:"a.reply-to-tab",buildKey:function(e){return"reply-to-tab-"+e.id},defaultState:function(){return{loading:!1}},html:function(e,t){return t.loading?I18n.t("loading"):[v("mail-forward")," ",d("small",{template:e.replyToAvatarTemplate,username:e.replyToUsername})," ",b("span",e.replyToUsername)]},click:function(){var e=this;this.state.loading=!0,this.sendWidgetAction("toggleReplyAbove").then(function(){return e.state.loading=!1})}}),m("post-avatar",{tagName:"div.topic-avatar",settings:{size:"large"},html:function(e){var t=void 0;return t=e.user_id?l.call(this,this.settings.size,{template:e.avatar_template,username:e.username,url:e.usernameUrl,className:"main-avatar"}):b("i",{className:"fa fa-trash-o deleted-user-avatar"}),[t,b("div.poster-avatar-extra")]}}),m("wiki-edit-button",{tagName:"div.post-info.wiki",title:"post.wiki.about",html:function(){return v("pencil-square-o")},click:function(){this.sendWidgetAction("editPost")}}),m("post-email-indicator",{tagName:"div.post-info.via-email",title:function(e){return e.isAutoGenerated?I18n.t("post.via_auto_generated_email"):I18n.t("post.via_email")},buildClasses:function(e){return e.canViewRawEmail?"raw-email":null},html:function(e){return v(e.isAutoGenerated?"envelope":"envelope-o")},click:function(){this.attrs.canViewRawEmail&&this.sendWidgetAction("showRawEmail")}}),m("post-meta-data",{tagName:"div.topic-meta-data",html:function(e){var t=[this.attach("poster-name",e)];e.isWhisper&&t.push(b("div.post-info.whisper",{attributes:{title:I18n.t("post.whisper")}},v("eye-slash")));var r=new Date(e.created_at);return r&&t.push(b("div.post-info",b("a.post-date",{attributes:{href:e.shareUrl,"data-share-url":e.shareUrl,"data-post-number":e.post_number}},y(r)))),e.via_email&&t.push(this.attach("post-email-indicator",e)),e.version>1&&t.push(this.attach("post-edits-indicator",e)),e.wiki&&t.push(this.attach("wiki-edit-button",e)),e.multiSelect&&t.push(this.attach("select-post",e)),h(e,this.siteSettings)&&t.push(this.attach("reply-to-tab",e)),t.push(b("div.read
|
|||
|
t.name=e,t.html=t.html||o,t.draw=p,Object.keys(t).forEach(function(e){return r.prototype[e]=t[e]}),r}var g=function(){function e(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,r,a){return r&&e(t.prototype,r),a&&e(t,a),t}}(),v=function A(e,t,r){null===e&&(e=Function.prototype);var a=Object.getOwnPropertyDescriptor(e,t);if(void 0===a){var n=Object.getPrototypeOf(e);return null===n?void 0:A(n,t,r)}if("value"in a)return a.value;var i=a.get;if(void 0!==i)return i.call(r)};a.keyDirty=s,a.renderedKey=c,a.queryRegistry=d,a.decorateWidget=l,a.applyDecorators=h,a.changeSetting=u,a.createWidget=m;var f=e.WidgetClickHook,b=e.WidgetClickOutsideHook,C=e.WidgetKeyUpHook,y=t.h,x=r["default"],T={},F={},N={},k={},E=function(){function e(t,r,a){var i=this;if(n(this,e),a=a||{},this.attrs=t||{},this.mergeState=a.state,this.container=r,this.model=a.model,this.key=this.buildKey?this.buildKey(t):null,Ember.testing){var o=this.defaultState(t);"object"!=typeof o?Ember.warn("defaultState must return an object"):Object.keys(o).length>0&&!this.key&&Ember.warn("you need a key when using state "+this.name)}this.site=r.lookup("site:main"),this.siteSettings=r.lookup("site-settings:main"),this.currentUser=r.lookup("current-user:main"),this.capabilities=r.lookup("capabilities:main"),this.store=r.lookup("store:main"),this.appEvents=r.lookup("app-events:main"),this.keyValueStore=r.lookup("key-value-store:main"),this.name&&!function(){var e=k[i.name];e&&Object.keys(e).forEach(function(t){return i.settings[t]=e[t]})}()}return g(e,[{key:"defaultState",value:function(){return{}}},{key:"destroy",value:function(){console.log("destroy called")}},{key:"render",value:function(e){if(e&&e.key&&e.key===this.key?this.state=e.state:this.state=this.defaultState(this.attrs,this.state),this.mergeState&&(this.state=_.merge(this.state,this.mergeState)),e){var t=F[e.key]||{};if(e.shadowTree&&(this.shadowTree=!0,!t&&!F["*"]))return e.vnode;c(e.key);var r=t.onRefresh;r&&this.sendWidgetAction(r,t.refreshArg)}return this.draw(y,this.attrs,this.state)}},{key:"_findAncestorWithProperty",value:function(e){for(var t=this;t;){var r=t[e];if(r)return t;t=t.parentWidget}}},{key:"_findView",value:function(){var e=this._findAncestorWithProperty("_emberView");return e?e._emberView:void 0}},{key:"attach",value:function(e,t,r){var a=T[e];if(!a){if(!this.container)return void console.error("couldn't find container");a=this.container.lookupFactory("widget:"+e)}if(a){var n=new a(t,this.container,r);return n.parentWidget=this,n}throw"Couldn't find "+e+" factory"}},{key:"scheduleRerender",value:function(){for(var e=this;e;){e.shadowTree&&s(e.key);var t=e._emberView;if(t)return t.queueRerender();e=e.parentWidget}}},{key:"_sendComponentAction",value:function(e,t){var r=this._findAncestorWithProperty("_emberView"),a=void 0;if(r){var n=r._emberView,i=n.get("targetObject"),o=n.get(e);if(!o)return void Ember.warn(e+" not found");if(i){var s=i._actions||i.actionHooks||{},c=s[o];if(!c)return n.sendAction(e,t);a=c.call(i,t),a&&a.then||(a=Ember.RSVP.resolve(a))}}return this.rerenderResult(function(){return a})}},{key:"findAncestorModel",value:function(){var e=this._findAncestorWithProperty("model");return e?e.model:void 0}},{key:"rerenderResult",value:function(e){var t=this;this.scheduleRerender();var r=e();return r&&r.then?r.then(function(){return t.scheduleRerender()}):r}},{key:"sendWidgetEvent",value:function(e){var t=this,r=e+"Event";return this.rerenderResult(function(){var e=t._findAncestorWithProperty(r);return e?e[r]():void 0})}},{key:"sendWidgetAction",value:function(e,t){var r=this;return this.rerenderResult(function(){var a=r._findAncestorWithProperty(e);return a?a[e](t):r._sendComponentAction(e,t||r.findAncestorModel())})}}]),e}();a["default"]=E,E.prototype.type="Thunk"}),function(e,t){function r(e){e.toggleClass("open")}var a=function(e){var t,r=e.createElement("details");if(!("open"in r))return!1;var a=e.body||function(){var r=e.documentElement;return t=!0,r.insertBefor
|
|||
|
return o(r,l,t,"i18n",["akismet.posts_to_review"],{}),c(r,h,t,"each",[s(r,t,"model")],{},e,null),d}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n\n");e.appendChild(t,r);var r=e.createComment("");return e.appendChild(t,r),t},render:function(a,n,i){var o=n.dom,s=n.hooks,c=s.get,d=s.block,l=s.inline;o.detectNamespace(i);var h;n.useFragmentCache&&o.canClone?(null===this.cachedFragment&&(h=this.build(o),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=o.cloneNode(this.cachedFragment,!0))):h=this.build(o);var u=o.createMorphAt(h,0,0,i),p=o.createMorphAt(h,2,2,i),m=o.createMorphAt(h,4,4,i),g=o.createMorphAt(h,6,6,i);return o.insertBoundary(h,null),o.insertBoundary(h,0),d(n,u,a,"if",[c(n,a,"stats")],{},e,null),d(n,p,a,"if",[c(n,a,"currentUser.admin")],{},t,null),l(n,m,a,"d-button",[],{action:"refresh",icon:"refresh","class":"btn-primary",label:"akismet.refresh",disabled:c(n,a,"performingAction")}),d(n,g,a,"if",[c(n,a,"length")],{},r,null),h}}}(),t=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.inline;a.detectNamespace(r);var o;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(o=this.build(a),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=a.cloneNode(this.cachedFragment,!0))):o=this.build(a);var s=a.createMorphAt(o,1,1,r);return i(t,s,e,"d-button",[],{label:"akismet.change_settings",icon:"gear","class":"settings-button",action:"showSettings"}),o}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(t,r,a){var n=r.dom,i=r.hooks,o=i.get,s=i.block,c=i.inline;n.detectNamespace(a);var d;r.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(d=this.build(n),this.hasRendered?this.cachedFragment=d:this.hasRendered=!0),this.cachedFragment&&(d=n.cloneNode(this.cachedFragment,!0))):d=this.build(n);var l=n.createMorphAt(d,0,0,a),h=n.createUnsafeMorphAt(d,2,2,a);return n.insertBoundary(d,0),s(r,l,t,"if",[o(r,t,"currentUser.admin")],{},e,null),c(r,h,t,"i18n",["akismet.not_enabled"],{}),d}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createComment("");return e.appendChild(t,r),t},render:function(r,a,n){var i=a.dom,o=a.hooks,s=o.get,c=o.block;i.detectNamespace(n);var d;a.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(d=this.build(i),this.hasRendered?this.cachedFragment=d:this.hasRendered=!0),this.cachedFragment&&(d=i.cloneNode(this.cachedFragment,!0))):d=this.build(i);var l=i.createMorphAt(d,0,0,n);return i.insertBoundary(d,null),i.insertBoundary(d,0),c(a,l,r,"if",[s(a,r,"enabled")],{},e,t),d}}}()),define("discourse/plugins/discourse-data-explorer/admin/adapters/query",["admin/adapters/build-plugin","exports"],function(e,t){"use strict";var r=e["default"];t["default"]=r("explorer").extend({})}),define("discourse/plugins/discourse-data-explorer/discourse/lib/binary-search",["exports"],function(e){"use strict";function t(e,t,r){for(var a,n=0,i=e.length-1,o=r||"id";i>=n;){if(a=Math.floor((n+i)/2),Em.get(e[a],o)===t)return a;Em.get(e[a],o)<t?n=a+1:i=a-1}return-1}e["default"]=
|
|||
|
contexts:[t],data:n}))+")\n"},3:function(e,t,r,a,n){return' <a href="'+e.escapeExpression(r.get.call(null!=t?t:{},"baseuri",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:n}))+"/t/"+e.escapeExpression(r.get.call(null!=t?t:{},"id",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:n}))+'">'+e.escapeExpression(r.get.call(null!=t?t:{},"id",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:n}))+"</a>\n"},compiler:[7,">= 4.0.0"],main:function(e,t,r,a,n){var i;return null!=(i=r["if"].call(null!=t?t:{},"topic",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,n,0),inverse:e.program(3,n,0),types:["PathExpression"],contexts:[t],data:n}))?i:""},useData:!0}),Ember.TEMPLATES["javascripts/explorer/badge.raw"]=Discourse.EmberCompatHandlebars.template({compiler:[7,">= 4.0.0"],main:function(e,t,r,a,n){return'<a href="'+e.escapeExpression(r.get.call(null!=t?t:{},"baseuri",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:n}))+"/badges/"+e.escapeExpression(r.get.call(null!=t?t:{},"badge.id",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:n}))+"/"+e.escapeExpression(r.get.call(null!=t?t:{},"badge.name",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:n}))+'"\n class="user-badge '+e.escapeExpression(r.get.call(null!=t?t:{},"badge.badgeTypeClassName",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:n}))+'"\n title="'+e.escapeExpression(r.get.call(null!=t?t:{},"badge.displayDescription",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:n}))+'"\n data-badge-name="'+e.escapeExpression(r.get.call(null!=t?t:{},"badge.name",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:n}))+'">'+e.escapeExpression((r["icon-or-image"]||t&&t["icon-or-image"]||r.helperMissing).call(null!=t?t:{},"badge.icon",{name:"icon-or-image",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:n}))+'\n<span class="badge-display-name">'+e.escapeExpression(r.get.call(null!=t?t:{},"badge.displayName",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:n}))+"</span></a>\n"},useData:!0}),Ember.TEMPLATES["javascripts/explorer-query-result"]=Ember.HTMLBars.template(function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("pre"),a=e.createElement("code"),n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode("\n ");return e.appendChild(a,n),e.appendChild(r,a),e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.content;a.detectNamespace(r);var o;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(o=this.build(a),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=a.cloneNode(this.cachedFragment,!0))):o=this.build(a);var s=a.createMorphAt(a.childAt(o,[1,0]),0,0);return i(t,s,e,"content.explain"),o}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:1,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("th"),a=e.createComment("");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r,a){var n=t.dom,i=t.hooks,o=i.set,s=i.content;n.detectNamespace(r);var c;t.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(c=this.build(n),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=n.cloneNode(this.cachedFragment,!0))):c=this.build(n);var d=n.createMorphAt(n.childAt(c,[1]),0,0);return o(t,e,"col",a[0]),s(t,d,e,"col"),c}}}(),r=function(){return{isHTMLBars:!0,re
|
|||
|
this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=n.cloneNode(this.cachedFragment,!0))):c=this.build(n);var d=n.createMorphAt(n.childAt(c,[1,0]),0,0);return o(t,e,"err",a[0]),s(t,d,e,"err"),c}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createComment("");return e.appendChild(t,r),t},render:function(t,r,a){var n=r.dom,i=r.hooks,o=i.get,s=i.block;n.detectNamespace(a);var c;r.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(c=this.build(n),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=n.cloneNode(this.cachedFragment,!0))):c=this.build(n);var d=n.createMorphAt(c,0,0,a);return n.insertBoundary(c,null),n.insertBoundary(c,0),s(r,d,t,"each",[o(r,t,"results.errors")],{},e,null),c}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("div");e.setAttribute(r,"class","query-results");var a=e.createTextNode("\n");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a=e.createTextNode(" ");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(r,a,n){var i=a.dom,o=a.hooks,s=o.get,c=o.block;i.detectNamespace(n);var d;a.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(d=this.build(i),this.hasRendered?this.cachedFragment=d:this.hasRendered=!0),this.cachedFragment&&(d=i.cloneNode(this.cachedFragment,!0))):d=this.build(i);var l=i.createMorphAt(i.childAt(d,[1]),1,1);return c(a,l,r,"if",[s(a,r,"showResults")],{},e,t),d}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createComment("");return e.appendChild(t,r),t},render:function(t,r,a){var n=r.dom,i=r.hooks,o=i.get,s=i.block;n.detectNamespace(a);var c;r.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(c=this.build(n),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=n.cloneNode(this.cachedFragment,!0))):c=this.build(n);var d=n.createMorphAt(c,0,0,a);return n.insertBoundary(c,null),n.insertBoundary(c,0),s(r,d,t,"if",[o(r,t,"results")],{},e,null),c}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createElement("div");e.setAttribute(r,"class","query-list");var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n\n");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n ");e.appendChild(t,r);var r=e.createElement("hr");e.appendChild(t,r);var r=e.createTextNode("\n\n");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n ");e.appendChild(t,r);var r=e.createElement("div");e.setAttribute(r,"class","explorer-pad-bottom"),e.appendChild(t,r);var r=e.createTextNode("\n\n");return e.appendChild(t,r),t},render:function(i,o,s){var c=o.dom,d=o.hooks,l=d.get,h=d.inline,u=d.block;c.detectNamespace(s);var p;o.useFragmentCache&&c.canClone?(null===this.cachedFragment&&(p=this.build(c),this.hasRendered?this.cachedFragment=p:this.hasRendered=!0),this.cachedFragment&&(p=c.cloneNode(this.cachedFragment,!0))):p
|
|||
|
t["default"]=Ember.Component.extend({classNames:["google-dfp-ad"],loadedGoogletag:!1,divId:function(){return"div-gpt-ad-"+this.get("placement")}.property("placement"),fixedSize:function(){return Discourse.Mobile.mobileView?new Ember.Handlebars.SafeString("width: 320px; height: 50px;"):new Ember.Handlebars.SafeString("width: 728px; height: 90px;")}.property(),refreshAd:function(){var e=s[this.get("placement")];e&&this.get("loadedGoogletag")&&googletag.cmd.push(function(){googletag.pubads().refresh([e])})}.observes("refreshOnChange"),_initGoogleDFP:function(){var e=this;r(Discourse.SiteSettings).then(function(){e.set("loadedGoogletag",!0),googletag.cmd.push(function(){var t=a(e.get("placement"),e.siteSettings);t&&(googletag.display(e.get("divId")),googletag.pubads().refresh([t]))})})}.on("didInsertElement")})}),Ember.TEMPLATES["javascripts/connectors/topic-above-suggested/discourse-google-dfp"]=Ember.HTMLBars.template(function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.get,o=n.inline;a.detectNamespace(r);var s;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(s=this.build(a),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=a.cloneNode(this.cachedFragment,!0))):s=this.build(a);var c=a.createMorphAt(s,1,1,r);return o(t,c,e,"google-dfp-ad",[],{placement:"topic-bottom",refreshOnChange:i(t,e,"model.id")}),s}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createComment("");return e.appendChild(t,r),t},render:function(t,r,a){var n=r.dom,i=r.hooks,o=i.get,s=i.block;n.detectNamespace(a);var c;r.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(c=this.build(n),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=n.cloneNode(this.cachedFragment,!0))):c=this.build(n);var d=n.createMorphAt(c,0,0,a);return n.insertBoundary(c,null),n.insertBoundary(c,0),s(r,d,t,"if",[o(r,t,"siteSettings.dfp_mobile_show_topic_bottom")],{},e,null),c}}}(),t=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.get,o=n.inline;a.detectNamespace(r);var s;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(s=this.build(a),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=a.cloneNode(this.cachedFragment,!0))):s=this.build(a);var c=a.createMorphAt(s,1,1,r);return o(t,c,e,"google-dfp-ad",[],{placement:"topic-bottom",refreshOnChange:i(t,e,"model.id")}),s}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createComment("");return e.appendChild(t,r),t},render:function(t,r,a){var n=r.dom,i=r.hooks,o=i.get,s=i.block;n.detectNamespace(a);var c;r.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(c=this.build(n),this.hasRendered?this.cachedFragment=c:this.hasRendered=!0),this.cachedFragment&&(c=n.cloneNode(this.cachedFragment,!0))):c=this.build(n);var d=n.createMorphAt(c,0,0,a);return n.insertBoundary(c,null),n.insertBoundary(c,0),s(r,d,t,"if",[o(r,t,"siteSettings.dfp_show_topic_bottom")],{},e,null),c}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createComment("");return e.appendChild(t,r),t},render:function(r,a,n){var i=a.dom,o=a.hooks,s=o.get,c=o.block;i.detectNamespace(n);var d;a.u
|
|||
|
e.appendChild(r,a);var a=e.createElement("div");e.setAttribute(a,"class","posted-by");var n=e.createTextNode("\n");e.appendChild(a,n);var n=e.createComment("");e.appendChild(a,n);var n=e.createTextNode(" ");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createElement("div");e.setAttribute(a,"class","note-contents");var n=e.createTextNode("\n ");e.appendChild(a,n);var n=e.createElement("div");e.setAttribute(n,"class","note-info");var i=e.createTextNode("\n ");e.appendChild(n,i);var i=e.createElement("span");e.setAttribute(i,"class","username");var o=e.createComment("");e.appendChild(i,o),e.appendChild(n,i);var i=e.createTextNode("\n ");e.appendChild(n,i);var i=e.createElement("span");e.setAttribute(i,"class","post-date");var o=e.createComment("");e.appendChild(i,o),e.appendChild(n,i);var i=e.createTextNode("\n\n");e.appendChild(n,i);var i=e.createComment("");e.appendChild(n,i);var i=e.createTextNode(" ");e.appendChild(n,i),e.appendChild(a,n);var n=e.createTextNode("\n\n ");e.appendChild(a,n);var n=e.createElement("div");e.setAttribute(n,"class","cooked");var i=e.createTextNode("\n ");e.appendChild(n,i);var i=e.createComment("");e.appendChild(n,i);var i=e.createTextNode("\n ");e.appendChild(n,i),e.appendChild(a,n);var n=e.createTextNode("\n ");e.appendChild(a,n),e.appendChild(r,a);var a=e.createTextNode("\n\n ");e.appendChild(r,a);var a=e.createElement("div");e.setAttribute(a,"class","clearfix"),e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(r,a,n,i){var o=a.dom,s=a.hooks,c=s.set,d=s.get,l=s.block,h=s.content,u=s.inline;o.detectNamespace(n);var p;a.useFragmentCache&&o.canClone?(null===this.cachedFragment&&(p=this.build(o),this.hasRendered?this.cachedFragment=p:this.hasRendered=!0),this.cachedFragment&&(p=o.cloneNode(this.cachedFragment,!0))):p=this.build(o);var m=o.childAt(p,[1]),g=o.childAt(m,[3]),v=o.childAt(g,[1]),f=o.createMorphAt(o.childAt(m,[1]),1,1),b=o.createMorphAt(o.childAt(v,[1]),0,0),C=o.createMorphAt(o.childAt(v,[3]),0,0),y=o.createMorphAt(v,5,5),x=o.createMorphAt(o.childAt(g,[3]),1,1);return c(a,r,"n",i[0]),l(a,f,r,"user-link",[],{user:d(a,r,"n.created_by")},e,null),h(a,b,r,"n.created_by.username"),u(a,C,r,"age-with-tooltip",[d(a,r,"n.created_at")],{}),l(a,y,r,"if",[d(a,r,"n.can_delete")],{},t,null),u(a,x,r,"cook-text",[d(a,r,"n.raw")],{}),p}}}();return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createElement("div");e.setAttribute(r,"class","modal-body staff-notes-modal");var a=e.createTextNode("\n\n");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a=e.createTextNode("\n ");e.appendChild(r,a);var a=e.createComment("");e.appendChild(r,a);var a=e.createTextNode("\n");e.appendChild(r,a),e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(t,r,a){var n=r.dom,i=r.hooks,o=i.get,s=i.block,c=i.inline;n.detectNamespace(a);var d;r.useFragmentCache&&n.canClone?(null===this.cachedFragment&&(d=this.build(n),this.hasRendered?this.cachedFragment=d:this.hasRendered=!0),this.cachedFragment&&(d=n.cloneNode(this.cachedFragment,!0))):d=this.build(n);var l=n.childAt(d,[0]),h=n.createMorphAt(l,1,1),u=n.createMorphAt(l,3,3),p=n.createMorphAt(l,5,5);return s(r,h,t,"each",[o(r,t,"model")],{},e,null),c(r,u,t,"textarea",[],{value:o(r,t,"newNote")}),c(r,p,t,"d-button",[],{action:"attachNote",label:"staff_notes.attach","class":"btn-primary",disabled:o(r,t,"attachDisabled")}),d}}}()),define("discourse/plugins/hosted-site/initializers/anon-init",["ember-addons/ember-computed-decorators","exports"],function(e,t){"use strict";function r(e){for(var t={},r=0;r<e.length;r++){var a=e[r],n=a.decorators,i=a.key;if(delete a.key,delete a.decorators,a.enumerable=
|
|||
|
this.get("isMultiple")||this.get("poll.options").forEach(function(e){return e.set("selected",!1)}),e.toggleProperty("selected"),this.get("isMultiple")||t||this.send("castVotes")}},castVotes:function(){var e=this;if(this.get("canCastVotes")){if(!this.currentUser)return this.send("showLogin");this.set("loading",!0),Discourse.ajax("/polls/vote",{type:"PUT",data:{post_id:this.get("post.id"),poll_name:this.get("poll.name"),options:this.get("selectedOptions")}}).then(function(t){e.setProperties({vote:t.vote,showResults:!0}),e.set("model",Em.Object.create(t.poll))})["catch"](function(){bootbox.alert(I18n.t("poll.error_while_casting_votes"))})["finally"](function(){e.set("loading",!1)})}},toggleResults:function(){this.toggleProperty("showResults")},toggleStatus:function(){if(this.get("canToggleStatus")){var e=this,t=this.get("isClosed")?"poll.open.confirm":"poll.close.confirm";bootbox.confirm(I18n.t(t),I18n.t("no_value"),I18n.t("yes_value"),function(t){t&&(e.set("loading",!0),Discourse.ajax("/polls/toggle_status",{type:"PUT",data:{post_id:e.get("post.id"),poll_name:e.get("poll.name"),status:e.get("isClosed")?"open":"closed"}}).then(function(t){e.set("model",Em.Object.create(t.poll))})["catch"](function(){bootbox.alert(I18n.t("poll.error_while_toggling_status"))})["finally"](function(){e.set("loading",!1)}))})}}}}}]))}),define("discourse/plugins/poll/initializers/extend-for-poll",["discourse/lib/plugin-api","exports"],function(e,t){"use strict";function r(e,t,r,a){var n=e.lookup("controller:poll",{singleton:!1}),i=e.lookup("view:poll");return n.set("vote",a),n.setProperties({model:r,post:t}),i.set("controller",n),i}function a(e){function t(){i&&Object.keys(i).forEach(function(e){return i[e].destroy()}),i=null}function a(a,n){var o=$(".poll",a);if(o.length){var s=n.getModel();e.preventCloak(s.id);var c=s.get("polls_votes")||{};s.pollsChanged();var d=s.get("pollsObject");if(d){t();var l={};o.each(function(e,t){var a=$("<div>"),i=$(t),o=i.data("poll-name"),h=o+"-"+s.id,u=r(n.container,s,d[o],c[o]);i.replaceWith(a),Em.run.next(function(){return u.renderer.replaceIn(u,a[0])}),l[h]=u}),i=l}}}var n=e.container.lookupFactory("controller:topic");n.reopen({subscribe:function(){var e=this;this._super(),this.messageBus.subscribe("/polls/"+this.get("model.id"),function(t){var r=e.get("model.postStream").findLoadedPost(t.post_id);r&&r.set("polls",t.polls)})},unsubscribe:function(){this.messageBus.unsubscribe("/polls/*"),this._super()}});var o=e.container.lookupFactory("model:post");o.reopen({_polls:null,pollsObject:null,pollsChanged:function(){var e=this,t=this.get("polls");t&&(this._polls=this._polls||{},_.map(t,function(t,r){var a=e._polls[r];a?e._polls[r].setProperties(t):e._polls[r]=Em.Object.create(t)}),this.set("pollsObject",this._polls))}.observes("polls")}),e.decorateCooked(a,{onlyStream:!0}),e.cleanupStream(t)}var n=e.withPluginApi,i=void 0;t["default"]={name:"extend-for-poll",initialize:function(){n("0.1",a)}}}),Ember.TEMPLATES["javascripts/poll"]=Ember.HTMLBars.template(function(){var e=function(){var e=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r){var a=t.dom,n=t.hooks,i=n.get,o=n.inline;a.detectNamespace(r);var s;t.useFragmentCache&&a.canClone?(null===this.cachedFragment&&(s=this.build(a),this.hasRendered?this.cachedFragment=s:this.hasRendered=!0),this.cachedFragment&&(s=a.cloneNode(this.cachedFragment,!0))):s=this.build(a);var c=a.createMorphAt(s,1,1,r);return o(t,c,e,"poll-results-number",[],{poll:i(t,e,"poll")}),s}}}(),t=function(){return{isHTMLBars:!0,revision:"Ember@1.12.2",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(e){var t=e.createDocumentFragment(),r=e.createTextNode(" ");e.appendChild(t,r);var r=e.createComment("");e.appendChild(t,r);var r=e.createTextNode("\n");return e.appendChild(t,r),t},render:function(e,t,r)
|
|||
|
//# sourceMappingURL=https://cdn.discourse.org/meta/assets/application-779436949075eb4986448aa1be0833b1c1e188059fbc11e7da798d0c2319d709.js.map
|