59 lines
774 KiB
JavaScript
59 lines
774 KiB
JavaScript
|
|
(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[442],{1125:function(e,t,A){(function(){var t={9662:function(e,t,A){var i=A(7854),n=A(614),r=A(6330),o=i.TypeError;e.exports=function(e){if(n(e))return e;throw o(r(e)+" is not a function")}},6077:function(e,t,A){var i=A(7854),n=A(614),r=i.String,o=i.TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw o("Can't set "+r(e)+" as a prototype")}},9670:function(e,t,A){var i=A(7854),n=A(111),r=i.String,o=i.TypeError;e.exports=function(e){if(n(e))return e;throw o(r(e)+" is not an object")}},1318:function(e,t,A){var i=A(5656),n=A(1400),r=A(6244),o=function(e){return function(t,A,o){var s,a=i(t),l=r(a),c=n(o,l);if(e&&A!=A){while(l>c)if(s=a[c++],s!=s)return!0}else for(;l>c;c++)if((e||c in a)&&a[c]===A)return e||c||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},4326:function(e,t,A){var i=A(1702),n=i({}.toString),r=i("".slice);e.exports=function(e){return r(n(e),8,-1)}},648:function(e,t,A){var i=A(7854),n=A(1694),r=A(614),o=A(4326),s=A(5112),a=s("toStringTag"),l=i.Object,c="Arguments"==o(function(){return arguments}()),d=function(e,t){try{return e[t]}catch(A){}};e.exports=n?o:function(e){var t,A,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(A=d(t=l(e),a))?A:c?o(t):"Object"==(i=o(t))&&r(t.callee)?"Arguments":i}},7741:function(e,t,A){var i=A(1702),n=i("".replace),r=function(e){return String(Error(e).stack)}("zxcasd"),o=/\n\s*at [^:]*:[^\n]*/,s=o.test(r);e.exports=function(e,t){if(s&&"string"==typeof e)while(t--)e=n(e,o,"");return e}},9920:function(e,t,A){var i=A(2597),n=A(3887),r=A(1236),o=A(3070);e.exports=function(e,t,A){for(var s=n(t),a=o.f,l=r.f,c=0;c<s.length;c++){var d=s[c];i(e,d)||A&&i(A,d)||a(e,d,l(t,d))}}},8880:function(e,t,A){var i=A(9781),n=A(3070),r=A(9114);e.exports=i?function(e,t,A){return n.f(e,t,r(1,A))}:function(e,t,A){return e[t]=A,e}},9114:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},9781:function(e,t,A){var i=A(7293);e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(e,t,A){var i=A(7854),n=A(111),r=i.document,o=n(r)&&n(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},8113:function(e,t,A){var i=A(5005);e.exports=i("navigator","userAgent")||""},7392:function(e,t,A){var i,n,r=A(7854),o=A(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]))),e.exports=n},748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2914:function(e,t,A){var i=A(7293),n=A(9114);e.exports=!i((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",n(1,7)),7!==e.stack)}))},2109:function(e,t,A){var i=A(7854),n=A(1236).f,r=A(8880),o=A(1320),s=A(3505),a=A(9920),l=A(4705);e.exports=function(e,t){var A,c,d,u,h,g,p=e.target,f=e.global,m=e.stat;if(c=f?i:m?i[p]||s(p,{}):(i[p]||{}).prototype,c)for(d in t){if(h=t[d],e.noTargetGet?(g=n(c,d),u=g&&g.value):u=c[d],A=l(f?d:p+(m?".":"#")+d,e.forced),!A&&void 0!==u){if(typeof h==typeof u)continue;a(h,u)}(e.sham||u&&u.sham)&&r(h,"sham",!0),o(c,d,h,e)}}},7293:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},2104:function(e,t,A){var i=A(4374),n=Function.prototype,r=n.apply,o=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(i?o.bind(r):function(){return o.apply(r,arguments)})},4374:function(e,t,A){var i=A(7293);e.exports=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},6916:function(e,t,A){var i=A(4374),n=Function.prototype.call;e.exports=i?n.bind(n):function(){return n.apply(n,arguments)}},6530:function(e,t,A){var i=A(9781),n=A(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);e.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(t,A){e.exports=A()})(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 e=function(t,A){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var A in t)Object.prototype.hasOwnProperty.call(t,A)&&(e[A]=t[A])},e(t,A)};function t(t,A){if("function"!==typeof A&&null!==A)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function i(){this.constructor=t}e(t,A),t.prototype=null===A?Object.create(A):(i.prototype=A.prototype,new i)}var A=function(){return A=Object.assign||function(e){for(var t,A=1,i=arguments.length;A<i;A++)for(var n in t=arguments[A],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},A.apply(this,arguments)};function i(e,t,A,i){function n(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function o(e){try{a(i.next(e))}catch(zt){r(zt)}}function s(e){try{a(i["throw"](e))}catch(zt){r(zt)}}function a(e){e.done?A(e.value):n(e.value).then(o,s)}a((i=i.apply(e,t||[])).next())}))}function n(e,t){var A,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(e){return function(t){return a([e,t])}}function a(r){if(A)throw new TypeError("Generator is already executing.");while(o)try{if(A=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=t.call(e,o)}catch(zt){r=[6,zt],i=0}finally{A=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}}function r(e,t,A){if(A||2===arguments.length)for(var i,n=0,r=t.length;n<r;n++)!i&&n in t||(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||t)}for(var o=function(){function e(e,t,A,i){this.left=e,this.top=t,this.width=A,this.height=i}return e.prototype.add=function(t,A,i,n){return new e(this.left+t,this.top+A,this.width+i,this.height+n)},e.fromClientRect=function(t,A){return new e(A.left+t.windowBounds.left,A.top+t.windowBounds.top,A.width,A.height)},e.fromDOMRectList=function(t,A){var i=Array.from(A).find((function(e){return 0!==e.width}));return i?new e(i.left+t.windowBounds.left,i.top+t.windowBounds.top,i.width,i.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e}(),s=function(e,t){return o.fromClientRect(e,t.getBoundingClientRect())},a=function(e){var t=e.body,A=e.documentElement;if(!t||!A)throw new Error("Unable to get document size");var i=Math.max(Math.max(t.scrollWidth,A.scrollWidth),Math.max(t.offsetWidth,A.offsetWidth),Math.max(t.clientWidth,A.clientWidth)),n=Math.max(Math.max(t.scrollHeight,A.scrollHeight),Math.max(t.offsetHeight,A.offsetHeight),Math.max(t.clientHeight,A.clientHeight));return new o(0,0,i,n)},l=function(e){var t=[],A=0,i=e.length;while(A<i){var n=e.charCodeAt(A++);if(n>=55296&&n<=56319&&A<i){var r=e.charCodeAt(A++);56320===(64512&r)?t.push(((1023&n)<<10)+(1023&r)+65536):(t.push(n),A--)}else t.push(n)}return t},c=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var A=e.length;if(!A)return"";var i=[],n=-1,r="";while(++n<A){var o=e[n];o<=65535?i.push(o):(o-=65536,i.push(55296+(o>>10),o%1024+56320)),(n+1===A||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(t){e.exports=t()}((function(){return function e(t,A,i){function n(o,s){if(!A[o]){if(!t[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=A[o]={exports:{}};t[o][0].call(c.exports,(function(e){var A=t[o][1][e];return n(A||e)}),c,c.exports,e,t,A,i)}return A[o].exports}for(var r=void 0,o=0;o<i.length;o++)n(i[o]);return n}({1:[function(e,t,A){"use strict";var i=e("./utils"),n=e("./support"),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";A.encode=function(e){for(var t,A,n,o,s,a,l,c=[],d=0,u=e.length,h=u,g="string"!==i.getTypeOf(e);d<e.length;)h=u-d,n=g?(t=e[d++],A=d<u?e[d++]:0,d<u?e[d++]:0):(t=e.charCodeAt(d++),A=d<u?e.charCodeAt(d++):0,d<u?e.charCodeAt(d++):0),o=t>>2,s=(3&t)<<4|A>>4,a=1<h?(15&A)<<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("")},A.decode=function(e){var t,A,i,o,s,a,l=0,c=0,d="data:";if(e.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var u,h=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===r.charAt(64)&&h--,e.charAt(e.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<e.length;)t=r.indexOf(e.charAt(l++))<<2|(o=r.indexOf(e.charAt(l++)))>>4,A=(15&o)<<4|(s=r.indexOf(e.charAt(l++)))>>2,i=(3&s)<<6|(a=r.indexOf(e.charAt(l++))),u[c++]=t,64!==s&&(u[c++]=A),64!==a&&(u[c++]=i);return u}},{"./support":30,"./utils":32}],2:[function(e,t,A){"use strict";var i=e("./external"),n=e("./stream/DataWorker"),r=e("./stream/Crc32Probe"),o=e("./stream/DataLengthProbe");function s(e,t,A,i,n){this.compressedSize=e,this.uncompressedSize=t,this.crc32=A,this.compression=i,this.compressedContent=n}s.prototype={getContentWorker:function(){var e=new n(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},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(e,t,A){return e.pipe(new r).pipe(new o("uncompressedSize")).pipe(t.compressWorker(A)).pipe(new o("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,A){"use strict";var i=e("./stream/GenericWorker");A.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},A.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,A){"use strict";var i=e("./utils"),n=function(){for(var e,t=[],A=0;A<256;A++){e=A;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[A]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==i.getTypeOf(e)?function(e,t,A,i){var r=n,o=i+A;e^=-1;for(var s=i;s<o;s++)e=e>>>8^r[255&(e^t[s])];return-1^e}(0|t,e,e.length,0):function(e,t,A,i){var r=n,o=i+A;e^=-1;for(var s=i;s<o;s++)e=e>>>8^r[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,A){"use strict";A.base64=!1,A.binary=!1,A.dir=!1,A.createFolders=!0,A.date=null,A.compression=null,A.compressionOptions=null,A.comment=null,A.unixPermissions=null,A.dosPermissions=null},{}],6:[function(e,t,A){"use strict";var i=null;i="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:i}},{lie:37}],7:[function(e,t,A){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,n=e("pako"),r=e("./utils"),o=e("./stream/GenericWorker"),s=i?"uint8array":"array";function a(e,t){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 Ro=function(e){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.width=this.canvas.width=e.naturalWidth,this.height=this.canvas.height=e.naturalHeight,this.context.drawImage(e,0,0,this.width,this.height)};Ro.prototype.getImageData=function(){return this.context.getImageData(0,0,this.width,this.height)};var Vo=function(){};Vo.prototype.getColor=function(e,t=10){const A=this.getPalette(e,5,t),i=A[0];return i},Vo.prototype.getPalette=function(e,t,A){const i=Po.validateOptions({colorCount:t,quality:A}),n=new Ro(e),r=n.getImageData(),o=n.width*n.height,s=Po.createPixelArray(r.data,o,i.quality),a=To()(s,i.colorCount),l=a?a.palette():null;return l},Vo.prototype.getColorFromUrl=function(e,t,A){const i=document.createElement("img");i.addEventListener("load",(()=>{const n=this.getPalette(i,5,A),r=n[0];t(r,e)})),i.src=e},Vo.prototype.getImageData=function(e,t){let A=new XMLHttpRequest;A.open("GET",e,!0),A.responseType="arraybuffer",A.onload=function(){if(200==this.status){let e=new Uint8Array(this.response);i=e.length;let A=new Array(i);for(let t=0;t<e.length;t++)A[t]=String.fromCharCode(e[t]);let n=A.join(""),r=window.btoa(n);t("data:image/png;base64,"+r)}},A.send()},Vo.prototype.getColorAsync=function(e,t,A){const i=this;this.getImageData(e,(function(e){const n=document.createElement("img");n.addEventListener("load",(function(){const e=i.getPalette(n,5,A),r=e[0];t(r,this)})),n.src=e}))};var Go=Vo,zo=(0,n.aZ)({components:{Chrome:Oo.Chrome,Slider:Oo.Slider,Sketch:Oo.Sketch},setup(){let e=(0,Y.iH)([]),t=[{},{},{},{},{},{},{},{}],A=(0,Y.iH)({rgba:{}}),i=(0,Y.iH)({}),r=(0,n.f3)("driver__"),{t:o}=(0,oA.QT)();return{fileList:e,colorList:t,selectColor:A,selectColorList:i,driver__:r,t:o}},watch:{selectColor(e,t){this.colorList[this.selectIndex]=e.rgba;let A=this.colorList.filter((e=>e&&Object.keys(e).length));this.setColorboardList(A),this.clearSelectColor()}},computed:{getSelectRGB(e){return e=>{let t=e.rgba,A={r:t?.r,g:t?.g,b:t?.b,a:t?.a,hex:void 0==e.hex?"#FFFFFF":e.hex};return 1==A.a&&0==A.a||(A.hex=e.hex8?e.hex8:e.hex),A}}},data(){return{reviewColor:{},selectIndex:0,tcxColor:"",pantongName:"",pantongNameList:[],indicator:(0,n.h)(Le.Z,{style:{fontSize:"2.4rem"},spin:!0}),upload:{isPin:0,level1Type:"Moodboard",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},token:"",uploadUrl:"",store:(0,Ne.oR)(),colorPickerVisible:!0,colorBlockHex:!0,getColorBg:!1}},mounted(){this.token=(0,Pe.ej)("token")||"",this.uploadUrl=(0,Re.M$)();const e=document.createElement("div");e.classList.add("vc-sketch-color-wrap");let t=document.getElementsByClassName("colorboard_upload_modal")[0].getElementsByClassName("vc-chrome-fields-wrap")[0];t.appendChild(e),e.addEventListener("click",(async()=>{try{const e=new EyeDropper,t=await e.open();let A=t.sRGBHex.replace("#","");const i=parseInt(A.substring(0,2),16),n=parseInt(A.substring(2,4),16),r=parseInt(A.substring(4,6),16);this.selectColor={rgba:{r:i,g:n,b:r,a:1},hex:t.sRGBHex}}catch(e){Oe.ZP.info(this.t("ColorboardUpload.jsContent1"))}}),!1),this.clearSelectColor(),"EyeDropper"in window?console.log(!0):console.log(!1)},methods:{clearSelectColor(){},selectColorItem(e,t){let A;A=t?.r?this.rgbaToHex([t.r,t.g,t.b,t.a?t.a:1]):"#FFFFFF",this.selectIndex=e,this.tcxColor="",this.pantongName="",this.pantongNameList=[],this.reviewColor={},this.getColorBg=!1},getTcxColor(){if(!this.tcxColor)return;let e=/^\d{2}-\d{4}$/;e.test(this.tcxColor)?Te.V.axiosGet(Te.V.httpUrls.getRgbByTcx+"?tcx="+this.tcxColor).then((e=>{if(e&&e.name){let t=this.rgbaToHex([e.r,e.g,e.b,e.a?e.a:1]);this.reviewColor=e?.r+""?{rgba:{r:e.r,g:e.g,b:e.b,a:1},hex:t}:{hex:""},this.selectColor=this.reviewColor,this.colorList[this.selectIndex]={r:e.r,g:e.g,b:e.b},this.pantongName=e.name;let A=this.colorList.filter((e=>Object.keys(e).length));this.setColorboardList(A),this.getColorBg=!0}else Oe.ZP.info(this.t("ColorboardUpload.jsContent2"))})):Oe.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(e,t){var A=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),A.push.apply(A,i)}return A}function n(e){for(var t=1;t<arguments.length;t++){var A=null!=arguments[t]?arguments[t]:{};t%2?i(Object(A),!0).forEach((function(t){o(e,t,A[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(A)):i(Object(A)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(A,t))}))}return e}function r(e){return r="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},r(e)}function o(e,t,A){return t in e?Object.defineProperty(e,t,{value:A,enumerable:!0,configurable:!0,writable:!0}):e[t]=A,e}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var A=arguments[t];for(var i in A)Object.prototype.hasOwnProperty.call(A,i)&&(e[i]=A[i])}return e},s.apply(this,arguments)}function a(e,t){if(null==e)return{};var A,i,n={},r=Object.keys(e);for(i=0;i<r.length;i++)A=r[i],t.indexOf(A)>=0||(n[A]=e[A]);return n}function l(e,t){if(null==e)return{};var A,i,n=a(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)A=r[i],t.indexOf(A)>=0||Object.prototype.propertyIsEnumerable.call(e,A)&&(n[A]=e[A])}return n}function c(e){return d(e)||u(e)||h(e)||p()}function d(e){if(Array.isArray(e))return g(e)}function u(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function h(e,t){if(e){if("string"===typeof e)return g(e,t);var A=Object.prototype.toString.call(e).slice(8,-1);return"Object"===A&&e.constructor&&(A=e.constructor.name),"Map"===A||"Set"===A?Array.from(e):"Arguments"===A||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A)?g(e,t):void 0}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var A=0,i=new Array(t);A<t;A++)i[A]=e[A];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.")}A.r(t),A.d(t,{MultiDrag:function(){return Vt},Sortable:function(){return At},Swap:function(){return It}});var f="1.14.0";function m(e){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var B=m(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),w=m(/Edge/i),v=m(/firefox/i),y=m(/safari/i)&&!m(/chrome/i)&&!m(/android/i),C=m(/iP(ad|od|hone)/i),b=m(/chrome/i)&&m(/android/i),_={capture:!1,passive:!1};function Q(e,t,A){e.addEventListener(t,A,!B&&_)}function U(e,t,A){e.removeEventListener(t,A,!B&&_)}function F(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(A){return!1}return!1}}function x(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function E(e,t,A,i){if(e){A=A||document;do{if(null!=t&&(">"===t[0]?e.parentNode===A&&F(e,t):F(e,t))||i&&e===A)return e;if(e===A)break}while(e=x(e))}return null}var k,I=/\s+/g;function D(e,t,A){if(e&&t)if(e.classList)e.classList[A?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(I," ").replace(" "+t+" "," ");e.className=(i+(A?" "+t:"")).replace(I," ")}}function S(e,t,A){var i=e&&e.style;if(i){if(void 0===A)return document.defaultView&&document.defaultView.getComputedStyle?A=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(A=e.currentStyle),void 0===t?A:A[t];t in i||-1!==t.indexOf("webkit")||(t="-webkit-"+t),i[t]=A+("string"===typeof A?"":"px")}}function H(e,t){var A="";if("string"===typeof e)A=e;else do{var i=S(e,"transform");i&&"none"!==i&&(A=i+" "+A)}while(!t&&(e=e.parentNode));var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return n&&new n(A)}function L(e,t,A){if(e){var i=e.getElementsByT
|