@polyv/product-ui 1.0.0-rc-20250612.3
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 +8 -0
- package/address-edit.es.d.ts +3 -0
- package/address-edit.es.js +5908 -0
- package/address-edit.umd.js +8 -0
- package/address-item.cjs.js +8 -0
- package/address-item.es.d.ts +3 -0
- package/address-item.es.js +425 -0
- package/address-item.umd.js +8 -0
- package/address-list.cjs.js +9 -0
- package/address-list.es.d.ts +3 -0
- package/address-list.es.js +1908 -0
- package/address-list.umd.js +9 -0
- package/index.cjs.js +8 -0
- package/index.es.js +15347 -0
- package/index.umd.js +8 -0
- package/mobile-product-pendant.cjs.js +8 -0
- package/mobile-product-pendant.es.d.ts +3 -0
- package/mobile-product-pendant.es.js +813 -0
- package/mobile-product-pendant.umd.js +8 -0
- package/order-confirm.cjs.js +9 -0
- package/order-confirm.es.d.ts +3 -0
- package/order-confirm.es.js +5254 -0
- package/order-confirm.umd.js +9 -0
- package/order-detail.cjs.js +8 -0
- package/order-detail.es.d.ts +3 -0
- package/order-detail.es.js +2474 -0
- package/order-detail.umd.js +8 -0
- package/order-item.cjs.js +8 -0
- package/order-item.es.d.ts +3 -0
- package/order-item.es.js +1448 -0
- package/order-item.umd.js +8 -0
- package/order-list-popup.cjs.js +9 -0
- package/order-list-popup.es.d.ts +3 -0
- package/order-list-popup.es.js +4114 -0
- package/order-list-popup.umd.js +9 -0
- package/order-list.cjs.js +8 -0
- package/order-list.es.d.ts +3 -0
- package/order-list.es.js +2572 -0
- package/order-list.umd.js +9 -0
- package/order-popup.cjs.js +9 -0
- package/order-popup.es.d.ts +3 -0
- package/order-popup.es.js +8050 -0
- package/order-popup.umd.js +9 -0
- package/package.json +28 -0
- package/pc-product-pendant.cjs.js +9 -0
- package/pc-product-pendant.es.d.ts +3 -0
- package/pc-product-pendant.es.js +1604 -0
- package/pc-product-pendant.umd.js +9 -0
- package/product-button.cjs.js +9 -0
- package/product-button.es.d.ts +3 -0
- package/product-button.es.js +1882 -0
- package/product-button.umd.js +9 -0
- package/product-detail-popup.cjs.js +9 -0
- package/product-detail-popup.es.d.ts +3 -0
- package/product-detail-popup.es.js +8250 -0
- package/product-detail-popup.umd.js +9 -0
- package/product-detail.cjs.js +9 -0
- package/product-detail.es.d.ts +3 -0
- package/product-detail.es.js +8082 -0
- package/product-detail.umd.js +9 -0
- package/product-iframe-link-popup.cjs.js +9 -0
- package/product-iframe-link-popup.es.d.ts +3 -0
- package/product-iframe-link-popup.es.js +2209 -0
- package/product-iframe-link-popup.umd.js +9 -0
- package/product-item.cjs.js +8 -0
- package/product-item.es.d.ts +3 -0
- package/product-item.es.js +3700 -0
- package/product-item.umd.js +9 -0
- package/product-list-popup.cjs.js +9 -0
- package/product-list-popup.es.d.ts +3 -0
- package/product-list-popup.es.js +5302 -0
- package/product-list-popup.umd.js +9 -0
- package/product-list.cjs.js +9 -0
- package/product-list.es.d.ts +3 -0
- package/product-list.es.js +5189 -0
- package/product-list.umd.js +9 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode("@font-face{font-family:D-DIN-PRO-Regular;src:url(https://s4.videocc.net/font/D-DIN-PRO-400-Regular.otf)}@font-face{font-family:D-DIN-PRO-Medium;src:url(https://s4.videocc.net/font/D-DIN-PRO-500-Medium.otf)}@font-face{font-family:D-DIN-PRO-Bold;src:url(https://s4.videocc.net/font/D-DIN-PRO-700-Bold.otf)}.plv-product-common-pendant{position:relative;width:36px;height:36px;overflow:hidden;border-radius:4px;background-color:#0000000f;cursor:pointer}.plv-product-common-pendant+.plv-product-common-pendant{margin-top:8px}.plv-product-common-pendant__icon{width:100%;height:100%;background-repeat:no-repeat;background-size:100% 100%}.plv-product-common-pendant__text{position:absolute;bottom:7px;left:50%;display:flex;justify-content:center;align-items:center;box-sizing:border-box;min-width:32px;height:12px;padding:0 2px;border-radius:6px;color:#fff;text-align:center;white-space:nowrap;transform:translate(-50%)}.plv-product-common-pendant__text span{font-size:12px}@font-face{font-family:D-DIN-PRO-Regular;src:url(https://s4.videocc.net/font/D-DIN-PRO-400-Regular.otf)}@font-face{font-family:D-DIN-PRO-Medium;src:url(https://s4.videocc.net/font/D-DIN-PRO-500-Medium.otf)}@font-face{font-family:D-DIN-PRO-Bold;src:url(https://s4.videocc.net/font/D-DIN-PRO-700-Bold.otf)}.plv-font-din-pro-regular{font-family:D-DIN-PRO-Regular,sans-serif}.plv-font-din-pro-medium{font-family:D-DIN-PRO-Medium,sans-serif}.plv-font-din-pro-bold{font-family:D-DIN-PRO-Bold,sans-serif}.plv-product-pendant .plv-product-common-pendant__text{font-family:DINPro-Regular,sans-serif}")),document.head.appendChild(t)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}}();
|
|
2
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define(["vue"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).PolyvProductUIMobileProductPendant=e(t.Vue2Module||t.Vue)}(this,(function(t){"use strict";var e=Object.defineProperty,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,i=(t,n,o)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o,s=(t,e)=>{for(var s in e||(e={}))o.call(e,s)&&i(t,s,e[s]);if(n)for(var s of n(e))r.call(e,s)&&i(t,s,e[s]);return t},a=(t,e,n)=>i(t,"symbol"!=typeof e?e+"":e,n);const u=[{divisor:86400,unit:"days"},{divisor:3600,unit:"hours"},{divisor:60,unit:"minutes"},{divisor:1,unit:"seconds"}];class c{constructor(t,e){if(t|=0,isNaN(t))throw new Error("Total seconds must be a number");this._totalMSecs=1e3*t,this._cb=e}_exec(){if(!this._startTime||null==this._usingMSecs)return;let t=Math.max(0,this._usingMSecs-(Date.now()-this._startTime));if(t>0&&setTimeout((()=>{this._exec()}),1e3),this._remainingMSecs=t,t>=0){const e={days:0,hours:0,minutes:0,seconds:0,totalMsecs:t};t=Math.round(t/1e3),u.forEach(((n,o)=>{e[n.unit]=t/n.divisor,o===u.length-1?e[n.unit]=Math.round(e[n.unit]):(e[n.unit]=Math.floor(e[n.unit]),t%=n.divisor)})),this._cb(e)}}start(){null==this._usingMSecs&&(this._usingMSecs=this._totalMSecs),this._usingMSecs<=0||(this._startTime=Date.now(),this._exec())}_break(){this._timerId&&clearTimeout(this._timerId),this._startTime=void 0}stop(){this._break(),this._usingMSecs=this._totalMSecs}pause(){this._break(),this._usingMSecs=this._remainingMSecs}}const l=(e={})=>{var n,o;let r=null!=(n=e.second)?n:t.ref(),i=null!=(o=e.endTimestamp)?o:t.ref(),a=e.onCountDownChange,u=e.onCountDownFinish;function l(e={}){var n,o;e.second&&(n=e.second,t.isRef(r)?r.value=t.isRef(n)?n.value:n:r=n||r),e.endTimestamp&&(o=e.endTimestamp,t.isRef(i)?i.value=t.isRef(o)?o.value:o:i=o||i),e.onCountDownChange&&(a=e.onCountDownChange),e.onCountDownFinish&&(u=e.onCountDownFinish)}const d={days:0,hours:0,minutes:0,seconds:0,totalMsecs:0},f=t.ref(s({},d)),p=t.computed((()=>{const t=f.value.totalMsecs/1e3;return parseInt(t.toString())})),y=()=>{const e=t.unref(r),n=t.unref(i);if("number"==typeof e)return e;if("number"==typeof n){const t=(n-Date.now())/1e3;return t<0?0:t}return 0};let v;function m(){f.value=s({},d),h(),v=new c(y(),O),g()}function h(){b(),v=void 0}function g(t,e=!1){t&&l(t),e?m():v?v.start():m()}function b(){v&&v.stop()}function O(e){f.value=e,a&&a(t.unref(f)),0===e.totalMsecs&&u&&u()}return t.onUnmounted((()=>{h()})),{surplusTime:f,surplusSecond:p,computedSecond:y,initCountDown:m,startCountDown:g,resetSurplus:function(){f.value=s({},d)},stopCountDown:b,destroyCountDown:h}};
|
|
3
|
+
/*!
|
|
4
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
7
|
+
* Released under the MIT License.
|
|
8
|
+
*/function d(t){return"[object Object]"===Object.prototype.toString.call(t)}function f(){return f=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},f.apply(this,arguments)}function p(t,e){if(null==t)return{};var n={};for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){if(e.indexOf(o)>=0)continue;n[o]=t[o]}return n}const y={silent:!1,logLevel:"warn"},v=["validator"],m=Object.prototype,h=m.toString,g=m.hasOwnProperty,b=/^\s*function (\w+)/;function O(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(b);return t?t[1]:""}return""}const w=function(t){var e,n;return!1!==d(t)&&(void 0===(e=t.constructor)||!1!==d(n=e.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))};function j(){}let C=j;if("production"!=={}.NODE_ENV){const t="undefined"!=typeof console;C=t?function(t,e=y.logLevel){!1===y.silent&&console[e](`[VueTypes warn]: ${t}`)}:j}const T=(t,e)=>g.call(t,e),P=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},S=Array.isArray||function(t){return"[object Array]"===h.call(t)},_=t=>"[object Function]"===h.call(t),A=(t,e)=>w(t)&&T(t,"_vueTypes_name")&&(!e||t._vueTypes_name===e),M=t=>w(t)&&(T(t,"type")||["_vueTypes_name","validator","default","required"].some((e=>T(t,e))));function x(t,e){return Object.defineProperty(t.bind(e),"__original",{value:t})}function k(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;S(o.type)?(r=o.type.some((t=>!0===k(t,e,!0))),i=o.type.map((t=>O(t))).join(" or ")):(i=O(o),r="Array"===i?S(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(b);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?(C(t),!1):t}if(T(o,"validator")&&_(o.validator)){const t=C,i=[];if(C=t=>{i.push(t)},r=o.validator(e),C=t,!r){const t=(i.length>1?"* ":"")+i.join("\n* ");return i.length=0,!1===n?(C(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):(T(this,"default")&&delete this.default,this):_(t)||!0===k(this,t,!0)?(this.default=S(t)?()=>[...t]:w(t)?()=>Object.assign({},t):t,this):(C(`${this._vueTypes_name} - invalid default value: "${t}"`),this)}}}),{validator:o}=n;return _(o)&&(n.validator=x(o,n)),n}function G(t,e){const n=D(t,e);return Object.defineProperty(n,"validate",{value(t){return _(this.validator)&&C(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:\n${JSON.stringify(this)}`),this.validator=x(t,this),this}})}function I(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=p(n,v);if(_(r)){let{validator:t}=o;t&&(t=null!==(a=(s=t).__original)&&void 0!==a?a:s),o.validator=x(t?function(e){return t.call(this,e)&&r.call(this,e)}:r,o)}var s,a;return Object.assign(o,i)}function J(t){return t.replace(/^(?!\s*$)/gm," ")}const R=()=>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 F(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||C(`${this._vueTypes_name} - ${e}`),o}})}function H(t){if(!S(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||C(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 q(t){if(!S(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(_(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){C('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=k(t,e,!0);return"string"==typeof o&&n.push(o),!0===o}));return o||C(`oneOfType - provided value does not match any of the ${n.length} passed-in validators:\n${J(n.join("\n"))}`),o}}:{type:r})}function X(t){return D("arrayOf",{type:Array,validator(e){let n="";const o=e.every((e=>(n=k(t,e,!0),!0===n)));return o||C(`arrayOf - value validation error:\n${J(n)}`),o}})}function L(t){return D("instanceOf",{type:t})}function z(t){return D("objectOf",{type:Object,validator(e){let n="";const o=Object.keys(e).every((o=>(n=k(t,e[o],!0),!0===n)));return o||C(`objectOf - value validation error:\n${J(n)}`),o}})}function Q(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 C(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||(C(`shape - shape definition does not include a "${n}" property. Allowed keys: "${e.join('", "')}".`),!1);const r=k(t[n],o[n],!0);return"string"==typeof r&&C(`shape - "${n}" property validation error:\n ${J(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"],V=(t=>((t=class{static get any(){return R()}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&&C(`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&&C(`symbol - invalid value "${t}"`),e}})}static get nullable(){return Object.defineProperty({type:null,validator(t){const e=null===t;return!1===e&&C("nullable - value should be null"),e}},"_vueTypes_name",{value:"nullable"})}static extend(t){if(C("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."),S(t))return t.forEach((t=>this.extend(t))),this;const{name:e,validate:n=!1,getter:o=!1}=t,r=p(t,Y);if(T(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:()=>I(e,i,r)}:{value(...t){const n=I(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=F,t.oneOf=H,t.instanceOf=L,t.oneOfType=q,t.arrayOf=X,t.objectOf=z,t.shape=Q,t.utils={validate:(t,e)=>!0===k(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 V{static get sensibleDefaults(){return f({},this.defaults)}static set sensibleDefaults(e){this.defaults=!1!==e?f({},!0!==e?e:t):{}}}).defaults=f({},t)}();class W{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 q([]).def(void 0)}static get looseElement(){return q([]).def(void 0)}}a(W,"objectType",Z),a(W,"array",(()=>U().def([]))),a(W,"object",Z),a(W,"func",K),a(W,"oneOf",H),a(W,"oneOfType",q),a(W,"enum",B),a(W,"any",R);const $=(()=>{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}()}catch(e){t=!1}return t}})();function tt(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;if(!/\.videocc\.net$/i.test(n.hostname))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),n+=",limit_1"),e.allowAVIF&&"gif"!==t?n+="/format,avif":!0===e.allowWebP||"auto"===e.allowWebP&&$()?n+="/format,webp/quality,Q_80":e.allowJPG&&"gif"!==t&&(n+="/format,jpg/quality,Q_80"),n}(function(t){const e=(t||"").split("."),n=e[e.length-1];return n?n.toLowerCase():""}(n.pathname.split("/").pop()),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 o&&(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,o)),n.href}function et(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 nt=et(t.defineComponent({__name:"index",props:{iconUrl:W.string,text:W.string,countdownSecond:W.number,countdownTimestamp:W.number},emits:{"click-pendant":()=>!0},setup(e,{emit:n}){const o=e,{startCountDown:r,stopCountDown:i,resetSurplus:s,surplusSecond:a}=l(),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(${tt(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(){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 ot="__product-event-emitter-key";function rt(){if(window[ot])return window[ot];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[ot]=t,t}var it=(t=>(t.ZH_CN="zh_CN",t.ZH_TW="zh_TW",t.English="en",t.Japanese="ja",t.Korean="ko",t.Russian="ru",t))(it||{});const st="openProductListPopup",at=e=>{const{props:n}=e,{getEmitter:o}=(()=>{const e=t.inject("interactGlobalConfigV2",{globalLang:it.ZH_CN});return{injectData:e,toast:t=>{e.toast&&e.toast(t)},getEmitter:function(){return e.getEmitter?e.getEmitter():rt()},messageBox:t=>e.messageBox?e.messageBox(t):Promise.resolve(!1)}})(),r=t.ref(""),i=t.ref(!1);return{productTotal:r,isCollapsed:i,onClickPendant:function(){o().emit(st)},getProductTotal:function(){return t=this,e=null,o=function*(){const t=yield n.productTarget.getProductList();r.value=String(t.total)},new Promise(((n,r)=>{var i=t=>{try{a(o.next(t))}catch(e){r(e)}},s=t=>{try{a(o.throw(t))}catch(e){r(e)}},a=t=>t.done?n(t.value):Promise.resolve(t.value).then(i,s);a((o=o.apply(t,e)).next())}));var t,e,o},toggleCollapse:function(){i.value=!i.value}}};return et(t.defineComponent({__name:"mobile-product-pendant",props:{productTarget:W.object().isRequired},setup(e){const n=e,{productTotal:o,onClickPendant:r,getProductTotal:i}=at({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+u0m5s7BCdO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ZaJ1DMgdyGpn445sSCMWy6rMnFCY2ivQ5J3Hg6wMsXEcEVbzgKtJfFT9/Iff/ujCSkYxkJCMZyf0t/wVfoDB9IXM0sAAAAABJRU5ErkJggg==",CommonPendant:nt}}}),(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},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.0.0-rc-20250612.3]","[buildTime: 2025-06-12 02:28:36]");
|