PageSourceSearch

https://www.custompens.ca/_nuxt/js/chunks/modal-half-list4.99c84e4.js

js custompens.ca collected 2026-10-04 02:05:53 UTC 52,772 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[150],{1142:function(t,e,o){"use strict";o(982)},1143:function(t,e,o){var r=o(17)(function(i){return i[1]});r.push([t.i,"input[type=file][data-v-cc66f402]{display:none}.uploadBox[data-v-cc66f402]{align-items:center;background-color:#fff;border:1px solid #f0f0f0;border-radius:2px;display:flex;flex-direction:column;gap:4px;justify-content:center;min-width:0;overflow:hidden;position:relative;transition:all .3s;-webkit-user-select:text;user-select:text}.uploadBox.showNormal b[data-v-cc66f402]{color:var(--color-primary)}.uploadBox.showNormal .uploadBtnBox .removeBtn[data-v-cc66f402],.uploadBox.showNormal .uploadBtnBox .uploadBtn[data-v-cc66f402]{background-color:var(--color-primary);border:1px solid var(--color-primary)}.uploadBox.showNormal .uploadBtnBox .removeBtn[data-v-cc66f402]{background-color:#fff;color:var(--color-primary)}@media(any-hover:hover){.uploadBox[data-v-cc66f402]:hover{--hoverBack:#e6e6e6;box-shadow:0 6px 5px var(--hoverBack),0 -1px 3px var(--hoverBack)}}.uploadBox b[data-v-cc66f402]{color:#e86f6f;font-size:40px}.uploadBox .iconBox[data-v-cc66f402]{flex-direction:column}.uploadBox .iconBox[data-v-cc66f402],.uploadBox .uploadedPic[data-v-cc66f402]{align-items:center;display:flex;justify-content:center}.uploadBox .uploadedPic[data-v-cc66f402]{aspect-ratio:1/1;background-color:#0006;border-radius:50%;margin-bottom:1em;overflow:hidden;width:50%}.uploadBox .uploadedPic img[data-v-cc66f402]{height:100%;object-fit:cover;width:100%}.uploadBox .uploadBtnBox[data-v-cc66f402]{font-size:14px;margin-top:1em}.uploadBox .uploadBtnBox .removeBtn[data-v-cc66f402],.uploadBox .uploadBtnBox .uploadBtn[data-v-cc66f402]{align-items:center;background-color:#ae1e1e;border:1px solid #ae1e1e;border-radius:10px;color:#fff;cursor:pointer;display:flex;font-weight:700;justify-content:center;padding:.8em 4em}.uploadBox .uploadBtnBox .removeBtn[data-v-cc66f402]{background-color:#fff;color:#ae1e1e}.uploadBox .uploadText[data-v-cc66f402]{font-size:16px;font-weight:700;text-align:center}.uploadBox .uploadText2[data-v-cc66f402]{font-size:14px;text-align:center}.uploadBox .uploadText3[data-v-cc66f402]{color:#666;font-size:12px;text-align:center}@media screen and (min-width:320px)and (max-width:1000px){.uploadBox[data-v-cc66f402]{padding:10px 0}.uploadBox .uploadedPic[data-v-cc66f402]{margin-bottom:.5em;width:30%}}",""]),r.locals={},t.exports=r},1144:function(t,e,o){var content=o(1314);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(18).default)("3edb5656",content,!0,{sourceMap:!1})},1201:function(t,e,o){"use strict";o.r(e);var r=o(632),l=o(609),d=o(16),n={name:"uploadBox",props:{uploadPic:{type:Array,default:()=>[]},showNormal:{type:Boolean,default:!1},noSave:{type:Boolean,default:!0},cateId:{type:[String,Number],default:0}},components:{},data:()=>({acceptFileType:".JPG,.JPEG,.jpe,.jif,.jfif,.jfi,.GIF,.PNG,.BMP,.WEBP"}),watch:{},computed:{langDefault(){return this.$store.getters.lang.default||{}},langModal(){var t;return(null===(t=this.$store.getters.lang.pages)||void 0===t?void 0:t.modal)||{}},langSemiCustom(){return this.$store.getters.lang.semiCustom||{}},langCart(){return this.$store.getters.lang.order},userTempImg(){return localStorage.getItem("userTempImg".concat(this.cateId))}},methods:{infoUpload(){this.clickUpload(),this.$store.commit("setSizeDialog",!1)},clickUpload(){this.$refs.productUpload1.click()},uploadPicFn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"upload";this.$gl.show();var o="upload"===e?t.target.files:t;if(!Object(r.b)(Array.from(o),this.acceptFileType,30))return this.$toast.error(this.langModal.fileTypeError),this.$gl.hide(),this.$refs.productUpload1.value="",!1;var n=o[0];Object(l.a)(n).then(t=>{var e={id:Object(d.u)(),original_filename:n.name,secure_url:t,iconUrl:t};this.$refs.productUpload1.value="",this.$emit("update:uploadPic",[e]),this.$emit("mergeImgFn",e.secure_url,n.name,n.size),this.$store.commit("halfDesign/setMedalsUploadFile",[e]),localStorage.setItem("userTempImg".concat(this.cateId),JSON.stringify({url:t,name:n.name,size:n.size,noAddArr:[]})),this.$gl.hide()})},delUploadImg(){this.$emit("update:uploadPic",[]),this.$store.commit("halfDesign/setMedalsUploadFile",[]),this.$emit("cancelMergeImg",!1),localStorage.removeItem("userTempImg".concat(this.cateId))}},created(){},mounted(){if(this.noSave)localStorage.removeItem("userTempImg".concat(this.cateId));else if(this.userTempImg){var t=JSON.parse(this.userTempImg);t.noAddArr=[],setTimeout(()=>{var e={id:Object(d.u)(),original_filename:t.name,secure_url:t.url,iconUrl:t.url};this.$emit("update:uploadPic",[e]),this.$emit("mergeImgFn",e.secure_url,t.name,t.size),localStorage.setItem("userTempImg".concat(this.cateId),JSON.stringify(t))},2800)}}},c=n,h=(o(1142),o(7)),component=Object(h.a)(c,function(){var t=this,e=t._self._c;return e("div",{staticClass:"uploadBox",class:{showNormal:t.showNormal}},[e("div",{directives:[{name:"show",rawName:"v-show",value:0==t.uploadPic.length,expression:"uploadPic.length == 0"}],staticClass:"iconBox",on:{click:t.clickUpload}},[e("b",{staticClass:"icon-shangchuan uploadIcon"}),t._v(" "),e("div",{staticClass:"uploadText"},[t._v(t._s(t.langModal.seeYourDesign))]),t._v(" "),e("div",{staticClass:"uploadText2"},[t._v(t._s(t.langModal.uploadProduct))])]),t._v(" "),t.uploadPic.length>0?e("div",{staticClass:"uploadedPic"},[e("img",{attrs:{src:t.uploadPic[0].secure_url,alt:t.langModal.uploadedPic,title:t.langModal.uploadedPic}})]):t._e(),t._v(" "),e("span",{staticClass:"uploadText3"},[t._v(t._s(t.langModal.onlyYouSee))]),t._v(" "),e("div",{staticClass:"uploadBtnBox"},[0==t.uploadPic.length?e("div",{staticClass:"uploadBtn",on:{click:t.clickUpload}},[t._v(t._s(t.langModal.uploadNow))]):e("div",{staticClass:"removeBtn",on:{click:t.delUploadImg}},[t._v(t._s(t.langDefault.remove))])]),t._v(" "),e("input",{ref:"productUpload1",attrs:{type:"file",accept:t.acceptFileType},on:{change:t.uploadPicFn}})])},[],!1,null,"cc66f402",null);e.default=component.exports},1313:function(t,e,o){"use strict";o(1144)},1314:function(t,e,o){var r=o(17)(function(i){return i[1]});r.push([t.i,'input[type=file][data-v-4548e876]{display:none}
1.mbLoadBox[data-v-4548e876]{align-items:center;border-top:1px solid #f0f0f0;display:flex;gap:.8rem 1rem;justify-content:space-between;padding:1rem;position:fixed;top:0;z-index:999}.mbLoadBox[data-v-4548e876],.mbLoadBox[data-v-4548e876]:after{background-color:#fff;left:0;width:100%}.mbLoadBox[data-v-4548e876]:after{content:"";height:4px;position:absolute;top:-2px}.mbLoadBox.showNormal b[data-v-4548e876]{color:var(--color-primary)}.mbLoadBox.showNormal .uploadBtnBox .removeBtn[data-v-4548e876],.mbLoadBox.showNormal .uploadBtnBox .uploadBtn[data-v-4548e876]{background-color:var(--color-primary)!important;border:1px solid var(--color-primary)!important}.mbLoadBox.showNormal .uploadBtnBox .removeBtn[data-v-4548e876]{background-color:#fff!important;color:var(--color-primary)!important}.mbLoadBox .textWrap[data-v-4548e876]{display:flex;flex:1;flex-direction:column;gap:4px}.mbLoadBox .textWrap .uploadText[data-v-4548e876]{font-size:14px;font-weight:700;text-align:left}.mbLoadBox .textWrap .uploadText2[data-v-4548e876]{font-size:12px;text-align:left}.mbLoadBox .imgWrap[data-v-4548e876]{align-items:center;display:flex;flex-shrink:0;gap:.8rem;justify-content:flex-end}.mbLoadBox .imgWrap .uploadedPic[data-v-4548e876]{border-radius:50%;height:45px;overflow:hidden;width:45px}.mbLoadBox .imgWrap .uploadedPic img[data-v-4548e876]{height:100%;object-fit:cover;width:100%}.mbLoadBox .imgWrap .uploadBtnBox[data-v-4548e876]{font-size:14px}.mbLoadBox .imgWrap .uploadBtnBox .removeBtn[data-v-4548e876],.mbLoadBox .imgWrap .uploadBtnBox .uploadBtn[data-v-4548e876]{align-items:center;background-color:#ae1e1e;border:1px solid #ae1e1e;border-radius:10px;color:#fff;cursor:pointer;display:flex;font-weight:700;justify-content:center;padding:.8em 1em}.mbLoadBox .imgWrap .uploadBtnBox .removeBtn[data-v-4548e876]{background-color:#fff;color:#ae1e1e}',""]),r.locals={},t.exports=r},1388:function(t,e,o){"use strict";var r=o(632),l=o(609),d=o(16),n={name:"mbLoadBox",components:{},props:{uploadPic:{type:Array,default:()=>[]},showNormal:{type:Boolean,default:!1},noSave:{type:Boolean,default:!0},cateId:{type:[String,Number],default:0}},data:()=>({acceptFileType:".JPG,.JPEG,.jpe,.jif,.jfif,.jfi,.GIF,.PNG,.BMP,.WEBP"}),computed:{langDefault(){return this.$store.getters.lang.default||{}},langModal(){var t;return(null===(t=this.$store.getters.lang.pages)||void 0===t?void 0:t.modal)||{}},langSemiCustom(){return this.$store.getters.lang.semiCustom||{}},langCart(){return this.$store.getters.lang.order},userTempImg(){return localStorage.getItem("userTempImg".concat(this.cateId))}},watch:{},methods:{clickUpload(){this.$refs.productUpload1.click()},uploadPicFn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"upload";this.$gl.show();var o="upload"===e?t.target.files:t;if(!Object(r.b)(Array.from(o),this.acceptFileType,30))return this.$toast.error(this.langModal.fileTypeError),this.$gl.hide(),this.$refs.productUpload1.value="",!1;var n=o[0];Object(l.a)(n).then(t=>{var e={id:Object(d.u)(),original_filename:n.name,secure_url:t,iconUrl:t};this.$refs.productUpload1.value="",this.$emit("update:uploadPic",[e]),this.$emit("mergeImgFn",e.secure_url,n.name,n.size),this.$store.commit("halfDesign/setMedalsUploadFile",[e]),localStorage.setItem("userTempImg".concat(this.cateId),JSON.stringify({url:t,name:n.name,size:n.size,noAddArr:[]})),this.$gl.hide()})},delUploadImg(){this.$emit("update:uploadPic",[]),this.$store.commit("halfDesign/setMedalsUploadFile",[]),this.$emit("cancelMergeImg",!1),localStorage.removeItem("userTempImg".concat(this.cateId))}},created(){},mounted(){if(this.noSave)localStorage.removeItem("userTempImg".concat(this.cateId));else if(this.userTempImg){var t=JSON.parse(this.userTempImg);t.noAddArr=[],setTimeout(()=>{var e={id:Object(d.u)(),original_filename:t.name,secure_url:t.url,iconUrl:t.url};this.$emit("update:uploadPic",[e]),this.$emit("mergeImgFn",e.secure_url,t.name,t.size),localStorage.setItem("userTempImg".concat(this.cateId),JSON.stringify(t))},2800)}}},c=n,h=(o(1313),o(7)),component=Object(h.a)(c,function(){var t=this,e=t._self._c;return e("div",{staticClass:"mbLoadBox",class:{showNormal:t.showNormal}},[e("div",{staticClass:"textWrap"},[e("div",{staticClass:"uploadText"},[t._v(t._s(t.langModal.seeYourDesign))]),t._v(" "),e("div",{staticClass:"uploadText2"},[t._v(t._s(t.langModal.uploadProduct))])]),t._v(" "),e("div",{staticClass:"imgWrap"},[t.uploadPic.length>0?e("div",{staticClass:"uploadedPic"},[e("img",{attrs:{src:t.uploadPic[0].secure_url,alt:t.langModal.uploadedPic,title:t.langModal.uploadedPic}})]):t._e(),t._v(" "),e("div",{staticClass:"uploadBtnBox"},[0==t.uploadPic.length?e("div",{staticClass:"uploadBtn",on:{click:t.clickUpload}},[t._v("\n\t\t\t\t"+t._s(t.langDefault.upload)+"\n\t\t\t")]):e("div",{staticClass:"removeBtn",on:{click:t.delUploadImg}},[t._v(t._s(t.langDefault.remove))])])]),t._v(" "),e("input",{ref:"productUpload1",attrs:{type:"file",accept:t.acceptFileType},on:{change:t.uploadPicFn}})])},[],!1,null,"4548e876",null);e.a=component.exports},1814:function(t,e,o){var content=o(2980);
1content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(18).default)("bc2e8416",content,!0,{sourceMap:!1})},1817:function(t,e,o){var content=o(2986);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(18).default)("c891727c",content,!0,{sourceMap:!1})},2979:function(t,e,o){"use strict";o(1814)},2980:function(t,e,o){var r=o(17)(function(i){return i[1]});r.push([t.i,".rightHeader[data-v-90b1c7b8]{align-items:center;column-gap:3vw;display:flex;flex-wrap:wrap;margin-bottom:20px;width:fit-content}@media screen and (min-width:320px)and (max-width:1000px){.rightHeader[data-v-90b1c7b8]{gap:initial}}.rightHeader h3[data-v-90b1c7b8]{font-size:1.25em}",""]),r.locals={},t.exports=r},2985:function(t,e,o){"use strict";o(1817)},2986:function(t,e,o){var r=o(17)(function(i){return i[1]});r.push([t.i,'[theme="6"] .modal-box[data-v-75474a72]{line-height:1.3;padding:4.25em max(calc(50% - 850px),3vw)}[data-v-75474a72] .custom-slider .v-range-slider__track-background{background-color:var(--color-second)!important}[data-v-75474a72] .custom-slider .v-range-slider__track-fill{background-color:var(--color-primary)!important}.mbFilterDialog[data-v-75474a72]{height:100%;width:100%;z-index:99999}@media screen and (min-width:320px)and (max-width:1000px){.bps_container[data-v-75474a72]{font-size:12px}}.wrap[data-v-75474a72]{background-color:#fff;display:flex;flex-direction:column}@media screen and (min-width:320px)and (max-width:1000px){.wrap[data-v-75474a72]{padding-bottom:10px}}.modal-box[data-v-75474a72]{z-index:auto}.wrap.modal-box.noPaddingTop[data-v-75474a72]{padding-top:0!important}.wrap.modal-box.isDialog[data-v-75474a72]{padding:20px!important}@media screen and (min-width:320px)and (max-width:1000px){.wrap.modal-box.isDialog[data-v-75474a72]{padding:0!important}.wrap.modal-box.isDialog[data-v-75474a72] .rightHeader{padding:10px 10px 0}.wrap.modal-box.isDialog[data-v-75474a72] .top-right{margin:0;padding-right:20px}}.wrap.modal-box.isPage[data-v-75474a72]{padding:0!important}img[data-v-75474a72]{max-height:100%;max-width:100%;vertical-align:middle;width:auto}.borderBox[data-v-75474a72]{border:1px solid #f0f0f0;height:0;width:100%}.litterArrow[data-v-75474a72]{margin-left:2px}.litterArrow[data-v-75474a72]:before{font-size:8px}#borderBoxSticky[data-v-75474a72]{background:#f4f5f7}.content[data-v-75474a72]{align-items:flex-start;display:grid;position:relative;grid-column-gap:20px;grid-template-columns:265px 1fr;padding-bottom:50px}.content.specialList[data-v-75474a72]{grid-template-columns:1fr}.content .loadProgress[data-v-75474a72]{padding:10px 0;width:100%}.content .load[data-v-75474a72],.content .loadProgress[data-v-75474a72]{align-items:center;display:flex;justify-content:center}.content .load[data-v-75474a72]{min-height:200px;padding:20px}.content.noFilter[data-v-75474a72]{grid-template-columns:1fr;grid-column-gap:18px;grid-row-gap:0;padding-bottom:50px}.content.noFilter .rightPart .rightContent .good-item .goods[data-v-75474a72]{grid-template-rows:auto 1fr}.content .rightBar .rightPart[data-v-75474a72]{display:flex;flex-direction:column;height:100%;overflow:hidden;padding:2px;position:relative}.content .rightBar .rightPart .rightContent[data-v-75474a72]{flex:1;height:0;position:relative;width:100%}.content .rightBar .rightPart .rightContent .productWrap[data-v-75474a72]{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:20px}@media screen and (min-width:1001px)and (max-width:1400px){.content .rightBar .rightPart .rightContent .productWrap[data-v-75474a72]{grid-template-columns:repeat(3,1fr)}}@media screen and (min-width:320px)and (max-width:1000px){.content .rightBar .rightPart .rightContent .productWrap[data-v-75474a72]{grid-template-columns:repeat(1,1fr);grid-gap:10px}}.content .rightBar .rightPart .rightContent .inserted_element[data-v-75474a72]{grid-column:span 2;grid-row:span 1}@media screen and (min-width:320px)and (max-width:1000px){.content .rightBar .rightPart .rightContent .inserted_element[data-v-75474a72]{grid-column:span 1}}@media(any-hover:hover){.content .rightBar .rightPart .rightContent .good-item:hover .good-back[data-v-75474a72]{background-color:var(--color-second)}}@media screen and (min-width:320px)and (max-width:1000px){.content[data-v-75474a72]{grid-template-columns:1fr;padding:0}}',""]),r.locals={}
1,t.exports=r},3586:function(t,e,o){"use strict";o.r(e);var r=o(3),l=o(4),d=(o(9),o(113),o(69),o(14),o(96),o(12),o(23),o(33),o(204),o(205),o(206),o(207),o(208),o(209),o(210),o(211),o(212),o(213),o(214),o(215),o(216),o(11),o(16)),n=o(851),c=o(1047),h=o(597),m=o(226),v=o(940),f=o(1201),x=o(1388),y={data:()=>({uploadPic:[],intersectionObserver:null,needMerge:!1,showMbUpload:!1,nowShowLoadBtn:!1}),components:{uploadBox:f.default,mbLoadBox:x.a},computed:{},watch:{productList(t){this.isListDesign&&this.$nextTick(()=>{if(this.intersectionObserver){var t=document.querySelectorAll(".productGoods");t&&[...t].forEach(element=>{this.intersectionObserver.unobserve(element)})}setTimeout(()=>{this.initIntersectionObserver()},600),this.isMobile&&setTimeout(()=>{this.initDisappearObserver()},600)})}},methods:{insertUploadBox(){0!=this.productList.length&&(this.productList.some(t=>-1===t.id)||this.productList.unshift({id:-1,name:"uploadBox"}))},mergeImg(t,e,o){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!t||!e)return Promise.resolve(!1);var l=new Image,d=new Image;l.crossOrigin="Anonymous",d.crossOrigin="Anonymous",l.src=t,d.src=e;var n=window.devicePixelRatio||1;return new Promise((t,e)=>{Promise.all([this.loadImage(l),this.loadImage(d)]).then(()=>{var canvas=document.createElement("canvas"),e=canvas.getContext("2d");if(canvas.width=o.width*n,canvas.height=o.height*n,e.scale(n,n),e.clearRect(0,0,o.width,o.height),e.drawImage(d,0,0,o.width,o.height),r.circle&&void 0!==r.circle.x&&void 0!==r.circle.y&&+r.circle.radius||2==r.selectedStyle){var c=o.width/500,h=o.height/500,m={centerX:r.circle.x*c,centerY:r.circle.y*h,radius:r.circle.radius*Math.min(c,h)};e.beginPath(),e.arc(m.centerX,m.centerY,m.radius,0,2*Math.PI),e.closePath(),e.clip();var v=l.naturalWidth,f=l.naturalHeight,x=Math.min(v,f),y=2*m.radius/x,P=x*y,w=x*y,I=m.centerX-P/2,L=m.centerY-w/2;e.drawImage(l,(v-x)/2,(f-x)/2,x,x,I,L,P,w)}else{if(void 0===r.top||void 0===r.left||void 0===r.right||void 0===r.bottom)return void t(!1);var B=d.naturalWidth,S=d.naturalHeight,D=Math.max(1,B-r.left-r.right),N=Math.max(1,S-r.top-r.bottom),O=o.width*(r.left/B),T=o.height*(r.top/S),C=o.width*(D/B),_=o.height*(N/S),M=l.naturalWidth,j=l.naturalHeight,A=Math.min(C/M,_/j),k=M*A,F=j*A,$=O+(C-k)/2,H=T+(_-F)/2;e.drawImage(l,0,0,M,j,$,H,k,F)}var E=canvas.toDataURL("image/png");t(E)}).catch(t=>{e(!1)})})},nowMergeImg(t){var e=this;return Object(r.a)(function*(){var o=document.querySelectorAll(".productGoods"),l=[],d=[];o&&([...o].forEach(function(){var o=Object(r.a)(function*(element,o){o>=10||l.push(Object(r.a)(function*(){var{goods:o,img2:r,options:l,canvasData:n,id:c}=e.getProductImgData(element),h=null;try{h=yield e.mergeImg(t,r,n,l)}catch(t){}h&&(d.push({id:+c,canvasData:n,options:l}),o.dataset.newimgurl=h,o.dataset.used=!0,e.setProductImgData(element,!0))})())});return function(t,e){return o.apply(this,arguments)}}()),yield Promise.all(l),e.setProductData(d,!0),e.needMerge=!0)})()},changeColor(t,e,o,l){var d=arguments,n=this;return Object(r.a)(function*(){var r=d.length>4&&void 0!==d[4]&&d[4];if(n.isListDesign&&n.uploadPic.length>0&&n.uploadPic[0].secure_url.length>0){var c=yield n.mergeImg(n.uploadPic[0].secure_url,e,JSON.parse(o),JSON.parse(l));if(!c)return;var h=document.querySelector(".goods".concat(t));if(h)if(h.dataset.newimgurl=c,r)document.querySelector(".picImg".concat(t)).setAttribute("src",c);n.setProductData([{id:+t,canvasData:o,options:l}],!0)}})()},cancelMergeImg(){this.needMerge=!1,this.setProductData([],!1,"all"),this.setAllProductData()},setAllProductData(){var t=document.querySelectorAll(".productGoods");t&&[...t].forEach(element=>{var{goods:t}=this.getProductImgData(element);t&&(t.dataset.used=!1,t.dataset.newimgurl="")})},setProductData(t,data){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"self";if(this.isListDesign){if("all"==e)return void this.productList.forEach((t,e)=>{t.showMergeImg=data});this.productList.forEach((e,o)=>{var r=t.find(t=>t.id==e.id);if(r&&!e.isSoldOut&&(e.showMergeImg=data,-1==e.selectedColorIndex&&data)){var l,d,n,c,h,m,v,f,x=null===(l=e.productParamList)||void 0===l?void 0:l[0],y={};if(x.designAltTitle&&this.parseJSON(x.designAltTitle)[0].url)y=this.parseJSON(x.designAltTitle)[0].editConfig;else y=this.parseJSON(x.imgJson)[0],e.showImgSrc=null===(f=y)||void 0===f?void 0:f.url;var P=null===(d=y)||void 0===d?void 0:d.url,w=y?JSON.stringify({left:null===(n=y)||void 0===n?void 0:n.left,right:null===(c=y)||void 0===c?void 0:c.right,top:null===(h=y)||void 0===h?void 0:h.top,bottom:null===(m=y)||void 0===m?void 0:m.bottle,circle:null!==(v=y)&&void 0!==v&&v.circle?y.circle:null}):JSON.stringify({});e.selectedColorIndex=0,this.changeColor(e.id,P,JSON.stringify(r.canvasData),w,!0)}})}},parseJSON:t=>t?JSON.parse(t):[],getProductImgData(element){var t=element.querySelector(".goodsDom"),e="",o={},r=-99,l=!1,d={};if(t)try{e=t.dataset.imgurl,r=t.dataset.imgid,o=JSON.parse(t.dataset.options),l=t.dataset.used,d=JSON.parse(t.dataset.canvasdata)}catch(t){}return{goods:t||null,img2:e,id:r,used:l,canvasData:d,options:o}},setProductImgData(element,data){var t=element.querySelector(".goodsDom");t&&(t.dataset.used=data)},loadImage:img=>new Promise((t,e)=>{img.onload=t,img.onerror=e}),initIntersectionObserver(){var t=this;if(this.isListDesign){var e=new IntersectionObserver(e=>{e.forEach(function(){var e=Object(r.a)(function*(e){if(e.isIntersecting&&t.uploadPic.length>0&&t.uploadPic[0].secure_url.length>0){var o=t.uploadPic[0].secure_url,{goods:r,img2:l,options:d,canvasData:n,id:c,used:h}=t.getProductImgData(e.target);if("true"===h)return;var m=null;try{m=yield t.mergeImg(o,l,n,d)}catch(t){}if(!m)return;r.dataset.newimgurl=m,r.dataset.used=!0,t.setProductData([{id:+c,canvasData:n,options:d}],!0)}});return function(t){return e.apply(this,arguments)}}())},{root:null,rootMargin:"0px",threshold:.1}),o=document.querySelectorAll(".productGoods");
1o&&[...o].forEach(element=>{e.observe(element)}),this.intersectionObserver=e}},initDisappearObserver(){if(this.isListDesign){var t=new IntersectionObserver(t=>{t.forEach(t=>{t.target===e?this.showMbUpload=!t.isIntersecting:t.target===o&&(t.isIntersecting?this.nowShowLoadBtn=!0:this.nowShowLoadBtn=!1)})},{root:null,rootMargin:"0px",threshold:.1}),e=document.querySelector(".uploadBox");e&&t.observe(e);var o=document.querySelector(".loadBtnMainBox");o&&t.observe(o),this.disappearObserver=t}}},created(){},mounted(){},beforeDestroy(){}},P=o(663),w=o(872);function I(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,r)}return o}function L(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?I(Object(o),!0).forEach(function(e){Object(l.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):I(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var B={props:{modal:{type:Object,default:()=>({})}},methods:{setModalType(t,e,o){this.$emit("setModalType",{target:t,targetArray:e,clickType:o})}}},S=o(7),D=Object(S.a)(B,function(){var t=this,e=t._self._c;return e(P.a,{attrs:{height:"300"}},[e(w.a,{staticStyle:{width:"100%",height:"100%",display:"flex",margin:"0"},attrs:{align:"center",justify:"center"}},[e("div",{staticClass:"rightHeader"},t._l(t.modal.list,function(o,li){var r,l,d;return"moduleData"!=o.type?e("div",{key:li,style:L(L({},t.modal.cardBoxStyle),o.style)},[null!==(r=o.title)&&void 0!==r&&r.value?e("EditDiv",{style:L({},t.modal.titleStyle),attrs:{tagName:o.title.tagName||"h1"},on:{click:function(e){return t.setModalType(o.title,t.modal.list,"text")}},model:{value:o.title.value,callback:function(e){t.$set(o.title,"value",e)},expression:"l.title.value"}}):t._e(),t._v(" "),null!==(l=o.subTitle)&&void 0!==l&&l.value?e("EditDiv",{style:L({},t.modal.subTitleStyle),attrs:{tagName:o.subTitle.tagName||"p"},on:{click:function(e){return t.setModalType(o.subTitle,t.modal.list,"text")}},model:{value:o.subTitle.value,callback:function(e){t.$set(o.subTitle,"value",e)},expression:"l.subTitle.value"}}):t._e(),t._v(" "),null!==(d=o.text)&&void 0!==d&&d.value?e("EditDiv",{style:t.modal.textStyle,on:{click:function(e){return t.setModalType(o.text,t.modal.list,"text")}},model:{value:o.text.value,callback:function(e){t.$set(o.text,"value",e)},expression:"l.text.value"}}):t._e()],1):t._e()}),0)])],1)},[],!1,null,"069a6449",null).exports,N=o(2113);function O(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,r)}return o}function T(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?O(Object(o),!0).forEach(function(e){Object(l.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):O(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var C={props:{modal:{type:Object,default:()=>({})},isPage:{type:Boolean,default:!1}},methods:{setModalType(t,e,o){this.$emit("setModalType",{target:t,targetArray:e,clickType:o})}}},_=(o(2979),Object(S.a)(C,function(){var t=this,e=t._self._c;return t.modal.list?e("div",{staticClass:"rightHeader"},t._l(t.modal.list,function(o,li){var r,l,d;return"moduleData"!=o.type?e("div",{key:li,style:T(T({},t.modal.cardBoxStyle),o.style)},[null!==(r=o.title)&&void 0!==r&&r.value?e("EditDiv",{style:T({},t.modal.titleStyle),attrs:{tagName:t.isPage?"h3":o.title.tagName||"h1"},on:{click:function(e){return t.setModalType(o.title,t.modal.list,"text")}},model:{value:o.title.value,callback:function(e){t.$set(o.title,"value",e)},expression:"l.title.value"}}):t._e(),t._v(" "),null!==(l=o.subTitle)&&void 0!==l&&l.value?e("EditDiv",{style:T({},t.modal.subTitleStyle),attrs:{tagName:o.subTitle.tagName||"p"},on:{click:function(e){return t.setModalType(o.subTitle,t.modal.list,"text")}},model:{value:o.subTitle.value,callback:function(e){t.$set(o.subTitle,"value",e)},expression:"l.subTitle.value"}}):t._e(),t._v(" "),null!==(d=o.text)&&void 0!==d&&d.value?e("EditDiv",{style:t.modal.textStyle,on:{click:function(e){return t.setModalType(o.text,t.modal.list,"text")}},model:{value:o.text.value,callback:function(e){t.$set(o.text,"value",e)},expression:"l.text.value"}}):t._e()],1):t._e()}),0):t._e()}
1,[],!1,null,"90b1c7b8",null).exports),M=o(2114),j=o(2115),A=o(929),k=o(951);function F(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,r)}return o}function $(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?F(Object(o),!0).forEach(function(e){Object(l.a)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):F(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var H={name:"halfList4",fetchKey(){return this.listFetchKey},mixins:[v.a,y],props:["cateId","data","parentCateId","halfCateDTO","isStockPage","name","isPage","selectLabelData","customSorts","productFirstId"],components:{CateArea:j.a,SearchArea:M.a,RightHeadArea:_,PensLeftBar:N.a,ManageEditeArea:D,Loading:m.a,noFind:n.default,product:c.default,BaseDialog:h.default,LoadMoreBtn:A.a,recommonDiv:k.a},provide(){return{isDialog:this.isDialog,isPage:this.isPage}},data(){return{scrollTop:1,debounceSearchProduct:null,modal:$({style:{},type:{}},this.data),showPriceRange:!1,priceRange:[-99e4,99e4],halfName:"",goodList:[],keyword:"",sorts:2,labelData:[],cateList:[],activeNames:[],selectedParams:[],showFilter:!0,page:1,pages:0,pageSize:60,totalResult:0,productList:[],colorItem:"",priceKey:0,quantityKey:0,screenWidth:0,screenHeight:0,loadingProduct:!0,cateName:"",isManage:!1,attributeValueIds:[],selectedParamsObj:{},loadLabel:!1,adData:null,advert:[],adNum:0,useAdNum:0,doubleAd:0,customKeyword:"",usePosition:0,fatherCateName:"",headerHeight:0,selectLabelHeight:0,nowTimeStamp:"",cancelTokenSource:null,firstCate:!1,fristWatch:!1,adBoxHeight:"auto",addTag:!1,productTag:"",showMbFilterDialog:!1,mbLoadBoxTop:0,show
1FirstProduct:!1}},fetch(){var t=this;return Object(r.a)(function*(){t.isMobile&&(t.showFilter=!1),t.page=parseInt(t.$route.query.page)||1,t.productList.length>0||(t.loadingProduct=!0);try{var e={categoryId:t.parentCateId||t.cateId,childCategoryId:t.parentCateId?t.cateId:null,isLabel:1,attributeValueIds:[],keyWord:""};t.selectedParams.length>0&&t.processSelectedParams();var[,o,r,l]=yield Promise.all([t.loadThreeData(!0),t.$api.getAppLabelAttributeList($($({},e),{},{attributeValueIds:t.selectedParams.length>0?t.getLabelAttributeValueIds():[]})),t.$api.listAllCategoryByParentId({id:t.parentCateId||t.cateId,onlyGetStockCate:t.isStockPage}),t.$api.getAdvertList({categoryId:t.parentCateId||t.cateId})]);t.labelData=t.processLabelData(o.data),t.activeNames.push(-1),t.labelData&&0!=t.labelData.length&&!t.isMobile||(t.showFilter=!1),t.cateList=r.data;var d,n=t.cateList.find(e=>e.id==t.cateId);if(n){if(t.$store.commit("halfDesign/setIsFastQuote",Boolean(n.isFastQuote)),t.fatherCateName=n.name,n.attributeValueId&&t.labelData&&t.labelData.length>0){var c=t.labelData.find(t=>"color"==t.attributeFlag);c&&(null==c||c.attributeList.forEach(e=>{e.id==n.attributeValueId&&t.toggleColor(e)}))}}else t.$store.commit("halfDesign/setIsFastQuote",!1),t.fatherCateName=null===(d=t.halfCateDTO)||void 0===d?void 0:d.name;t.initAdvertData(l.data),t.fristWatch=!0,t.insertAdPosition(),t.selectedParams.length>0&&t.callFn1()}catch(e){t.labelData=[]}finally{t.loadingProduct=!1}})()},watch:{modal:{handler(t){0},immediate:!0,deep:!0},selectedParams(){this.fristWatch&&(this.useAdNum=0,this.doubleAd=0,this.usePosition=0,this.updateLabel(),this.searchProduct())}},computed:{listFetchKey(){var t,e=(null===(t=this.data)||void 0===t?void 0:t.id)||"default";return"half-list4:".concat(e,":").concat(this.cateId||"",":").concat(this.parentCateId||"",":").concat(this.isStockPage||"",":").concat(this.productFirstId||"")},sortList(){return{1:this.langSemiCustom.newest,2:this.langSemiCustom.recommended,3:this.langSemiCustom.bestSeller,4:this.langSemiCustom.popular}},getProductIsDiv(){return(!this.isKeychainsCo||this.isDialog)&&!this.isLuggageSite},isLuggageSite(){return 475===this.proId},isKeychainsCo(){return 354===this.proId},isDialog(){return!!this.name&&!this.isPage},langSemiCustom(){return this.$store.getters.lang.semiCustom||{}},userId(){var t;return null===(t=this.$store.state.userInfo)||void 0===t?void 0:t.id},isLogin(){return this.$store.getters.isLogin},isMobile(){return"mb"===this.$store.state.device},numPercent(){return Math.round((this.productList.length-this.usePosition)/this.totalResult*100)},showLoadBtn(){return!(this.page==this.pages)},proId(){return this.$store.state.proId},isFd(){return 9==this.proId},isKeychains(){var t;return 11==(null===(t=this.halfCateDTO)||void 0===t?void 0:t.categoryType)},isLuggage(){var t;return 12==(null===(t=this.halfCateDTO)||void 0===t?void 0:t.categoryType)},isBallMarkers(){var t;return 13==(null===(t=this.halfCateDTO)||void 0===t?void 0:t.categoryType)},isFidgetSpinners(){var t;return 14==(null===(t=this.halfCateDTO)||void 0===t?void 0:t.categoryType)},isListDesign(){var t;return null===(t=this.halfCateDTO)||void 0===t?void 0:t.isListDesign},specialList(){return!!this.modal.specialList},copyProductFirstId(){var t=this.productFirstId||this.$route.query.productFirstId;return t?String(t).split(",").map(t=>t.trim()).filter(t=>t):[]}},methods:{hydrateNuxtFetchPayload(){var t;if(null===(t=window.__NUXT__)||void 0===t||!t.fetch)return!1;var e=window.__NUXT__.fetch[this.listFetchKey];return!!e&&(this._fetchKey=this.listFetchKey,this._hydrated=!0,e._error?(this.$fetchState&&(this.$fetchState.error=e._error),!0):(Object.keys(e).forEach(t=>{this.$set(this.$data,t,e[t])}),this.$fetchState&&(this.$fetchState.pending=!1,this.$fetchState.error=null),!0))},toDetail(t){this.$emit("toDetail",t)},updateTag(t){var e=this.selectedParamsObj[t.fatherId];if(e){var o=e.findIndex(e=>e.id==t.id);o>-1?(e.splice(o,1),this.addTag=!1,this.productTag=""):(this.addTag=!0,this.productTag=t.valueName,e.push(t)),0==e.length&&this.$delete(this.selectedParamsObj,t.fatherId)}else this.$set(this.selectedParamsObj,t.fatherId,[t]),this.addTag=!0,this.productTag=t.valueName},updateLabel(){this.listScrollTop(),this.loadLabel=!0;var t=this.addTag?this.productTag:"";this.getAppLabelAttributeList(t).then(t=>{this.labelData=this.processLabelData(t.data)}).finally(()=>{this.loadLabel=!1})},getAppLabelAttributeList(){return this.$api.getAppLabelAttributeList({categoryId:this.parentCateId||this.cateId,childCategoryId:this.customKeyword?"":this.parentCateId?this.cateId:null,isLabel:1,attributeValueIds:this.getLabelAttributeValueIds(),keyWord:this.keyword})},toCate(){if(this.halfCateDTO){var path="1"==this.isStockPage?this.halfCateDTO.shopRouting:this.halfCateDTO.customRouting;this.isDialog||this.isPage?this.$emit("changeCategory",path):this.$router.push({path:path})}},changeRange(t){this.priceRange=t,this.showPriceRange=!0,this.useAdNum=0,this.doubleAd=0,this.usePosition=0;try{window.gtag&&gtag("event","select_content",{content_type:"producPrice",content_value:this.priceRange})}catch(t){}this.searchProduct(),this.updateLabel()},clearRange(){this.priceRange=[-1e4,1e4],this.showPriceRange=!1,this.useAdNum=0,this.doubleAd=0,this.usePosition=0,this.searchProduct(),this.updateLabel()},delColor(){this.colorItem="",this.useAdNum=0,this.doubleAd=0,this.usePosition=0,this.searchProduct(),this.updateLabel()}
1,delTag(t){var e=t.id,o=this.selectedParams.findIndex(t=>t===e);o>=0&&this.selectedParams.splice(o,1),this.updateTag(t)},delAllTag(){this.selectedParams=[],this.selectedParamsObj={},this.colorItem="",this.page=1,this.keyword="",this.priceRange=[-99e4,99e4],this.showPriceRange=!1,this.addTag=!1,this.productTag=""},submitForm(){this.customKeyword=!!this.keyword,this.useAdNum=0,this.doubleAd=0,this.usePosition=0,this.searchProduct(),this.updateLabel()},toggleColor(t){this.colorItem.id===t.id?this.colorItem="":this.colorItem=t,this.useAdNum=0,this.doubleAd=0,this.usePosition=0,this.searchProduct(),this.updateLabel()},formatUrlName:t=>t.substring(1,t.length),changeCategory(t){var path="1"==this.isStockPage?t.shopRouting:t.customRouting;this.isDialog||this.isPage?this.$emit("changeCategory",path):this.$router.push({path:path})},getLabelAttributeValueIds(){var t=[];for(var i in this.selectedParamsObj)t.push({parentId:i,childIds:this.selectedParamsObj[i].map(t=>t.id)});if(this.colorItem){try{window.gtag&&gtag("event","select_content",{content_type:"productColor",content_value:this.colorItem.valueName})}catch(t){}t.push({parentId:this.colorItem.fatherId,childIds:[this.colorItem.id]})}return t},getAttributeValueIds(){var t="";for(var i in this.selectedParamsObj){var e=this.selectedParamsObj[i].map(t=>t.id);e.length>0&&(t+=e.join(",")+"-")}return this.colorItem&&(t+=this.colorItem.id),t=t.replace(/^-*|-*$/g,"")},getProduct(t){return new Promise(e=>{this.$api.getProductList({categoryId:this.parentCateId||this.cateId,childCategoryId:this.customKeyword?"":this.parentCateId?this.cateId:null,page:t||this.page,pageSize:this.pageSize,keyWord:this.keyword,attributeValueIds:this.getAttributeValueIds(),userId:this.isLogin?this.userId:null,sorts:this.sorts,priceStart:this.priceRange[0],priceEnd:this.priceRange[1],productType:this.isStockPage}).then(t=>{this.totalResult=t.data.total,this.pages=t.data.pages,this.page=t.data.current,this.firstCate=!1,e(t)}).catch(t=>{t.name,e({data:{records:[],total:0,pages:0,current:1}})})})},getAdvertData(){return this.$api.getAdvertList({categoryId:this.parentCateId||this.cateId})},initAdvertData(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(this.adData=null,this.advert=[],this.adNum=0,this.useAdNum=0,this.doubleAd=0,this.usePosition=0,e.length&&null!==(t=e[0])&&void 0!==t&&null!==(t=t.advertiseList)&&void 0!==t&&t.length){var o=e[0].advertiseList.filter(t=>1==t.isEnable).map(t=>$($({},t),{},{id:Object(d.u)()}));if(!o.length)return;this.adData=e[0],this.advert=o,this.adNum=Math.floor((Number(e[0].advertiseNum)+1)/2)}},searchProduct(t){this.loadingProduct=!0,this.page=1,this.getProduct().then(e=>{this.productList=this.setDefaultShowImg(e.data.records),"hasParamId"==t&&(this.show
1FirstProduct=!1),this.sortProductListByFirstId(this.productList),this.isListDesign&&this.insertUploadBox(),this.insertAdPosition()}).finally(()=>{this.loadingProduct=!1,this.setAdHeight()})},sortProductListByFirstId(t){if(!this.showFirstProduct&&t.length){var e=this.copyProductFirstId;if(e.length){var o=new Map(e.map((t,e)=>[String(t),e]));t.sort((a,b)=>(o.has(String(a.id))?o.get(String(a.id)):1/0)-(o.has(String(b.id))?o.get(String(b.id)):1/0)),this.showFirstProduct=!0}else this.showFirstProduct=!0}},setDefaultShowImg(t){if(t){if(this.isStockPage&&"11"==this.$store.state.proTheme)return t.forEach(t=>{t.showMergeImg=!1,t.showImgSrc=t.sceneImg,t.selectedColorIndex=-1}),t;var e,o=this.colorItem;return o&&(e=o.id),t.forEach(t=>{if(t.showMergeImg=!1,t.productParamList&&t.productParamList.length>0){var o=t.productParamList,r=o.findIndex(t=>t.attributeValueId===e);if(r>-1)try{var l;t.showImgSrc=null===(l=JSON.parse(o[r].imgJson)[0])||void 0===l?void 0:l.url,t.selectedColorIndex=r}catch(t){}else if(t.sceneImg)t.showImgSrc=t.sceneImg,t.selectedColorIndex=-1;else try{var d;t.showImgSrc=null===(d=JSON.parse(o[0].imgJson)[0])||void 0===d?void 0:d.url,t.selectedColorIndex=0}catch(t){}}else t.showImgSrc=t.sceneImg,t.selectedColorIndex=-1}),t}},sortProduct(t){this.sorts=t;try{window.gtag&&gtag("event","select_content",{content_type:"productSort",content_value:["Newest","Recommend","Best Seller","Popular"][t-1]})}catch(t){}this.useAdNum=0,this.doubleAd=0,this.usePosition=0,this.searchProduct()},toggleFilter(){this.setAdHeight(),this.showFilter=!this.showFilter;var t=document.querySelector(".loadBtnMainBox");
1if(t&&!this.isMobile&&(this.showFilter?(t.style.width="calc(100% - 265px)",t.style.marginLeft="265px"):(t.style.width="100%",t.style.marginLeft="0")),this.isMobile)if(this.showFilter){var e=document.querySelector(".leftBar");e.style.top="initial",e.style.bottom="0",this.showMbFilterDialog=!0}else this.showMbFilterDialog=!1},clickTitle(t){var e=this.activeNames.findIndex(e=>t.id===e);e>=0?this.activeNames.splice(e,1):this.activeNames.push(t.id)},handleResize(){var header=document.querySelector("#modalHeader");this.headerHeight="number"==typeof(null==header?void 0:header.offsetHeight)?header.offsetHeight:0,this.isDialog&&(this.headerHeight=0),this.setSticky();var t=!1;this.screenWidth>window.innerWidth?this.screenWidth>1400&&window.innerWidth<1400&&(this.screenWidth=window.innerWidth,t=!0):this.screenWidth<1400&&window.innerWidth>1400&&(this.screenWidth=window.innerWidth,t=!0),t&&(this.useAdNum=0,this.doubleAd=0,this.usePosition=0,this.debounceSearchProduct())},insertAdPosition(){if(!this.adData||!this.productList.length)return!1;1==this.page&&(this.useAdNum=0,this.doubleAd=0,this.usePosition=0);var t="pc"===this.$store.state.device?"pc":"mb",e=(this.page-1)*this.pageSize+1,o=this.page*this.pageSize;this.productList.length-this.useAdNum<o&&(o=this.productList.length-this.useAdNum);for(var r,l=[],i=1;i<=this.adNum;i++)if(r=this.adNum>this.advert.length?(i-1)%this.advert.length:this.usePosition,i%2!=0){var d=void 0;(d="pc"==t?(i+1)/2*16-13:2+(i-1)/2*12)>=e&&d<=o&&(d-=this.doubleAd,2==this.advert[r].booth&&(d--,this.doubleAd++),l.push(d),this.usePosition++)}else{var n=void 0;(n="pc"==t?16*Math.floor((i-1)/2)+9-1:6+(i-2)/2*12)>=e&&n<=o&&(n-=this.doubleAd,2==this.advert[r].booth&&this.doubleAd++,l.push(n),this.usePosition++)}if(0!=l.length){this.insertAd(l);this.productList.filter(t=>"string"==typeof t.id)}},insertAd(t){if(0!=this.productList.length)if(this.advert.length<this.adNum)for(var i=0;i<t.length;i++){if(this.useAdNum==this.advert.length&&(this.useAdNum=0),i>=this.advert.length){var e=i%this.advert.length,o=JSON.parse(JSON.stringify(this.advert[e]));o.id=Object(d.u)(),this.productList.splice(t[i],0,o)}else{var r=this.advert.slice(this.useAdNum),l=JSON.parse(JSON.stringify(r[0]));l.id=Object(d.u)(),this.productList.splice(t[i],0,l)}this.useAdNum++}else for(var n=0;n<t.length;n++){var c=this.advert.slice(this.useAdNum),h=JSON.parse(JSON.stringify(c[0]));h.id=Object(d.u)(),this.productList.splice(t[n],0,h),this.useAdNum++}},setSticky(){if(this.isMobile){this.mbLoadBoxTop=this.headerHeight+"px";var t=document.querySelector(".top-right");t&&(t.style.top=this.headerHeight+"px",this.mbLoadBoxTop=this.headerHeight+t.offsetHeight+"px")}else{var e=document.querySelector(".top-right"),o=document.querySelector(".leftBar");this.selectLabelHeight=this.headerHeight,o&&(o.style.top=this.headerHeight+"px"),e&&(e.style.top=this.headerHeight+"px")}this.setAdHeight()},loadMoreData(){var t=this;return Object(r.a)(function*(){yield t.loadThreeData(!1)})()},loadThreeData(){var t=arguments,e=this;return Object(r.a)(function*(){var o=t.length>0&&void 0!==t[0]&&t[0],r=e.page;if(!o&&(r=e.page+1,0===e.totalResult||e.pages<r||e.page<=0))return!1;e.loadingProduct=!0;var l=yield e.getProduct(r).then(t=>e.setDefaultShowImg(t.data.records));e.sortProductListByFirstId(l),e.productList=e.productList.concat(l),e.isListDesign&&e.insertUploadBox(),e.insertAdPosition(),e.loadingProduct=!1,e.setAdHeight()})()},listScrollTop(){try{if(this.isDialog||1===this.scrollTop)return this.scrollTop++,!1;Object(d.bb)(document.querySelector(".modalHalfListBox")),this.scrollTop++}catch(t){}},setModalType(t,e,o,r,l){this.$setModal(this,t,e,o,r,l)},setAdHeight(){this.adBoxHeight="0px",this.$nextTick(()=>{try{var t=document.querySelector(".productGoods");t&&(this.adBoxHeight=t.getBoundingClientRect().height+"px")}catch(t){}})}},mounted(){var header=document.querySelector("#modalHeader");this.headerHeight="number"==typeof(null==header?void 0:header.offsetHeight)?header.offsetHeight:0,this.isDialog&&(this.headerHeight=0),this.halfName=this.$route.params.halfDesign,this.debounceSearchProduct=Object(d.k)(this.searchProduct,600),this.screenHeight=window.innerHeight,this.screenWidth=window.innerWidth,this.cateName=this.$route.params.pathMatch,(this.isDialog||this.isPage)&&(this.cateName=this.formatUrlName(this.name)),window.onresize=Object(d.k)(this.handleResize,300),this.$nextTick(()=>{this.setSticky()})},beforeDestroy(){window.onresize=null},created(){this.hydrateNuxtFetchPayload()}},E=H,R=(o(2985),Object(S.a)(E,function(){var t,e=this,o=e._self._c;return o("div",{staticClass:"modalHalfListBox List4",staticStyle:{position:"relative"}}
1,[o("div",{staticClass:"wrap modal-box",class:{isDialog:e.isDialog,noPaddingTop:!e.isManage,isPage:e.isPage},style:[e.modal.style]},[e.isManage?[o("ManageEditeArea",{attrs:{modal:e.modal},on:{setModalType:function(t){return e.setModalType(t.target,t.targetArray,t.clickType)}}})]:[o("div",{staticClass:"bps_container",class:{showMbUpload:e.showMbUpload}},[o("div",{staticClass:"content",class:{noFilter:!e.showFilter&&!e.isMobile,specialList:e.specialList},attrs:{id:"proContent"}},[o("PensLeftBar",{directives:[{name:"show",rawName:"v-show",value:e.showFilter&&!e.specialList,expression:"showFilter && !specialList"}],attrs:{activeNames:e.activeNames,colorItem:e.colorItem,fatherCateName:e.fatherCateName,isStockPage:e.isStockPage,labelData:e.labelData,loadLabel:e.loadLabel,priceRange:e.priceRange,screenHeight:e.screenHeight,selectLabelHeight:e.selectLabelHeight,selectedParams:e.selectedParams,selectedParamsObj:e.selectedParamsObj,showPriceRange:e.showPriceRange,sortList:e.sortList,totalResult:e.totalResult},on:{"update:selectedParams":function(t){e.selectedParams=t},"update:selected-params":function(t){e.selectedParams=t},changeRange:e.changeRange,clearRange:e.clearRange,clickTitle:e.clickTitle,delAllTag:e.delAllTag,delColor:e.delColor,delTag:e.delTag,sortProduct:e.sortProduct,toCate:e.toCate,toggleColor:e.toggleColor,toggleFilter:e.toggleFilter,updateTag:e.updateTag}}),e._v(" "),o("div",{staticClass:"rightBar"},[o("RightHeadArea",{directives:[{name:"show",rawName:"v-show",value:!e.specialList,expression:"!specialList"}],attrs:{modal:e.modal,isPage:e.isPage}}),e._v(" "),o("SearchArea",{directives:[{name:"show",rawName:"v-show",value:!e.specialList,expression:"!specialList"}],attrs:{keyword:e.keyword,showFilter:e.showFilter,sortList:e.sortList,sorts:e.sorts},on:{"update:keyword":function(t){e.keyword=t},sortProduct:e.sortProduct,submitForm:e.submitForm,toggleFilter:e.toggleFilter}}),e._v(" "),o("mbLoadBox",{directives:[{name:"show",rawName:"v-show",value:e.showMbUpload&&!e.nowShowLoadBtn,expression:"showMbUpload && !nowShowLoadBtn"}],style:{top:e.mbLoadBoxTop},attrs:{uploadPic:e.uploadPic,cateId:null===(t=e.halfCateDTO)||void 0===t?void 0:t.categoryType,showNormal:""},on:{"update:uploadPic":function(t){e.uploadPic=t},"update:upload-pic":function(t){e.uploadPic=t},mergeImgFn:e.nowMergeImg,cancelMergeImg:e.cancelMergeImg}}),e._v(" "),o("div",{staticClass:"borderBox",attrs:{id:"borderBoxSticky"}}),e._v(" "),o("CateArea",{directives:[{name:"show",rawName:"v-show",value:!e.specialList,expression:"!specialList"}],attrs:{cateList:e.cateList,isStockPage:e.isStockPage,cateName:e.cateName},on:{changeCategory:e.changeCategory}}),e._v(" "),o("div",{staticClass:"rightPart",attrs:{id:"productList"}},[0!==e.productList.length||e.loadingProduct?e._e():o("noFind",{attrs:{cateId:e.cateId,cateName:e.cateName,fatherCateName:e.fatherCateName,isDialog:e.isDialog,keyword:e.keyword,parentCateId:e.parentCateId}}),e._v(" "),0!==e.productList.length||e.loadingProduct||e.specialList?e._e():o("recommonDiv",{attrs:{moduleArr:e.moduleArr},scopedSlots:e._u([{key:"default",fn:function(t){var{product:r,index:l,recProductList:d}=t;return[o("product",{staticClass:"productGoods2",class:{inserted_element:2==r.booth},style:{height:"100%"},attrs:{adBoxHeight:e.adBoxHeight,cateId:e.cateId,isDiv:e.getProductIsDiv,isStockPage:e.isStockPage,itemIndex:l,parentCateId:e.parentCateId,productData:r,isFd:e.isFd,productList:d,isListDesign:!!e.isListDesign},on:{toDetail:e.toDetail}})]}}],null,!1,4051481971)}),e._v(" "),o("div",{staticClass:"rightContent"},[o("div",{staticClass:"productWrap"},e._l(e.productList,function(t,r){var l;return o("div",{key:t.id},[t.id<0?o("uploadBox",{staticStyle:{width:"100%",height:"100%"},attrs:{uploadPic:e.uploadPic,showNormal:!0,noSave:!1,cateId:null===(l=e.halfCateDTO)||void 0===l?void 0:l.categoryType},on:{"update:uploadPic":function(t){e.uploadPic=t},"update:upload-pic":function(t){e.uploadPic=t},mergeImgFn:e.nowMergeImg,cancelMergeImg:e.cancelMergeImg}}):o("product",{ref:"productGoods",refInFor:!0,staticClass:"productGoods",class:{inserted_element:2==t.booth},attrs:{adBoxHeight:e.adBoxHeight,cateId:e.cateId,isDiv:e.getProductIsDiv,isStockPage:e.isStockPage,itemIndex:r,parentCateId:e.parentCateId,productData:t,is
1Fd:e.isFd,productList:e.productList,needMerge:e.needMerge,specialList:e.specialList,isListDesign:!!e.isListDesign},on:{toDetail:e.toDetail,changeColor:e.changeColor}})],1)}),0)])],1),e._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:e.loadingProduct,expression:"loadingProduct"}],staticClass:"loadProgress"},[o("Loading")],1)],1)],1),e._v(" "),o("LoadMoreBtn",{directives:[{name:"show",rawName:"v-show",value:!e.loadingProduct&&e.totalResult>0&&!e.specialList,expression:"!loadingProduct && totalResult > 0 && !specialList"}],attrs:{loadingProduct:e.loadingProduct,totalResult:e.totalResult,productList:e.productList,usePosition:e.usePosition,showLoadBtn:e.showLoadBtn},on:{loadMoreData:e.loadMoreData}}),e._v(" "),o("BaseDialog",{staticClass:"mbFilterDialog",attrs:{persistent:""},model:{value:e.showMbFilterDialog,callback:function(t){e.showMbFilterDialog=t},expression:"showMbFilterDialog"}},[o("div",{attrs:{slot:"closeIcon"},slot:"closeIcon"},[o("b",{staticClass:"icon-guanbi",staticStyle:{height:"0",display:"none"}})])])],1)]],2)])},[],!1,null,"75474a72",null));e.default=R.exports},632:function(t,e,o){"use strict";o.d(e,"a",function(){return l}),o.d(e,"d",function(){return d}),o.d(e,"c",function(){return n}),o.d(e,"e",function(){return c}),o.d(e,"h",function(){return h}),o.d(e,"g",function(){return m}),o.d(e,"f",function(){return v}),o.d(e,"b",function(){return f});o(21),o(9),o(14),o(12),o(26),o(347),o(204),o(205),o(206),o(207),o(208),o(209),o(210),o(211),o(212),o(213),o(214),o(215),o(216),o(11);var r=o(16),l=".eps,.ai,.pdf,.jpg,.jpeg,.jpe,.jif,.jfif,.jfi,.gif,.png,.bmp,.tif,.svg,.word,.xls,.xlsx,.txt,.webp",d=".JPG,.JPEG,.jpe,.jif,.jfif,.jfi,.GIF,.PNG,.PDF,.AI,.BMP,.TIF,.EPS,.WEBP",n=".JPG,.JPEG,.jpe,.jif,.jfif,.jfi,.GIF,.PNG,.BMP,.TIF,.EPS,.WEBP,.svg,.AI,.PDF,.psd",c=".JPG,.JPEG,.jpe,.jif,.jfif,.jfi,.GIF,.PNG,.BMP,.TIF,.EPS,.WEBP,.svg";function h(t,e,o){var r=Number(t);e=Number(e),o=Number(o);var l="number"==typeof r&&!isNaN(r),d={message:"",isValid:!0};return""===t||null==t?(d.message="Size is required",d.isValid=!1,d):l?r<e?(d.message="Can't be less than ".concat(e),d.isValid=!1,d):r>o?(d.message="Can't be more than ".concat(o),d.isValid=!1,d):(/^([1-9]\d*|false)(\.\d{1,2})?$/.test(r)||(d.message="Maximum 2 decimal places",d.isValid=!1),d):(d.message="Must be a number",d.isValid=!1,d)}function m(t,e,o){var r=Number(t);e=Number(e),o=Number(o);var l="number"==typeof r&&!isNaN(r),d=""===t||null==t,n=Number.isInteger(r),c={message:"",isValid:!0,number:r,isNumber:""};return d?(c.message="Quantity is required",c.isValid=!1,c):l?n?r>10&&r%10!=0?(c.message="Must be a multiple of 10",c.isValid=!1,c):r<e?(c.message="Can't be less than ".concat(e),c.isValid=!1,c):r>o?(c.message="Can't be more than ".concat(o),c.isValid=!1,c):c:(c.message="Must be of integer type",c.isValid=!1,c):(c.message="Must be a number",c.isValid=!1,c.isNumber=!1,c)}function v(t){if(-1===["image/svg+xml","image/png","image/jpg","image/jpeg","image/gif"].indexOf(t.type))return{isValid:!1,message:"Upload pictures can only be PNG, SVG, JPG, GIF format!"};return t.size>10485760?{isValid:!1,message:"Upload image size must not exceed '+ maxSizeInMb + 'MB!"}:{isValid:!0,message:"Picture check qualified"}}function f(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:80,l=e.split(",").map(t=>t.toLowerCase()),d=!0;if(t.forEach(t=>{var e=Object(r.x)(t.name).toLowerCase();l.includes(e)||(d=!1)}),!d)return!1;var n=t.filter(t=>t.size/1024/1024<=o),c=t.filter(t=>t.size/1024/1024>o).map(t=>({fileName:t.name}));return{nomalSize:n,overSize:[...new Map(c.map(t=>[t.fileName,t])).values()].map(t=>({fileName:t.fileName}))}}},940:function(t,e,o){"use strict";o.d(e,"a",function(){return l});o(9),o(137),o(138),o(139),o(140),o(141),o(142),o(143),o(144),o(145),o(146),o(147),o(148),o(149),o(150),o(151),o(152),o(11);var r=o(941),l={data:()=>({parentId:null,moduleArr:[]}),computed:{moduleData(){if(!this.modal.list||!this.modal.list.length)return[];var t=this.modal.list.find(t=>"moduleData"===t.type);return t?t.dataArr.value:[]}},watch:{productList(t){t&&t.length<=0&&this.getNowCateMoudleList()}},methods:{processSelectedParams(){this.selectedParams.map(t=>{var data=this.getParentData(this.parentId,t);this.parentId=data.fatherId,this.updateTag(data)}),this.parentId&&(this.activeNames.push(+this.parentId),this.activeNames=[...new Set(this.activeNames)])},processLabelData(data){var t=data||[];return t.forEach(t=>{t.isMore&&(t.moreText=!0),t.isExpand&&this.activeNames.push(t.id)}),this.activeNames=[...new Set([...this.activeNames])],t},callFn1(){this.processSelectedParams(),this.useAdNum=0,this.doubleAd=0,this.usePosition=0,this.searchProduct("hasParamId")},callFn2(){},getParentData(t,e){var o={fatherId:t,id:e};for(var r of this.labelData)if(r.attributeList&&Array.isArray(r.attributeList)){var l=r.attributeList.find(t=>
1t.id==+e);if(l)return l}return o},getNowCateMoudleList(){var data={cateId:this.cateId};Object(r.a)(data).then(t=>{this.moduleArr=t.data.map(t=>({title:t.title||"",selectedProducts:this.setDefaultShowImg(t.productList)}))})}},created(){var t=void 0;if(this.selectLabelData&&Object.keys(this.selectLabelData).length>0?(this.parentId=this.selectLabelData.parentId,t=this.selectLabelData.paramId):(this.parentId=this.$route.query.parentId,t=this.$route.query.paramId),this.parentId&&this.activeNames.push(+this.parentId),t){var e=t.split(",").map(Number);this.selectedParams.push(...e)}this.sorts=this.customSorts||this.$route.query.customSorts||2},mounted(){},beforeDestroy(){}}},982:function(t,e,o){var content=o(1143);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(18).default)("3c1ab52e",content,!0,{sourceMap:!1})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.