@polyv/product-ui 1.5.0-rc-20250925.1 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/address-edit.cjs.js +1 -1
  2. package/address-edit.es.js +2 -2
  3. package/address-edit.umd.js +1 -1
  4. package/address-item.cjs.js +1 -1
  5. package/address-item.es.js +2 -2
  6. package/address-item.umd.js +1 -1
  7. package/address-list.cjs.js +1 -1
  8. package/address-list.es.js +2 -2
  9. package/address-list.umd.js +2 -2
  10. package/big-card-popup.cjs.js +1 -1
  11. package/big-card-popup.es.js +2 -2
  12. package/big-card-popup.umd.js +1 -1
  13. package/index.cjs.js +1 -1
  14. package/index.es.js +2 -2
  15. package/index.umd.js +1 -1
  16. package/mobile-product-pendant.cjs.js +1 -1
  17. package/mobile-product-pendant.es.js +2 -2
  18. package/mobile-product-pendant.umd.js +1 -1
  19. package/order-confirm.cjs.js +1 -1
  20. package/order-confirm.es.js +2 -2
  21. package/order-confirm.umd.js +1 -1
  22. package/order-detail.cjs.js +1 -1
  23. package/order-detail.es.js +2 -2
  24. package/order-detail.umd.js +1 -1
  25. package/order-item.cjs.js +1 -1
  26. package/order-item.es.js +2 -2
  27. package/order-item.umd.js +1 -1
  28. package/order-list-popup.cjs.js +1 -1
  29. package/order-list-popup.es.js +2 -2
  30. package/order-list-popup.umd.js +1 -1
  31. package/order-list.cjs.js +1 -1
  32. package/order-list.es.js +2 -2
  33. package/order-list.umd.js +1 -1
  34. package/order-popup.cjs.js +1 -1
  35. package/order-popup.es.js +2 -2
  36. package/order-popup.umd.js +1 -1
  37. package/package.json +1 -1
  38. package/pc-product-pendant.cjs.js +1 -1
  39. package/pc-product-pendant.es.js +2 -2
  40. package/pc-product-pendant.umd.js +1 -1
  41. package/product-button.cjs.js +1 -1
  42. package/product-button.es.js +2 -2
  43. package/product-button.umd.js +1 -1
  44. package/product-detail-popup.cjs.js +1 -1
  45. package/product-detail-popup.es.js +2 -2
  46. package/product-detail-popup.umd.js +1 -1
  47. package/product-detail.cjs.js +1 -1
  48. package/product-detail.es.js +2 -2
  49. package/product-detail.umd.js +1 -1
  50. package/product-iframe-link-popup.cjs.js +1 -1
  51. package/product-iframe-link-popup.es.js +2 -2
  52. package/product-iframe-link-popup.umd.js +1 -1
  53. package/product-item.cjs.js +1 -1
  54. package/product-item.es.js +2 -2
  55. package/product-item.umd.js +1 -1
  56. package/product-list-popup.cjs.js +1 -1
  57. package/product-list-popup.es.js +2 -2
  58. package/product-list-popup.umd.js +1 -1
  59. package/product-list.cjs.js +1 -1
  60. package/product-list.es.js +2 -2
  61. package/product-list.umd.js +1 -1
  62. package/small-card.cjs.js +1 -1
  63. package/small-card.es.js +2 -2
  64. package/small-card.umd.js +1 -1
