PageSourceSearch

https://koudashijie.com/javascripts/chunks/standardsEditView-c84b0733cf85b2b2abf4.bundle.js

js koudashijie.com collected 2026-10-08 11:25:56 UTC 9,590 bytes, 3 lines download raw bytes

1/*! For license information please see standardsEditView-c84b0733cf85b2b2abf4.bundle.js.LICENSE.txt */
2(self.webpackChunkcodecombat=self.webpackChunkcodecombat||[]).push([[7073],{403406:(e,t,n)=>{"use strict";var i,o=n(619755);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,s(i.key),i)}}function s(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t);if("object"!=a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==a(t)?t:t+""}function l(e,t,n){return t=h(t),function(e,t){if(t&&("object"==a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(t,n||[],h(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=c(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},u.apply(null,arguments)}function c(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}n(243378);var p=n(976911),v=n(679302),m=n(223049),y=(n(311729),n(3032)),b=(n(186421),n(891917));n(830356),n(290474),n(229294);var g=n(802122),w=n(975434),O=[];e.exports=((i=function(e){function t(e,n){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=l(this,t,[e])).standardsID=n,i.standards=new m({_id:i.standardsI
2D}),i.standards.saveBackups=!0,i.supermodel.loadModel(i.standards),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),n=t,a=[{key:"initClass",value:function(){this.prototype.id="editor-standards-edit-view",this.prototype.template=v,this.prototype.events={"click #save-button":"onClickSaveButton","click #i18n-button":"onPopulateI18N"}}}],(i=[{key:"onLoaded",value:function(){var e=this;return u(h(t.prototype),"onLoaded",this).call(this),this.concepts=new g([]),this.listenTo(this.concepts,"sync",(function(){return O=e.concepts.models,w.concept.enum=_.map(O,(function(e){return e.get("key")})),e.onConceptsLoaded()})),this.concepts.fetch({data:{skip:0,limit:1e3}})}},{key:"onConceptsLoaded",value:function(){var e=this;return this.buildTreema(),this.listenTo(this.standards,"change",(function(){return e.standards.updateI18NCoverage(),e.treema.set("/",e.standards.attributes)}))}},{key:"buildTreema",value:function(){if(null==this.treema&&this.standards.loaded){var e={data:o.extend(!0,{},this.standards.attributes),filePath:"db/standards/".concat(this.standards.get("_id")),schema:m.schema,readOnly:me.get("anonymous"),supermodel:this.supermodel,nodeClasses:{"concepts-list":b.conceptNodes(O).ConceptsListNode,concept:b.conceptNodes(O).ConceptNode,"us-state-code":b.StateNode}};return this.treema=this.$el.find("#standards-treema").treema(e),this.treema.build(),null!=this.treema.childrenTreemas.rewards?this.treema.childrenTreemas.rewards.open(3):void 0}}},{key:"afterRender",value:function(){if(u(h(t.prototype),"afterRender",this).call(this),this.supermodel.finished())return me.get("anonymous")&&this.showReadOnly(),this.patchesView=this.insertSubView(new y(this.standards),this.$el.find(".patches-view")),this.patchesView.load()}},{key:"onPopulateI18N",value:function(){return this.standards.populateI18N()}},{key:"onClickSaveButton",value:function(e){var t=this;for(var n in this.treema.endExistingEdits(),this.treema.data){var i=this.treema.data[n];this.standards.set(n,i)}this.standards.updateI18NCoverage();var o=this.standards.save();return o.error((function(e,t,n){return console.error(t)})),o.success((function(){var e="/editor/standards/".concat(t.standards.get("slug")||t.standards.id);return document.location.href=e}))}}])&&r(n.prototype,i),a&&r(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(p)).initClass(),i)},250450:(e,t,n)=>{var i,o;i=[n(619755)],void 0===(o=function(e){var t,n,i=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],o="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],a=Array.prototype.slice;if(e.event.fixHooks)for(var r=i.length;r;)e.event.fixHooks[i[--r]]=e.event.mouseHooks;var s=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=o.length;t;)this.addEventListener(o[--t],l,!1);else this.onmousewheel=l;e.data(this,"mousewheel-line-height",s.getLineHeight(this)),e.data(this,"mousewheel-page-height",s.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=o.length;t;)this.removeEventListener(o[--t],l,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var n=e(t),i=n["offsetParent"in e.fn?"offsetParent":"parent"]();return i.length||(i=e("body")),parseInt(i.css("fontSize"),10)||parseInt(n.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function l(i){var o=i||window.event,r=a.call(arguments,1),l=0,c=0,h=0,f=0,p=0,v=0;if((i=e.event.fix(o)).type="mousewheel","detail"in o&&(h=-1*o.detail),"wheelDelta"in o&&(h=o.wheelDelta),"wheelDeltaY"in o&&(h=o.wheelDeltaY),"wheelDeltaX"in o&&(c=-1*o.wheelDeltaX),"axis"in o&&o.axis===o.HORIZONTAL_AXIS&&(c=-1*h,h=0),l=0===h?c:h,"deltaY"in o&&(l=h=-1*o.deltaY),"deltaX"in o&&(c=o.deltaX,0===h&&(l=-1*c)),0!==h||0!==c){if(1===o.deltaMode){var m=e.data(this,"mousewheel-line-height");l*=m,h*=m,c*=m}else if(2===o.deltaMode){var y=e.data(this,"mousewheel-page-height");l*=y,h*=y,c*=y}if(f=Math.max(Math.abs(h),Math.abs(c)),(!n||f<n)&&(n=f,u(o,f)&&(n/=40)),u(o,f)&&(l/=40,c/=40,h/=40),l=Math[l>=1?"floor":"ceil"](l/n),c=Math[c>=1?"floor":"ceil"](c/n),h=Math[h>=1?"floor":"ceil"](h/n),s.settings.normalizeOffset&&this.getBoundingClientRect){var b=this.getBoundingClientRect();p=i.clientX-b.left,v=i.clientY-b.top}return i.deltaX=c,i.deltaY=h,i.deltaFactor=n,i.offsetX=p,i.offsetY=v,i.deltaMode=0,r.unshift(i,l,c,h),t&&clearTimeout(t),t=setTimeout(d,200),(e.event.dispatch||e.event.handle).apply(this,r)}}function d(){n=null}function u(e,t){return s.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}.apply(t,i))||(e.exports=o)},731909:()=>{}
2,679302:(e,t,n)=>{var i=n(477055);e.exports=function(e){var t,n="",o=e||{};return function(e,o,a){n=n+'<nav class="legacy" id="main-nav">\x3c!-- Will be replaced by Navigation.vue in RootView--\x3e</nav><div id="site-content-area"><div><ol class="breadcrumb"><li><a href="/editor" data-i18n="editor.main_title">CodeCombat Editors</a></li><li><a href="/editor/standards" data-i18n="editor.standards_title"></a></li><li class="active">'+i.escape(null==(t=a.standards.get("name"))?"":t)+"</li></ol></div>";var r=!o.get("anonymous");n=n+'<button class="standards-tool-button btn btn-primary" data-i18n="editor.pop_i18n"'+i.attr("disabled",!0===r?void 0:"true",!0,!0)+' id="i18n-button"></button><button class="standards-tool-button btn btn-primary" data-i18n="common.save"'+i.attr("disabled",!0===r?void 0:"true",!0,!0)+' id="save-button">Save</button><h3><span data-i18n="editor.standards_edit_title"></span>: '+i.escape(null==(t=a.standards.attributes.name)?"":t)+"</h3>",o.isAdmin()||(n+='<div class="alert alert-warning">Can only edit translations currently</div>'),n+='<div id="standards-treema"></div><h3 data-i18n="resources.patches">Patches</h3><div class="patches-view"></div><hr></div><div class="achievement-corner"></div>',e.chinaHome&&(n+='<div class="floatCS"><img class="qr" src="https://assets.koudashijie.com/images/homeVersion/service_qr.png"><img class="icon" src="https://assets.koudashijie.com/images/home/icon/customerservice.png"><div class="text">微信客服</div></div>'),n+='<footer id="site-footer">\x3c!-- Will be replaced by Footer.vue in RootView--\x3e</footer>'}.call(this,"features"in o?o.features:"undefined"!=typeof features?features:void 0,"me"in o?o.me:"undefined"!=typeof me?me:void 0,"view"in o?o.view:"undefined"!=typeof view?view:void 0),n}},243378:(e,t,n)=>{var i=n(731909);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals),(0,n(745346).Z)("0a6c92a6",i,!0,{})}}]);
3//# sourceMappingURL=standardsEditView-c84b0733cf85b2b2abf4.bundle.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.