59 lines
728 KiB
JavaScript
59 lines
728 KiB
JavaScript
|
|
(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[623],{1125:function(A,e,t){(function(){var e={9662:function(A,e,t){var n=t(7854),i=t(614),r=t(6330),o=n.TypeError;A.exports=function(A){if(i(A))return A;throw o(r(A)+" is not a function")}},6077:function(A,e,t){var n=t(7854),i=t(614),r=n.String,o=n.TypeError;A.exports=function(A){if("object"==typeof A||i(A))return A;throw o("Can't set "+r(A)+" as a prototype")}},9670:function(A,e,t){var n=t(7854),i=t(111),r=n.String,o=n.TypeError;A.exports=function(A){if(i(A))return A;throw o(r(A)+" is not an object")}},1318:function(A,e,t){var n=t(5656),i=t(1400),r=t(6244),o=function(A){return function(e,t,o){var s,a=n(e),l=r(a),c=i(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 n=t(1702),i=n({}.toString),r=n("".slice);A.exports=function(A){return r(i(A),8,-1)}},648:function(A,e,t){var n=t(7854),i=t(1694),r=t(614),o=t(4326),s=t(5112),a=s("toStringTag"),l=n.Object,c="Arguments"==o(function(){return arguments}()),d=function(A,e){try{return A[e]}catch(t){}};A.exports=i?o:function(A){var e,t,n;return void 0===A?"Undefined":null===A?"Null":"string"==typeof(t=d(e=l(A),a))?t:c?o(e):"Object"==(n=o(e))&&r(e.callee)?"Arguments":n}},7741:function(A,e,t){var n=t(1702),i=n("".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=i(A,o,"");return A}},9920:function(A,e,t){var n=t(2597),i=t(3887),r=t(1236),o=t(3070);A.exports=function(A,e,t){for(var s=i(e),a=o.f,l=r.f,c=0;c<s.length;c++){var d=s[c];n(A,d)||t&&n(t,d)||a(A,d,l(e,d))}}},8880:function(A,e,t){var n=t(9781),i=t(3070),r=t(9114);A.exports=n?function(A,e,t){return i.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 n=t(7293);A.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(A,e,t){var n=t(7854),i=t(111),r=n.document,o=i(r)&&i(r.createElement);A.exports=function(A){return o?r.createElement(A):{}}},8113:function(A,e,t){var n=t(5005);A.exports=n("navigator","userAgent")||""},7392:function(A,e,t){var n,i,r=t(7854),o=t(8113),s=r.process,a=r.Deno,l=s&&s.versions||a&&a.version,c=l&&l.v8;c&&(n=c.split("."),i=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&o&&(n=o.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/),n&&(i=+n[1]))),A.exports=i},748:function(A){A.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2914:function(A,e,t){var n=t(7293),i=t(9114);A.exports=!n((function(){var A=Error("a");return!("stack"in A)||(Object.defineProperty(A,"stack",i(1,7)),7!==A.stack)}))},2109:function(A,e,t){var n=t(7854),i=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?n:m?n[p]||s(p,{}):(n[p]||{}).prototype,c)for(d in e){if(h=e[d],A.noTargetGet?(g=i(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 n=t(4374),i=Function.prototype,r=i.apply,o=i.call;A.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(r):function(){return o.apply(r,arguments)})},4374:function(A,e,t){var n=t(7293);A.exports=!n((function(){var A=function(){}.bind();return"function"!=typeof A||A.hasOwnProperty("prototype")}))},6916:function(A,e,t){var n=t(4374),i=Function.prototype.call;A.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},6530:function(A,e,t){var n=t(9781),i=t(2597),r=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,s=i(r,"name"),a=s&&"something"===function(){}.name,l=s&&(!n||n&&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 n(){this.constructor=e}A(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var t=function(){return t=Object.assign||function(A){for(var e,t=1,n=arguments.length;t<n;t++)for(var i in e=arguments[t],e)Object.prototype.hasOwnProperty.call(e,i)&&(A[i]=e[i]);return A},t.apply(this,arguments)};function n(A,e,t,n){function i(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(n.next(A))}catch(ze){r(ze)}}function s(A){try{a(n["throw"](A))}catch(ze){r(ze)}}function a(A){A.done?t(A.value):i(A.value).then(o,s)}a((n=n.apply(A,e||[])).next())}))}function i(A,e){var t,n,i,r,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[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,n&&(i=2&r[0]?n["return"]:r[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,r[1])).done)return i;switch(n=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return o.label++,{value:r[1],done:!1};case 5:o.label++,n=r[1],r=[0];continue;case 7:r=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){o=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){o.label=r[1];break}if(6===r[0]&&o.label<i[1]){o.label=i[1],i=r;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(r);break}i[2]&&o.ops.pop(),o.trys.pop();continue}r=e.call(A,o)}catch(ze){r=[6,ze],n=0}finally{t=i=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 n,i=0,r=e.length;i<r;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return A.concat(n||e)}for(var o=function(){function A(A,e,t,n){this.left=A,this.top=e,this.width=t,this.height=n}return A.prototype.add=function(e,t,n,i){return new A(this.left+e,this.top+t,this.width+n,this.height+i)},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 n=Array.from(t).find((function(A){return 0!==A.width}));return n?new A(n.left+e.windowBounds.left,n.top+e.windowBounds.top,n.width,n.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 n=Math.max(Math.max(e.scrollWidth,t.scrollWidth),Math.max(e.offsetWidth,t.offsetWidth),Math.max(e.clientWidth,t.clientWidth)),i=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,n,i)},l=function(A){var e=[],t=0,n=A.length;while(t<n){var i=A.charCodeAt(t++);if(i>=55296&&i<=56319&&t<n){var r=A.charCodeAt(t++);56320===(64512&r)?e.push(((1023&i)<<10)+(1023&r)+65536):(e.push(i),t--)}else e.push(i)}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 n=[],i=-1,r="";while(++i<t){var o=A[i];o<=65535?n.push(o):(o-=65536,n.push(55296+(o>>10),o%1024+56320)),(i+1===t||n.length>16384)&&(r+=String.fromCharCode.apply(String,n),n.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,n){function i(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 i(t||A)}),c,c.exports,A,e,t,n)}return t[o].exports}for(var r=void 0,o=0;o<n.length;o++)i(n[o]);return i}({1:[function(A,e,t){"use strict";var n=A("./utils"),i=A("./support"),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.encode=function(A){for(var e,t,i,o,s,a,l,c=[],d=0,u=A.length,h=u,g="string"!==n.getTypeOf(A);d<A.length;)h=u-d,i=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|i>>6:64,l=2<h?63&i: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,n,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=i.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,n=(3&s)<<6|(a=r.indexOf(A.charAt(l++))),u[c++]=e,64!==s&&(u[c++]=t),64!==a&&(u[c++]=n);return u}},{"./support":30,"./utils":32}],2:[function(A,e,t){"use strict";var n=A("./external"),i=A("./stream/DataWorker"),r=A("./stream/Crc32Probe"),o=A("./stream/DataLengthProbe");function s(A,e,t,n,i){this.compressedSize=A,this.uncompressedSize=e,this.crc32=t,this.compression=n,this.compressedContent=i}s.prototype={getContentWorker:function(){var A=new i(n.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 i(n.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 n=A("./stream/GenericWorker");t.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},t.DEFLATE=A("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(A,e,t){"use strict";var n=A("./utils"),i=function(){for(var A,e=[],t=0;t<256;t++){A=t;for(var n=0;n<8;n++)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"!==n.getTypeOf(A)?function(A,e,t,n){var r=i,o=n+t;A^=-1;for(var s=n;s<o;s++)A=A>>>8^r[255&(A^e[s])];return-1^A}(0|e,A,A.length,0):function(A,e,t,n){var r=i,o=n+t;A^=-1;for(var s=n;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 n=null;n="undefined"!=typeof Promise?Promise:A("lie"),e.exports={Promise:n}},{lie:37}],7:[function(A,e,t){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=A("pako"),r=A("./utils"),o=A("./stream/GenericWorker"),s=n?"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 br=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)};br.prototype.getImageData=function(){return this.context.getImageData(0,0,this.width,this.height)};var yr=function(){};yr.prototype.getColor=function(A,e=10){const t=this.getPalette(A,5,e),n=t[0];return n},yr.prototype.getPalette=function(A,e,t){const n=Cr.validateOptions({colorCount:e,quality:t}),i=new br(A),r=i.getImageData(),o=i.width*i.height,s=Cr.createPixelArray(r.data,o,n.quality),a=Br()(s,n.colorCount),l=a?a.palette():null;return l},yr.prototype.getColorFromUrl=function(A,e,t){const n=document.createElement("img");n.addEventListener("load",(()=>{const i=this.getPalette(n,5,t),r=i[0];e(r,A)})),n.src=A},yr.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()},yr.prototype.getColorAsync=function(A,e,t){const n=this;this.getImageData(A,(function(A){const i=document.createElement("img");i.addEventListener("load",(function(){const A=n.getPalette(i,5,t),r=A[0];e(r,this)})),i.src=A}))};var _r=yr,Qr=(0,n.aZ)({components:{Chrome:fr.Chrome,Slider:fr.Slider,Sketch:fr.Sketch},setup(){let A=(0,X.iH)([]),e=[{},{},{},{},{},{},{},{}],t=(0,X.iH)({rgba:{}}),n=(0,X.iH)({}),{t:i}=(0,le.QT)();return{fileList:A,colorList:e,selectColor:t,selectColorList:n,t:i}},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)(TA.Z,{style:{fontSize:"2.4rem"},spin:!0}),upload:{isPin:0,level1Type:"Moodboard",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},token:"",uploadUrl:"",store:(0,RA.oR)(),colorPickerVisible:!0,colorBlockHex:!0,getColorBg:!1}},mounted(){this.token=(0,GA.ej)("token")||"",this.uploadUrl=(0,zA.M$)();let A=document.getElementsByClassName("colorboard_upload_modal")[0].getElementsByClassName("vc-sketch-color-wrap")[0];A.addEventListener("click",(async()=>{try{const A=new EyeDropper,e=await A.open();let t=e.sRGBHex.replace("#","");const n=parseInt(t.substring(0,2),16),i=parseInt(t.substring(2,4),16),r=parseInt(t.substring(4,6),16);this.selectColor={rgba:{r:n,g:i,b:r,a:1},hex:e.sRGBHex}}catch(A){KA.ZP.info(this.t("ColorboardUpload.jsContent1"))}})),this.clearSelectColor()},methods:{clearSelectColor(){let A=document.getElementsByClassName("colorboard_upload_modal")[0].getElementsByClassName("color_block_bg")[0],e=document.getElementsByClassName("colorboard_upload_modal")[0].getElementsByClassName("color_block_bg")[1];this.selectColor?.rgba?.r||this.selectColor?.rgb?.r?(A.style.opacity=1,e.style.opacity=1):(A.style.opacity=0,e.style.opacity=0)},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)?PA.V.axiosGet(PA.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 KA.ZP.info(this.t("ColorboardUpload.jsContent2"))})):KA.ZP
|
||
|
|
/**!
|
||
|
|
* Sortable 1.14.0
|
||
|
|
* @author RubaXa <trash@rubaxa.org>
|
||
|
|
* @author owenm <owen23355@gmail.com>
|
||
|
|
* @license MIT
|
||
|
|
*/
|
||
|
|
function n(A,e){var t=Object.keys(A);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(A);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(A,e).enumerable}))),t.push.apply(t,n)}return t}function i(A){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?n(Object(t),!0).forEach((function(e){o(A,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(t)):n(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 n in t)Object.prototype.hasOwnProperty.call(t,n)&&(A[n]=t[n])}return A},s.apply(this,arguments)}function a(A,e){if(null==A)return{};var t,n,i={},r=Object.keys(A);for(n=0;n<r.length;n++)t=r[n],e.indexOf(t)>=0||(i[t]=A[t]);return i}function l(A,e){if(null==A)return{};var t,n,i=a(A,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(A);for(n=0;n<r.length;n++)t=r[n],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(A,t)&&(i[t]=A[t])}return i}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,n=new Array(e);t<e;t++)n[t]=A[t];return n}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,n){if(A){t=t||document;do{if(null!=e&&(">"===e[0]?A.parentNode===t&&F(A,e):F(A,e))||n&&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 n=(" "+A.className+" ").replace(I," ").replace(" "+e+" "," ");A.className=(n+(t?" "+e:"")).replace(I," ")}}function H(A,e,t){var n=A&&A.style;if(n){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 n||-1!==e.indexOf("webkit")||(e="-webkit-"+e),n[e]=t+("string"===typeof t?"":"px")}}function D(A,e){var t="";if("string"===typeof A)t=A;else do{var n=H(A,"transform");n&&"none"!==n&&(t=n+" "+t)}while(!e&&(A=A.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(t)}function L(A,e,t){if(A){var n=A.getElementsByT
|