@@ -75,4 +75,4 @@ var t,n,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.toS
75
75
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
76
76
  var t,n,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.toStringTag||"@@toStringTag";function l(e,i,o,a){var s=i&&i.prototype instanceof u?i:u,l=Object.create(s.prototype);return r(l,"_invoke",function(e,r,i){var o,a,s,l=0,u=i||[],p=!1,d={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,n){return o=e,a=0,s=t,d.n=n,c}};function f(e,r){for(a=e,s=r,n=0;!p&&l&&!i&&n<u.length;n++){var i,o=u[n],f=d.p,h=o[2];e>3?(i=h===r)&&(s=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=f&&((i=e<2&&f<o[1])?(a=0,d.v=r,d.n=o[1]):f<h&&(i=e<3||o[0]>r||r>h)&&(o[4]=e,o[5]=r,d.n=h,a=0))}if(i||e>1)return c;throw p=!0,r}return function(i,u,h){if(l>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,h),a=u,s=h;(n=a<2?t:s)||!p;){o||(a?a<3?(a>1&&(d.n=-1),f(a,s)):d.n=s:d.v=s);try{if(l=2,o){if(a||(i="next"),n=o[i]){if(!(n=n.call(o,s)))throw TypeError("iterator result is not an object");if(!n.done)return n;s=n.value,a<2&&(a=0)}else 1===a&&(n=o.return)&&n.call(o),a<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((n=(p=d.n<0)?s:e.call(r,d))!==c)break}catch(m){o=t,a=1,s=m}finally{l=1}}return{value:n,done:p}}}(e,o,a),!0),l}var c={};function u(){}function p(){}function d(){}n=Object.getPrototypeOf;var f=[][a]?n(n([][a]())):(r(n={},a,function(){return this}),n),h=d.prototype=u.prototype=Object.create(f);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,r(e,s,"GeneratorFunction")),e.prototype=Object.create(h),e}return p.prototype=d,r(h,"constructor",d),r(d,"constructor",p),p.displayName="GeneratorFunction",r(d,s,"GeneratorFunction"),r(h),r(h,s,"Generator"),r(h,a,function(){return this}),r(h,"toString",function(){return"[object Generator]"}),(e.exports=i=function(){return{w:l,m:m}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},21:function(e,t){function n(t,r,i,o){var a=Object.defineProperty;try{a({},"",{})}catch(s){a=0}e.exports=n=function(e,t,r,i){if(t)a?a(e,t,{value:r,enumerable:!i,configurable:!i,writable:!i}):e[t]=r;else{var o=function(t,r){n(e,t,function(e){return this._invoke(t,r,e)})};o("next",0),o("throw",1),o("return",2)}},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,r,i,o)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},22:function(e,t,n){var r=n(20),i=n(23);e.exports=function(e,t,n,o,a){return new i(r().w(e,t,n,o),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},23:function(e,t,n){var r=n(19),i=n(21);e.exports=function e(t,n){function o(e,i,a,s){try{var l=t[e](i),c=l.value;return c instanceof r?n.resolve(c.v).then(function(e){o("next",e,a,s)},function(e){o("throw",e,a,s)}):n.resolve(c).then(function(e){l.value=e,a(l)},function(e){return o("throw",e,a,s)})}catch(u){s(u)}}var a;this.next||(i(e.prototype),i(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),i(this,"_invoke",function(e,t,r){function i(){return new n(function(t,n){o(e,r,t,n)})}return a=a?a.then(i,i):i()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports},27:function(e,t,n){var r=n(4).default,i=n(35);e.exports=function(e){var t=i(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},29:function(e,t,n){var r=n(10),i=n.n(r),o=n(5),a=n.n(o),s=n(15);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(n,!0).forEach(function(t){i()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var u=a.a.prototype.$isServer,p=u?function(){}:n(58).default;t.a={props:{trigger:{type:String,default:"click",validator:function(e){return-1!==["click","hover","custom"].indexOf(e)}},placement:{type:String,default:"bottom",validator:function(e){return-1!==["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"].indexOf(e)}},offset:{type:Number,default:0},transition:{type:String,default:"plv-fade-in-linear"},hoverOpenDelay:{type:Number,default:0},hoverCloseDelay:{type:Number,default:300},visibleArrow:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!0}},data:function(){return{popperElm:null,referenceElm:null,showPopper:!1,popperJS:null,defaultPopperOptions:{gpuAcceleration:!1}}},watch:{showPopper:function(e){this.disabled||this.readonly||(e&&this.updatePopper(),e?this.$emit("show-popper"):this.$emit("hidden-popper"))}},methods:{initPopper:function(e,t){u||(this.referenceElm=e,this.popperElm=t,this.appendToBody&&document.body.appendChild(t))},createPopper:function(){var e=this;if(!u&&/^(top|bottom|left|right)(-start|-end)?$/g.test(this.placement)){var t=this.popperElm,n=this.referenceElm;if(t&&n){this.visibleArrow&&this.appendArrow(t),this.popperJS&&"function"==typeof this.popperJS.destroy&&this.popperJS.destroy();var r=c(c({},this.defaultPopperOptions),{},{placement:this.placement,offset:this.offset});this.popperJS=new p(n,t,r),this.popperJS.onCreate(function(t){e.resetTransformOrigin(t),e.$emit("created",e)})}}},updatePopper:function(){u||(this.popperJS?this.popperJS.update():this.createPopper(),s.default.openPopper(this.popperElm))},appendArrow:function(e){if(!u&&!this.appended){this.appended=!0;var t=document.createElement("div");t.setAttribute("x-arrow",""),t.className="popper__arrow",e.appendChild(t)}},doDestroy:function(){u||(this.popperJS._popper.removeEventListener("transitionend",this.doDestroy),this.popperJS.destroy(),this.popperJS=null)},destroyPopper:function(){u||this.popperJS&&(this.resetTransformOrigin(this.popperJS),this.transition?this.popperJS._popper.addEventListener("transitionend",this.doDestroy):this.doDestroy())},resetTransformOrigin:function(e){if(!u){var t=e._popper.getAttribute("x-placement").split("-")[0],n={top:"bottom",bottom:"top",left:"right",right:"left"}[t];e._popper.style.transformOrigin=["top","bottom"].indexOf(t)>-1?"center ".concat(n):"".concat(n," center")}},destroyPopperDom:function(){u||(this.popperJS&&this.popperJS.destroy(),this.appendToBody&&this.popperElm.parentNode===document.body&&document.body.removeChild(this.popperElm))}},beforeDestroy:function(){this.destroyPopperDom()},deactivated:function(){this.destroyPopperDom()}}},3:function(e,t,n){var r=n(30)();e.exports=r;try{regeneratorRuntime=r}catch(i){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},30:function(e,t,n){var r=n(19),i=n(20),o=n(31),a=n(22),s=n(23),l=n(32),c=n(33);function u(){var t=i(),n=t.m(u),p=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function d(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))}var f={throw:1,return:2,break:3,continue:3};function h(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,f[e],t)},delegateYield:function(e,i,o){return t.resultName=i,n(r.d,c(e),o)},finish:function(e){return n(r.f,e)}},n=function(e,n,i){r.p=t.prev,r.n=t.next;try{return e(n,i)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(e.exports=u=function(){return{wrap:function(e,n,r,i){return t.w(h(e),n,r,i&&i.reverse())},isGeneratorFunction:d,mark:t.m,awrap:function(e,t){return new r(e,t)},AsyncIterator:s,async:function(e,t,n,r,i){return(d(t)?a:o)(h(e),t,n,r,i)},keys:l,values:c}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=u,e.exports.__esModule=!0,e.exports.default=e.exports},31:function(e,t,n){var r=n(22);e.exports=function(e,t,n,i,o){var a=r(e,t,n,i,o);return a.next().then(function(e){return e.done?e.value:a.next()})},e.exports.__esModule=!0,e.exports.default=e.exports},32:function(e,t){e.exports=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},33:function(e,t,n){var r=n(4).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(r(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},35:function(e,t,n){var r=n(4).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},4:function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},41:function(e,t,n){var r,i;void 0===(i="function"==typeof(r=function(){var e=window,t={placement:"bottom",gpuAcceleration:!0,offset:0,boundariesElement:"viewport",boundariesPadding:5,preventOverflowOrder:["left","right","top","bottom"],flipBehavior:"flip",arrowElement:"[x-arrow]",arrowOffset:0,modifiers:["shift","offset","preventOverflow","keepTogether","arrow","flip","applyStyle"],modifiersIgnored:[],forceAbsolute:!1};function n(e,n,r){this._reference=e.jquery?e[0]:e,this.state={};var i=null==n,o=n&&"[object Object]"===Object.prototype.toString.call(n);return this._popper=i||o?this.parse(o?n:{}):n.jquery?n[0]:n,this._options=Object.assign({},t,r),this._options.modifiers=this._options.modifiers.map(function(e){if(-1===this._options.modifiersIgnored.indexOf(e))return"applyStyle"===e&&this._popper.setAttribute("x-placement",this._options.placement),this.modifiers[e]||e}.bind(this)),this.state.position=this._getPosition(this._popper,this._reference),u(this._popper,{position:this.state.position,top:0}),this.update(),this._setupEventListeners(),this}function r(t){var n=t.style.display,r=t.style.visibility;t.style.display="block",t.style.visibility="hidden",t.offsetWidth;var i=e.getComputedStyle(t),o=parseFloat(i.marginTop)+parseFloat(i.marginBottom),a=parseFloat(i.marginLeft)+parseFloat(i.marginRight),s={width:t.offsetWidth+a,height:t.offsetHeight+o};return t.style.display=n,t.style.visibility=r,s}function i(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function o(e){var t=Object.assign({},e);return t.right=t.left+t.width,t.bottom=t.top+t.height,t}function a(e,t){var n,r=0;for(n in e){if(e[n]===t)return r;r++}return null}function s(t,n){return e.getComputedStyle(t,null)[n]}function l(t){var n=t.offsetParent;return n!==e.document.body&&n?n:e.document.documentElement}function c(t){var n=t.parentNode;return n?n===e.document?e.document.body.scrollTop||e.document.body.scrollLeft?e.document.body:e.document.documentElement:-1!==["scroll","auto"].indexOf(s(n,"overflow"))||-1!==["scroll","auto"].indexOf(s(n,"overflow-x"))||-1!==["scroll","auto"].indexOf(s(n,"overflow-y"))?n:c(t.parentNode):t}function u(e,t){Object.keys(t).forEach(function(n){var r,i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&""!==(r=t[n])&&!isNaN(parseFloat(r))&&isFinite(r)&&(i="px"),e.style[n]=t[n]+i})}function p(e){var t={width:e.offsetWidth,height:e.offsetHeight,left:e.offsetLeft,top:e.offsetTop};return t.right=t.left+t.width,t.bottom=t.top+t.height,t}function d(e){var t=e.getBoundingClientRect(),n=-1!=navigator.userAgent.indexOf("MSIE")&&"HTML"===e.tagName?-e.scrollTop:t.top;return{left:t.left,top:n,right:t.right,bottom:t.bottom,width:t.right-t.left,height:t.bottom-n}}function f(t){for(var n=["","ms","webkit","moz","o"],r=0;r<n.length;r++){var i=n[r]?n[r]+t.charAt(0).toUpperCase()+t.slice(1):t;if(void 0!==e.document.body.style[i])return i}return null}return n.prototype.destroy=function(){return this._popper.removeAttribute("x-placement"),this._popper.style.left="",this._popper.style.position="",this._popper.style.top="",this._popper.style[f("transform")]="",this._removeEventListeners(),this._options.removeOnDestroy&&this._popper.remove(),this},n.prototype.update=function(){var e={instance:this,styles:{}};e.placement=this._options.placement,e._originalPlacement=this._options.placement,e.offsets=this._getOffsets(this._popper,this._reference,e.placement),e.boundaries=this._getBoundaries(e,this._options.boundariesPadding,this._options.boundariesElement),e=this.runModifiers(e,this._options.modifiers),"function"==typeof this.state.updateCallback&&this.state.updateCallback(e)},n.prototype.onCreate=function(e){return e(this),this},n.prototype.onUpdate=function(e){return this.state.updateCallback=e,this},n.prototype.parse=function(t){var n={tagName:"div",classNames:["popper"],attributes:[],parent:e.document.body,content:"",contentType:"text",arrowTagName:"div",arrowClassNames:["popper__arrow"],arrowAttributes:["x-arrow"]};t=Object.assign({},n,t);var r=e.document,i=r.createElement(t.tagName);if(s(i,t.classNames),l(i,t.attributes),"node"===t.contentType?i.appendChild(t.content.jquery?t.content[0]:t.content):"html"===t.contentType?i.innerHTML=t.content:i.textContent=t.content,t.arrowTagName){var o=r.createElement(t.arrowTagName);s(o,t.arrowClassNames),l(o,t.arrowAttributes),i.appendChild(o)}var a=t.parent.jquery?t.parent[0]:t.parent;if("string"==typeof a){if((a=r.querySelectorAll(t.parent)).length>1&&console.warn("WARNING: the given `parent` query("+t.parent+") matched more than one element, the first one will be used"),0===a.length)throw"ERROR: the given `parent` doesn't exists!";a=a[0]}return a.length>1&&a instanceof Element==0&&(console.warn("WARNING: you have passed as parent a list of elements, the first one will be used"),a=a[0]),a.appendChild(i),i;function s(e,t){t.forEach(function(t){e.classList.add(t)})}function l(e,t){t.forEach(function(t){e.setAttribute(t.split(":")[0],t.split(":")[1]||"")})}},n.prototype._getPosition=function(t,n){return l(n),this._options.forceAbsolute?"absolute":function t(n){return n!==e.document.body&&("fixed"===s(n,"position")||(n.parentNode?t(n.parentNode):n))}(n)?"fixed":"absolute"},n.prototype._getOffsets=function(e,t,n){n=n.split("-")[0];var i={};i.position=this.state.position;var o="fixed"===i.position,a=function(e,t,n){var r=d(e),i=d(t);if(n){var o=c(t);i.top+=o.scrollTop,i.bottom+=o.scrollTop,i.left+=o.scrollLeft,i.right+=o.scrollLeft}return{top:r.top-i.top,left:r.left-i.left,bottom:r.top-i.top+r.height,right:r.left-i.left+r.width,width:r.width,height:r.height}}(t,l(e),o),s=r(e);return-1!==["right","left"].indexOf(n)?(i.top=a.top+a.height/2-s.height/2,i.left="left"===n?a.left-s.width:a.right):(i.left=a.left+a.width/2-s.width/2,i.top="top"===n?a.top-s.height:a.bottom),i.width=s.width,i.height=s.height,{popper:i,reference:a}},n.prototype._setupEventListeners=function(){if(this.state.updateBound=this.update.bind(this),e.addEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement){var t=c(this._reference);t!==e.document.body&&t!==e.document.documentElement||(t=e),t.addEventListener("scroll",this.state.updateBound),this.state.scrollTarget=t}},n.prototype._removeEventListeners=function(){e.removeEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement&&this.state.scrollTarget&&(this.state.scrollTarget.removeEventListener("scroll",this.state.updateBound),this.state.scrollTarget=null),this.state.updateBound=null},n.prototype._getBoundaries=function(t,n,r){var i,o,a,s={};if("window"===r){var u=e.document.body,d=e.document.documentElement;i=Math.max(u.scrollHeight,u.offsetHeight,d.clientHeight,d.scrollHeight,d.offsetHeight),s={top:0,right:Math.max(u.scrollWidth,u.offsetWidth,d.clientWidth,d.scrollWidth,d.offsetWidth),bottom:i,left:0}}else if("viewport"===r){var f=l(this._popper),h=c(this._popper),m=p(f),v="fixed"===t.offsets.popper.position?0:(o=h)==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):o.scrollTop,g="fixed"===t.offsets.popper.position?0:(a=h)==document.body?Math.max(document.documentElement.scrollLeft,document.body.scrollLeft):a.scrollLeft;s={top:0-(m.top-v),right:e.document.documentElement.clientWidth-(m.left-g),bottom:e.document.documentElement.clientHeight-(m.top-v),left:0-(m.left-g)}}else s=l(this._popper)===r?{top:0,left:0,right:r.clientWidth,bottom:r.clientHeight}:p(r);return s.left+=n,s.right-=n,s.top=s.top+n,s.bottom=s.bottom-n,s},n.prototype.runModifiers=function(e,t,n){var r=t.slice();return void 0!==n&&(r=this._options.modifiers.slice(0,a(this._options.modifiers,n))),r.forEach(function(t){var n;(n=t)&&"[object Function]"==={}.toString.call(n)&&(e=t.call(this,e))}.bind(this)),e},n.prototype.isModifierRequired=function(e,t){var n=a(this._options.modifiers,e);return!!this._options.modifiers.slice(0,n).filter(function(e){return e===t}).length},n.prototype.modifiers={},n.prototype.modifiers.applyStyle=function(e){var t,n={position:e.offsets.popper.position},r=Math.round(e.offsets.popper.left),i=Math.round(e.offsets.popper.top);return this._options.gpuAcceleration&&(t=f("transform"))?(n[t]="translate3d("+r+"px, "+i+"px, 0)",n.top=0,n.left=0):(n.left=r,n.top=i),Object.assign(n,e.styles),u(this._popper,n),this._popper.setAttribute("x-placement",e.placement),this.isModifierRequired(this.modifiers.applyStyle,this.modifiers.arrow)&&e.offsets.arrow&&u(e.arrowElement,e.offsets.arrow),e},n.prototype.modifiers.shift=function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets.reference,a=o(e.offsets.popper),s={y:{start:{top:i.top},end:{top:i.top+i.height-a.height}},x:{start:{left:i.left},end:{left:i.left+i.width-a.width}}},l=-1!==["bottom","top"].indexOf(n)?"x":"y";e.offsets.popper=Object.assign(a,s[l][r])}return e},n.prototype.modifiers.preventOverflow=function(e){var t=this._options.preventOverflowOrder,n=o(e.offsets.popper),r={left:function(){var t=n.left;return n.left<e.boundaries.left&&(t=Math.max(n.left,e.boundaries.left)),{left:t}},right:function(){var t=n.left;return n.right>e.boundaries.right&&(t=Math.min(n.left,e.boundaries.right-n.width)),{left:t}},top:function(){var t=n.top;return n.top<e.boundaries.top&&(t=Math.max(n.top,e.boundaries.top)),{top:t}},bottom:function(){var t=n.top;return n.bottom>e.boundaries.bottom&&(t=Math.min(n.top,e.boundaries.bottom-n.height)),{top:t}}};return t.forEach(function(t){e.offsets.popper=Object.assign(n,r[t]())}),e},n.prototype.modifiers.keepTogether=function(e){var t=o(e.offsets.popper),n=e.offsets.reference,r=Math.floor;return t.right<r(n.left)&&(e.offsets.popper.left=r(n.left)-t.width),t.left>r(n.right)&&(e.offsets.popper.left=r(n.right)),t.bottom<r(n.top)&&(e.offsets.popper.top=r(n.top)-t.height),t.top>r(n.bottom)&&(e.offsets.popper.top=r(n.bottom)),e},n.prototype.modifiers.flip=function(e){if(!this.isModifierRequired(this.modifiers.flip,this.modifiers.preventOverflow))return console.warn("WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!"),e;if(e.flipped&&e.placement===e._originalPlacement)return e;var t=e.placement.split("-")[0],n=i(t),r=e.placement.split("-")[1]||"",a=[];return(a="flip"===this._options.flipBehavior?[t,n]:this._options.flipBehavior).forEach(function(s,l){if(t===s&&a.length!==l+1){t=e.placement.split("-")[0],n=i(t);var c=o(e.offsets.popper),u=-1!==["right","bottom"].indexOf(t);(u&&Math.floor(e.offsets.reference[t])>Math.floor(c[n])||!u&&Math.floor(e.offsets.reference[t])<Math.floor(c[n]))&&(e.flipped=!0,e.placement=a[l+1],r&&(e.placement+="-"+r),e.offsets.popper=this._getOffsets(this._popper,this._reference,e.placement).popper,e=this.runModifiers(e,this._options.modifiers,this._flip))}}.bind(this)),e},n.prototype.modifiers.offset=function(e){var t=this._options.offset,n=e.offsets.popper;return-1!==e.placement.indexOf("left")?n.top-=t:-1!==e.placement.indexOf("right")?n.top+=t:-1!==e.placement.indexOf("top")?n.left-=t:-1!==e.placement.indexOf("bottom")&&(n.left+=t),e},n.prototype.modifiers.arrow=function(e){var t=this._options.arrowElement,n=this._options.arrowOffset;if("string"==typeof t&&(t=this._popper.querySelector(t)),!t)return e;if(!this._popper.contains(t))return console.warn("WARNING: `arrowElement` must be child of its popper element!"),e;if(!this.isModifierRequired(this.modifiers.arrow,this.modifiers.keepTogether))return console.warn("WARNING: keepTogether modifier is required by arrow modifier in order to work, be sure to include it before arrow!"),e;var i={},a=e.placement.split("-")[0],s=o(e.offsets.popper),l=e.offsets.reference,c=-1!==["left","right"].indexOf(a),u=c?"height":"width",p=c?"top":"left",d=c?"left":"top",f=c?"bottom":"right",h=r(t)[u];l[f]-h<s[p]&&(e.offsets.popper[p]-=s[p]-(l[f]-h)),l[p]+h>s[f]&&(e.offsets.popper[p]+=l[p]+h-s[f]);var m=l[p]+(n||l[u]/2-h/2)-s[p];return m=Math.max(Math.min(s[u]-h-8,m),8),i[p]=m,i[d]="",e.offsets.arrow=i,e.arrowElement=t,e},Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r){r=Object(r);for(var i=Object.keys(r),o=0,a=i.length;o<a;o++){var s=i[o],l=Object.getOwnPropertyDescriptor(r,s);void 0!==l&&l.enumerable&&(t[s]=r[s])}}}return t}}),n})?r.call(t,n,t,e):r)||(e.exports=i)},44:function(e,t,n){n.r(t),n(70);var r="@@plvUIclickOutSideContext",i={name:"click-out-side",bind:function(e,t,n){var i=function(r){var i=r.target;n.context.popperElm&&n.context.popperElm.contains(i)||e.contains(i)||t.value(r)};e[r]=i,document.addEventListener("mouseup",i)},unbind:function(e){document.removeEventListener("mouseup",e[r]),delete e[r]},install:function(e){e.directive(i.name,i)}};t.default=i},48:function(e,t,n){},5:function(e,t){e.exports=f},58:function(e,t,n){n.r(t);var r=n(41),i=n.n(r);t.default=i.a},70:function(e,t,n){},8:function(e,t){function n(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,i)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,l,"next",e)}function l(e){n(a,i,o,s,l,"throw",e)}s(void 0)})}},e.exports.__esModule=!0,e.exports.default=e.exports}}).default),As||(As=1,function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=494)}({0:function(e,t,n){function r(e,t,n,r,i,o,a,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},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 u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,l):[l]}return{exports:e,options:c}}n.d(t,"a",function(){return r})},10:function(e,t,n){var r=n(27);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},15:function(e,t,n){n.r(t),n(48);var r="@@polyvAdminUIzIndex",i={ctx:r,openPopper:function(e){i.zIndex++,e.style.zIndex=i.zIndex},install:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).defaultZIndex,n=void 0===t?3e3:t;window[r]=n}};Object.defineProperty(i,"zIndex",{configurable:!0,get:function(){return window[r]||(window[r]=3e3),window[r]},set:function(e){window[r]=e}}),t.default=i},17:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},18:function(e,t,n){var r=n(27);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}e.exports=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},2:function(e,t,n){n.d(t,"a",function(){return c});var r=n(17),i=n.n(r),o=n(18),a=n.n(o),s=n(5),l=n.n(s).a.prototype.$isServer,c=new(a()(function e(t){i()(this,e),this.configKey=t.configKey},[{key:"getGlobalConfig",value:function(){return l?{}:(window[this.configKey]||(window[this.configKey]={}),window[this.configKey])}},{key:"getCompConfig",value:function(e){var t=this.getGlobalConfig();return t[e]||(t[e]={}),t[e]}},{key:"getConfig",value:function(e,t,n){var r=this.getCompConfig(e)[t];return void 0===r&&(r=n),r}},{key:"setCompConfig",value:function(e,t){this.getGlobalConfig()[e]=t}},{key:"setConfig",value:function(e,t,n){this.getCompConfig(e)[t]=n}}]))({configKey:"@@polyv-ui-admin-config"})},27:function(e,t,n){var r=n(4).default,i=n(35);e.exports=function(e){var t=i(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},29:function(e,t,n){var r=n(10),i=n.n(r),o=n(5),a=n.n(o),s=n(15);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(n,!0).forEach(function(t){i()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var u=a.a.prototype.$isServer,p=u?function(){}:n(58).default;t.a={props:{trigger:{type:String,default:"click",validator:function(e){return-1!==["click","hover","custom"].indexOf(e)}},placement:{type:String,default:"bottom",validator:function(e){return-1!==["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"].indexOf(e)}},offset:{type:Number,default:0},transition:{type:String,default:"plv-fade-in-linear"},hoverOpenDelay:{type:Number,default:0},hoverCloseDelay:{type:Number,default:300},visibleArrow:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!0}},data:function(){return{popperElm:null,referenceElm:null,showPopper:!1,popperJS:null,defaultPopperOptions:{gpuAcceleration:!1}}},watch:{showPopper:function(e){this.disabled||this.readonly||(e&&this.updatePopper(),e?this.$emit("show-popper"):this.$emit("hidden-popper"))}},methods:{initPopper:function(e,t){u||(this.referenceElm=e,this.popperElm=t,this.appendToBody&&document.body.appendChild(t))},createPopper:function(){var e=this;if(!u&&/^(top|bottom|left|right)(-start|-end)?$/g.test(this.placement)){var t=this.popperElm,n=this.referenceElm;if(t&&n){this.visibleArrow&&this.appendArrow(t),this.popperJS&&"function"==typeof this.popperJS.destroy&&this.popperJS.destroy();var r=c(c({},this.defaultPopperOptions),{},{placement:this.placement,offset:this.offset});this.popperJS=new p(n,t,r),this.popperJS.onCreate(function(t){e.resetTransformOrigin(t),e.$emit("created",e)})}}},updatePopper:function(){u||(this.popperJS?this.popperJS.update():this.createPopper(),s.default.openPopper(this.popperElm))},appendArrow:function(e){if(!u&&!this.appended){this.appended=!0;var t=document.createElement("div");t.setAttribute("x-arrow",""),t.className="popper__arrow",e.appendChild(t)}},doDestroy:function(){u||(this.popperJS._popper.removeEventListener("transitionend",this.doDestroy),this.popperJS.destroy(),this.popperJS=null)},destroyPopper:function(){u||this.popperJS&&(this.resetTransformOrigin(this.popperJS),this.transition?this.popperJS._popper.addEventListener("transitionend",this.doDestroy):this.doDestroy())},resetTransformOrigin:function(e){if(!u){var t=e._popper.getAttribute("x-placement").split("-")[0],n={top:"bottom",bottom:"top",left:"right",right:"left"}[t];e._popper.style.transformOrigin=["top","bottom"].indexOf(t)>-1?"center ".concat(n):"".concat(n," center")}},destroyPopperDom:function(){u||(this.popperJS&&this.popperJS.destroy(),this.appendToBody&&this.popperElm.parentNode===document.body&&document.body.removeChild(this.popperElm))}},beforeDestroy:function(){this.destroyPopperDom()},deactivated:function(){this.destroyPopperDom()}}},35:function(e,t,n){var r=n(4).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},355:function(e,t,n){},4:function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},41:function(e,t,n){var r,i;void 0===(i="function"==typeof(r=function(){var e=window,t={placement:"bottom",gpuAcceleration:!0,offset:0,boundariesElement:"viewport",boundariesPadding:5,preventOverflowOrder:["left","right","top","bottom"],flipBehavior:"flip",arrowElement:"[x-arrow]",arrowOffset:0,modifiers:["shift","offset","preventOverflow","keepTogether","arrow","flip","applyStyle"],modifiersIgnored:[],forceAbsolute:!1};function n(e,n,r){this._reference=e.jquery?e[0]:e,this.state={};var i=null==n,o=n&&"[object Object]"===Object.prototype.toString.call(n);return this._popper=i||o?this.parse(o?n:{}):n.jquery?n[0]:n,this._options=Object.assign({},t,r),this._options.modifiers=this._options.modifiers.map(function(e){if(-1===this._options.modifiersIgnored.indexOf(e))return"applyStyle"===e&&this._popper.setAttribute("x-placement",this._options.placement),this.modifiers[e]||e}.bind(this)),this.state.position=this._getPosition(this._popper,this._reference),u(this._popper,{position:this.state.position,top:0}),this.update(),this._setupEventListeners(),this}function r(t){var n=t.style.display,r=t.style.visibility;t.style.display="block",t.style.visibility="hidden",t.offsetWidth;var i=e.getComputedStyle(t),o=parseFloat(i.marginTop)+parseFloat(i.marginBottom),a=parseFloat(i.marginLeft)+parseFloat(i.marginRight),s={width:t.offsetWidth+a,height:t.offsetHeight+o};return t.style.display=n,t.style.visibility=r,s}function i(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function o(e){var t=Object.assign({},e);return t.right=t.left+t.width,t.bottom=t.top+t.height,t}function a(e,t){var n,r=0;for(n in e){if(e[n]===t)return r;r++}return null}function s(t,n){return e.getComputedStyle(t,null)[n]}function l(t){var n=t.offsetParent;return n!==e.document.body&&n?n:e.document.documentElement}function c(t){var n=t.parentNode;return n?n===e.document?e.document.body.scrollTop||e.document.body.scrollLeft?e.document.body:e.document.documentElement:-1!==["scroll","auto"].indexOf(s(n,"overflow"))||-1!==["scroll","auto"].indexOf(s(n,"overflow-x"))||-1!==["scroll","auto"].indexOf(s(n,"overflow-y"))?n:c(t.parentNode):t}function u(e,t){Object.keys(t).forEach(function(n){var r,i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&""!==(r=t[n])&&!isNaN(parseFloat(r))&&isFinite(r)&&(i="px"),e.style[n]=t[n]+i})}function p(e){var t={width:e.offsetWidth,height:e.offsetHeight,left:e.offsetLeft,top:e.offsetTop};return t.right=t.left+t.width,t.bottom=t.top+t.height,t}function d(e){var t=e.getBoundingClientRect(),n=-1!=navigator.userAgent.indexOf("MSIE")&&"HTML"===e.tagName?-e.scrollTop:t.top;return{left:t.left,top:n,right:t.right,bottom:t.bottom,width:t.right-t.left,height:t.bottom-n}}function f(t){for(var n=["","ms","webkit","moz","o"],r=0;r<n.length;r++){var i=n[r]?n[r]+t.charAt(0).toUpperCase()+t.slice(1):t;if(void 0!==e.document.body.style[i])return i}return null}return n.prototype.destroy=function(){return this._popper.removeAttribute("x-placement"),this._popper.style.left="",this._popper.style.position="",this._popper.style.top="",this._popper.style[f("transform")]="",this._removeEventListeners(),this._options.removeOnDestroy&&this._popper.remove(),this},n.prototype.update=function(){var e={instance:this,styles:{}};e.placement=this._options.placement,e._originalPlacement=this._options.placement,e.offsets=this._getOffsets(this._popper,this._reference,e.placement),e.boundaries=this._getBoundaries(e,this._options.boundariesPadding,this._options.boundariesElement),e=this.runModifiers(e,this._options.modifiers),"function"==typeof this.state.updateCallback&&this.state.updateCallback(e)},n.prototype.onCreate=function(e){return e(this),this},n.prototype.onUpdate=function(e){return this.state.updateCallback=e,this},n.prototype.parse=function(t){var n={tagName:"div",classNames:["popper"],attributes:[],parent:e.document.body,content:"",contentType:"text",arrowTagName:"div",arrowClassNames:["popper__arrow"],arrowAttributes:["x-arrow"]};t=Object.assign({},n,t);var r=e.document,i=r.createElement(t.tagName);if(s(i,t.classNames),l(i,t.attributes),"node"===t.contentType?i.appendChild(t.content.jquery?t.content[0]:t.content):"html"===t.contentType?i.innerHTML=t.content:i.textContent=t.content,t.arrowTagName){var o=r.createElement(t.arrowTagName);s(o,t.arrowClassNames),l(o,t.arrowAttributes),i.appendChild(o)}var a=t.parent.jquery?t.parent[0]:t.parent;if("string"==typeof a){if((a=r.querySelectorAll(t.parent)).length>1&&console.warn("WARNING: the given `parent` query("+t.parent+") matched more than one element, the first one will be used"),0===a.length)throw"ERROR: the given `parent` doesn't exists!";a=a[0]}return a.length>1&&a instanceof Element==0&&(console.warn("WARNING: you have passed as parent a list of elements, the first one will be used"),a=a[0]),a.appendChild(i),i;function s(e,t){t.forEach(function(t){e.classList.add(t)})}function l(e,t){t.forEach(function(t){e.setAttribute(t.split(":")[0],t.split(":")[1]||"")})}},n.prototype._getPosition=function(t,n){return l(n),this._options.forceAbsolute?"absolute":function t(n){return n!==e.document.body&&("fixed"===s(n,"position")||(n.parentNode?t(n.parentNode):n))}(n)?"fixed":"absolute"},n.prototype._getOffsets=function(e,t,n){n=n.split("-")[0];var i={};i.position=this.state.position;var o="fixed"===i.position,a=function(e,t,n){var r=d(e),i=d(t);if(n){var o=c(t);i.top+=o.scrollTop,i.bottom+=o.scrollTop,i.left+=o.scrollLeft,i.right+=o.scrollLeft}return{top:r.top-i.top,left:r.left-i.left,bottom:r.top-i.top+r.height,right:r.left-i.left+r.width,width:r.width,height:r.height}}(t,l(e),o),s=r(e);return-1!==["right","left"].indexOf(n)?(i.top=a.top+a.height/2-s.height/2,i.left="left"===n?a.left-s.width:a.right):(i.left=a.left+a.width/2-s.width/2,i.top="top"===n?a.top-s.height:a.bottom),i.width=s.width,i.height=s.height,{popper:i,reference:a}},n.prototype._setupEventListeners=function(){if(this.state.updateBound=this.update.bind(this),e.addEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement){var t=c(this._reference);t!==e.document.body&&t!==e.document.documentElement||(t=e),t.addEventListener("scroll",this.state.updateBound),this.state.scrollTarget=t}},n.prototype._removeEventListeners=function(){e.removeEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement&&this.state.scrollTarget&&(this.state.scrollTarget.removeEventListener("scroll",this.state.updateBound),this.state.scrollTarget=null),this.state.updateBound=null},n.prototype._getBoundaries=function(t,n,r){var i,o,a,s={};if("window"===r){var u=e.document.body,d=e.document.documentElement;i=Math.max(u.scrollHeight,u.offsetHeight,d.clientHeight,d.scrollHeight,d.offsetHeight),s={top:0,right:Math.max(u.scrollWidth,u.offsetWidth,d.clientWidth,d.scrollWidth,d.offsetWidth),bottom:i,left:0}}else if("viewport"===r){var f=l(this._popper),h=c(this._popper),m=p(f),v="fixed"===t.offsets.popper.position?0:(o=h)==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):o.scrollTop,g="fixed"===t.offsets.popper.position?0:(a=h)==document.body?Math.max(document.documentElement.scrollLeft,document.body.scrollLeft):a.scrollLeft;s={top:0-(m.top-v),right:e.document.documentElement.clientWidth-(m.left-g),bottom:e.document.documentElement.clientHeight-(m.top-v),left:0-(m.left-g)}}else s=l(this._popper)===r?{top:0,left:0,right:r.clientWidth,bottom:r.clientHeight}:p(r);return s.left+=n,s.right-=n,s.top=s.top+n,s.bottom=s.bottom-n,s},n.prototype.runModifiers=function(e,t,n){var r=t.slice();return void 0!==n&&(r=this._options.modifiers.slice(0,a(this._options.modifiers,n))),r.forEach(function(t){var n;(n=t)&&"[object Function]"==={}.toString.call(n)&&(e=t.call(this,e))}.bind(this)),e},n.prototype.isModifierRequired=function(e,t){var n=a(this._options.modifiers,e);return!!this._options.modifiers.slice(0,n).filter(function(e){return e===t}).length},n.prototype.modifiers={},n.prototype.modifiers.applyStyle=function(e){var t,n={position:e.offsets.popper.position},r=Math.round(e.offsets.popper.left),i=Math.round(e.offsets.popper.top);return this._options.gpuAcceleration&&(t=f("transform"))?(n[t]="translate3d("+r+"px, "+i+"px, 0)",n.top=0,n.left=0):(n.left=r,n.top=i),Object.assign(n,e.styles),u(this._popper,n),this._popper.setAttribute("x-placement",e.placement),this.isModifierRequired(this.modifiers.applyStyle,this.modifiers.arrow)&&e.offsets.arrow&&u(e.arrowElement,e.offsets.arrow),e},n.prototype.modifiers.shift=function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets.reference,a=o(e.offsets.popper),s={y:{start:{top:i.top},end:{top:i.top+i.height-a.height}},x:{start:{left:i.left},end:{left:i.left+i.width-a.width}}},l=-1!==["bottom","top"].indexOf(n)?"x":"y";e.offsets.popper=Object.assign(a,s[l][r])}return e},n.prototype.modifiers.preventOverflow=function(e){var t=this._options.preventOverflowOrder,n=o(e.offsets.popper),r={left:function(){var t=n.left;return n.left<e.boundaries.left&&(t=Math.max(n.left,e.boundaries.left)),{left:t}},right:function(){var t=n.left;return n.right>e.boundaries.right&&(t=Math.min(n.left,e.boundaries.right-n.width)),{left:t}},top:function(){var t=n.top;return n.top<e.boundaries.top&&(t=Math.max(n.top,e.boundaries.top)),{top:t}},bottom:function(){var t=n.top;return n.bottom>e.boundaries.bottom&&(t=Math.min(n.top,e.boundaries.bottom-n.height)),{top:t}}};return t.forEach(function(t){e.offsets.popper=Object.assign(n,r[t]())}),e},n.prototype.modifiers.keepTogether=function(e){var t=o(e.offsets.popper),n=e.offsets.reference,r=Math.floor;return t.right<r(n.left)&&(e.offsets.popper.left=r(n.left)-t.width),t.left>r(n.right)&&(e.offsets.popper.left=r(n.right)),t.bottom<r(n.top)&&(e.offsets.popper.top=r(n.top)-t.height),t.top>r(n.bottom)&&(e.offsets.popper.top=r(n.bottom)),e},n.prototype.modifiers.flip=function(e){if(!this.isModifierRequired(this.modifiers.flip,this.modifiers.preventOverflow))return console.warn("WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!"),e;if(e.flipped&&e.placement===e._originalPlacement)return e;var t=e.placement.split("-")[0],n=i(t),r=e.placement.split("-")[1]||"",a=[];return(a="flip"===this._options.flipBehavior?[t,n]:this._options.flipBehavior).forEach(function(s,l){if(t===s&&a.length!==l+1){t=e.placement.split("-")[0],n=i(t);var c=o(e.offsets.popper),u=-1!==["right","bottom"].indexOf(t);(u&&Math.floor(e.offsets.reference[t])>Math.floor(c[n])||!u&&Math.floor(e.offsets.reference[t])<Math.floor(c[n]))&&(e.flipped=!0,e.placement=a[l+1],r&&(e.placement+="-"+r),e.offsets.popper=this._getOffsets(this._popper,this._reference,e.placement).popper,e=this.runModifiers(e,this._options.modifiers,this._flip))}}.bind(this)),e},n.prototype.modifiers.offset=function(e){var t=this._options.offset,n=e.offsets.popper;return-1!==e.placement.indexOf("left")?n.top-=t:-1!==e.placement.indexOf("right")?n.top+=t:-1!==e.placement.indexOf("top")?n.left-=t:-1!==e.placement.indexOf("bottom")&&(n.left+=t),e},n.prototype.modifiers.arrow=function(e){var t=this._options.arrowElement,n=this._options.arrowOffset;if("string"==typeof t&&(t=this._popper.querySelector(t)),!t)return e;if(!this._popper.contains(t))return console.warn("WARNING: `arrowElement` must be child of its popper element!"),e;if(!this.isModifierRequired(this.modifiers.arrow,this.modifiers.keepTogether))return console.warn("WARNING: keepTogether modifier is required by arrow modifier in order to work, be sure to include it before arrow!"),e;var i={},a=e.placement.split("-")[0],s=o(e.offsets.popper),l=e.offsets.reference,c=-1!==["left","right"].indexOf(a),u=c?"height":"width",p=c?"top":"left",d=c?"left":"top",f=c?"bottom":"right",h=r(t)[u];l[f]-h<s[p]&&(e.offsets.popper[p]-=s[p]-(l[f]-h)),l[p]+h>s[f]&&(e.offsets.popper[p]+=l[p]+h-s[f]);var m=l[p]+(n||l[u]/2-h/2)-s[p];return m=Math.max(Math.min(s[u]-h-8,m),8),i[p]=m,i[d]="",e.offsets.arrow=i,e.arrowElement=t,e},Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r){r=Object(r);for(var i=Object.keys(r),o=0,a=i.length;o<a;o++){var s=i[o],l=Object.getOwnPropertyDescriptor(r,s);void 0!==l&&l.enumerable&&(t[s]=r[s])}}}return t}}),n})?r.call(t,n,t,e):r)||(e.exports=i)},44:function(e,t,n){n.r(t),n(70);var r="@@plvUIclickOutSideContext",i={name:"click-out-side",bind:function(e,t,n){var i=function(r){var i=r.target;n.context.popperElm&&n.context.popperElm.contains(i)||e.contains(i)||t.value(r)};e[r]=i,document.addEventListener("mouseup",i)},unbind:function(e){document.removeEventListener("mouseup",e[r]),delete e[r]},install:function(e){e.directive(i.name,i)}};t.default=i},48:function(e,t,n){},494:function(e,t,n){n.r(t);var r=n(44),i=n(29),o=n(2),a={name:"plv-dropdown",mixins:[i.a],provide:function(){return{dropdown:this}},props:{visibleArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover",validator:function(e){return-1!==["click","hover"].indexOf(e)}},hideOnClick:{type:Boolean,default:!0},customClass:String},directives:{clickOutSide:r.default},computed:{hoverOpenDelayValue:function(){return o.a.getConfig("Dropdown","hoverOpenDelay")||this.hoverOpenDelay},hoverCloseDelayValue:function(){return o.a.getConfig("Dropdown","hoverCloseDelay")||this.hoverCloseDelay}},data:function(){return{_timer:null}},mounted:function(){var e=this.$refs.reference,t=this.$refs.popper;this.initPopper(e,t)},beforeDestroy:function(){clearTimeout(this._timer)},methods:{emitCommand:function(e){this.hideOnClick&&(this.showPopper=!1),this.$emit("command",e)},handleClickDropdown:function(){"click"===this.trigger&&(this.showPopper=!this.showPopper)},handleMouseEnter:function(){var e=this;"hover"===this.trigger&&(clearTimeout(this._timer),this.hoverOpenDelayValue?this._timer=setTimeout(function(){e.showPopper=!0},this.hoverOpenDelayValue):this.showPopper=!0)},handleMouseLeave:function(){var e=this;"hover"===this.trigger&&(clearTimeout(this._timer),this.hoverCloseDelayValue?this._timer=setTimeout(function(){e.showPopper=!1},this.hoverCloseDelayValue):this.showPopper=!1)},handleClickOutSide:function(){this.showPopper=!1}}},s=(n(588),n(0)),l=Object(s.a)(a,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"click-out-side",rawName:"v-click-out-side",value:e.handleClickOutSide,expression:"handleClickOutSide"}],ref:"reference",staticClass:"plv-dropdown",on:{click:e.handleClickDropdown,mouseenter:e.handleMouseEnter,mouseleave:e.handleMouseLeave}},[e._t("default"),e._v(" "),n("transition",{attrs:{name:"plv-zoom-in-top"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],ref:"popper",staticClass:"plv-dropdown__popper",class:e.customClass,on:{mouseenter:e.handleMouseEnter,mouseleave:e.handleMouseLeave}},[e._t("dropdown")],2)])],2)},[],!1,null,null,null).exports;l.install=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o.a.setConfig("Dropdown","hoverOpenDelay",t.hoverOpenDelay||0),o.a.setConfig("Dropdown","hoverCloseDelay",t.hoverCloseDelay||300),e.component(l.name,l)},t.default=l},5:function(e,t){e.exports=f},58:function(e,t,n){n.r(t);var r=n(41),i=n.n(r);t.default=i.a},588:function(e,t,n){n(355)},70:function(e,t,n){}}).default),Ls||(Ls=1,function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=496)}({0:function(e,t,n){function r(e,t,n,r,i,o,a,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},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 u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,l):[l]}return{exports:e,options:c}}n.d(t,"a",function(){return r})},357:function(e,t,n){},496:function(e,t,n){n.r(t);var r=(n(590),n(0)),i=Object(r.a)({name:"plv-dropdown-menu",provide:function(){return{dropdownMenu:this}}},function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"plv-dropdown-menu"},[this._t("default")],2)},[],!1,null,null,null).exports;i.install=function(e){e.component(i.name,i)},t.default=i},590:function(e,t,n){n(357)}}).default),Ds||(Ds=1,function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=495)}({0:function(e,t,n){function r(e,t,n,r,i,o,a,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},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 u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,l):[l]}return{exports:e,options:c}}n.d(t,"a",function(){return r})},356:function(e,t,n){},495:function(e,t,n){n.r(t);var r={name:"plv-dropdown-item",inject:["dropdown","dropdownMenu"],props:{command:null,disabled:{type:Boolean,default:!1},divided:{type:Boolean,default:!1},label:String},methods:{handleClick:function(){this.disabled||void 0!==this.command&&this.dropdown.emitCommand(this.command)}}},i=(n(589),n(0)),o=Object(i.a)(r,function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",e._g({staticClass:"plv-dropdown-item",class:{"plv-dropdown-item--disabled":e.disabled,"plv-dropdown-item--divided":e.divided},on:{click:e.handleClick}},e.$listeners),[e._t("default",[e._v(e._s(e.label))])],2)},[],!1,null,null,null).exports;o.install=function(e){e.component(o.name,o)},t.default=o},589:function(e,t,n){n(356)}}).default);const js=(e,t)=>{const n=f.computed(()=>{let e=document.body;return f.unref(t)&&(e=f.unref(t)),e});f.watch(()=>[f.unref(e),f.unref(n)],()=>{!function(){const t=f.unref(e),r=f.unref(n);t&&r&&r.appendChild(t)}()},{immediate:!0}),f.onBeforeUnmount(()=>{const t=f.unref(e);t&&t.parentNode&&t.parentNode.removeChild(t)})};function Is(e){return{[`update:${e}`]:()=>!0}}const $s=navigator.userAgent.toLowerCase(),Ns=Re();Ns.os.isAndroid,Ns.os.isIOS,Ns.os.isMacOS,Ns.client.version;const Rs=Ns.client.isWx,zs=Ns.client.isWxWork,Bs=(Rs||zs)&&/miniprogramenv/.test($s);const Fs=function(){const e=navigator.userAgent;return!!/mobile|android/i.test(e)||!/\b(Windows\sNT|Macintosh|x86(_(32|64))?|amd64|i[1-6]86)\b/.test(e)&&"onorientationchange"in window}();Fs&&function(){const e=navigator.userAgent;!!/(?:iPad|PlayBook)/.test(e)||(Ns.os.isAndroid&&!/(?:Mobile)/.test(e)||/(?:Tablet)/.test(e))}();const Vs=(()=>Fs||Bs)();var Ws=(e=>(e.Vertical="Vertical",e.Horizontal="Horizontal",e))(Ws||{});const Hs=(e={})=>{const{autoListen:t=!0,autoListenCb:n=()=>{}}=e,{injectData:r}=Tn(),i=f.ref("Vertical"),o=f.computed(()=>{var e;return null!=(e=r.pageFullscreen)&&e}),a=f.computed(()=>!!Vs&&"Vertical"===i.value),s=f.computed(()=>!!Vs&&(!!o.value||"Horizontal"===i.value));function l(){window.innerWidth<window.innerHeight&&(i.value="Vertical")}function c(){setTimeout(()=>{const e=window.matchMedia("(orientation: portrait)");(null==e?void 0:e.matches)?i.value="Vertical":i.value="Horizontal",l(),n(i.value)},200)}function u(){window.addEventListener("onorientationchange"in window?"orientationchange":"resize",c,!1)}return f.onMounted(()=>{t&&(u(),c())}),f.onBeforeUnmount(()=>{window.removeEventListener("onorientationchange"in window?"orientationchange":"resize",c,!1)}),{screenOrientationMode:i,isVerticalScreenOrientation:a,isHorizontalScreenOrientation:s,pageFullscreen:o,listenOrientationEvent:u,updateScreenOrientationModeManually:function(){180!==window.orientation&&0!==window.orientation||(i.value="Vertical"),90!==window.orientation&&-90!==window.orientation||(i.value="Horizontal"),l()}}},qs=(e=document.documentElement)=>{const{fieldData:t}=(()=>{const e=[{enabledField:"fullscreenEnabled",elementField:"fullscreenElement",requestApiField:"requestFullscreen",exitApiField:"exitFullscreen",fullscreenChangeEvent:"fullscreenchange"},{enabledField:"webkitFullscreenEnabled",elementField:"webkitFullscreenElement",requestApiField:"webkitRequestFullscreen",exitApiField:"webkitExitFullscreen",fullscreenChangeEvent:"webkitfullscreenchange"},{enabledField:"webkitCancelFullScreen",elementField:"webkitCurrentFullScreenElement",requestApiField:"webkitRequestFullScreen",exitApiField:"webkitCancelFullScreen",fullscreenChangeEvent:"webkitfullscreenchange"},{enabledField:"mozFullScreenEnabled",elementField:"mozFullScreenElement",requestApiField:"mozRequestFullScreen",exitApiField:"mozCancelFullScreen",fullscreenChangeEvent:"mozfullscreenchange"},{enabledField:"msFullscreenEnabled",elementField:"msFullscreenElement",requestApiField:"msRequestFullscreen",exitApiField:"msExitFullscreen",fullscreenChangeEvent:"MSFullscreenChange"}];let t;for(let n=0;n<e.length;n++){const r=e[n];if(r.enabledField in document){t=r;break}}return{fieldData:t}})(),n=f.ref(!1),r=f.ref(null),i=f.computed(()=>!!t);function o(){const n=(()=>{if("function"==typeof e){const t=e();return f.unref(t)||document.documentElement}return f.unref(e)||document.documentElement})();t&&n[t.requestApiField]&&n[t.requestApiField]()}function a(){t&&document[t.exitApiField]()}function s(){t&&(document[t.elementField]?n.value=!0:n.value=!1,r.value=document[t.elementField])}return f.onMounted(()=>{t&&(document.addEventListener(t.fullscreenChangeEvent,s),document[t.elementField]&&s())}),f.onBeforeUnmount(()=>{t&&document.removeEventListener(t.fullscreenChangeEvent,s)}),{isFullscreen:n,supportFullscreen:i,requestFullscreen:o,exitFullscreen:a,toggleFullscreen:function(){t&&(document[t.elementField]?a():o())}}},Gs=["bottom","left","right","center"],Ys=Symbol("plv-product-common-popup");at(f.defineComponent({__name:"index",props:{value:bn.bool.def(!1),title:bn.string.def(""),backgroundMode:bn.oneOf(["bg1"]),background:bn.string,closeable:bn.bool.def(!0),fillBody:bn.bool.def(!1),backable:bn.bool.def(!1),headerHeight:bn.string.def("52px"),contentHeightPercent:bn.oneOfType([Boolean,Number]).def(.7),showHeader:bn.bool.def(!0),openEvent:bn.looseString,position:bn.oneOf(Gs),horizontalScreenPosition:bn.oneOf(Gs).def("right"),horizontalScreenClassName:bn.string,width:bn.looseString,appendTo:bn.looseElement,showModal:bn.looseBool,popupConfig:bn.object(),showScrollbar:bn.bool.def(!0),closeOnMask:bn.bool.def(!0),customClose:bn.func(),customBack:bn.func(),enableDynamicHeight:bn.bool.def(!1),dynamicHeightOptions:bn.object()},emits:{input:()=>!0,"after-leave":()=>!0},setup(e,{expose:t,emit:n}){const r=e,{injectData:i}=Tn(),o=f.inject(Ys,{}),{isHorizontalScreenOrientation:a,pageFullscreen:s,screenOrientationMode:l}=Hs(),{isFullscreen:c}=qs(),{dynamicContentHeightPercent:u,handleScroll:p,reset:h}=(e=>{const{initHeightRatio:t=.7,maxHeightRatio:n=.85}=e||{},r=f.ref(0),i=f.ref(0),o=f.ref(null),a=f.computed(()=>Math.min(t+i.value,n)),s=f.computed(()=>i.value+t>=n);return{dynamicContentHeightPercent:a,handleScroll:function(e){null===o.value&&(o.value=requestAnimationFrame(()=>{const t=e.target,n=t.scrollTop,a=t.scrollHeight,l=t.clientHeight;!s.value&&n>r.value&&(i.value+=(n-r.value)/(a-l),r.value=n),o.value=null}))},reset:function(){i.value=0,r.value=0,null!==o.value&&(cancelAnimationFrame(o.value),o.value=null)}}})(r.dynamicHeightOptions);function m(){var e,t,n,i;return null!=(i=null!=(t=r.appendTo)?t:null==(e=r.popupConfig)?void 0:e.appendTo)?i:null==(n=f.unref(null==o?void 0:o.popupConfig))?void 0:n.appendTo}const v=f.computed(()=>{let e=m();if(c.value&&f.unref(i.fullscreenElement)){let t=f.unref(i.fullscreenElement);"string"==typeof t&&(t=document.querySelector(t)||void 0),t&&(e=t)}return e}),g=f.computed(()=>{var e,t,n,i,a;return null==(a=null!=(i=null!=(t=r.showModal)?t:null==(e=r.popupConfig)?void 0:e.showModal)?i:null==(n=f.unref(o.popupConfig))?void 0:n.showModal)||a});function y(){var e,t;let n=r.position||(null==(e=r.popupConfig)?void 0:e.position)||(null==(t=f.unref(o.popupConfig))?void 0:t.position);return n||(n=Vs?"bottom":"center",n)}const x=f.computed(()=>{let e=y();return"bottom"===e&&a.value&&(e=r.horizontalScreenPosition),e}),w=f.computed(()=>{const e=[];return r.fillBody&&e.push("plv-product-common-popup--fill-body"),x.value&&e.push(`plv-product-common-popup--position-${x.value}`),Vs&&e.push("plv-product-common-popup--mobile"),g.value||e.push("plv-product-common-popup--hide-modal"),r.showScrollbar||e.push("plv-product-common-popup--hide-scrollbar"),a.value&&(e.push("plv-product-common-popup--horizontal-screen"),r.horizontalScreenClassName&&e.push(r.horizontalScreenClassName)),s.value&&l.value!==Ws.Horizontal&&e.push("plv-product-common-popup--page-fullscreen"),e}),_=f.computed(()=>{const e={};return v.value&&v.value!==document.body&&(e.position="absolute"),e}),Q=f.computed(()=>{const e={};return r.headerHeight&&(e.height=r.headerHeight),e}),C=f.computed(()=>{var e,t;let n=r.width||(null==(e=r.popupConfig)?void 0:e.width)||(null==(t=f.unref(o.popupConfig))?void 0:t.width);if(n)return n;switch(n="100%",x.value){case"bottom":n="100%";break;case"left":case"right":case"center":n="375px"}return n}),S=f.computed(()=>r.fillBody?"90%":a.value?document.documentElement.clientHeight:r.enableDynamicHeight?document.documentElement.clientHeight*u.value:"number"==typeof r.contentHeightPercent?document.documentElement.clientHeight*r.contentHeightPercent:null),T=f.computed(()=>{const e=[];return r.backgroundMode&&e.push(`plv-product-common-popup__body--${r.backgroundMode}`),e}),E=f.computed(()=>{const e={};return r.background&&(e.background=r.background),C.value&&(e.width=C.value),S.value&&(e.height=`${S.value}px`),e}),O=f.ref(!1),P=f.ref(!1),k=f.ref(),M=f.ref();function A(){return d(this,null,function*(){yield f.nextTick(),k.value&&b.openPopper(k.value)})}function L(){O.value=!0,P.value=!0,A()}function D(){P.value=!1,n("input",!1)}function j(){r.customClose?r.customClose({closeBody:D}):D()}function I(){M.value&&(M.value.scrollTop=0)}return js(k,v),r.openEvent&&((e,t)=>{const{getEmitter:n}=Tn();f.onMounted(()=>{n().on(e,t)}),f.onBeforeUnmount(()=>{n().off(e,t)})})(r.openEvent,()=>{A()}),f.watch(()=>r.value,()=>{r.value?L():D()}),f.onMounted(()=>{r.value&&L()}),t({resetScroll:I}),{__sfc:!0,props:r,emit:n,globalInjectData:i,popupInjectData:o,isHorizontalScreenOrientation:a,pageFullscreen:s,screenOrientationMode:l,isFullscreen:c,dynamicContentHeightPercent:u,handleScroll:p,resetContentHeight:h,getOriginAppendTo:m,popupAppendTo:v,popupShowModal:g,getOriginPosition:y,popupPosition:x,wrapClass:w,wrapStyle:_,headerStyle:Q,bodyWidth:C,bodyHeight:S,bodyClass:T,bodyStyle:E,wrapVisible:O,bodyVisible:P,wrapRef:k,innerRef:M,topicPopup:A,onBodyScroll:function(e){r.enableDynamicHeight&&p(e)},open:L,closeBody:D,close:j,onClickMask:function(){r.closeOnMask&&j()},back:function(){r.customBack?r.customBack({closeBody:D}):D()},onAfterLeave:function(){O.value=!1,n("after-leave"),r.enableDynamicHeight&&h()},resetScroll:I,ProductIconClose:_n,ProductIconArrowLeft:wn}}}),function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t("div",{directives:[{name:"show",rawName:"v-show",value:n.wrapVisible,expression:"wrapVisible"}],ref:"wrapRef",staticClass:"plv-product-common-popup",class:n.wrapClass,style:n.wrapStyle,on:{click:n.onClickMask}},[t("transition",{attrs:{name:"plv-product-common-popup-slide"},on:{"after-leave":n.onAfterLeave}},[t("div",{directives:[{name:"show",rawName:"v-show",value:n.bodyVisible,expression:"bodyVisible"}],staticClass:"plv-product-common-popup__body",class:n.bodyClass,style:n.bodyStyle,on:{click:function(e){e.stopPropagation()}}},[e.showHeader?[e._t("header",function(){return[t("div",{staticClass:"plv-product-common-popup__header",style:n.headerStyle},[e.backable?t(n.ProductIconArrowLeft,{staticClass:"plv-product-common-popup__back",on:{click:function(e){return e.stopPropagation(),n.back.apply(null,arguments)}}}):e._e(),e.title?t("div",{staticClass:"plv-product-common-popup__title"},[e._v(" "+e._s(e.title)+" ")]):e._e(),t("div",{staticClass:"plv-product-common-popup__header-right"},[e._t("header-right",function(){return[e.closeable?t(n.ProductIconClose,{staticClass:"plv-product-common-popup__close",on:{click:n.close}}):e._e()]})],2)],1)]})]:e._e(),t("div",{staticClass:"plv-product-common-popup__content"},[t("div",{ref:"innerRef",staticClass:"plv-product-common-popup__inner",on:{scroll:n.onBodyScroll}},[e._t("default")],2)])],2)])],1)},[]).exports,Symbol("checkbox-group-inject-key");bn.bool.def(!1),bn.bool.def(!1),bn.oneOfType([String,Number,Boolean]),bn.string,bn.bool.def(!1),bn.bool.def(!1),u(c({},Is("checked")),{change:()=>!0}),bn.array();const Xs=()=>{const e=f.getCurrentInstance();function t(){return null==e?void 0:e.proxy}return{getInstance:t,destroyCurrentInstance:function(){var e;null==(e=t())||e.$destroy()},getCurrentElem:function(){const e=t();return null==e?void 0:e.$el},getCurrentChildrens:function(){var e;return null==(e=t())?void 0:e.$children},getSlot:function(e="default"){const n=t();return(null==n?void 0:n.$slots)&&n.$slots[e]||[]}}};var Us=(e=>(e.Default="default",e.Medium="medium",e.Small="small",e))(Us||{});Ni.warning=()=>{};const Zs=((...e)=>e)("inline","header"),Ks=Symbol("FORM_WRAP_PROPS_PROVIDE_KEY"),Js=()=>f.inject(Ks,void 0),el=(Symbol("FORM_WRAP_PROVIDE_KEY"),Symbol("FORM_ITEM_PROVIDE_KEY")),tl=()=>({size:bn.enum(),theme:bn.enum(),validateForm:bn.bool.def(!0)}),nl=e=>{const{props:t}=e,n=f.inject(el,void 0);function r(){return d(this,null,function*(){yield null==n?void 0:n.validateFormItem()})}return{validateCurrentFormItem:r,blurToValidateItem:function(){return d(this,null,function*(){if(t.validateForm)try{yield r()}catch(e){console.error("blur-validate",e.message)}})},focusToRemoveError:function(){t.validateForm&&(null==n||n.removeErrorMessage())},formItemIsError:f.computed(()=>!(!t.validateForm||!n)&&f.unref(n.formItemIsError))}},rl=e=>{const{emit:t,props:n,classPrefix:r}=e,{blurToValidateItem:i,focusToRemoveError:o,formItemIsError:a}=nl({props:n}),{commonClassNames:s}=(e=>{const{props:t,classPrefix:n}=e,r=Js();return{commonClassNames:f.computed(()=>{const e=[],i=t.size;i&&i!==Us.Default&&e.push(`${n}--size-${i}`);const o=t.theme||(null==r?void 0:r.theme);return f.unref(o)&&e.push(`${n}--theme-${o}`),e})}})({props:n,classPrefix:r}),l=f.ref(),c=f.ref(!1),u=f.computed(()=>{const e=[...f.unref(s)];return f.unref(a)&&e.push(`${r}--error`),n.useTextarea&&e.push(`${r}--textarea`),e}),p=f.computed(()=>{var e;if(!n.showWordLimit)return"";const t=`${null!=(e=n.value)?e:""}`.length;return n.maxlength===1/0?`${t}`:`${t}/${n.maxlength}`});const{getInstance:d}=Xs();function h(){var e;null==(e=l.value)||e.focus()}return{inputRef:l,inputClassNames:u,isFocus:c,onInputChanged:function(e){let r=e.target.value;"number"===n.type&&(r=r.slice(0,n.maxlength),l.value&&l.value.setAttribute("value",r)),t("input",r)},onInputBlur:function(){c.value=!1,i(),t("blur",n.value)},onInputFocus:function(){c.value=!0,o(),t("focus",n.value)},onInputEnter:function(){t("enter",n.value)},clearValue:function(){t("input",""),h()},formInstance:{forceUpdate:function(){const e=d();null==e||e.$forceUpdate()},focusInput:h,blurInput:function(){var e;null==(e=l.value)||e.blur()}},wordLimitText:p}};at(f.defineComponent({__name:"form-input",props:u(c({},tl()),{readonly:bn.bool.def(!1),disabled:bn.bool.def(!1),value:bn.oneOfType([String,Number]).def(""),type:bn.string.def("text"),placeholder:bn.string.def(""),maxlength:bn.number.def(1/0),showWordLimit:bn.bool.def(!1),suffixText:bn.string.def(""),clearable:bn.bool.def(!1),useTextarea:bn.bool.def(!1),rows:bn.number.def(4),inputTitle:bn.string.def(""),inputTitleWidth:bn.number.def(void 0)}),emits:{input:()=>!0,blur:()=>!0,focus:()=>!0,enter:()=>!0},setup(e,{expose:t,emit:n}){const r=e,{value:i,type:o,placeholder:a,maxlength:s,inputTitle:l}=yn(r),{inputRef:c,inputClassNames:u,onInputChanged:p,onInputBlur:d,onInputFocus:f,formInstance:h,wordLimitText:m,clearValue:v,isFocus:g}=rl({props:r,emit:n,classPrefix:"plv-product-form-input"});return t(h),{__sfc:!0,emit:n,props:r,value:i,type:o,placeholder:a,maxlength:s,inputTitle:l,inputRef:c,inputClassNames:u,onInputChanged:p,onInputBlur:d,onInputFocus:f,formInstance:h,wordLimitText:m,clearValue:v,isFocus:g,ProductIconCloseRoundFill:Qn}}}),function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t("div",{staticClass:"plv-product-form-input",class:n.inputClassNames},[t("div",{staticClass:"plv-product-form-input__main",class:{"plv-product-form-input__main--has-title":n.inputTitle}},[e._t("prefix"),t("div",{staticClass:"plv-product-form-input__input"},[e.useTextarea?t("textarea",{ref:"inputRef",staticClass:"plv-product-form-input__input-inner",attrs:{type:n.type,placeholder:n.placeholder,maxlength:n.maxlength,disabled:e.disabled,readonly:e.readonly,rows:e.rows},domProps:{value:n.value},on:{input:n.onInputChanged,blur:n.onInputBlur,focus:n.onInputFocus}}):t("input",{ref:"inputRef",staticClass:"plv-product-form-input__input-inner",attrs:{type:n.type,placeholder:n.placeholder,maxlength:n.maxlength,disabled:e.disabled,readonly:e.readonly},domProps:{value:n.value},on:{input:n.onInputChanged,blur:n.onInputBlur,focus:n.onInputFocus}})]),t("div",{staticClass:"plv-product-form-input__suffix"},[e.clearable&&n.value&&n.isFocus?[t(n.ProductIconCloseRoundFill,{staticClass:"plv-product-form-input__clearable",nativeOn:{touchstart:function(e){return n.clearValue.apply(null,arguments)}}})]:e._e(),e._t("suffix",function(){return[e.suffixText?t("span",{staticClass:"plv-product-form-input__suffix-text"},[e._v(" "+e._s(e.suffixText)+" ")]):n.wordLimitText?t("span",{staticClass:"plv-product-form-input__suffix-text"},[e._v(" "+e._s(n.wordLimitText)+" ")]):e._e()]})],2)],2)])},[]).exports;var il,ol;ol||(ol=1,il=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=60)}([function(e,t,n){function r(e,t,n,r,i,o,a,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},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 u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,l):[l]}return{exports:e,options:c}}n.d(t,"a",function(){return r})},,function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(22)();e.exports=r;try{regeneratorRuntime=r}catch(i){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){var r=n(26),i=n(19),o=n(13),a=n(27);e.exports=function(e){return r(e)||i(e)||o(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},,function(e,t,n){n.d(t,"a",function(){return c});var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(10),l=n.n(s).a.prototype.$isServer,c=new(a()(function e(t){i()(this,e),this.configKey=t.configKey},[{key:"getGlobalConfig",value:function(){return l?{}:(window[this.configKey]||(window[this.configKey]={}),window[this.configKey])}},{key:"getCompConfig",value:function(e){var t=this.getGlobalConfig();return t[e]||(t[e]={}),t[e]}},{key:"getConfig",value:function(e,t,n){var r=this.getCompConfig(e)[t];return void 0===r&&(r=n),r}},{key:"setCompConfig",value:function(e,t){this.getGlobalConfig()[e]=t}},{key:"setConfig",value:function(e,t,n){this.getCompConfig(e)[t]=n}}]))({configKey:"@@polyv-ui-admin-config"})},function(e,t){function n(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,i)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,l,"next",e)}function l(e){n(a,i,o,s,l,"throw",e)}s(void 0)})}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(20);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=f},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(20);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}e.exports=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(9);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(16);function i(){
77
77
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
78
- var t,n,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.toStringTag||"@@toStringTag";function l(e,i,o,a){var s=i&&i.prototype instanceof u?i:u,l=Object.create(s.prototype);return r(l,"_invoke",function(e,r,i){var o,a,s,l=0,u=i||[],p=!1,d={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,n){return o=e,a=0,s=t,d.n=n,c}};function f(e,r){for(a=e,s=r,n=0;!p&&l&&!i&&n<u.length;n++){var i,o=u[n],f=d.p,h=o[2];e>3?(i=h===r)&&(s=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=f&&((i=e<2&&f<o[1])?(a=0,d.v=r,d.n=o[1]):f<h&&(i=e<3||o[0]>r||r>h)&&(o[4]=e,o[5]=r,d.n=h,a=0))}if(i||e>1)return c;throw p=!0,r}return function(i,u,h){if(l>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,h),a=u,s=h;(n=a<2?t:s)||!p;){o||(a?a<3?(a>1&&(d.n=-1),f(a,s)):d.n=s:d.v=s);try{if(l=2,o){if(a||(i="next"),n=o[i]){if(!(n=n.call(o,s)))throw TypeError("iterator result is not an object");if(!n.done)return n;s=n.value,a<2&&(a=0)}else 1===a&&(n=o.return)&&n.call(o),a<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((n=(p=d.n<0)?s:e.call(r,d))!==c)break}catch(m){o=t,a=1,s=m}finally{l=1}}return{value:n,done:p}}}(e,o,a),!0),l}var c={};function u(){}function p(){}function d(){}n=Object.getPrototypeOf;var f=[][a]?n(n([][a]())):(r(n={},a,function(){return this}),n),h=d.prototype=u.prototype=Object.create(f);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,r(e,s,"GeneratorFunction")),e.prototype=Object.create(h),e}return p.prototype=d,r(h,"constructor",d),r(d,"constructor",p),p.displayName="GeneratorFunction",r(d,s,"GeneratorFunction"),r(h),r(h,s,"Generator"),r(h,a,function(){return this}),r(h,"toString",function(){return"[object Generator]"}),(e.exports=i=function(){return{w:l,m:m}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(t,r,i,o){var a=Object.defineProperty;try{a({},"",{})}catch(s){a=0}e.exports=n=function(e,t,r,i){if(t)a?a(e,t,{value:r,enumerable:!i,configurable:!i,writable:!i}):e[t]=r;else{var o=function(t,r){n(e,t,function(e){return this._invoke(t,r,e)})};o("next",0),o("throw",1),o("return",2)}},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,r,i,o)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(15),i=n(18);e.exports=function(e,t,n,o,a){return new i(r().w(e,t,n,o),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(14),i=n(16);e.exports=function e(t,n){function o(e,i,a,s){try{var l=t[e](i),c=l.value;return c instanceof r?n.resolve(c.v).then(function(e){o("next",e,a,s)},function(e){o("throw",e,a,s)}):n.resolve(c).then(function(e){l.value=e,a(l)},function(e){return o("throw",e,a,s)})}catch(u){s(u)}}var a;this.next||(i(e.prototype),i(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),i(this,"_invoke",function(e,t,r){function i(){return new n(function(t,n){o(e,r,t,n)})}return a=a?a.then(i,i):i()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(2).default,i=n(29);e.exports=function(e){var t=i(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){n.d(t,"a",function(){return o});var r=n(28),i=n.n(r),o="__polyvUILangKey";function a(e,t,n){return n.replace(new RegExp("\\${"+e+"}","g"),t)}t.b={inject:{configProvider:{default:null}},computed:{$currentLocale:function(){var e=this.configProvider;return e&&e.locale},$currentLang:function(){return this.$currentLocale&&this.$currentLocale.$lang?this.$currentLocale.$lang:"zh_CN"}},methods:{$uiLang:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.configProvider,i=null;r&&r.locale?i=r.locale:window[o]&&(i=window[o]);var s="";if(s=i&&i[e]?i[e]:t,n)for(var l=0,c=Object.keys(n);l<c.length;l++){var u=c[l];s=a(u,n[u],s)}return s},shortNumber:function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"w",n={w:1e4,k:1e3}[t];if(e>=n){var r=(e/n).toFixed(1),o=r.split("."),a=i()(o,2),s=a[0],l=a[1];return(r=0===Number(l)?s:r)+t}return e.toString()}(e,"zh_CN"===this.$currentLang?"w":"k")}}}},function(e,t,n){var r=n(14),i=n(15),o=n(23),a=n(17),s=n(18),l=n(24),c=n(25);function u(){var t=i(),n=t.m(u),p=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function d(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))}var f={throw:1,return:2,break:3,continue:3};function h(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,f[e],t)},delegateYield:function(e,i,o){return t.resultName=i,n(r.d,c(e),o)},finish:function(e){return n(r.f,e)}},n=function(e,n,i){r.p=t.prev,r.n=t.next;try{return e(n,i)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(e.exports=u=function(){return{wrap:function(e,n,r,i){return t.w(h(e),n,r,i&&i.reverse())},isGeneratorFunction:d,mark:t.m,awrap:function(e,t){return new r(e,t)},AsyncIterator:s,async:function(e,t,n,r,i){return(d(t)?a:o)(h(e),t,n,r,i)},keys:l,values:c}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=u,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(17);e.exports=function(e,t,n,i,o){var a=r(e,t,n,i,o);return a.next().then(function(e){return e.done?e.value:a.next()})},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(2).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(r(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(9);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(30),i=n(36),o=n(13),a=n(31);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(2).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.$scopedSlots[t],i=e.$slots[t];return r?r(n):i||null}n.d(t,"b",function(){return r}),t.a={props:{slotName:{type:String,default:"default"},scopedData:Object,target:Object,className:[String,Array],tagName:{type:String,default:"div"}},computed:{renderSlot:function(){var e=this.slotName,t=this.target.$scopedSlots[e],n=this.target.$slots[e];return t||n?function(e,r){return t?t(r):n}:function(){}}},render:function(){return(0,arguments[0])(this.tagName,{class:this.className},[this.renderSlot(this.$createElement,this.scopedData)])}}},,,function(e,t){var n=Object.prototype.hasOwnProperty,r=t.extend=Object.assign||function(e){if(null==e)throw new Error("target cannot be null");for(var t,r,i=0,o=arguments.length;++i<o;)if(null!=(r=arguments[i]))for(t in r)n.call(r,t)&&(e[t]=r[t]);return e},i=Object.prototype.toString,o=t.isFunction=function(e){return"[object Function]"===i.call(e)};t.isDate=function(e){return"[object Date]"===i.call(e)},t.isObject=function(e){return"[object Object]"===i.call(e)},t.isEmptyObject=function(e){if(null!=e)for(var t in e)if(n.call(e,t))return!1;return!0},t.each=function(e,t){if(null!=e){var r,i=e.length;if(void 0===i||o(e)){for(r in e)if(n.call(e,r)&&!1===t.call(e[r],e[r],r))break}else for(r=-1;++r<i&&!1!==t.call(e[r],e[r],r););}return e},t.toArray=function(e){var t;try{t=Array.prototype.slice.call(e)}catch(r){t=[];for(var n=e.length;n;)t[--n]=e[n]}return t},t.mergeArray=function(e,t){for(var n=t.length,r=e.length,i=0;i<n;)e[r++]=t[i++];return e.length=r,e},t.randomStr=function(e){var t="";do{t+=Math.random().toString(36).substr(2)}while(t.length<10);return t=t.substr(0,10)+("00000"+Math.abs(new Date)).slice(-6),e&&(t=e+t),t},t.createClass=function(e,t,i,o){var a=i?function(){i.apply(this,o?"function"==typeof o?o.apply(this,arguments):o:arguments),e.apply(this,arguments)}:function(){e.apply(this,arguments)};if(i){var s=function(){};s.prototype=i.prototype,a.prototype=new s,a.prototype.constructor=a,r(a,i)}if(t)for(var l in t)n.call(t,l)&&(a.prototype[l]=t[l]);return a}},function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},,,,,,,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"==typeof window&&(n=window)}e.exports=n},,,,,,,,,,,,,function(e,t,n){var r=n(30),i=n(19),o=n(13),a=n(31);e.exports=function(e){return r(e)||i(e)||o(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function r(e,t,r,i,o,a){return n((s=n(n(t,e),n(i,a)))<<(l=o)|s>>>32-l,r);var s,l}function i(e,t,n,i,o,a,s){return r(t&n|~t&i,e,t,o,a,s)}function o(e,t,n,i,o,a,s){return r(t&i|n&~i,e,t,o,a,s)}function a(e,t,n,i,o,a,s){return r(t^n^i,e,t,o,a,s)}function s(e,t,n,i,o,a,s){return r(n^(t|~i),e,t,o,a,s)}e.exports=function(e){return function(e){for(var t,n="",r=0;r<e.length;r++)t=e.charCodeAt(r),n+="0123456789abcdef".charAt(t>>>4&15)+"0123456789abcdef".charAt(15&t);return n}(function(e){return function(e){for(var t="",n=0;n<32*e.length;n+=8)t+=String.fromCharCode(e[n>>5]>>>n%32&255);return t}(function(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var r=1732584193,l=-271733879,c=-1732584194,u=271733878,p=0;p<e.length;p+=16){var d=r,f=l,h=c,m=u;r=i(r,l,c,u,e[p+0],7,-680876936),u=i(u,r,l,c,e[p+1],12,-389564586),c=i(c,u,r,l,e[p+2],17,606105819),l=i(l,c,u,r,e[p+3],22,-1044525330),r=i(r,l,c,u,e[p+4],7,-176418897),u=i(u,r,l,c,e[p+5],12,1200080426),c=i(c,u,r,l,e[p+6],17,-1473231341),l=i(l,c,u,r,e[p+7],22,-45705983),r=i(r,l,c,u,e[p+8],7,1770035416),u=i(u,r,l,c,e[p+9],12,-1958414417),c=i(c,u,r,l,e[p+10],17,-42063),l=i(l,c,u,r,e[p+11],22,-1990404162),r=i(r,l,c,u,e[p+12],7,1804603682),u=i(u,r,l,c,e[p+13],12,-40341101),c=i(c,u,r,l,e[p+14],17,-1502002290),r=o(r,l=i(l,c,u,r,e[p+15],22,1236535329),c,u,e[p+1],5,-165796510),u=o(u,r,l,c,e[p+6],9,-1069501632),c=o(c,u,r,l,e[p+11],14,643717713),l=o(l,c,u,r,e[p+0],20,-373897302),r=o(r,l,c,u,e[p+5],5,-701558691),u=o(u,r,l,c,e[p+10],9,38016083),c=o(c,u,r,l,e[p+15],14,-660478335),l=o(l,c,u,r,e[p+4],20,-405537848),r=o(r,l,c,u,e[p+9],5,568446438),u=o(u,r,l,c,e[p+14],9,-1019803690),c=o(c,u,r,l,e[p+3],14,-187363961),l=o(l,c,u,r,e[p+8],20,1163531501),r=o(r,l,c,u,e[p+13],5,-1444681467),u=o(u,r,l,c,e[p+2],9,-51403784),c=o(c,u,r,l,e[p+7],14,1735328473),r=a(r,l=o(l,c,u,r,e[p+12],20,-1926607734),c,u,e[p+5],4,-378558),u=a(u,r,l,c,e[p+8],11,-2022574463),c=a(c,u,r,l,e[p+11],16,1839030562),l=a(l,c,u,r,e[p+14],23,-35309556),r=a(r,l,c,u,e[p+1],4,-1530992060),u=a(u,r,l,c,e[p+4],11,1272893353),c=a(c,u,r,l,e[p+7],16,-155497632),l=a(l,c,u,r,e[p+10],23,-1094730640),r=a(r,l,c,u,e[p+13],4,681279174),u=a(u,r,l,c,e[p+0],11,-358537222),c=a(c,u,r,l,e[p+3],16,-722521979),l=a(l,c,u,r,e[p+6],23,76029189),r=a(r,l,c,u,e[p+9],4,-640364487),u=a(u,r,l,c,e[p+12],11,-421815835),c=a(c,u,r,l,e[p+15],16,530742520),r=s(r,l=a(l,c,u,r,e[p+2],23,-995338651),c,u,e[p+0],6,-198630844),u=s(u,r,l,c,e[p+7],10,1126891415),c=s(c,u,r,l,e[p+14],15,-1416354905),l=s(l,c,u,r,e[p+5],21,-57434055),r=s(r,l,c,u,e[p+12],6,1700485571),u=s(u,r,l,c,e[p+3],10,-1894986606),c=s(c,u,r,l,e[p+10],15,-1051523),l=s(l,c,u,r,e[p+1],21,-2054922799),r=s(r,l,c,u,e[p+8],6,1873313359),u=s(u,r,l,c,e[p+15],10,-30611744),c=s(c,u,r,l,e[p+6],15,-1560198380),l=s(l,c,u,r,e[p+13],21,1309151649),r=s(r,l,c,u,e[p+4],6,-145523070),u=s(u,r,l,c,e[p+11],10,-1120210379),c=s(c,u,r,l,e[p+2],15,718787259),l=s(l,c,u,r,e[p+9],21,-343485551),r=n(r,d),l=n(l,f),c=n(c,h),u=n(u,m)}return Array(r,l,c,u)}(function(e){for(var t=Array(e.length>>2),n=0;n<t.length;n++)t[n]=0;for(n=0;n<8*e.length;n+=8)t[n>>5]|=(255&e.charCodeAt(n/8))<<n%32;return t}(e),8*e.length))}(function(e){for(var t,n,r="",i=-1;++i<e.length;)t=e.charCodeAt(i),n=i+1<e.length?e.charCodeAt(i+1):0,55296<=t&&t<=56319&&56320<=n&&n<=57343&&(t=65536+((1023&t)<<10)+(1023&n),i++),t<=127?r+=String.fromCharCode(t):t<=2047?r+=String.fromCharCode(192|t>>>6&31,128|63&t):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|63&t):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|63&t));return r}(e)))}},function(e,t,n){var r=n(35),i=n(66),o=n(69),a=n(70),s=window,l=s.document,c=l.head||l.getElementsByTagName("head")[0];function u(){var e=new Error("Request cancelled");return e.isAJAXCancel=!0,e}function p(){var e=new Error("Request timeout");return e.isAJAXTimeout=!0,e}function d(e){return function(t,n){(n="function"==typeof n?{onload:n}:r.extend({},n)).timeout&&(n.timeout=o.parse(n.timeout));var i=r.extend({},n.data);n.nocache&&(i._=+new Date);for(var s=[t=a.append(t,i,{ignoreEmpty:!0}),n],l=2;l<arguments.length;l++)s.push(arguments[l]);return e.apply(this,s)}}var f="onload"in l.createElement("script")?"onload":"onreadystatechange",h=t.getScript=d(function(e,t,n){return new i(function(i,o){var a,d,h;function m(){a&&(h||!a.readyState||/loaded|complete/.test(a.readyState))&&(a[f]=a.onerror=null,c.removeChild(a),a=null,d&&clearTimeout(d),n&&(window[n]=null),h||i())}function v(e){!h&&a&&(h=!0,m(),e&&o(e()))}n&&(s[n]=function(){h||i(r.toArray(arguments))}),a=l.createElement("script"),t.charset&&(a.charset=t.charset),a.async=!0,a[f]=a.onerror=m,a.src=e,c.firstChild?c.insertBefore(a,c.firstChild):c.appendChild(a),t.receiveCancel&&t.receiveCancel.call(s,function(){v(u)});var g=Number(t.timeout);g>0&&(d=setTimeout(function(){v(p)},g))})}),m=t.jsonp=function(e,t){var n;t=r.extend({},t);var c,d,f,m="POST"===String(t.method).toUpperCase();return/[?&]callback=([^&]+)/.test(e)?n=RegExp.$1:(n=t.callbackName||function(e){var t=l.createElement("a");t.href=e;var n=t.pathname.split("/");n=(n[n.length-1]||"index").replace(/\.\w+$/,"");for(var r="jsonp_callback_"+(t.host+"_"+n).replace(/\W+/g,""),i=r,o=1;void 0!==s[i];)i=r+"_"+o++;return i}(e),m||(e=a.append(e,{callback:n}))),m?(c=e,d=t,f=n,new i(function(e,t){var n,i,a,h;function m(){n&&(i.removeEventListener?i.removeEventListener("load",m,!1):i.detachEvent&&i.detachEvent("onload",m),n.parentNode&&n.parentNode.removeChild(n),n=i=null,a&&clearTimeout(a),f&&(window[f]=null),h||e())}function v(e){!h&&n&&(h=!0,m(),e&&t(e()))}f&&(s[f]=function(){h||e(r.toArray(arguments))}),(n=l.createElement("div")).style.display="none";var g=r.randomStr("form-target-");n.innerHTML='<form action="'+c+'" target="'+g+'" method="post"><input type="hidden" name="callback" value="'+f+'" /></form><iframe name="'+g+'" id="'+g+'"></iframe>';var b=n.firstChild;r.each(d.data,function e(t,n){Array.isArray(t)&&t.forEach(function(t){e(t,n)});var r=l.createElement("input");r.type="hidden",r.name=n,r.value=t,b.appendChild(r)});var y=l.body;y.firstChild?y.insertBefore(n,y.firstChild):y.appendChild(n),b.submit(),(i=b.nextSibling).addEventListener?i.addEventListener("load",m,!1):i.attachEvent&&i.attachEvent("onload",m),d.receiveCancel&&d.receiveCancel.call(s,function(){v(u)});var x=Number(o.parse(d.timeout||0));x>0&&(a=setTimeout(function(){v(p)},x))})):h(e,t,n)};t.getImage=d(function(e){return new i(function(t,n){var r=new Image;r.onload=function(){t(e)},r.onabort=r.onerror=function(){n(new Error("Failed to load image"))},r.src=e}).finally(function(){})});var v=t.createXHR=s.XMLHttpRequest?function(){return new s.XMLHttpRequest}:function(){return new s.ActiveXObject("Microsoft.XMLHTTP")},g=/(?:^|;\s*)(?:application|text)\/([a-z]+)/i;t.send=function(e,t){"string"!=typeof e&&(e=(t=e).url),t=t||{};var n=String(t.responseType||t.dataType||"").toLowerCase();return"jsonp"===n?m(e,t):new i(function(i,c){var d,f,h=v();function m(e){f||4===h.readyState||(f=!0,h.abort(),e&&c(e()))}function b(){if(!f){var e=h.readyState,t=4===e?h.status:0;if(4===e&&t){var r,o,a;switch(d&&clearTimeout(d),n=n||function(e){if(g.test(e))return RegExp.$1.toLowerCase()}(h.getResponseHeader("Content-Type"))){case"json":var s=(h.responseText||"").trim();if(s)try{r=JSON.parse(s)}catch(l){o="Invalid JSON format"}break;case"xml":(r=h.responseXML)&&r.documentElement||(o="Invalid XML format");break;default:r=h.responseText}t>=200&&t<300||1223===t||304===t?o&&(a=new Error(o)):((a=new Error("Error (HTTP status code: "+t+")")).code=t,a.data=r),a?c(a):i(r)}}}var y,x=(t.method||"GET").toUpperCase(),w="boolean"!=typeof t.async||t.async,_=t.data,Q=t.headers||{},C=String(t.requestType||"form").toLowerCase();if(_&&("GET"===x||"DELETE"===x?(e=a.append(e,_,{ignoreEmpty:!0}),_=null):("json"===C?(_=JSON.stringify(_),y="application/json; charset=utf-8"):"string"!=typeof _&&(_=a.stringify(_,{ignoreEmpty:!0}),y="application/x-www-form-urlencoded; charset=utf-8"),Q["Content-Type"]=Q["Content-Type"]||y)),t.nocache&&(e=a.append(e,{_:+new Date})),w){var S=Number(o.parse(t.timeout||0));S>0&&(d=setTimeout(function(){m(p)},S)),h.onreadystatechange=b,"onerror"in h&&(h.onerror=function(){d&&clearTimeout(d),f=!0,c(new Error("Network error"))})}t.username?h.open(x,e,w,t.username,t.password):h.open(x,e,w),function(e){var t=l.createElement("div");t.innerHTML='<a href="'+e+'"></a>';var n=t.firstChild;n.href=n.href;var r=n.host!==s.location.host;return t=n=null,r}(e)&&(h.withCredentials=!!t.withCredentials),r.each(Q,function(e,t){h.setRequestHeader(t,e)}),t.beforeSend&&t.beforeSend.call(s,h),h.send(_||""),t.receiveCancel&&t.receiveCancel.call(s,function(){m(u)}),w||b.call(h)})},t.serializeForm=function(e){if("nodeType"in e||"function"!=typeof e.get||(e=e.get(0)),"FORM"!==e.tagName)throw new Error("Form must be an HTML form element");var t,n,r,i,o={},a=e.elements,s=a.length;for(t=0;t<s;t++)r=(n=a[t]).name,!n.disabled&&r&&("INPUT"!==n.tagName||"radio"!==n.type&&"checkbox"!==n.type||n.checked)&&(i="password"===n.type?n.value:n.value.trim(),o.hasOwnProperty(r)?(Array.isArray(o[r])||(o[r]=[o[r]]),o[r].push(i)):o[r]=i);return o}},,function(e,t,n){n.r(t),n(65);var r=n(7),i=n.n(r),o=n(3),a=n.n(o),s=n(8),l=n.n(s),c=n(4),u=n.n(c),p=n(56),d=n.n(p);function f(e,t){var n=[],r=d()(e),i=r[0],o=r.slice(1);if(void 0===i)return n;var a=t.find(function(e){return e.code===i||e.name===i});return a&&(n=[a]),Array.isArray(a.childrens)&&(n=[].concat(u()(n),u()(f(o,a.childrens)))),n}var h=n(32);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(n,!0).forEach(function(t){l()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var g={name:"plv-cascader-picker-core",data:function(){return{dimension:0}},props:{value:{type:Array,default:function(){return[]},validator:function(e){return Array.isArray(e)}},data:{type:Array,default:function(){return[]},validator:function(e){return Array.isArray(e)}},tabList:{type:Array,default:function(){return[]},validator:function(e){return Array.isArray(e)}},wrapClass:String,tabWrapClass:String,tabItemClass:String,tabItemSelectedClass:String,listClass:String,listItemClass:String,listItemSelectedClass:String},computed:{tabListData:function(){var e=u()(this.tabList);return f(this.value,this.data).forEach(function(t,n){n<e.length&&(e[n]=t.name)}),e},listData:function(){var e=[],t=f(this.value,this.data);if(0===this.dimension)e=u()(this.data);else{var n=t[this.dimension-1];Array.isArray(n&&n.childrens)&&(e=u()(n.childrens))}return e.map(function(e){var n=e.code,r=t.findIndex(function(e){return e.code===n});return v(v({},e),{},{selected:-1!==r})})},isFinish:function(){var e=f(this.value,this.data),t=e[e.length-1]||{};return e.length&&(!t.childrens||!t.childrens.length)||this.tabList.length&&this.tabList.length<=e.length}},methods:{handleTabClick:function(e){var t=this,n=f(this.value,this.data)[e-1];(0===e||Array.isArray(n&&n.childrens))&&(this.dimension=e),setTimeout(function(){t.$emit("handleUpdatePopper")})},handleListClick:function(e){var t=this,n=u()(this.value);n[this.dimension]=e.code,n=n.slice(0,this.dimension+1),this.$emit("input",n),this.$nextTick(function(){t.isFinish?t.$emit("finish"):t.dimension+=1}),setTimeout(function(){t.$emit("handleUpdatePopper")})}},render:function(){var e=this,t=arguments[0];return t("div",{class:this.wrapClass},[t("div",{class:this.tabWrapClass},[this.tabListData.map(function(n,r){var i=[e.tabItemClass];return r===e.dimension&&i.push(e.tabItemSelectedClass),t("div",{class:i,on:{click:function(){return e.handleTabClick(r)}}},[n])})]),t("div",{class:this.listClass},[this.listData.map(function(n){var r=[e.listItemClass];n.selected&&r.push(e.listItemSelectedClass);var i={label:n.name,selected:n.selected};return t("div",{class:r,on:{click:function(){return e.handleListClick(n)}}},[Object(h.b)(e,"item",i)])})])])},getSelectData:f,isSelectFinish:function(e,t){var n=f(e,t),r=n[n.length-1]||{};return n.length&&(!r.childrens||!r.childrens.length)},install:function(e){e.component(g.name,g)}},b=g,y=n(6),x=n(57),w=n.n(x),_=n(58),Q={md5:w.a,ajax:_.send},C={};function S(e){var t=e||y.a.getConfig("AreaPicker","areaDataUrl")||"https://s4.videocc.net/library/china-area/china-area-20200630.json";return C[t]||(C[t]=new Promise(function(e){i()(a.a.mark(function n(){var r;return a.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,Q.ajax({url:t});case 1:r=n.sent,e(r);case 2:case"end":return n.stop()}},n)}))()})),C[t]}var T={props:{value:{type:Array,default:function(){return[]},validator:function(e){return Array.isArray(e)}},areaData:{type:Array,default:function(){return[]}},areaDataUrl:{type:String,default:""},precision:{type:String,default:"area",validator:function(e){return-1!==["","area","city","province"].indexOf(e)}},placeholder:{type:String,default:"请选择省市区"}},methods:{loadAreaDataUrl:function(){return S(this.areaDataUrl)}},loadAreaDataUrl:S},E={name:"plv-area-picker-core",mixins:[T,n(21).b],components:{PlvCascaderPickerCore:b},methods:{handleSelectChange:function(e){this.$emit("input",e)},handleSelectFinish:function(){this.$emit("finish")},handleUpdatePopper:function(){this.$emit("handleUpdatePopper")}},computed:{tabList:function(){var e=[this.$uiLang("areaPicker.province","省份"),this.$uiLang("areaPicker.city","城市"),this.$uiLang("areaPicker.area","地区")];switch(this.precision){case"province":return e.slice(0,1);case"city":return e.slice(0,2);case"area":return e.slice(0,3)}return e}},getSelectData:b.getSelectData,isSelectFinish:b.isSelectFinish,loadAreaDataUrl:S},O=n(0),P={name:"plv-area-picker-mob",mixins:[T],components:{PlvAreaPickerCore:Object(O.a)(E,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"plv-area-picker__popper"},[n("plv-cascader-picker-core",{staticClass:"plv-area-picker__popper__inner",attrs:{"tab-wrap-class":"plv-area-picker__tab","tab-item-class":"plv-area-picker__tab__item","tab-item-selected-class":"plv-area-picker__tab__item--selected","list-class":"plv-area-picker__list","list-item-class":"plv-area-picker__list__item","list-item-selected-class":"plv-area-picker__list__item--selected","tab-list":e.tabList,value:e.value,data:e.areaData},on:{input:e.handleSelectChange,handleUpdatePopper:e.handleUpdatePopper,finish:e.handleSelectFinish},scopedSlots:e._u([{key:"item",fn:function(t){return n("div",{staticClass:"plv-area-picker__list__item__inner"},[e._t("item",[e._v(e._s(t.label))],null,t)],2)}}],null,!0)})],1)},[],!1,null,null,null).exports},data:function(){return{realAreaData:[]}},watch:{areaData:{immediate:!0,handler:function(){var e=this;return i()(a.a.mark(function t(){return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==e.areaData.length){t.next=2;break}return t.next=1,e.loadAreaDataUrl();case 1:e.realAreaData=t.sent,t.next=3;break;case 2:e.realAreaData=e.areaData;case 3:case"end":return t.stop()}},t)}))()}}},methods:{handleInput:function(e){this.$emit("input",e)},handleFinish:function(){this.$emit("finish")}},getSelectData:b.getSelectData,isSelectFinish:b.isSelectFinish,loadAreaDataUrl:S},k=Object(O.a)(P,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"plv-area-picker-mob"},[n("plv-area-picker-core",{attrs:{value:e.value,"area-data":e.realAreaData},on:{input:e.handleInput,finish:e.handleFinish},scopedSlots:e._u([{key:"item",fn:function(t){return n("div",{staticClass:"plv-area-picker-mob__area__item__inner"},[n("span",[e._v(e._s(t.label))]),e._v(" "),n("span",{staticClass:"plv-front-mob-icon-check"})])}}])})],1)},[],!1,null,null,null).exports;k.install=function(e){e.component(k.name,k)},t.default=k},,,,,function(e,t,n){},function(e,t,n){(function(t){var r;void 0!==t?r=t.Promise:"undefined"!=typeof window&&(r=window.Promise),(r=n(r?67:68)).series=function(e){return e.length?e.slice(1).reduce(function(e,t){return e.then(function(e){return t(e)})},e[0]()):r.resolve()},r.delay=function(e){return new r(function(t){setTimeout(t,e)})},e.exports=r}).call(this,n(43))},function(e,t,n){var r=n(35).createClass(function(e){this._promise=new Promise(e)},{then:function(e,t){var n=this;return new r(function(r){r(n._promise.then(e,t))})},spread:function(e,t){var n=this;return new r(function(r){r(n._promise.then(function(t){return e.apply(this,t)},t))})},catch:function(e){var t=this;return new r(function(n){n(t._promise.catch(e))})},finally:function(e){var t=this;return new r(function(n,r){t._promise.then(function(t){e.apply(this,arguments),n(t)},function(t){e.apply(this,arguments),r(t)})})}});["all","race","reject","resolve"].forEach(function(e){r[e]=Promise[e]}),e.exports=r},function(e,t,n){var r=n(35),i="undefined"!=typeof console&&"function"==typeof console.error?function(e){console.error("Uncaught (in promise) %o",e)}:function(e){throw e};function o(e,t,n){var r;(r=e)&&"function"==typeof r.then?e.then(t,n):t(e)}var a=r.createClass(function(e){if("function"!=typeof e)throw new Error("Executor must be a function");var t=this;function n(e){t._settle(2,e)}t._status=0,t._pendings={};try{e(function(e){o(e,function(e){t._settle(1,e)},n)},n)}catch(r){n(r)}},{_settle:function(e,t){var n=this;0===n._status&&(n._status=e,n._value=t,setTimeout(function(){if(2!==n._status||n._hasRejectedHandler){var r=n._pendings[e];r&&r.forEach(function(e){e(t)}),delete n._pendings}else i(t)},0))},_listen:function(e,t){var n=this;2===e&&(n._hasRejectedHandler=!0),n._pendings?(n._pendings[e]=n._pendings[e]||[],n._pendings[e].push(t)):n._status===e&&setTimeout(function(){t(n._value)},0)},_then:function(e,t,n){var r=this;return new a(function(i,a){r._listen(1,function(){var t=r._value;if(e)try{t=n&&Array.isArray(t)?e.apply(this,t):e.call(this,t)}catch(s){return void a(s)}o(t,i,a)}),r._listen(2,function(){var e=r._value;if(t){try{e=t.call(this,e)}catch(n){return void a(n)}o(e,i,a)}else a(e)})})},then:function(e,t){return this._then(e,t)},spread:function(e){return this._then(e,null,!0)},catch:function(e){return this.then(null,e)},finally:function(e){var t=this;return new a(function(n,r){function i(){var i,o=t._value;switch(t._status){case 1:i=function(){n(o)};break;case 2:i=function(){r(o)}}if(e)try{e()}catch(a){return void r(a)}i&&i()}t._listen(1,i),t._listen(2,i)})}});r.extend(a,{all:function(e){var t=e.length;return t?new a(function(n,r){var i=new Array(t);e.forEach(function(e,o){e.then(function(e){i[o]=e,--t||n(i)},r)})}):a.resolve([])},race:function(e){return new a(function(t,n){e.forEach(function(e){e.then(t,n)})})},resolve:function(e){return new a(function(t,n){o(e,t,n)})},reject:function(e){return new a(function(t,n){n(e)})}}),e.exports=a},function(e,t){var n={SEC:1e3,MIN:6e4,HOUR:36e5,DAY:864e5,MONTH:2592e6,YEAR:31536e6},r=t.parse=function(e){if("number"==typeof e)return e;if(!isNaN(e))return Number(e);var t=parseFloat(e);if(isNaN(t))throw new Error("Invalid timespan string");var r=e.split(t)[1].trim().toUpperCase().replace(/S$/,"");if(n.hasOwnProperty(r))return t*n[r];throw new Error('Invalid time unit "'+r+'"')};t.addToDate=function(e,t){return new Date(("number"==typeof e?e:e.getTime())+r(t))}},function(e,t,n){var r=n(35);t.parse=function(e,t){if("string"!=typeof e)return{};t=r.extend({decode:decodeURIComponent},t);var n={};return e.split("&").forEach(function(e){if(e){e=e.split("=");var r=t.decode(e[0]),i=t.decode(e[1]||"");!i&&t.ignoreEmpty||(n.hasOwnProperty(r)?(Array.isArray(n[r])||(n[r]=[n[r]]),n[r].push(i)):n[r]=i)}}),n};var i=t.stringify=function(e,t){if("object"!=typeof e)return"";t=r.extend({encode:encodeURIComponent},t);var n,i,o=[];function a(e,n){null==n&&(n=""),""===n&&t.ignoreEmpty||o.push(t.encode(e)+"="+t.encode(n))}function s(e){a(n,e)}for(n in e)e.hasOwnProperty(n)&&(i=e[n],Array.isArray(i)?i.forEach(s):a(n,i));return o.join("&")};t.append=function(e,t,n){if(!("string"==typeof t&&""!==t||"object"==typeof t&&!r.isEmptyObject(t)))return e;var o=e.indexOf("#"),a="";return-1!==o&&(a=e.substring(o,e.length),e=e.substring(0,o)),e=e.replace(/[?&]$/,""),t="string"!=typeof t?i(t,n):t.replace(/^[?&]/,""),e+(-1!==e.indexOf("?")?"&":"?")+t+a}}]).default);u(c({},tl()),{value:bn.array(),areaPickerText:bn.array(),placeholder:bn.string}),c({input:()=>!0},Is("areaPickerText")),bn.looseString,bn.looseString,bn.looseNumber,bn.looseNumber,bn.looseNumber,bn.bool.def(!0),bn.looseString,bn.oneOf(Zs),bn.bool.def(!1),bn.bool.def(!1),bn.object().def({}),bn.object().def({}),bn.number.def(170),bn.number.def(Vs?52:40),bn.looseNumber,bn.func(),bn.enum(),bn.oneOf(Zs).def("inline"),bn.bool.def(!1);const al=e=>{const{props:t}=e,{PaymentProvider:n}={PaymentProvider:t.paymentTarget.PaymentProvider};const{injectData:r}=Ke(),{$t:i}=mn(),o=f.ref([]),a=f.computed(()=>{const e=o.value.includes(n.Alipay);return Xe&&(He||e)}),s=f.computed(()=>1===o.value.length&&o.value[0]===n.Alipay),l=f.computed(()=>1===o.value.length&&o.value[0]===n.Wechat);return{supportPayProviders:o,isSupportPay:a,onlySupportAlipay:s,onlySupportWechatPay:l,getPayProviders:function(){return d(this,null,function*(){const e=yield t.paymentTarget.getPayProviders();o.value=e})},payWithWechat:function(e){return d(this,null,function*(){return new Promise(n=>d(null,null,function*(){if(!He)return n({success:!1,failReason:"notInWechatBrowser",failMessage:i("order.wechatPayTips")});if(!r.getWeixinSdk)return n({success:!1,failReason:"sdkNotAvailable",failMessage:i("order.payFailed")});let o;try{o=yield r.getWeixinSdk()}catch(a){return n({success:!1,failReason:"sdkNotAvailable",failMessage:i("order.payFailed")})}if(!o)return n({success:!1,failReason:"sdkNotAvailable",failMessage:i("order.payFailed")});o.chooseWXPay({timestamp:e.timestamp,nonceStr:e.nonceStr,package:e.package,signType:e.signType,paySign:e.paySign,success:e=>{n({success:!0,data:e||{}})},cancel:()=>{n({success:!1,failReason:"userCancelled",failMessage:i("order.cancelPay")})},fail:e=>{t.paymentTarget.interactionCore.logger.error("wx","choose-wx-pay-fail",JSON.stringify(e)),n({success:!1,failReason:"payFailed",failMessage:(null==e?void 0:e.errMsg)||i("order.payFailed")})}})}))})},payWithAli:function(e){const t=document.createElement("a");t.href=e,t.click()}}},sl=()=>({productTarget:we.object().isRequired,productConfig:we.object().def({})});function ll(e){return{ProductType:e.ProductType,ProductLinkType:e.ProductLinkType,ProductLinkJumpWay:e.ProductLinkJumpWay,ProductBuyType:e.ProductBuyType,ProductStatus:e.ProductStatus,ProductPriceType:e.ProductPriceType,ProductExplainStatus:e.ProductExplainStatus,ProductMediaType:e.ProductMediaType,ProductDeliveryType:e.ProductDeliveryType,ProductEvents:e.ProductEvents,ProductPushRule:e.ProductPushRule}}const cl=Symbol("PRODUCT_PROVIDE_KEY"),ul=()=>{const e=f.inject(cl),t=e.getProductTarget();return c({productTarget:t,productConfig:e.productConfig},ll(t))},pl=e=>{const{props:t,emitNotSupportDirectBuy:n}=e,{getEmitter:r,toast:i}=Ke(),{$t:o}=mn(),{isSupportPay:a,getPayProviders:s}=al({props:t});return{handleDirectBuy:function(e){return d(this,null,function*(){(yield t.productTarget.getSupportToDirectBuy())?a.value?(r().emit(lt.CloseProductDetailPopup),r().emit(lt.OpenProductOrderPopup,[e])):null==n||n(e):i(o("product.disableBuy"))})},getPayProviders:s}},dl=e=>{const{product:t}=e;let n,r;if(e.entranceProps){const t=ll(e.entranceProps.productTarget);n=t.ProductType,r=t.ProductBuyType}else{const e=ul();n=e.ProductType,r=e.ProductBuyType}const i=f.computed(()=>{let e;return e="function"==typeof t?t():f.unref(t),function(e){if(!n||!r||!e)return{enabled:!1,stock:0};if(e.productType===n.Normal){if(e.buyType===r.Link&&e.forceShowSoldOut)return{enabled:!0,stock:0};if(e.buyType===r.DirectBuy&&(null==e?void 0:e.stockEnabled))return{enabled:!0,stock:e.stock}}return{enabled:!1,stock:0}}(e)}),o=f.computed(()=>i.value.enabled&&i.value.stock<=0);return{stock:i,isSoldOut:o}},fl=e=>{let t;{const e=ul();t=e.productTarget}if(!t)throw new Error("useProductExplainEnabled fail: productTarget is undefined");const n=f.ref(!1);return f.onMounted(()=>{!function(){d(this,null,function*(){const e=yield t.getProductExplainEnabled();n.value=e})}()}),{productExplainEnabled:n}};function hl(e,t,n,r){null==n&&(n=""),""===n&&r.ignoreEmpty||("function"==typeof r.encode&&(t=r.encode(t),n=-1!==["boolean","string","number"].indexOf(typeof n)?r.encode(String(n)):""),e.push(t+"="+n))}function ml(e,t,n,r){n.forEach(n=>{hl(e,t,n,r)})}function vl(e,t){const n=function(e,...t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(let n=0;n<t.length;n++){const r=t[n];if(null!=r)for(const t in r)"__proto__"!==t&&Mr(r,t)&&(e[t]=r[t])}return e}({encode:encodeURIComponent},t),r=[];let i,o;for(i in e)Mr(e,i)&&(o=e[i],Array.isArray(o)?ml(r,i,o,n):hl(r,i,o,n));return r.join("&")}function gl(e,t,n){if(e=String(e),null==t)return e;if(!(t="string"==typeof t?t.replace(/^[?&]/,""):vl(t,n)))return e;const r=function(e){const t={leftContext:""};let n=e.indexOf("#");return-1!==n&&(t.hash=e.slice(n+1),e=e.slice(0,n)),n=e.indexOf("?"),-1!==n&&(t.search=e.slice(n+1),e=e.slice(0,n)),t.leftContext=e,t}(e);let i=r.search||"";return i&&"&"!==i.slice(-1)&&(i+="&"),i+=t,r.search=i,function(e){let t=e.leftContext;return null!=e.search&&(t+="?"+e.search),null!=e.hash&&(t+="#"+e.hash),t}(r)}var bl=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})};const yl=Re(),xl=yl.os.isAndroid,wl=yl.os.isIOS;var _l,Ql,Cl;function Sl(e){var t,n,r,i;const{androidLink:o,iosLink:a,otherLink:s}=e;if(!(null===(t=window.AndroidNative)||void 0===t?void 0:t.toPointMall)&&!(null===(i=null===(r=null===(n=window.webkit)||void 0===n?void 0:n.messageHandlers)||void 0===r?void 0:r.gotoPointsMall)||void 0===i?void 0:i.postMessage))return void window.open(s,"_blank","noopener=yes");let l=xl?o:a;l=gl(l,{plt_back_uri:encodeURIComponent(location.href)}),function(e){var t,n,r,i,o,a;xl?null===(n=null===(t=window.AndroidNative)||void 0===t?void 0:t.toPointMall)||void 0===n||n.call(t,e):wl&&(null===(a=null===(o=null===(i=null===(r=window.webkit)||void 0===r?void 0:r.messageHandlers)||void 0===i?void 0:i.gotoPointsMall)||void 0===o?void 0:o.postMessage)||void 0===a||a.call(o,e))}(JSON.stringify({url:l}))}function Tl(e,t){let n={};if(t){const r=t(e);n=Object.assign({},n,r)}return gl(e,n)}function El(e){const{linkData:t,openLink:n,isPlvWebview:r,getPlvWebviewSmallWindowSize:i,getPlvWebviewBridge:o,isWxMiniProgramEnv:a,toWxMiniProgram:s,getLinkParams:l,isMobile:c}=e,{linkType:u}=t,p=(null==r?void 0:r())||!1;if(u!==_l.Native){if(p){let e="";const{link:n,mobileLink:r,mobileAppLink:a,wxMiniprogramOriginalId:s,wxMiniprogramLink:c}=t;switch(u){case _l.Normal:e=n;break;case _l.MultiPlatform:e=a||r}let p=null;return u!==_l.Normal&&(p={mobileLink:Tl(r,l),wxMiniprogramOriginalId:s,wxMiniprogramLink:Tl(c,l),mobileAppLink:Tl(a,l)}),void function(e){bl(this,void 0,void 0,function*(){const{getPlvWebviewSmallWindowSize:t,getPlvWebviewBridge:n}=e,r=(null==t?void 0:t())||{width:90,height:160},i=yield null==n?void 0:n();i&&i.sendData("clickProduct",{width:r.width,height:r.height,newPage:!0,link:e.link,data:e.data})})}({link:Tl(e,l),data:p,getPlvWebviewSmallWindowSize:i,getPlvWebviewBridge:o})}if(u!==_l.Normal)u===_l.MultiPlatform&&function(e){bl(this,void 0,void 0,function*(){const{linkData:t,isWxMiniProgramEnv:n,toWxMiniProgram:r,openLink:i,getLinkParams:o,isMobile:a}=e,{wxMiniprogramLink:s,mobileLink:l,pcLink:c}=t,u=(null==a?void 0:a())||!1;let p=!1;try{p=(yield null==n?void 0:n())||!1}catch(d){p=!1}p&&s&&r?r(Tl(s,o)):u&&l?i(Tl(l,o),Cl.NewWindow):!u&&c&&i(Tl(c,o),Cl.NewWindow)})}({linkData:t,getLinkParams:l,isWxMiniProgramEnv:a,toWxMiniProgram:s,openLink:n,isMobile:c});else{const{link:e,jumpWay:r}=t;n(Tl(e,l),r)}}else Sl({androidLink:Tl(t.androidLink,l),iosLink:Tl(t.iosLink,l),otherLink:Tl(t.otherLink,l)})}(Ql=_l||(_l={}))[Ql.Normal=10]="Normal",Ql[Ql.MultiPlatform=11]="MultiPlatform",Ql[Ql.Native=12]="Native",function(e){e.PopUp="POP_UP",e.NewWindow="NEW_WINDOW",e.CurrentWindow="CURRENT_WINDOW"}(Cl||(Cl={}));const Ol=e=>{const{injectData:t}=Ke();return{trackEvent:function(n){t.trackEventCallback?t.trackEventCallback(n):e.trackEvent(n)}}},Pl=(e={})=>{const{injectData:t}=Ke(),n=We.gte("7.0.12"),r=f.ref(!1),i=f.computed(()=>He&&n&&Xe);function o(){return d(this,null,function*(){var e;if(!He||!t.getWeixinSdk)return!1;const n=yield t.getWeixinSdk();return!!(null==(e=null==n?void 0:n.miniProgram)?void 0:e.getEnv)&&new Promise(e=>{var t;null==(t=n.miniProgram)||t.getEnv(t=>{e(!0===(null==t?void 0:t.miniprogram))})})})}f.onMounted(()=>{!function(){d(this,null,function*(){const e=yield o();r.value=e})}()});const a=f.ref(),s=f.computed(()=>{var t;return null==(t=e.getButtonOptions)?void 0:t.call(e)});function l(){if(!a.value||!i.value)return;const t=s.value;if(!t)return;const{wxMiniprogramOriginalId:n,wxMiniprogramLink:r,classKey:o}=t,l=a.value,c=l.clientWidth,u=l.clientHeight,p="wx-open-launch-weapp-"+Wi(8),d=`\n <wx-open-launch-weapp\n id="${p}"\n username="${f=n,null==f?f:String(f).replace(Vi,e=>Bi[e])}"\n path="${r}"\n >\n <script type="text/wxtag-template">\n <style>.plv-iar-${o}-wx-buy-btn {width: ${c}px;height: ${u}px;}</style>\n <div class="plv-iar-${o}-wx-buy-btn"></div>\n <\/script>\n </wx-open-launch-weapp>\n `;var f;l.innerHTML=d,setTimeout(()=>{const t=document.querySelector(`#${p}`);null==t||t.addEventListener("launch",()=>{e.launchCallback&&e.launchCallback()}),null==t||t.addEventListener("error",e=>{const t=e;console.error("Launch error",t.detail)})},10)}return f.watch(()=>[a.value,i.value,s.value],()=>{setTimeout(()=>{l()},500)},{immediate:!0}),{isHighWeixinVersion:n,isWxMiniProgramWebview:r,supportWxOpenLaunchWeapp:i,supportWxMiniProgramNavigateTo:o,toWxMiniProgram:function(e){return d(this,null,function*(){var n;if(!He||!t.getWeixinSdk)return;const r=yield t.getWeixinSdk();null==(n=null==r?void 0:r.miniProgram)||n.navigateTo({url:e.startsWith("/")?e:`/${e}`})})},weixinBtnRef:a,createWxMiniProgramButton:l}},kl=e=>{const{props:t,emit:n}=e,{isSoldOut:r}=dl({product:()=>t.productData}),{getEmitter:i,injectData:o}=Ke(),{$t:a}=mn(),s=f.computed(()=>t.productConfig),{isWxMiniProgramWebview:l,supportWxOpenLaunchWeapp:u,weixinBtnRef:p,toWxMiniProgram:h,supportWxMiniProgramNavigateTo:m}=Pl({getButtonOptions:()=>{const e=t.productData;return{wxMiniprogramOriginalId:e.wxMiniprogramOriginalId,wxMiniprogramLink:T(e.wxMiniprogramLink),classKey:"product"}},launchCallback:()=>O()}),{supportAppNative:v}=(()=>{function e(){var e,t,n,r;return Fe?null==(e=window.AndroidNative)?void 0:e.toPointMall:Ve?null==(r=null==(n=null==(t=window.webkit)?void 0:t.messageHandlers)?void 0:n.gotoPointsMall)?void 0:r.postMessage:void 0}function t(){return!!e()}const n=f.computed(()=>t());return{getNativeToPointMallFn:e,supportNativeToPointMall:t,supportAppNative:n,toNativeLink:function(t){const{androidLink:n,iosLink:r,otherLink:i}=t,o=e();if(o){let e=Fe?n:r;return e=gl(e,{plt_back_uri:encodeURIComponent(location.href)}),void o(JSON.stringify({url:e}))}window.open(i,"_blank","noopener=yes")}}})(),{trackEvent:g}=Ol(t.productTarget.interactionCore),{ProductBuyType:b,ProductType:y}=ll(t.productTarget),x=f.computed(()=>t.productData.productType===y.Normal&&t.productData.buyType===b.DirectBuy),w=f.computed(()=>{var e;return null!=(e=s.value.isPreviewMode)&&e}),_=f.computed(()=>{const e=t.productData;if(s.value.customProductDisabled){return!!s.value.customProductDisabled(e)}return!!t.disabled||!w.value&&(!!r.value||(e.productType===y.Normal&&!e.priceVisible&&e.realPrice>0||!x.value&&(e.linkType===_l.Normal?!e.link:e.linkType===_l.MultiPlatform?Q.value:e.linkType===_l.Native&&(v.value?!e.androidLink&&!e.iosLink:!e.otherLink))))}),Q=f.computed(()=>{const{pcLink:e,mobileLink:n,wxMiniprogramLink:r,mobileAppLink:i}=t.productData;return!C.value&&((!l.value||!r)&&(Xe?!n&&!i:!!Xe||!e))}),C=f.computed(()=>"function"!=typeof s.value.customClickButtonHandler&&(!x.value&&(!l.value&&(u.value&&!!t.productData.wxMiniprogramOriginalId)))),S=f.computed(()=>{let e=a("product.button.normal");switch(t.productData.productType){case y.Normal:e=a("product.button.normal");break;case y.Finance:e=a("product.button.finance");break;case y.Position:e=a("product.button.position")}return t.productData.buttonText||e});function T(e,t={}){let n=c({},t);if(s.value.getLinkParams){const t=s.value.getLinkParams(e);n=Object.assign({},n,t)}return gl(e,n)}function E(e,t){switch(t){case Cl.NewWindow:window.open(e,"_blank","noopener=yes");break;case Cl.CurrentWindow:window.location.href=e;break;case Cl.PopUp:i().emit(lt.OpenProductIframeLinkPopup,e);break;default:window.open(e,"_blank","noopener=yes")}}function O(){return d(this,null,function*(){const e=t.productData,n=yield t.productTarget.getCurrentPushingProduct();g({event_id:"product_click_button",event_type:"click",spec_attrs:{buyType:e.productType===y.Normal?e.buyType:"",deliveryType:e.productType===y.Normal?e.deliveryType:"",name:e.name,productId:e.productId,productType:e.productType,productPushRule:(null==n?void 0:n.pushRule)||""}}),t.productTarget.sendProductClickEvent({productId:e.productId,name:e.name,productType:e.productType})})}return{isButtonDisabled:_,isWeixinButton:C,isPreviewMode:w,buttonText:S,weixinBtnRef:p,formatProductLink:T,onClickLinkBtn:function(){const e=t.productData;if(O(),s.value.customClickButtonHandler)return void s.value.customClickButtonHandler(e);if(x.value)return void n("direct-buy",t.productData);El({linkData:function(){const e=t.productData;return{linkType:e.linkType,jumpWay:e.jumpWay,link:e.link,pcLink:e.pcLink,mobileLink:e.mobileLink,mobileAppLink:e.mobileAppLink,androidLink:e.androidLink,iosLink:e.iosLink,otherLink:e.otherLink,wxMiniprogramOriginalId:e.wxMiniprogramOriginalId,wxMiniprogramAppId:e.wxMiniprogramAppId,wxMiniprogramLink:e.wxMiniprogramLink}}(),getLinkParams:s.value.getLinkParams,openLink:E,isPlvWebview:o.isPlvWebview,isMobile:o.isMobile,getPlvWebviewBridge:o.getPlvWebviewBridge,getPlvWebviewSmallWindowSize:o.getPlvWebviewSmallWindowSize,isWxMiniProgramEnv:m,toWxMiniProgram:h})}}};const Ml=at(f.defineComponent({__name:"product-button",props:u(c({},sl()),{productData:we.object().isRequired,disabled:we.bool.def(!1)}),emits:{"direct-buy":()=>!0},setup(e,{emit:t}){const n=e,{isButtonDisabled:r,buttonText:i,isWeixinButton:o,isPreviewMode:a,weixinBtnRef:s,onClickLinkBtn:l}=kl({props:n,emit:t});return{__sfc:!0,props:n,emit:t,isButtonDisabled:r,buttonText:i,isWeixinButton:o,isPreviewMode:a,weixinBtnRef:s,onClickLinkBtn:l}}}),function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t("div",{staticClass:"plv-product-button",class:{"is-disabled":n.isButtonDisabled}},[t("div",{staticClass:"plv-product-button__render"},[e._t("default",null,{buttonText:n.buttonText,disabled:n.isButtonDisabled})],2),n.isButtonDisabled||n.isPreviewMode?e._e():[n.isWeixinButton?t("div",{key:"weixin-btn",ref:"weixinBtnRef",staticClass:"plv-product-button__inner plv-product-button__inner--wx"}):t("div",{key:"link-btn",staticClass:"plv-product-button__inner plv-product-button__inner--link",on:{click:function(e){return e.stopPropagation(),n.onClickLinkBtn.apply(null,arguments)}}})]],2)},[]).exports;const Al=at(f.defineComponent({__name:"product-explain",props:{product:we.object().isRequired},setup(e){const t=e,{$t:n}=mn(),{ProductExplainStatus:r,productTarget:i,productConfig:o}=ul(),{productExplainEnabled:a}=fl();return{__sfc:!0,props:t,$t:n,ProductExplainStatus:r,productTarget:i,productConfig:o,productExplainEnabled:a,handleClickExplain:function(){return d(this,null,function*(){const e=t.product;if("function"==typeof o.value.customClickExplainHandler)return void o.value.customClickExplainHandler(e);const n=yield i.generateProductExplainPageUrl({productId:e.productId});n&&window.open(n,"_blank")})},isMobile:Xe,liveGif:"data:image/gif;base64,R0lGODlhKgAqAKIEAP7//////v3//////////wAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ4IDc5LjE2NDAzNiwgMjAxOS8wOC8xMy0wMTowNjo1NyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIxLjAgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QzFEQjYxNzBBNjg5MTFFQjhBN0REMjM4Qzk4RDRFMzciIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QzFEQjYxNzFBNjg5MTFFQjhBN0REMjM4Qzk4RDRFMzciPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpENzE0QTU2QkE2NkUxMUVCOEE3REQyMzhDOThENEUzNyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpENzE0QTU2Q0E2NkUxMUVCOEE3REQyMzhDOThENEUzNyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAkEAAQALAAAAAAqACoAAAOQSLrc/jDKSau9OOvNuxxg6FlACI5VaaKUebKfC8crFJgl5w7Rzm+7XhAogwxUx59m+PDpik1mRtpwEmtR6FRbpV68C+uSyxBvsQ4zBqxQf8lhdgvelk/kbgsezKcT8n1oXXCBIkaFL4OGWYJ1jX9+gISRiEpllJOPe5mLl4+OmpyJaUijC6WWpzgzrK2ur6wJACH5BAkEAAQALAAAAAAqACoAAAOVSLrc/jDKSau9OOvNu/9gOIxkOJGlGaGjurIuxA7xM0cBAJAAd8s7lA8m+2mMjhltg2woh8Ii8ThNNi/XxZNZdWYrX8KWGrWFT13GOBNea9NiuMI9h7ezeHnczi9b+ylefoKDdYV7gX+HeYeGi4AtUo+TiYSVjpGWS2aQm2p6dIiZn40EAQNBowupqgqsPTWxsrO0FAkAIfkECQQABAAsAAAAACoAKgAAA5FIutz+MMpJq7046827/2AojmSJDWhqOqm6Mi36wvG8xEMUAMDAAxxcBJfbCCHEYA151DRZz9PykTROoVdpaxi9dG9f3hbron7PWVqagB6b1+0yWQ52q+l3PBu+VlQbcTJMfHZ1en6BRYB9e4R6X4iOgouFeZOWb4eNlZuXhp6Wiphzog0BPpw9qS1ANq6vsCYJACH5BAkEAAQALAAAAAAqACoAAAONSLrc/jDKSau9OOvNu/9gKI5kaZ7oM6xsugAsALgKzA40Ybf0vUa+3yYIJA59wJ1QY1Q1M89GEOdQUqVIyMDqvHV5XzAjqiAvpuHrOJtWn9lrr9ZMh2PtZTzBnNfX5W1pgnN+hYAOaIiGYneHb459jHGQe4tLipZukZeNkpWUfJ+gmUl6XFV6OaqrrBgJACH5BAkEAAQALAAAAAAqACoAAAOISLrc/jDKSau9OOvNu/9gKI5kaZ5oqq6nMAxAzL70MNf2iudPEL8AHuNHe+wiO+Hi6GAanQzoEoeUKqwE7BXLpUKSz1q4+O2Km94xuWFeo9NR+PSsftXvZfmWHuez23Zvbn96WYVahoeKfn2MiYN7kHOOgEqNkpVVi5iFV0GOn5KhgSylpqcdCQAh+QQJBAAEACwAAAAAKgAqAAADi0i63P4wykmrvTjrzbv/YCiOZGmeaKqubFsOcPwAMfzVtkPXN/7ggx5P54MMALvjr9gARoBBh1PKpFYX0+aVAV0OtV9rGLslZMUydBSc9o4VZ/JbPo/Dy/ey3Yzn6/9zeXWAbWprXIQ5boV0ioiBfoOSjI+Tjo2HbJSRl4KdCwFHc0mfpJkuqKmqEgkAIfkECQQABAAsAAAAACoAKgAAA4JIutz+MMpJq7046827/2AojmRpnmiqrhowvC8Lw/I81DNOO/bt9Q/XCwD4AHk2YxKZgwyIz+fj2KAym9VlFnvdbb0M6xe8ECvMZbRa2421p+yxWw7nyn30t3NtP8fDfGR+fWl/BIFzbXiAhGiDjYaOh4iLhYILAVGXQpuGLJ+goRgJACH5BAkEAAQALAAAAAAqACoAAAOASLrc/jDKSau9OOvNu/9gKI5kaZ5ougxsqyqt+8bsS9CDjes0H/sy1W7WcwCKnWHj2AJ8lAxoA5dzSGFI6/WWXXWjzZr2Nw6WzV7y9JtWg91t8YM6Z2+x9jz8vef2735/emh8hIFyhVV1g4hximeNeIaAA0yGlpEEmI82nZ6fGwkAIfkECQQABAAsAAAAACoAKgAAA3dIutz+MMpJq7046827/2AojmRpXkOqno26soubwrFMK/JwE/ne3z9aEDZkFU9HU7KUDLgCn+QSZXNMc4CHtKrdurpfSE5n5TKu3lfLvGbj3Dz4Gy6DlsNg/Jkuj/P1NYB7f2qDhW2CfodzizEAhDN3jTuUlZYYCQAh+QQJBAAEACwAAAAAKgAqAAADgEi63P4wykmrvTjrzbv/YCiOZGmeaLoMbKsqrfvG7EvQg43rNB/7MtVu1nMAip1h49gCfJQMaAOXc0hhSOv1ll11o82a9jcOls1e8vSbVoPdbfGDOmdvsfY8/L3n9u9+f3pofISBcoVVdYOIcYpnjXiGgANMhpaRBJiPNp2enxsJACH5BAkEAAQALAAAAAAqACoAAAOCSLrc/jDKSau9OOvNu/9gKI5kaZ5oqq4aMLwvC8PyPNQzTjv27fUP1wsA+AB5NmMSmYMMiM/n49igMpvVZRZ73W29DOsXvBArzGW0WtuNtafssVsO58p99LdzbT/Hw3xkfn1pfwSBc214gIRog42GjoeIi4WCCwFRl0KbhiyfoKEYCQAh+QQJBAAEACwAAAAAKgAqAAADi0i63P4wykmrvTjrzbv/YCiOZGmeaKqubFsOcPwAMfzVtkPXN/7ggx5P54MMALvjr9gARoBBh1PKpFYX0+aVAV0OtV9rGLslZMUydBSc9o4VZ/JbPo/Dy/ey3Yzn6/9zeXWAbWprXIQ5boV0ioiBfoOSjI+Tjo2HbJSRl4KdCwFHc0mfpJkuqKmqEgkAIfkECQQABAAsAAAAACoAKgAAA4hIutz+MMpJq7046827/2AojmRpnmiqrqcwDEDMvvQw1/aK508QvwAe40d77CI74eLoYBqdDOgSh5QqrATsFculQpLPWrj47Yqb3jG5YV6j01H49Kx+1e9l+ZYe57Pbdm9uf3pZhVqGh4p+fYyJg3uQc46ASo2SlVWLmIVXQY6fkqGBLKWmpx0JACH5BAkEAAQALAAAAAAqACoAAAONSLrc/jDKSau9OOvNu/9gKI5kaZ7oM6xsugAsALgKzA40Ybf0vUa+3yYIJA59wJ1QY1Q1M89GEOdQUqVIyMDqvHV5XzAjqiAvpuHrOJtWn9lrr9ZMh2PtZTzBnNfX5W1pgnN+hYAOaIiGYneHb459jHGQe4tLipZukZeNkpWUfJ+gmUl6XFV6OaqrrBgJACH5BAkEAAQALAAAAAAqACoAAAORSLrc/jDKSau9OOvNu/9gKI5kiQ1oajqpujIt+sLxvMRDFADAwAMcXASX2wghxGANedQ0Wc/T8pE0TqFXaWsYvXRvX94W66J+z1lamoAem9ftMlkOdqvpdzwbvlZUG3EyTHx2dXp+gUWAfXuEel+IjoKLhXmTlm+HjZWbl4aeloqYc6INAT6cPaktQDaur7AmCQAh+QQFBAAEACwAAAAAKgAqAAADlUi63P4wykmrvTjrzbv/YDiMZDiRpRmho7qyLsQO8TNHAQCQAHfLO5QPJvtpjI4ZbYNsKIfCIvE4TTYv18WTWXVmK1/Clhq1hU9dxjgTXmvTYrjCPYe3s3h53M4vW/spXn6Cg3WFe4F/h3mHhouALVKPk4mElY6RlktmkJtqenSImZ+NBAEDQaMLqaoKrD01sbKztBQJADs="}}}),function(){var e=this,t=e._self._c,n=e._self._setupProxy;return n.isMobile&&n.productExplainEnabled?t("div",{class:{"plv-product-c-explain--no-cover":!e.product.cover}},[e.product.explainStatus===n.ProductExplainStatus.Explaining?t("div",{staticClass:"plv-product-c-explain--explaining",class:{"plv-product-c-explain--explaining-cover":e.product.cover}},[t("img",{staticClass:"plv-product-c-explain--explaining-icon",attrs:{src:n.liveGif}}),t("span",[e._v(e._s(n.$t("product.explaining")))])]):e.product.explainStatus===n.ProductExplainStatus.Explained?t("div",{staticClass:"plv-product-c-explain--explained",class:{"plv-product-c-explain--explained-cover":e.product.cover},on:{click:function(e){return e.stopPropagation(),n.handleClickExplain.apply(null,arguments)}}},[t("span",[e._v(e._s(n.$t("product.watchExplain")))])]):t("div",{staticClass:"plv-product-c-explain--not-explained",class:{"plv-product-c-explain--not-explained-cover":e.product.cover}},[t("span",[e._v(e._s(n.$t("product.notExplained")))])])]):e._e()},[]).exports;const Ll=at(f.defineComponent({__name:"product-cover",props:{product:bn.object().isRequired},setup(e){const t=e,{$t:n}=mn(),{isSoldOut:r}=dl({product:()=>t.product});return{__sfc:!0,props:t,$t:n,isSoldOut:r,ossCompress:gn,ProductExplain:Al}}}),function(){var e=this,t=e._self._c,n=e._self._setupProxy;return e.product.cover?t("div",{staticClass:"plv-product-item__cover-area"},[t("img",{staticClass:"plv-product-item__cover",attrs:{src:n.ossCompress(e.product.cover,{width:300}),alt:e.product.name}}),n.isSoldOut?t("div",{staticClass:"plv-product-item__cover-stock"},[e._v(" - "+e._s(n.$t("product.stock.soldOut"))+" - ")]):e._e(),e.product.displayNumber?t("div",{staticClass:"plv-product-item__ranking plv-font-din-pro-regular"},[e._v(" "+e._s(e.product.displayNumber)+" ")]):e._e(),t(n.ProductExplain,{staticClass:"plv-product-item__explain",attrs:{product:e.product}})],1):e._e()},[]).exports;const Dl=at(f.defineComponent({__name:"product-feature-tag",props:{tag:we.string.def(""),maxWidth:we.number.def(88)},setup(e){const t=e,n=f.computed(()=>({maxWidth:`${t.maxWidth}px`}));return{__sfc:!0,props:t,containerStyle:n}}}),function(){var e=this,t=e._self._c;return t("div",{staticClass:"plv-product-c-item__tag-container",style:e._self._setupProxy.containerStyle,attrs:{title:e.tag}},[e.tag?t("span",{staticClass:"plv-product-c-item__tag"},[e._v(e._s(e.tag))]):e._e()])},[]).exports;const jl=at(f.defineComponent({__name:"product-title",props:{title:we.string.def(""),useExpand:we.bool.def(!1),useEllipsis:we.bool.def(!1)},setup(e){const t=e,n=f.ref(),r=f.ref(!1);function i(){const e=n.value;if(!e||!e.parentElement)return!1;const t=e.getBoundingClientRect(),r=e.cloneNode(!0);r.style.position="absolute",r.style.top="-9999px",r.style.left="-9999px",r.style.visibility="hidden",r.style.width=`${t.width}px`,r.style.boxSizing="border-box",r.style.whiteSpace="normal",r.style.webkitLineClamp="unset",r.style.display="block",e.parentElement.appendChild(r);const i=r.getBoundingClientRect().height;return e.parentElement.removeChild(r),i>t.height+1}const o=()=>{r.value=i()};return f.onMounted(()=>{o()}),f.watch(()=>t.title,()=>{n.value&&n.value.classList.remove("plv-product-c-item__title--expanded"),f.nextTick(()=>{o()})}),{__sfc:!0,props:t,titleRef:n,moreArrowVisible:r,handleExpand:function(){var e;r.value=!1,null==(e=n.value)||e.classList.add("plv-product-c-item__title--expanded")},isTitleOverflowing:i,checkOverflow:o,ProductIconArrowDown:k}}}),function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t("div",{staticClass:"plv-product-c-item__title-container"},[t("div",{ref:"titleRef",staticClass:"plv-product-c-item__title",class:{"plv-product-c-item__title--single":e.useEllipsis}},[e._t("title-prefix"),e._v(" "+e._s(e.title)+" ")],2),e.useExpand&&n.moreArrowVisible?t("button",{staticClass:"plv-product-c-item__title-more",on:{click:n.handleExpand}},[t(n.ProductIconArrowDown,{staticClass:"plv-product-c-item__title-more-icon"})],1):e._e()])},[]).exports;var Il=(e=>(e.ProductList="productList",e.BigCard="bigCard",e.AggregateStation="aggregateStation",e))(Il||{});const $l=e=>{const{productTarget:t}=e,{ProductType:n}=ll(t),{trackEvent:r}=Ol(null==t?void 0:t.interactionCore),i=f.ref({}),o=f.ref(null),a=f.shallowRef([]);function s(e,t,o){if(!(e&&e.$el&&e.product&&e.product.productId))return;const a=e.$el,s=e.product.productId,l=function(e,t,n){const r=e.offsetTop+e.offsetHeight;return!(r<=t||n<r)}(a,t,o);l&&!i.value[s]&&(i.value=u(c({},i.value),{[s]:!0}),function(e){const t={name:e.name,realPrice:e.productType===n.Normal?e.realPrice:"",productId:e.productId,productType:e.productType,productFeature:JSON.stringify(e.featureTags)};e.productType===n.Normal&&void 0!==e.originPrice&&(t.price=e.originPrice),r({event_id:"product_list_item_view",event_type:"show",spec_attrs:t})}(e.product))}function l(e){return{clickTime:(new Date).getTime(),linkType:Xe?"mobile":"pc",productName:e.name,productId:e.productId,productType:e.productType,feature:JSON.stringify(e.featureTags),price:e.productType===n.Normal?e.originPrice:"",realPrice:e.productType===n.Normal?e.realPrice:""}}return{productListRef:o,setItemRef:function(e){e&&a.value.push(e)},trackProduct:function(){return d(this,null,function*(){yield f.nextTick();const e=o.value;if(!e||!a.value.length)return;const t=e.scrollTop,n=e.clientHeight,r=t+n;a.value.forEach(e=>{s(e,t,r)})})},clearTrackedProducts:function(){i.value={},a.value=[]},trackProductItemClick:function(e){r({event_id:"product_list_item_click",event_type:"click",spec_attrs:c({},l(e))})},trackProductPushItemClick:function(e){r({event_id:"product_push_item_click",event_type:"click",spec_attrs:u(c({},l(e)),{pushId:e.pushLogId||""})})},trackProductPushItemView:function(e){r({event_id:"product_push_item_view",event_type:"show",spec_attrs:{linkType:Xe?"mobile":"pc",productId:e.productId,pushId:e.pushLogId||""}})}}},Nl=e=>{const{props:t,emit:n}=e,{ProductType:r,ProductBuyType:i}=ll(t.productTarget),{getEmitter:o}=Ke(),{trackProductItemClick:a,trackProductPushItemClick:s}=$l({productTarget:t.productTarget}),l=f.ref(!1),c=f.computed(()=>{const{product:e}=t;return!!(e.name&&e.featureTags.length&&e.description&&e.productType!==r.Position)});return f.watchEffect(()=>{!function(){d(this,null,function*(){const{product:e,productTarget:n}=t;if(!e||!n)return!1;const o=yield n.getOutLinkProductRedirectEnabled();l.value=e.productType===r.Normal&&e.buyType===i.Link&&o})}()}),{isProductRedirectLinkDirectly:l,shouldEllipsisTitle:c,onDirectBuy:function(e){n("direct-buy",e)},onClickProductItem:function(){n("click-product-item",t.product),t.scene===Il.BigCard?s(t.product):a(t.product),t.product.productType!==r.Finance&&o().emit(lt.OpenProductDetailPopup,t.product)}}};const Rl=at(f.defineComponent({__name:"product-item",props:u(c({},sl()),{product:we.object().isRequired,scene:we.enum(),isSmallSize:we.bool.def(!1)}),emits:{"click-product-item":()=>!0,"direct-buy":()=>!0,"open-position-detail":()=>!0},setup(e,{emit:t}){const n=e,{ProductExplainStatus:r,ProductType:i}=ul(),{$t:o}=mn(),{isProductRedirectLinkDirectly:a,shouldEllipsisTitle:s,onDirectBuy:l,onClickProductItem:c}=Nl({props:n,emit:t});return{__sfc:!0,props:n,emit:t,ProductExplainStatus:r,ProductType:i,$t:o,isProductRedirectLinkDirectly:a,shouldEllipsisTitle:s,onDirectBuy:l,onClickProductItem:c,ProductPrice:Er,ProductButton:Ml,ProductCover:Ll,ProductExplain:Al,ProductFeatureTag:Dl,ProductTitle:jl,ProductItemScene:Il}}}),function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t(n.ProductButton,{attrs:{"product-data":e.product,"product-target":e.productTarget,"product-config":e.productConfig,disabled:!n.isProductRedirectLinkDirectly}},[t("div",{class:["plv-product-item",{"plv-product-item-no-cover":!e.product.cover,"plv-product-item--topping":e.product.isTopping,"plv-product-item--small-size":e.isSmallSize}],on:{click:n.onClickProductItem}},[e.product.cover&&!e.isSmallSize?t(n.ProductCover,{attrs:{product:e.product}}):e._e(),t("div",{staticClass:"plv-product-item__content"},[t("div",{staticClass:"plv-product-item__content-top"},[e.product.cover&&e.isSmallSize?t(n.ProductCover,{attrs:{product:e.product}}):e._e(),t("div",{staticClass:"plv-product-item__content-top-inner"},[t("div",{staticClass:"plv-product-item__title-area"},[t(n.ProductTitle,{attrs:{title:e.product.name,"use-ellipsis":n.shouldEllipsisTitle},scopedSlots:e._u([{key:"title-prefix",fn:function(){return[e.product.displayNumber&&!e.product.cover?t("div",{staticClass:"plv-product-item__ranking plv-font-din-pro-regular"},[e._v(" "+e._s(e.product.displayNumber)+" ")]):e._e(),e.product.cover||e.product.explainStatus===n.ProductExplainStatus.Explained?e._e():t(n.ProductExplain,{staticClass:"plv-product-item__explain",attrs:{product:e.product}})]},proxy:!0}])})],1),e.product.featureTags.length?t("div",{staticClass:"plv-product-item__tags"},e._l(e.product.featureTags,function(e,r){return t(n.ProductFeatureTag,{key:r,attrs:{tag:e}})}),1):e._e(),e.product.description?t("p",{staticClass:"plv-product-item__description"},[e._v(" "+e._s(e.product.description)+" ")]):e._e()])],1),t("div",{staticClass:"plv-product-item__footer"},[t(n.ProductPrice,{attrs:{product:e.product}}),e.product.productType===n.ProductType.Position&&e.productConfig.isProductWebview?t("div",{staticClass:"plv-product-item__position-detail-button",on:{click:function(t){return t.stopPropagation(),n.emit("open-position-detail",e.product)}}},[e._v(" "+e._s(n.$t("product.position.detail"))+" ")]):e._e(),e.product.explainStatus!==n.ProductExplainStatus.Explained||e.product.cover?e._e():t(n.ProductExplain,{staticClass:"plv-product-item__explained--no-cover",class:{"plv-product-item__explained--no-cover-position":e.product.productType===n.ProductType.Position&&e.productConfig.isProductWebview},attrs:{product:e.product}}),e.scene!==n.ProductItemScene.BigCard?t(n.ProductButton,{attrs:{"product-data":e.product,"product-target":e.productTarget,"product-config":e.productConfig},on:{"direct-buy":n.onDirectBuy},scopedSlots:e._u([{key:"default",fn:function({buttonText:n,disabled:r}){return[t("button",{staticClass:"plv-product-item__buy-button",class:{"plv-product-item__buy-button--disabled":r}},[e._v(" "+e._s(n)+" ")])]}}],null,!1,477326030)}):e._e()],1)])],1)])},[]).exports,zl=()=>c(c({},sl()),{paymentTarget:we.object().isRequired}),Bl=e=>{const{props:t,emit:n,scene:r}=e,{ProductType:i,ProductPushRule:o,ProductBuyType:a}=ll(t.productTarget),{getEmitter:s}=Ke(),{trackProductPushItemView:l,trackProductPushItemClick:p}=$l({productTarget:t.productTarget}),{handleDirectBuy:h,getPayProviders:m}=pl({props:t,emitNotSupportDirectBuy:function(){n("not-support-direct-buy",b.value)}}),v=f.ref(!1),g=f.ref(!1),b=f.ref(),y=f.ref(),x=f.ref(0),w=f.ref(0),_=f.ref(),Q=f.ref(!1),C=f.ref(),S=f.computed(()=>!!_.value&&(x.value>0&&_.value.productHotEffectEnabled));function T(){v.value=!0}function E(){f.nextTick(()=>{g.value=!0})}function O(){v.value=!1,g.value=!1}function P(){b.value=void 0,y.value=void 0}function k(e){x.value=0,b.value=e.productData,y.value=e.pushRule,C.value=e.productData.productId,O(),e.pushRule===o.BigCard&&r===o.BigCard&&(s().emit(lt.OpenProductBigCardPopup),l(e.productData)),e.pushRule===o.SmallCard&&r===o.SmallCard&&(s().emit(lt.OpenProductSmallCardPopup),l(e.productData))}function M(e){var t;x.value=0,e.productId===(null==(t=b.value)?void 0:t.productId)&&(C.value=void 0,P(),O())}function A(e){b.value&&(e.productData.displayNumber>=b.value.displayNumber||b.value&&(b.value.displayNumber=b.value.displayNumber+1))}function L(e){b.value&&(e.productData.productId===C.value&&(C.value=void 0),e.productData.displayNumber>=b.value.displayNumber||b.value&&(b.value.displayNumber=b.value.displayNumber-1))}function D(e){b.value&&e.productData.productId===b.value.productId&&(b.value=e.productData,e.productData.pushRule&&(y.value=e.productData.pushRule))}function j(e){if(!b.value)return;const t=e.targetProducts.findIndex(e=>{var t;return e.productId===(null==(t=b.value)?void 0:t.productId)});-1!==t&&(b.value=e.targetProducts[t],e.targetProducts[t].pushRule&&(y.value=e.targetProducts[t].pushRule))}function I(e){b.value&&b.value.productId===e.productId&&b.value.productType===i.Normal&&(b.value.stock=0)}function $(e){b.value&&e.productId===b.value.productId&&(C.value=void 0,P(),O())}function N(){return d(this,null,function*(){if(!t.productTarget)return;const e=yield t.productTarget.getCurrentPushingProduct(C.value);e&&(b.value=u(c({},e),{pushRule:y.value||e.pushRule||o.SmallCard}))})}function R(e){b.value&&b.value.productId===e.productId&&(x.value=e.times)}return f.watch(b,(e,t)=>d(null,null,function*(){t&&e&&e.productId!==t.productId&&(w.value=0,yield f.nextTick(),x.value=0)}),{deep:!0}),f.watch(x,(e,t)=>{void 0!==t&&(w.value=t)}),f.watch(g,e=>{n("small-card-visible-change",e)}),et(lt.OpenProductBigCardPopup,T),et(lt.OpenProductSmallCardPopup,E),f.onMounted(()=>d(null,null,function*(){!function(){const e=t.productTarget;if(!e)return;const n=e.ProductEvents;e.eventEmitter.on(n.PushProduct,k),e.eventEmitter.on(n.CancelPushProduct,M),e.eventEmitter.on(n.OnSaleProduct,A),e.eventEmitter.on(n.OffSaleProduct,L),e.eventEmitter.on(n.ChangeProduct,D),e.eventEmitter.on(n.MoveProduct,j),e.eventEmitter.on(n.ProductSoldOut,I),e.eventEmitter.on(n.DeleteProduct,$),e.eventEmitter.on(n.RefreshProductList,N),e.eventEmitter.on(n.ProductClickTimes,R)}(),yield function(){return d(this,null,function*(){if(!t.productTarget)return;const e=yield t.productTarget.getCurrentPushingProduct();e?k({productData:e,pushRule:e.pushRule||o.SmallCard}):M({})})}(),m(),function(){d(this,null,function*(){if(!t.productTarget||!b.value)return;const e=yield t.productTarget.getOutLinkProductRedirectEnabled();Q.value=b.value.productType===i.Normal&&b.value.buyType===a.Link&&e})}(),function(){d(this,null,function*(){if(!t.productTarget)return;const e=yield t.productTarget.getProductHotSaleConfig();_.value=e})}()})),f.onBeforeUnmount(()=>{!function(){const e=t.productTarget.ProductEvents;t.productTarget.eventEmitter.off(e.PushProduct,k),t.productTarget.eventEmitter.off(e.CancelPushProduct,M),t.productTarget.eventEmitter.off(e.OnSaleProduct,A),t.productTarget.eventEmitter.off(e.OffSaleProduct,L),t.productTarget.eventEmitter.off(e.ChangeProduct,D),t.productTarget.eventEmitter.off(e.MoveProduct,j),t.productTarget.eventEmitter.off(e.ProductSoldOut,I),t.productTarget.eventEmitter.off(e.DeleteProduct,$),t.productTarget.eventEmitter.off(e.RefreshProductList,N),t.productTarget.eventEmitter.off(e.ProductClickTimes,R)}()}),{bigCardVisible:v,smallCardVisible:g,productData:b,currentPushRule:y,hotSaleTimes:x,lastHotSaleTimes:w,isProductRedirectLinkDirectly:Q,hotSaleConfig:_,productHotEffectEnabled:S,openBigCard:T,openSmallCard:E,close:O,reset:P,openProductDetailPopup:function(){b.value&&(p(b.value),b.value.productType!==i.Finance&&s().emit(lt.OpenProductDetailPopup,b.value))},handleDirectBuy:h}};const Fl=at(f.defineComponent({__name:"big-card",props:u(c({},zl()),{productData:we.object()}),emits:{"direct-buy":()=>!0},setup(e,{emit:t}){const n=e,{$t:r}=mn();return{__sfc:!0,props:n,emit:t,$t:r,onDirectBuy:function(){t("direct-buy",n.productData)},ProductItem:Rl,ProductButton:Ml,ProductItemScene:Il}}}),function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t("div",{staticClass:"plv-product-big-card"},[t("div",{staticClass:"plv-product-big-card__title"},[e._v(" "+e._s(n.$t("bigCard.title"))+" ")]),e.productData?t("div",{staticClass:"plv-product-big-card__content"},[t(n.ProductItem,{staticClass:"plv-product-big-card__item",attrs:{scene:n.ProductItemScene.BigCard,product:e.productData,"product-target":e.productTarget,"product-config":e.productConfig}})],1):e._e(),e.productData?t("div",{staticClass:"plv-product-big-card__bottom"},[t(n.ProductButton,{attrs:{"product-data":e.productData,"product-target":e.productTarget,"product-config":e.productConfig},on:{"direct-buy":n.onDirectBuy},scopedSlots:e._u([{key:"default",fn:function({buttonText:n,disabled:r}){return[t("button",{staticClass:"plv-product-big-card__buy-button",class:{"plv-product-big-card__buy-button--disabled":r}},[e._v(" "+e._s(n)+" ")])]}}],null,!1,3984514254)})],1):e._e()])},[]).exports;const Vl=at(f.defineComponent({__name:"big-card-popup",props:c(c({},{popupConfig:we.object()}),zl()),emits:{"not-support-direct-buy":()=>!0,"small-card-visible-change":()=>!0},setup(e,{expose:t,emit:n}){const r=e;(e=>{const t=f.computed(()=>e.productConfig);f.provide(cl,{getProductTarget:()=>e.productTarget,productConfig:t});const n=e.productTarget;c({productTarget:n,productConfig:t},ll(n))})(r),(e=>{const t=e.productTarget,n=f.computed(()=>e.productConfig);f.provide(In,{getProductTarget:()=>e.productTarget,productConfig:n}),c({productTarget:t,productConfig:n},jn(t))})(r);const{ProductPushRule:i}=ll(r.productTarget),o=f.computed(()=>Xe?.7:0),{bigCardVisible:a,productData:s,openBigCard:l,close:u,handleDirectBuy:p}=Bl({props:r,emit:n,scene:i.BigCard});return t({open:l,close:u}),{__sfc:!0,props:r,emit:n,ProductPushRule:i,contentHeightPercent:o,bigCardVisible:a,productData:s,openBigCard:l,close:u,handleDirectBuy:p,CommonPopup:st,productEvents:lt,ProductIconClose:A,BigCard:Fl}}}),function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t(n.CommonPopup,{attrs:{background:"none","show-header":!1,"open-event":n.productEvents.OpenProductBigCardPopup,"popup-config":e.popupConfig,"content-height-percent":n.contentHeightPercent},model:{value:n.bigCardVisible,callback:function(e){n.bigCardVisible=e},expression:"bigCardVisible"}},[t("transition",{attrs:{name:"plv-product-big-card-scale"}},[n.bigCardVisible?t(n.BigCard,e._b({attrs:{"product-data":n.productData},on:{"direct-buy":n.handleDirectBuy}},"big-card",n.props,!1)):e._e()],1),t("div",{staticClass:"plv-product-big-card-close-btn",on:{click:n.close}},[t(n.ProductIconClose,{staticClass:"plv-product-big-card-close-btn__icon"})],1)],1)},[]).exports;module.exports=Vl,console.log("%c@polyv/product-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[component: big-card-popup]","[version: 1.5.0-rc-20250925.1]","[buildTime: 2025-09-25 02:58:11]");
78
+ var t,n,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.toStringTag||"@@toStringTag";function l(e,i,o,a){var s=i&&i.prototype instanceof u?i:u,l=Object.create(s.prototype);return r(l,"_invoke",function(e,r,i){var o,a,s,l=0,u=i||[],p=!1,d={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,n){return o=e,a=0,s=t,d.n=n,c}};function f(e,r){for(a=e,s=r,n=0;!p&&l&&!i&&n<u.length;n++){var i,o=u[n],f=d.p,h=o[2];e>3?(i=h===r)&&(s=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=f&&((i=e<2&&f<o[1])?(a=0,d.v=r,d.n=o[1]):f<h&&(i=e<3||o[0]>r||r>h)&&(o[4]=e,o[5]=r,d.n=h,a=0))}if(i||e>1)return c;throw p=!0,r}return function(i,u,h){if(l>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,h),a=u,s=h;(n=a<2?t:s)||!p;){o||(a?a<3?(a>1&&(d.n=-1),f(a,s)):d.n=s:d.v=s);try{if(l=2,o){if(a||(i="next"),n=o[i]){if(!(n=n.call(o,s)))throw TypeError("iterator result is not an object");if(!n.done)return n;s=n.value,a<2&&(a=0)}else 1===a&&(n=o.return)&&n.call(o),a<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((n=(p=d.n<0)?s:e.call(r,d))!==c)break}catch(m){o=t,a=1,s=m}finally{l=1}}return{value:n,done:p}}}(e,o,a),!0),l}var c={};function u(){}function p(){}function d(){}n=Object.getPrototypeOf;var f=[][a]?n(n([][a]())):(r(n={},a,function(){return this}),n),h=d.prototype=u.prototype=Object.create(f);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,r(e,s,"GeneratorFunction")),e.prototype=Object.create(h),e}return p.prototype=d,r(h,"constructor",d),r(d,"constructor",p),p.displayName="GeneratorFunction",r(d,s,"GeneratorFunction"),r(h),r(h,s,"Generator"),r(h,a,function(){return this}),r(h,"toString",function(){return"[object Generator]"}),(e.exports=i=function(){return{w:l,m:m}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(t,r,i,o){var a=Object.defineProperty;try{a({},"",{})}catch(s){a=0}e.exports=n=function(e,t,r,i){if(t)a?a(e,t,{value:r,enumerable:!i,configurable:!i,writable:!i}):e[t]=r;else{var o=function(t,r){n(e,t,function(e){return this._invoke(t,r,e)})};o("next",0),o("throw",1),o("return",2)}},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,r,i,o)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(15),i=n(18);e.exports=function(e,t,n,o,a){return new i(r().w(e,t,n,o),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(14),i=n(16);e.exports=function e(t,n){function o(e,i,a,s){try{var l=t[e](i),c=l.value;return c instanceof r?n.resolve(c.v).then(function(e){o("next",e,a,s)},function(e){o("throw",e,a,s)}):n.resolve(c).then(function(e){l.value=e,a(l)},function(e){return o("throw",e,a,s)})}catch(u){s(u)}}var a;this.next||(i(e.prototype),i(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),i(this,"_invoke",function(e,t,r){function i(){return new n(function(t,n){o(e,r,t,n)})}return a=a?a.then(i,i):i()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(2).default,i=n(29);e.exports=function(e){var t=i(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){n.d(t,"a",function(){return o});var r=n(28),i=n.n(r),o="__polyvUILangKey";function a(e,t,n){return n.replace(new RegExp("\\${"+e+"}","g"),t)}t.b={inject:{configProvider:{default:null}},computed:{$currentLocale:function(){var e=this.configProvider;return e&&e.locale},$currentLang:function(){return this.$currentLocale&&this.$currentLocale.$lang?this.$currentLocale.$lang:"zh_CN"}},methods:{$uiLang:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.configProvider,i=null;r&&r.locale?i=r.locale:window[o]&&(i=window[o]);var s="";if(s=i&&i[e]?i[e]:t,n)for(var l=0,c=Object.keys(n);l<c.length;l++){var u=c[l];s=a(u,n[u],s)}return s},shortNumber:function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"w",n={w:1e4,k:1e3}[t];if(e>=n){var r=(e/n).toFixed(1),o=r.split("."),a=i()(o,2),s=a[0],l=a[1];return(r=0===Number(l)?s:r)+t}return e.toString()}(e,"zh_CN"===this.$currentLang?"w":"k")}}}},function(e,t,n){var r=n(14),i=n(15),o=n(23),a=n(17),s=n(18),l=n(24),c=n(25);function u(){var t=i(),n=t.m(u),p=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function d(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))}var f={throw:1,return:2,break:3,continue:3};function h(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,f[e],t)},delegateYield:function(e,i,o){return t.resultName=i,n(r.d,c(e),o)},finish:function(e){return n(r.f,e)}},n=function(e,n,i){r.p=t.prev,r.n=t.next;try{return e(n,i)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(e.exports=u=function(){return{wrap:function(e,n,r,i){return t.w(h(e),n,r,i&&i.reverse())},isGeneratorFunction:d,mark:t.m,awrap:function(e,t){return new r(e,t)},AsyncIterator:s,async:function(e,t,n,r,i){return(d(t)?a:o)(h(e),t,n,r,i)},keys:l,values:c}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=u,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(17);e.exports=function(e,t,n,i,o){var a=r(e,t,n,i,o);return a.next().then(function(e){return e.done?e.value:a.next()})},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(2).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(r(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(9);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(30),i=n(36),o=n(13),a=n(31);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(2).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.$scopedSlots[t],i=e.$slots[t];return r?r(n):i||null}n.d(t,"b",function(){return r}),t.a={props:{slotName:{type:String,default:"default"},scopedData:Object,target:Object,className:[String,Array],tagName:{type:String,default:"div"}},computed:{renderSlot:function(){var e=this.slotName,t=this.target.$scopedSlots[e],n=this.target.$slots[e];return t||n?function(e,r){return t?t(r):n}:function(){}}},render:function(){return(0,arguments[0])(this.tagName,{class:this.className},[this.renderSlot(this.$createElement,this.scopedData)])}}},,,function(e,t){var n=Object.prototype.hasOwnProperty,r=t.extend=Object.assign||function(e){if(null==e)throw new Error("target cannot be null");for(var t,r,i=0,o=arguments.length;++i<o;)if(null!=(r=arguments[i]))for(t in r)n.call(r,t)&&(e[t]=r[t]);return e},i=Object.prototype.toString,o=t.isFunction=function(e){return"[object Function]"===i.call(e)};t.isDate=function(e){return"[object Date]"===i.call(e)},t.isObject=function(e){return"[object Object]"===i.call(e)},t.isEmptyObject=function(e){if(null!=e)for(var t in e)if(n.call(e,t))return!1;return!0},t.each=function(e,t){if(null!=e){var r,i=e.length;if(void 0===i||o(e)){for(r in e)if(n.call(e,r)&&!1===t.call(e[r],e[r],r))break}else for(r=-1;++r<i&&!1!==t.call(e[r],e[r],r););}return e},t.toArray=function(e){var t;try{t=Array.prototype.slice.call(e)}catch(r){t=[];for(var n=e.length;n;)t[--n]=e[n]}return t},t.mergeArray=function(e,t){for(var n=t.length,r=e.length,i=0;i<n;)e[r++]=t[i++];return e.length=r,e},t.randomStr=function(e){var t="";do{t+=Math.random().toString(36).substr(2)}while(t.length<10);return t=t.substr(0,10)+("00000"+Math.abs(new Date)).slice(-6),e&&(t=e+t),t},t.createClass=function(e,t,i,o){var a=i?function(){i.apply(this,o?"function"==typeof o?o.apply(this,arguments):o:arguments),e.apply(this,arguments)}:function(){e.apply(this,arguments)};if(i){var s=function(){};s.prototype=i.prototype,a.prototype=new s,a.prototype.constructor=a,r(a,i)}if(t)for(var l in t)n.call(t,l)&&(a.prototype[l]=t[l]);return a}},function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},,,,,,,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"==typeof window&&(n=window)}e.exports=n},,,,,,,,,,,,,function(e,t,n){var r=n(30),i=n(19),o=n(13),a=n(31);e.exports=function(e){return r(e)||i(e)||o(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function r(e,t,r,i,o,a){return n((s=n(n(t,e),n(i,a)))<<(l=o)|s>>>32-l,r);var s,l}function i(e,t,n,i,o,a,s){return r(t&n|~t&i,e,t,o,a,s)}function o(e,t,n,i,o,a,s){return r(t&i|n&~i,e,t,o,a,s)}function a(e,t,n,i,o,a,s){return r(t^n^i,e,t,o,a,s)}function s(e,t,n,i,o,a,s){return r(n^(t|~i),e,t,o,a,s)}e.exports=function(e){return function(e){for(var t,n="",r=0;r<e.length;r++)t=e.charCodeAt(r),n+="0123456789abcdef".charAt(t>>>4&15)+"0123456789abcdef".charAt(15&t);return n}(function(e){return function(e){for(var t="",n=0;n<32*e.length;n+=8)t+=String.fromCharCode(e[n>>5]>>>n%32&255);return t}(function(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var r=1732584193,l=-271733879,c=-1732584194,u=271733878,p=0;p<e.length;p+=16){var d=r,f=l,h=c,m=u;r=i(r,l,c,u,e[p+0],7,-680876936),u=i(u,r,l,c,e[p+1],12,-389564586),c=i(c,u,r,l,e[p+2],17,606105819),l=i(l,c,u,r,e[p+3],22,-1044525330),r=i(r,l,c,u,e[p+4],7,-176418897),u=i(u,r,l,c,e[p+5],12,1200080426),c=i(c,u,r,l,e[p+6],17,-1473231341),l=i(l,c,u,r,e[p+7],22,-45705983),r=i(r,l,c,u,e[p+8],7,1770035416),u=i(u,r,l,c,e[p+9],12,-1958414417),c=i(c,u,r,l,e[p+10],17,-42063),l=i(l,c,u,r,e[p+11],22,-1990404162),r=i(r,l,c,u,e[p+12],7,1804603682),u=i(u,r,l,c,e[p+13],12,-40341101),c=i(c,u,r,l,e[p+14],17,-1502002290),r=o(r,l=i(l,c,u,r,e[p+15],22,1236535329),c,u,e[p+1],5,-165796510),u=o(u,r,l,c,e[p+6],9,-1069501632),c=o(c,u,r,l,e[p+11],14,643717713),l=o(l,c,u,r,e[p+0],20,-373897302),r=o(r,l,c,u,e[p+5],5,-701558691),u=o(u,r,l,c,e[p+10],9,38016083),c=o(c,u,r,l,e[p+15],14,-660478335),l=o(l,c,u,r,e[p+4],20,-405537848),r=o(r,l,c,u,e[p+9],5,568446438),u=o(u,r,l,c,e[p+14],9,-1019803690),c=o(c,u,r,l,e[p+3],14,-187363961),l=o(l,c,u,r,e[p+8],20,1163531501),r=o(r,l,c,u,e[p+13],5,-1444681467),u=o(u,r,l,c,e[p+2],9,-51403784),c=o(c,u,r,l,e[p+7],14,1735328473),r=a(r,l=o(l,c,u,r,e[p+12],20,-1926607734),c,u,e[p+5],4,-378558),u=a(u,r,l,c,e[p+8],11,-2022574463),c=a(c,u,r,l,e[p+11],16,1839030562),l=a(l,c,u,r,e[p+14],23,-35309556),r=a(r,l,c,u,e[p+1],4,-1530992060),u=a(u,r,l,c,e[p+4],11,1272893353),c=a(c,u,r,l,e[p+7],16,-155497632),l=a(l,c,u,r,e[p+10],23,-1094730640),r=a(r,l,c,u,e[p+13],4,681279174),u=a(u,r,l,c,e[p+0],11,-358537222),c=a(c,u,r,l,e[p+3],16,-722521979),l=a(l,c,u,r,e[p+6],23,76029189),r=a(r,l,c,u,e[p+9],4,-640364487),u=a(u,r,l,c,e[p+12],11,-421815835),c=a(c,u,r,l,e[p+15],16,530742520),r=s(r,l=a(l,c,u,r,e[p+2],23,-995338651),c,u,e[p+0],6,-198630844),u=s(u,r,l,c,e[p+7],10,1126891415),c=s(c,u,r,l,e[p+14],15,-1416354905),l=s(l,c,u,r,e[p+5],21,-57434055),r=s(r,l,c,u,e[p+12],6,1700485571),u=s(u,r,l,c,e[p+3],10,-1894986606),c=s(c,u,r,l,e[p+10],15,-1051523),l=s(l,c,u,r,e[p+1],21,-2054922799),r=s(r,l,c,u,e[p+8],6,1873313359),u=s(u,r,l,c,e[p+15],10,-30611744),c=s(c,u,r,l,e[p+6],15,-1560198380),l=s(l,c,u,r,e[p+13],21,1309151649),r=s(r,l,c,u,e[p+4],6,-145523070),u=s(u,r,l,c,e[p+11],10,-1120210379),c=s(c,u,r,l,e[p+2],15,718787259),l=s(l,c,u,r,e[p+9],21,-343485551),r=n(r,d),l=n(l,f),c=n(c,h),u=n(u,m)}return Array(r,l,c,u)}(function(e){for(var t=Array(e.length>>2),n=0;n<t.length;n++)t[n]=0;for(n=0;n<8*e.length;n+=8)t[n>>5]|=(255&e.charCodeAt(n/8))<<n%32;return t}(e),8*e.length))}(function(e){for(var t,n,r="",i=-1;++i<e.length;)t=e.charCodeAt(i),n=i+1<e.length?e.charCodeAt(i+1):0,55296<=t&&t<=56319&&56320<=n&&n<=57343&&(t=65536+((1023&t)<<10)+(1023&n),i++),t<=127?r+=String.fromCharCode(t):t<=2047?r+=String.fromCharCode(192|t>>>6&31,128|63&t):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|63&t):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|63&t));return r}(e)))}},function(e,t,n){var r=n(35),i=n(66),o=n(69),a=n(70),s=window,l=s.document,c=l.head||l.getElementsByTagName("head")[0];function u(){var e=new Error("Request cancelled");return e.isAJAXCancel=!0,e}function p(){var e=new Error("Request timeout");return e.isAJAXTimeout=!0,e}function d(e){return function(t,n){(n="function"==typeof n?{onload:n}:r.extend({},n)).timeout&&(n.timeout=o.parse(n.timeout));var i=r.extend({},n.data);n.nocache&&(i._=+new Date);for(var s=[t=a.append(t,i,{ignoreEmpty:!0}),n],l=2;l<arguments.length;l++)s.push(arguments[l]);return e.apply(this,s)}}var f="onload"in l.createElement("script")?"onload":"onreadystatechange",h=t.getScript=d(function(e,t,n){return new i(function(i,o){var a,d,h;function m(){a&&(h||!a.readyState||/loaded|complete/.test(a.readyState))&&(a[f]=a.onerror=null,c.removeChild(a),a=null,d&&clearTimeout(d),n&&(window[n]=null),h||i())}function v(e){!h&&a&&(h=!0,m(),e&&o(e()))}n&&(s[n]=function(){h||i(r.toArray(arguments))}),a=l.createElement("script"),t.charset&&(a.charset=t.charset),a.async=!0,a[f]=a.onerror=m,a.src=e,c.firstChild?c.insertBefore(a,c.firstChild):c.appendChild(a),t.receiveCancel&&t.receiveCancel.call(s,function(){v(u)});var g=Number(t.timeout);g>0&&(d=setTimeout(function(){v(p)},g))})}),m=t.jsonp=function(e,t){var n;t=r.extend({},t);var c,d,f,m="POST"===String(t.method).toUpperCase();return/[?&]callback=([^&]+)/.test(e)?n=RegExp.$1:(n=t.callbackName||function(e){var t=l.createElement("a");t.href=e;var n=t.pathname.split("/");n=(n[n.length-1]||"index").replace(/\.\w+$/,"");for(var r="jsonp_callback_"+(t.host+"_"+n).replace(/\W+/g,""),i=r,o=1;void 0!==s[i];)i=r+"_"+o++;return i}(e),m||(e=a.append(e,{callback:n}))),m?(c=e,d=t,f=n,new i(function(e,t){var n,i,a,h;function m(){n&&(i.removeEventListener?i.removeEventListener("load",m,!1):i.detachEvent&&i.detachEvent("onload",m),n.parentNode&&n.parentNode.removeChild(n),n=i=null,a&&clearTimeout(a),f&&(window[f]=null),h||e())}function v(e){!h&&n&&(h=!0,m(),e&&t(e()))}f&&(s[f]=function(){h||e(r.toArray(arguments))}),(n=l.createElement("div")).style.display="none";var g=r.randomStr("form-target-");n.innerHTML='<form action="'+c+'" target="'+g+'" method="post"><input type="hidden" name="callback" value="'+f+'" /></form><iframe name="'+g+'" id="'+g+'"></iframe>';var b=n.firstChild;r.each(d.data,function e(t,n){Array.isArray(t)&&t.forEach(function(t){e(t,n)});var r=l.createElement("input");r.type="hidden",r.name=n,r.value=t,b.appendChild(r)});var y=l.body;y.firstChild?y.insertBefore(n,y.firstChild):y.appendChild(n),b.submit(),(i=b.nextSibling).addEventListener?i.addEventListener("load",m,!1):i.attachEvent&&i.attachEvent("onload",m),d.receiveCancel&&d.receiveCancel.call(s,function(){v(u)});var x=Number(o.parse(d.timeout||0));x>0&&(a=setTimeout(function(){v(p)},x))})):h(e,t,n)};t.getImage=d(function(e){return new i(function(t,n){var r=new Image;r.onload=function(){t(e)},r.onabort=r.onerror=function(){n(new Error("Failed to load image"))},r.src=e}).finally(function(){})});var v=t.createXHR=s.XMLHttpRequest?function(){return new s.XMLHttpRequest}:function(){return new s.ActiveXObject("Microsoft.XMLHTTP")},g=/(?:^|;\s*)(?:application|text)\/([a-z]+)/i;t.send=function(e,t){"string"!=typeof e&&(e=(t=e).url),t=t||{};var n=String(t.responseType||t.dataType||"").toLowerCase();return"jsonp"===n?m(e,t):new i(function(i,c){var d,f,h=v();function m(e){f||4===h.readyState||(f=!0,h.abort(),e&&c(e()))}function b(){if(!f){var e=h.readyState,t=4===e?h.status:0;if(4===e&&t){var r,o,a;switch(d&&clearTimeout(d),n=n||function(e){if(g.test(e))return RegExp.$1.toLowerCase()}(h.getResponseHeader("Content-Type"))){case"json":var s=(h.responseText||"").trim();if(s)try{r=JSON.parse(s)}catch(l){o="Invalid JSON format"}break;case"xml":(r=h.responseXML)&&r.documentElement||(o="Invalid XML format");break;default:r=h.responseText}t>=200&&t<300||1223===t||304===t?o&&(a=new Error(o)):((a=new Error("Error (HTTP status code: "+t+")")).code=t,a.data=r),a?c(a):i(r)}}}var y,x=(t.method||"GET").toUpperCase(),w="boolean"!=typeof t.async||t.async,_=t.data,Q=t.headers||{},C=String(t.requestType||"form").toLowerCase();if(_&&("GET"===x||"DELETE"===x?(e=a.append(e,_,{ignoreEmpty:!0}),_=null):("json"===C?(_=JSON.stringify(_),y="application/json; charset=utf-8"):"string"!=typeof _&&(_=a.stringify(_,{ignoreEmpty:!0}),y="application/x-www-form-urlencoded; charset=utf-8"),Q["Content-Type"]=Q["Content-Type"]||y)),t.nocache&&(e=a.append(e,{_:+new Date})),w){var S=Number(o.parse(t.timeout||0));S>0&&(d=setTimeout(function(){m(p)},S)),h.onreadystatechange=b,"onerror"in h&&(h.onerror=function(){d&&clearTimeout(d),f=!0,c(new Error("Network error"))})}t.username?h.open(x,e,w,t.username,t.password):h.open(x,e,w),function(e){var t=l.createElement("div");t.innerHTML='<a href="'+e+'"></a>';var n=t.firstChild;n.href=n.href;var r=n.host!==s.location.host;return t=n=null,r}(e)&&(h.withCredentials=!!t.withCredentials),r.each(Q,function(e,t){h.setRequestHeader(t,e)}),t.beforeSend&&t.beforeSend.call(s,h),h.send(_||""),t.receiveCancel&&t.receiveCancel.call(s,function(){m(u)}),w||b.call(h)})},t.serializeForm=function(e){if("nodeType"in e||"function"!=typeof e.get||(e=e.get(0)),"FORM"!==e.tagName)throw new Error("Form must be an HTML form element");var t,n,r,i,o={},a=e.elements,s=a.length;for(t=0;t<s;t++)r=(n=a[t]).name,!n.disabled&&r&&("INPUT"!==n.tagName||"radio"!==n.type&&"checkbox"!==n.type||n.checked)&&(i="password"===n.type?n.value:n.value.trim(),o.hasOwnProperty(r)?(Array.isArray(o[r])||(o[r]=[o[r]]),o[r].push(i)):o[r]=i);return o}},,function(e,t,n){n.r(t),n(65);var r=n(7),i=n.n(r),o=n(3),a=n.n(o),s=n(8),l=n.n(s),c=n(4),u=n.n(c),p=n(56),d=n.n(p);function f(e,t){var n=[],r=d()(e),i=r[0],o=r.slice(1);if(void 0===i)return n;var a=t.find(function(e){return e.code===i||e.name===i});return a&&(n=[a]),Array.isArray(a.childrens)&&(n=[].concat(u()(n),u()(f(o,a.childrens)))),n}var h=n(32);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(n,!0).forEach(function(t){l()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var g={name:"plv-cascader-picker-core",data:function(){return{dimension:0}},props:{value:{type:Array,default:function(){return[]},validator:function(e){return Array.isArray(e)}},data:{type:Array,default:function(){return[]},validator:function(e){return Array.isArray(e)}},tabList:{type:Array,default:function(){return[]},validator:function(e){return Array.isArray(e)}},wrapClass:String,tabWrapClass:String,tabItemClass:String,tabItemSelectedClass:String,listClass:String,listItemClass:String,listItemSelectedClass:String},computed:{tabListData:function(){var e=u()(this.tabList);return f(this.value,this.data).forEach(function(t,n){n<e.length&&(e[n]=t.name)}),e},listData:function(){var e=[],t=f(this.value,this.data);if(0===this.dimension)e=u()(this.data);else{var n=t[this.dimension-1];Array.isArray(n&&n.childrens)&&(e=u()(n.childrens))}return e.map(function(e){var n=e.code,r=t.findIndex(function(e){return e.code===n});return v(v({},e),{},{selected:-1!==r})})},isFinish:function(){var e=f(this.value,this.data),t=e[e.length-1]||{};return e.length&&(!t.childrens||!t.childrens.length)||this.tabList.length&&this.tabList.length<=e.length}},methods:{handleTabClick:function(e){var t=this,n=f(this.value,this.data)[e-1];(0===e||Array.isArray(n&&n.childrens))&&(this.dimension=e),setTimeout(function(){t.$emit("handleUpdatePopper")})},handleListClick:function(e){var t=this,n=u()(this.value);n[this.dimension]=e.code,n=n.slice(0,this.dimension+1),this.$emit("input",n),this.$nextTick(function(){t.isFinish?t.$emit("finish"):t.dimension+=1}),setTimeout(function(){t.$emit("handleUpdatePopper")})}},render:function(){var e=this,t=arguments[0];return t("div",{class:this.wrapClass},[t("div",{class:this.tabWrapClass},[this.tabListData.map(function(n,r){var i=[e.tabItemClass];return r===e.dimension&&i.push(e.tabItemSelectedClass),t("div",{class:i,on:{click:function(){return e.handleTabClick(r)}}},[n])})]),t("div",{class:this.listClass},[this.listData.map(function(n){var r=[e.listItemClass];n.selected&&r.push(e.listItemSelectedClass);var i={label:n.name,selected:n.selected};return t("div",{class:r,on:{click:function(){return e.handleListClick(n)}}},[Object(h.b)(e,"item",i)])})])])},getSelectData:f,isSelectFinish:function(e,t){var n=f(e,t),r=n[n.length-1]||{};return n.length&&(!r.childrens||!r.childrens.length)},install:function(e){e.component(g.name,g)}},b=g,y=n(6),x=n(57),w=n.n(x),_=n(58),Q={md5:w.a,ajax:_.send},C={};function S(e){var t=e||y.a.getConfig("AreaPicker","areaDataUrl")||"https://s4.videocc.net/library/china-area/china-area-20200630.json";return C[t]||(C[t]=new Promise(function(e){i()(a.a.mark(function n(){var r;return a.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,Q.ajax({url:t});case 1:r=n.sent,e(r);case 2:case"end":return n.stop()}},n)}))()})),C[t]}var T={props:{value:{type:Array,default:function(){return[]},validator:function(e){return Array.isArray(e)}},areaData:{type:Array,default:function(){return[]}},areaDataUrl:{type:String,default:""},precision:{type:String,default:"area",validator:function(e){return-1!==["","area","city","province"].indexOf(e)}},placeholder:{type:String,default:"请选择省市区"}},methods:{loadAreaDataUrl:function(){return S(this.areaDataUrl)}},loadAreaDataUrl:S},E={name:"plv-area-picker-core",mixins:[T,n(21).b],components:{PlvCascaderPickerCore:b},methods:{handleSelectChange:function(e){this.$emit("input",e)},handleSelectFinish:function(){this.$emit("finish")},handleUpdatePopper:function(){this.$emit("handleUpdatePopper")}},computed:{tabList:function(){var e=[this.$uiLang("areaPicker.province","省份"),this.$uiLang("areaPicker.city","城市"),this.$uiLang("areaPicker.area","地区")];switch(this.precision){case"province":return e.slice(0,1);case"city":return e.slice(0,2);case"area":return e.slice(0,3)}return e}},getSelectData:b.getSelectData,isSelectFinish:b.isSelectFinish,loadAreaDataUrl:S},O=n(0),P={name:"plv-area-picker-mob",mixins:[T],components:{PlvAreaPickerCore:Object(O.a)(E,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"plv-area-picker__popper"},[n("plv-cascader-picker-core",{staticClass:"plv-area-picker__popper__inner",attrs:{"tab-wrap-class":"plv-area-picker__tab","tab-item-class":"plv-area-picker__tab__item","tab-item-selected-class":"plv-area-picker__tab__item--selected","list-class":"plv-area-picker__list","list-item-class":"plv-area-picker__list__item","list-item-selected-class":"plv-area-picker__list__item--selected","tab-list":e.tabList,value:e.value,data:e.areaData},on:{input:e.handleSelectChange,handleUpdatePopper:e.handleUpdatePopper,finish:e.handleSelectFinish},scopedSlots:e._u([{key:"item",fn:function(t){return n("div",{staticClass:"plv-area-picker__list__item__inner"},[e._t("item",[e._v(e._s(t.label))],null,t)],2)}}],null,!0)})],1)},[],!1,null,null,null).exports},data:function(){return{realAreaData:[]}},watch:{areaData:{immediate:!0,handler:function(){var e=this;return i()(a.a.mark(function t(){return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==e.areaData.length){t.next=2;break}return t.next=1,e.loadAreaDataUrl();case 1:e.realAreaData=t.sent,t.next=3;break;case 2:e.realAreaData=e.areaData;case 3:case"end":return t.stop()}},t)}))()}}},methods:{handleInput:function(e){this.$emit("input",e)},handleFinish:function(){this.$emit("finish")}},getSelectData:b.getSelectData,isSelectFinish:b.isSelectFinish,loadAreaDataUrl:S},k=Object(O.a)(P,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"plv-area-picker-mob"},[n("plv-area-picker-core",{attrs:{value:e.value,"area-data":e.realAreaData},on:{input:e.handleInput,finish:e.handleFinish},scopedSlots:e._u([{key:"item",fn:function(t){return n("div",{staticClass:"plv-area-picker-mob__area__item__inner"},[n("span",[e._v(e._s(t.label))]),e._v(" "),n("span",{staticClass:"plv-front-mob-icon-check"})])}}])})],1)},[],!1,null,null,null).exports;k.install=function(e){e.component(k.name,k)},t.default=k},,,,,function(e,t,n){},function(e,t,n){(function(t){var r;void 0!==t?r=t.Promise:"undefined"!=typeof window&&(r=window.Promise),(r=n(r?67:68)).series=function(e){return e.length?e.slice(1).reduce(function(e,t){return e.then(function(e){return t(e)})},e[0]()):r.resolve()},r.delay=function(e){return new r(function(t){setTimeout(t,e)})},e.exports=r}).call(this,n(43))},function(e,t,n){var r=n(35).createClass(function(e){this._promise=new Promise(e)},{then:function(e,t){var n=this;return new r(function(r){r(n._promise.then(e,t))})},spread:function(e,t){var n=this;return new r(function(r){r(n._promise.then(function(t){return e.apply(this,t)},t))})},catch:function(e){var t=this;return new r(function(n){n(t._promise.catch(e))})},finally:function(e){var t=this;return new r(function(n,r){t._promise.then(function(t){e.apply(this,arguments),n(t)},function(t){e.apply(this,arguments),r(t)})})}});["all","race","reject","resolve"].forEach(function(e){r[e]=Promise[e]}),e.exports=r},function(e,t,n){var r=n(35),i="undefined"!=typeof console&&"function"==typeof console.error?function(e){console.error("Uncaught (in promise) %o",e)}:function(e){throw e};function o(e,t,n){var r;(r=e)&&"function"==typeof r.then?e.then(t,n):t(e)}var a=r.createClass(function(e){if("function"!=typeof e)throw new Error("Executor must be a function");var t=this;function n(e){t._settle(2,e)}t._status=0,t._pendings={};try{e(function(e){o(e,function(e){t._settle(1,e)},n)},n)}catch(r){n(r)}},{_settle:function(e,t){var n=this;0===n._status&&(n._status=e,n._value=t,setTimeout(function(){if(2!==n._status||n._hasRejectedHandler){var r=n._pendings[e];r&&r.forEach(function(e){e(t)}),delete n._pendings}else i(t)},0))},_listen:function(e,t){var n=this;2===e&&(n._hasRejectedHandler=!0),n._pendings?(n._pendings[e]=n._pendings[e]||[],n._pendings[e].push(t)):n._status===e&&setTimeout(function(){t(n._value)},0)},_then:function(e,t,n){var r=this;return new a(function(i,a){r._listen(1,function(){var t=r._value;if(e)try{t=n&&Array.isArray(t)?e.apply(this,t):e.call(this,t)}catch(s){return void a(s)}o(t,i,a)}),r._listen(2,function(){var e=r._value;if(t){try{e=t.call(this,e)}catch(n){return void a(n)}o(e,i,a)}else a(e)})})},then:function(e,t){return this._then(e,t)},spread:function(e){return this._then(e,null,!0)},catch:function(e){return this.then(null,e)},finally:function(e){var t=this;return new a(function(n,r){function i(){var i,o=t._value;switch(t._status){case 1:i=function(){n(o)};break;case 2:i=function(){r(o)}}if(e)try{e()}catch(a){return void r(a)}i&&i()}t._listen(1,i),t._listen(2,i)})}});r.extend(a,{all:function(e){var t=e.length;return t?new a(function(n,r){var i=new Array(t);e.forEach(function(e,o){e.then(function(e){i[o]=e,--t||n(i)},r)})}):a.resolve([])},race:function(e){return new a(function(t,n){e.forEach(function(e){e.then(t,n)})})},resolve:function(e){return new a(function(t,n){o(e,t,n)})},reject:function(e){return new a(function(t,n){n(e)})}}),e.exports=a},function(e,t){var n={SEC:1e3,MIN:6e4,HOUR:36e5,DAY:864e5,MONTH:2592e6,YEAR:31536e6},r=t.parse=function(e){if("number"==typeof e)return e;if(!isNaN(e))return Number(e);var t=parseFloat(e);if(isNaN(t))throw new Error("Invalid timespan string");var r=e.split(t)[1].trim().toUpperCase().replace(/S$/,"");if(n.hasOwnProperty(r))return t*n[r];throw new Error('Invalid time unit "'+r+'"')};t.addToDate=function(e,t){return new Date(("number"==typeof e?e:e.getTime())+r(t))}},function(e,t,n){var r=n(35);t.parse=function(e,t){if("string"!=typeof e)return{};t=r.extend({decode:decodeURIComponent},t);var n={};return e.split("&").forEach(function(e){if(e){e=e.split("=");var r=t.decode(e[0]),i=t.decode(e[1]||"");!i&&t.ignoreEmpty||(n.hasOwnProperty(r)?(Array.isArray(n[r])||(n[r]=[n[r]]),n[r].push(i)):n[r]=i)}}),n};var i=t.stringify=function(e,t){if("object"!=typeof e)return"";t=r.extend({encode:encodeURIComponent},t);var n,i,o=[];function a(e,n){null==n&&(n=""),""===n&&t.ignoreEmpty||o.push(t.encode(e)+"="+t.encode(n))}function s(e){a(n,e)}for(n in e)e.hasOwnProperty(n)&&(i=e[n],Array.isArray(i)?i.forEach(s):a(n,i));return o.join("&")};t.append=function(e,t,n){if(!("string"==typeof t&&""!==t||"object"==typeof t&&!r.isEmptyObject(t)))return e;var o=e.indexOf("#"),a="";return-1!==o&&(a=e.substring(o,e.length),e=e.substring(0,o)),e=e.replace(/[?&]$/,""),t="string"!=typeof t?i(t,n):t.replace(/^[?&]/,""),e+(-1!==e.indexOf("?")?"&":"?")+t+a}}]).default);u(c({},tl()),{value:bn.array(),areaPickerText:bn.array(),placeholder:bn.string}),c({input:()=>!0},Is("areaPickerText")),bn.looseString,bn.looseString,bn.looseNumber,bn.looseNumber,bn.looseNumber,bn.bool.def(!0),bn.looseString,bn.oneOf(Zs),bn.bool.def(!1),bn.bool.def(!1),bn.object().def({}),bn.object().def({}),bn.number.def(170),bn.number.def(Vs?52:40),bn.looseNumber,bn.func(),bn.enum(),bn.oneOf(Zs).def("inline"),bn.bool.def(!1);const al=e=>{const{props:t}=e,{PaymentProvider:n}={PaymentProvider:t.paymentTarget.PaymentProvider};const{injectData:r}=Ke(),{$t:i}=mn(),o=f.ref([]),a=f.computed(()=>{const e=o.value.includes(n.Alipay);return Xe&&(He||e)}),s=f.computed(()=>1===o.value.length&&o.value[0]===n.Alipay),l=f.computed(()=>1===o.value.length&&o.value[0]===n.Wechat);return{supportPayProviders:o,isSupportPay:a,onlySupportAlipay:s,onlySupportWechatPay:l,getPayProviders:function(){return d(this,null,function*(){const e=yield t.paymentTarget.getPayProviders();o.value=e})},payWithWechat:function(e){return d(this,null,function*(){return new Promise(n=>d(null,null,function*(){if(!He)return n({success:!1,failReason:"notInWechatBrowser",failMessage:i("order.wechatPayTips")});if(!r.getWeixinSdk)return n({success:!1,failReason:"sdkNotAvailable",failMessage:i("order.payFailed")});let o;try{o=yield r.getWeixinSdk()}catch(a){return n({success:!1,failReason:"sdkNotAvailable",failMessage:i("order.payFailed")})}if(!o)return n({success:!1,failReason:"sdkNotAvailable",failMessage:i("order.payFailed")});o.chooseWXPay({timestamp:e.timestamp,nonceStr:e.nonceStr,package:e.package,signType:e.signType,paySign:e.paySign,success:e=>{n({success:!0,data:e||{}})},cancel:()=>{n({success:!1,failReason:"userCancelled",failMessage:i("order.cancelPay")})},fail:e=>{t.paymentTarget.interactionCore.logger.error("wx","choose-wx-pay-fail",JSON.stringify(e)),n({success:!1,failReason:"payFailed",failMessage:(null==e?void 0:e.errMsg)||i("order.payFailed")})}})}))})},payWithAli:function(e){const t=document.createElement("a");t.href=e,t.click()}}},sl=()=>({productTarget:we.object().isRequired,productConfig:we.object().def({})});function ll(e){return{ProductType:e.ProductType,ProductLinkType:e.ProductLinkType,ProductLinkJumpWay:e.ProductLinkJumpWay,ProductBuyType:e.ProductBuyType,ProductStatus:e.ProductStatus,ProductPriceType:e.ProductPriceType,ProductExplainStatus:e.ProductExplainStatus,ProductMediaType:e.ProductMediaType,ProductDeliveryType:e.ProductDeliveryType,ProductEvents:e.ProductEvents,ProductPushRule:e.ProductPushRule}}const cl=Symbol("PRODUCT_PROVIDE_KEY"),ul=()=>{const e=f.inject(cl),t=e.getProductTarget();return c({productTarget:t,productConfig:e.productConfig},ll(t))},pl=e=>{const{props:t,emitNotSupportDirectBuy:n}=e,{getEmitter:r,toast:i}=Ke(),{$t:o}=mn(),{isSupportPay:a,getPayProviders:s}=al({props:t});return{handleDirectBuy:function(e){return d(this,null,function*(){(yield t.productTarget.getSupportToDirectBuy())?a.value?(r().emit(lt.CloseProductDetailPopup),r().emit(lt.OpenProductOrderPopup,[e])):null==n||n(e):i(o("product.disableBuy"))})},getPayProviders:s}},dl=e=>{const{product:t}=e;let n,r;if(e.entranceProps){const t=ll(e.entranceProps.productTarget);n=t.ProductType,r=t.ProductBuyType}else{const e=ul();n=e.ProductType,r=e.ProductBuyType}const i=f.computed(()=>{let e;return e="function"==typeof t?t():f.unref(t),function(e){if(!n||!r||!e)return{enabled:!1,stock:0};if(e.productType===n.Normal){if(e.buyType===r.Link&&e.forceShowSoldOut)return{enabled:!0,stock:0};if(e.buyType===r.DirectBuy&&(null==e?void 0:e.stockEnabled))return{enabled:!0,stock:e.stock}}return{enabled:!1,stock:0}}(e)}),o=f.computed(()=>i.value.enabled&&i.value.stock<=0);return{stock:i,isSoldOut:o}},fl=e=>{let t;{const e=ul();t=e.productTarget}if(!t)throw new Error("useProductExplainEnabled fail: productTarget is undefined");const n=f.ref(!1);return f.onMounted(()=>{!function(){d(this,null,function*(){const e=yield t.getProductExplainEnabled();n.value=e})}()}),{productExplainEnabled:n}};function hl(e,t,n,r){null==n&&(n=""),""===n&&r.ignoreEmpty||("function"==typeof r.encode&&(t=r.encode(t),n=-1!==["boolean","string","number"].indexOf(typeof n)?r.encode(String(n)):""),e.push(t+"="+n))}function ml(e,t,n,r){n.forEach(n=>{hl(e,t,n,r)})}function vl(e,t){const n=function(e,...t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(let n=0;n<t.length;n++){const r=t[n];if(null!=r)for(const t in r)"__proto__"!==t&&Mr(r,t)&&(e[t]=r[t])}return e}({encode:encodeURIComponent},t),r=[];let i,o;for(i in e)Mr(e,i)&&(o=e[i],Array.isArray(o)?ml(r,i,o,n):hl(r,i,o,n));return r.join("&")}function gl(e,t,n){if(e=String(e),null==t)return e;if(!(t="string"==typeof t?t.replace(/^[?&]/,""):vl(t,n)))return e;const r=function(e){const t={leftContext:""};let n=e.indexOf("#");return-1!==n&&(t.hash=e.slice(n+1),e=e.slice(0,n)),n=e.indexOf("?"),-1!==n&&(t.search=e.slice(n+1),e=e.slice(0,n)),t.leftContext=e,t}(e);let i=r.search||"";return i&&"&"!==i.slice(-1)&&(i+="&"),i+=t,r.search=i,function(e){let t=e.leftContext;return null!=e.search&&(t+="?"+e.search),null!=e.hash&&(t+="#"+e.hash),t}(r)}var bl=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})};const yl=Re(),xl=yl.os.isAndroid,wl=yl.os.isIOS;var _l,Ql,Cl;function Sl(e){var t,n,r,i;const{androidLink:o,iosLink:a,otherLink:s}=e;if(!(null===(t=window.AndroidNative)||void 0===t?void 0:t.toPointMall)&&!(null===(i=null===(r=null===(n=window.webkit)||void 0===n?void 0:n.messageHandlers)||void 0===r?void 0:r.gotoPointsMall)||void 0===i?void 0:i.postMessage))return void window.open(s,"_blank","noopener=yes");let l=xl?o:a;l=gl(l,{plt_back_uri:encodeURIComponent(location.href)}),function(e){var t,n,r,i,o,a;xl?null===(n=null===(t=window.AndroidNative)||void 0===t?void 0:t.toPointMall)||void 0===n||n.call(t,e):wl&&(null===(a=null===(o=null===(i=null===(r=window.webkit)||void 0===r?void 0:r.messageHandlers)||void 0===i?void 0:i.gotoPointsMall)||void 0===o?void 0:o.postMessage)||void 0===a||a.call(o,e))}(JSON.stringify({url:l}))}function Tl(e,t){let n={};if(t){const r=t(e);n=Object.assign({},n,r)}return gl(e,n)}function El(e){const{linkData:t,openLink:n,isPlvWebview:r,getPlvWebviewSmallWindowSize:i,getPlvWebviewBridge:o,isWxMiniProgramEnv:a,toWxMiniProgram:s,getLinkParams:l,isMobile:c}=e,{linkType:u}=t,p=(null==r?void 0:r())||!1;if(u!==_l.Native){if(p){let e="";const{link:n,mobileLink:r,mobileAppLink:a,wxMiniprogramOriginalId:s,wxMiniprogramLink:c}=t;switch(u){case _l.Normal:e=n;break;case _l.MultiPlatform:e=a||r}let p=null;return u!==_l.Normal&&(p={mobileLink:Tl(r,l),wxMiniprogramOriginalId:s,wxMiniprogramLink:Tl(c,l),mobileAppLink:Tl(a,l)}),void function(e){bl(this,void 0,void 0,function*(){const{getPlvWebviewSmallWindowSize:t,getPlvWebviewBridge:n}=e,r=(null==t?void 0:t())||{width:90,height:160},i=yield null==n?void 0:n();i&&i.sendData("clickProduct",{width:r.width,height:r.height,newPage:!0,link:e.link,data:e.data})})}({link:Tl(e,l),data:p,getPlvWebviewSmallWindowSize:i,getPlvWebviewBridge:o})}if(u!==_l.Normal)u===_l.MultiPlatform&&function(e){bl(this,void 0,void 0,function*(){const{linkData:t,isWxMiniProgramEnv:n,toWxMiniProgram:r,openLink:i,getLinkParams:o,isMobile:a}=e,{wxMiniprogramLink:s,mobileLink:l,pcLink:c}=t,u=(null==a?void 0:a())||!1;let p=!1;try{p=(yield null==n?void 0:n())||!1}catch(d){p=!1}p&&s&&r?r(Tl(s,o)):u&&l?i(Tl(l,o),Cl.NewWindow):!u&&c&&i(Tl(c,o),Cl.NewWindow)})}({linkData:t,getLinkParams:l,isWxMiniProgramEnv:a,toWxMiniProgram:s,openLink:n,isMobile:c});else{const{link:e,jumpWay:r}=t;n(Tl(e,l),r)}}else Sl({androidLink:Tl(t.androidLink,l),iosLink:Tl(t.iosLink,l),otherLink:Tl(t.otherLink,l)})}(Ql=_l||(_l={}))[Ql.Normal=10]="Normal",Ql[Ql.MultiPlatform=11]="MultiPlatform",Ql[Ql.Native=12]="Native",function(e){e.PopUp="POP_UP",e.NewWindow="NEW_WINDOW",e.CurrentWindow="CURRENT_WINDOW"}(Cl||(Cl={}));const Ol=e=>{const{injectData:t}=Ke();return{trackEvent:function(n){t.trackEventCallback?t.trackEventCallback(n):e.trackEvent(n)}}},Pl=(e={})=>{const{injectData:t}=Ke(),n=We.gte("7.0.12"),r=f.ref(!1),i=f.computed(()=>He&&n&&Xe);function o(){return d(this,null,function*(){var e;if(!He||!t.getWeixinSdk)return!1;const n=yield t.getWeixinSdk();return!!(null==(e=null==n?void 0:n.miniProgram)?void 0:e.getEnv)&&new Promise(e=>{var t;null==(t=n.miniProgram)||t.getEnv(t=>{e(!0===(null==t?void 0:t.miniprogram))})})})}f.onMounted(()=>{!function(){d(this,null,function*(){const e=yield o();r.value=e})}()});const a=f.ref(),s=f.computed(()=>{var t;return null==(t=e.getButtonOptions)?void 0:t.call(e)});function l(){if(!a.value||!i.value)return;const t=s.value;if(!t)return;const{wxMiniprogramOriginalId:n,wxMiniprogramLink:r,classKey:o}=t,l=a.value,c=l.clientWidth,u=l.clientHeight,p="wx-open-launch-weapp-"+Wi(8),d=`\n <wx-open-launch-weapp\n id="${p}"\n username="${f=n,null==f?f:String(f).replace(Vi,e=>Bi[e])}"\n path="${r}"\n >\n <script type="text/wxtag-template">\n <style>.plv-iar-${o}-wx-buy-btn {width: ${c}px;height: ${u}px;}</style>\n <div class="plv-iar-${o}-wx-buy-btn"></div>\n <\/script>\n </wx-open-launch-weapp>\n `;var f;l.innerHTML=d,setTimeout(()=>{const t=document.querySelector(`#${p}`);null==t||t.addEventListener("launch",()=>{e.launchCallback&&e.launchCallback()}),null==t||t.addEventListener("error",e=>{const t=e;console.error("Launch error",t.detail)})},10)}return f.watch(()=>[a.value,i.value,s.value],()=>{setTimeout(()=>{l()},500)},{immediate:!0}),{isHighWeixinVersion:n,isWxMiniProgramWebview:r,supportWxOpenLaunchWeapp:i,supportWxMiniProgramNavigateTo:o,toWxMiniProgram:function(e){return d(this,null,function*(){var n;if(!He||!t.getWeixinSdk)return;const r=yield t.getWeixinSdk();null==(n=null==r?void 0:r.miniProgram)||n.navigateTo({url:e.startsWith("/")?e:`/${e}`})})},weixinBtnRef:a,createWxMiniProgramButton:l}},kl=e=>{const{props:t,emit:n}=e,{isSoldOut:r}=dl({product:()=>t.productData}),{getEmitter:i,injectData:o}=Ke(),{$t:a}=mn(),s=f.computed(()=>t.productConfig),{isWxMiniProgramWebview:l,supportWxOpenLaunchWeapp:u,weixinBtnRef:p,toWxMiniProgram:h,supportWxMiniProgramNavigateTo:m}=Pl({getButtonOptions:()=>{const e=t.productData;return{wxMiniprogramOriginalId:e.wxMiniprogramOriginalId,wxMiniprogramLink:T(e.wxMiniprogramLink),classKey:"product"}},launchCallback:()=>O()}),{supportAppNative:v}=(()=>{function e(){var e,t,n,r;return Fe?null==(e=window.AndroidNative)?void 0:e.toPointMall:Ve?null==(r=null==(n=null==(t=window.webkit)?void 0:t.messageHandlers)?void 0:n.gotoPointsMall)?void 0:r.postMessage:void 0}function t(){return!!e()}const n=f.computed(()=>t());return{getNativeToPointMallFn:e,supportNativeToPointMall:t,supportAppNative:n,toNativeLink:function(t){const{androidLink:n,iosLink:r,otherLink:i}=t,o=e();if(o){let e=Fe?n:r;return e=gl(e,{plt_back_uri:encodeURIComponent(location.href)}),void o(JSON.stringify({url:e}))}window.open(i,"_blank","noopener=yes")}}})(),{trackEvent:g}=Ol(t.productTarget.interactionCore),{ProductBuyType:b,ProductType:y}=ll(t.productTarget),x=f.computed(()=>t.productData.productType===y.Normal&&t.productData.buyType===b.DirectBuy),w=f.computed(()=>{var e;return null!=(e=s.value.isPreviewMode)&&e}),_=f.computed(()=>{const e=t.productData;if(s.value.customProductDisabled){return!!s.value.customProductDisabled(e)}return!!t.disabled||!w.value&&(!!r.value||(e.productType===y.Normal&&!e.priceVisible&&e.realPrice>0||!x.value&&(e.linkType===_l.Normal?!e.link:e.linkType===_l.MultiPlatform?Q.value:e.linkType===_l.Native&&(v.value?!e.androidLink&&!e.iosLink:!e.otherLink))))}),Q=f.computed(()=>{const{pcLink:e,mobileLink:n,wxMiniprogramLink:r,mobileAppLink:i}=t.productData;return!C.value&&((!l.value||!r)&&(Xe?!n&&!i:!!Xe||!e))}),C=f.computed(()=>"function"!=typeof s.value.customClickButtonHandler&&(!x.value&&(!l.value&&(u.value&&!!t.productData.wxMiniprogramOriginalId)))),S=f.computed(()=>{let e=a("product.button.normal");switch(t.productData.productType){case y.Normal:e=a("product.button.normal");break;case y.Finance:e=a("product.button.finance");break;case y.Position:e=a("product.button.position")}return t.productData.buttonText||e});function T(e,t={}){let n=c({},t);if(s.value.getLinkParams){const t=s.value.getLinkParams(e);n=Object.assign({},n,t)}return gl(e,n)}function E(e,t){switch(t){case Cl.NewWindow:window.open(e,"_blank","noopener=yes");break;case Cl.CurrentWindow:window.location.href=e;break;case Cl.PopUp:i().emit(lt.OpenProductIframeLinkPopup,e);break;default:window.open(e,"_blank","noopener=yes")}}function O(){return d(this,null,function*(){const e=t.productData,n=yield t.productTarget.getCurrentPushingProduct();g({event_id:"product_click_button",event_type:"click",spec_attrs:{buyType:e.productType===y.Normal?e.buyType:"",deliveryType:e.productType===y.Normal?e.deliveryType:"",name:e.name,productId:e.productId,productType:e.productType,productPushRule:(null==n?void 0:n.pushRule)||""}}),t.productTarget.sendProductClickEvent({productId:e.productId,name:e.name,productType:e.productType})})}return{isButtonDisabled:_,isWeixinButton:C,isPreviewMode:w,buttonText:S,weixinBtnRef:p,formatProductLink:T,onClickLinkBtn:function(){const e=t.productData;if(O(),s.value.customClickButtonHandler)return void s.value.customClickButtonHandler(e);if(x.value)return void n("direct-buy",t.productData);El({linkData:function(){const e=t.productData;return{linkType:e.linkType,jumpWay:e.jumpWay,link:e.link,pcLink:e.pcLink,mobileLink:e.mobileLink,mobileAppLink:e.mobileAppLink,androidLink:e.androidLink,iosLink:e.iosLink,otherLink:e.otherLink,wxMiniprogramOriginalId:e.wxMiniprogramOriginalId,wxMiniprogramAppId:e.wxMiniprogramAppId,wxMiniprogramLink:e.wxMiniprogramLink}}(),getLinkParams:s.value.getLinkParams,openLink:E,isPlvWebview:o.isPlvWebview,isMobile:o.isMobile,getPlvWebviewBridge:o.getPlvWebviewBridge,getPlvWebviewSmallWindowSize:o.getPlvWebviewSmallWindowSize,isWxMiniProgramEnv:m,toWxMiniProgram:h})}}};const Ml=at(f.defineComponent({__name:"product-button",props:u(c({},sl()),{productData:we.object().isRequired,disabled:we.bool.def(!1)}),emits:{"direct-buy":()=>!0},setup(e,{emit:t}){const n=e,{isButtonDisabled:r,buttonText:i,isWeixinButton:o,isPreviewMode:a,weixinBtnRef:s,onClickLinkBtn:l}=kl({props:n,emit:t});return{__sfc:!0,props:n,emit:t,isButtonDisabled:r,buttonText:i,isWeixinButton:o,isPreviewMode:a,weixinBtnRef:s,onClickLinkBtn:l}}}),function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t("div",{staticClass:"plv-product-button",class:{"is-disabled":n.isButtonDisabled}},[t("div",{staticClass:"plv-product-button__render"},[e._t("default",null,{buttonText:n.buttonText,disabled:n.isButtonDisabled})],2),n.isButtonDisabled||n.isPreviewMode?e._e():[n.isWeixinButton?t("div",{key:"weixin-btn",ref:"weixinBtnRef",staticClass:"plv-product-button__inner plv-product-button__inner--wx"}):t("div",{key:"link-btn",staticClass:"plv-product-button__inner plv-product-button__inner--link",on:{click:function(e){return e.stopPropagation(),n.onClickLinkBtn.apply(null,arguments)}}})]],2)},[]).exports;const Al=at(f.defineComponent({__name:"product-explain",props:{product:we.object().isRequired},setup(e){const t=e,{$t:n}=mn(),{ProductExplainStatus:r,productTarget:i,productConfig:o}=ul(),{productExplainEnabled:a}=fl();return{__sfc:!0,props:t,$t:n,ProductExplainStatus:r,productTarget:i,productConfig:o,productExplainEnabled:a,handleClickExplain:function(){return d(this,null,function*(){const e=t.product;if("function"==typeof o.value.customClickExplainHandler)return void o.value.customClickExplainHandler(e);const n=yield i.generateProductExplainPageUrl({productId:e.productId});n&&window.open(n,"_blank")})},isMobile:Xe,liveGif:"data:image/gif;base64,R0lGODlhKgAqAKIEAP7//////v3//////////wAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ4IDc5LjE2NDAzNiwgMjAxOS8wOC8xMy0wMTowNjo1NyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIxLjAgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QzFEQjYxNzBBNjg5MTFFQjhBN0REMjM4Qzk4RDRFMzciIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QzFEQjYxNzFBNjg5MTFFQjhBN0REMjM4Qzk4RDRFMzciPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpENzE0QTU2QkE2NkUxMUVCOEE3REQyMzhDOThENEUzNyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpENzE0QTU2Q0E2NkUxMUVCOEE3REQyMzhDOThENEUzNyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAkEAAQALAAAAAAqACoAAAOQSLrc/jDKSau9OOvNuxxg6FlACI5VaaKUebKfC8crFJgl5w7Rzm+7XhAogwxUx59m+PDpik1mRtpwEmtR6FRbpV68C+uSyxBvsQ4zBqxQf8lhdgvelk/kbgsezKcT8n1oXXCBIkaFL4OGWYJ1jX9+gISRiEpllJOPe5mLl4+OmpyJaUijC6WWpzgzrK2ur6wJACH5BAkEAAQALAAAAAAqACoAAAOVSLrc/jDKSau9OOvNu/9gOIxkOJGlGaGjurIuxA7xM0cBAJAAd8s7lA8m+2mMjhltg2woh8Ii8ThNNi/XxZNZdWYrX8KWGrWFT13GOBNea9NiuMI9h7ezeHnczi9b+ylefoKDdYV7gX+HeYeGi4AtUo+TiYSVjpGWS2aQm2p6dIiZn40EAQNBowupqgqsPTWxsrO0FAkAIfkECQQABAAsAAAAACoAKgAAA5FIutz+MMpJq7046827/2AojmSJDWhqOqm6Mi36wvG8xEMUAMDAAxxcBJfbCCHEYA151DRZz9PykTROoVdpaxi9dG9f3hbron7PWVqagB6b1+0yWQ52q+l3PBu+VlQbcTJMfHZ1en6BRYB9e4R6X4iOgouFeZOWb4eNlZuXhp6Wiphzog0BPpw9qS1ANq6vsCYJACH5BAkEAAQALAAAAAAqACoAAAONSLrc/jDKSau9OOvNu/9gKI5kaZ7oM6xsugAsALgKzA40Ybf0vUa+3yYIJA59wJ1QY1Q1M89GEOdQUqVIyMDqvHV5XzAjqiAvpuHrOJtWn9lrr9ZMh2PtZTzBnNfX5W1pgnN+hYAOaIiGYneHb459jHGQe4tLipZukZeNkpWUfJ+gmUl6XFV6OaqrrBgJACH5BAkEAAQALAAAAAAqACoAAAOISLrc/jDKSau9OOvNu/9gKI5kaZ5oqq6nMAxAzL70MNf2iudPEL8AHuNHe+wiO+Hi6GAanQzoEoeUKqwE7BXLpUKSz1q4+O2Km94xuWFeo9NR+PSsftXvZfmWHuez23Zvbn96WYVahoeKfn2MiYN7kHOOgEqNkpVVi5iFV0GOn5KhgSylpqcdCQAh+QQJBAAEACwAAAAAKgAqAAADi0i63P4wykmrvTjrzbv/YCiOZGmeaKqubFsOcPwAMfzVtkPXN/7ggx5P54MMALvjr9gARoBBh1PKpFYX0+aVAV0OtV9rGLslZMUydBSc9o4VZ/JbPo/Dy/ey3Yzn6/9zeXWAbWprXIQ5boV0ioiBfoOSjI+Tjo2HbJSRl4KdCwFHc0mfpJkuqKmqEgkAIfkECQQABAAsAAAAACoAKgAAA4JIutz+MMpJq7046827/2AojmRpnmiqrhowvC8Lw/I81DNOO/bt9Q/XCwD4AHk2YxKZgwyIz+fj2KAym9VlFnvdbb0M6xe8ECvMZbRa2421p+yxWw7nyn30t3NtP8fDfGR+fWl/BIFzbXiAhGiDjYaOh4iLhYILAVGXQpuGLJ+goRgJACH5BAkEAAQALAAAAAAqACoAAAOASLrc/jDKSau9OOvNu/9gKI5kaZ5ougxsqyqt+8bsS9CDjes0H/sy1W7WcwCKnWHj2AJ8lAxoA5dzSGFI6/WWXXWjzZr2Nw6WzV7y9JtWg91t8YM6Z2+x9jz8vef2735/emh8hIFyhVV1g4hximeNeIaAA0yGlpEEmI82nZ6fGwkAIfkECQQABAAsAAAAACoAKgAAA3dIutz+MMpJq7046827/2AojmRpXkOqno26soubwrFMK/JwE/ne3z9aEDZkFU9HU7KUDLgCn+QSZXNMc4CHtKrdurpfSE5n5TKu3lfLvGbj3Dz4Gy6DlsNg/Jkuj/P1NYB7f2qDhW2CfodzizEAhDN3jTuUlZYYCQAh+QQJBAAEACwAAAAAKgAqAAADgEi63P4wykmrvTjrzbv/YCiOZGmeaLoMbKsqrfvG7EvQg43rNB/7MtVu1nMAip1h49gCfJQMaAOXc0hhSOv1ll11o82a9jcOls1e8vSbVoPdbfGDOmdvsfY8/L3n9u9+f3pofISBcoVVdYOIcYpnjXiGgANMhpaRBJiPNp2enxsJACH5BAkEAAQALAAAAAAqACoAAAOCSLrc/jDKSau9OOvNu/9gKI5kaZ5oqq4aMLwvC8PyPNQzTjv27fUP1wsA+AB5NmMSmYMMiM/n49igMpvVZRZ73W29DOsXvBArzGW0WtuNtafssVsO58p99LdzbT/Hw3xkfn1pfwSBc214gIRog42GjoeIi4WCCwFRl0KbhiyfoKEYCQAh+QQJBAAEACwAAAAAKgAqAAADi0i63P4wykmrvTjrzbv/YCiOZGmeaKqubFsOcPwAMfzVtkPXN/7ggx5P54MMALvjr9gARoBBh1PKpFYX0+aVAV0OtV9rGLslZMUydBSc9o4VZ/JbPo/Dy/ey3Yzn6/9zeXWAbWprXIQ5boV0ioiBfoOSjI+Tjo2HbJSRl4KdCwFHc0mfpJkuqKmqEgkAIfkECQQABAAsAAAAACoAKgAAA4hIutz+MMpJq7046827/2AojmRpnmiqrqcwDEDMvvQw1/aK508QvwAe40d77CI74eLoYBqdDOgSh5QqrATsFculQpLPWrj47Yqb3jG5YV6j01H49Kx+1e9l+ZYe57Pbdm9uf3pZhVqGh4p+fYyJg3uQc46ASo2SlVWLmIVXQY6fkqGBLKWmpx0JACH5BAkEAAQALAAAAAAqACoAAAONSLrc/jDKSau9OOvNu/9gKI5kaZ7oM6xsugAsALgKzA40Ybf0vUa+3yYIJA59wJ1QY1Q1M89GEOdQUqVIyMDqvHV5XzAjqiAvpuHrOJtWn9lrr9ZMh2PtZTzBnNfX5W1pgnN+hYAOaIiGYneHb459jHGQe4tLipZukZeNkpWUfJ+gmUl6XFV6OaqrrBgJACH5BAkEAAQALAAAAAAqACoAAAORSLrc/jDKSau9OOvNu/9gKI5kiQ1oajqpujIt+sLxvMRDFADAwAMcXASX2wghxGANedQ0Wc/T8pE0TqFXaWsYvXRvX94W66J+z1lamoAem9ftMlkOdqvpdzwbvlZUG3EyTHx2dXp+gUWAfXuEel+IjoKLhXmTlm+HjZWbl4aeloqYc6INAT6cPaktQDaur7AmCQAh+QQFBAAEACwAAAAAKgAqAAADlUi63P4wykmrvTjrzbv/YDiMZDiRpRmho7qyLsQO8TNHAQCQAHfLO5QPJvtpjI4ZbYNsKIfCIvE4TTYv18WTWXVmK1/Clhq1hU9dxjgTXmvTYrjCPYe3s3h53M4vW/spXn6Cg3WFe4F/h3mHhouALVKPk4mElY6RlktmkJtqenSImZ+NBAEDQaMLqaoKrD01sbKztBQJADs="}}}),function(){var e=this,t=e._self._c,n=e._self._setupProxy;return n.isMobile&&n.productExplainEnabled?t("div",{class:{"plv-product-c-explain--no-cover":!e.product.cover}},[e.product.explainStatus===n.ProductExplainStatus.Explaining?t("div",{staticClass:"plv-product-c-explain--explaining",class:{"plv-product-c-explain--explaining-cover":e.product.cover}},[t("img",{staticClass:"plv-product-c-explain--explaining-icon",attrs:{src:n.liveGif}}),t("span",[e._v(e._s(n.$t("product.explaining")))])]):e.product.explainStatus===n.ProductExplainStatus.Explained?t("div",{staticClass:"plv-product-c-explain--explained",class:{"plv-product-c-explain--explained-cover":e.product.cover},on:{click:function(e){return e.stopPropagation(),n.handleClickExplain.apply(null,arguments)}}},[t("span",[e._v(e._s(n.$t("product.watchExplain")))])]):t("div",{staticClass:"plv-product-c-explain--not-explained",class:{"plv-product-c-explain--not-explained-cover":e.product.cover}},[t("span",[e._v(e._s(n.$t("product.notExplained")))])])]):e._e()},[]).exports;const Ll=at(f.defineComponent({__name:"product-cover",props:{product:bn.object().isRequired},setup(e){const t=e,{$t:n}=mn(),{isSoldOut:r}=dl({product:()=>t.product});return{__sfc:!0,props:t,$t:n,isSoldOut:r,ossCompress:gn,ProductExplain:Al}}}),function(){var e=this,t=e._self._c,n=e._self._setupProxy;return e.product.cover?t("div",{staticClass:"plv-product-item__cover-area"},[t("img",{staticClass:"plv-product-item__cover",attrs:{src:n.ossCompress(e.product.cover,{width:300}),alt:e.product.name}}),n.isSoldOut?t("div",{staticClass:"plv-product-item__cover-stock"},[e._v(" - "+e._s(n.$t("product.stock.soldOut"))+" - ")]):e._e(),e.product.displayNumber?t("div",{staticClass:"plv-product-item__ranking plv-font-din-pro-regular"},[e._v(" "+e._s(e.product.displayNumber)+" ")]):e._e(),t(n.ProductExplain,{staticClass:"plv-product-item__explain",attrs:{product:e.product}})],1):e._e()},[]).exports;const Dl=at(f.defineComponent({__name:"product-feature-tag",props:{tag:we.string.def(""),maxWidth:we.number.def(88)},setup(e){const t=e,n=f.computed(()=>({maxWidth:`${t.maxWidth}px`}));return{__sfc:!0,props:t,containerStyle:n}}}),function(){var e=this,t=e._self._c;return t("div",{staticClass:"plv-product-c-item__tag-container",style:e._self._setupProxy.containerStyle,attrs:{title:e.tag}},[e.tag?t("span",{staticClass:"plv-product-c-item__tag"},[e._v(e._s(e.tag))]):e._e()])},[]).exports;const jl=at(f.defineComponent({__name:"product-title",props:{title:we.string.def(""),useExpand:we.bool.def(!1),useEllipsis:we.bool.def(!1)},setup(e){const t=e,n=f.ref(),r=f.ref(!1);function i(){const e=n.value;if(!e||!e.parentElement)return!1;const t=e.getBoundingClientRect(),r=e.cloneNode(!0);r.style.position="absolute",r.style.top="-9999px",r.style.left="-9999px",r.style.visibility="hidden",r.style.width=`${t.width}px`,r.style.boxSizing="border-box",r.style.whiteSpace="normal",r.style.webkitLineClamp="unset",r.style.display="block",e.parentElement.appendChild(r);const i=r.getBoundingClientRect().height;return e.parentElement.removeChild(r),i>t.height+1}const o=()=>{r.value=i()};return f.onMounted(()=>{o()}),f.watch(()=>t.title,()=>{n.value&&n.value.classList.remove("plv-product-c-item__title--expanded"),f.nextTick(()=>{o()})}),{__sfc:!0,props:t,titleRef:n,moreArrowVisible:r,handleExpand:function(){var e;r.value=!1,null==(e=n.value)||e.classList.add("plv-product-c-item__title--expanded")},isTitleOverflowing:i,checkOverflow:o,ProductIconArrowDown:k}}}),function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t("div",{staticClass:"plv-product-c-item__title-container"},[t("div",{ref:"titleRef",staticClass:"plv-product-c-item__title",class:{"plv-product-c-item__title--single":e.useEllipsis}},[e._t("title-prefix"),e._v(" "+e._s(e.title)+" ")],2),e.useExpand&&n.moreArrowVisible?t("button",{staticClass:"plv-product-c-item__title-more",on:{click:n.handleExpand}},[t(n.ProductIconArrowDown,{staticClass:"plv-product-c-item__title-more-icon"})],1):e._e()])},[]).exports;var Il=(e=>(e.ProductList="productList",e.BigCard="bigCard",e.AggregateStation="aggregateStation",e))(Il||{});const $l=e=>{const{productTarget:t}=e,{ProductType:n}=ll(t),{trackEvent:r}=Ol(null==t?void 0:t.interactionCore),i=f.ref({}),o=f.ref(null),a=f.shallowRef([]);function s(e,t,o){if(!(e&&e.$el&&e.product&&e.product.productId))return;const a=e.$el,s=e.product.productId,l=function(e,t,n){const r=e.offsetTop+e.offsetHeight;return!(r<=t||n<r)}(a,t,o);l&&!i.value[s]&&(i.value=u(c({},i.value),{[s]:!0}),function(e){const t={name:e.name,realPrice:e.productType===n.Normal?e.realPrice:"",productId:e.productId,productType:e.productType,productFeature:JSON.stringify(e.featureTags)};e.productType===n.Normal&&void 0!==e.originPrice&&(t.price=e.originPrice),r({event_id:"product_list_item_view",event_type:"show",spec_attrs:t})}(e.product))}function l(e){return{clickTime:(new Date).getTime(),linkType:Xe?"mobile":"pc",productName:e.name,productId:e.productId,productType:e.productType,feature:JSON.stringify(e.featureTags),price:e.productType===n.Normal?e.originPrice:"",realPrice:e.productType===n.Normal?e.realPrice:""}}return{productListRef:o,setItemRef:function(e){e&&a.value.push(e)},trackProduct:function(){return d(this,null,function*(){yield f.nextTick();const e=o.value;if(!e||!a.value.length)return;const t=e.scrollTop,n=e.clientHeight,r=t+n;a.value.forEach(e=>{s(e,t,r)})})},clearTrackedProducts:function(){i.value={},a.value=[]},trackProductItemClick:function(e){r({event_id:"product_list_item_click",event_type:"click",spec_attrs:c({},l(e))})},trackProductPushItemClick:function(e){r({event_id:"product_push_item_click",event_type:"click",spec_attrs:u(c({},l(e)),{pushId:e.pushLogId||""})})},trackProductPushItemView:function(e){r({event_id:"product_push_item_view",event_type:"show",spec_attrs:{linkType:Xe?"mobile":"pc",productId:e.productId,pushId:e.pushLogId||""}})}}},Nl=e=>{const{props:t,emit:n}=e,{ProductType:r,ProductBuyType:i}=ll(t.productTarget),{getEmitter:o}=Ke(),{trackProductItemClick:a,trackProductPushItemClick:s}=$l({productTarget:t.productTarget}),l=f.ref(!1),c=f.computed(()=>{const{product:e}=t;return!!(e.name&&e.featureTags.length&&e.description&&e.productType!==r.Position)});return f.watchEffect(()=>{!function(){d(this,null,function*(){const{product:e,productTarget:n}=t;if(!e||!n)return!1;const o=yield n.getOutLinkProductRedirectEnabled();l.value=e.productType===r.Normal&&e.buyType===i.Link&&o})}()}),{isProductRedirectLinkDirectly:l,shouldEllipsisTitle:c,onDirectBuy:function(e){n("direct-buy",e)},onClickProductItem:function(){n("click-product-item",t.product),t.scene===Il.BigCard?s(t.product):a(t.product),t.product.productType!==r.Finance&&o().emit(lt.OpenProductDetailPopup,t.product)}}};const Rl=at(f.defineComponent({__name:"product-item",props:u(c({},sl()),{product:we.object().isRequired,scene:we.enum(),isSmallSize:we.bool.def(!1)}),emits:{"click-product-item":()=>!0,"direct-buy":()=>!0,"open-position-detail":()=>!0},setup(e,{emit:t}){const n=e,{ProductExplainStatus:r,ProductType:i}=ul(),{$t:o}=mn(),{isProductRedirectLinkDirectly:a,shouldEllipsisTitle:s,onDirectBuy:l,onClickProductItem:c}=Nl({props:n,emit:t});return{__sfc:!0,props:n,emit:t,ProductExplainStatus:r,ProductType:i,$t:o,isProductRedirectLinkDirectly:a,shouldEllipsisTitle:s,onDirectBuy:l,onClickProductItem:c,ProductPrice:Er,ProductButton:Ml,ProductCover:Ll,ProductExplain:Al,ProductFeatureTag:Dl,ProductTitle:jl,ProductItemScene:Il}}}),function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t(n.ProductButton,{attrs:{"product-data":e.product,"product-target":e.productTarget,"product-config":e.productConfig,disabled:!n.isProductRedirectLinkDirectly}},[t("div",{class:["plv-product-item",{"plv-product-item-no-cover":!e.product.cover,"plv-product-item--topping":e.product.isTopping,"plv-product-item--small-size":e.isSmallSize}],on:{click:n.onClickProductItem}},[e.product.cover&&!e.isSmallSize?t(n.ProductCover,{attrs:{product:e.product}}):e._e(),t("div",{staticClass:"plv-product-item__content"},[t("div",{staticClass:"plv-product-item__content-top"},[e.product.cover&&e.isSmallSize?t(n.ProductCover,{attrs:{product:e.product}}):e._e(),t("div",{staticClass:"plv-product-item__content-top-inner"},[t("div",{staticClass:"plv-product-item__title-area"},[t(n.ProductTitle,{attrs:{title:e.product.name,"use-ellipsis":n.shouldEllipsisTitle},scopedSlots:e._u([{key:"title-prefix",fn:function(){return[e.product.displayNumber&&!e.product.cover?t("div",{staticClass:"plv-product-item__ranking plv-font-din-pro-regular"},[e._v(" "+e._s(e.product.displayNumber)+" ")]):e._e(),e.product.cover||e.product.explainStatus===n.ProductExplainStatus.Explained?e._e():t(n.ProductExplain,{staticClass:"plv-product-item__explain",attrs:{product:e.product}})]},proxy:!0}])})],1),e.product.featureTags.length?t("div",{staticClass:"plv-product-item__tags"},e._l(e.product.featureTags,function(e,r){return t(n.ProductFeatureTag,{key:r,attrs:{tag:e}})}),1):e._e(),e.product.description?t("p",{staticClass:"plv-product-item__description"},[e._v(" "+e._s(e.product.description)+" ")]):e._e()])],1),t("div",{staticClass:"plv-product-item__footer"},[t(n.ProductPrice,{attrs:{product:e.product}}),e.product.productType===n.ProductType.Position&&e.productConfig.isProductWebview?t("div",{staticClass:"plv-product-item__position-detail-button",on:{click:function(t){return t.stopPropagation(),n.emit("open-position-detail",e.product)}}},[e._v(" "+e._s(n.$t("product.position.detail"))+" ")]):e._e(),e.product.explainStatus!==n.ProductExplainStatus.Explained||e.product.cover?e._e():t(n.ProductExplain,{staticClass:"plv-product-item__explained--no-cover",class:{"plv-product-item__explained--no-cover-position":e.product.productType===n.ProductType.Position&&e.productConfig.isProductWebview},attrs:{product:e.product}}),e.scene!==n.ProductItemScene.BigCard?t(n.ProductButton,{attrs:{"product-data":e.product,"product-target":e.productTarget,"product-config":e.productConfig},on:{"direct-buy":n.onDirectBuy},scopedSlots:e._u([{key:"default",fn:function({buttonText:n,disabled:r}){return[t("button",{staticClass:"plv-product-item__buy-button",class:{"plv-product-item__buy-button--disabled":r}},[e._v(" "+e._s(n)+" ")])]}}],null,!1,477326030)}):e._e()],1)])],1)])},[]).exports,zl=()=>c(c({},sl()),{paymentTarget:we.object().isRequired}),Bl=e=>{const{props:t,emit:n,scene:r}=e,{ProductType:i,ProductPushRule:o,ProductBuyType:a}=ll(t.productTarget),{getEmitter:s}=Ke(),{trackProductPushItemView:l,trackProductPushItemClick:p}=$l({productTarget:t.productTarget}),{handleDirectBuy:h,getPayProviders:m}=pl({props:t,emitNotSupportDirectBuy:function(){n("not-support-direct-buy",b.value)}}),v=f.ref(!1),g=f.ref(!1),b=f.ref(),y=f.ref(),x=f.ref(0),w=f.ref(0),_=f.ref(),Q=f.ref(!1),C=f.ref(),S=f.computed(()=>!!_.value&&(x.value>0&&_.value.productHotEffectEnabled));function T(){v.value=!0}function E(){f.nextTick(()=>{g.value=!0})}function O(){v.value=!1,g.value=!1}function P(){b.value=void 0,y.value=void 0}function k(e){x.value=0,b.value=e.productData,y.value=e.pushRule,C.value=e.productData.productId,O(),e.pushRule===o.BigCard&&r===o.BigCard&&(s().emit(lt.OpenProductBigCardPopup),l(e.productData)),e.pushRule===o.SmallCard&&r===o.SmallCard&&(s().emit(lt.OpenProductSmallCardPopup),l(e.productData))}function M(e){var t;x.value=0,e.productId===(null==(t=b.value)?void 0:t.productId)&&(C.value=void 0,P(),O())}function A(e){b.value&&(e.productData.displayNumber>=b.value.displayNumber||b.value&&(b.value.displayNumber=b.value.displayNumber+1))}function L(e){b.value&&(e.productData.productId===C.value&&(C.value=void 0),e.productData.displayNumber>=b.value.displayNumber||b.value&&(b.value.displayNumber=b.value.displayNumber-1))}function D(e){b.value&&e.productData.productId===b.value.productId&&(b.value=e.productData,e.productData.pushRule&&(y.value=e.productData.pushRule))}function j(e){if(!b.value)return;const t=e.targetProducts.findIndex(e=>{var t;return e.productId===(null==(t=b.value)?void 0:t.productId)});-1!==t&&(b.value=e.targetProducts[t],e.targetProducts[t].pushRule&&(y.value=e.targetProducts[t].pushRule))}function I(e){b.value&&b.value.productId===e.productId&&b.value.productType===i.Normal&&(b.value.stock=0)}function $(e){b.value&&e.productId===b.value.productId&&(C.value=void 0,P(),O())}function N(){return d(this,null,function*(){if(!t.productTarget)return;const e=yield t.productTarget.getCurrentPushingProduct(C.value);e&&(b.value=u(c({},e),{pushRule:y.value||e.pushRule||o.SmallCard}))})}function R(e){b.value&&b.value.productId===e.productId&&(x.value=e.times)}return f.watch(b,(e,t)=>d(null,null,function*(){t&&e&&e.productId!==t.productId&&(w.value=0,yield f.nextTick(),x.value=0)}),{deep:!0}),f.watch(x,(e,t)=>{void 0!==t&&(w.value=t)}),f.watch(g,e=>{n("small-card-visible-change",e)}),et(lt.OpenProductBigCardPopup,T),et(lt.OpenProductSmallCardPopup,E),f.onMounted(()=>d(null,null,function*(){!function(){const e=t.productTarget;if(!e)return;const n=e.ProductEvents;e.eventEmitter.on(n.PushProduct,k),e.eventEmitter.on(n.CancelPushProduct,M),e.eventEmitter.on(n.OnSaleProduct,A),e.eventEmitter.on(n.OffSaleProduct,L),e.eventEmitter.on(n.ChangeProduct,D),e.eventEmitter.on(n.MoveProduct,j),e.eventEmitter.on(n.ProductSoldOut,I),e.eventEmitter.on(n.DeleteProduct,$),e.eventEmitter.on(n.RefreshProductList,N),e.eventEmitter.on(n.ProductClickTimes,R)}(),yield function(){return d(this,null,function*(){if(!t.productTarget)return;const e=yield t.productTarget.getCurrentPushingProduct();e?k({productData:e,pushRule:e.pushRule||o.SmallCard}):M({})})}(),m(),function(){d(this,null,function*(){if(!t.productTarget||!b.value)return;const e=yield t.productTarget.getOutLinkProductRedirectEnabled();Q.value=b.value.productType===i.Normal&&b.value.buyType===a.Link&&e})}(),function(){d(this,null,function*(){if(!t.productTarget)return;const e=yield t.productTarget.getProductHotSaleConfig();_.value=e})}()})),f.onBeforeUnmount(()=>{!function(){const e=t.productTarget.ProductEvents;t.productTarget.eventEmitter.off(e.PushProduct,k),t.productTarget.eventEmitter.off(e.CancelPushProduct,M),t.productTarget.eventEmitter.off(e.OnSaleProduct,A),t.productTarget.eventEmitter.off(e.OffSaleProduct,L),t.productTarget.eventEmitter.off(e.ChangeProduct,D),t.productTarget.eventEmitter.off(e.MoveProduct,j),t.productTarget.eventEmitter.off(e.ProductSoldOut,I),t.productTarget.eventEmitter.off(e.DeleteProduct,$),t.productTarget.eventEmitter.off(e.RefreshProductList,N),t.productTarget.eventEmitter.off(e.ProductClickTimes,R)}()}),{bigCardVisible:v,smallCardVisible:g,productData:b,currentPushRule:y,hotSaleTimes:x,lastHotSaleTimes:w,isProductRedirectLinkDirectly:Q,hotSaleConfig:_,productHotEffectEnabled:S,openBigCard:T,openSmallCard:E,close:O,reset:P,openProductDetailPopup:function(){b.value&&(p(b.value),b.value.productType!==i.Finance&&s().emit(lt.OpenProductDetailPopup,b.value))},handleDirectBuy:h}};const Fl=at(f.defineComponent({__name:"big-card",props:u(c({},zl()),{productData:we.object()}),emits:{"direct-buy":()=>!0},setup(e,{emit:t}){const n=e,{$t:r}=mn();return{__sfc:!0,props:n,emit:t,$t:r,onDirectBuy:function(){t("direct-buy",n.productData)},ProductItem:Rl,ProductButton:Ml,ProductItemScene:Il}}}),function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t("div",{staticClass:"plv-product-big-card"},[t("div",{staticClass:"plv-product-big-card__title"},[e._v(" "+e._s(n.$t("bigCard.title"))+" ")]),e.productData?t("div",{staticClass:"plv-product-big-card__content"},[t(n.ProductItem,{staticClass:"plv-product-big-card__item",attrs:{scene:n.ProductItemScene.BigCard,product:e.productData,"product-target":e.productTarget,"product-config":e.productConfig}})],1):e._e(),e.productData?t("div",{staticClass:"plv-product-big-card__bottom"},[t(n.ProductButton,{attrs:{"product-data":e.productData,"product-target":e.productTarget,"product-config":e.productConfig},on:{"direct-buy":n.onDirectBuy},scopedSlots:e._u([{key:"default",fn:function({buttonText:n,disabled:r}){return[t("button",{staticClass:"plv-product-big-card__buy-button",class:{"plv-product-big-card__buy-button--disabled":r}},[e._v(" "+e._s(n)+" ")])]}}],null,!1,3984514254)})],1):e._e()])},[]).exports;const Vl=at(f.defineComponent({__name:"big-card-popup",props:c(c({},{popupConfig:we.object()}),zl()),emits:{"not-support-direct-buy":()=>!0,"small-card-visible-change":()=>!0},setup(e,{expose:t,emit:n}){const r=e;(e=>{const t=f.computed(()=>e.productConfig);f.provide(cl,{getProductTarget:()=>e.productTarget,productConfig:t});const n=e.productTarget;c({productTarget:n,productConfig:t},ll(n))})(r),(e=>{const t=e.productTarget,n=f.computed(()=>e.productConfig);f.provide(In,{getProductTarget:()=>e.productTarget,productConfig:n}),c({productTarget:t,productConfig:n},jn(t))})(r);const{ProductPushRule:i}=ll(r.productTarget),o=f.computed(()=>Xe?.7:0),{bigCardVisible:a,productData:s,openBigCard:l,close:u,handleDirectBuy:p}=Bl({props:r,emit:n,scene:i.BigCard});return t({open:l,close:u}),{__sfc:!0,props:r,emit:n,ProductPushRule:i,contentHeightPercent:o,bigCardVisible:a,productData:s,openBigCard:l,close:u,handleDirectBuy:p,CommonPopup:st,productEvents:lt,ProductIconClose:A,BigCard:Fl}}}),function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t(n.CommonPopup,{attrs:{background:"none","show-header":!1,"open-event":n.productEvents.OpenProductBigCardPopup,"popup-config":e.popupConfig,"content-height-percent":n.contentHeightPercent},model:{value:n.bigCardVisible,callback:function(e){n.bigCardVisible=e},expression:"bigCardVisible"}},[t("transition",{attrs:{name:"plv-product-big-card-scale"}},[n.bigCardVisible?t(n.BigCard,e._b({attrs:{"product-data":n.productData},on:{"direct-buy":n.handleDirectBuy}},"big-card",n.props,!1)):e._e()],1),t("div",{staticClass:"plv-product-big-card-close-btn",on:{click:n.close}},[t(n.ProductIconClose,{staticClass:"plv-product-big-card-close-btn__icon"})],1)],1)},[]).exports;module.exports=Vl,console.log("%c@polyv/product-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[component: big-card-popup]","[version: 1.5.0]","[buildTime: 2025-09-26 02:37:56]");
@@ -37040,8 +37040,8 @@ console.log(
37040
37040
  "%c@polyv/product-ui",
37041
37041
  "background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff",
37042
37042
  "[component: big-card-popup]",
37043
- "[version: 1.5.0-rc-20250925.1]",
37044
- "[buildTime: 2025-09-25 02:58:10]"
37043
+ "[version: 1.5.0]",
37044
+ "[buildTime: 2025-09-26 02:37:55]"
37045
37045
  );
37046
37046
  export {
37047
37047
  bigCardPopup as default