59 lines
728 KiB
JavaScript
59 lines
728 KiB
JavaScript
|
|
(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[180],{1125:function(A,e,t){(function(){var e={9662:function(A,e,t){var i=t(7854),n=t(614),r=t(6330),o=i.TypeError;A.exports=function(A){if(n(A))return A;throw o(r(A)+" is not a function")}},6077:function(A,e,t){var i=t(7854),n=t(614),r=i.String,o=i.TypeError;A.exports=function(A){if("object"==typeof A||n(A))return A;throw o("Can't set "+r(A)+" as a prototype")}},9670:function(A,e,t){var i=t(7854),n=t(111),r=i.String,o=i.TypeError;A.exports=function(A){if(n(A))return A;throw o(r(A)+" is not an object")}},1318:function(A,e,t){var i=t(5656),n=t(1400),r=t(6244),o=function(A){return function(e,t,o){var s,a=i(e),l=r(a),c=n(o,l);if(A&&t!=t){while(l>c)if(s=a[c++],s!=s)return!0}else for(;l>c;c++)if((A||c in a)&&a[c]===t)return A||c||0;return!A&&-1}};A.exports={includes:o(!0),indexOf:o(!1)}},4326:function(A,e,t){var i=t(1702),n=i({}.toString),r=i("".slice);A.exports=function(A){return r(n(A),8,-1)}},648:function(A,e,t){var i=t(7854),n=t(1694),r=t(614),o=t(4326),s=t(5112),a=s("toStringTag"),l=i.Object,c="Arguments"==o(function(){return arguments}()),d=function(A,e){try{return A[e]}catch(t){}};A.exports=n?o:function(A){var e,t,i;return void 0===A?"Undefined":null===A?"Null":"string"==typeof(t=d(e=l(A),a))?t:c?o(e):"Object"==(i=o(e))&&r(e.callee)?"Arguments":i}},7741:function(A,e,t){var i=t(1702),n=i("".replace),r=function(A){return String(Error(A).stack)}("zxcasd"),o=/\n\s*at [^:]*:[^\n]*/,s=o.test(r);A.exports=function(A,e){if(s&&"string"==typeof A)while(e--)A=n(A,o,"");return A}},9920:function(A,e,t){var i=t(2597),n=t(3887),r=t(1236),o=t(3070);A.exports=function(A,e,t){for(var s=n(e),a=o.f,l=r.f,c=0;c<s.length;c++){var d=s[c];i(A,d)||t&&i(t,d)||a(A,d,l(e,d))}}},8880:function(A,e,t){var i=t(9781),n=t(3070),r=t(9114);A.exports=i?function(A,e,t){return n.f(A,e,r(1,t))}:function(A,e,t){return A[e]=t,A}},9114:function(A){A.exports=function(A,e){return{enumerable:!(1&A),configurable:!(2&A),writable:!(4&A),value:e}}},9781:function(A,e,t){var i=t(7293);A.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(A,e,t){var i=t(7854),n=t(111),r=i.document,o=n(r)&&n(r.createElement);A.exports=function(A){return o?r.createElement(A):{}}},8113:function(A,e,t){var i=t(5005);A.exports=i("navigator","userAgent")||""},7392:function(A,e,t){var i,n,r=t(7854),o=t(8113),s=r.process,a=r.Deno,l=s&&s.versions||a&&a.version,c=l&&l.v8;c&&(i=c.split("."),n=i[0]>0&&i[0]<4?1:+(i[0]+i[1])),!n&&o&&(i=o.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=o.match(/Chrome\/(\d+)/),i&&(n=+i[1]))),A.exports=n},748:function(A){A.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2914:function(A,e,t){var i=t(7293),n=t(9114);A.exports=!i((function(){var A=Error("a");return!("stack"in A)||(Object.defineProperty(A,"stack",n(1,7)),7!==A.stack)}))},2109:function(A,e,t){var i=t(7854),n=t(1236).f,r=t(8880),o=t(1320),s=t(3505),a=t(9920),l=t(4705);A.exports=function(A,e){var t,c,d,u,h,g,p=A.target,f=A.global,m=A.stat;if(c=f?i:m?i[p]||s(p,{}):(i[p]||{}).prototype,c)for(d in e){if(h=e[d],A.noTargetGet?(g=n(c,d),u=g&&g.value):u=c[d],t=l(f?d:p+(m?".":"#")+d,A.forced),!t&&void 0!==u){if(typeof h==typeof u)continue;a(h,u)}(A.sham||u&&u.sham)&&r(h,"sham",!0),o(c,d,h,A)}}},7293:function(A){A.exports=function(A){try{return!!A()}catch(e){return!0}}},2104:function(A,e,t){var i=t(4374),n=Function.prototype,r=n.apply,o=n.call;A.exports="object"==typeof Reflect&&Reflect.apply||(i?o.bind(r):function(){return o.apply(r,arguments)})},4374:function(A,e,t){var i=t(7293);A.exports=!i((function(){var A=function(){}.bind();return"function"!=typeof A||A.hasOwnProperty("prototype")}))},6916:function(A,e,t){var i=t(4374),n=Function.prototype.call;A.exports=i?n.bind(n):function(){return n.apply(n,arguments)}},6530:function(A,e,t){var i=t(9781),n=t(2597),r=Function.prototype,o=i&&Object.getOwnPropertyDescriptor,s=n(r,"name"),a=s&&"something"===function(){}.name,l=s&&(!i||i&&o(r,"name").configurable);A.exports={EXISTS:s,PROPER:a,CONFIGUR
|
||
|
|
/*!
|
||
|
|
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
|
||
|
|
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
||
|
|
* Released under MIT License
|
||
|
|
*/
|
||
|
|
(function(e,t){A.exports=t()})(0,(function(){"use strict";
|
||
|
|
/*! *****************************************************************************
|
||
|
|
Copyright (c) Microsoft Corporation.
|
||
|
|
|
||
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
||
|
|
purpose with or without fee is hereby granted.
|
||
|
|
|
||
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
|
|
PERFORMANCE OF THIS SOFTWARE.
|
||
|
|
***************************************************************************** */var A=function(e,t){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t])},A(e,t)};function e(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}A(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var t=function(){return t=Object.assign||function(A){for(var e,t=1,i=arguments.length;t<i;t++)for(var n in e=arguments[t],e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n]);return A},t.apply(this,arguments)};function i(A,e,t,i){function n(A){return A instanceof t?A:new t((function(e){e(A)}))}return new(t||(t=Promise))((function(t,r){function o(A){try{a(i.next(A))}catch(je){r(je)}}function s(A){try{a(i["throw"](A))}catch(je){r(je)}}function a(A){A.done?t(A.value):n(A.value).then(o,s)}a((i=i.apply(A,e||[])).next())}))}function n(A,e){var t,i,n,r,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(A){return function(e){return a([A,e])}}function a(r){if(t)throw new TypeError("Generator is already executing.");while(o)try{if(t=1,i&&(n=2&r[0]?i["return"]:r[0]?i["throw"]||((n=i["return"])&&n.call(i),0):i.next)&&!(n=n.call(i,r[1])).done)return n;switch(i=0,n&&(r=[2&r[0],n.value]),r[0]){case 0:case 1:n=r;break;case 4:return o.label++,{value:r[1],done:!1};case 5:o.label++,i=r[1],r=[0];continue;case 7:r=o.ops.pop(),o.trys.pop();continue;default:if(n=o.trys,!(n=n.length>0&&n[n.length-1])&&(6===r[0]||2===r[0])){o=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){o.label=r[1];break}if(6===r[0]&&o.label<n[1]){o.label=n[1],n=r;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(r);break}n[2]&&o.ops.pop(),o.trys.pop();continue}r=e.call(A,o)}catch(je){r=[6,je],i=0}finally{t=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}}function r(A,e,t){if(t||2===arguments.length)for(var i,n=0,r=e.length;n<r;n++)!i&&n in e||(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return A.concat(i||e)}for(var o=function(){function A(A,e,t,i){this.left=A,this.top=e,this.width=t,this.height=i}return A.prototype.add=function(e,t,i,n){return new A(this.left+e,this.top+t,this.width+i,this.height+n)},A.fromClientRect=function(e,t){return new A(t.left+e.windowBounds.left,t.top+e.windowBounds.top,t.width,t.height)},A.fromDOMRectList=function(e,t){var i=Array.from(t).find((function(A){return 0!==A.width}));return i?new A(i.left+e.windowBounds.left,i.top+e.windowBounds.top,i.width,i.height):A.EMPTY},A.EMPTY=new A(0,0,0,0),A}(),s=function(A,e){return o.fromClientRect(A,e.getBoundingClientRect())},a=function(A){var e=A.body,t=A.documentElement;if(!e||!t)throw new Error("Unable to get document size");var i=Math.max(Math.max(e.scrollWidth,t.scrollWidth),Math.max(e.offsetWidth,t.offsetWidth),Math.max(e.clientWidth,t.clientWidth)),n=Math.max(Math.max(e.scrollHeight,t.scrollHeight),Math.max(e.offsetHeight,t.offsetHeight),Math.max(e.clientHeight,t.clientHeight));return new o(0,0,i,n)},l=function(A){var e=[],t=0,i=A.length;while(t<i){var n=A.charCodeAt(t++);if(n>=55296&&n<=56319&&t<i){var r=A.charCodeAt(t++);56320===(64512&r)?e.push(((1023&n)<<10)+(1023&r)+65536):(e.push(n),t--)}else e.push(n)}return e},c=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";var i=[],n=-1,r="";while(++n<t){var o=A[n];o<=65535?i.push(o):(o-=65536,i.push(55296+(o>>10),o%1024+56320)),(n+1===t||i.length>16384)&&(r+=String.fromCharCode.apply(String,i),i.length=0)}return r},d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u="undefined"===typeof Uint8Array?[]:new Uint8Array(256),h=0;h<d.length;h++)u[d.charCodeAt(h)]=h;for(var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijkl
|
||
|
|
/*!
|
||
|
|
|
||
|
|
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
||
|
|
<http://stuartk.com/jszip>
|
||
|
|
|
||
|
|
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
|
||
|
|
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
|
||
|
|
|
||
|
|
JSZip uses the library pako released under the MIT license :
|
||
|
|
https://github.com/nodeca/pako/blob/main/LICENSE
|
||
|
|
*/
|
||
|
|
!function(e){A.exports=e()}((function(){return function A(e,t,i){function n(o,s){if(!t[o]){if(!e[o]){var a=void 0;if(!s&&a)return require(o,!0);if(r)return r(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var c=t[o]={exports:{}};e[o][0].call(c.exports,(function(A){var t=e[o][1][A];return n(t||A)}),c,c.exports,A,e,t,i)}return t[o].exports}for(var r=void 0,o=0;o<i.length;o++)n(i[o]);return n}({1:[function(A,e,t){"use strict";var i=A("./utils"),n=A("./support"),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.encode=function(A){for(var e,t,n,o,s,a,l,c=[],d=0,u=A.length,h=u,g="string"!==i.getTypeOf(A);d<A.length;)h=u-d,n=g?(e=A[d++],t=d<u?A[d++]:0,d<u?A[d++]:0):(e=A.charCodeAt(d++),t=d<u?A.charCodeAt(d++):0,d<u?A.charCodeAt(d++):0),o=e>>2,s=(3&e)<<4|t>>4,a=1<h?(15&t)<<2|n>>6:64,l=2<h?63&n:64,c.push(r.charAt(o)+r.charAt(s)+r.charAt(a)+r.charAt(l));return c.join("")},t.decode=function(A){var e,t,i,o,s,a,l=0,c=0,d="data:";if(A.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var u,h=3*(A=A.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(A.charAt(A.length-1)===r.charAt(64)&&h--,A.charAt(A.length-2)===r.charAt(64)&&h--,h%1!=0)throw new Error("Invalid base64 input, bad content length.");for(u=n.uint8array?new Uint8Array(0|h):new Array(0|h);l<A.length;)e=r.indexOf(A.charAt(l++))<<2|(o=r.indexOf(A.charAt(l++)))>>4,t=(15&o)<<4|(s=r.indexOf(A.charAt(l++)))>>2,i=(3&s)<<6|(a=r.indexOf(A.charAt(l++))),u[c++]=e,64!==s&&(u[c++]=t),64!==a&&(u[c++]=i);return u}},{"./support":30,"./utils":32}],2:[function(A,e,t){"use strict";var i=A("./external"),n=A("./stream/DataWorker"),r=A("./stream/Crc32Probe"),o=A("./stream/DataLengthProbe");function s(A,e,t,i,n){this.compressedSize=A,this.uncompressedSize=e,this.crc32=t,this.compression=i,this.compressedContent=n}s.prototype={getContentWorker:function(){var A=new n(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),e=this;return A.on("end",(function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),A},getCompressedWorker:function(){return new n(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(A,e,t){return A.pipe(new r).pipe(new o("uncompressedSize")).pipe(e.compressWorker(t)).pipe(new o("compressedSize")).withStreamInfo("compression",e)},e.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(A,e,t){"use strict";var i=A("./stream/GenericWorker");t.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},t.DEFLATE=A("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(A,e,t){"use strict";var i=A("./utils"),n=function(){for(var A,e=[],t=0;t<256;t++){A=t;for(var i=0;i<8;i++)A=1&A?3988292384^A>>>1:A>>>1;e[t]=A}return e}();e.exports=function(A,e){return void 0!==A&&A.length?"string"!==i.getTypeOf(A)?function(A,e,t,i){var r=n,o=i+t;A^=-1;for(var s=i;s<o;s++)A=A>>>8^r[255&(A^e[s])];return-1^A}(0|e,A,A.length,0):function(A,e,t,i){var r=n,o=i+t;A^=-1;for(var s=i;s<o;s++)A=A>>>8^r[255&(A^e.charCodeAt(s))];return-1^A}(0|e,A,A.length,0):0}},{"./utils":32}],5:[function(A,e,t){"use strict";t.base64=!1,t.binary=!1,t.dir=!1,t.createFolders=!0,t.date=null,t.compression=null,t.compressionOptions=null,t.comment=null,t.unixPermissions=null,t.dosPermissions=null},{}],6:[function(A,e,t){"use strict";var i=null;i="undefined"!=typeof Promise?Promise:A("lie"),e.exports={Promise:i}},{lie:37}],7:[function(A,e,t){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,n=A("pako"),r=A("./utils"),o=A("./stream/GenericWorker"),s=i?"uint8array":"array";function a(A,e){o.cal
|
||
|
|
/*
|
||
|
|
* Color Thief v2.3.2
|
||
|
|
* by Lokesh Dhakar - http://www.lokeshdhakar.com
|
||
|
|
*
|
||
|
|
* Thanks
|
||
|
|
* ------
|
||
|
|
* Nick Rabinowitz - For creating quantize.js.
|
||
|
|
* John Schulz - For clean up and optimization. @JFSIII
|
||
|
|
* Nathan Spady - For adding drag and drop support to the demo page.
|
||
|
|
*
|
||
|
|
* License
|
||
|
|
* -------
|
||
|
|
* Copyright Lokesh Dhakar
|
||
|
|
* Released under the MIT license
|
||
|
|
* https://raw.githubusercontent.com/lokesh/color-thief/master/LICENSE
|
||
|
|
*
|
||
|
|
* @license
|
||
|
|
*/
|
||
|
|
const uo=function(A){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.width=this.canvas.width=A.naturalWidth,this.height=this.canvas.height=A.naturalHeight,this.context.drawImage(A,0,0,this.width,this.height)};uo.prototype.getImageData=function(){return this.context.getImageData(0,0,this.width,this.height)};var ho=function(){};ho.prototype.getColor=function(A,e=10){const t=this.getPalette(A,5,e),i=t[0];return i},ho.prototype.getPalette=function(A,e,t){const i=co.validateOptions({colorCount:e,quality:t}),n=new uo(A),r=n.getImageData(),o=n.width*n.height,s=co.createPixelArray(r.data,o,i.quality),a=so()(s,i.colorCount),l=a?a.palette():null;return l},ho.prototype.getColorFromUrl=function(A,e,t){const i=document.createElement("img");i.addEventListener("load",(()=>{const n=this.getPalette(i,5,t),r=n[0];e(r,A)})),i.src=A},ho.prototype.getImageData=function(A,e){let t=new XMLHttpRequest;t.open("GET",A,!0),t.responseType="arraybuffer",t.onload=function(){if(200==this.status){let A=new Uint8Array(this.response);i=A.length;let t=new Array(i);for(let e=0;e<A.length;e++)t[e]=String.fromCharCode(A[e]);let n=t.join(""),r=window.btoa(n);e("data:image/png;base64,"+r)}},t.send()},ho.prototype.getColorAsync=function(A,e,t){const i=this;this.getImageData(A,(function(A){const n=document.createElement("img");n.addEventListener("load",(function(){const A=i.getPalette(n,5,t),r=A[0];e(r,this)})),n.src=A}))};var go=ho,po=(0,n.aZ)({components:{Chrome:ro.Chrome,Slider:ro.Slider,Sketch:ro.Sketch},setup(){let A=(0,Y.iH)([]),e=[{},{},{},{},{},{},{},{}],t=(0,Y.iH)({rgba:{}}),i=(0,Y.iH)({}),r=(0,n.f3)("driver__"),{t:o}=(0,ot.QT)();return{fileList:A,colorList:e,selectColor:t,selectColorList:i,driver__:r,t:o}},watch:{selectColor(A,e){this.colorList[this.selectIndex]=A.rgba;let t=this.colorList.filter((A=>A&&Object.keys(A).length));this.setColorboardList(t),this.clearSelectColor()}},computed:{getSelectRGB(A){return A=>{let e=A.rgba,t={r:e?.r,g:e?.g,b:e?.b,a:e?.a,hex:void 0==A.hex?"#FFFFFF":A.hex};return 1==t.a&&0==t.a||(t.hex=A.hex8?A.hex8:A.hex),t}}},data(){return{reviewColor:{},selectIndex:0,tcxColor:"",pantongName:"",pantongNameList:[],indicator:(0,n.h)(LA.Z,{style:{fontSize:"2.4rem"},spin:!0}),upload:{isPin:0,level1Type:"Moodboard",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},token:"",uploadUrl:"",store:(0,KA.oR)(),colorPickerVisible:!0,colorBlockHex:!0,getColorBg:!1}},mounted(){this.token=(0,PA.ej)("token")||"",this.uploadUrl=(0,RA.M$)();const A=document.createElement("div");A.classList.add("vc-sketch-color-wrap");let e=document.getElementsByClassName("colorboard_upload_modal")[0].getElementsByClassName("vc-chrome-fields-wrap")[0];e.appendChild(A),A.addEventListener("click",(async()=>{try{const A=new EyeDropper,e=await A.open();let t=e.sRGBHex.replace("#","");const i=parseInt(t.substring(0,2),16),n=parseInt(t.substring(2,4),16),r=parseInt(t.substring(4,6),16);this.selectColor={rgba:{r:i,g:n,b:r,a:1},hex:e.sRGBHex}}catch(A){OA.ZP.info(this.t("ColorboardUpload.jsContent1"))}}),!1),this.clearSelectColor(),"EyeDropper"in window?console.log(!0):console.log(!1)},methods:{clearSelectColor(){},selectColorItem(A,e){let t;t=e?.r?this.rgbaToHex([e.r,e.g,e.b,e.a?e.a:1]):"#FFFFFF",this.selectIndex=A,this.tcxColor="",this.pantongName="",this.pantongNameList=[],this.reviewColor={},this.getColorBg=!1},getTcxColor(){if(!this.tcxColor)return;let A=/^\d{2}-\d{4}$/;A.test(this.tcxColor)?TA.V.axiosGet(TA.V.httpUrls.getRgbByTcx+"?tcx="+this.tcxColor).then((A=>{if(A&&A.name){let e=this.rgbaToHex([A.r,A.g,A.b,A.a?A.a:1]);this.reviewColor=A?.r+""?{rgba:{r:A.r,g:A.g,b:A.b,a:1},hex:e}:{hex:""},this.selectColor=this.reviewColor,this.colorList[this.selectIndex]={r:A.r,g:A.g,b:A.b},this.pantongName=A.name;let t=this.colorList.filter((A=>Object.keys(A).length));this.setColorboardList(t),this.getColorBg=!0}else OA.ZP.info(this.t("ColorboardUpload.jsContent2"))})):OA.ZP.info(this.t("ColorboardUpload.jsContent5"))},clearCurrentColor(){this.selectColor={},this.reviewColor={},this.pantongName="",this.tcxColor=""},fileUploadChange
|
||
|
|
/**!
|
||
|
|
* Sortable 1.14.0
|
||
|
|
* @author RubaXa <trash@rubaxa.org>
|
||
|
|
* @author owenm <owen23355@gmail.com>
|
||
|
|
* @license MIT
|
||
|
|
*/
|
||
|
|
function i(A,e){var t=Object.keys(A);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(A);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(A,e).enumerable}))),t.push.apply(t,i)}return t}function n(A){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?i(Object(t),!0).forEach((function(e){o(A,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(e){Object.defineProperty(A,e,Object.getOwnPropertyDescriptor(t,e))}))}return A}function r(A){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"===typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},r(A)}function o(A,e,t){return e in A?Object.defineProperty(A,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):A[e]=t,A}function s(){return s=Object.assign||function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},s.apply(this,arguments)}function a(A,e){if(null==A)return{};var t,i,n={},r=Object.keys(A);for(i=0;i<r.length;i++)t=r[i],e.indexOf(t)>=0||(n[t]=A[t]);return n}function l(A,e){if(null==A)return{};var t,i,n=a(A,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(A);for(i=0;i<r.length;i++)t=r[i],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(A,t)&&(n[t]=A[t])}return n}function c(A){return d(A)||u(A)||h(A)||p()}function d(A){if(Array.isArray(A))return g(A)}function u(A){if("undefined"!==typeof Symbol&&null!=A[Symbol.iterator]||null!=A["@@iterator"])return Array.from(A)}function h(A,e){if(A){if("string"===typeof A)return g(A,e);var t=Object.prototype.toString.call(A).slice(8,-1);return"Object"===t&&A.constructor&&(t=A.constructor.name),"Map"===t||"Set"===t?Array.from(A):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?g(A,e):void 0}}function g(A,e){(null==e||e>A.length)&&(e=A.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=A[t];return i}function p(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}t.r(e),t.d(e,{MultiDrag:function(){return Ve},Sortable:function(){return te},Swap:function(){return Ie}});var f="1.14.0";function m(A){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(A)}var B=m(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),w=m(/Edge/i),v=m(/firefox/i),C=m(/safari/i)&&!m(/chrome/i)&&!m(/android/i),b=m(/iP(ad|od|hone)/i),y=m(/chrome/i)&&m(/android/i),_={capture:!1,passive:!1};function Q(A,e,t){A.addEventListener(e,t,!B&&_)}function U(A,e,t){A.removeEventListener(e,t,!B&&_)}function F(A,e){if(e){if(">"===e[0]&&(e=e.substring(1)),A)try{if(A.matches)return A.matches(e);if(A.msMatchesSelector)return A.msMatchesSelector(e);if(A.webkitMatchesSelector)return A.webkitMatchesSelector(e)}catch(t){return!1}return!1}}function x(A){return A.host&&A!==document&&A.host.nodeType?A.host:A.parentNode}function E(A,e,t,i){if(A){t=t||document;do{if(null!=e&&(">"===e[0]?A.parentNode===t&&F(A,e):F(A,e))||i&&A===t)return A;if(A===t)break}while(A=x(A))}return null}var k,I=/\s+/g;function S(A,e,t){if(A&&e)if(A.classList)A.classList[t?"add":"remove"](e);else{var i=(" "+A.className+" ").replace(I," ").replace(" "+e+" "," ");A.className=(i+(t?" "+e:"")).replace(I," ")}}function D(A,e,t){var i=A&&A.style;if(i){if(void 0===t)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(A,""):A.currentStyle&&(t=A.currentStyle),void 0===e?t:t[e];e in i||-1!==e.indexOf("webkit")||(e="-webkit-"+e),i[e]=t+("string"===typeof t?"":"px")}}function H(A,e){var t="";if("string"===typeof A)t=A;else do{var i=D(A,"transform");i&&"none"!==i&&(t=i+" "+t)}while(!e&&(A=A.parentNode));var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return n&&new n(t)}function L(A,e,t){if(A){var i=A.getElementsByT
|