wp/wp-includes/js/dist/token-list.min.js
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
     1 /*! This file is auto-generated */
     1 /*! This file is auto-generated */
     2 this.wp=this.wp||{},this.wp.tokenList=function(t){var e={};function r(n){if(e[n])return e[n].exports;var u=e[n]={i:n,l:!1,exports:{}};return t[n].call(u.exports,u,u.exports,r),u.l=!0,u.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var u in t)r.d(n,u,function(e){return t[e]}.bind(null,u));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s="hwXU")}({YLtl:function(t,e){t.exports=window.lodash},hwXU:function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return u}));var n=r("YLtl");class u{constructor(t=""){this.value=t,this._currentValue,this._valueAsArray}entries(...t){return this._valueAsArray.entries(...t)}forEach(...t){return this._valueAsArray.forEach(...t)}keys(...t){return this._valueAsArray.keys(...t)}values(...t){return this._valueAsArray.values(...t)}get value(){return this._currentValue}set value(t){t=String(t),this._valueAsArray=Object(n.uniq)(Object(n.compact)(t.split(/\s+/g))),this._currentValue=this._valueAsArray.join(" ")}get length(){return this._valueAsArray.length}toString(){return this.value}*[Symbol.iterator](){return yield*this._valueAsArray}item(t){return this._valueAsArray[t]}contains(t){return-1!==this._valueAsArray.indexOf(t)}add(...t){this.value+=" "+t.join(" ")}remove(...t){this.value=Object(n.without)(this._valueAsArray,...t).join(" ")}toggle(t,e){return void 0===e&&(e=!this.contains(t)),e?this.add(t):this.remove(t),e}replace(t,e){return!!this.contains(t)&&(this.remove(t),this.add(e),!0)}supports(){return!0}}}}).default;
     2 !function(){"use strict";var r={d:function(t,e){for(var a in e)r.o(e,a)&&!r.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:e[a]})},o:function(r,t){return Object.prototype.hasOwnProperty.call(r,t)}},t={};r.d(t,{default:function(){return a}});var e=window.lodash;class a{constructor(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.value=r,this._currentValue,this._valueAsArray}entries(){return this._valueAsArray.entries(...arguments)}forEach(){return this._valueAsArray.forEach(...arguments)}keys(){return this._valueAsArray.keys(...arguments)}values(){return this._valueAsArray.values(...arguments)}get value(){return this._currentValue}set value(r){r=String(r),this._valueAsArray=(0,e.uniq)((0,e.compact)(r.split(/\s+/g))),this._currentValue=this._valueAsArray.join(" ")}get length(){return this._valueAsArray.length}toString(){return this.value}*[Symbol.iterator](){return yield*this._valueAsArray}item(r){return this._valueAsArray[r]}contains(r){return-1!==this._valueAsArray.indexOf(r)}add(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];this.value+=" "+t.join(" ")}remove(){for(var r=arguments.length,t=new Array(r),a=0;a<r;a++)t[a]=arguments[a];this.value=(0,e.without)(this._valueAsArray,...t).join(" ")}toggle(r,t){return void 0===t&&(t=!this.contains(r)),t?this.add(r):this.remove(r),t}replace(r,t){return!!this.contains(r)&&(this.remove(r),this.add(t),!0)}supports(){return!0}}(window.wp=window.wp||{}).tokenList=t.default}();