@polyv/product-ui 1.8.0-rc-20251204.1 → 1.8.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.
- package/address-edit.cjs.js +1 -1
- package/address-edit.es.js +2 -2
- package/address-edit.umd.js +1 -1
- package/address-item.cjs.js +1 -1
- package/address-item.es.js +2 -2
- package/address-item.umd.js +1 -1
- package/address-list.cjs.js +1 -1
- package/address-list.es.js +2 -2
- package/address-list.umd.js +2 -2
- package/big-card-popup.cjs.js +1 -1
- package/big-card-popup.es.js +2 -2
- package/big-card-popup.umd.js +1 -1
- package/index.cjs.js +1 -1
- package/index.es.js +2 -2
- package/index.umd.js +1 -1
- package/mobile-product-pendant.cjs.js +1 -1
- package/mobile-product-pendant.es.js +2 -2
- package/mobile-product-pendant.umd.js +1 -1
- package/order-confirm.cjs.js +1 -1
- package/order-confirm.es.js +2 -2
- package/order-confirm.umd.js +1 -1
- package/order-detail.cjs.js +1 -1
- package/order-detail.es.js +2 -2
- package/order-detail.umd.js +1 -1
- package/order-item.cjs.js +1 -1
- package/order-item.es.js +2 -2
- package/order-item.umd.js +1 -1
- package/order-list-popup.cjs.js +1 -1
- package/order-list-popup.es.js +2 -2
- package/order-list-popup.umd.js +1 -1
- package/order-list.cjs.js +1 -1
- package/order-list.es.js +2 -2
- package/order-list.umd.js +1 -1
- package/order-popup.cjs.js +1 -1
- package/order-popup.es.js +2 -2
- package/order-popup.umd.js +1 -1
- package/package.json +1 -1
- package/pc-product-pendant.cjs.js +1 -1
- package/pc-product-pendant.es.js +2 -2
- package/pc-product-pendant.umd.js +1 -1
- package/product-button.cjs.js +2 -2
- package/product-button.es.js +2 -2
- package/product-button.umd.js +1 -1
- package/product-detail-popup.cjs.js +1 -1
- package/product-detail-popup.es.js +2 -2
- package/product-detail-popup.umd.js +1 -1
- package/product-detail.cjs.js +1 -1
- package/product-detail.es.js +2 -2
- package/product-detail.umd.js +1 -1
- package/product-iframe-link-popup.cjs.js +1 -1
- package/product-iframe-link-popup.es.js +2 -2
- package/product-iframe-link-popup.umd.js +1 -1
- package/product-item.cjs.js +1 -1
- package/product-item.es.js +2 -2
- package/product-item.umd.js +1 -1
- package/product-list-popup.cjs.js +1 -1
- package/product-list-popup.es.js +2 -2
- package/product-list-popup.umd.js +1 -1
- package/product-list.cjs.js +1 -1
- package/product-list.es.js +2 -2
- package/product-list.umd.js +1 -1
- package/small-card.cjs.js +1 -1
- package/small-card.es.js +2 -2
- package/small-card.umd.js +1 -1
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
7
7
|
* Released under the MIT License.
|
|
8
|
-
*/function f(t){return"[object Object]"===Object.prototype.toString.call(t)}function p(){return p=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},p.apply(this,arguments)}function v(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)e.indexOf(n=i[r])>=0||(o[n]=t[n]);return o}const y={silent:!1,logLevel:"warn"},m=["validator"],g=Object.prototype,b=g.toString,h=g.hasOwnProperty,O=/^\s*function (\w+)/;function w(t){var e;const n=null!==(e=null==t?void 0:t.type)&&void 0!==e?e:t;if(n){const t=n.toString().match(O);return t?t[1]:""}return""}const j=function(t){var e,n;return!1!==f(t)&&(void 0===(e=t.constructor)||!1!==f(n=e.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))},C=t=>t;let T=C;if("production"!=={}.NODE_ENV){const t="undefined"!=typeof console;T=t?function(t,e=y.logLevel){!1===y.silent&&console[e](`[VueTypes warn]: ${t}`)}:C}const S=(t,e)=>h.call(t,e),_=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},A=Array.isArray||function(t){return"[object Array]"===b.call(t)},x=t=>"[object Function]"===b.call(t),P=(t,e)=>j(t)&&S(t,"_vueTypes_name")&&(!e||t._vueTypes_name===e),M=t=>j(t)&&(S(t,"type")||["_vueTypes_name","validator","default","required"].some(e=>S(t,e)));function k(t,e){return Object.defineProperty(t.bind(e),"__original",{value:t})}function D(t,e,n=!1){let r,o=!0,i="";r=j(t)?t:{type:t};const s=P(r)?r._vueTypes_name+" - ":"";if(M(r)&&null!==r.type){if(void 0===r.type||!0===r.type)return o;if(!r.required&&null==e)return o;A(r.type)?(o=r.type.some(t=>!0===D(t,e,!0)),i=r.type.map(t=>w(t)).join(" or ")):(i=w(r),o="Array"===i?A(e):"Object"===i?j(e):"String"===i||"Number"===i||"Boolean"===i||"Function"===i?function(t){if(null==t)return"";const e=t.constructor.toString().match(O);return e?e[1].replace(/^Async/,""):""}(e)===i:e instanceof r.type)}if(!o){const t=`${s}value "${e}" should be of type "${i}"`;return!1===n?(T(t),!1):t}if(S(r,"validator")&&x(r.validator)){const t=T,i=[];if(T=t=>{i.push(t)},o=r.validator(e),T=t,!o){const t=(i.length>1?"* ":"")+i.join("\n* ");return i.length=0,!1===n?(T(t),o):t}}return o}function I(t,e){const n=Object.defineProperties(e,{_vueTypes_name:{value:t,writable:!0},isRequired:{get(){return this.required=!0,this}},def:{value(t){return void 0===t?this.type===Boolean||Array.isArray(this.type)&&this.type.includes(Boolean)?void(this.default=void 0):(S(this,"default")&&delete this.default,this):x(t)||!0===D(this,t,!0)?(this.default=A(t)?()=>[...t]:j(t)?()=>Object.assign({},t):t,this):(T(`${this._vueTypes_name} - invalid default value: "${t}"`),this)}}}),{validator:r}=n;return x(r)&&(n.validator=k(r,n)),n}function G(t,e){const n=I(t,e);return Object.defineProperty(n,"validate",{value(t){return x(this.validator)&&T(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:\n${JSON.stringify(this)}`),this.validator=k(t,this),this}})}function J(t,e,n){const r=function(t){const e={};return Object.getOwnPropertyNames(t).forEach(n=>{e[n]=Object.getOwnPropertyDescriptor(t,n)}),Object.defineProperties({},e)}(e);if(r._vueTypes_name=t,!j(n))return r;const{validator:o}=n,i=v(n,m);if(x(o)){let{validator:t}=r;t&&(t=null!==(a=(s=t).__original)&&void 0!==a?a:s),r.validator=k(t?function(e){return t.call(this,e)&&o.call(this,e)}:o,r)}var s,a;return Object.assign(r,i)}function R(t){return t.replace(/^(?!\s*$)/gm," ")}const F=()=>G("any",{}),K=()=>G("function",{type:Function}),E=()=>G("boolean",{type:Boolean}),B=()=>G("string",{type:String}),N=()=>G("number",{type:Number}),U=()=>G("array",{type:Array}),Z=()=>G("object",{type:Object});function H(t,e="custom validation failed"){if("function"!=typeof t)throw new TypeError("[VueTypes error]: You must provide a function as argument");return I(t.name||"<<anonymous function>>",{type:null,validator(n){const r=t(n);return r||T(`${this._vueTypes_name} - ${e}`),r}})}function q(t){if(!A(t))throw new TypeError("[VueTypes error]: You must provide an array as argument.");const e=`oneOf - value should be one of "${t.map(t=>"symbol"==typeof t?t.toString():t).join('", "')}".`,n={validator(n){const r=-1!==t.indexOf(n);return r||T(e),r}};if(-1===t.indexOf(null)){const e=t.reduce((t,e)=>{if(null!=e){const n=e.constructor;-1===t.indexOf(n)&&t.push(n)}return t},[]);e.length>0&&(n.type=e)}return I("oneOf",n)}function X(t){if(!A(t))throw new TypeError("[VueTypes error]: You must provide an array as argument");let e=!1,n=!1,r=[];for(let i=0;i<t.length;i+=1){const o=t[i];if(M(o)){if(x(o.validator)&&(e=!0),P(o,"oneOf")&&o.type){r=r.concat(o.type);continue}if(P(o,"nullable")){n=!0;continue}if(!0===o.type||!o.type){T('oneOfType - invalid usage of "true" and "null" as types.');continue}r=r.concat(o.type)}else r.push(o)}r=r.filter((t,e)=>r.indexOf(t)===e);const o=!1===n&&r.length>0?r:null;return I("oneOfType",e?{type:o,validator(e){const n=[],r=t.some(t=>{const r=D(t,e,!0);return"string"==typeof r&&n.push(r),!0===r});return r||T(`oneOfType - provided value does not match any of the ${n.length} passed-in validators:\n${R(n.join("\n"))}`),r}}:{type:o})}function L(t){return I("arrayOf",{type:Array,validator(e){let n="";const r=e.every(e=>(n=D(t,e,!0),!0===n));return r||T(`arrayOf - value validation error:\n${R(n)}`),r}})}function z(t){return I("instanceOf",{type:t})}function Q(t){return I("objectOf",{type:Object,validator(e){let n="";const r=Object.keys(e).every(r=>(n=D(t,e[r],!0),!0===n));return r||T(`objectOf - value validation error:\n${R(n)}`),r}})}function Y(t){const e=Object.keys(t),n=e.filter(e=>{var n;return!(null===(n=t[e])||void 0===n||!n.required)}),r=I("shape",{type:Object,validator(r){if(!j(r))return!1;const o=Object.keys(r);if(n.length>0&&n.some(t=>-1===o.indexOf(t))){const t=n.filter(t=>-1===o.indexOf(t));return T(1===t.length?`shape - required property "${t[0]}" is not defined.`:`shape - required properties "${t.join('", "')}" are not defined.`),!1}return o.every(n=>{if(-1===e.indexOf(n))return!0===this._vueTypes_isLoose||(T(`shape - shape definition does not include a "${n}" property. Allowed keys: "${e.join('", "')}".`),!1);const o=D(t[n],r[n],!0);return"string"==typeof o&&T(`shape - "${n}" property validation error:\n ${R(o)}`),!0===o})}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),r}const V=["name","validate","getter"],W=(()=>{var t;return(t=class{static get any(){return F()}static get func(){return K().def(this.defaults.func)}static get bool(){return void 0===this.defaults.bool?E():E().def(this.defaults.bool)}static get string(){return B().def(this.defaults.string)}static get number(){return N().def(this.defaults.number)}static get array(){return U().def(this.defaults.array)}static get object(){return Z().def(this.defaults.object)}static get integer(){return I("integer",{type:Number,validator(t){const e=_(t);return!1===e&&T(`integer - "${t}" is not an integer`),e}}).def(this.defaults.integer)}static get symbol(){return I("symbol",{validator(t){const e="symbol"==typeof t;return!1===e&&T(`symbol - invalid value "${t}"`),e}})}static get nullable(){return Object.defineProperty({type:null,validator(t){const e=null===t;return!1===e&&T("nullable - value should be null"),e}},"_vueTypes_name",{value:"nullable"})}static extend(t){if(T("VueTypes.extend is deprecated. Use the ES6+ method instead. See https://dwightjack.github.io/vue-types/advanced/extending-vue-types.html#extending-namespaced-validators-in-es6 for details."),A(t))return t.forEach(t=>this.extend(t)),this;const{name:e,validate:n=!1,getter:r=!1}=t,o=v(t,V);if(S(this,e))throw new TypeError(`[VueTypes error]: Type "${e}" already defined`);const{type:i}=o;if(P(i))return delete o.type,Object.defineProperty(this,e,r?{get:()=>J(e,i,o)}:{value(...t){const n=J(e,i,o);return n.validator&&(n.validator=n.validator.bind(n,...t)),n}});let s;return s=r?{get(){const t=Object.assign({},o);return n?G(e,t):I(e,t)},enumerable:!0}:{value(...t){const r=Object.assign({},o);let i;return i=n?G(e,r):I(e,r),r.validator&&(i.validator=r.validator.bind(i,...t)),i},enumerable:!0},Object.defineProperty(this,e,s)}}).defaults={},t.sensibleDefaults=void 0,t.config=y,t.custom=H,t.oneOf=q,t.instanceOf=z,t.oneOfType=X,t.arrayOf=L,t.objectOf=Q,t.shape=Y,t.utils={validate:(t,e)=>!0===D(e,t,!0),toType:(t,e,n=!1)=>n?G(t,e):I(t,e)},t})();!function(t={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var e;(e=class extends W{static get sensibleDefaults(){return p({},this.defaults)}static set sensibleDefaults(e){this.defaults=!1!==e?p({},!0!==e?e:t):{}}}).defaults=p({},t)}();class ${static get string(){return B().def("")}static get looseString(){return B()}static get number(){return N().def(0)}static get looseNumber(){return N()}static get bool(){return E().def(!0)}static get looseBool(){return X([]).def(void 0)}static get looseElement(){return X([]).def(void 0)}}s($,"objectType",Z),s($,"array",()=>U().def([])),s($,"object",Z),s($,"func",K),s($,"oneOf",q),s($,"oneOfType",X),s($,"enum",B),s($,"any",F);const tt=(()=>{let t;return()=>{if(null==t)try{t=function(){const t=document.createElement("canvas");if(t.getContext&&t.getContext("2d")){const e="image/webp";return 0===t.toDataURL(e).indexOf("data:"+e)}return!1}()||function(){let t=!1;const e=navigator.userAgent,n=/\bOS\s([\d_.]+)\slike\sMac\sOS\sX\b/.exec(e);if(n)t=parseInt(n[1])>=14;else{const n=/\bVersion\/([\d.]+)\sSafari\b/.exec(e);n&&(t=parseInt(n[1])>=16)}return t}()}catch(e){t=!1}return t}})();var et,nt;function rt(t,e){const n=function(t){let e;if("undefined"!=typeof document){const n=document.createElement("a");n.href=t,e=n}else if("function"==typeof URL)try{e=new URL(/^\/\//.test(t)?"https:"+t:t)}catch(n){}return e}(t);if(!n)return t;const r=function(t){const e=(t||"").split("."),n=e[e.length-1];return n?n.toLowerCase():""}(n.pathname.split("/").pop());if(!/\.videocc\.net$/i.test(n.hostname)||"svg"===r)return t;const o=function(t,e){let n="";return null==e.width&&null==e.height||(n+="/resize",e.width&&(n+=",w_"+e.width),e.height&&(n+=",h_"+e.height),e.mode&&(n+=",m_"+e.mode),n+=",limit_1"),e.allowAVIF&&"gif"!==t?n+="/format,avif":!0===e.allowWebP||"auto"===e.allowWebP&&tt()?n+="/format,webp/quality,Q_80":e.allowJPG&&"gif"!==t&&(n+="/format,jpg/quality,Q_80"),n}(r,function(t){var e,n;const r="number"==typeof t?{width:t}:t;return r.allowJPG=null===(e=r.allowJPG)||void 0===e||e,r.allowWebP=null!==(n=r.allowWebP)&&void 0!==n?n:"auto",r}(e));return o&&(n.search=function(t,e){let n=!1;return t=t.replace(/([?&]x-oss-process)(?:=([^&]*))?/,(t,r,o)=>(n=!0,/^image/.test(o)?r+"="+o.replace(/\/(?:resize|format|quality)[^/]*/gi,"")+e:t)),n?t:t+(-1===t.indexOf("?")?"?":"&")+"x-oss-process=image"+e}(n.search,o)),n.href}(nt=et||(et={})).LFit="lfit",nt.MFit="mfit",nt.Fill="fill",nt.Pad="pad",nt.Fixed="fixed";const ot=u.defineComponent({__name:"index",props:{iconUrl:$.string,text:$.string,countdownSecond:$.number,countdownTimestamp:$.number},emits:{"click-pendant":()=>!0},setup(t,{emit:e}){const n=t,{startCountDown:r,stopCountDown:o,resetSurplus:i,surplusSecond:s}=d(),a=u.computed(()=>s.value>0?function(t,e={segments:2,digits:2}){if(t=Number(t),isNaN(t)||t<0)throw new Error('"secs" must be a positive integer');let n=2;"auto"===e.segments&&t>=3600?n=3:"number"==typeof e.segments&&-1!==[2,3].indexOf(e.segments)&&(n=e.segments);let r=0|(e.digits||2);r=Math.max(1,r);const o=new Array(r+1).join("0"),i=[60,1];return 3===n&&i.unshift(3600),i.map(e=>{const n=Math.floor(t/e),i=n.toString().length;return t%=e,(o+n).slice(-Math.max(i,r))}).join(":")}(s.value,{segments:"auto"}):n.text),c=u.computed(()=>{const t={};return n.iconUrl&&(t.backgroundImage=`url(${rt(n.iconUrl,{width:120})})`),t});return u.watch(()=>[n.countdownSecond,n.countdownTimestamp],()=>{n.countdownSecond?r({second:n.countdownSecond}):n.countdownTimestamp?r({endTimestamp:n.countdownTimestamp}):(o(),i())},{immediate:!0}),{__sfc:!0,props:n,emit:e,startCountDown:r,stopCountDown:o,resetSurplus:i,surplusSecond:s,pendantText:a,pendantIconStyle:c}}});function it(t,e,n,r,o,i,s,a){var u="function"==typeof t?t.options:t;return e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),{exports:t,options:u}}const st=it(ot,function(){var t=this,e=t._self._c,n=t._self._setupProxy;return e("div",{staticClass:"plv-product-common-pendant",on:{click:function(t){return n.emit("click-pendant")}}},[e("div",{staticClass:"plv-product-common-pendant__icon",style:n.pendantIconStyle}),n.pendantText?e("div",{staticClass:"plv-product-common-pendant__text"},[e("span",[t._v(t._s(n.pendantText))])]):t._e()])},[]).exports;const at="__product-event-emitter-key";function ut(){if(window[at])return window[at];const t={all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(t){t(n)}),(r=e.get("*"))&&r.slice().map(function(e){e(t,n)})}};var e;return window[at]=t,t}var ct=(t=>(t.ZH_CN="zh_CN",t.ZH_TW="zh_TW",t.English="en",t.Japanese="ja",t.Korean="ko",t.Russian="ru",t))(ct||{});const lt="openProductListPopup";var dt="object"==typeof global&&global&&global.Object===Object&&global,ft="object"==typeof self&&self&&self.Object===Object&&self,pt=(dt||ft||Function("return this")()).Symbol,vt=Object.prototype,yt=vt.hasOwnProperty,mt=vt.toString,gt=pt?pt.toStringTag:void 0;var bt=Object.prototype.toString;var ht=pt?pt.toStringTag:void 0;function Ot(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ht&&ht in Object(t)?function(t){var e=yt.call(t,gt),n=t[gt];try{t[gt]=void 0;var r=!0}catch(nt){}var o=mt.call(t);return r&&(e?t[gt]=n:delete t[gt]),o}(t):function(t){return bt.call(t)}(t)}const wt=t=>{const{props:e}=t,{getEmitter:n}=(()=>{const t=u.inject("interactGlobalConfigV2",{globalLang:ct.ZH_CN});return{injectData:t,toast:e=>{t.toast&&t.toast(e)},getEmitter:function(){return t.getEmitter?t.getEmitter():ut()},messageBox:e=>t.messageBox?t.messageBox(e):Promise.resolve(!1)}})(),r=u.ref(""),o=u.ref(!1);return{productTotal:r,isCollapsed:o,onClickPendant:function(){return a(this,null,function*(){if(e.beforeClickInterrupt&&function(t){if(!function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}(t))return!1;var e=Ot(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}(e.beforeClickInterrupt)){if(yield e.beforeClickInterrupt())return}n().emit(lt)})},getProductTotal:function(){return a(this,null,function*(){const t=yield e.productTarget.getProductList();r.value=String(t.total)})},toggleCollapse:function(){o.value=!o.value}}};const jt=it(u.defineComponent({__name:"mobile-product-pendant",props:{productTarget:$.object().isRequired,beforeClickInterrupt:$.func()},setup(t){const e=t,{productTotal:n,onClickPendant:r,getProductTotal:o}=wt({props:e});return u.onMounted(()=>{o()}),{__sfc:!0,props:e,productTotal:n,onClickPendant:r,getProductTotal:o,pendantIcon:"data:image/png;base64,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pG35rjULsNRyM6g+5I5jmM6iB6gIHUGMtUcVZ0h7aOrKYk6kfFJxjLUpD42a2qOKk6sbxKpIIBBf4sl21oKW+wmH12fQfzz2BWS8xzUaeSiuoIZXfsANUc5YUtOqjiqsRSS/yTtehfuKXMG2K0c65CeQa3OP9A07TDJtjNzpN0/Od7dZE78LbwIjeyPk7Suz17Ft47paxJxqkH/x8wBED54ps3cVYZmTmK97pfdSgTgBQMD9LD7qTWhuGvMcWCWqp/OpwtOCF7wMBrRQ9cyJIJGN0hNMOn7dMIMTp4xvQ44fthra2TIZ9IJxf+y5gzCHBG2P14A3jBFOj2ASnevdquhmZNgTNyOQdKICaBIn5xiZ8u1w6T65bEPUpsgAUwHHBGDE4IIIjTivsRUukHurG0cV/88Pl3mKL5FCP4gS6z9vlWOO+/AHED7FNAan1R8V+YYwImZhK99+8cMkOldC1NSOp3pOrlbuRZc266XrjcxKBkWDQIQXOslZUpYUY8ybZcJ71XNkYCXAse0xAKQ/jU0oj8H7VDJJJBOXqfLtEWOOz+s3UsBk2ZP6uOHUOzMVSFagMRKZR1JpXtn03fM9k5Et53o1+fvak/0S9e5DIuEnilaFvkVsbysXWK2J4rPDnxnB9nhhrELYWaKzib8y4qoXTECJF6sXEWy0peIE3Piu30vmCMB0TkhW+pNWif8K2L5RxUTBvZn0rviMpJqRr9fmIOXZYrvwqKgCgXju2Kd6GYRK5Uqu2IeSdW95ijsd63mKJaPsLEorCLDebH8vPXtZ6e/aoiVSpWWmEeIq/uGOcLrMaX7bapB3YPhVaQ/L5afr2qm2yfOr4V381v49NcRYglJ7z2rvT7n2Bgq/ETNCXrgiMwySnwHVYR/WSz/cCXPfHMDBLRfE4dZaJ1DMgdyGpn445sSCMWy6rMnFCY2ivQ5J3Hg6wMsXEcEVbzgKtJfFT9/Iff/ujCSkYxkJCMZyf0t/wVfoDB9IXM0sAAAAABJRU5ErkJggg==",CommonPendant:st}}}),function(){var t=this,e=t._self._c,n=t._self._setupProxy;return e("div",{staticClass:"plv-product-pendant"},[n.productTotal?e(n.CommonPendant,{attrs:{"icon-url":n.pendantIcon,text:n.productTotal&&"0"!==n.productTotal?n.productTotal:""},on:{"click-pendant":n.onClickPendant}}):t._e()],1)},[]).exports;module.exports=jt,console.log("%c@polyv/product-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[component: mobile-product-pendant]","[version: 1.8.0-rc-20251204.1]","[buildTime: 2025-12-04 06:02:36]");
|
|
8
|
+
*/function f(t){return"[object Object]"===Object.prototype.toString.call(t)}function p(){return p=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},p.apply(this,arguments)}function v(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)e.indexOf(n=i[r])>=0||(o[n]=t[n]);return o}const y={silent:!1,logLevel:"warn"},m=["validator"],g=Object.prototype,b=g.toString,h=g.hasOwnProperty,O=/^\s*function (\w+)/;function w(t){var e;const n=null!==(e=null==t?void 0:t.type)&&void 0!==e?e:t;if(n){const t=n.toString().match(O);return t?t[1]:""}return""}const j=function(t){var e,n;return!1!==f(t)&&(void 0===(e=t.constructor)||!1!==f(n=e.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))},C=t=>t;let T=C;if("production"!=={}.NODE_ENV){const t="undefined"!=typeof console;T=t?function(t,e=y.logLevel){!1===y.silent&&console[e](`[VueTypes warn]: ${t}`)}:C}const S=(t,e)=>h.call(t,e),_=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},A=Array.isArray||function(t){return"[object Array]"===b.call(t)},x=t=>"[object Function]"===b.call(t),P=(t,e)=>j(t)&&S(t,"_vueTypes_name")&&(!e||t._vueTypes_name===e),M=t=>j(t)&&(S(t,"type")||["_vueTypes_name","validator","default","required"].some(e=>S(t,e)));function k(t,e){return Object.defineProperty(t.bind(e),"__original",{value:t})}function D(t,e,n=!1){let r,o=!0,i="";r=j(t)?t:{type:t};const s=P(r)?r._vueTypes_name+" - ":"";if(M(r)&&null!==r.type){if(void 0===r.type||!0===r.type)return o;if(!r.required&&null==e)return o;A(r.type)?(o=r.type.some(t=>!0===D(t,e,!0)),i=r.type.map(t=>w(t)).join(" or ")):(i=w(r),o="Array"===i?A(e):"Object"===i?j(e):"String"===i||"Number"===i||"Boolean"===i||"Function"===i?function(t){if(null==t)return"";const e=t.constructor.toString().match(O);return e?e[1].replace(/^Async/,""):""}(e)===i:e instanceof r.type)}if(!o){const t=`${s}value "${e}" should be of type "${i}"`;return!1===n?(T(t),!1):t}if(S(r,"validator")&&x(r.validator)){const t=T,i=[];if(T=t=>{i.push(t)},o=r.validator(e),T=t,!o){const t=(i.length>1?"* ":"")+i.join("\n* ");return i.length=0,!1===n?(T(t),o):t}}return o}function I(t,e){const n=Object.defineProperties(e,{_vueTypes_name:{value:t,writable:!0},isRequired:{get(){return this.required=!0,this}},def:{value(t){return void 0===t?this.type===Boolean||Array.isArray(this.type)&&this.type.includes(Boolean)?void(this.default=void 0):(S(this,"default")&&delete this.default,this):x(t)||!0===D(this,t,!0)?(this.default=A(t)?()=>[...t]:j(t)?()=>Object.assign({},t):t,this):(T(`${this._vueTypes_name} - invalid default value: "${t}"`),this)}}}),{validator:r}=n;return x(r)&&(n.validator=k(r,n)),n}function G(t,e){const n=I(t,e);return Object.defineProperty(n,"validate",{value(t){return x(this.validator)&&T(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:\n${JSON.stringify(this)}`),this.validator=k(t,this),this}})}function J(t,e,n){const r=function(t){const e={};return Object.getOwnPropertyNames(t).forEach(n=>{e[n]=Object.getOwnPropertyDescriptor(t,n)}),Object.defineProperties({},e)}(e);if(r._vueTypes_name=t,!j(n))return r;const{validator:o}=n,i=v(n,m);if(x(o)){let{validator:t}=r;t&&(t=null!==(a=(s=t).__original)&&void 0!==a?a:s),r.validator=k(t?function(e){return t.call(this,e)&&o.call(this,e)}:o,r)}var s,a;return Object.assign(r,i)}function R(t){return t.replace(/^(?!\s*$)/gm," ")}const F=()=>G("any",{}),K=()=>G("function",{type:Function}),E=()=>G("boolean",{type:Boolean}),B=()=>G("string",{type:String}),N=()=>G("number",{type:Number}),U=()=>G("array",{type:Array}),Z=()=>G("object",{type:Object});function H(t,e="custom validation failed"){if("function"!=typeof t)throw new TypeError("[VueTypes error]: You must provide a function as argument");return I(t.name||"<<anonymous function>>",{type:null,validator(n){const r=t(n);return r||T(`${this._vueTypes_name} - ${e}`),r}})}function q(t){if(!A(t))throw new TypeError("[VueTypes error]: You must provide an array as argument.");const e=`oneOf - value should be one of "${t.map(t=>"symbol"==typeof t?t.toString():t).join('", "')}".`,n={validator(n){const r=-1!==t.indexOf(n);return r||T(e),r}};if(-1===t.indexOf(null)){const e=t.reduce((t,e)=>{if(null!=e){const n=e.constructor;-1===t.indexOf(n)&&t.push(n)}return t},[]);e.length>0&&(n.type=e)}return I("oneOf",n)}function X(t){if(!A(t))throw new TypeError("[VueTypes error]: You must provide an array as argument");let e=!1,n=!1,r=[];for(let i=0;i<t.length;i+=1){const o=t[i];if(M(o)){if(x(o.validator)&&(e=!0),P(o,"oneOf")&&o.type){r=r.concat(o.type);continue}if(P(o,"nullable")){n=!0;continue}if(!0===o.type||!o.type){T('oneOfType - invalid usage of "true" and "null" as types.');continue}r=r.concat(o.type)}else r.push(o)}r=r.filter((t,e)=>r.indexOf(t)===e);const o=!1===n&&r.length>0?r:null;return I("oneOfType",e?{type:o,validator(e){const n=[],r=t.some(t=>{const r=D(t,e,!0);return"string"==typeof r&&n.push(r),!0===r});return r||T(`oneOfType - provided value does not match any of the ${n.length} passed-in validators:\n${R(n.join("\n"))}`),r}}:{type:o})}function L(t){return I("arrayOf",{type:Array,validator(e){let n="";const r=e.every(e=>(n=D(t,e,!0),!0===n));return r||T(`arrayOf - value validation error:\n${R(n)}`),r}})}function z(t){return I("instanceOf",{type:t})}function Q(t){return I("objectOf",{type:Object,validator(e){let n="";const r=Object.keys(e).every(r=>(n=D(t,e[r],!0),!0===n));return r||T(`objectOf - value validation error:\n${R(n)}`),r}})}function Y(t){const e=Object.keys(t),n=e.filter(e=>{var n;return!(null===(n=t[e])||void 0===n||!n.required)}),r=I("shape",{type:Object,validator(r){if(!j(r))return!1;const o=Object.keys(r);if(n.length>0&&n.some(t=>-1===o.indexOf(t))){const t=n.filter(t=>-1===o.indexOf(t));return T(1===t.length?`shape - required property "${t[0]}" is not defined.`:`shape - required properties "${t.join('", "')}" are not defined.`),!1}return o.every(n=>{if(-1===e.indexOf(n))return!0===this._vueTypes_isLoose||(T(`shape - shape definition does not include a "${n}" property. Allowed keys: "${e.join('", "')}".`),!1);const o=D(t[n],r[n],!0);return"string"==typeof o&&T(`shape - "${n}" property validation error:\n ${R(o)}`),!0===o})}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),r}const V=["name","validate","getter"],W=(()=>{var t;return(t=class{static get any(){return F()}static get func(){return K().def(this.defaults.func)}static get bool(){return void 0===this.defaults.bool?E():E().def(this.defaults.bool)}static get string(){return B().def(this.defaults.string)}static get number(){return N().def(this.defaults.number)}static get array(){return U().def(this.defaults.array)}static get object(){return Z().def(this.defaults.object)}static get integer(){return I("integer",{type:Number,validator(t){const e=_(t);return!1===e&&T(`integer - "${t}" is not an integer`),e}}).def(this.defaults.integer)}static get symbol(){return I("symbol",{validator(t){const e="symbol"==typeof t;return!1===e&&T(`symbol - invalid value "${t}"`),e}})}static get nullable(){return Object.defineProperty({type:null,validator(t){const e=null===t;return!1===e&&T("nullable - value should be null"),e}},"_vueTypes_name",{value:"nullable"})}static extend(t){if(T("VueTypes.extend is deprecated. Use the ES6+ method instead. See https://dwightjack.github.io/vue-types/advanced/extending-vue-types.html#extending-namespaced-validators-in-es6 for details."),A(t))return t.forEach(t=>this.extend(t)),this;const{name:e,validate:n=!1,getter:r=!1}=t,o=v(t,V);if(S(this,e))throw new TypeError(`[VueTypes error]: Type "${e}" already defined`);const{type:i}=o;if(P(i))return delete o.type,Object.defineProperty(this,e,r?{get:()=>J(e,i,o)}:{value(...t){const n=J(e,i,o);return n.validator&&(n.validator=n.validator.bind(n,...t)),n}});let s;return s=r?{get(){const t=Object.assign({},o);return n?G(e,t):I(e,t)},enumerable:!0}:{value(...t){const r=Object.assign({},o);let i;return i=n?G(e,r):I(e,r),r.validator&&(i.validator=r.validator.bind(i,...t)),i},enumerable:!0},Object.defineProperty(this,e,s)}}).defaults={},t.sensibleDefaults=void 0,t.config=y,t.custom=H,t.oneOf=q,t.instanceOf=z,t.oneOfType=X,t.arrayOf=L,t.objectOf=Q,t.shape=Y,t.utils={validate:(t,e)=>!0===D(e,t,!0),toType:(t,e,n=!1)=>n?G(t,e):I(t,e)},t})();!function(t={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var e;(e=class extends W{static get sensibleDefaults(){return p({},this.defaults)}static set sensibleDefaults(e){this.defaults=!1!==e?p({},!0!==e?e:t):{}}}).defaults=p({},t)}();class ${static get string(){return B().def("")}static get looseString(){return B()}static get number(){return N().def(0)}static get looseNumber(){return N()}static get bool(){return E().def(!0)}static get looseBool(){return X([]).def(void 0)}static get looseElement(){return X([]).def(void 0)}}s($,"objectType",Z),s($,"array",()=>U().def([])),s($,"object",Z),s($,"func",K),s($,"oneOf",q),s($,"oneOfType",X),s($,"enum",B),s($,"any",F);const tt=(()=>{let t;return()=>{if(null==t)try{t=function(){const t=document.createElement("canvas");if(t.getContext&&t.getContext("2d")){const e="image/webp";return 0===t.toDataURL(e).indexOf("data:"+e)}return!1}()||function(){let t=!1;const e=navigator.userAgent,n=/\bOS\s([\d_.]+)\slike\sMac\sOS\sX\b/.exec(e);if(n)t=parseInt(n[1])>=14;else{const n=/\bVersion\/([\d.]+)\sSafari\b/.exec(e);n&&(t=parseInt(n[1])>=16)}return t}()}catch(e){t=!1}return t}})();var et,nt;function rt(t,e){const n=function(t){let e;if("undefined"!=typeof document){const n=document.createElement("a");n.href=t,e=n}else if("function"==typeof URL)try{e=new URL(/^\/\//.test(t)?"https:"+t:t)}catch(n){}return e}(t);if(!n)return t;const r=function(t){const e=(t||"").split("."),n=e[e.length-1];return n?n.toLowerCase():""}(n.pathname.split("/").pop());if(!/\.videocc\.net$/i.test(n.hostname)||"svg"===r)return t;const o=function(t,e){let n="";return null==e.width&&null==e.height||(n+="/resize",e.width&&(n+=",w_"+e.width),e.height&&(n+=",h_"+e.height),e.mode&&(n+=",m_"+e.mode),n+=",limit_1"),e.allowAVIF&&"gif"!==t?n+="/format,avif":!0===e.allowWebP||"auto"===e.allowWebP&&tt()?n+="/format,webp/quality,Q_80":e.allowJPG&&"gif"!==t&&(n+="/format,jpg/quality,Q_80"),n}(r,function(t){var e,n;const r="number"==typeof t?{width:t}:t;return r.allowJPG=null===(e=r.allowJPG)||void 0===e||e,r.allowWebP=null!==(n=r.allowWebP)&&void 0!==n?n:"auto",r}(e));return o&&(n.search=function(t,e){let n=!1;return t=t.replace(/([?&]x-oss-process)(?:=([^&]*))?/,(t,r,o)=>(n=!0,/^image/.test(o)?r+"="+o.replace(/\/(?:resize|format|quality)[^/]*/gi,"")+e:t)),n?t:t+(-1===t.indexOf("?")?"?":"&")+"x-oss-process=image"+e}(n.search,o)),n.href}(nt=et||(et={})).LFit="lfit",nt.MFit="mfit",nt.Fill="fill",nt.Pad="pad",nt.Fixed="fixed";const ot=u.defineComponent({__name:"index",props:{iconUrl:$.string,text:$.string,countdownSecond:$.number,countdownTimestamp:$.number},emits:{"click-pendant":()=>!0},setup(t,{emit:e}){const n=t,{startCountDown:r,stopCountDown:o,resetSurplus:i,surplusSecond:s}=d(),a=u.computed(()=>s.value>0?function(t,e={segments:2,digits:2}){if(t=Number(t),isNaN(t)||t<0)throw new Error('"secs" must be a positive integer');let n=2;"auto"===e.segments&&t>=3600?n=3:"number"==typeof e.segments&&-1!==[2,3].indexOf(e.segments)&&(n=e.segments);let r=0|(e.digits||2);r=Math.max(1,r);const o=new Array(r+1).join("0"),i=[60,1];return 3===n&&i.unshift(3600),i.map(e=>{const n=Math.floor(t/e),i=n.toString().length;return t%=e,(o+n).slice(-Math.max(i,r))}).join(":")}(s.value,{segments:"auto"}):n.text),c=u.computed(()=>{const t={};return n.iconUrl&&(t.backgroundImage=`url(${rt(n.iconUrl,{width:120})})`),t});return u.watch(()=>[n.countdownSecond,n.countdownTimestamp],()=>{n.countdownSecond?r({second:n.countdownSecond}):n.countdownTimestamp?r({endTimestamp:n.countdownTimestamp}):(o(),i())},{immediate:!0}),{__sfc:!0,props:n,emit:e,startCountDown:r,stopCountDown:o,resetSurplus:i,surplusSecond:s,pendantText:a,pendantIconStyle:c}}});function it(t,e,n,r,o,i,s,a){var u="function"==typeof t?t.options:t;return e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),{exports:t,options:u}}const st=it(ot,function(){var t=this,e=t._self._c,n=t._self._setupProxy;return e("div",{staticClass:"plv-product-common-pendant",on:{click:function(t){return n.emit("click-pendant")}}},[e("div",{staticClass:"plv-product-common-pendant__icon",style:n.pendantIconStyle}),n.pendantText?e("div",{staticClass:"plv-product-common-pendant__text"},[e("span",[t._v(t._s(n.pendantText))])]):t._e()])},[]).exports;const at="__product-event-emitter-key";function ut(){if(window[at])return window[at];const t={all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(t){t(n)}),(r=e.get("*"))&&r.slice().map(function(e){e(t,n)})}};var e;return window[at]=t,t}var ct=(t=>(t.ZH_CN="zh_CN",t.ZH_TW="zh_TW",t.English="en",t.Japanese="ja",t.Korean="ko",t.Russian="ru",t))(ct||{});const lt="openProductListPopup";var dt="object"==typeof global&&global&&global.Object===Object&&global,ft="object"==typeof self&&self&&self.Object===Object&&self,pt=(dt||ft||Function("return this")()).Symbol,vt=Object.prototype,yt=vt.hasOwnProperty,mt=vt.toString,gt=pt?pt.toStringTag:void 0;var bt=Object.prototype.toString;var ht=pt?pt.toStringTag:void 0;function Ot(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ht&&ht in Object(t)?function(t){var e=yt.call(t,gt),n=t[gt];try{t[gt]=void 0;var r=!0}catch(nt){}var o=mt.call(t);return r&&(e?t[gt]=n:delete t[gt]),o}(t):function(t){return bt.call(t)}(t)}const wt=t=>{const{props:e}=t,{getEmitter:n}=(()=>{const t=u.inject("interactGlobalConfigV2",{globalLang:ct.ZH_CN});return{injectData:t,toast:e=>{t.toast&&t.toast(e)},getEmitter:function(){return t.getEmitter?t.getEmitter():ut()},messageBox:e=>t.messageBox?t.messageBox(e):Promise.resolve(!1)}})(),r=u.ref(""),o=u.ref(!1);return{productTotal:r,isCollapsed:o,onClickPendant:function(){return a(this,null,function*(){if(e.beforeClickInterrupt&&function(t){if(!function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}(t))return!1;var e=Ot(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}(e.beforeClickInterrupt)){if(yield e.beforeClickInterrupt())return}n().emit(lt)})},getProductTotal:function(){return a(this,null,function*(){const t=yield e.productTarget.getProductList();r.value=String(t.total)})},toggleCollapse:function(){o.value=!o.value}}};const jt=it(u.defineComponent({__name:"mobile-product-pendant",props:{productTarget:$.object().isRequired,beforeClickInterrupt:$.func()},setup(t){const e=t,{productTotal:n,onClickPendant:r,getProductTotal:o}=wt({props:e});return u.onMounted(()=>{o()}),{__sfc:!0,props:e,productTotal:n,onClickPendant:r,getProductTotal:o,pendantIcon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAkFSURBVHic7ZxNbFxXFcd/933MeDy24yRScJuGPhQRNRtiIRCwQLGRg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yTtehfuKXMG2K0c65CeQa3OP9A07TDJtjNzpN0/Od7dZE78LbwIjeyPk7Suz17Ft47paxJxqkH/x8wBED54ps3cVYZmTmK97pfdSgTgBQMD9LD7qTWhuGvMcWCWqp/OpwtOCF7wMBrRQ9cyJIJGN0hNMOn7dMIMTp4xvQ44fthra2TIZ9IJxf+y5gzCHBG2P14A3jBFOj2ASnevdquhmZNgTNyOQdKICaBIn5xiZ8u1w6T65bEPUpsgAUwHHBGDE4IIIjTivsRUukHurG0cV/88Pl3mKL5FCP4gS6z9vlWOO+/AHED7FNAan1R8V+YYwImZhK99+8cMkOldC1NSOp3pOrlbuRZc266XrjcxKBkWDQIQXOslZUpYUY8ybZcJ71XNkYCXAse0xAKQ/jU0oj8H7VDJJJBOXqfLtEWOOz+s3UsBk2ZP6uOHUOzMVSFagMRKZR1JpXtn03fM9k5Et53o1+fvak/0S9e5DIuEnilaFvkVsbysXWK2J4rPDnxnB9nhhrELYWaKzib8y4qoXTECJF6sXEWy0peIE3Piu30vmCMB0TkhW+pNWif8K2L5RxUTBvZn0rviMpJqRr9fmIOXZYrvwqKgCgXju2Kd6GYRK5Uqu2IeSdW95ijsd63mKJaPsLEorCLDebH8vPXtZ6e/aoiVSpWWmEeIq/uGOcLrMaX7bapB3YPhVaQ/L5afr2qm2yfOr4V381v49NcRYglJ7z2rvT7n2Bgq/ETNCXrgiMwySnwHVYR/WSz/cCXPfHMDBLRfE4dZaJ1DMgdyGpn445sSCMWy6rMnFCY2ivQ5J3Hg6wMsXEcEVbzgKtJfFT9/Iff/ujCSkYxkJCMZyf0t/wVfoDB9IXM0sAAAAABJRU5ErkJggg==",CommonPendant:st}}}),function(){var t=this,e=t._self._c,n=t._self._setupProxy;return e("div",{staticClass:"plv-product-pendant"},[n.productTotal?e(n.CommonPendant,{attrs:{"icon-url":n.pendantIcon,text:n.productTotal&&"0"!==n.productTotal?n.productTotal:""},on:{"click-pendant":n.onClickPendant}}):t._e()],1)},[]).exports;module.exports=jt,console.log("%c@polyv/product-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[component: mobile-product-pendant]","[version: 1.8.0]","[buildTime: 2025-12-05 09:18:38]");
|
|
@@ -877,8 +877,8 @@ console.log(
|
|
|
877
877
|
"%c@polyv/product-ui",
|
|
878
878
|
"background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff",
|
|
879
879
|
"[component: mobile-product-pendant]",
|
|
880
|
-
"[version: 1.8.0
|
|
881
|
-
"[buildTime: 2025-12-
|
|
880
|
+
"[version: 1.8.0]",
|
|
881
|
+
"[buildTime: 2025-12-05 09:18:38]"
|
|
882
882
|
);
|
|
883
883
|
export {
|
|
884
884
|
mobileProductPendant as default
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
7
7
|
* Released under the MIT License.
|
|
8
|
-
*/function f(t){return"[object Object]"===Object.prototype.toString.call(t)}function p(){return p=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},p.apply(this,arguments)}function v(t,e){if(null==t)return{};var n,o,r={},i=Object.keys(t);for(o=0;o<i.length;o++)e.indexOf(n=i[o])>=0||(r[n]=t[n]);return r}const y={silent:!1,logLevel:"warn"},m=["validator"],g=Object.prototype,b=g.toString,h=g.hasOwnProperty,O=/^\s*function (\w+)/;function j(t){var e;const n=null!==(e=null==t?void 0:t.type)&&void 0!==e?e:t;if(n){const t=n.toString().match(O);return t?t[1]:""}return""}const w=function(t){var e,n;return!1!==f(t)&&(void 0===(e=t.constructor)||!1!==f(n=e.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))},C=t=>t;let T=C;if("production"!=={}.NODE_ENV){const t="undefined"!=typeof console;T=t?function(t,e=y.logLevel){!1===y.silent&&console[e](`[VueTypes warn]: ${t}`)}:C}const S=(t,e)=>h.call(t,e),P=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},_=Array.isArray||function(t){return"[object Array]"===b.call(t)},x=t=>"[object Function]"===b.call(t),A=(t,e)=>w(t)&&S(t,"_vueTypes_name")&&(!e||t._vueTypes_name===e),M=t=>w(t)&&(S(t,"type")||["_vueTypes_name","validator","default","required"].some(e=>S(t,e)));function k(t,e){return Object.defineProperty(t.bind(e),"__original",{value:t})}function I(t,e,n=!1){let o,r=!0,i="";o=w(t)?t:{type:t};const s=A(o)?o._vueTypes_name+" - ":"";if(M(o)&&null!==o.type){if(void 0===o.type||!0===o.type)return r;if(!o.required&&null==e)return r;_(o.type)?(r=o.type.some(t=>!0===I(t,e,!0)),i=o.type.map(t=>j(t)).join(" or ")):(i=j(o),r="Array"===i?_(e):"Object"===i?w(e):"String"===i||"Number"===i||"Boolean"===i||"Function"===i?function(t){if(null==t)return"";const e=t.constructor.toString().match(O);return e?e[1].replace(/^Async/,""):""}(e)===i:e instanceof o.type)}if(!r){const t=`${s}value "${e}" should be of type "${i}"`;return!1===n?(T(t),!1):t}if(S(o,"validator")&&x(o.validator)){const t=T,i=[];if(T=t=>{i.push(t)},r=o.validator(e),T=t,!r){const t=(i.length>1?"* ":"")+i.join("\n* ");return i.length=0,!1===n?(T(t),r):t}}return r}function D(t,e){const n=Object.defineProperties(e,{_vueTypes_name:{value:t,writable:!0},isRequired:{get(){return this.required=!0,this}},def:{value(t){return void 0===t?this.type===Boolean||Array.isArray(this.type)&&this.type.includes(Boolean)?void(this.default=void 0):(S(this,"default")&&delete this.default,this):x(t)||!0===I(this,t,!0)?(this.default=_(t)?()=>[...t]:w(t)?()=>Object.assign({},t):t,this):(T(`${this._vueTypes_name} - invalid default value: "${t}"`),this)}}}),{validator:o}=n;return x(o)&&(n.validator=k(o,n)),n}function G(t,e){const n=D(t,e);return Object.defineProperty(n,"validate",{value(t){return x(this.validator)&&T(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:\n${JSON.stringify(this)}`),this.validator=k(t,this),this}})}function J(t,e,n){const o=function(t){const e={};return Object.getOwnPropertyNames(t).forEach(n=>{e[n]=Object.getOwnPropertyDescriptor(t,n)}),Object.defineProperties({},e)}(e);if(o._vueTypes_name=t,!w(n))return o;const{validator:r}=n,i=v(n,m);if(x(r)){let{validator:t}=o;t&&(t=null!==(a=(s=t).__original)&&void 0!==a?a:s),o.validator=k(t?function(e){return t.call(this,e)&&r.call(this,e)}:r,o)}var s,a;return Object.assign(o,i)}function R(t){return t.replace(/^(?!\s*$)/gm," ")}const F=()=>G("any",{}),K=()=>G("function",{type:Function}),E=()=>G("boolean",{type:Boolean}),B=()=>G("string",{type:String}),N=()=>G("number",{type:Number}),U=()=>G("array",{type:Array}),Z=()=>G("object",{type:Object});function H(t,e="custom validation failed"){if("function"!=typeof t)throw new TypeError("[VueTypes error]: You must provide a function as argument");return D(t.name||"<<anonymous function>>",{type:null,validator(n){const o=t(n);return o||T(`${this._vueTypes_name} - ${e}`),o}})}function q(t){if(!_(t))throw new TypeError("[VueTypes error]: You must provide an array as argument.");const e=`oneOf - value should be one of "${t.map(t=>"symbol"==typeof t?t.toString():t).join('", "')}".`,n={validator(n){const o=-1!==t.indexOf(n);return o||T(e),o}};if(-1===t.indexOf(null)){const e=t.reduce((t,e)=>{if(null!=e){const n=e.constructor;-1===t.indexOf(n)&&t.push(n)}return t},[]);e.length>0&&(n.type=e)}return D("oneOf",n)}function X(t){if(!_(t))throw new TypeError("[VueTypes error]: You must provide an array as argument");let e=!1,n=!1,o=[];for(let i=0;i<t.length;i+=1){const r=t[i];if(M(r)){if(x(r.validator)&&(e=!0),A(r,"oneOf")&&r.type){o=o.concat(r.type);continue}if(A(r,"nullable")){n=!0;continue}if(!0===r.type||!r.type){T('oneOfType - invalid usage of "true" and "null" as types.');continue}o=o.concat(r.type)}else o.push(r)}o=o.filter((t,e)=>o.indexOf(t)===e);const r=!1===n&&o.length>0?o:null;return D("oneOfType",e?{type:r,validator(e){const n=[],o=t.some(t=>{const o=I(t,e,!0);return"string"==typeof o&&n.push(o),!0===o});return o||T(`oneOfType - provided value does not match any of the ${n.length} passed-in validators:\n${R(n.join("\n"))}`),o}}:{type:r})}function L(t){return D("arrayOf",{type:Array,validator(e){let n="";const o=e.every(e=>(n=I(t,e,!0),!0===n));return o||T(`arrayOf - value validation error:\n${R(n)}`),o}})}function z(t){return D("instanceOf",{type:t})}function Q(t){return D("objectOf",{type:Object,validator(e){let n="";const o=Object.keys(e).every(o=>(n=I(t,e[o],!0),!0===n));return o||T(`objectOf - value validation error:\n${R(n)}`),o}})}function V(t){const e=Object.keys(t),n=e.filter(e=>{var n;return!(null===(n=t[e])||void 0===n||!n.required)}),o=D("shape",{type:Object,validator(o){if(!w(o))return!1;const r=Object.keys(o);if(n.length>0&&n.some(t=>-1===r.indexOf(t))){const t=n.filter(t=>-1===r.indexOf(t));return T(1===t.length?`shape - required property "${t[0]}" is not defined.`:`shape - required properties "${t.join('", "')}" are not defined.`),!1}return r.every(n=>{if(-1===e.indexOf(n))return!0===this._vueTypes_isLoose||(T(`shape - shape definition does not include a "${n}" property. Allowed keys: "${e.join('", "')}".`),!1);const r=I(t[n],o[n],!0);return"string"==typeof r&&T(`shape - "${n}" property validation error:\n ${R(r)}`),!0===r})}});return Object.defineProperty(o,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(o,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),o}const Y=["name","validate","getter"],W=(()=>{var t;return(t=class{static get any(){return F()}static get func(){return K().def(this.defaults.func)}static get bool(){return void 0===this.defaults.bool?E():E().def(this.defaults.bool)}static get string(){return B().def(this.defaults.string)}static get number(){return N().def(this.defaults.number)}static get array(){return U().def(this.defaults.array)}static get object(){return Z().def(this.defaults.object)}static get integer(){return D("integer",{type:Number,validator(t){const e=P(t);return!1===e&&T(`integer - "${t}" is not an integer`),e}}).def(this.defaults.integer)}static get symbol(){return D("symbol",{validator(t){const e="symbol"==typeof t;return!1===e&&T(`symbol - invalid value "${t}"`),e}})}static get nullable(){return Object.defineProperty({type:null,validator(t){const e=null===t;return!1===e&&T("nullable - value should be null"),e}},"_vueTypes_name",{value:"nullable"})}static extend(t){if(T("VueTypes.extend is deprecated. Use the ES6+ method instead. See https://dwightjack.github.io/vue-types/advanced/extending-vue-types.html#extending-namespaced-validators-in-es6 for details."),_(t))return t.forEach(t=>this.extend(t)),this;const{name:e,validate:n=!1,getter:o=!1}=t,r=v(t,Y);if(S(this,e))throw new TypeError(`[VueTypes error]: Type "${e}" already defined`);const{type:i}=r;if(A(i))return delete r.type,Object.defineProperty(this,e,o?{get:()=>J(e,i,r)}:{value(...t){const n=J(e,i,r);return n.validator&&(n.validator=n.validator.bind(n,...t)),n}});let s;return s=o?{get(){const t=Object.assign({},r);return n?G(e,t):D(e,t)},enumerable:!0}:{value(...t){const o=Object.assign({},r);let i;return i=n?G(e,o):D(e,o),o.validator&&(i.validator=o.validator.bind(i,...t)),i},enumerable:!0},Object.defineProperty(this,e,s)}}).defaults={},t.sensibleDefaults=void 0,t.config=y,t.custom=H,t.oneOf=q,t.instanceOf=z,t.oneOfType=X,t.arrayOf=L,t.objectOf=Q,t.shape=V,t.utils={validate:(t,e)=>!0===I(e,t,!0),toType:(t,e,n=!1)=>n?G(t,e):D(t,e)},t})();!function(t={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var e;(e=class extends W{static get sensibleDefaults(){return p({},this.defaults)}static set sensibleDefaults(e){this.defaults=!1!==e?p({},!0!==e?e:t):{}}}).defaults=p({},t)}();class ${static get string(){return B().def("")}static get looseString(){return B()}static get number(){return N().def(0)}static get looseNumber(){return N()}static get bool(){return E().def(!0)}static get looseBool(){return X([]).def(void 0)}static get looseElement(){return X([]).def(void 0)}}a($,"objectType",Z),a($,"array",()=>U().def([])),a($,"object",Z),a($,"func",K),a($,"oneOf",q),a($,"oneOfType",X),a($,"enum",B),a($,"any",F);const tt=(()=>{let t;return()=>{if(null==t)try{t=function(){const t=document.createElement("canvas");if(t.getContext&&t.getContext("2d")){const e="image/webp";return 0===t.toDataURL(e).indexOf("data:"+e)}return!1}()||function(){let t=!1;const e=navigator.userAgent,n=/\bOS\s([\d_.]+)\slike\sMac\sOS\sX\b/.exec(e);if(n)t=parseInt(n[1])>=14;else{const n=/\bVersion\/([\d.]+)\sSafari\b/.exec(e);n&&(t=parseInt(n[1])>=16)}return t}()}catch(e){t=!1}return t}})();var et,nt;function ot(t,e){const n=function(t){let e;if("undefined"!=typeof document){const n=document.createElement("a");n.href=t,e=n}else if("function"==typeof URL)try{e=new URL(/^\/\//.test(t)?"https:"+t:t)}catch(n){}return e}(t);if(!n)return t;const o=function(t){const e=(t||"").split("."),n=e[e.length-1];return n?n.toLowerCase():""}(n.pathname.split("/").pop());if(!/\.videocc\.net$/i.test(n.hostname)||"svg"===o)return t;const r=function(t,e){let n="";return null==e.width&&null==e.height||(n+="/resize",e.width&&(n+=",w_"+e.width),e.height&&(n+=",h_"+e.height),e.mode&&(n+=",m_"+e.mode),n+=",limit_1"),e.allowAVIF&&"gif"!==t?n+="/format,avif":!0===e.allowWebP||"auto"===e.allowWebP&&tt()?n+="/format,webp/quality,Q_80":e.allowJPG&&"gif"!==t&&(n+="/format,jpg/quality,Q_80"),n}(o,function(t){var e,n;const o="number"==typeof t?{width:t}:t;return o.allowJPG=null===(e=o.allowJPG)||void 0===e||e,o.allowWebP=null!==(n=o.allowWebP)&&void 0!==n?n:"auto",o}(e));return r&&(n.search=function(t,e){let n=!1;return t=t.replace(/([?&]x-oss-process)(?:=([^&]*))?/,(t,o,r)=>(n=!0,/^image/.test(r)?o+"="+r.replace(/\/(?:resize|format|quality)[^/]*/gi,"")+e:t)),n?t:t+(-1===t.indexOf("?")?"?":"&")+"x-oss-process=image"+e}(n.search,r)),n.href}(nt=et||(et={})).LFit="lfit",nt.MFit="mfit",nt.Fill="fill",nt.Pad="pad",nt.Fixed="fixed";const rt=t.defineComponent({__name:"index",props:{iconUrl:$.string,text:$.string,countdownSecond:$.number,countdownTimestamp:$.number},emits:{"click-pendant":()=>!0},setup(e,{emit:n}){const o=e,{startCountDown:r,stopCountDown:i,resetSurplus:s,surplusSecond:a}=d(),u=t.computed(()=>a.value>0?function(t,e={segments:2,digits:2}){if(t=Number(t),isNaN(t)||t<0)throw new Error('"secs" must be a positive integer');let n=2;"auto"===e.segments&&t>=3600?n=3:"number"==typeof e.segments&&-1!==[2,3].indexOf(e.segments)&&(n=e.segments);let o=0|(e.digits||2);o=Math.max(1,o);const r=new Array(o+1).join("0"),i=[60,1];return 3===n&&i.unshift(3600),i.map(e=>{const n=Math.floor(t/e),i=n.toString().length;return t%=e,(r+n).slice(-Math.max(i,o))}).join(":")}(a.value,{segments:"auto"}):o.text),c=t.computed(()=>{const t={};return o.iconUrl&&(t.backgroundImage=`url(${ot(o.iconUrl,{width:120})})`),t});return t.watch(()=>[o.countdownSecond,o.countdownTimestamp],()=>{o.countdownSecond?r({second:o.countdownSecond}):o.countdownTimestamp?r({endTimestamp:o.countdownTimestamp}):(i(),s())},{immediate:!0}),{__sfc:!0,props:o,emit:n,startCountDown:r,stopCountDown:i,resetSurplus:s,surplusSecond:a,pendantText:u,pendantIconStyle:c}}});function it(t,e,n,o,r,i,s,a){var u="function"==typeof t?t.options:t;return e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),{exports:t,options:u}}const st=it(rt,function(){var t=this,e=t._self._c,n=t._self._setupProxy;return e("div",{staticClass:"plv-product-common-pendant",on:{click:function(t){return n.emit("click-pendant")}}},[e("div",{staticClass:"plv-product-common-pendant__icon",style:n.pendantIconStyle}),n.pendantText?e("div",{staticClass:"plv-product-common-pendant__text"},[e("span",[t._v(t._s(n.pendantText))])]):t._e()])},[]).exports;const at="__product-event-emitter-key";function ut(){if(window[at])return window[at];const t={all:e=e||new Map,on:function(t,n){var o=e.get(t);o?o.push(n):e.set(t,[n])},off:function(t,n){var o=e.get(t);o&&(n?o.splice(o.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var o=e.get(t);o&&o.slice().map(function(t){t(n)}),(o=e.get("*"))&&o.slice().map(function(e){e(t,n)})}};var e;return window[at]=t,t}var ct=(t=>(t.ZH_CN="zh_CN",t.ZH_TW="zh_TW",t.English="en",t.Japanese="ja",t.Korean="ko",t.Russian="ru",t))(ct||{});const lt="openProductListPopup";var dt="object"==typeof global&&global&&global.Object===Object&&global,ft="object"==typeof self&&self&&self.Object===Object&&self,pt=(dt||ft||Function("return this")()).Symbol,vt=Object.prototype,yt=vt.hasOwnProperty,mt=vt.toString,gt=pt?pt.toStringTag:void 0;var bt=Object.prototype.toString;var ht=pt?pt.toStringTag:void 0;function Ot(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ht&&ht in Object(t)?function(t){var e=yt.call(t,gt),n=t[gt];try{t[gt]=void 0;var o=!0}catch(nt){}var r=mt.call(t);return o&&(e?t[gt]=n:delete t[gt]),r}(t):function(t){return bt.call(t)}(t)}const jt=e=>{const{props:n}=e,{getEmitter:o}=(()=>{const e=t.inject("interactGlobalConfigV2",{globalLang:ct.ZH_CN});return{injectData:e,toast:t=>{e.toast&&e.toast(t)},getEmitter:function(){return e.getEmitter?e.getEmitter():ut()},messageBox:t=>e.messageBox?e.messageBox(t):Promise.resolve(!1)}})(),r=t.ref(""),i=t.ref(!1);return{productTotal:r,isCollapsed:i,onClickPendant:function(){return u(this,null,function*(){if(n.beforeClickInterrupt&&function(t){if(!function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}(t))return!1;var e=Ot(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}(n.beforeClickInterrupt)){if(yield n.beforeClickInterrupt())return}o().emit(lt)})},getProductTotal:function(){return u(this,null,function*(){const t=yield n.productTarget.getProductList();r.value=String(t.total)})},toggleCollapse:function(){i.value=!i.value}}};return it(t.defineComponent({__name:"mobile-product-pendant",props:{productTarget:$.object().isRequired,beforeClickInterrupt:$.func()},setup(e){const n=e,{productTotal:o,onClickPendant:r,getProductTotal:i}=jt({props:n});return t.onMounted(()=>{i()}),{__sfc:!0,props:n,productTotal:o,onClickPendant:r,getProductTotal:i,pendantIcon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAkFSURBVHic7ZxNbFxXFcd/933MeDy24yRScJuGPhQRNRtiIRCwQLGRgkKLCGpZdIEU1xCpGxqKUmCBcAMCoSKBkZBAdIGlCnVH4+4oCwaJBVBVJGKTolTMgpY4aioXZ2yPZzyXxcybefPe/XozTnDQHGk0951zz7nn/t//nnvnOS8wkpGMZCQjGcn9KmIYZ/nVs3P48jyCCGSERwSyHVUAotP2oE8vO9cyHTD1DSClQpfuJ9O6KpJ1oIJgVfyyUhl0jgMBJC+cXUDIJQRRHxB97ZQuHk01KdCAY+jX5yMVur6Uq0ieFb+qXHGeJL2UnUUuzE1TKP4a+KIWGACvk12SOb0odubIxIUJOKM9HVMCXKEhnhIrlXX9LPvFGSC5cDYi5A8IGVnZYmKOTKGjBKfTsDLMwhw1qFUaYl6sVKr62fbEc+kkF+amCeUrPXCkHRzSyUtHcCSZmqK0S41dEVMmYkoiAvmKy7zBESAKYxcRzGYBQc8cj35+uhRkXd8+nbD72O2zcnFuSdErI9YlJp8+G9Fq/Q0hpo1LKckcr5fQ9toGjfe3CcoFSg9ODbFUeozZfrdGY6NOMB5SOjLpXrjT9pb3IdtSC0xGAFryojM4yUINrP/9Jo33tztXNbZv1Th46oH++BK6RcqBGetv3qKxUW9f326DdfDkTLavxr/v25NLwFPaueO0xORCLnA6y71+u9YFp3D6DOFHP0GztkP99uaANQfq61s0NuqMff5xSk8uICamaG41qK9v9TPDeHZKDCDlnG32RgbJC2dm8ZjOyxyAZq0BwPiFZyhfeAaA2+dO06pv6pNHo+u0m5s7BCdOMvndF9rJnzjJxve+RWunmeisYKM+fiQX5ubEiv4gaWaQHxdmnJkT7zDFQ6XuJGIpnj5DUC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YxkJCMZyf0t/wVfoDB9IXM0sAAAAABJRU5ErkJggg==",CommonPendant:st}}}),function(){var t=this,e=t._self._c,n=t._self._setupProxy;return e("div",{staticClass:"plv-product-pendant"},[n.productTotal?e(n.CommonPendant,{attrs:{"icon-url":n.pendantIcon,text:n.productTotal&&"0"!==n.productTotal?n.productTotal:""},on:{"click-pendant":n.onClickPendant}}):t._e()],1)},[]).exports}),console.log("%c@polyv/product-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[component: mobile-product-pendant]","[version: 1.8.0-rc-20251204.1]","[buildTime: 2025-12-04 06:02:35]");
|
|
8
|
+
*/function f(t){return"[object Object]"===Object.prototype.toString.call(t)}function p(){return p=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},p.apply(this,arguments)}function v(t,e){if(null==t)return{};var n,o,r={},i=Object.keys(t);for(o=0;o<i.length;o++)e.indexOf(n=i[o])>=0||(r[n]=t[n]);return r}const y={silent:!1,logLevel:"warn"},m=["validator"],g=Object.prototype,b=g.toString,h=g.hasOwnProperty,O=/^\s*function (\w+)/;function j(t){var e;const n=null!==(e=null==t?void 0:t.type)&&void 0!==e?e:t;if(n){const t=n.toString().match(O);return t?t[1]:""}return""}const w=function(t){var e,n;return!1!==f(t)&&(void 0===(e=t.constructor)||!1!==f(n=e.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))},C=t=>t;let T=C;if("production"!=={}.NODE_ENV){const t="undefined"!=typeof console;T=t?function(t,e=y.logLevel){!1===y.silent&&console[e](`[VueTypes warn]: ${t}`)}:C}const S=(t,e)=>h.call(t,e),P=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},_=Array.isArray||function(t){return"[object Array]"===b.call(t)},x=t=>"[object Function]"===b.call(t),A=(t,e)=>w(t)&&S(t,"_vueTypes_name")&&(!e||t._vueTypes_name===e),M=t=>w(t)&&(S(t,"type")||["_vueTypes_name","validator","default","required"].some(e=>S(t,e)));function k(t,e){return Object.defineProperty(t.bind(e),"__original",{value:t})}function I(t,e,n=!1){let o,r=!0,i="";o=w(t)?t:{type:t};const s=A(o)?o._vueTypes_name+" - ":"";if(M(o)&&null!==o.type){if(void 0===o.type||!0===o.type)return r;if(!o.required&&null==e)return r;_(o.type)?(r=o.type.some(t=>!0===I(t,e,!0)),i=o.type.map(t=>j(t)).join(" or ")):(i=j(o),r="Array"===i?_(e):"Object"===i?w(e):"String"===i||"Number"===i||"Boolean"===i||"Function"===i?function(t){if(null==t)return"";const e=t.constructor.toString().match(O);return e?e[1].replace(/^Async/,""):""}(e)===i:e instanceof o.type)}if(!r){const t=`${s}value "${e}" should be of type "${i}"`;return!1===n?(T(t),!1):t}if(S(o,"validator")&&x(o.validator)){const t=T,i=[];if(T=t=>{i.push(t)},r=o.validator(e),T=t,!r){const t=(i.length>1?"* ":"")+i.join("\n* ");return i.length=0,!1===n?(T(t),r):t}}return r}function D(t,e){const n=Object.defineProperties(e,{_vueTypes_name:{value:t,writable:!0},isRequired:{get(){return this.required=!0,this}},def:{value(t){return void 0===t?this.type===Boolean||Array.isArray(this.type)&&this.type.includes(Boolean)?void(this.default=void 0):(S(this,"default")&&delete this.default,this):x(t)||!0===I(this,t,!0)?(this.default=_(t)?()=>[...t]:w(t)?()=>Object.assign({},t):t,this):(T(`${this._vueTypes_name} - invalid default value: "${t}"`),this)}}}),{validator:o}=n;return x(o)&&(n.validator=k(o,n)),n}function G(t,e){const n=D(t,e);return Object.defineProperty(n,"validate",{value(t){return x(this.validator)&&T(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:\n${JSON.stringify(this)}`),this.validator=k(t,this),this}})}function J(t,e,n){const o=function(t){const e={};return Object.getOwnPropertyNames(t).forEach(n=>{e[n]=Object.getOwnPropertyDescriptor(t,n)}),Object.defineProperties({},e)}(e);if(o._vueTypes_name=t,!w(n))return o;const{validator:r}=n,i=v(n,m);if(x(r)){let{validator:t}=o;t&&(t=null!==(a=(s=t).__original)&&void 0!==a?a:s),o.validator=k(t?function(e){return t.call(this,e)&&r.call(this,e)}:r,o)}var s,a;return Object.assign(o,i)}function R(t){return t.replace(/^(?!\s*$)/gm," ")}const F=()=>G("any",{}),K=()=>G("function",{type:Function}),E=()=>G("boolean",{type:Boolean}),B=()=>G("string",{type:String}),N=()=>G("number",{type:Number}),U=()=>G("array",{type:Array}),Z=()=>G("object",{type:Object});function H(t,e="custom validation failed"){if("function"!=typeof t)throw new TypeError("[VueTypes error]: You must provide a function as argument");return D(t.name||"<<anonymous function>>",{type:null,validator(n){const o=t(n);return o||T(`${this._vueTypes_name} - ${e}`),o}})}function q(t){if(!_(t))throw new TypeError("[VueTypes error]: You must provide an array as argument.");const e=`oneOf - value should be one of "${t.map(t=>"symbol"==typeof t?t.toString():t).join('", "')}".`,n={validator(n){const o=-1!==t.indexOf(n);return o||T(e),o}};if(-1===t.indexOf(null)){const e=t.reduce((t,e)=>{if(null!=e){const n=e.constructor;-1===t.indexOf(n)&&t.push(n)}return t},[]);e.length>0&&(n.type=e)}return D("oneOf",n)}function X(t){if(!_(t))throw new TypeError("[VueTypes error]: You must provide an array as argument");let e=!1,n=!1,o=[];for(let i=0;i<t.length;i+=1){const r=t[i];if(M(r)){if(x(r.validator)&&(e=!0),A(r,"oneOf")&&r.type){o=o.concat(r.type);continue}if(A(r,"nullable")){n=!0;continue}if(!0===r.type||!r.type){T('oneOfType - invalid usage of "true" and "null" as types.');continue}o=o.concat(r.type)}else o.push(r)}o=o.filter((t,e)=>o.indexOf(t)===e);const r=!1===n&&o.length>0?o:null;return D("oneOfType",e?{type:r,validator(e){const n=[],o=t.some(t=>{const o=I(t,e,!0);return"string"==typeof o&&n.push(o),!0===o});return o||T(`oneOfType - provided value does not match any of the ${n.length} passed-in validators:\n${R(n.join("\n"))}`),o}}:{type:r})}function L(t){return D("arrayOf",{type:Array,validator(e){let n="";const o=e.every(e=>(n=I(t,e,!0),!0===n));return o||T(`arrayOf - value validation error:\n${R(n)}`),o}})}function z(t){return D("instanceOf",{type:t})}function Q(t){return D("objectOf",{type:Object,validator(e){let n="";const o=Object.keys(e).every(o=>(n=I(t,e[o],!0),!0===n));return o||T(`objectOf - value validation error:\n${R(n)}`),o}})}function V(t){const e=Object.keys(t),n=e.filter(e=>{var n;return!(null===(n=t[e])||void 0===n||!n.required)}),o=D("shape",{type:Object,validator(o){if(!w(o))return!1;const r=Object.keys(o);if(n.length>0&&n.some(t=>-1===r.indexOf(t))){const t=n.filter(t=>-1===r.indexOf(t));return T(1===t.length?`shape - required property "${t[0]}" is not defined.`:`shape - required properties "${t.join('", "')}" are not defined.`),!1}return r.every(n=>{if(-1===e.indexOf(n))return!0===this._vueTypes_isLoose||(T(`shape - shape definition does not include a "${n}" property. Allowed keys: "${e.join('", "')}".`),!1);const r=I(t[n],o[n],!0);return"string"==typeof r&&T(`shape - "${n}" property validation error:\n ${R(r)}`),!0===r})}});return Object.defineProperty(o,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(o,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),o}const Y=["name","validate","getter"],W=(()=>{var t;return(t=class{static get any(){return F()}static get func(){return K().def(this.defaults.func)}static get bool(){return void 0===this.defaults.bool?E():E().def(this.defaults.bool)}static get string(){return B().def(this.defaults.string)}static get number(){return N().def(this.defaults.number)}static get array(){return U().def(this.defaults.array)}static get object(){return Z().def(this.defaults.object)}static get integer(){return D("integer",{type:Number,validator(t){const e=P(t);return!1===e&&T(`integer - "${t}" is not an integer`),e}}).def(this.defaults.integer)}static get symbol(){return D("symbol",{validator(t){const e="symbol"==typeof t;return!1===e&&T(`symbol - invalid value "${t}"`),e}})}static get nullable(){return Object.defineProperty({type:null,validator(t){const e=null===t;return!1===e&&T("nullable - value should be null"),e}},"_vueTypes_name",{value:"nullable"})}static extend(t){if(T("VueTypes.extend is deprecated. Use the ES6+ method instead. See https://dwightjack.github.io/vue-types/advanced/extending-vue-types.html#extending-namespaced-validators-in-es6 for details."),_(t))return t.forEach(t=>this.extend(t)),this;const{name:e,validate:n=!1,getter:o=!1}=t,r=v(t,Y);if(S(this,e))throw new TypeError(`[VueTypes error]: Type "${e}" already defined`);const{type:i}=r;if(A(i))return delete r.type,Object.defineProperty(this,e,o?{get:()=>J(e,i,r)}:{value(...t){const n=J(e,i,r);return n.validator&&(n.validator=n.validator.bind(n,...t)),n}});let s;return s=o?{get(){const t=Object.assign({},r);return n?G(e,t):D(e,t)},enumerable:!0}:{value(...t){const o=Object.assign({},r);let i;return i=n?G(e,o):D(e,o),o.validator&&(i.validator=o.validator.bind(i,...t)),i},enumerable:!0},Object.defineProperty(this,e,s)}}).defaults={},t.sensibleDefaults=void 0,t.config=y,t.custom=H,t.oneOf=q,t.instanceOf=z,t.oneOfType=X,t.arrayOf=L,t.objectOf=Q,t.shape=V,t.utils={validate:(t,e)=>!0===I(e,t,!0),toType:(t,e,n=!1)=>n?G(t,e):D(t,e)},t})();!function(t={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var e;(e=class extends W{static get sensibleDefaults(){return p({},this.defaults)}static set sensibleDefaults(e){this.defaults=!1!==e?p({},!0!==e?e:t):{}}}).defaults=p({},t)}();class ${static get string(){return B().def("")}static get looseString(){return B()}static get number(){return N().def(0)}static get looseNumber(){return N()}static get bool(){return E().def(!0)}static get looseBool(){return X([]).def(void 0)}static get looseElement(){return X([]).def(void 0)}}a($,"objectType",Z),a($,"array",()=>U().def([])),a($,"object",Z),a($,"func",K),a($,"oneOf",q),a($,"oneOfType",X),a($,"enum",B),a($,"any",F);const tt=(()=>{let t;return()=>{if(null==t)try{t=function(){const t=document.createElement("canvas");if(t.getContext&&t.getContext("2d")){const e="image/webp";return 0===t.toDataURL(e).indexOf("data:"+e)}return!1}()||function(){let t=!1;const e=navigator.userAgent,n=/\bOS\s([\d_.]+)\slike\sMac\sOS\sX\b/.exec(e);if(n)t=parseInt(n[1])>=14;else{const n=/\bVersion\/([\d.]+)\sSafari\b/.exec(e);n&&(t=parseInt(n[1])>=16)}return t}()}catch(e){t=!1}return t}})();var et,nt;function ot(t,e){const n=function(t){let e;if("undefined"!=typeof document){const n=document.createElement("a");n.href=t,e=n}else if("function"==typeof URL)try{e=new URL(/^\/\//.test(t)?"https:"+t:t)}catch(n){}return e}(t);if(!n)return t;const o=function(t){const e=(t||"").split("."),n=e[e.length-1];return n?n.toLowerCase():""}(n.pathname.split("/").pop());if(!/\.videocc\.net$/i.test(n.hostname)||"svg"===o)return t;const r=function(t,e){let n="";return null==e.width&&null==e.height||(n+="/resize",e.width&&(n+=",w_"+e.width),e.height&&(n+=",h_"+e.height),e.mode&&(n+=",m_"+e.mode),n+=",limit_1"),e.allowAVIF&&"gif"!==t?n+="/format,avif":!0===e.allowWebP||"auto"===e.allowWebP&&tt()?n+="/format,webp/quality,Q_80":e.allowJPG&&"gif"!==t&&(n+="/format,jpg/quality,Q_80"),n}(o,function(t){var e,n;const o="number"==typeof t?{width:t}:t;return o.allowJPG=null===(e=o.allowJPG)||void 0===e||e,o.allowWebP=null!==(n=o.allowWebP)&&void 0!==n?n:"auto",o}(e));return r&&(n.search=function(t,e){let n=!1;return t=t.replace(/([?&]x-oss-process)(?:=([^&]*))?/,(t,o,r)=>(n=!0,/^image/.test(r)?o+"="+r.replace(/\/(?:resize|format|quality)[^/]*/gi,"")+e:t)),n?t:t+(-1===t.indexOf("?")?"?":"&")+"x-oss-process=image"+e}(n.search,r)),n.href}(nt=et||(et={})).LFit="lfit",nt.MFit="mfit",nt.Fill="fill",nt.Pad="pad",nt.Fixed="fixed";const rt=t.defineComponent({__name:"index",props:{iconUrl:$.string,text:$.string,countdownSecond:$.number,countdownTimestamp:$.number},emits:{"click-pendant":()=>!0},setup(e,{emit:n}){const o=e,{startCountDown:r,stopCountDown:i,resetSurplus:s,surplusSecond:a}=d(),u=t.computed(()=>a.value>0?function(t,e={segments:2,digits:2}){if(t=Number(t),isNaN(t)||t<0)throw new Error('"secs" must be a positive integer');let n=2;"auto"===e.segments&&t>=3600?n=3:"number"==typeof e.segments&&-1!==[2,3].indexOf(e.segments)&&(n=e.segments);let o=0|(e.digits||2);o=Math.max(1,o);const r=new Array(o+1).join("0"),i=[60,1];return 3===n&&i.unshift(3600),i.map(e=>{const n=Math.floor(t/e),i=n.toString().length;return t%=e,(r+n).slice(-Math.max(i,o))}).join(":")}(a.value,{segments:"auto"}):o.text),c=t.computed(()=>{const t={};return o.iconUrl&&(t.backgroundImage=`url(${ot(o.iconUrl,{width:120})})`),t});return t.watch(()=>[o.countdownSecond,o.countdownTimestamp],()=>{o.countdownSecond?r({second:o.countdownSecond}):o.countdownTimestamp?r({endTimestamp:o.countdownTimestamp}):(i(),s())},{immediate:!0}),{__sfc:!0,props:o,emit:n,startCountDown:r,stopCountDown:i,resetSurplus:s,surplusSecond:a,pendantText:u,pendantIconStyle:c}}});function it(t,e,n,o,r,i,s,a){var u="function"==typeof t?t.options:t;return e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),{exports:t,options:u}}const st=it(rt,function(){var t=this,e=t._self._c,n=t._self._setupProxy;return e("div",{staticClass:"plv-product-common-pendant",on:{click:function(t){return n.emit("click-pendant")}}},[e("div",{staticClass:"plv-product-common-pendant__icon",style:n.pendantIconStyle}),n.pendantText?e("div",{staticClass:"plv-product-common-pendant__text"},[e("span",[t._v(t._s(n.pendantText))])]):t._e()])},[]).exports;const at="__product-event-emitter-key";function ut(){if(window[at])return window[at];const t={all:e=e||new Map,on:function(t,n){var o=e.get(t);o?o.push(n):e.set(t,[n])},off:function(t,n){var o=e.get(t);o&&(n?o.splice(o.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var o=e.get(t);o&&o.slice().map(function(t){t(n)}),(o=e.get("*"))&&o.slice().map(function(e){e(t,n)})}};var e;return window[at]=t,t}var ct=(t=>(t.ZH_CN="zh_CN",t.ZH_TW="zh_TW",t.English="en",t.Japanese="ja",t.Korean="ko",t.Russian="ru",t))(ct||{});const lt="openProductListPopup";var dt="object"==typeof global&&global&&global.Object===Object&&global,ft="object"==typeof self&&self&&self.Object===Object&&self,pt=(dt||ft||Function("return this")()).Symbol,vt=Object.prototype,yt=vt.hasOwnProperty,mt=vt.toString,gt=pt?pt.toStringTag:void 0;var bt=Object.prototype.toString;var ht=pt?pt.toStringTag:void 0;function Ot(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ht&&ht in Object(t)?function(t){var e=yt.call(t,gt),n=t[gt];try{t[gt]=void 0;var o=!0}catch(nt){}var r=mt.call(t);return o&&(e?t[gt]=n:delete t[gt]),r}(t):function(t){return bt.call(t)}(t)}const jt=e=>{const{props:n}=e,{getEmitter:o}=(()=>{const e=t.inject("interactGlobalConfigV2",{globalLang:ct.ZH_CN});return{injectData:e,toast:t=>{e.toast&&e.toast(t)},getEmitter:function(){return e.getEmitter?e.getEmitter():ut()},messageBox:t=>e.messageBox?e.messageBox(t):Promise.resolve(!1)}})(),r=t.ref(""),i=t.ref(!1);return{productTotal:r,isCollapsed:i,onClickPendant:function(){return u(this,null,function*(){if(n.beforeClickInterrupt&&function(t){if(!function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}(t))return!1;var e=Ot(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}(n.beforeClickInterrupt)){if(yield n.beforeClickInterrupt())return}o().emit(lt)})},getProductTotal:function(){return u(this,null,function*(){const t=yield n.productTarget.getProductList();r.value=String(t.total)})},toggleCollapse:function(){i.value=!i.value}}};return it(t.defineComponent({__name:"mobile-product-pendant",props:{productTarget:$.object().isRequired,beforeClickInterrupt:$.func()},setup(e){const n=e,{productTotal:o,onClickPendant:r,getProductTotal:i}=jt({props:n});return t.onMounted(()=>{i()}),{__sfc:!0,props:n,productTotal:o,onClickPendant:r,getProductTotal:i,pendantIcon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAA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Yk6kfFJxjLUpD42a2qOKk6sbxKpIIBBf4sl21oKW+wmH12fQfzz2BWS8xzUaeSiuoIZXfsANUc5YUtOqjiqsRSS/yTtehfuKXMG2K0c65CeQa3OP9A07TDJtjNzpN0/Od7dZE78LbwIjeyPk7Suz17Ft47paxJxqkH/x8wBED54ps3cVYZmTmK97pfdSgTgBQMD9LD7qTWhuGvMcWCWqp/OpwtOCF7wMBrRQ9cyJIJGN0hNMOn7dMIMTp4xvQ44fthra2TIZ9IJxf+y5gzCHBG2P14A3jBFOj2ASnevdquhmZNgTNyOQdKICaBIn5xiZ8u1w6T65bEPUpsgAUwHHBGDE4IIIjTivsRUukHurG0cV/88Pl3mKL5FCP4gS6z9vlWOO+/AHED7FNAan1R8V+YYwImZhK99+8cMkOldC1NSOp3pOrlbuRZc266XrjcxKBkWDQIQXOslZUpYUY8ybZcJ71XNkYCXAse0xAKQ/jU0oj8H7VDJJJBOXqfLtEWOOz+s3UsBk2ZP6uOHUOzMVSFagMRKZR1JpXtn03fM9k5Et53o1+fvak/0S9e5DIuEnilaFvkVsbysXWK2J4rPDnxnB9nhhrELYWaKzib8y4qoXTECJF6sXEWy0peIE3Piu30vmCMB0TkhW+pNWif8K2L5RxUTBvZn0rviMpJqRr9fmIOXZYrvwqKgCgXju2Kd6GYRK5Uqu2IeSdW95ijsd63mKJaPsLEorCLDebH8vPXtZ6e/aoiVSpWWmEeIq/uGOcLrMaX7bapB3YPhVaQ/L5afr2qm2yfOr4V381v49NcRYglJ7z2rvT7n2Bgq/ETNCXrgiMwySnwHVYR/WSz/cCXPfHMDBLRfE4dZaJ1DMgdyGpn445sSCMWy6rMnFCY2ivQ5J3Hg6wMsXEcEVbzgKtJfFT9/Iff/ujCSkYxkJCMZyf0t/wVfoDB9IXM0sAAAAABJRU5ErkJggg==",CommonPendant:st}}}),function(){var t=this,e=t._self._c,n=t._self._setupProxy;return e("div",{staticClass:"plv-product-pendant"},[n.productTotal?e(n.CommonPendant,{attrs:{"icon-url":n.pendantIcon,text:n.productTotal&&"0"!==n.productTotal?n.productTotal:""},on:{"click-pendant":n.onClickPendant}}):t._e()],1)},[]).exports}),console.log("%c@polyv/product-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[component: mobile-product-pendant]","[version: 1.8.0]","[buildTime: 2025-12-05 09:18:37]");
|