(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["productTemplate"],{"001d":function(t,e,a){"use strict";a("75ae")},"00e3":function(t,e,a){"use strict";a("c4f4")},"063a":function(t,e,a){},"0bde":function(t,e,a){},"0fc98":function(t,e,a){},"106f":function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"pc-product-detail"},[t._l(t.content,(function(e,r){return["CTitle"===e.name?a("Title",{key:r,attrs:{conf:e}}):"CProperties"===e.name?a("Properties",{key:r,attrs:{conf:e}}):"CDescription"===e.name?a("Description",{key:r,attrs:{conf:e}}):"CBlankspace"===e.name?a("Blankspace",{key:r,attrs:{conf:e}}):"CAds"===e.name?a("Ads",{key:r,attrs:{conf:e}}):"CGallery"===e.name?a("Gallery",{key:r,attrs:{conf:e}}):"CBrandDescription"===e.name?a("BrandDescription",{key:r,attrs:{conf:e}}):"CCustomize"===e.name?a("CustomProps",{key:r,attrs:{conf:e}}):"CSizeChart"===e.name?a("SizeChart",{key:r,attrs:{conf:e}}):t._e()]}))],2)},i=[],n=(a("a481"),a("c5f6"),a("8ccf")),o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"c-module-ads c-module-wrap"},[a("div",{staticClass:"c-ads"},[a("div",{staticClass:"cbroad cbroad-03"},[a("div",{staticClass:"bwrap"},t._l(t.conf.ad_images,(function(t,e){return a("img",{key:e,style:{height:t.image_url?"auto":"0.85rem"},attrs:{src:t.image_url||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAMAAAAoyzS7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAZQTFRF9Pb4AAAAr8J5dQAAAAxJREFUeNpiYAAIMAAAAgABT21Z4QAAAABJRU5ErkJggg=="}})})),0)])])])},s=[],l={props:{conf:{type:Object,default:function(){}}}},c=l,d=(a("32f0"),a("2877")),u=Object(d["a"])(c,o,s,!1,null,"a676da66",null),p=u.exports,f=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"c-module-title c-module-wrap"},[1===t.conf.type?a("div",{staticClass:"c-text-title",class:{"has-underline":t.conf.text.isShowUnderline},style:t.styles},[a("div",{staticClass:"first-line"},[t._v("\n "+t._s(t.conf.text.content)+"\n "),t.conf.text.isShowUnderline?a("div",{staticClass:"line",class:{center:"center"===t.conf.text.align}}):t._e()])]):t._e(),2===t.conf.type?a("div",{staticClass:"c-text-title-second",class:{"has-underline":t.conf.secondText.isShowUnderline},style:t.secondStyles},[a("div",{staticClass:"first-line",class:"fsize-"+t.conf.secondText.secondFontSize,style:{color:t.conf.secondText.color}},[t._v("\n "+t._s(t.conf.secondText.content)+"\n "),t.conf.secondText.isShowUnderline?a("div",{staticClass:"line",class:{center:"center"===t.conf.secondText.align}}):t._e()]),a("div",{staticClass:"second-line",class:"fsize-"+t.conf.secondText.secondFontSize,style:{color:t.conf.secondText.secondColor}},[t._v("\n "+t._s(t.conf.secondText.secondContent)+"\n ")])]):t._e(),3===t.conf.type?a("div",{staticClass:"c-image-title"},[t.conf.image.image_link?a("a",{attrs:{target:"_blank",href:t.conf.image.image_link}},[a("img",{staticClass:"c-image-title-pic",attrs:{src:t.conf.image.image_url}})]):t.conf.image.image_url?a("img",{staticClass:"c-image-title-pic",attrs:{src:t.conf.image.image_url}}):t._e()]):t._e()])},m=[],h={props:{conf:{type:Object,default:function(){}}},computed:{styles:function(){return 1===this.conf.type?{textAlign:this.conf.text.align,fontSize:this.conf.text.fontSize/2/100+"rem",color:this.conf.text.color}:{}},secondStyles:function(){return 2===this.conf.type?{textAlign:this.conf.secondText.align}:{}}}},g=h,v=(a("3fd5"),Object(d["a"])(g,f,m,!1,null,"6523db4e",null)),b=v.exports,y=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.conf.data?a("div",{staticClass:"c-module-description c-module-wrap"},[a("div",{staticClass:"c-description",class:{isShowBg:t.conf.background.isShow}},[a("div",{staticClass:"c-text-description",style:{textAlign:t.conf.align,fontSize:t.conf.fontSize/2/100+"rem",color:t.conf.color,background:t.conf.background.isShow?t.conf.background.color:"transparent"}},[a("div",{staticClass:"description-render-container"},t._l(t.DescriptionText,(function(e,r){return a("p",{key:r},[t._v(t._s(e))])})),0)])])]):t._e()},x=[],w=(a("28a5"),{props:{conf:{type:Object,default:function(){}}},computed:{DescriptionText:function(){return this.conf.data.replace(/(?:\r\n|\r|\n)/g,"
").split("
")}}}),_=w,k=(a("982c"),Object(d["a"])(_,y,x,!1,null,"724bf690",null)),S=k.exports,C=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.conf.data.length?a("div",{staticClass:"c-module-properties c-module-wrap"},[a("div",{staticClass:"c-properties"},[a("div",{staticClass:"prop-wrapper",class:"prop-"+t.conf.display_tpl+" fsize-"+t.conf.fontSize+" kwgh-"+t.conf.keyWeight+" vwgh-"+t.conf.valueWeight+" "+(1===t.conf.display_tpl&&t.conf.basic.lineSeal.isShow?"line-type-"+t.conf.basic.lineSeal.type:"")+" divide-type-"+t.conf.lines.divideType},t._l(t.conf.data,(function(e,r){return a("dl",{key:r},[a("dt",{style:t.dtStyle},[t._v("\n "+t._s(e.PropKey)+"\n ")]),a("dd",{style:t.ddStyle},[t._v("\n "+t._s(e.PropValue)+"\n ")])])})),0)])]):t._e()},A=[],T=a("3533"),E={components:{textToolTip:T["a"]},props:{conf:{type:Object,default:function(){}}},computed:{dtStyle:function(){return{color:this.conf.keyColor,backgroundColor:3===this.conf.display_tpl?this.conf.blocks.backgroundColor:"inherit"}},ddStyle:function(){return{color:this.conf.valueColor,backgroundColor:3===this.conf.display_tpl?this.conf.blocks.backgroundColor:"inherit"}}}},O=E,I=(a("f7f8"),Object(d["a"])(O,C,A,!1,null,"2c32a2fe",null)),P=I.exports,B=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.renderSet.length?a("div",{staticClass:"c-module-gallery c-module-wrap"},[a("div",{staticClass:"c-gallery"},[a("div",{staticClass:"c-gallery-container"},t._l(t.renderSet,(function(e,r){return a("img",{key:r,class:t.classSelect,attrs:{src:e}})})),0)])]):t._e()},D=[],j=(a("6762"),a("2fdb"),{props:{conf:{type:Object,default:function(){}}},computed:{classSelect:function(){var t=this.conf.display_tpl;switch(t){case 1:return"large-img";case 2:return"middle-img";case 3:return"small-img";default:return"large-img"}},renderSet:function(){var t=this.conf.data||[],e=this.conf.selected_images;return t.filter((function(t,a){return e.includes(a)}))}}}),L=j,R=(a("11aa"),Object(d["a"])(L,B,D,!1,null,"67b427eb",null)),M=R.exports,F=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"c-module-blankspace c-module-wrap"},[a("div",{style:{height:Math.round(t.conf.blank_height)/2/100+"rem",backgroundColor:t.conf.background_color}})])},z=[],N={props:{conf:{type:Object,default:function(){}}}},$=N,U=Object(d["a"])($,F,z,!1,null,null,null),V=U.exports,G=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.conf.data?a("div",{staticClass:"c-module-brand-description c-module-wrap"},[a("div",{staticClass:"c-brand-description",class:{isShowBg:t.conf.background.isShow}},[a("div",{staticClass:"c-text-description",style:{textAlign:t.conf.align,fontSize:t.conf.fontSize/2/100+"rem",color:t.conf.color,background:t.conf.background.isShow?t.conf.background.color:"transparent"}},[a("div",{staticClass:"description-render-container"},t._l(t.DescriptionText,(function(e,r){return a("p",{key:r},[t._v(t._s(e))])})),0)])])]):t._e()},q=[],W={props:{conf:{type:Object,default:function(){}}},computed:{DescriptionText:function(){return this.conf.data.replace(/(?:\r\n|\r|\n)/g,"
").split("
")}}},J=W,H=(a("a0a7"),Object(d["a"])(J,G,q,!1,null,"5abd8f52",null)),Z=H.exports,K=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.isShow?a("div",{staticClass:"c-module-properties c-module-wrap"},[a("div",{staticClass:"c-properties"},[a("div",{staticClass:"prop-wrapper",class:"prop-"+t.conf.display_tpl+" fsize-"+t.conf.fontSize+" kwgh-"+t.conf.keyWeight+" vwgh-"+t.conf.valueWeight+" "+(1===t.conf.display_tpl&&t.conf.basic.lineSeal.isShow?"line-type-"+t.conf.basic.lineSeal.type:"")+" divide-type-"+t.conf.lines.divideType},[t._l(t.conf.properties,(function(e,r){return[t.getCustomizeProp(e)?a("dl",{key:r},[a("dt",{style:t.dtStyle},[t._v("\n "+t._s(t.getCustomizeProp(e).PropKey)+"\n ")]),a("dd",{style:t.ddStyle},[t._v("\n "+t._s(t.getCustomizeProp(e).PropValue)+"\n ")])]):t._e()]}))],2)])]):t._e()},Q=[],X=(a("ac6a"),{components:{textToolTip:T["a"]},props:{conf:{type:Object,default:function(){}}},computed:{dtStyle:function(){return{color:this.conf.keyColor,backgroundColor:3===this.conf.display_tpl?this.conf.blocks.backgroundColor:"inherit"}},ddStyle:function(){return{color:this.conf.valueColor,backgroundColor:3===this.conf.display_tpl?this.conf.blocks.backgroundColor:"inherit"}},isShow:function(){var t=this;if(!this.conf.data.length||!this.conf.properties.length)return!1;var e=!1,a=this.conf.data.map((function(t){return t.PropKey}));return a.forEach((function(a){t.conf.properties.includes(a)&&(e=!0)})),e}},methods:{getCustomizeProp:function(t){var e=this.conf.data.filter((function(e){return e.PropKey===t}));return!!e.length&&e[0]}}}),Y=X,tt=(a("9c22"),Object(d["a"])(Y,K,Q,!1,null,"0d269532",null)),et=tt.exports,at=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},rt=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"c-module-size-chart c-module-wrap"},[r("div",{staticClass:"c-size-chart"},[r("img",{attrs:{src:a("e693"),alt:""}})])])}],it=(a("a8a2"),{}),nt=Object(d["a"])(it,at,rt,!1,null,"63a6e1a4",null),ot=nt.exports,st={components:{Ads:p,Title:b,Description:S,Properties:P,Gallery:M,Blankspace:V,BrandDescription:Z,CustomProps:et,SizeChart:ot},data:function(){return{content:[]}},mounted:function(){var t=this;Object(n["g"])({product_id:Number(this.$route.params.id)}).then((function(e){e&&(t.content=JSON.parse(decodeURIComponent(e.data.page_data.replace(/\+/g," "))))}))},beforeRouteEnter:function(t,e,a){document.querySelector("html").style.fontSize="100px",a()},beforeRouteLeave:function(t,e,a){document.querySelector("html").removeAttribute("style"),a()}},lt=st,ct=(a("ab5e"),Object(d["a"])(lt,r,i,!1,null,null,null));e["default"]=ct.exports},"11aa":function(t,e,a){"use strict";a("30be")},1201:function(t,e,a){"use strict";a("85fe")},"16bb":function(t,e,a){},2156:function(t,e,a){},2484:function(t,e,a){},"25e5":function(t,e,a){"use strict";a("60e7")},"30be":function(t,e,a){},3179:function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("custom-bread",{attrs:{breadList:t.breadList}}),a("div",{staticClass:"customContent"},[a("a-layout",{style:{background:"#f0f2f5"}},[a("a-layout-content",{style:{background:"#fff",marginBottom:"16px",padding:"24px"}},[a("div",{staticClass:"tableForm"},[a("div",{staticClass:"table-page-search-wrapper"},[a("a-form",{attrs:{layout:"inline"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.search(e)}}},[a("a-row",{attrs:{gutter:24}},[a("a-col",{attrs:{md:8,sm:24,xxl:6}},[a("a-form-item",{attrs:{label:"模板ID"}},[a("a-input",{attrs:{placeholder:t.$t("message.PleaseEnter")},model:{value:t.queryParam.id,callback:function(e){t.$set(t.queryParam,"id",e)},expression:"queryParam.id"}})],1)],1),a("a-col",{attrs:{md:8,sm:24,xxl:6}},[a("a-form-item",{attrs:{label:"模板标题"}},[a("a-input",{attrs:{placeholder:t.$t("message.PleaseEnter")},model:{value:t.queryParam.title,callback:function(e){t.$set(t.queryParam,"title",e)},expression:"queryParam.title"}})],1)],1),a("a-col",{attrs:{md:8,sm:24,xxl:6}},[a("a-form-item",{attrs:{label:"状态"}},[a("a-select",{attrs:{placeholder:t.$t("message.PleaSeselect")},model:{value:t.queryParam.status,callback:function(e){t.$set(t.queryParam,"status",e)},expression:"queryParam.status"}},[a("a-select-option",{attrs:{value:"0"}},[t._v("全部")]),a("a-select-option",{attrs:{value:"1"}},[t._v("已上架")]),a("a-select-option",{attrs:{value:"2"}},[t._v("未上架")])],1)],1)],1),a("a-col",{attrs:{md:8,sm:24,xxl:6}},[a("a-button",{staticStyle:{"margin-right":"8px"},attrs:{type:"primary"},on:{click:t.search}},[t._v(t._s(t.$t("message.Search")))]),a("a-button",{on:{click:t.reset}},[t._v(t._s(t.$t("message.Reset")))])],1)],1)],1)],1)])]),a("a-layout-content",{style:{background:"#fff",padding:"24px"}},[a("a-button",{directives:[{name:"permission",rawName:"v-permission",value:"product:/admin/goods/detailtemplate/create",expression:"'product:/admin/goods/detailtemplate/create'"}],staticClass:"marginBottom24",attrs:{type:"primary"},on:{click:t.createPage}},[t._v(t._s(t.$t("message.Create")))]),a("a-table",{ref:"table",attrs:{"table-layout":"fixed",dataSource:t.dataSource,columns:t.columns,rowKey:"id",loading:t.loading,pagination:!1},scopedSlots:t._u([{key:"description",fn:function(e){return[a("text-tool-tip",[t._v("\n "+t._s(e)+"\n ")])]}},{key:"created_time",fn:function(e){return[a("text-tool-tip",[t._v("\n "+t._s(e)+"\n ")])]}},{key:"status",fn:function(e){return[t._v("\n "+t._s(t._f("filterStatus")(e))+"\n ")]}},{key:"operation",fn:function(e,r,i){return[a("router-link",{directives:[{name:"permission",rawName:"v-permission",value:"product:/admin/goods/detailtemplate/detail",expression:"'product:/admin/goods/detailtemplate/detail'"}],attrs:{target:"_blank",to:{path:"/product/tool/productDetailDecoration/"+r.id+"/websiteId/"+r.website_id}}},[t._v("\n 装修模板   \n ")]),[0===r.status||2===r.status?a("a-popconfirm",{on:{confirm:function(){return t.up_down(r,1)}}},[a("template",{slot:"title"},[a("div",{staticStyle:{"max-width":"300px"}},[t._v("\n 确定要上架“"+t._s(t.dataSource[i].title)+"”吗?\n ")])]),a("a",{attrs:{href:"javascript:;"}},[t._v("上架")])],2):a("a-popconfirm",{on:{confirm:function(){return t.up_down(r,2)}}},[a("template",{slot:"title"},[a("div",{staticStyle:{"max-width":"300px"}},[t._v("\n 确定要下架“"+t._s(t.dataSource[i].title)+"”吗?\n ")])]),a("a",{attrs:{href:"javascript:;"}},[t._v("下架")])],2)],t._v("\n   \n "),[a("a-dropdown",[a("a",{staticClass:"ant-dropdown-link",attrs:{href:"javascript:;"}},[t._v("更多")]),a("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[1===r.status?a("a-menu-item",{directives:[{name:"permission",rawName:"v-permission",value:"product:/admin/goods/detailtemplate/task_add",expression:"'product:/admin/goods/detailtemplate/task_add'"}],attrs:{disabled:2===r.generate_status}},[a("span",{on:{click:function(){return t.generateImages(r)}}},[t._v("生成商详图片")])]):t._e(),1===r.status?a("a-menu-item",{directives:[{name:"permission",rawName:"v-permission",value:"product:/admin/export/detail_template_product",expression:"'product:/admin/export/detail_template_product'"}]},[a("a",{on:{click:function(){return t.exportProducts(r)}}},[t._v("导出关联商品")])]):t._e(),a("a-menu-item",[a("a",{directives:[{name:"permission",rawName:"v-permission",value:"product:/admin/goods/detailtemplate/copy",expression:"'product:/admin/goods/detailtemplate/copy'"}],attrs:{href:"javascript:;"},on:{click:function(e){return t.handlePageCopy(r)}}},[t._v("复制模板")])]),a("a-menu-item",{directives:[{name:"permission",rawName:"v-permission",value:"product:/admin/goods/detailtemplate/title/update",expression:"'product:/admin/goods/detailtemplate/title/update'"}]},[a("a",{attrs:{href:"javascript:;"},on:{click:function(e){return t.handlePageEdit(r)}}},[t._v("编辑模板")])]),0===r.status||2===r.status?a("a-menu-item",{directives:[{name:"permission",rawName:"v-permission",value:"product:/admin/goods/detailtemplate/delete",expression:"'product:/admin/goods/detailtemplate/delete'"}]},[a("a",{on:{click:function(){return t.del(r)}}},[t._v("删除模板")])]):t._e()],1)],1)]]}}])}),a("p-agination",{attrs:{total:t.pageTotal,currentPage:t.query.page,computedPageNumber:t.computedPageNumber,pageSize:t.query.limit},on:{jumpTableChange:t.jumpTableChange,selectPageSizeChange:t.selectPageSizeChange}}),a("page-copy",{ref:"pageCopy",on:{success:t.handleOk}}),a("page-new",{ref:"pageNew",on:{success:t.handleOk}})],1)],1)],1),a("export-success",{ref:"exportSuccess",on:{exportClose:t.exportClose}})],1)},i=[],n=(a("8e6e"),a("ac6a"),a("456d"),a("c5f6"),a("386d"),a("ade3")),o=a("c1df"),s=a.n(o),l=a("bf43"),c=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-modal",{attrs:{title:"复制模板",width:640,visible:t.visible,confirmLoading:t.confirmLoading},on:{ok:t.handleSubmit,cancel:t.handleCancel}},[a("a-spin",{attrs:{spinning:t.confirmLoading}},[a("a-form",{attrs:{form:t.form}},[a("a-form-item",{style:{marginBottom:"0px"},attrs:{label:"模板标题",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["title",{rules:[{required:!0,message:"请输入标题"},{max:50,message:"长度不能超过50个字"}]}],expression:"['title', { rules: [{ required: true, message: '请输入标题' },{ max:50, message: '长度不能超过50个字' }] },]"}]})],1)],1)],1)],1)},d=[],u=a("8ccf"),p={data:function(){return{labelCol:{xs:{span:24},sm:{span:7}},wrapperCol:{xs:{span:24},sm:{span:13}},form:this.$form.createForm(this),visible:!1,confirmLoading:!1,queryObj:{}}},methods:{handleSubmit:function(){var t=this,e=this.form.validateFields;e((function(e,a){if(!e){var r={id:t.queryObj.id,title:a.title,creator:t.$store.getters.nickname,website_id:t.queryObj.website_id};t.httpProcess(r)}}))},handleCancel:function(){this.visible=!1},httpProcess:function(t){var e=this;Object(u["a"])(t).then((function(t){t&&e.processDone()}))},pageCopyStart:function(t){this.queryObj=t;var e=this.form.setFieldsValue;this.visible=!0,this.$nextTick((function(){e({title:t.title})}))},processDone:function(){this.$emit("success"),this.visible=!1}}},f=p,m=a("2877"),h=Object(m["a"])(f,c,d,!1,null,null,null),g=h.exports,v=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-modal",{attrs:{title:t.editDecide?"编辑模板":"新建模板",width:696,visible:t.visible,destroyOnClose:!0,confirmLoading:t.confirmLoading},on:{ok:t.handleSubmit,cancel:t.handleCancel}},[a("a-form",{staticClass:"createPage",attrs:{form:t.form,"label-col":t.labelCol,"wrapper-col":t.wrapperCol},on:{submit:t.handleSubmit}},[a("a-form-item",{attrs:{label:"模板标题"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["title",{rules:[{required:!0,message:"请输入模板标题"},{max:50,message:"长度不能超过50个字"}],initialValue:t.values.title}],expression:"[\n 'title',\n {\n rules: [\n {\n required: true,\n message: '请输入模板标题'\n },\n {\n max: 50,\n message: '长度不能超过50个字'\n }\n ],\n initialValue: values.title\n }\n ]"}],attrs:{placeholder:"请输入"}})],1)],1)],1)},b=[],y={name:"NewDetailTemplate",data:function(){return{labelCol:{xs:{span:24},sm:{span:7}},wrapperCol:{xs:{span:24},sm:{span:13}},visible:!1,confirmLoading:!1,form:this.$form.createForm(this),editDecide:!1,current_page_id:-1,currentPageWebSiteId:-1,pageStatus:-1,values:{}}},methods:{moment:s.a,integrateHttp:function(t,e){return Object.assign(e,{website_id:this.currentPageWebSiteId}),t(e)},addPage:function(t){this.visible=!0,this.editDecide=!1,this.currentPageWebSiteId=t},handleSubmit:function(){var t=this,e=this.form.validateFields;e((function(e,a){e||t.httpProcess(a)}))},handleCancel:function(){this.form.setFieldsValue({title:""}),this.visible=!1},editPage:function(t){var e=this;this.visible=!0,this.pageStatus=t.status,this.current_page_id=t.id,this.editDecide=!0,this.$nextTick((function(){e.form.setFieldsValue({title:t.title})}))},httpProcess:function(t){var e=this,a=this.editDecide;switch(this.confirmLoading=!0,a){case!0:t.id=this.current_page_id,this.integrateHttp(u["l"],t).then((function(a){a&&(e.values=t,e.httpProcessDone())})).finally((function(){e.confirmLoading=!1}));break;default:this.integrateHttp(u["b"],t).then((function(a){a&&(e.values=t,e.httpProcessDone())})).finally((function(){e.confirmLoading=!1}));break}},httpProcessDone:function(){this.form.setFieldsValue({title:""}),this.values={},this.visible=!1,this.$emit("success"),this.handleCancel(),this.urlDetail=""}}},x=y,w=(a("f76f"),Object(m["a"])(x,v,b,!1,null,"7a8f12cc",null)),_=w.exports,k=a("5633"),S=a("3533"),C=a("2af9"),A=a("ac0d"),T=a("2f62"),E=a("6b5c");function O(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,r)}return a}function I(t){for(var e=1;e0){var e=this;setTimeout((function(){e.getTableList()}),3e3)}}}},D=B,j=Object(m["a"])(D,r,i,!1,null,null,null);e["default"]=j.exports},3233:function(t,e,a){},3248:function(t,e,a){},"32f0":function(t,e,a){"use strict";a("0bde")},3521:function(t,e,a){"use strict";a.d(e,"e",(function(){return o})),a.d(e,"d",(function(){return s})),a.d(e,"f",(function(){return l})),a.d(e,"b",(function(){return c})),a.d(e,"a",(function(){return d})),a.d(e,"c",(function(){return u})),a.d(e,"g",(function(){return p}));var r=a("b775"),i="/api-product",n={spuList:i+"/admin/spu_aggregation_rule/list/search",spuDetail:i+"/admin/spu_aggregation_rule",spuLogList:i+"/admin/spu_aggregation_rule/log/list",attributeSearch:i+"/admin/attribute/search",addSpuRule:i+"/admin/spu_aggregation_rule/create",editSpuRule:i+"/admin/spu_aggregation_rule/update",spuProductMatch:i+"/admin/spu_aggregation_rule/product_match"};function o(t){return Object(r["b"])({url:n.spuList,method:"post",data:t,timeout:6e4})}function s(t){return Object(r["b"])({url:n.spuDetail,method:"get",params:t})}function l(t){return Object(r["b"])({url:n.spuLogList,method:"get",params:t})}function c(t){return Object(r["b"])({url:n.attributeSearch,method:"post",data:t})}function d(t){return Object(r["b"])({url:n.addSpuRule,method:"post",data:t})}function u(t){return Object(r["b"])({url:n.editSpuRule,method:"post",data:t})}function p(t){return Object(r["b"])({url:n.spuProductMatch,method:"post",data:t})}},3533:function(t,e,a){"use strict";a("a481"),a("c5f6");var r=a("53ca");function i(t){return t&&"object"===Object(r["a"])(t)&&"componentOptions"in t&&"context"in t&&void 0!==t.tag}var n,o,s={name:"CustomToolTip",props:{limitLine:{type:String,default:"1"},limitSize:{type:String,default:"16"},maxWidth:{type:String,default:function(){return"250"}}},computed:{lineNumber:function(){return{"-webkit-line-clamp":this.limitLine}}},methods:{setDomWidth:function(t){return t>46&&Number(this.maxWidth)>250?this.maxWidth:"250"}},render:function(){var t=arguments[0],e=this.$slots.default&&this.$slots.default[0];if(i(e))return t("div",{class:"customToolTip-limitWidth"},[this.$slots.default]);var a=e.text.trim().replace(/[\r\n]/g,"").length;return a<=Number(this.limitSize)?t("p",{class:"customToolTip-line_table_hidden",style:this.lineNumber},[this.$options.filters.stringFilter(e.text.trim())]):t("div",{class:"customToolTip-limitWidth"},[t("a-tooltip",{attrs:{placement:"topLeft"}},[t("template",{slot:"title"},[this.$slots.default]),t("p",{class:"customToolTip-line_table_hidden",style:this.lineNumber},[this.$slots.default])])])}},l=s,c=(a("ebc0"),a("2877")),d=Object(c["a"])(l,n,o,!1,null,null,null);e["a"]=d.exports},3835:function(t,e,a){"use strict";function r(t){if(Array.isArray(t))return t}function i(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var a=[],r=!0,i=!1,n=void 0;try{for(var o,s=t[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(a.push(o.value),e&&a.length===e)break}catch(l){i=!0,n=l}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw n}}return a}}a.d(e,"a",(function(){return s}));var n=a("06c5");function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(t,e){return r(t)||i(t,e)||Object(n["a"])(t,e)||o()}},"3acd":function(t,e,a){"use strict";a("16bb")},"3b84":function(t,e,a){"use strict";a("3233")},"3fd5":function(t,e,a){"use strict";a("2484")},"4a2c":function(t,e,a){},"508f":function(t,e,a){"use strict";a("2156")},"5404a":function(t,e,a){},"5b55":function(t,e,a){},"5eab":function(t,e,a){},"60e7":function(t,e,a){},6171:function(t,e,a){"use strict";a("063a")},"658f":function(t,e,a){!function(e,a){t.exports=a()}(0,(function(){return function(t){var e={};function a(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,a),i.l=!0,i.exports}return a.m=t,a.c=e,a.d=function(t,e,r){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)a.d(r,i,function(e){return t[e]}.bind(null,i));return r},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="/dist/",a(a.s=5)}([function(t,e,a){t.exports=a(6)},function(t,e){function a(t,e,a,r,i,n,o){try{var s=t[n](o),l=s.value}catch(t){return void a(t)}s.done?e(l):Promise.resolve(l).then(r,i)}t.exports=function(t){return function(){var e=this,r=arguments;return new Promise((function(i,n){var o=t.apply(e,r);function s(t){a(o,i,n,s,l,"next",t)}function l(t){a(o,i,n,s,l,"throw",t)}s(void 0)}))}}},function(t,e,a){"use strict";a.r(e);var r=a(4),i=a.n(r);e.default=function(){return i()('!function(t){var e={};function i(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=t,i.c=e,i.d=function(t,e,r){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(r,o,function(e){return t[e]}.bind(null,o));return r},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/dist/",i(i.s=0)}([function(t,e){!function(){var t,e,i,r=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535];function o(o,s,n,a){var h,l,u,p,f,c,y=Math.max(2,a),d=new Uint8Array(256),w=new Int32Array(5003),g=new Int32Array(5003),b=0,x=0,v=!1;function P(t,e){d[l++]=t,l>=254&&S(e)}function m(t){B(5003),x=f+2,v=!0,F(f,t)}function B(t){for(var e=0;e0&&(t.writeByte(l),t.writeBytes(d,0,l),l=0)}function T(t){return(1<0?h|=t<=8;)P(255&h,e),h>>=8,b-=8;if((x>u||v)&&(v?(u=T(i=p),v=!1):(++i,u=12==i?4096:T(i))),t==c){for(;b>0;)P(255&h,e),h>>=8,b-=8;S(e)}}this.encode=function(r){r.writeByte(y),t=o*s,e=0,function(t,e){var r,o,s,n,a,h;for(v=!1,u=T(i=p=t),c=(f=1<=0){a=5003-s,0===s&&(a=1);do{if((s-=a)<0&&(s+=5003),w[s]===r){n=g[s];continue t}}while(w[s]>=0)}F(n,e),n=o,x<4096?(g[s]=x++,w[s]=r):m(e)}else n=g[s];F(n,e),F(c,e)}(y+1,r),r.writeByte(0)}}var s;function n(t,e){var i,r,o,s,n;function a(t,e,r,o,s){i[e][0]-=t*(i[e][0]-r)/1024,i[e][1]-=t*(i[e][1]-o)/1024,i[e][2]-=t*(i[e][2]-s)/1024}function h(t,e,r,o,s){for(var a,h,l=Math.abs(e-t),u=Math.min(e+t,256),p=e+1,f=e-1,c=1;pl;)h=n[c++],pl&&((a=i[f--])[0]-=h*(a[0]-r)/(1<<18),a[1]-=h*(a[1]-o)/(1<<18),a[2]-=h*(a[2]-s)/(1<<18))}function l(t,e,r){var n,a,h,l,u,p=~(1<<31),f=p,c=-1,y=c;for(n=0;n<256;n++)a=i[n],(h=Math.abs(a[0]-t)+Math.abs(a[1]-e)+Math.abs(a[2]-r))>12))>10,s[n]-=u,o[n]+=u<<10;return s[c]+=64,o[c]-=65536,y}this.buildColormap=function(){!function(){var t,e;for(i=[],r=new Int32Array(256),o=new Int32Array(256),s=new Int32Array(256),n=new Int32Array(32),t=0;t<256;t++)e=(t<<12)/256,i[t]=new Float64Array([e,e,e,0]),s[t]=256,o[t]=0}(),function(){var i,r,o,s,u,p,f=t.length,c=30+(e-1)/3,y=f/(3*e),d=~~(y/100),w=1024,g=2048,b=g>>6;for(b<=1&&(b=0),i=0;i=f&&(x-=f),0===d&&(d=1),++i%d==0)for(w-=w/c,(b=(g-=g/30)>>6)<=1&&(b=0),p=0;p>=4,i[t][1]>>=4,i[t][2]>>=4,i[t][3]=t}(),function(){var t,e,o,s,n,a,h=0,l=0;for(t=0;t<256;t++){for(n=t,a=(o=i[t])[1],e=t+1;e<256;e++)(s=i[e])[1]>1,e=h+1;e>1,e=h+1;e<256;e++)r[e]=255}()},this.getColormap=function(){for(var t=[],e=[],r=0;r<256;r++)e[i[r][3]]=r;for(var o=0,s=0;s<256;s++){var n=e[s];t[o++]=i[n][0],t[o++]=i[n][1],t[o++]=i[n][2]}return t},this.lookupRGB=function(t,e,o){for(var s,n,a,h=1e3,l=-1,u=r[e],p=u-1;u<256||p>=0;)u<256&&((a=(n=i[u])[1]-e)>=h?u=256:(u++,a<0&&(a=-a),(s=n[0]-t)<0&&(s=-s),(a+=s)=0&&((a=e-(n=i[p])[1])>=h?p=-1:(p--,a<0&&(a=-a),(s=n[0]-t)<0&&(s=-s),(a+=s)=a.pageSize&&this.newPage(),this.pages[this.page][this.cursor++]=t},a.prototype.writeUTFBytes=function(t){for(var e=t.length,i=0;i=0&&(this.dispose=t)},l.prototype.setRepeat=function(t){this.repeat=t},l.prototype.setTransparent=function(t){this.transparent=t},l.prototype.addFrame=function(t){this.image=t,this.colorTab=this.globalPalette&&this.globalPalette.slice?this.globalPalette:null,this.getImagePixels(),this.analyzePixels(),!0===this.globalPalette&&(this.globalPalette=this.colorTab),this.firstFrame&&(this.writeLSD(),this.writePalette(),this.repeat>=0&&this.writeNetscapeExt()),this.writeGraphicCtrlExt(),this.writeImageDesc(),this.firstFrame||this.globalPalette||this.writePalette(),this.writePixels(),this.firstFrame=!1},l.prototype.finish=function(){this.out.writeByte(59)},l.prototype.setQuality=function(t){t<1&&(t=1),this.sample=t},l.prototype.setDither=function(t){!0===t&&(t="FloydSteinberg"),this.dither=t},l.prototype.setGlobalPalette=function(t){this.globalPalette=t},l.prototype.getGlobalPalette=function(){return this.globalPalette&&this.globalPalette.slice&&this.globalPalette.slice(0)||this.globalPalette},l.prototype.writeHeader=function(){this.out.writeUTFBytes("GIF89a")},l.prototype.analyzePixels=function(){this.colorTab||(this.neuQuant=new n(this.pixels,this.sample),this.neuQuant.buildColormap(),this.colorTab=this.neuQuant.getColormap()),this.dither?this.ditherPixels(this.dither.replace("-serpentine",""),null!==this.dither.match(/-serpentine/)):this.indexPixels(),this.pixels=null,this.colorDepth=8,this.palSize=7,null!==this.transparent&&(this.transIndex=this.findClosest(this.transparent,!0))},l.prototype.indexPixels=function(t){var e=this.pixels.length/3;this.indexedPixels=new Uint8Array(e);for(var i=0,r=0;r=0&&P+u=0&&m+l>16,(65280&t)>>8,255&t,e)},l.prototype.findClosestRGB=function(t,e,i,r){if(null===this.colorTab)return-1;if(this.neuQuant&&!r)return this.neuQuant.lookupRGB(t,e,i);for(var o=0,s=16777216,n=this.colorTab.length,a=0,h=0;a=0&&(e=7&dispose),e<<=2,this.out.writeByte(0|e|t),this.writeShort(this.delay),this.out.writeByte(this.transIndex),this.out.writeByte(0)},l.prototype.writeImageDesc=function(){this.out.writeByte(44),this.writeShort(0),this.writeShort(0),this.writeShort(this.width),this.writeShort(this.height),this.firstFrame||this.globalPalette?this.out.writeByte(0):this.out.writeByte(128|this.palSize)},l.prototype.writeLSD=function(){this.writeShort(this.width),this.writeShort(this.height),this.out.writeByte(240|this.palSize),this.out.writeByte(0),this.out.writeByte(0)},l.prototype.writeNetscapeExt=function(){this.out.writeByte(33),this.out.writeByte(255),this.out.writeByte(11),this.out.writeUTFBytes("NETSCAPE2.0"),this.out.writeByte(3),this.out.writeByte(1),this.writeShort(this.repeat),this.out.writeByte(0)},l.prototype.writePalette=function(){this.out.writeBytes(this.colorTab);for(var t=768-this.colorTab.length,e=0;e>8&255)},l.prototype.writePixels=function(){new o(this.width,this.height,this.indexedPixels,this.colorDepth).encode(this.out)},l.prototype.stream=function(){return this.out}}()}]);\n',"Worker",void 0,void 0)}},function(t,e){function a(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=a=function(t){return typeof t}:t.exports=a=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(e)}t.exports=a},function(t,e,a){"use strict";t.exports=function(t,e,a,r){try{try{var i;try{i=new window.Blob([t])}catch(e){(i=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder)).append(t),i=i.getBlob()}var n=window.URL||window.webkitURL,o=n.createObjectURL(i),s=new window[e](o,a);return n.revokeObjectURL(o),s}catch(r){return new window[e]("data:application/javascript,".concat(encodeURIComponent(t)),a)}}catch(t){if(!r)throw Error("Inline worker is not supported");return new window[e](r,a)}}},function(t,e,a){t.exports=a(7)},function(t,e,a){var r=function(t){"use strict";var e=Object.prototype,a=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",n=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(t,e,a){return Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,a){return t[e]=a}}function l(t,e,a,r){var i=e&&e.prototype instanceof u?e:u,n=Object.create(i.prototype),o=new k(r||[]);return n._invoke=function(t,e,a){var r="suspendedStart";return function(i,n){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw n;return C()}for(a.method=i,a.arg=n;;){var o=a.delegate;if(o){var s=x(o,a);if(s){if(s===d)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===r)throw r="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r="executing";var l=c(t,e,a);if("normal"===l.type){if(r=a.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:a.done}}"throw"===l.type&&(r="completed",a.method="throw",a.arg=l.arg)}}}(t,a,o),n}function c(t,e,a){try{return{type:"normal",arg:t.call(e,a)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var d={};function u(){}function p(){}function f(){}var m={};m[i]=function(){return this};var h=Object.getPrototypeOf,g=h&&h(h(S([])));g&&g!==e&&a.call(g,i)&&(m=g);var v=f.prototype=u.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function y(t,e){var r;this._invoke=function(i,n){function o(){return new e((function(r,o){!function r(i,n,o,s){var l=c(t[i],t,n);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==typeof u&&a.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(u).then((function(t){d.value=t,o(d)}),(function(t){return r("throw",t,o,s)}))}s(l.arg)}(i,n,r,o)}))}return r=r?r.then(o,o):o()}}function x(t,e){var a=t.iterator[e.method];if(void 0===a){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=c(a,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,d;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r=0;--i){var n=this.tryEntries[i],o=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var s=a.call(n,"catchLoc"),l=a.call(n,"finallyLoc");if(s&&l){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev=0;--e){var a=this.tryEntries[e];if(a.finallyLoc===t)return this.complete(a.completion,a.afterLoc),_(a),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var a=this.tryEntries[e];if(a.tryLoc===t){var r=a.completion;if("throw"===r.type){var i=r.arg;_(a)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,a){return this.delegate={iterator:S(t),resultName:e,nextLoc:a},"next"===this.method&&(this.arg=void 0),d}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,e,a){"use strict";a.r(e);var r=a(0),i=a.n(r),n=a(1),o=a.n(n),s="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),l=new Uint8Array(16);function c(){if(!s)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return s(l)}for(var d=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,u=function(t){return"string"==typeof t&&d.test(t)},p=[],f=0;f<256;++f)p.push((f+256).toString(16).substr(1));var m=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=(p[t[e+0]]+p[t[e+1]]+p[t[e+2]]+p[t[e+3]]+"-"+p[t[e+4]]+p[t[e+5]]+"-"+p[t[e+6]]+p[t[e+7]]+"-"+p[t[e+8]]+p[t[e+9]]+"-"+p[t[e+10]]+p[t[e+11]]+p[t[e+12]]+p[t[e+13]]+p[t[e+14]]+p[t[e+15]]).toLowerCase();if(!u(a))throw TypeError("Stringified UUID is invalid");return a},h=function(t,e,a){var r=(t=t||{}).random||(t.rng||c)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){a=a||0;for(var i=0;i<16;++i)e[a+i]=r[i];return e}return m(r)};function g(t){return""===t?t:"true"===t||"1"==t}var v=function(t){if(t)return new Promise((function(e,a){if("data"==t.slice(0,4)){var r=new Image;return r.onload=function(){e(r)},r.onerror=function(){a("Image load error")},void(r.src=t)}var i=new Image;i.setAttribute("crossOrigin","Anonymous"),i.onload=function(){e(i)},i.onerror=function(){a("Image load error")},i.src=t}))},b=function(t,e){return new Promise((function(e,a){var r=new XMLHttpRequest;r.responseType="blob",r.onload=function(){var t=new FileReader;t.onloadend=function(){e(t.result)},t.readAsArrayBuffer(r.response)},r.open("GET",t),r.send()}))},y=function(t,e,a,r,i,n,o,s){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=a,c._compiled=!0),r&&(c.functional=!0),n&&(c._scopeId="data-v-"+n),o?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var d=c.render;c.render=function(t,e){return l.call(e),d(t,e)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,l):[l]}return{exports:t,options:c}}({props:{text:{type:String,required:!0},qid:{type:String},correctLevel:{type:Number,default:1},size:{type:Number,default:200},margin:{type:Number,default:20},colorDark:{type:String,default:"#000000"},colorLight:{type:String,default:"#FFFFFF"},bgSrc:{type:String,default:void 0},background:{type:String,default:"rgba(0,0,0,0)"},backgroundDimming:{type:String,default:"rgba(0,0,0,0)"},logoSrc:{type:String,default:void 0},logoBackgroundColor:{type:String,default:"rgba(255,255,255,1)"},gifBgSrc:{type:String,default:void 0},logoScale:{type:Number,default:.2},logoMargin:{type:Number,default:0},logoCornerRadius:{type:Number,default:8},whiteMargin:{type:[Boolean,String],default:!0},dotScale:{type:Number,default:1},autoColor:{type:[Boolean,String],default:!0},binarize:{type:[Boolean,String],default:!1},binarizeThreshold:{type:Number,default:128},callback:{type:Function,default:function(){}},bindElement:{type:Boolean,default:!0},backgroundColor:{type:String,default:"#FFFFFF"}},name:"vue-qr",data:function(){return{uuid:"",AwesomeQRCode:null}},watch:{$props:{deep:!0,handler:function(){this.main()}}},mounted:function(){this.uuid=h(),this.main()},methods:{main:function(){var t=this;return o()(i.a.mark((function e(){var a,r,n,o;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.gifBgSrc){e.next=10;break}return e.next=4,b(t.gifBgSrc);case 4:return a=e.sent,e.next=7,v(t.logoSrc);case 7:return r=e.sent,t.render(void 0,r,a),e.abrupt("return");case 10:return e.next=12,v(t.bgSrc);case 12:return n=e.sent,e.next=15,v(t.logoSrc);case 15:o=e.sent,t.render(n,o);case 17:case"end":return e.stop()}}),e)})))()},render:function(t,e,r){var n=this;return o()(i.a.mark((function o(){var s;return i.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(s=n,!n.$isServer){i.next=3;break}return i.abrupt("return");case 3:n.AwesomeQRCode||(n.AwesomeQRCode=a(8).default),(new n.AwesomeQRCode).create({gifBackground:r,text:s.text,size:s.size,margin:s.margin,colorDark:s.colorDark,colorLight:s.colorLight,backgroundColor:s.backgroundColor,backgroundImage:t,backgroundDimming:s.backgroundDimming,logoImage:e,logoScale:s.logoScale,logoBackgroundColor:s.logoBackgroundColor,correctLevel:s.correctLevel,logoMargin:s.logoMargin,logoCornerRadius:s.logoCornerRadius,whiteMargin:g(s.whiteMargin),dotScale:s.dotScale,autoColor:g(s.autoColor),binarize:g(s.binarize),binarizeThreshold:s.binarizeThreshold,callback:function(t){s.callback&&s.callback(t,s.qid)},bindElement:s.bindElement?s.uuid:void 0});case 5:case"end":return i.stop()}}),o)})))()}}},(function(){var t=this.$createElement,e=this._self._c||t;return this.bindElement?e("img",this._b({staticStyle:{display:"inline-block"}},"img",{id:this.uuid},!1)):this._e()}),[],!1,null,null,null).exports;y.install=function(t){return t.component(y.name,y)};var x=y,w=[x];"undefined"!=typeof window&&window.Vue&&function(t){w.map((function(e){t.component(e.name,e)}))}(window.Vue),e.default=x},function(t,e,a){"use strict";function r(t){this.data=t,this.pos=0}a.r(e),r.prototype.readByte=function(){return this.data[this.pos++]},r.prototype.peekByte=function(){return this.data[this.pos]},r.prototype.readBytes=function(t){for(var e=new Array(t),a=0;a=0;a--)t.push(!!(e&1<=this.raw.frames.length)return null;var a=this.raw.frames[t];if(a.image){var r=a.image.descriptor.width*a.image.descriptor.height,i=function(t,e,a){var r,i,n,o,s,l,c,d,u,p,f,m,h,g,v,b,y=a,x=new Array(a),w=new Array(4096),_=new Array(4096),k=new Array(4097);for(s=1+(i=1<<(m=t)),r=i+2,c=-1,n=(1<<(o=m+1))-1,u=0;u>=o,d-=o,u>r||u==s)break;if(u==i){n=(1<<(o=m+1))-1,r=i+2,c=-1;continue}if(-1==c){k[g++]=_[u],c=u,h=u;continue}for(l=u,u==r&&(k[g++]=h,u=c);u>i;)k[g++]=_[u],u=w[u];h=255&_[u],k[g++]=h,r<4096&&(w[r]=c,_[r]=h,0==(++r&n)&&r<4096&&(o++,n+=r)),c=l}g--,x[b++]=k[g],p++}for(p=b;p0&&this._events[t].length>a&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace()),this},k.prototype.on=k.prototype.addListener,k.prototype.once=function(t,e){if(!S(e))throw TypeError("listener must be a function");var a=!1;function r(){this.removeListener(t,r),a||(a=!0,e.apply(this,arguments))}return r.listener=e,this.on(t,r),this},k.prototype.removeListener=function(t,e){var a,r,i,n;if(!S(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(i=(a=this._events[t]).length,r=-1,a===e||S(a.listener)&&a.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(C(a)){for(n=i;n-- >0;)if(a[n]===e||a[n].listener&&a[n].listener===e){r=n;break}if(r<0)return this;1===a.length?(a.length=0,delete this._events[t]):a.splice(r,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},k.prototype.removeAllListeners=function(t){var e,a;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(S(a=this._events[t]))this.removeListener(t,a);else if(a)for(;a.length;)this.removeListener(t,a[a.length-1]);return delete this._events[t],this},k.prototype.listeners=function(t){return this._events&&this._events[t]?S(this._events[t])?[this._events[t]]:this._events[t].slice():[]},k.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(S(e))return 1;if(e)return e.length}return 0},k.listenerCount=function(t,e){return t.listenerCount(e)},y=navigator.userAgent.toLowerCase(),b=navigator.platform.toLowerCase(),v="ie"===(h=y.match(/(opera|ie|firefox|chrome|version)[\s\/:]([\w\d\.]+)?.*?(safari|version[\s\/:]([\w\d\.]+)|$)/)||[null,"unknown",0])[1]&&document.documentMode,(g={name:"version"===h[1]?h[3]:h[1],version:v||parseFloat("opera"===h[1]&&h[4]?h[4]:h[2]),platform:{name:y.match(/ip(?:ad|od|hone)/)?"ios":(y.match(/(?:webos|android)/)||b.match(/mac|win|linux/)||["other"])[0]}})[g.name]=!0,g[g.name+parseInt(g.version,10)]=!0,g.platform[g.platform.name]=!0;var T,E={}.hasOwnProperty,O=[].indexOf||function(t){for(var e=0,a=this.length;ee;0<=e?++t:--t)a.push(null);return a}.call(this),e=this.spawnWorkers(),!0===this.options.globalPalette)this.renderNextFrame();else for(t=0,a=e;0<=a?ta;0<=a?++t:--t)this.renderNextFrame();return this.emit("start"),this.emit("progress",0)},n.prototype.abort=function(){for(var t;null!=(t=this.activeWorkers.shift());)this.log("killing active worker"),t.terminate();return this.running=!1,this.emit("abort")},n.prototype.spawnWorkers=function(){var t,e,r,i;return t=Math.min(this.options.workers,this.frames.length),function(){r=[];for(var a=e=this.freeWorkers.length;e<=t?at;e<=t?a++:a--)r.push(a);return r}.apply(this).forEach((i=this,function(t){var e;i.log("spawning worker "+t);var r=a(2);return(e=new r.default).onmessage=function(t){return i.activeWorkers.splice(i.activeWorkers.indexOf(e),1),i.freeWorkers.push(e),i.frameFinished(t.data)},i.freeWorkers.push(e)})),t},n.prototype.frameFinished=function(t){var e,a;if(this.log("frame "+t.index+" finished - "+this.activeWorkers.length+" active"),this.finishedFrames++,this.emit("progress",this.finishedFrames/this.frames.length),this.imageParts[t.index]=t,!0===this.options.globalPalette&&(this.options.globalPalette=t.globalPalette,this.log("global palette analyzed"),this.frames.length>2))for(e=1,a=this.freeWorkers.length;1<=a?ea;1<=a?++e:--e)this.renderNextFrame();return O.call(this.imageParts,null)>=0?this.renderNextFrame():this.finishRendering()},n.prototype.finishRendering=function(){var t,e,a,r,i,n,o,s,l,c,d,u,p,f,m,h;for(s=0,i=0,l=(f=this.imageParts).length;i=this.frames.length))return t=this.frames[this.nextFrame++],a=this.freeWorkers.shift(),e=this.getTask(t),this.log("starting frame "+(e.index+1)+" of "+this.frames.length),this.activeWorkers.push(a),a.postMessage(e)},n.prototype.getContextData=function(t){return t.getImageData(0,0,this.options.width,this.options.height).data},n.prototype.getImageData=function(t){var e;return null==this._canvas&&(this._canvas=document.createElement("canvas"),this._canvas.width=this.options.width,this._canvas.height=this.options.height),(e=this._canvas.getContext("2d")).setFill=this.options.background,e.fillRect(0,0,this.options.width,this.options.height),e.drawImage(t,0,0),this.getContextData(e)},n.prototype.getTask=function(t){var e,a;if(a={index:e=this.frames.indexOf(t),last:e===this.frames.length-1,delay:t.delay,transparent:t.transparent,width:this.options.width,height:this.options.height,quality:this.options.quality,dither:this.options.dither,globalPalette:this.options.globalPalette,repeat:this.options.repeat,canTransfer:"chrome"===g.name},null!=t.data)a.data=t.data;else if(null!=t.context)a.data=this.getContextData(t.context);else{if(null==t.image)throw new Error("Invalid frame");a.data=this.getImageData(t.image)}return a},n.prototype.log=function(){var t;if(t=1<=arguments.length?I.call(arguments,0):[],this.options.debug)return console.log.apply(console,t)},n}(k);function B(t){this.mode=j.MODE_8BIT_BYTE,this.data=t,this.parsedData=[];for(var e=0,a=this.data.length;e65536?(r[0]=240|(1835008&i)>>>18,r[1]=128|(258048&i)>>>12,r[2]=128|(4032&i)>>>6,r[3]=128|63&i):i>2048?(r[0]=224|(61440&i)>>>12,r[1]=128|(4032&i)>>>6,r[2]=128|63&i):i>128?(r[0]=192|(1984&i)>>>6,r[1]=128|63&i):r[0]=i,this.parsedData.push(r)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function D(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}B.prototype={getLength:function(t){return this.parsedData.length},write:function(t){for(var e=0,a=this.parsedData.length;e=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=D.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(t,e){for(var a=-1;a<=7;a++)if(!(t+a<=-1||this.moduleCount<=t+a))for(var r=-1;r<=7;r++)e+r<=-1||this.moduleCount<=e+r||(this.modules[t+a][e+r]=0<=a&&a<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==a||6==a)||2<=a&&a<=4&&2<=r&&r<=4)},getBestMaskPattern:function(){for(var t=0,e=0,a=0;a<8;a++){this.makeImpl(!0,a);var r=G.getLostPoint(this);(0==a||t>r)&&(t=r,e=a)}return e},createMovieClip:function(t,e,a){var r=t.createEmptyMovieClip(e,a);this.make();for(var i=0;i>a&1);this.modules[Math.floor(a/3)][a%3+this.moduleCount-8-3]=r}for(a=0;a<18;a++)r=!t&&1==(e>>a&1),this.modules[a%3+this.moduleCount-8-3][Math.floor(a/3)]=r},setupTypeInfo:function(t,e){for(var a=this.errorCorrectLevel<<3|e,r=G.getBCHTypeInfo(a),i=0;i<15;i++){var n=!t&&1==(r>>i&1);i<6?this.modules[i][8]=n:i<8?this.modules[i+1][8]=n:this.modules[this.moduleCount-15+i][8]=n}for(i=0;i<15;i++)n=!t&&1==(r>>i&1),i<8?this.modules[8][this.moduleCount-i-1]=n:i<9?this.modules[8][15-i-1+1]=n:this.modules[8][15-i-1]=n;this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var a=-1,r=this.moduleCount-1,i=7,n=0,o=this.moduleCount-1;o>0;o-=2)for(6==o&&o--;;){for(var s=0;s<2;s++)if(null==this.modules[r][o-s]){var l=!1;n>>i&1)),G.getMask(e,r,o-s)&&(l=!l),this.modules[r][o-s]=l,-1==--i&&(n++,i=7)}if((r+=a)<0||this.moduleCount<=r){r-=a,a=-a;break}}}},D.PAD0=236,D.PAD1=17,D.createData=function(t,e,a){for(var r=H.getRSBlocks(t,e),i=new Z,n=0;n8*s)throw new Error("code length overflow. ("+i.getLengthInBits()+">"+8*s+")");for(i.getLengthInBits()+4<=8*s&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=8*s||(i.put(D.PAD0,8),i.getLengthInBits()>=8*s));)i.put(D.PAD1,8);return D.createBytes(i,r)},D.createBytes=function(t,e){for(var a=0,r=0,i=0,n=new Array(e.length),o=new Array(e.length),s=0;s=0?p.get(f):0}}var m=0;for(d=0;d=0;)e^=G.G15<=0;)e^=G.G18<>>=1;return e},getPatternPosition:function(t){return G.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,a){switch(t){case R:return(e+a)%2==0;case M:return e%2==0;case F:return a%3==0;case z:return(e+a)%3==0;case N:return(Math.floor(e/2)+Math.floor(a/3))%2==0;case $:return e*a%2+e*a%3==0;case U:return(e*a%2+e*a%3)%2==0;case V:return(e*a%3+(e+a)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new J([1],0),a=0;a5&&(a+=3+n-5)}for(r=0;r=256;)t-=255;return q.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},W=0;W<8;W++)q.EXP_TABLE[W]=1<>>7-t%8&1)},put:function(t,e){for(var a=0;a>>e-a-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var K=function(){function t(){this._elImage.src=this._elCanvas.toDataURL("image/png"),this._elImage.style.display="block",this._elCanvas.style.display="none"}function e(t,e){var a=this;if(a._fFail=e,a._fSuccess=t,null===a._bSupportDataURI){var r=document.createElement("img"),i=function(){a._bSupportDataURI=!1,a._fFail&&a._fFail.call(a)};return r.onabort=i,r.onerror=i,r.onload=function(){a._bSupportDataURI=!0,a._fSuccess&&a._fSuccess.call(a)},void(r.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==")}!0===a._bSupportDataURI&&a._fSuccess?a._fSuccess.call(a):!1===a._bSupportDataURI&&a._fFail&&a._fFail.call(a)}var a=function(t){this._bIsPainted=!1,this._htOption=t,this._elCanvas=document.createElement("canvas"),this._elCanvas.width=t.size,this._elCanvas.height=t.size,this._oContext=this._elCanvas.getContext("2d"),this._bIsPainted=!1,this._elImage=document.createElement("img"),this._elImage.alt="Scan me!",this._elImage.style.display="none",this._bSupportDataURI=null,this._callback=t.callback,this._bindElement=t.bindElement};return a.prototype.draw=function(t){var e=this._elImage,a=document.createElement("canvas"),r=a.getContext("2d"),i=this._htOption,n=t.getModuleCount(),o=i.size,s=i.margin;(s<0||2*s>=o)&&(s=0);var l=Math.ceil(s),c=o-2*s,d=i.whiteMargin,u=i.backgroundDimming,p=Math.ceil(c/n),f=p*n,m=f+2*l,h=void 0,g=void 0;a.width=m,a.height=m;var v=i.dotScale;if(e.style.display="none",this.clear(),v<=0||v>1)throw new Error("Scale should be in range (0, 1).");r.save(),r.translate(l,l);var b=document.createElement("canvas");b.width=m,b.height=m;var y=b.getContext("2d"),w=void 0;if(void 0!==i.gifBackground){var _=new x(i.gifBackground);if(!_.raw.hasImages)throw new Error("An invalid gif has been selected as the background.");if(h=_,g=_.decompressFrames(!0),i.autoColor){for(var k=0,S=0,C=0,A=0,T=0;T200||E[1]>200||E[2]>200||0===E[0]&&0===E[1]&&0===E[2]||(A++,k+=E[0],S+=E[1],C+=E[2])}k=~~(k/A),S=~~(S/A),C=~~(C/A),i.colorDark="rgb("+k+", "+S+", "+C+")"}}else if(void 0!==i.backgroundImage){if(i.autoColor){var O=function(t){var e,a,r,i,n={r:0,g:0,b:0},o=document.createElement("canvas"),s=o.getContext&&o.getContext("2d"),l=-4,c={r:0,g:0,b:0},d=0;if(!s)return n;r=o.height=t.naturalHeight||t.offsetHeight||t.height,a=o.width=t.naturalWidth||t.offsetWidth||t.width,s.drawImage(t,0,0);try{e=s.getImageData(0,0,a,r)}catch(t){return n}for(i=e.data.length;(l+=20)200||e.data[l+1]>200||e.data[l+2]>200||(++d,c.r+=e.data[l],c.g+=e.data[l+1],c.b+=e.data[l+2]);return c.r=~~(c.r/d),c.g=~~(c.g/d),c.b=~~(c.b/d),c}(i.backgroundImage);i.colorDark="rgb("+O.r+", "+O.g+", "+O.b+")"}i.maskedDots?((w=document.createElement("canvas")).width=m,w.height=m,w.getContext("2d").drawImage(i.backgroundImage,0,0,i.backgroundImage.width,i.backgroundImage.height,0,0,m,m),y.rect(0,0,m,m),y.fillStyle="#ffffff",y.fill()):(y.drawImage(i.backgroundImage,0,0,i.backgroundImage.width,i.backgroundImage.height,0,0,m,m),y.rect(0,0,m,m),y.fillStyle=u,y.fill())}else y.rect(0,0,m,m),y.fillStyle=i.backgroundColor,y.fill();i.binarize&&(i.colorDark="#000000",i.colorLight="#FFFFFF");for(var I=G.getPatternPosition(t.typeNumber),B=.5*(1-v),D=0;D=n-8)||j>=n-8&&D<8,M=6===D||6===j||R;for(T=0;T=I[T]-2&&D<=I[T]+2&&j>=I[T]-2&&j<=I[T]+2;var F=j*p+(M?0:B*p),z=D*p+(M?0:B*p);r.strokeStyle=L?i.colorDark:i.colorLight,r.lineWidth=.5,r.fillStyle=L?i.colorDark:"rgba(255, 255, 255, 0.6)",0===I.length?M||Y(r,F,z,(M?1:v)*p,(M?1:v)*p,w,L):M||j=n-4-5&&D=n-4-5||Y(r,F,z,(M?1:v)*p,(M?1:v)*p,w,L)}var N=i.colorLight;r.fillStyle=N,r.fillRect(0,0,8*p,8*p),r.fillRect(0,(n-8)*p,8*p,8*p),r.fillRect((n-8)*p,0,8*p,8*p),r.fillRect(8*p,6*p,(n-8-8)*p,p),r.fillRect(6*p,8*p,p,(n-8-8)*p);var $=I[I.length-1];for(T=0;T=1)&&(W=.2),J<0&&(J=0),H<0&&(H=0),r.restore(),r.translate(l,l);var Z=f*W,K=.5*(f-Z),at=K;r.fillStyle=i.logoBackgroundColor,r.save(),Q(r,K-J,at-J,Z+2*J,Z+2*J,H),r.clip(),r.fill(),r.restore(),r.save(),Q(r,K,at,Z,Z,H),r.clip(),r.drawImage(i.logoImage,K,at,Z,Z),r.restore()}if(void 0===h){if(y.drawImage(a,0,0,m,m),r.drawImage(b,-l,-l,m,m),i.binarize){var rt=r.getImageData(0,0,m,m),it=128;for(parseInt(i.binarizeThreshold)>0&&parseInt(i.binarizeThreshold)<255&&(it=parseInt(i.binarizeThreshold)),T=0;Tit?(rt.data[T]=255,rt.data[T+1]=255,rt.data[T+2]=255):(rt.data[T]=0,rt.data[T+1]=0,rt.data[T+2]=0);r.putImageData(rt,0,0)}var nt=document.createElement("canvas"),ot=nt.getContext("2d");if(nt.width=o,nt.height=o,ot.drawImage(a,0,0,o,o),this._elCanvas=nt,this._bIsPainted=!0,void 0!==this._callback&&this._callback(this._elCanvas.toDataURL()),void 0!==this._bindElement)try{var st=document.getElementById(this._bindElement);if("IMG"===st.nodeName)st.src=this._elCanvas.toDataURL();else{var lt=st.style;lt["background-image"]="url("+this._elCanvas.toDataURL()+")",lt["background-size"]="contain",lt["background-repeat"]="no-repeat"}}catch(t){console.error(t)}}else{var ct,dt,ut,pt,ft=document.createElement("canvas"),mt=ft.getContext("2d");if(g.forEach((function(t){void 0===ct&&(ct=new P({workers:4,quality:10,width:o,height:o})),void 0===dt&&(dt=document.createElement("canvas"),ut=dt.getContext("2d"),dt.width=t.dims.width,dt.height=t.dims.height,ut.rect(0,0,dt.width,dt.height),ut.fillStyle="#ffffff",ut.fill()),pt&&t.dims.width===ft.width&&t.dims.height===ft.height||(ft.width=t.dims.width,ft.height=t.dims.height,pt=mt.createImageData(t.dims.width,t.dims.height)),pt.data.set(t.patch),mt.putImageData(pt,0,0),ut.drawImage(ft,t.dims.left,t.dims.top);var e=document.createElement("canvas");e.width=m,e.height=m;var r=e.getContext("2d");r.drawImage(dt,0,0,m,m),r.drawImage(a,0,0,m,m);var i=document.createElement("canvas"),n=i.getContext("2d");i.width=o,i.height=o,n.drawImage(e,0,0,o,o),ct.addFrame(n,{copy:!0,delay:t.delay})})),void 0===ct)throw new Error("No frames.");var ht=this;ct.on("finished",(function(t){var e=new FileReader;e.onload=function(t){var e=t.target.result;if(ht._bIsPainted=!0,void 0!==ht._callback&&ht._callback(e),void 0!==ht._bindElement)try{var a=document.getElementById(ht._bindElement);if("IMG"===a.nodeName)a.src=e;else{var r=a.style;r["background-image"]="url("+e+")",r["background-size"]="contain",r["background-repeat"]="no-repeat"}}catch(t){console.error(t)}},e.readAsDataURL(t)})),ct.render()}},a.prototype.makeImage=function(){this._bIsPainted&&e.call(this,t)},a.prototype.isPainted=function(){return this._bIsPainted},a.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height),this._bIsPainted=!1},a.prototype.round=function(t){return t?Math.floor(1e3*t)/1e3:t},a}();function Q(t,e,a,r,i,n){t.beginPath(),t.moveTo(e,a),t.arcTo(e+r,a,e+r,a+i,n),t.arcTo(e+r,a+i,e,a+i,n),t.arcTo(e,a+i,e,a,n),t.arcTo(e,a,e+r,a,n),t.closePath()}function X(t,e,a){return.3*t+.59*a+.11*a}function Y(t,e,a,r,i,n,o){if(void 0===n)t.fillRect(e,a,r,i);else{t.drawImage(n,e,a,r,i,e,a,r,i);var s=t.fillStyle;t.fillStyle=o?"rgba(0, 0, 0, .5)":"rgba(255, 255, 255, .7)",t.fillRect(e,a,r,i),t.fillStyle=s}}function tt(t,e,a,r,i){t.clearRect((e-2)*r,(a-2)*i,5*r,5*i),t.fillRect((e-2)*r,(a-2)*i,5*r,5*i)}function et(t,e,a,r,i){t.fillRect((e-2)*r,(a-2)*i,r,4*i),t.fillRect((e+2)*r,(a-2+1)*i,r,4*i),t.fillRect((e-2+1)*r,(a-2)*i,4*r,i),t.fillRect((e-2)*r,(a+2)*i,4*r,i),t.fillRect(e*r,a*i,r,i)}(T=function(){}).prototype.create=function(t){if(this._htOption={size:800,margin:20,typeNumber:4,colorDark:"#000000",colorLight:"rgba(255, 255, 255, 0.6)",logoBackgroundColor:"#ffffff",correctLevel:L.M,backgroundImage:void 0,backgroundDimming:"rgba(0,0,0,0)",logoImage:void 0,logoScale:.2,logoMargin:6,logoCornerRadius:8,whiteMargin:!0,dotScale:.35,maskedDots:!1,autoColor:!0,binarize:!1,binarizeThreshold:128,gifBackground:void 0,callback:void 0,bindElement:void 0,backgroundColor:"#ffffff"},"string"==typeof t&&(t={text:t}),t)for(var e in t)this._htOption[e]=t[e];this._oQRCode=null,this._oDrawing=new K(this._htOption),this._htOption.text&&this.makeCode(this._htOption.text)},T.prototype.makeCode=function(t){this._oQRCode=new D(-1,this._htOption.correctLevel),this._oQRCode.addData(t),this._oQRCode.make(),this._oDrawing.draw(this._oQRCode),this.makeImage()},T.prototype.makeImage=function(){"function"==typeof this._oDrawing.makeImage&&this._oDrawing.makeImage()},T.prototype.clear=function(){this._oDrawing.clear()},T.CorrectLevel=L,e.default=T}])}))},6968:function(t,e,a){"use strict";a("5eab")},"6a36":function(t,e,a){},"75ae":function(t,e,a){},"7bd9":function(t,e,a){"use strict";a("0fc98")},"85fe":function(t,e,a){},"8ccf":function(t,e,a){"use strict";a.d(e,"d",(function(){return o})),a.d(e,"m",(function(){return s})),a.d(e,"l",(function(){return l})),a.d(e,"c",(function(){return c})),a.d(e,"b",(function(){return d})),a.d(e,"k",(function(){return u})),a.d(e,"a",(function(){return p})),a.d(e,"h",(function(){return f})),a.d(e,"i",(function(){return m})),a.d(e,"j",(function(){return h})),a.d(e,"g",(function(){return g})),a.d(e,"e",(function(){return v})),a.d(e,"f",(function(){return b}));var r=a("b775"),i="/api-product",n={tplList:i+"/admin/goods/detailtemplate/list",up_down:i+"/admin/goods/detailtemplate/status/update",updatePage:i+"/admin/goods/detailtemplate/title/update",deletePage:i+"/admin/goods/detailtemplate/delete",createPage:i+"/admin/goods/detailtemplate/create",copyPage:i+"/admin/goods/detailtemplate/copy",templateTask:i+"/admin/goods/detailtemplate/task_add",templateLinkCount:i+"/admin/goods/detailtemplate/goods_count",templateDetail:i+"/admin/goods/detailtemplate/detail",templateUpdate:i+"/admin/goods/detailtemplate/component/update",templateFormDetail:i+"/admin/product/detailtemplate/rule",templateFormUpdate:i+"/admin/product/detailtemplate/rule/update",productDetailRender:i+"/admin/goods/detail/preview"};function o(t){return Object(r["b"])({url:n.tplList,method:"get",params:t})}function s(t){return Object(r["b"])({url:n.up_down,method:"post",data:t})}function l(t){return Object(r["b"])({url:n.updatePage,method:"post",data:t})}function c(t){return Object(r["b"])({url:n.deletePage,method:"post",data:t})}function d(t){return Object(r["b"])({url:n.createPage,method:"post",data:t})}function u(t){return Object(r["b"])({url:n.templateUpdate,method:"post",data:t})}function p(t){return Object(r["b"])({url:n.copyPage,method:"post",data:t})}function f(t){return Object(r["b"])({url:n.templateDetail,method:"get",params:t})}function m(t){return Object(r["b"])({url:n.templateLinkCount,method:"get",params:t})}function h(t){return Object(r["b"])({url:n.templateTask,method:"post",data:t})}function g(t){return Object(r["b"])({url:n.productDetailRender,method:"post",data:t})}function v(t){return Object(r["b"])({url:n.templateFormDetail,method:"get",params:t})}function b(t){return Object(r["b"])({url:n.templateFormUpdate,method:"post",data:t})}},"94ce":function(t,e,a){"use strict";a("eb5b")},"96bd":function(t,e,a){"use strict";a("a588")},"982c":function(t,e,a){"use strict";a("ea0f")},"9c22":function(t,e,a){"use strict";a("b436")},a0a7:function(t,e,a){"use strict";a("5b55")},a588:function(t,e,a){},a5af:function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("a-layout",{staticStyle:{height:"100vh"}},[r("a-layout-header",{attrs:{id:"c-header"}},[r("a-breadcrumb",{staticClass:"c-breadcrumb-wrap"},[r("a-breadcrumb-item",[r("a",{attrs:{href:"/dashboard"}},[t._v("工作台")])]),r("a-breadcrumb-item",[t._v("商品")]),r("a-breadcrumb-item",[t._v("商品工具")]),r("a-breadcrumb-item",[r("a",{attrs:{href:"/product/tool/productDetailTemplate"}},[t._v("商详模板")])]),r("a-breadcrumb-item",[t._v("装修模板")])],1),r("div",{staticClass:"c-top-menu"},[t.isToolReady&&1===t.globalConfig.client?r("a-popover",{attrs:{visible:t.showPreview,placement:"bottom",destroyTooltipOnHide:!0}},[r("template",{slot:"content"},[r("div",{staticStyle:{width:"200px",height:"200px"}},[r("vue-qr",{attrs:{text:t.previewUrl}})],1),r("p",{staticStyle:{"margin-bottom":"4px","text-align":"center"}},[t._v("请扫码预览(5分钟内有效)")])]),r("a-button",{attrs:{type:"default",size:"small",loading:t.previewLoading},on:{click:t.editPreview}},[t._v("预览")])],2):t._e(),r("span",{directives:[{name:"show",rawName:"v-show",value:t.showStautsTips,expression:"showStautsTips"}]},[r("a-icon",{staticStyle:{color:"#faad14","margin-right":"6px"},attrs:{type:"exclamation-circle"}}),t._v("\n 当前版本与线上版本不一致,保存后需要上架才能生效\n ")],1),r("a-button",{attrs:{type:"default",size:"small",loading:t.saveLoading},on:{click:function(e){return t.editSave(!0)}}},[t._v("保存并继续")]),r("a-button",{attrs:{type:"primary",size:"small",loading:t.publishLoading},on:{click:t.editPublish}},[t._v("上架")])],1)],1),r("a-layout",{attrs:{id:"c-editor"}},[r("a-layout-sider",{staticStyle:{"border-right":"1px solid #ededed",background:"#fff"},attrs:{width:"70",inlineCollapsed:"collapsed"}},[r("ul",{staticClass:"c-side-1"},[r("li",{staticClass:"c-list-item",class:{active:t.siderToolShow},on:{click:t.toggleShowTool}},[r("a-icon",{staticStyle:{"font-size":"26px"},attrs:{component:t.PainterSVG}}),r("span",{staticClass:"c-sider-label"},[t._v("装修")])],1)])]),r("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderToolShow,expression:"siderToolShow"}],staticStyle:{background:"#fff"},attrs:{width:"199"}},[r("div",{staticClass:"props-panel"},[r("c-sider-title",{on:{close:t.closeTool}},[t._v("装修")]),r("c-tool-group",{attrs:{plugins:t.plugins,elements:t.elements,globalConfig:t.globalConfig,ready:t.isToolReady},on:{selectModule:t.selectModule}})],1)]),r("a-layout",{staticStyle:{background:"#f4f9ff"}},[r("a-layout-content",{staticStyle:{position:"relative"},style:t.centerStyleObj},[r("div",{staticClass:"preview-panel"},[r("img",{attrs:{src:a("e8b5")}}),1===t.globalConfig.header_type&&1===t.globalConfig.client&&1!==t.globalConfig.page_type?[r("div",{staticClass:"page-header",domProps:{innerHTML:t._s(t.headerImage)}})]:t._e(),r("c-render-components",{ref:"compRender",attrs:{elements:t.elements,websiteId:t.websiteId,globalConfig:t.globalConfig},on:{showprops:t.openProp,selectModule:t.selectModule}}),1===t.globalConfig.header_type?[r("div",{staticClass:"page-footer",domProps:{innerHTML:t._s(t.footerImage)}})]:t._e(),r("c-selected-tool",{attrs:{selectedIndex:t.currentSelectedIndex,selectedUuid:t.currentSelectedElement&&t.currentSelectedElement.uuid,elementsLength:t.elements.length,currentElement:t.currentSelectedElement},on:{deleteElement:t.deleteElement,copyElement:t.copyElement,editRemark:t.editRemark,moveUp:t.moveUp,moveDown:t.moveDown}})],2)])],1),r("a-layout-sider",{directives:[{name:"show",rawName:"v-show",value:t.siderPropShow,expression:"siderPropShow"}],staticStyle:{background:"#fff"},attrs:{width:"320"}},[r("div",{staticClass:"props-panel"},[r("c-sider-title",{attrs:{link:t.currentCompHelp},on:{close:t.closeProp}},[t._v(t._s(t.currentCompName))]),r("c-render-props",{attrs:{currentElement:t.currentSelectedElement,globalConfig:t.globalConfig}})],1)])],1),r("a-modal",{attrs:{title:"修改备注"},on:{ok:t.handleChangeRemark},model:{value:t.remarkVisible,callback:function(e){t.remarkVisible=e},expression:"remarkVisible"}},[r("a-form",{attrs:{form:t.remarkForm,"label-col":{span:6},"wrapper-col":{span:14}},on:{submit:t.handleRemarkSubmit}},[r("a-form-item",{style:{marginBottom:0},attrs:{label:"备注"}},[r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["remark",{rules:[{required:!0,message:"请输入备注"},{max:100,message:"长度不能超过100个字符"}],initialValue:t.currentSelectedElement.remark}],expression:"[\n 'remark',\n {\n rules: [\n {\n required: true,\n message: '请输入备注'\n },\n {\n max: 100,\n message: '长度不能超过100个字符'\n }\n ],\n initialValue: currentSelectedElement.remark\n }\n ]"}]})],1)],1)],1)],1)},i=[],n=(a("8e6e"),a("456d"),a("5df3"),a("3835")),o=(a("96cf"),a("1da1")),s=a("ade3"),l=(a("ac6a"),a("7f7f"),a("b775")),c=a("658f"),d=a.n(c),u=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("svg",{attrs:{id:"图层_1","data-name":"图层 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 156.93 174.47"}},[a("title",[t._v("装修工程")]),a("path",{staticClass:"cls-1",attrs:{d:"M161.89,42.29h-8.7v8.89h8.7a7.47,7.47,0,0,1,7.4,7.41V73.23c.2,4.27-4.07,10.12-8.2,11.25l-55.75,18A21.67,21.67,0,0,0,91,122.15v5.56h8.89v-5.56c-.19-4.25,4.07-10.12,8.2-11.25l55.76-18a21.68,21.68,0,0,0,14.35-19.7V58.59A16.33,16.33,0,0,0,161.89,42.29Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M27.3,42.29H24.22a3,3,0,0,0-3,3v3a3,3,0,0,0,3,3H27.3Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M153.19,19c0-3.59-2.67-6.52-5.92-6.52h-114C30,12.48,27.3,15.41,27.3,19V46.2H153.19Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M27.3,46.11V70.83a6,6,0,0,0,5.93,5.92h114a6,6,0,0,0,5.92-5.92V46.11Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M25.54,42.29H27.3v8.9H25.54Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M95.28,127.71H79.07a1.47,1.47,0,0,0-1.47,1.48v8.63a1.48,1.48,0,0,0,1.47,1.49H95.28v-11.6Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M111.65,127.71H95.28v11.6h16.37a1.49,1.49,0,0,0,1.49-1.49v-8.63A1.49,1.49,0,0,0,111.65,127.71Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M83.89,139.31v46.15A1.49,1.49,0,0,0,85.37,187h9.91V139.31Z",transform:"translate(-21.25 -12.48)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M95.28,187h10.08a1.49,1.49,0,0,0,1.48-1.49V139.31H95.28Z",transform:"translate(-21.25 -12.48)"}})])},p=[],f=a("2877"),m={},h=Object(f["a"])(m,u,p,!1,null,null,null),g=h.exports,v=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"c-sider-header"},[a("a-icon",{attrs:{type:"close"},on:{click:t.closeSider}}),t.link?a("a",{staticClass:"c-sider-help",attrs:{target:"_blank",href:t.link}},[t._v("查看教程")]):t._e(),a("div",{staticClass:"c-sider-title"},[t._t("default")],2)],1)},b=[],y={props:{link:{type:String,default:function(){return""}}},methods:{closeSider:function(){this.$emit("close")}}},x=y,w=(a("94ce"),Object(f["a"])(x,v,b,!1,null,"53503eef",null)),_=w.exports,k=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.ready?a("a-collapse",{attrs:{bordered:!1,activeKey:[1,2]},scopedSlots:t._u([{key:"expandIcon",fn:function(t){return[a("a-icon",{attrs:{type:"caret-right",rotate:t.isActive?90:0}})]}}],null,!1,766930589)},[a("a-collapse-panel",{key:"1",staticStyle:{border:"none"},attrs:{header:"基础组件"}},[a("ul",{staticClass:"tool-list"},[a("li",{on:{click:t.addTitle}},[a("a-icon",{staticStyle:{"font-size":"28px"},attrs:{component:t.TextSVG}}),a("p",{staticClass:"tool-des"},[t._v("标题")])],1),a("li",{on:{click:t.addDescription}},[a("a-icon",{staticStyle:{"font-size":"28px"},attrs:{type:"profile"}}),a("p",{staticClass:"tool-des"},[t._v("商品描述")])],1),a("li",{on:{click:t.addProperties}},[a("a-icon",{staticStyle:{"font-size":"28px"},attrs:{type:"tags"}}),a("p",{staticClass:"tool-des"},[t._v("商品属性")])],1),a("li",{on:{click:t.addCustomize}},[a("a-icon",{staticStyle:{"font-size":"28px"},attrs:{type:"tool"}}),a("p",{staticClass:"tool-des"},[t._v("自定义属性")])],1),a("li",{on:{click:t.addGallery}},[a("a-icon",{staticStyle:{"font-size":"28px"},attrs:{type:"file-image"}}),a("p",{staticClass:"tool-des"},[t._v("商品主图")])],1),a("li",{on:{click:t.addAds}},[a("a-icon",{staticStyle:{"font-size":"28px"},attrs:{type:"picture"}}),a("p",{staticClass:"tool-des"},[t._v("广告图")])],1),a("li",{on:{click:t.addBrandDescription}},[a("a-icon",{staticStyle:{"font-size":"28px"},attrs:{type:"trademark"}}),a("p",{staticClass:"tool-des"},[t._v("品牌描述")])],1),a("li",{on:{click:t.addBlankspace}},[a("a-icon",{staticStyle:{"font-size":"28px"},attrs:{type:"column-height"}}),a("p",{staticClass:"tool-des"},[t._v("辅助空白")])],1),a("li",{on:{click:t.addSizeChart}},[a("a-icon",{staticStyle:{"font-size":"28px"},attrs:{type:"table"}}),a("p",{staticClass:"tool-des"},[t._v("尺码表")])],1)])])],1):t._e()],1)},S=[],C=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 255.5 200"}},[a("title",[t._v("文本")]),a("g",{attrs:{id:"图层_1","data-name":"图层 1"}},[a("path",{staticClass:"cls-1",attrs:{d:"M482.09,27.33H384.74a5.41,5.41,0,0,0,0,10.82H428v91.94a5.41,5.41,0,1,0,10.81,0V38.15h43.27a5.41,5.41,0,1,0,0-10.82Z",transform:"translate(-232 64.5)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M432-54.5a10,10,0,0,0-10-10H242a10,10,0,0,0-10,10,10,10,0,0,0,10,10h80v170a10,10,0,0,0,20,0v-170h80A10,10,0,0,0,432-54.5Z",transform:"translate(-232 64.5)"}})])])},A=[],T={},E=Object(f["a"])(T,C,A,!1,null,null,null),O=E.exports,I=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 72 72"}},[a("g",[a("path",{staticClass:"st0",attrs:{d:"M66.3,4c1,0,1.8,0.8,1.8,1.8v60.5c0,1-0.8,1.8-1.8,1.8H5.7c-1,0-1.8-0.8-1.8-1.8V5.7C4,4.8,4.8,4,5.7,4H66.3M66.3,0H5.7C2.6,0,0,2.6,0,5.7v60.5C0,69.4,2.6,72,5.7,72h60.5c3.2,0,5.7-2.6,5.7-5.7V5.7C72,2.6,69.4,0,66.3,0L66.3,0z"}}),a("path",{staticClass:"st0",attrs:{d:"M59.7,63.2h-9.6c-2,0-3.5-1.6-3.5-3.5V30.6c0-2,1.6-3.5,3.5-3.5h9.6c2,0,3.5,1.6,3.5,3.5v29C63.2,61.6,61.7,63.2,59.7,63.2L59.7,63.2z"}})])])},P=[],B={},D=Object(f["a"])(B,I,P,!1,null,null,null),j=D.exports,L={name:"CTitle",remark:"标题",type:1,text:{content:"",align:"left",fontSize:32,isShowUnderline:!1,color:"#222222"},secondText:{content:"",secondContent:"",align:"left",fontSize:32,secondFontSize:24,isShowUnderline:!1,color:"#222222",secondColor:"#CCCCCC"},image:{image_url:"",image_link:""}},R={name:"CBlankspace",remark:"辅助空白",blank_height:50,background_color:"#FFFFFF"},M={name:"CGallery",remark:" 商品主图",display_tpl:1,selected_images:[0,1,2,3,4,5,6,7,8,9]},F={name:"CDescription",remark:"商品描述",align:"center",fontSize:24,color:"#333333",background:{isShow:!1,color:"#F4F4F4"}},z={name:"CProperties",remark:"商品属性",display_tpl:1,fontSize:24,keyWeight:"bold",valueWeight:"normal",keyColor:"#333333",valueColor:"#999999",basic:{lineSeal:{isShow:!0,type:1}},lines:{divideType:1},blocks:{backgroundColor:"#F8F8F8"}},N={name:"CAds",remark:"广告图",ad_images:[{image_url:""}]},$={name:"CCustomize",remark:"自定义属性",display_tpl:1,properties:[""],fontSize:24,keyWeight:"bold",valueWeight:"normal",keyColor:"#333333",valueColor:"#999999",basic:{lineSeal:{isShow:!0,type:1}},lines:{divideType:1},blocks:{backgroundColor:"#F8F8F8"}},U={name:"CBrandDescription",remark:"品牌描述",align:"center",fontSize:24,color:"#333333",background:{isShow:!0,color:"#F4F4F4"}},V={name:"CSizeChart",remark:"尺码表"};function G(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,r)}return a}function q(t){for(var e=1;e1&&6!==t.compdata.type&&7!==t.compdata.type?a("a-icon",{staticStyle:{color:"#fff"},attrs:{type:"delete"},on:{click:function(e){return t.formItemDelete(r)}}}):t._e()],1)],1):t._e(),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["adImage-"+r,{rules:[{required:!0,message:"请上传图片"}],initialValue:t.compdata.ad_images[r].image_url}],expression:"[\n `adImage-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请上传图片'\n }\n ],\n initialValue: compdata.ad_images[index].image_url\n }\n ]"}],attrs:{type:"hidden"}})],1):a("a-form-item",{staticStyle:{margin:"0 -26px 0 0",padding:"0"}},[a("div",{staticClass:"image-uploader"},[a("div",{staticClass:"image-preview-overlay"}),a("a-upload",{attrs:{name:"file",accept:".jpg,.png,.gif,.jpeg,image/*",showUploadList:!1,data:{website_id:t.websiteId},action:"/api-cms/cms/file/upload",headers:t.token,beforeUpload:t.beforeUpload},on:{change:function(a){return t.adImageChange(a,e,r)}}},[a("a-button",{staticStyle:{position:"absolute",top:"50%",left:"50%","z-index":"2",transform:"translate(-50%, -50%)"}},[t._v("\n 上传图片\n "),t.compdata["uploading-"+t.compdata.uuid+"-"+r]?a("a-spin",{staticClass:"ads-upload-spin",staticStyle:{"margin-left":"8px","vertical-align":"unset"}},[a("a-icon",{staticStyle:{"font-size":"14px"},attrs:{slot:"indicator",type:"loading",spin:""},slot:"indicator"})],1):t._e()],1)],1),a("div",{staticClass:"topLine"},[a("a-icon",{directives:[{name:"show",rawName:"v-show",value:0!==r,expression:"index !== 0"}],staticStyle:{color:"#fff"},attrs:{type:"arrow-up"},on:{click:function(e){return t.formItemUp(r)}}}),a("a-icon",{directives:[{name:"show",rawName:"v-show",value:r!==t.compdata.ad_images.length-1,expression:"index !== compdata.ad_images.length - 1"}],staticStyle:{color:"#fff"},attrs:{type:"arrow-down"},on:{click:function(e){return t.formItemDown(r)}}}),t.compdata.ad_images.length>1&&6!==t.compdata.type&&7!==t.compdata.type?a("a-icon",{staticStyle:{color:"#fff"},attrs:{type:"delete"},on:{click:function(e){return t.formItemDelete(r)}}}):t._e()],1)],1),a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["adImage-"+t.compdata.uuid+"-"+r,{rules:[{required:!0,message:"请上传图片"}],initialValue:t.compdata.ad_images[r].image_url}],expression:"[\n `adImage-${compdata.uuid}-${index}`,\n {\n rules: [\n {\n required: true,\n message: '请上传图片'\n }\n ],\n initialValue: compdata.ad_images[index].image_url\n }\n ]"}],attrs:{type:"hidden"}})],1)],1)})),6!==t.compdata.type&&7!==t.compdata.type?a("a-form-item",[a("a-button",{attrs:{block:""},on:{click:t.addAd}},[t._v("+ 添加广告图")])],1):t._e()],2):t._e()],1)],1),a("stair-select",{attrs:{visible:t.modalVisible,ad:t.selectedAd},on:{close:t.closeModal,select:t.selectStair}})],1)},Ge=[],qe=(a("a481"),function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-modal",{attrs:{title:"选择跳转楼层",destroyOnClose:!0,visible:t.visible,width:800},on:{ok:t.selectLayer,cancel:t.cancel}},[a("a-table",{attrs:{"table-layout":"fixed","data-source":t.tableData,columns:t.columns,"row-selection":{type:"radio",selectedRowKeys:t.selectedRowKeys,onChange:t.onSelectChange},pagination:!1,scroll:{y:270}}})],1)}),We=[],Je=[{dataIndex:"idx",title:"楼层序号",width:"45%"},{dataIndex:"remark",title:"楼层名称",width:"45%"}],He={name:"StairSelect",props:{visible:{type:Boolean,default:!1},ad:{type:Object,default:null}},data:function(){return{tableData:[],columns:Je,selectedRowKeys:[]}},inject:["eleArrSet"],watch:{visible:function(t){t&&this.formTable()},tableData:function(t){this.ad.jump_anchor?this.selectedRowKeys=[this.ad.jump_anchor.replace("#AzoyaCMSLayer-","")-0]:this.ad.jump_to?this.selectedRowKeys=[this.ad.jump_to.replace("#AzoyaCMSLayer-","")-0]:t.length&&(this.selectedRowKeys=[t[0].key])}},methods:{selectLayer:function(){this.$emit("select",this.selectedRowKeys[0]),this.$emit("close")},cancel:function(){this.$emit("close")},formTable:function(){var t=this.eleArrSet(),e=[];t.forEach((function(t,a){var r={key:t.uuid,idx:a+1,remark:t.remark};e.push(r)})),this.tableData=[].concat(e)},onSelectChange:function(t){this.selectedRowKeys=t}}},Ze=He,Ke=Object(f["a"])(Ze,qe,We,!1,null,null,null),Qe=Ke.exports,Xe={props:{compdata:{type:Object,default:function(){return{}}},globalConfig:{type:Object,default:null}},data:function(){return{token:{},modalVisible:!1,selectedAd:null,selectedAnchorIndex:-1,renderForm:!0}},computed:{websiteId:function(){return this.$route.params.website_id}},watch:{},components:{"sketch-picker":me["Sketch"],"stair-select":Qe},inject:["eleArrSet"],methods:{updateColor:function(t,e){var a=e.split(".");if(a.length){var r=a.pop(),i=a.reduce((function(t,e){return t[e]}),this);i[r]=t.hex}},adImageChange:function(t,e,a){var r=t.file,i=r.status,n=r.response;"uploading"===i?this.$set(this.compdata,"uploading-".concat(this.compdata.uuid,"-").concat(a),!0):"done"===i&&200===n.status?(e.image_url=n.data.src,this.form.setFieldsValue(Object(s["a"])({},"adImage-".concat(a),n.data.src)),delete this.compdata["uploading-".concat(this.compdata.uuid,"-").concat(a)]):"done"===i&&200!==n.status&&(this.$message.error(n.message),delete this.compdata["uploading-".concat(this.compdata.uuid,"-").concat(a)],document.querySelectorAll(".ads-upload-spin").forEach((function(t){t.style.display="none"})))},addAd:function(){var t={image_url:""};this.compdata.ad_images.push(t)},formItemUp:function(t){var e=this;this.renderForm=!1,this.$nextTick((function(){var a=e.compdata.ad_images.splice(t,1);e.compdata.ad_images.splice(t-1,0,a[0]),e.renderForm=!0}))},formItemDown:function(t){var e=this;this.renderForm=!1,this.$nextTick((function(){var a=e.compdata.ad_images.splice(t,1);e.compdata.ad_images.splice(t+1,0,a[0]),e.renderForm=!0}))},formItemDelete:function(t){var e=this;this.renderForm=!1,this.$nextTick((function(){e.compdata.ad_images.splice(t,1),e.renderForm=!0}))},selectLayer:function(t,e){this.selectedAd=t,this.selectedAnchorIndex=e,this.modalVisible=!0},closeModal:function(){this.modalVisible=!1},selectStair:function(t){var e=this.eleArrSet(),a=e.filter((function(e){return e.uuid===t})),r=a[0]["remark"];this.selectedAd.jump_anchor="#AzoyaCMSLayer-".concat(t),this.form.setFieldsValue(Object(s["a"])({},"LayerSelector-".concat(this.compdata.uuid,"-").concat(this.selectedAnchorIndex),r))},getRemark:function(t){var e=t.jump_anchor.replace("#AzoyaCMSLayer-","")-0,a=this.eleArrSet(),r=a.filter((function(t){return t.uuid===e}));if(r.length)return r[0].remark;t.jump_anchor=""},handleSubmit:function(){var t=this,e=this;this.$forceUpdate(),this.$nextTick((function(){t.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,a){if(t){var r=Object.keys(t)[0],i=t[r].errors[0].message;e.$message.error(i)}}))}))},beforeUpload:function(t){var e=t.size<1048576;return e||(this.errorTips="图片大小不能超过1M"),e}},beforeCreate:function(){this.form=this.$form.createForm(this,{name:"CProductForm"})},mounted:function(){this.token={"Access-Token":this.$ls.get("token"),"Website-ID":this.$route.params.website_id}}},Ye=Xe,ta=(a("6968"),Object(f["a"])(Ye,Ve,Ge,!1,null,"938e1ad8",null)),ea=ta.exports,aa=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[a("a-form",{staticStyle:{"padding-bottom":"1px"},attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("a-form-item",{attrs:{label:"选择模板(必填)",required:""}},[a("a-select",{model:{value:t.compdata.display_tpl,callback:function(e){t.$set(t.compdata,"display_tpl",e)},expression:"compdata.display_tpl"}},[a("a-select-option",{attrs:{value:1}},[t._v("基础版")]),a("a-select-option",{attrs:{value:2}},[t._v("线条版")]),a("a-select-option",{attrs:{value:3}},[t._v("色块版")])],1)],1),a("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"添加自定义属性项(必填)",required:""}},t._l(t.compdata.properties,(function(e,r){return a("div",{key:"customsingle-"+t.compdata.uuid+"-"+r,staticClass:"single-item"},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["customitem-"+t.compdata.uuid+"-"+r,{initialValue:e,rules:[{required:!0,message:"请输入自定义属性项"}]}],expression:"[\n `customitem-${compdata.uuid}-${index}`,\n {\n initialValue: item,\n rules: [\n { required: true, message: '请输入自定义属性项' }\n ]\n }\n ]"}],attrs:{placeholder:"请输入自定义属性项"},on:{input:function(e){return t.editProperty(e,r)}}}),a("a-icon",{staticStyle:{"margin-left":"8px"},style:{visibility:r===t.compdata.properties.length-1?"hidden":"visible"},attrs:{title:"下移",type:"arrow-down"},on:{click:function(e){return t.moveDown(r)}}}),a("a-icon",{staticStyle:{"margin-left":"8px"},style:{visibility:0===r?"hidden":"visible"},attrs:{title:"上移",type:"arrow-up"},on:{click:function(e){return t.moveUp(r)}}}),t.compdata.properties.length>1?a("a-icon",{staticStyle:{"margin-left":"8px"},attrs:{title:"删除",type:"delete"},on:{click:function(e){return t.del(r)}}}):t._e()],1)})),0),a("div",{staticClass:"ant-row ant-form-item",staticStyle:{"margin-top":"0"}},[a("a-button",{staticStyle:{"margin-top":"8px"},attrs:{block:""},on:{click:t.addProperty}},[t._v("+ 添加自定义属性项")])],1),a("a-divider"),a("a-form-item",{attrs:{label:"字号"}},[a("a-radio-group",{model:{value:t.compdata.fontSize,callback:function(e){t.$set(t.compdata,"fontSize",e)},expression:"compdata.fontSize"}},[a("a-radio",{attrs:{value:22}},[t._v("22")]),a("a-radio",{attrs:{value:24}},[t._v("24(推荐)")]),a("a-radio",{attrs:{value:26}},[t._v("26")])],1)],1),a("a-form-item",{attrs:{label:"属性项粗细"}},[a("a-radio-group",{model:{value:t.compdata.keyWeight,callback:function(e){t.$set(t.compdata,"keyWeight",e)},expression:"compdata.keyWeight"}},[a("a-radio",{attrs:{value:"normal"}},[t._v("常规")]),a("a-radio",{attrs:{value:"bold"}},[t._v("加粗(推荐)")])],1)],1),a("a-form-item",{attrs:{label:"属性值粗细"}},[a("a-radio-group",{model:{value:t.compdata.valueWeight,callback:function(e){t.$set(t.compdata,"valueWeight",e)},expression:"compdata.valueWeight"}},[a("a-radio",{attrs:{value:"normal"}},[t._v("常规(推荐)")]),a("a-radio",{attrs:{value:"bold"}},[t._v("加粗")])],1)],1),a("a-form-item",{attrs:{label:"属性项颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.keyColor},on:{input:t.updateKeyColor}})],1),a("a-input",{attrs:{"read-only":""},model:{value:t.compdata.keyColor,callback:function(e){t.$set(t.compdata,"keyColor",e)},expression:"compdata.keyColor"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.keyColor}})])])],2)],1),a("a-form-item",{attrs:{label:"属性值颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.valueColor},on:{input:t.updateValueColor}})],1),a("a-input",{attrs:{"read-only":""},model:{value:t.compdata.valueColor,callback:function(e){t.$set(t.compdata,"valueColor",e)},expression:"compdata.valueColor"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.valueColor}})])])],2)],1),1===t.compdata.display_tpl?a("a-form-item",{attrs:{label:"分割线"}},[a("a-radio-group",{model:{value:t.compdata.basic.lineSeal.type,callback:function(e){t.$set(t.compdata.basic.lineSeal,"type",e)},expression:"compdata.basic.lineSeal.type"}},[a("a-radio",{attrs:{value:1}},[t._v("细线(推荐)")]),a("a-radio",{attrs:{value:2}},[t._v("粗线")]),a("a-radio",{attrs:{value:3}},[t._v("虚线")])],1)],1):t._e(),2===t.compdata.display_tpl?a("a-form-item",{attrs:{label:"分割线"}},[a("a-radio-group",{model:{value:t.compdata.lines.divideType,callback:function(e){t.$set(t.compdata.lines,"divideType",e)},expression:"compdata.lines.divideType"}},[a("a-radio",{attrs:{value:1}},[t._v("细线(推荐)")]),a("a-radio",{attrs:{value:2}},[t._v("粗线")]),a("a-radio",{attrs:{value:3}},[t._v("虚线")])],1)],1):t._e(),3===t.compdata.display_tpl?a("a-form-item",{attrs:{label:"色块颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.blocks.backgroundColor},on:{input:t.updateBackgroundColor}})],1),a("a-input",{attrs:{"read-only":""},model:{value:t.compdata.blocks.backgroundColor,callback:function(e){t.$set(t.compdata.blocks,"backgroundColor",e)},expression:"compdata.blocks.backgroundColor"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.blocks.backgroundColor}})])])],2)],1):t._e()],1)],1)],1)],1)},ra=[],ia=(a("4f7f"),{props:{compdata:{type:Object,default:function(){}},globalConfig:{type:Object,default:function(){}}},components:{"sketch-picker":me["Sketch"]},methods:{handleSubmit:function(){for(var t=this,e=this,a=[],r=0;r19?this.$message.error("最多添加20个自定义选项"):this.compdata.properties.push("")},moveUp:function(t){var e=this.compdata.properties[t];this.compdata.properties.splice(t,1);var a=t-1;a<0?this.compdata.properties.unshift(e):this.compdata.properties.splice(a,0,e)},moveDown:function(t){var e=this.compdata.properties[t];this.compdata.properties.splice(t,1);var a=t+1;a===this.compdata.properties.length?this.compdata.properties.push(e):this.compdata.properties.splice(a,0,e)},del:function(t){this.compdata.properties.splice(t,1)},updateKeyColor:function(t){this.compdata.keyColor=t.hex},updateValueColor:function(t){this.compdata.valueColor=t.hex},updateBackgroundColor:function(t){this.compdata.blocks.backgroundColor=t.hex}},beforeCreate:function(){this.form=this.$form.createForm(this,{name:"CCustomizeForm"})}}),na=ia,oa=(a("00e3"),Object(f["a"])(na,aa,ra,!1,null,"bc8bd2c8",null)),sa=oa.exports,la=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-row",[a("a-col",{attrs:{span:22,offset:1}},[a("a-form",{staticStyle:{"padding-bottom":"1px"},attrs:{layout:"vertical",form:t.form},on:{submit:t.handleSubmit}},[a("p",{staticStyle:{"margin-top":"1em","margin-bottom":"0"}},[t._v("若品牌管理对应“品牌描述”未输入,商详页则不会展示")]),a("a-form-item",{attrs:{label:"显示位置"}},[a("a-radio-group",{model:{value:t.compdata.align,callback:function(e){t.$set(t.compdata,"align",e)},expression:"compdata.align"}},[a("a-radio",{attrs:{value:"left"}},[t._v("居左")]),a("a-radio",{attrs:{value:"center"}},[t._v("居中(推荐)")])],1)],1),a("a-form-item",{attrs:{label:"字号"}},[a("a-radio-group",{model:{value:t.compdata.fontSize,callback:function(e){t.$set(t.compdata,"fontSize",e)},expression:"compdata.fontSize"}},[a("a-radio",{attrs:{value:22}},[t._v("22")]),a("a-radio",{attrs:{value:24}},[t._v("24(推荐)")]),a("a-radio",{attrs:{value:26}},[t._v("26")])],1)],1),a("a-form-item",{attrs:{label:"字体颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.color},on:{input:t.updateTextColor}})],1),a("a-input",{attrs:{"read-only":""},model:{value:t.compdata.color,callback:function(e){t.$set(t.compdata,"color",e)},expression:"compdata.color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.color}})])])],2)],1),a("a-form-item",{attrs:{label:"显示色块"}},[a("a-checkbox",{model:{value:t.compdata.background.isShow,callback:function(e){t.$set(t.compdata.background,"isShow",e)},expression:"compdata.background.isShow"}},[t._v("显示")])],1),t.compdata.background.isShow?a("div",{staticStyle:{padding:"1px 15px",background:"#f4f6f8"}},[a("a-form-item",{attrs:{label:"色块颜色"}},[a("a-popover",{attrs:{placement:"top",trigger:"click"}},[a("template",{slot:"content"},[a("sketch-picker",{attrs:{value:t.compdata.background.color},on:{input:t.updateBgColor}})],1),a("a-input",{attrs:{"read-only":""},model:{value:t.compdata.background.color,callback:function(e){t.$set(t.compdata.background,"color",e)},expression:"compdata.background.color"}},[a("div",{staticStyle:{width:"44px",height:"20px",padding:"3px 4px",border:"1px solid #ddd"},attrs:{slot:"suffix"},slot:"suffix"},[a("div",{staticStyle:{width:"34px",height:"12px"},style:{backgroundColor:t.compdata.background.color}})])])],2)],1)],1):t._e()],1)],1)],1)],1)},ca=[],da={props:{compdata:{type:Object,default:function(){}},globalConfig:{type:Object,default:function(){}}},components:{"sketch-picker":me["Sketch"]},methods:{handleSubmit:function(){var t=this,e=this;this.$forceUpdate(),this.$nextTick((function(){t.form.validateFieldsAndScroll({first:!0,force:!0},(function(t,a){if(t){var r=Object.keys(t)[0],i=t[r].errors[0].message;e.$message.error(i)}}))}))},updateTextColor:function(t){this.compdata.color=t.hex},updateBgColor:function(t){this.compdata.background.color=t.hex}},beforeCreate:function(){this.form=this.$form.createForm(this,{name:"CBrandDescriptionForm"})}},ua=da,pa=Object(f["a"])(ua,la,ca,!1,null,null,null),fa=pa.exports,ma=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("p",{staticStyle:{margin:"0",padding:"18px 16px"}},[a("a-icon",{attrs:{type:"info-circle"}}),t._v("\n 根据商品尺码表参数,生成尺码表图片 "),a("br"),t._v("\n 目前仅支持第三方平台的站点使用\n ")],1)])},ha=[],ga={},va=Object(f["a"])(ga,ma,ha,!1,null,null,null),ba=va.exports,ya={name:"CRenderProps",props:{currentElement:{type:Object,default:function(){return{}}},globalConfig:{type:Object,default:function(){return{}}}},components:{CTitleForm:be,CBlankspaceForm:Se,CGalleryForm:Ie,CDescriptionForm:Re,CPropertiesForm:Ue,CAdsForm:ea,CCustomizeForm:sa,CBrandDescriptionForm:fa,CSizeChartForm:ba},computed:{currentCompForm:function(){return this.currentElement.name?this.currentElement.name+"Form":""}}},xa=ya,wa=Object(f["a"])(xa,de,ue,!1,null,null,null),_a=wa.exports,ka=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[-1!==t.selectedIndex?a("div",{staticClass:"c-module-tool",style:t.computedTop},[a("ul",[a("li",{on:{click:t.moveUp}},[a("a-tooltip",{attrs:{placement:"right"}},[a("template",{slot:"title"},[a("span",[t._v("上移")])]),a("a-icon",{style:t.computedUp,attrs:{component:t.ArrowTopSVG}})],2)],1),a("li",{on:{click:t.moveDown}},[a("a-tooltip",{attrs:{placement:"right"}},[a("template",{slot:"title"},[a("span",[t._v("下移")])]),a("a-icon",{style:t.computedDown,attrs:{component:t.ArrowDownSVG}})],2)],1),a("li",{on:{click:t.editRemark}},[a("a-tooltip",{attrs:{placement:"right"}},[a("template",{slot:"title"},[a("span",[t._v("名称提示框")])]),a("a-icon",{attrs:{type:"edit"}})],2)],1),a("li",{on:{click:t.copyElement}},[a("a-tooltip",{attrs:{placement:"right"}},[a("template",{slot:"title"},[a("span",[t._v("复制")])]),a("a-icon",{style:t.computeCopy,attrs:{component:t.CopySVG}})],2)],1),a("li",{on:{click:t.deleteElement}},[a("a-tooltip",{attrs:{placement:"right"}},[a("template",{slot:"title"},[a("span",[t._v("删除")])]),a("a-icon",{attrs:{component:t.RecycleSVG}})],2)],1)])]):t._e()])},Sa=[],Ca=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("svg",{attrs:{id:"图层_1","data-name":"图层 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 146.48 175.78"}},[a("title",[t._v("箭头上")]),a("path",{staticClass:"cls-1",attrs:{d:"M125.52,192.06H76.16c-4.35,0-8.71-1.7-8.71-6.78V117.47c0-5.08-1.45-6.78-5.81-6.78h-29c-7,0-7.55-10.51-2.61-16.27l64.74-75.6c2.91-3.39,7.84-3.39,11,0l64.74,75.6c4.94,5.76,2.91,16.27-4.06,16.27l-26.71-1c-4.36,0-8.13,2.71-8.13,7.79v67.81c-.29,4.74-1.75,6.78-6.1,6.78Z",transform:"translate(-26.76 -16.28)"}})])},Aa=[],Ta={},Ea=Object(f["a"])(Ta,Ca,Aa,!1,null,null,null),Oa=Ea.exports,Ia=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("svg",{attrs:{id:"图层_1","data-name":"图层 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 146.48 175.78"}},[a("title",[t._v("箭头下")]),a("path",{staticClass:"cls-1",attrs:{d:"M74.48,16.28h49.36c4.35,0,8.71,1.69,8.71,6.78v67.8c0,5.09,1.45,6.78,5.81,6.78h29c7,0,7.55,10.51,2.61,16.27l-64.74,75.6c-2.91,3.39-7.84,3.39-11,0l-64.74-75.6c-4.94-5.76-2.91-16.27,4.06-16.27l26.71,1c4.36,0,8.13-2.71,8.13-7.8V23.06c.29-4.75,1.75-6.78,6.1-6.78Z",transform:"translate(-26.76 -16.28)"}})])},Pa=[],Ba={},Da=Object(f["a"])(Ba,Ia,Pa,!1,null,null,null),ja=Da.exports,La=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("svg",{attrs:{id:"图层_1","data-name":"图层 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13 16"}},[a("title",[t._v("复制")]),a("path",{staticClass:"cls-1",attrs:{d:"M12.58,3,10.17.59A2,2,0,0,0,8.75,0H4.17a2,2,0,0,0-2,2V4h-1a1,1,0,0,0-1,1V15a1,1,0,0,0,1,1h6a1,1,0,0,0,1-1V14h3a2,2,0,0,0,2-2V4.41A2,2,0,0,0,12.58,3Zm-.41,9a1,1,0,0,1-1,1h-7a1,1,0,0,1-1-1V2a1,1,0,0,1,1-1h3.5V4a1.5,1.5,0,0,0,1.5,1.5h3Zm0-7.5h-3a.5.5,0,0,1-.5-.5V1h.08a1,1,0,0,1,.71.29l2.41,2.42a1,1,0,0,1,.3.7Z",transform:"translate(-0.17)"}})])},Ra=[],Ma={},Fa=Object(f["a"])(Ma,La,Ra,!1,null,null,null),za=Fa.exports,Na=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("svg",{attrs:{id:"隔离模式",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 171.64 174.15"}},[a("title",[t._v("删除")]),a("path",{staticClass:"cls-1",attrs:{d:"M71.19,31.1h57.15a7.46,7.46,0,1,0,0-14.92H71.19a7.46,7.46,0,0,0,0,14.92Z",transform:"translate(-13.95 -16.18)"}}),a("path",{staticClass:"cls-1",attrs:{d:"M178.13,41.91H21.41a7.74,7.74,0,0,0-7.46,8,7.73,7.73,0,0,0,7.46,8h17.3V156c0,19,14.42,34.38,32.13,34.38h57.85c17.72,0,32.13-15.42,32.13-34.38V57.86h17.31a8,8,0,0,0,0-16ZM83.67,157a7.67,7.67,0,0,1-15.34,0V80a7.67,7.67,0,0,1,15.34,0Zm49,0a7.67,7.67,0,1,1-15.34,0V80a7.67,7.67,0,1,1,15.34,0Z",transform:"translate(-13.95 -16.18)"}})])},$a=[],Ua={},Va=Object(f["a"])(Ua,Na,$a,!1,null,null,null),Ga=Va.exports,qa={props:{selectedIndex:{type:Number,default:-1},selectedUuid:{type:Number,default:0},elementsLength:{type:Number,default:0},currentElement:{type:Object,default:function(){}}},data:function(){return{ArrowTopSVG:Oa,ArrowDownSVG:ja,CopySVG:za,RecycleSVG:Ga}},computed:{computedUp:function(){return{color:0===this.selectedIndex||"CBackTop"===this.currentElement.name||"CFloatAds"===this.currentElement.name?"#ddd":"",cursor:0===this.selectedIndex||"CBackTop"===this.currentElement.name||"CFloatAds"===this.currentElement.name?"not-allowed":"pointer"}},computedDown:function(){return{color:this.selectedIndex===this.elementsLength-1||"CBackTop"===this.currentElement.name||"CFloatAds"===this.currentElement.name?"#ddd":"",cursor:this.selectedIndex===this.elementsLength-1||"CBackTop"===this.currentElement.name||"CFloatAds"===this.currentElement.name?"not-allowed":"pointer"}},computedTop:function(){var t=document.querySelectorAll(".c-module-wrap"),e=t[this.selectedIndex];return{top:e.offsetTop+"px"}},computeCopy:function(){return{color:"CSearch"===this.currentElement.name||"CBackTop"===this.currentElement.name||"CFloatAds"===this.currentElement.name?"#ddd":"",cursor:"CSearch"===this.currentElement.name||"CBackTop"===this.currentElement.name||"CFloatAds"===this.currentElement.name?"not-allowed":"pointer"}}},methods:{moveUp:function(){0!==this.selectedIndex&&this.$emit("moveUp")},moveDown:function(){this.selectedIndex!==this.elementsLength-1&&this.$emit("moveDown")},editRemark:function(){this.$emit("editRemark")},copyElement:function(){"CSearch"!==this.currentElement.name&&"CBackTop"!==this.currentElement.name&&"CFloatAds"!==this.currentElement.name&&this.$emit("copyElement")},deleteElement:function(){this.$emit("deleteElement")}}},Wa=qa,Ja=(a("1201"),Object(f["a"])(Wa,ka,Sa,!1,null,"475cf15c",null)),Ha=Ja.exports,Za={CTitle:function(t){if(1===t.type){if(!t.text.content)return t.uuid}else if(2===t.type){if(!t.secondText.content||!t.secondText.secondContent)return t.uuid}else if(3===t.type&&!t.image.image_url)return t.uuid;return!0},CBlankspace:function(){return!0},CDescription:function(){return!0},CGallery:function(){return!0},CProperties:function(){return!0},CAds:function(t){for(var e=0;e'),l.footer_image&&(e.footerImage=l.footer_image),l.page_data&&(e.elements=JSON.parse(decodeURIComponent(l.page_data)),e.elements.length&&(c=e.elements.reduce((function(t,e){return Math.max(t,e.uuid)}),0),window.generateUuid(c),e.elements.map((function(t){t.isSelected=!1})))),e.isToolReady=!0,this.showStautsTips=Boolean(l.page_data_changed),t.next=20;break;case 17:t.prev=17,t.t0=t["catch"](4),e.$message.error(t.t0.message);case 20:case"end":return t.stop()}}),t,this,[[4,17]])})));function e(){return t.apply(this,arguments)}return e}()},nr=ir,or=(a("96bd"),Object(f["a"])(nr,r,i,!1,null,null,null));e["default"]=or.exports},a8a2:function(t,e,a){"use strict";a("4a2c")},ab5e:function(t,e,a){"use strict";a("5404a")},afc0:function(t,e,a){},b26b:function(t,e,a){},b436:function(t,e,a){},b44d:function(t,e,a){"use strict";a("eb39")},b675:function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("custom-bread",{attrs:{breadList:t.breadList}}),a("a-layout",{staticStyle:{"margin-top":"24px"}},[a("a-layout-content",{style:{background:"#fff",marginBottom:"16px",padding:"24px 24px 0"}},[a("div",{staticClass:"table-page-search-wrapper"},[a("a-form",{attrs:{layout:"inline",form:t.form},on:{submit:t.handleSubmit}},[a("a-row",{attrs:{gutter:24}},[a("a-col",{attrs:{md:6,sm:24,xxl:6}},[a("a-form-item",[a("span",{attrs:{slot:"label"},slot:"label"},[t._v("\n 规则ID\n "),a("a-tooltip",{attrs:{title:"支持批量查询,最多1000个,输入多个时用英文逗号隔开"}},[a("a-icon",{attrs:{type:"exclamation-circle"}})],1)],1),a("a-input",{attrs:{placeholder:"请输入"},model:{value:t.formData.rule_ids,callback:function(e){t.$set(t.formData,"rule_ids","string"===typeof e?e.trim():e)},expression:"formData.rule_ids"}})],1)],1),a("a-col",{attrs:{md:6,sm:24,xxl:6}},[a("a-form-item",{attrs:{label:"规则标题"}},[a("a-input",{attrs:{placeholder:"请输入"},model:{value:t.formData.title,callback:function(e){t.$set(t.formData,"title","string"===typeof e?e.trim():e)},expression:"formData.title"}})],1)],1),a("a-col",{attrs:{md:6,sm:24,xxl:6}},[a("a-form-item",{attrs:{label:"状态"}},[a("a-select",{attrs:{placeholder:"请选择"},model:{value:t.formData.status,callback:function(e){t.$set(t.formData,"status",e)},expression:"formData.status"}},[a("a-select-option",{attrs:{value:0}},[t._v("全部")]),a("a-select-option",{attrs:{value:1}},[t._v("启用")]),a("a-select-option",{attrs:{value:2}},[t._v("禁用")])],1)],1)],1),a("a-col",{attrs:{md:6,sm:24,xxl:6}},[a("div",{staticClass:"page-user-button"},[a("a-button",{attrs:{type:"primary","html-type":"submit"}},[t._v("查询")]),a("a-button",{on:{click:t.handleReset}},[t._v("重置")])],1)])],1)],1)],1)]),a("a-layout-content",{style:{background:"#fff",padding:"24px"}},[a("a-button",{attrs:{type:"primary"},on:{click:t.addRule}},[t._v("新建")]),a("a-table",{staticStyle:{"margin-top":"24px"},attrs:{"table-layout":"fixed",columns:t.columns,dataSource:t.dataSource,pagination:!1,loading:t.loading,rowKey:t.rowKeyMethod},scopedSlots:t._u([{key:"titles",fn:function(e){return[a("a-tooltip",{attrs:{placement:"topLeft",title:e}},[t._v("\n "+t._s(e)+"\n ")])]}},{key:"merchantSpuCount",fn:function(e,r){return[r.merchant_spu_count||r.spu_count?a("a",{attrs:{href:"/product/manage/sale/list?rule_id="+r.rule_id+"&activeKey=2&site_id="+t.$store.getters.websiteId,target:"_blank"}},[t._v("\n "+t._s(r.spu_count)+"/"+t._s(0===r.merchant_spu_count?"--":r.merchant_spu_count)+"\n ")]):[t._v("\n - -\n ")]]}},{key:"status",fn:function(e){return[t._v("\n "+t._s(1===e?"启用":2===e?"禁用":"- -")+"\n ")]}},{key:"actions",fn:function(e,r){return[a("a",{attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.eventEdit(r.rule_id)}}},[t._v("编辑")]),t._v("\n  \n "),a("a",{attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.eventDetail(r.rule_id)}}},[t._v("查看")])]}}])}),a("p-agination",{attrs:{total:t.pageTotal,currentPage:t.query.page,computedPageNumber:t.computedPageNumber,pageSize:t.query.size},on:{jumpTableChange:t.jumpTableChange,selectPageSizeChange:t.selectPageSizeChange}})],1)],1)],1)},i=[],n=a("ac0d"),o=a("5633"),s=a("bf43"),l=a("3521"),c=[{title:"规则ID",dataIndex:"rule_id",key:"ruleId",width:"10%",ellipsis:!0,scopedSlots:{customRender:"ruleId"}},{title:"规则标题",dataIndex:"title",key:"title",width:"27%",ellipsis:!0,scopedSlots:{customRender:"titles"}},{title:"聚合后/聚合前SPU数量",dataIndex:"merchant_spu_count",key:"merchantSpuCount",align:"center",width:"22%",scopedSlots:{customRender:"merchantSpuCount"}},{title:"状态",dataIndex:"status",key:"status",width:"10%",align:"center",scopedSlots:{customRender:"status"}},{title:"创建时间",dataIndex:"created_at",key:"createdAt",width:"18%",ellipsis:!0,scopedSlots:{customRender:"createdAt"}},{title:"操作",key:"actions",width:"12%",scopedSlots:{customRender:"actions"}}],d={components:{customBread:o["a"],"p-agination":s["a"]},data:function(){return{form:this.$form.createForm(this),breadList:{current:"异款SPU规则",showNote:!0,isText:!0,loopBread:[{name:"1",title:"工作台",href:"/dashboard"},{name:"2",title:"商品"},{name:"3",title:"商品工具"},{name:"4",title:"异款SPU规则"}]},dataSource:[],columns:c,loading:!1,formData:{rule_ids:"",title:"",status:0}}},mixins:[n["n"]],methods:{rowKeyMethod:function(t,e){return e},addRule:function(){this.$router.push({path:"/product/tool/differentSpuRules/add/websiteId/".concat(this.$store.getters.websiteId)})},getTableList:function(){var t=this;this.loading=!0;var e={};e="{}"!==JSON.stringify(this.params)?Object.assign({},this.query,this.params):Object.assign({},this.query),Object(l["e"])(e).then((function(e){var a=e.data;a&&(t.loading=!1,t.dataSource=a.rule_list,t.pageTotal=a.total_count)})).catch((function(){t.loading=!1}))},handleReset:function(){this.formData.rule_ids="",this.formData.title="",this.formData.status=0,this.query={page:1,size:10},this.getTableList()},handleSubmit:function(t){void 0!==t&&t.preventDefault(),this.params=this.formData,this.query.page=1,this.getTableList()},eventDetail:function(t){var e="/product/tool/differentSpuRules/detail/id/".concat(t,"/websiteId/").concat(this.$store.getters.websiteId);window.open(e)},eventEdit:function(t){var e="/product/tool/differentSpuRules/edit/id/".concat(t,"/websiteId/").concat(this.$store.getters.websiteId);window.open(e)}},mounted:function(){this.$route.query.site_id&&this.$store.commit("SET_Comsumer_Website_Base",this.$route.query.site_id)}},u=d,p=a("2877"),f=Object(p["a"])(u,r,i,!1,null,"3418e556",null);e["default"]=f.exports},c4f4:function(t,e,a){},ca84:function(t,e,a){"use strict";a("6a36")},d846:function(t,e,a){},df0e:function(t,e,a){"use strict";a("3248")},e693:function(t,e,a){t.exports=a.p+"img/size-chart.7609010b.png"},e8b5:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXcAAAAUCAMAAAE2Dr0aAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDpiZDA5OWYwYi03NTQ5LTAzNDUtYTQ1Yi0zMWQ5ZjU4MzQwYzMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MjYzMzJGRDQxMEQ2MTFFQUIyNTE4RjI0RjdBMkU5RUUiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MjYzMzJGRDMxMEQ2MTFFQUIyNTE4RjI0RjdBMkU5RUUiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6ZTUzY2U1NzktNGFjZi1hOTRlLWIwYWYtNmMwMjM5ZWEwZjM1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOmJkMDk5ZjBiLTc1NDktMDM0NS1hNDViLTMxZDlmNTgzNDBjMyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PvLTMb4AAALBUExURYGBgXFxce/v7ygnKQcGCIuLjN7e3r29vf39/f7+/klISlFRUXt6e9/f3xISEvHx8fn5+TExMTk4Ofz8/Pb29lpZWi4uLvf398fHx2pqa83NztDQ0O7u78PDw4KCgoCAgGJiYvj4+Nvb2xUVFdTU1BgXGKqqquXl5crKyvv7+/Dw8K+vryMjIzIyMg8PDxgYGJybnLCwsLKysjAwMM7OzsDAwMbGxri4uFRUVLGxsXp6euHh4SgoKPT09CIiIlNTU1dXV4eHh/r6+kFBQS0tLRsbGyUlJfX19RQUFPPz8xcXF9fX1+zs7NXV1UlJSaurq2FhYe3t7a6urnl5eX19fYmJiR4eHqmpqVBQUKSkpOnp6ejo6HNzc+fn5+Li4o+Pj6ampjY2Nr6+vlVVVW1tbRwcHG5ubpiYmJKSklpaWn5+ftnZ2WhoaF5eXj4+PnBwcDw8PE9PTzU1NR0dHYWFhZ2dnbOzs0dHRxEREYuLizQ0NLm5ufLy8qOjo46OjqCgoNLS0re3t93d3URERKWlpcHBwUVFRZWVlby8vFhYWD09PRMTE2xsbNHR0Tc3NyAgIExMTGNjY62trZSUlM3NzSsrKxYWFuDg4MLCwsnJySwsLOTk5CYmJuvr65ycnG9vb8XFxQUFBcjIyD8/P1tbWxoaGgwMDIODg9PT08vLy8zMzNra2u7u7pqamoyMjNjY2E1NTQcHB05OTpOTk9bW1hAQEB8fHzg4OF9fX2trayoqKkJCQktLS2pqakpKSp6ennh4eJaWlsTExH9/f5ubmwkJCYqKiqysrGZmZoiIiKenp1JSUg4ODmdnZ+Pj41xcXLu7uwQEBJGRkZmZmSEhIaioqHJychkZGUNDQ6ysrerq6lZWVjs7O2VlZba2tkBAQHV1dWlpaWRkZObm5pCQkHd3dzMzM7+/vy8vLwMDA////1zJUmAAAAW4SURBVHjaYnhFGmB49fLly55Xr57yN76Sg4t6cgKJCGR1zK94VIFKJRhINB8ggMhR7/ASSLCF2D6AC1qqvVqBplD0FdA5pJsPEEAo6uNfURsAjdd99fKV4Azpqa+SX+0TFHuV7sYIdCmmSjGQR1+9cuJ9pcOLz0RR1ldcBqBIApkBEEAMr2gKaG/8S4WAl69AUDmJQ261lfurV1vVtJIwlQp4v9KTf5XAYY/HOGYh1VfsXK/AYQMNHJeVGmJAw/tevQoS1AxTfFX16pWbJxat/iWvuma8usDNJIbPeJZXr1RRjKclAAggGhs/MI5Xm//KWlr6lbkSMKLj5p4Cp3tgaLYQYWRggSuQ1BHT3N+pC+IvfPUq/9UrBXJcx/xKkoVdhkXoFYvUK4NXr5qYYMAE7vhFL192AB2WBCzhgFTZy5crXnHs4dZ7pfNqwqtXZnlur5J5gdn41TRLpqJsImzUCPbjjHZfkjZ9YqUNkOv1yuIVk3YkL3mO53rFwgx0Nwu7ATBBQpIjJElyE5VsHBFMFeKsnJj1KvRVzM5XsbcnvXpl9OqVsI+4lggTmY5nYWcDhjwbGxvQ8TmMMKAw9NM8QAAxjLp9ULk9cgi73a/klbS0llMLMIeqv5o0G1RDAXO4CycRRiZmrn316kBmxCvXPB8glzEO3NjgI8NxrK9ABY0QCxurKjDjvuqBF5NMITC357zMBLW6zr88C6K4X8a8ejVd8cUrYCHp8KqC8VV3/avgV68kUmrk1ESOEmFj8KszIpxzXtkL87/KAoXClVcv418tJ8PtklxA1998xfNKlIVVhh0YCoKwUpKb8QnU7UCOLBi9bHz50gRcgPZzcwdq+wBTjsurMum7q0DtX2tdJqNlxFhpU5n76tXiulmv2qwOvXqlpDj51cvdrwrJC3dJYPnI+oqZlVmVWRLF7XZQt095afbK2PiVxMtVr2YVvTJ9CSzI1716ZVwhmN5pUf1K+RVDbi7IJPGXXkTZ+PyV86tXe1+1A8v2Xa9eLeXlPfaS4yCZaYb1FTsw3LleybCzMr9iXAxzuwIjceVMAJylRJyN2snqcwW22Mu+OgyqQ4BxvZwBaM1JMtM7MKWzsL1ieQUM93p45cTIPlq+DxwACLAh3SgYDfdRQNtwF9BXVidCmW8pA0OpCvVcydkgGwhlqreuBnfQZHs54I7iB5FMThCO1qAI11uhDJjgkghGuHMaMvgDPcKpzRAEpDiOMxgCm13CagxlQErzKsM9qLLycBM3zlfzAgIiXprVPLO30ikVVwZ2Be/XLnC9lubVAFJie/qlK4NGdLSGXPHLQuoEQskjYJNETxFUPS71fMXRpS2sxwZshkHdrqjvAGqzvOQDBX/UMj76BCwrsJX4SoqF/ZWo0CtWZjYZZh42FnZJ0VcGzGBpxlcJGMFe/YoRPdx5wc0ElfVgylsFTDWZgKlzi0DkxccgZfJ+pqYKS4CMrDZhYBwAGbqyvqnCDCmvnI6c4BaDGBv76nI3SAvf5Fdx1PFj7J35jgUZrzpe8r5K2RS6Y4P4q4w8x/zt0JzX7P+qyBwY7q06HK8EitnpE+7swMB+9YqHCxT2bELAxgsrswwo3Fm5XkHDHd5whANuoKidBUq4ixcDxT343fWBlL4tvzKQShVZ4wGkwgR89ICUnSZQlbkLSG3hZt/r0kA644bwq5n6Iq9q51QBG75mr2z7YNGpJO4tL+8r0EstTzarAbOgmCmQlQ5ytvzDBVOFX70KKgBLWnk4OydujHr1ksnQ+VUiOy+d0jtmuIMFuXi42Fik8IR7DBnlOz8o8F9xMHmCul3ir16xaYAKrCgPUAa3nqIogCi+lMK8VlLPi3XGlhLy25gklGd7T2ufmZBqyd8fImEkCB47MgSPv5nbcL5kehW/cN4ruoY7SjkDFOMRfQUN9zSs1VQ+Ndsz4dmvRsFoO3I03EcBbgAAxU9JhAvQ1AEAAAAASUVORK5CYII="},ea0f:function(t,e,a){},eb39:function(t,e,a){},eb5b:function(t,e,a){},ebc0:function(t,e,a){"use strict";a("b26b")},f76f:function(t,e,a){"use strict";a("afc0")},f7f8:function(t,e,a){"use strict";a("d846")}}]);