(self["webpackChunkautoshopee_kit"]=self["webpackChunkautoshopee_kit"]||[]).push([[4564],{34359:function(t,e,r){"use strict";r.d(e,{Z:function(){return p}});var n=function(){var t=this,e=t._self._c;return e("div",[t.listImage.length?e("div",[e("Collapse",{model:{value:t.imageCollapse,callback:function(e){t.imageCollapse=e},expression:"imageCollapse"}},t._l(t.listGroupImage,(function(r,n){return e("Panel",{key:n,attrs:{name:n}},[e("b",[t._v(t._s(t.getLabelImage(n))+" ("+t._s(r.length)+")")]),e("div",{attrs:{slot:"content"},slot:"content"},[e("div",{staticClass:"text-right mb-5"},[e("Button",{attrs:{type:"warning",size:"default"},on:{click:function(e){return t.downloadImageType(n)}}},[e("span",[t._v(" "+t._s(t.$t("DOWNLOAD_ALL_IMAGE_PRODUCT")))]),t._v(" ("+t._s(r.length)+") ")])],1),e("div",[e("Row",{attrs:{gutter:16}},t._l(r,(function(r){return e("Col",{key:r.url,staticClass:"mb-5",attrs:{span:6}},[e("div",{staticClass:"hand-hover",staticStyle:{"text-align":"center"},on:{click:function(e){return t.downloadImageUrl(r)}}},[e("img",{staticClass:"img-fluid",attrs:{src:r.url}}),e("span",[t._v(" "+t._s(r.fileName))])])])})),1)],1)])])})),1)],1):e("div",[t._v(" "+t._s(t.$t("IMAGE_LIST_EMPTY"))+" ")])])},o=[],a=r(86976),i=r.n(a),s=r(97905),u={name:"ShopeeProductImage",props:{listImage:{type:Array}},data(){return{imageCollapse:["main","description","variation"]}},methods:{getLabelImage(t){return this.$t(`IMAGE_LABEL_TYPE.${t}`)},downloadImageType(t){this.listImage.filter((e=>e.type===t)).forEach((t=>this.downloadImageUrl(t)))},downloadImageUrl({url:t,fileName:e}){(0,s.po)(t,e)}},computed:{listGroupImage(){return i()(this.listImage,"type")}}},c=u,l=r(1001),f=(0,l.Z)(c,n,o,!1,null,null,null),p=f.exports},24564:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return l}});var n=function(){var t=this,e=t._self._c;return e("layout-single",{attrs:{"require-authed":!1,"require-paid":!1}},[e("div",[e("image-gallery",{attrs:{"list-image":t.listImage}})],1)])},o=[],a=r(34359),i={name:"ShopeeProductImage",metaInfo(){return{title:this.$t("SHOPEE")}},components:{"image-gallery":a.Z},data(){try{const t=JSON.parse(this.$route.query.source);return{listImage:t}}catch(t){return{listImage:[]}}},created(){}},s=i,u=r(1001),c=(0,u.Z)(s,n,o,!1,null,null,null),l=c.exports},36517:function(t){"use strict";
/*!
 * arr-flatten <https://github.com/jonschlinkert/arr-flatten>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */function e(t,r){for(var n,o=0,a=t.length;o<a;o++)n=t[o],Array.isArray(n)?e(n,r):r.push(n);return r}t.exports=function(t){return e(t,[])}},10169:function(t){"use strict";
/*!
 * for-in <https://github.com/jonschlinkert/for-in>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */t.exports=function(t,e,r){for(var n in t)if(!1===e.call(r,t[n],n,t))break}},3485:function(t,e,r){"use strict";
/*!
 * for-own <https://github.com/jonschlinkert/for-own>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */var n=r(10169),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){n(t,(function(n,a){if(o.call(t,a))return e.call(r,t[a],a,t)}))}},58571:function(t,e,r){
/*!
 * get-value <https://github.com/jonschlinkert/get-value>
 *
 * Copyright (c) 2014-2018, Jon Schlinkert.
 * Released under the MIT License.
 */
const n=r(89371);function o(t,e,r){return"function"===typeof r.join?r.join(t):t[0]+e+t[1]}function a(t,e,r){return"function"===typeof r.split?r.split(t):t.split(e)}function i(t,e,r){return"function"!==typeof r.isValid||r.isValid(t,e)}function s(t){return n(t)||Array.isArray(t)||"function"===typeof t}t.exports=function(t,e,r){if(n(r)||(r={default:r}),!s(t))return"undefined"!==typeof r.default?r.default:t;"number"===typeof e&&(e=String(e));const u=Array.isArray(e),c="string"===typeof e,l=r.separator||".",f=r.joinChar||("string"===typeof l?l:".");if(!c&&!u)return t;if(c&&e in t)return i(e,t,r)?t[e]:r.default;let p=u?e:a(e,l,r),y=p.length,g=0;do{let e=p[g];"number"===typeof e&&(e=String(e));while(e&&"\\"===e.slice(-1))e=o([e.slice(0,-1),p[++g]||""],f,r);if(e in t){if(!i(e,t,r))return r.default;t=t[e]}else{let n=!1,a=g+1;while(a<y)if(e=o([e,p[a++]],f,r),n=e in t){if(!i(e,t,r))return r.default;t=t[e],g=a-1;break}if(!n)return r.default}}while(++g<y&&s(t));return g===y?t:r.default}},86976:function(t,e,r){"use strict";const n=r(76813),o=r(36517),a=r(46093),i=r(3485),s=r(86006),u=r(58571);function c(t,e){if(null==t)return[];if(!Array.isArray(t))throw new TypeError("group-array expects an array.");if(1===arguments.length)return t;let r=o([].slice.call(arguments,1)),n=l(t,r[0]);for(let o=1;o<r.length;o++)p(n,r[o]);return n}function l(t,e,r){let n={};for(let o=0;o<t.length;o++){let i,c=t[o];switch(i="function"===typeof e?e.call(n,c,r):u(c,e),s(i)){case"undefined":break;case"string":case"number":case"boolean":a(n,y(String(i)),c);break;case"object":case"array":f(n,c,i);break;case"function":throw new Error("invalid argument type: "+r)}}return n}function f(t,e,r){Array.isArray(r)?r.forEach((r=>{a(t,y(r),e)})):i(r,((r,n)=>{a(t,y(n),e)}))}function p(t,e){return i(t,((r,n)=>{Array.isArray(r)?t[n]=l(r,e,n):t[n]=p(r,e,n)})),t}function y(t){var e={strict:!1,keepEscaping:!0,keepDoubleQuotes:!0,keepSingleQuotes:!0};try{return n(t,e).join("\\.")}catch(r){return t}}t.exports=c},89371:function(t){"use strict";
/*!
 * isobject <https://github.com/jonschlinkert/isobject>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */t.exports=function(t){return null!=t&&"object"===typeof t&&!1===Array.isArray(t)}},86006:function(t){var e=Object.prototype.toString;function r(t){return"function"===typeof t.constructor?t.constructor.name:null}function n(t){return Array.isArray?Array.isArray(t):t instanceof Array}function o(t){return t instanceof Error||"string"===typeof t.message&&t.constructor&&"number"===typeof t.constructor.stackTraceLimit}function a(t){return t instanceof Date||"function"===typeof t.toDateString&&"function"===typeof t.getDate&&"function"===typeof t.setDate}function i(t){return t instanceof RegExp||"string"===typeof t.flags&&"boolean"===typeof t.ignoreCase&&"boolean"===typeof t.multiline&&"boolean"===typeof t.global}function s(t,e){return"GeneratorFunction"===r(t)}function u(t){return"function"===typeof t.throw&&"function"===typeof t.return&&"function"===typeof t.next}function c(t){try{if("number"===typeof t.length&&"function"===typeof t.callee)return!0}catch(e){if(-1!==e.message.indexOf("callee"))return!0}return!1}function l(t){return!(!t.constructor||"function"!==typeof t.constructor.isBuffer)&&t.constructor.isBuffer(t)}t.exports=function(t){if(void 0===t)return"undefined";if(null===t)return"null";var f=typeof t;if("boolean"===f)return"boolean";if("string"===f)return"string";if("number"===f)return"number";if("symbol"===f)return"symbol";if("function"===f)return s(t)?"generatorfunction":"function";if(n(t))return"array";if(l(t))return"buffer";if(c(t))return"arguments";if(a(t))return"date";if(o(t))return"error";if(i(t))return"regexp";switch(r(t)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(u(t))return"generator";switch(f=e.call(t),f){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return f.slice(8,-1).toLowerCase().replace(/\s/g,"")}},73351:function(t,e,r){"use strict";
/*!
 * set-value <https://github.com/jonschlinkert/set-value>
 *
 * Copyright (c) 2014-2018, Jon Schlinkert.
 * Released under the MIT License.
 */const n=r(17493);function o(t,e,r,n){if(!c(t))return t;let o=n||{};const s=Array.isArray(e);if(!s&&"string"!==typeof e)return t;let l=o.merge;l&&"function"!==typeof l&&(l=Object.assign);const f=(s?e:i(e,o)).filter(u),p=f.length,y=t;if(!n&&1===f.length)return a(t,f[0],r,l),t;for(let i=0;i<p;i++){let e=f[i];if(c(t[e])||(t[e]={}),i===p-1){a(t,e,r,l);break}t=t[e]}return y}function a(t,e,r,o){o&&n(t[e])&&n(r)?t[e]=o({},t[e],r):t[e]=r}function i(t,e){const r=s(t,e);if(o.memo[r])return o.memo[r];const n=e&&e.separator?e.separator:".";let a=[],i=[];a=e&&"function"===typeof e.split?e.split(t):t.split(n);for(let o=0;o<a.length;o++){let t=a[o];while(t&&"\\"===t.slice(-1)&&null!=a[o+1])t=t.slice(0,-1)+n+a[++o];i.push(t)}return o.memo[r]=i,i}function s(t,e){let r=t;if("undefined"===typeof e)return r+"";const n=Object.keys(e);for(let o=0;o<n.length;o++){const t=n[o];r+=";"+t+"="+String(e[t])}return r}function u(t){return"string"!==typeof t&&"number"!==typeof t&&(t=String(t)),"__proto__"!==t&&"constructor"!==t&&"prototype"!==t}function c(t){return null!==t&&("object"===typeof t||"function"===typeof t)}o.memo={},t.exports=o},17493:function(t,e,r){"use strict";
/*!
 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */var n=r(89371);function o(t){return!0===n(t)&&"[object Object]"===Object.prototype.toString.call(t)}t.exports=function(t){var e,r;return!1!==o(t)&&(e=t.constructor,"function"===typeof e&&(r=e.prototype,!1!==o(r)&&!1!==r.hasOwnProperty("isPrototypeOf")))}},76813:function(t){"use strict";function e(t){let e={};for(const r of Object.keys(t))e[t[r]]=r;return e}t.exports=(t,r={},n)=>{if("string"!==typeof t)throw new TypeError("expected a string");"function"===typeof r&&(n=r,r={});let o,a,i=r.separator||".",s={type:"root",nodes:[],stash:[""]},u=[s],c={input:t,separator:i,stack:u},l=t,f=-1;c.bos=()=>0===f,c.eos=()=>f===l.length,c.prev=()=>l[f-1],c.next=()=>l[f+1];let p=r.quotes||[],y=r.brackets||{};!0===r.brackets&&(y={"[":"]","(":")","{":"}","<":">"}),!0===r.quotes&&(p=['"',"'","`"]);let g=e(y),h=r.keep||(t=>"\\"!==t);const m=()=>c.block=u[u.length-1],b=()=>l[f+1],d=()=>l[++f],A=t=>{c.value=t,t&&!1!==h(t,c)&&(c.block.stash[c.block.stash.length-1]+=t)},k=(t,e)=>{let r=l.indexOf(t,e);return r>-1&&"\\"===l[r-1]&&(r=k(t,r+1)),r};for(;f<l.length-1;)if(c.value=o=d(),c.index=f,m(),"\\"!==o)if(p.includes(o)){let t=f+1,e=k(o,t);if(e>-1){A(o),A(l.slice(t,e)),A(l[e]),f=e;continue}A(o)}else if(!1!==r.brackets&&y[o])a={type:"bracket",nodes:[]},a.stash=!1!==h(o)?[o]:[""],a.parent=c.block,c.block.nodes.push(a),u.push(a);else if(!1!==r.brackets&&g[o]){if(1===u.length){A(o);continue}A(o),a=u.pop(),m(),A(a.stash.join(""))}else if(o!==i||"root"!==c.block.type)A(o);else{if("function"===typeof n&&!1===n(c)){A(o);continue}c.block.stash.push("")}else"\\"===b()?A(o+d()):(A(o),A(d()));a=u.pop();while(a!==s){if(!0===r.strict){let t=f-a.stash.length+1;throw new SyntaxError(`Unmatched: "${a.stash[0]}", at column ${t}`)}o=a.parent.stash.pop()+a.stash.join("."),a.parent.stash=a.parent.stash.concat(o.split(".")),a=u.pop()}return a.stash}},46093:function(t,e,r){"use strict";const n=r(58571),o=r(73351),a=t=>null!=t&&"object"===typeof t&&!Array.isArray(t),i=(...t)=>{let e=[],r=t=>{for(let n of t)Array.isArray(n)?r(n,e):e.push(n)};return r(t),e},s=t=>t.filter(((e,r)=>t.indexOf(e)===r)),u=(...t)=>s(i(...t)),c=(...t)=>t.find((t=>null!=t));t.exports=(t,e,r)=>{if(!a(t))throw new TypeError("expected the first argument to be an object");if("string"!==typeof e)throw new TypeError("expected the second argument to be a string");let i=[].concat(c(n(t,e),[]));return o(t,e,u(i,[].concat(c(r,[])))),t}},97905:function(t,e,r){"use strict";r.d(e,{PW:function(){return u},o5:function(){return c},po:function(){return a.saveAs}});var n=r(27954),o=r.n(n),a=r(96010),i=r(13502),s=r.n(i);const u=async(t=[{fileName:"",base64:""}],e="")=>{const r=new(o());t.forEach((({fileName:t,base64:e})=>{r.file(t,e,{base64:!0})}));const n=await r.generateAsync({type:"blob"});return(0,a.saveAs)(n,e)},c=async t=>{const e=new(s())(t),r=await e.fetchAsData();return r.replace(/^(.*?)base64,/,"")}}}]);
//# sourceMappingURL=4564.cb8b9502.js.map