59 lines
753 KiB
JavaScript
59 lines
753 KiB
JavaScript
|
|
(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[785],{1125:function(e,A,t){(function(){var A={9662:function(e,A,t){var i=t(7854),n=t(614),r=t(6330),o=i.TypeError;e.exports=function(e){if(n(e))return e;throw o(r(e)+" is not a function")}},6077:function(e,A,t){var i=t(7854),n=t(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,A,t){var i=t(7854),n=t(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,A,t){var i=t(5656),n=t(1400),r=t(6244),o=function(e){return function(A,t,o){var s,a=i(A),l=r(a),c=n(o,l);if(e&&t!=t){while(l>c)if(s=a[c++],s!=s)return!0}else for(;l>c;c++)if((e||c in a)&&a[c]===t)return e||c||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},4326:function(e,A,t){var i=t(1702),n=i({}.toString),r=i("".slice);e.exports=function(e){return r(n(e),8,-1)}},648:function(e,A,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(e,A){try{return e[A]}catch(t){}};e.exports=n?o:function(e){var A,t,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=d(A=l(e),a))?t:c?o(A):"Object"==(i=o(A))&&r(A.callee)?"Arguments":i}},7741:function(e,A,t){var i=t(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,A){if(s&&"string"==typeof e)while(A--)e=n(e,o,"");return e}},9920:function(e,A,t){var i=t(2597),n=t(3887),r=t(1236),o=t(3070);e.exports=function(e,A,t){for(var s=n(A),a=o.f,l=r.f,c=0;c<s.length;c++){var d=s[c];i(e,d)||t&&i(t,d)||a(e,d,l(A,d))}}},8880:function(e,A,t){var i=t(9781),n=t(3070),r=t(9114);e.exports=i?function(e,A,t){return n.f(e,A,r(1,t))}:function(e,A,t){return e[A]=t,e}},9114:function(e){e.exports=function(e,A){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:A}}},9781:function(e,A,t){var i=t(7293);e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(e,A,t){var i=t(7854),n=t(111),r=i.document,o=n(r)&&n(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},8113:function(e,A,t){var i=t(5005);e.exports=i("navigator","userAgent")||""},7392:function(e,A,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]))),e.exports=n},748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2914:function(e,A,t){var i=t(7293),n=t(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,A,t){var i=t(7854),n=t(1236).f,r=t(8880),o=t(1320),s=t(3505),a=t(9920),l=t(4705);e.exports=function(e,A){var t,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 A){if(h=A[d],e.noTargetGet?(g=n(c,d),u=g&&g.value):u=c[d],t=l(f?d:p+(m?".":"#")+d,e.forced),!t&&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(A){return!0}}},2104:function(e,A,t){var i=t(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,A,t){var i=t(7293);e.exports=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},6916:function(e,A,t){var i=t(4374),n=Function.prototype.call;e.exports=i?n.bind(n):function(){return n.apply(n,arguments)}},6530:function(e,A,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);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(A,t){e.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 e=function(A,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,A){e.__proto__=A}||function(e,A){for(var t in A)Object.prototype.hasOwnProperty.call(A,t)&&(e[t]=A[t])},e(A,t)};function A(A,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=A}e(A,t),A.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var t=function(){return t=Object.assign||function(e){for(var A,t=1,i=arguments.length;t<i;t++)for(var n in A=arguments[t],A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n]);return e},t.apply(this,arguments)};function i(e,A,t,i){function n(e){return e instanceof t?e:new t((function(A){A(e)}))}return new(t||(t=Promise))((function(t,r){function o(e){try{a(i.next(e))}catch(zA){r(zA)}}function s(e){try{a(i["throw"](e))}catch(zA){r(zA)}}function a(e){e.done?t(e.value):n(e.value).then(o,s)}a((i=i.apply(e,A||[])).next())}))}function n(e,A){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(e){return function(A){return a([e,A])}}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=A.call(e,o)}catch(zA){r=[6,zA],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(e,A,t){if(t||2===arguments.length)for(var i,n=0,r=A.length;n<r;n++)!i&&n in A||(i||(i=Array.prototype.slice.call(A,0,n)),i[n]=A[n]);return e.concat(i||A)}for(var o=function(){function e(e,A,t,i){this.left=e,this.top=A,this.width=t,this.height=i}return e.prototype.add=function(A,t,i,n){return new e(this.left+A,this.top+t,this.width+i,this.height+n)},e.fromClientRect=function(A,t){return new e(t.left+A.windowBounds.left,t.top+A.windowBounds.top,t.width,t.height)},e.fromDOMRectList=function(A,t){var i=Array.from(t).find((function(e){return 0!==e.width}));return i?new e(i.left+A.windowBounds.left,i.top+A.windowBounds.top,i.width,i.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e}(),s=function(e,A){return o.fromClientRect(e,A.getBoundingClientRect())},a=function(e){var A=e.body,t=e.documentElement;if(!A||!t)throw new Error("Unable to get document size");var i=Math.max(Math.max(A.scrollWidth,t.scrollWidth),Math.max(A.offsetWidth,t.offsetWidth),Math.max(A.clientWidth,t.clientWidth)),n=Math.max(Math.max(A.scrollHeight,t.scrollHeight),Math.max(A.offsetHeight,t.offsetHeight),Math.max(A.clientHeight,t.clientHeight));return new o(0,0,i,n)},l=function(e){var A=[],t=0,i=e.length;while(t<i){var n=e.charCodeAt(t++);if(n>=55296&&n<=56319&&t<i){var r=e.charCodeAt(t++);56320===(64512&r)?A.push(((1023&n)<<10)+(1023&r)+65536):(A.push(n),t--)}else A.push(n)}return A},c=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var t=e.length;if(!t)return"";var i=[],n=-1,r="";while(++n<t){var o=e[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(A){e.exports=A()}((function(){return function e(A,t,i){function n(o,s){if(!t[o]){if(!A[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:{}};A[o][0].call(c.exports,(function(e){var t=A[o][1][e];return n(t||e)}),c,c.exports,e,A,t,i)}return t[o].exports}for(var r=void 0,o=0;o<i.length;o++)n(i[o]);return n}({1:[function(e,A,t){"use strict";var i=e("./utils"),n=e("./support"),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.encode=function(e){for(var A,t,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?(A=e[d++],t=d<u?e[d++]:0,d<u?e[d++]:0):(A=e.charCodeAt(d++),t=d<u?e.charCodeAt(d++):0,d<u?e.charCodeAt(d++):0),o=A>>2,s=(3&A)<<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(e){var A,t,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;)A=r.indexOf(e.charAt(l++))<<2|(o=r.indexOf(e.charAt(l++)))>>4,t=(15&o)<<4|(s=r.indexOf(e.charAt(l++)))>>2,i=(3&s)<<6|(a=r.indexOf(e.charAt(l++))),u[c++]=A,64!==s&&(u[c++]=t),64!==a&&(u[c++]=i);return u}},{"./support":30,"./utils":32}],2:[function(e,A,t){"use strict";var i=e("./external"),n=e("./stream/DataWorker"),r=e("./stream/Crc32Probe"),o=e("./stream/DataLengthProbe");function s(e,A,t,i,n){this.compressedSize=e,this.uncompressedSize=A,this.crc32=t,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")),A=this;return e.on("end",(function(){if(this.streamInfo.data_length!==A.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,A,t){return e.pipe(new r).pipe(new o("uncompressedSize")).pipe(A.compressWorker(t)).pipe(new o("compressedSize")).withStreamInfo("compression",A)},A.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,A,t){"use strict";var i=e("./stream/GenericWorker");t.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},t.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,A,t){"use strict";var i=e("./utils"),n=function(){for(var e,A=[],t=0;t<256;t++){e=t;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;A[t]=e}return A}();A.exports=function(e,A){return void 0!==e&&e.length?"string"!==i.getTypeOf(e)?function(e,A,t,i){var r=n,o=i+t;e^=-1;for(var s=i;s<o;s++)e=e>>>8^r[255&(e^A[s])];return-1^e}(0|A,e,e.length,0):function(e,A,t,i){var r=n,o=i+t;e^=-1;for(var s=i;s<o;s++)e=e>>>8^r[255&(e^A.charCodeAt(s))];return-1^e}(0|A,e,e.length,0):0}},{"./utils":32}],5:[function(e,A,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(e,A,t){"use strict";var i=null;i="undefined"!=typeof Promise?Promise:e("lie"),A.exports={Promise:i}},{lie:37}],7:[function(e,A,t){"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,A){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 Nr=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)};Nr.prototype.getImageData=function(){return this.context.getImageData(0,0,this.width,this.height)};var Kr=function(){};Kr.prototype.getColor=function(e,A=10){const t=this.getPalette(e,5,A),i=t[0];return i},Kr.prototype.getPalette=function(e,A,t){const i=Tr.validateOptions({colorCount:A,quality:t}),n=new Nr(e),r=n.getImageData(),o=n.width*n.height,s=Tr.createPixelArray(r.data,o,i.quality),a=Lr()(s,i.colorCount),l=a?a.palette():null;return l},Kr.prototype.getColorFromUrl=function(e,A,t){const i=document.createElement("img");i.addEventListener("load",(()=>{const n=this.getPalette(i,5,t),r=n[0];A(r,e)})),i.src=e},Kr.prototype.getImageData=function(e,A){let t=new XMLHttpRequest;t.open("GET",e,!0),t.responseType="arraybuffer",t.onload=function(){if(200==this.status){let e=new Uint8Array(this.response);i=e.length;let t=new Array(i);for(let A=0;A<e.length;A++)t[A]=String.fromCharCode(e[A]);let n=t.join(""),r=window.btoa(n);A("data:image/png;base64,"+r)}},t.send()},Kr.prototype.getColorAsync=function(e,A,t){const i=this;this.getImageData(e,(function(e){const n=document.createElement("img");n.addEventListener("load",(function(){const e=i.getPalette(n,5,t),r=e[0];A(r,this)})),n.src=e}))};var Pr=Kr,Rr=(0,n.aZ)({components:{Chrome:Dr.Chrome,Slider:Dr.Slider,Sketch:Dr.Sketch},setup(){let e=(0,X.iH)([]),A=[{},{},{},{},{},{},{},{}],t=(0,X.iH)({rgba:{}}),i=(0,X.iH)({}),r=(0,n.f3)("driver__"),{t:o}=(0,sA.QT)();return{fileList:e,colorList:A,selectColor:t,selectColorList:i,driver__:r,t:o}},watch:{selectColor(e,A){this.colorList[this.selectIndex]=e.rgba;let t=this.colorList.filter((e=>e&&Object.keys(e).length));this.setColorboardList(t),this.clearSelectColor()}},computed:{getSelectRGB(e){return e=>{let A=e.rgba,t={r:A?.r,g:A?.g,b:A?.b,a:A?.a,hex:void 0==e.hex?"#FFFFFF":e.hex};return 1==t.a&&0==t.a||(t.hex=e.hex8?e.hex8:e.hex),t}}},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 A=document.getElementsByClassName("colorboard_upload_modal")[0].getElementsByClassName("vc-chrome-fields-wrap")[0];A.appendChild(e),e.addEventListener("click",(async()=>{try{const e=new EyeDropper,A=await e.open();let t=A.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:A.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,A){let t;t=A?.r?this.rgbaToHex([A.r,A.g,A.b,A.a?A.a:1]):"#FFFFFF",this.selectIndex=e,this.tcxColor="",this.pantongName="",this.pantongNameList=[],this.reviewColor={},this.getColorBg=!1,this.driver__.driver&&oA.RX.moveNext()},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 A=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:A}:{hex:""},this.selectColor=this.reviewColor,this.colorList[this.selectIndex]={r:e.r,g:e.g,b:e.b},this.pantongName=e.name;let t=this.colorList.filter((e=>Object.keys(e).length));this.setColorboardList(t),this.getColorBg=!0}else Oe.ZP.info(this.t("ColorboardUpload.jsContent2"))})):Oe.ZP.info(this.t("ColorboardUpload.jsContent5"))},clearCurrentColor(){this.selectColor={},this.reviewColor={},this.pantongNam
|
||
|
|
/**!
|
||
|
|
* Sortable 1.14.0
|
||
|
|
* @author RubaXa <trash@rubaxa.org>
|
||
|
|
* @author owenm <owen23355@gmail.com>
|
||
|
|
* @license MIT
|
||
|
|
*/
|
||
|
|
function i(e,A){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);A&&(i=i.filter((function(A){return Object.getOwnPropertyDescriptor(e,A).enumerable}))),t.push.apply(t,i)}return t}function n(e){for(var A=1;A<arguments.length;A++){var t=null!=arguments[A]?arguments[A]:{};A%2?i(Object(t),!0).forEach((function(A){o(e,A,t[A])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(A){Object.defineProperty(e,A,Object.getOwnPropertyDescriptor(t,A))}))}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,A,t){return A in e?Object.defineProperty(e,A,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[A]=t,e}function s(){return s=Object.assign||function(e){for(var A=1;A<arguments.length;A++){var t=arguments[A];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},s.apply(this,arguments)}function a(e,A){if(null==e)return{};var t,i,n={},r=Object.keys(e);for(i=0;i<r.length;i++)t=r[i],A.indexOf(t)>=0||(n[t]=e[t]);return n}function l(e,A){if(null==e)return{};var t,i,n=a(e,A);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)t=r[i],A.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}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,A){if(e){if("string"===typeof e)return g(e,A);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?g(e,A):void 0}}function g(e,A){(null==A||A>e.length)&&(A=e.length);for(var t=0,i=new Array(A);t<A;t++)i[t]=e[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(A),t.d(A,{MultiDrag:function(){return VA},Sortable:function(){return tA},Swap:function(){return IA}});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,A,t){e.addEventListener(A,t,!B&&_)}function U(e,A,t){e.removeEventListener(A,t,!B&&_)}function F(e,A){if(A){if(">"===A[0]&&(A=A.substring(1)),e)try{if(e.matches)return e.matches(A);if(e.msMatchesSelector)return e.msMatchesSelector(A);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(A)}catch(t){return!1}return!1}}function x(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function E(e,A,t,i){if(e){t=t||document;do{if(null!=A&&(">"===A[0]?e.parentNode===t&&F(e,A):F(e,A))||i&&e===t)return e;if(e===t)break}while(e=x(e))}return null}var k,I=/\s+/g;function S(e,A,t){if(e&&A)if(e.classList)e.classList[t?"add":"remove"](A);else{var i=(" "+e.className+" ").replace(I," ").replace(" "+A+" "," ");e.className=(i+(t?" "+A:"")).replace(I," ")}}function D(e,A,t){var i=e&&e.style;if(i){if(void 0===t)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(t=e.currentStyle),void 0===A?t:t[A];A in i||-1!==A.indexOf("webkit")||(A="-webkit-"+A),i[A]=t+("string"===typeof t?"":"px")}}function H(e,A){var t="";if("string"===typeof e)t=e;else do{var i=D(e,"transform");i&&"none"!==i&&(t=i+" "+t)}while(!A&&(e=e.parentNode));var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return n&&new n(t)}function L(e,A,t){if(e){var i=e.getElementsByT
|