@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.
Files changed (76) hide show
  1. package/address-edit.cjs.js +8 -0
  2. package/address-edit.es.d.ts +3 -0
  3. package/address-edit.es.js +5908 -0
  4. package/address-edit.umd.js +8 -0
  5. package/address-item.cjs.js +8 -0
  6. package/address-item.es.d.ts +3 -0
  7. package/address-item.es.js +425 -0
  8. package/address-item.umd.js +8 -0
  9. package/address-list.cjs.js +9 -0
  10. package/address-list.es.d.ts +3 -0
  11. package/address-list.es.js +1908 -0
  12. package/address-list.umd.js +9 -0
  13. package/index.cjs.js +8 -0
  14. package/index.es.js +15347 -0
  15. package/index.umd.js +8 -0
  16. package/mobile-product-pendant.cjs.js +8 -0
  17. package/mobile-product-pendant.es.d.ts +3 -0
  18. package/mobile-product-pendant.es.js +813 -0
  19. package/mobile-product-pendant.umd.js +8 -0
  20. package/order-confirm.cjs.js +9 -0
  21. package/order-confirm.es.d.ts +3 -0
  22. package/order-confirm.es.js +5254 -0
  23. package/order-confirm.umd.js +9 -0
  24. package/order-detail.cjs.js +8 -0
  25. package/order-detail.es.d.ts +3 -0
  26. package/order-detail.es.js +2474 -0
  27. package/order-detail.umd.js +8 -0
  28. package/order-item.cjs.js +8 -0
  29. package/order-item.es.d.ts +3 -0
  30. package/order-item.es.js +1448 -0
  31. package/order-item.umd.js +8 -0
  32. package/order-list-popup.cjs.js +9 -0
  33. package/order-list-popup.es.d.ts +3 -0
  34. package/order-list-popup.es.js +4114 -0
  35. package/order-list-popup.umd.js +9 -0
  36. package/order-list.cjs.js +8 -0
  37. package/order-list.es.d.ts +3 -0
  38. package/order-list.es.js +2572 -0
  39. package/order-list.umd.js +9 -0
  40. package/order-popup.cjs.js +9 -0
  41. package/order-popup.es.d.ts +3 -0
  42. package/order-popup.es.js +8050 -0
  43. package/order-popup.umd.js +9 -0
  44. package/package.json +28 -0
  45. package/pc-product-pendant.cjs.js +9 -0
  46. package/pc-product-pendant.es.d.ts +3 -0
  47. package/pc-product-pendant.es.js +1604 -0
  48. package/pc-product-pendant.umd.js +9 -0
  49. package/product-button.cjs.js +9 -0
  50. package/product-button.es.d.ts +3 -0
  51. package/product-button.es.js +1882 -0
  52. package/product-button.umd.js +9 -0
  53. package/product-detail-popup.cjs.js +9 -0
  54. package/product-detail-popup.es.d.ts +3 -0
  55. package/product-detail-popup.es.js +8250 -0
  56. package/product-detail-popup.umd.js +9 -0
  57. package/product-detail.cjs.js +9 -0
  58. package/product-detail.es.d.ts +3 -0
  59. package/product-detail.es.js +8082 -0
  60. package/product-detail.umd.js +9 -0
  61. package/product-iframe-link-popup.cjs.js +9 -0
  62. package/product-iframe-link-popup.es.d.ts +3 -0
  63. package/product-iframe-link-popup.es.js +2209 -0
  64. package/product-iframe-link-popup.umd.js +9 -0
  65. package/product-item.cjs.js +8 -0
  66. package/product-item.es.d.ts +3 -0
  67. package/product-item.es.js +3700 -0
  68. package/product-item.umd.js +9 -0
  69. package/product-list-popup.cjs.js +9 -0
  70. package/product-list-popup.es.d.ts +3 -0
  71. package/product-list-popup.es.js +5302 -0
  72. package/product-list-popup.umd.js +9 -0
  73. package/product-list.cjs.js +9 -0
  74. package/product-list.es.d.ts +3 -0
  75. package/product-list.es.js +5189 -0
  76. package/product-list.umd.js +9 -0
@@ -0,0 +1,8 @@
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.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-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-address-item{box-sizing:border-box;padding:12px 16px;border-radius:8px;background:#fff}.plv-product-address-item__top{display:flex;justify-content:space-between;align-items:center}.plv-product-address-item__content{flex:1;min-width:0}.plv-product-address-item__header{color:#000c;font-size:14px}.plv-product-address-item__header-phone{margin-left:4px}.plv-product-address-item__address{margin-top:4px;color:#0006;font-size:14px;display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical}.plv-product-address-item__icon-wrapper{display:flex;flex-shrink:0;align-items:center;margin-left:40px}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
+ "use strict";var e=Object.defineProperty,t=(t,r,n)=>((t,r,n)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n)(t,"symbol"!=typeof r?r+"":r,n);const r=require("vue");
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 n(e){return"[object Object]"===Object.prototype.toString.call(e)}function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(this,arguments)}function i(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}const s={silent:!1,logLevel:"warn"},a=["validator"],u=Object.prototype,l=u.toString,c=u.hasOwnProperty,d=/^\s*function (\w+)/;function f(e){var t;const r=null!==(t=null==e?void 0:e.type)&&void 0!==t?t:e;if(r){const e=r.toString().match(d);return e?e[1]:""}return""}const p=function(e){var t,r;return!1!==n(e)&&(void 0===(t=e.constructor)||!1!==n(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))};function y(){}let v=y;if("production"!=={}.NODE_ENV){const e="undefined"!=typeof console;v=e?function(e,t=s.logLevel){!1===s.silent&&console[t](`[VueTypes warn]: ${e}`)}:y}const h=(e,t)=>c.call(e,t),b=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},g=Array.isArray||function(e){return"[object Array]"===l.call(e)},m=e=>"[object Function]"===l.call(e),O=(e,t)=>p(e)&&h(e,"_vueTypes_name")&&(!t||e._vueTypes_name===t),_=e=>p(e)&&(h(e,"type")||["_vueTypes_name","validator","default","required"].some((t=>h(e,t))));function j(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function T(e,t,r=!1){let n,o=!0,i="";n=p(e)?e:{type:e};const s=O(n)?n._vueTypes_name+" - ":"";if(_(n)&&null!==n.type){if(void 0===n.type||!0===n.type)return o;if(!n.required&&null==t)return o;g(n.type)?(o=n.type.some((e=>!0===T(e,t,!0))),i=n.type.map((e=>f(e))).join(" or ")):(i=f(n),o="Array"===i?g(t):"Object"===i?p(t):"String"===i||"Number"===i||"Boolean"===i||"Function"===i?function(e){if(null==e)return"";const t=e.constructor.toString().match(d);return t?t[1].replace(/^Async/,""):""}(t)===i:t instanceof n.type)}if(!o){const e=`${s}value "${t}" should be of type "${i}"`;return!1===r?(v(e),!1):e}if(h(n,"validator")&&m(n.validator)){const e=v,i=[];if(v=e=>{i.push(e)},o=n.validator(t),v=e,!o){const e=(i.length>1?"* ":"")+i.join("\n* ");return i.length=0,!1===r?(v(e),o):e}}return o}function w(e,t){const r=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get(){return this.required=!0,this}},def:{value(e){return void 0===e?this.type===Boolean||Array.isArray(this.type)&&this.type.includes(Boolean)?void(this.default=void 0):(h(this,"default")&&delete this.default,this):m(e)||!0===T(this,e,!0)?(this.default=g(e)?()=>[...e]:p(e)?()=>Object.assign({},e):e,this):(v(`${this._vueTypes_name} - invalid default value: "${e}"`),this)}}}),{validator:n}=r;return m(n)&&(r.validator=j(n,r)),r}function $(e,t){const r=w(e,t);return Object.defineProperty(r,"validate",{value(e){return m(this.validator)&&v(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:\n${JSON.stringify(this)}`),this.validator=j(e,this),this}})}function x(e,t,r){const n=function(e){const t={};return Object.getOwnPropertyNames(e).forEach((r=>{t[r]=Object.getOwnPropertyDescriptor(e,r)})),Object.defineProperties({},t)}(t);if(n._vueTypes_name=e,!p(r))return n;const{validator:o}=r,s=i(r,a);if(m(o)){let{validator:e}=n;e&&(e=null!==(l=(u=e).__original)&&void 0!==l?l:u),n.validator=j(e?function(t){return e.call(this,t)&&o.call(this,t)}:o,n)}var u,l;return Object.assign(n,s)}function P(e){return e.replace(/^(?!\s*$)/gm," ")}const A=()=>$("any",{}),C=()=>$("function",{type:Function}),k=()=>$("boolean",{type:Boolean}),E=()=>$("string",{type:String}),S=()=>$("number",{type:Number}),q=()=>$("array",{type:Array}),N=()=>$("object",{type:Object});function V(e,t="custom validation failed"){if("function"!=typeof e)throw new TypeError("[VueTypes error]: You must provide a function as argument");return w(e.name||"<<anonymous function>>",{type:null,validator(r){const n=e(r);return n||v(`${this._vueTypes_name} - ${t}`),n}})}function F(e){if(!g(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");const t=`oneOf - value should be one of "${e.map((e=>"symbol"==typeof e?e.toString():e)).join('", "')}".`,r={validator(r){const n=-1!==e.indexOf(r);return n||v(t),n}};if(-1===e.indexOf(null)){const t=e.reduce(((e,t)=>{if(null!=t){const r=t.constructor;-1===e.indexOf(r)&&e.push(r)}return e}),[]);t.length>0&&(r.type=t)}return w("oneOf",r)}function I(e){if(!g(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");let t=!1,r=!1,n=[];for(let i=0;i<e.length;i+=1){const o=e[i];if(_(o)){if(m(o.validator)&&(t=!0),O(o,"oneOf")&&o.type){n=n.concat(o.type);continue}if(O(o,"nullable")){r=!0;continue}if(!0===o.type||!o.type){v('oneOfType - invalid usage of "true" and "null" as types.');continue}n=n.concat(o.type)}else n.push(o)}n=n.filter(((e,t)=>n.indexOf(e)===t));const o=!1===r&&n.length>0?n:null;return w("oneOfType",t?{type:o,validator(t){const r=[],n=e.some((e=>{const n=T(e,t,!0);return"string"==typeof n&&r.push(n),!0===n}));return n||v(`oneOfType - provided value does not match any of the ${r.length} passed-in validators:\n${P(r.join("\n"))}`),n}}:{type:o})}function B(e){return w("arrayOf",{type:Array,validator(t){let r="";const n=t.every((t=>(r=T(e,t,!0),!0===r)));return n||v(`arrayOf - value validation error:\n${P(r)}`),n}})}function D(e){return w("instanceOf",{type:e})}function L(e){return w("objectOf",{type:Object,validator(t){let r="";const n=Object.keys(t).every((n=>(r=T(e,t[n],!0),!0===r)));return n||v(`objectOf - value validation error:\n${P(r)}`),n}})}function R(e){const t=Object.keys(e),r=t.filter((t=>{var r;return!(null===(r=e[t])||void 0===r||!r.required)})),n=w("shape",{type:Object,validator(n){if(!p(n))return!1;const o=Object.keys(n);if(r.length>0&&r.some((e=>-1===o.indexOf(e)))){const e=r.filter((e=>-1===o.indexOf(e)));return v(1===e.length?`shape - required property "${e[0]}" is not defined.`:`shape - required properties "${e.join('", "')}" are not defined.`),!1}return o.every((r=>{if(-1===t.indexOf(r))return!0===this._vueTypes_isLoose||(v(`shape - shape definition does not include a "${r}" property. Allowed keys: "${t.join('", "')}".`),!1);const o=T(e[r],n[r],!0);return"string"==typeof o&&v(`shape - "${r}" property validation error:\n ${P(o)}`),!0===o}))}});return Object.defineProperty(n,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(n,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),n}const Y=["name","validate","getter"],M=(e=>((e=class{static get any(){return A()}static get func(){return C().def(this.defaults.func)}static get bool(){return void 0===this.defaults.bool?k():k().def(this.defaults.bool)}static get string(){return E().def(this.defaults.string)}static get number(){return S().def(this.defaults.number)}static get array(){return q().def(this.defaults.array)}static get object(){return N().def(this.defaults.object)}static get integer(){return w("integer",{type:Number,validator(e){const t=b(e);return!1===t&&v(`integer - "${e}" is not an integer`),t}}).def(this.defaults.integer)}static get symbol(){return w("symbol",{validator(e){const t="symbol"==typeof e;return!1===t&&v(`symbol - invalid value "${e}"`),t}})}static get nullable(){return Object.defineProperty({type:null,validator(e){const t=null===e;return!1===t&&v("nullable - value should be null"),t}},"_vueTypes_name",{value:"nullable"})}static extend(e){if(v("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."),g(e))return e.forEach((e=>this.extend(e))),this;const{name:t,validate:r=!1,getter:n=!1}=e,o=i(e,Y);if(h(this,t))throw new TypeError(`[VueTypes error]: Type "${t}" already defined`);const{type:s}=o;if(O(s))return delete o.type,Object.defineProperty(this,t,n?{get:()=>x(t,s,o)}:{value(...e){const r=x(t,s,o);return r.validator&&(r.validator=r.validator.bind(r,...e)),r}});let a;return a=n?{get(){const e=Object.assign({},o);return r?$(t,e):w(t,e)},enumerable:!0}:{value(...e){const n=Object.assign({},o);let i;return i=r?$(t,n):w(t,n),n.validator&&(i.validator=n.validator.bind(i,...e)),i},enumerable:!0},Object.defineProperty(this,t,a)}}).defaults={},e.sensibleDefaults=void 0,e.config=s,e.custom=V,e.oneOf=F,e.instanceOf=D,e.oneOfType=I,e.arrayOf=B,e.objectOf=L,e.shape=R,e.utils={validate:(e,t)=>!0===T(t,e,!0),toType:(e,t,r=!1)=>r?$(e,t):w(e,t)},e))();!function(e={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var t;(t=class extends M{static get sensibleDefaults(){return o({},this.defaults)}static set sensibleDefaults(t){this.defaults=!1!==t?o({},!0!==t?t:e):{}}}).defaults=o({},e)}();class J{static get string(){return E().def("")}static get looseString(){return E()}static get number(){return S().def(0)}static get looseNumber(){return S()}static get bool(){return k().def(!0)}static get looseBool(){return I([]).def(void 0)}static get looseElement(){return I([]).def(void 0)}}t(J,"objectType",N),t(J,"array",(()=>q().def([]))),t(J,"object",N),t(J,"func",C),t(J,"oneOf",F),t(J,"oneOfType",I),t(J,"enum",E),t(J,"any",A);const U=["&quot;","&#39;","&amp;","&lt;","&gt;"],z=Object.create(null),G=Object.create(null);function H(e,t){var r,n,o;t=t||{};const i=e.length,s=null!==(r=t.start)&&void 0!==r?r:0,a=null!==(n=t.end)&&void 0!==n?n:i-1,u=null!==(o=t.maskChar)&&void 0!==o?o:"*";if(s>=0&&a>=0&&s<=a&&a<i){let t=e.substring(0,s);return t+=new Array(a-s+2).join(u),a<i-1&&(t+=e.substring(a+1)),t}if(s>=0)return s>=i?e:e.substring(0,s)+new Array(i-s+1).join(u);if(a>=0){let t=new Array(Math.min(a,i)+2).join(u);return a<i-1&&(t+=e.substring(a+1)),t}return e}['"',"'","&","<",">"].forEach(((e,t)=>{z[e]=U[t],G[U[t]]=e}));function K(e,t,r,n,o,i,s,a){var u="function"==typeof e?e.options:e;return t&&(u.render=t,u.staticRenderFns=r,u._compiled=!0),{exports:e,options:u}}const Q=K(r.defineComponent({__name:"address-item",props:{addressInfo:J.object().isRequired},emits:{"choose-address":()=>!0},setup(e,{emit:t}){const r=e;return{__sfc:!0,props:r,emit:t,onClick:function(){t("choose-address",r.addressInfo)},maskChars:H}}}),(function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",{staticClass:"plv-product-address-item",on:{click:r.onClick}},[t("div",{staticClass:"plv-product-address-item__top"},[t("div",{staticClass:"plv-product-address-item__content"},[t("div",{staticClass:"plv-product-address-item__header"},[t("span",[e._v(e._s(e.addressInfo.name))]),t("span",{staticClass:"plv-product-address-item__header-phone"},[e._v(e._s(r.maskChars(e.addressInfo.mobile,{start:3,end:6})))])]),t("div",{staticClass:"plv-product-address-item__address"},[e._v(" "+e._s(e.addressInfo.address)+" ")])]),e.$slots.icon?t("div",{staticClass:"plv-product-address-item__icon-wrapper"},[e._t("icon")],2):e._e()]),e._t("action")],2)}),[]).exports;module.exports=Q,console.log("%c@polyv/product-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[component: address-item]","[version: 1.0.0-rc-20250612.3]","[buildTime: 2025-06-12 02:29:23]");
@@ -0,0 +1,3 @@
1
+ import Vue, { ComponentOptions } from 'vue';
2
+ declare const component: ComponentOptions<Vue>;
3
+ export default component;
@@ -0,0 +1,425 @@
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.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-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-address-item{box-sizing:border-box;padding:12px 16px;border-radius:8px;background:#fff}.plv-product-address-item__top{display:flex;justify-content:space-between;align-items:center}.plv-product-address-item__content{flex:1;min-width:0}.plv-product-address-item__header{color:#000c;font-size:14px}.plv-product-address-item__header-phone{margin-left:4px}.plv-product-address-item__address{margin-top:4px;color:#0006;font-size:14px;display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical}.plv-product-address-item__icon-wrapper{display:flex;flex-shrink:0;align-items:center;margin-left:40px}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
+ var __defProp = Object.defineProperty;
3
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
+ import { defineComponent } from "vue";
6
+ /*!
7
+ * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
8
+ *
9
+ * Copyright (c) 2014-2017, Jon Schlinkert.
10
+ * Released under the MIT License.
11
+ */
12
+ function isObject(o2) {
13
+ return Object.prototype.toString.call(o2) === "[object Object]";
14
+ }
15
+ function isPlainObject(o2) {
16
+ var ctor, prot;
17
+ if (isObject(o2) === false) return false;
18
+ ctor = o2.constructor;
19
+ if (ctor === void 0) return true;
20
+ prot = ctor.prototype;
21
+ if (isObject(prot) === false) return false;
22
+ if (prot.hasOwnProperty("isPrototypeOf") === false) {
23
+ return false;
24
+ }
25
+ return true;
26
+ }
27
+ var define_process_env_default = {};
28
+ function t() {
29
+ return t = Object.assign ? Object.assign.bind() : function(e2) {
30
+ for (var t2 = 1; t2 < arguments.length; t2++) {
31
+ var n2 = arguments[t2];
32
+ for (var r2 in n2) Object.prototype.hasOwnProperty.call(n2, r2) && (e2[r2] = n2[r2]);
33
+ }
34
+ return e2;
35
+ }, t.apply(this, arguments);
36
+ }
37
+ function n(e2, t2) {
38
+ if (null == e2) return {};
39
+ var n2 = {};
40
+ for (var r2 in e2) if (Object.prototype.hasOwnProperty.call(e2, r2)) {
41
+ if (t2.indexOf(r2) >= 0) continue;
42
+ n2[r2] = e2[r2];
43
+ }
44
+ return n2;
45
+ }
46
+ const r = { silent: false, logLevel: "warn" }, i = ["validator"], o = Object.prototype, a = o.toString, s = o.hasOwnProperty, u = /^\s*function (\w+)/;
47
+ function l(e2) {
48
+ var t2;
49
+ const n2 = null !== (t2 = null == e2 ? void 0 : e2.type) && void 0 !== t2 ? t2 : e2;
50
+ if (n2) {
51
+ const e3 = n2.toString().match(u);
52
+ return e3 ? e3[1] : "";
53
+ }
54
+ return "";
55
+ }
56
+ const c = isPlainObject;
57
+ function f() {
58
+ }
59
+ let d = f;
60
+ if ("production" !== define_process_env_default.NODE_ENV) {
61
+ const e2 = "undefined" != typeof console;
62
+ d = e2 ? function(e3, t2 = r.logLevel) {
63
+ false === r.silent && console[t2](`[VueTypes warn]: ${e3}`);
64
+ } : f;
65
+ }
66
+ const p = (e2, t2) => s.call(e2, t2), y = Number.isInteger || function(e2) {
67
+ return "number" == typeof e2 && isFinite(e2) && Math.floor(e2) === e2;
68
+ }, v = Array.isArray || function(e2) {
69
+ return "[object Array]" === a.call(e2);
70
+ }, h = (e2) => "[object Function]" === a.call(e2), b = (e2, t2) => c(e2) && p(e2, "_vueTypes_name") && (!t2 || e2._vueTypes_name === t2), g = (e2) => c(e2) && (p(e2, "type") || ["_vueTypes_name", "validator", "default", "required"].some((t2) => p(e2, t2)));
71
+ function O(e2, t2) {
72
+ return Object.defineProperty(e2.bind(t2), "__original", { value: e2 });
73
+ }
74
+ function m(e2, t2, n2 = false) {
75
+ let r2, i2 = true, o2 = "";
76
+ r2 = c(e2) ? e2 : { type: e2 };
77
+ const a2 = b(r2) ? r2._vueTypes_name + " - " : "";
78
+ if (g(r2) && null !== r2.type) {
79
+ if (void 0 === r2.type || true === r2.type) return i2;
80
+ if (!r2.required && null == t2) return i2;
81
+ v(r2.type) ? (i2 = r2.type.some((e3) => true === m(e3, t2, true)), o2 = r2.type.map((e3) => l(e3)).join(" or ")) : (o2 = l(r2), i2 = "Array" === o2 ? v(t2) : "Object" === o2 ? c(t2) : "String" === o2 || "Number" === o2 || "Boolean" === o2 || "Function" === o2 ? function(e3) {
82
+ if (null == e3) return "";
83
+ const t3 = e3.constructor.toString().match(u);
84
+ return t3 ? t3[1].replace(/^Async/, "") : "";
85
+ }(t2) === o2 : t2 instanceof r2.type);
86
+ }
87
+ if (!i2) {
88
+ const e3 = `${a2}value "${t2}" should be of type "${o2}"`;
89
+ return false === n2 ? (d(e3), false) : e3;
90
+ }
91
+ if (p(r2, "validator") && h(r2.validator)) {
92
+ const e3 = d, o3 = [];
93
+ if (d = (e4) => {
94
+ o3.push(e4);
95
+ }, i2 = r2.validator(t2), d = e3, !i2) {
96
+ const e4 = (o3.length > 1 ? "* " : "") + o3.join("\n* ");
97
+ return o3.length = 0, false === n2 ? (d(e4), i2) : e4;
98
+ }
99
+ }
100
+ return i2;
101
+ }
102
+ function j(e2, t2) {
103
+ const n2 = Object.defineProperties(t2, { _vueTypes_name: { value: e2, writable: true }, isRequired: { get() {
104
+ return this.required = true, this;
105
+ } }, def: { value(e3) {
106
+ return void 0 === e3 ? this.type === Boolean || Array.isArray(this.type) && this.type.includes(Boolean) ? void (this.default = void 0) : (p(this, "default") && delete this.default, this) : h(e3) || true === m(this, e3, true) ? (this.default = v(e3) ? () => [...e3] : c(e3) ? () => Object.assign({}, e3) : e3, this) : (d(`${this._vueTypes_name} - invalid default value: "${e3}"`), this);
107
+ } } }), { validator: r2 } = n2;
108
+ return h(r2) && (n2.validator = O(r2, n2)), n2;
109
+ }
110
+ function _(e2, t2) {
111
+ const n2 = j(e2, t2);
112
+ return Object.defineProperty(n2, "validate", { value(e3) {
113
+ return h(this.validator) && d(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:
114
+ ${JSON.stringify(this)}`), this.validator = O(e3, this), this;
115
+ } });
116
+ }
117
+ function T(e2, t2, r2) {
118
+ const o2 = function(e3) {
119
+ const t3 = {};
120
+ return Object.getOwnPropertyNames(e3).forEach((n2) => {
121
+ t3[n2] = Object.getOwnPropertyDescriptor(e3, n2);
122
+ }), Object.defineProperties({}, t3);
123
+ }(t2);
124
+ if (o2._vueTypes_name = e2, !c(r2)) return o2;
125
+ const { validator: a2 } = r2, s2 = n(r2, i);
126
+ if (h(a2)) {
127
+ let { validator: e3 } = o2;
128
+ e3 && (e3 = null !== (l2 = (u2 = e3).__original) && void 0 !== l2 ? l2 : u2), o2.validator = O(e3 ? function(t3) {
129
+ return e3.call(this, t3) && a2.call(this, t3);
130
+ } : a2, o2);
131
+ }
132
+ var u2, l2;
133
+ return Object.assign(o2, s2);
134
+ }
135
+ function $(e2) {
136
+ return e2.replace(/^(?!\s*$)/gm, " ");
137
+ }
138
+ const w = () => _("any", {}), x = () => _("function", { type: Function }), P = () => _("boolean", { type: Boolean }), A = () => _("string", { type: String }), E = () => _("number", { type: Number }), S = () => _("array", { type: Array }), N = () => _("object", { type: Object }), V = () => j("integer", { type: Number, validator(e2) {
139
+ const t2 = y(e2);
140
+ return false === t2 && d(`integer - "${e2}" is not an integer`), t2;
141
+ } }), q = () => j("symbol", { validator(e2) {
142
+ const t2 = "symbol" == typeof e2;
143
+ return false === t2 && d(`symbol - invalid value "${e2}"`), t2;
144
+ } }), k = () => Object.defineProperty({ type: null, validator(e2) {
145
+ const t2 = null === e2;
146
+ return false === t2 && d("nullable - value should be null"), t2;
147
+ } }, "_vueTypes_name", { value: "nullable" });
148
+ function D(e2, t2 = "custom validation failed") {
149
+ if ("function" != typeof e2) throw new TypeError("[VueTypes error]: You must provide a function as argument");
150
+ return j(e2.name || "<<anonymous function>>", { type: null, validator(n2) {
151
+ const r2 = e2(n2);
152
+ return r2 || d(`${this._vueTypes_name} - ${t2}`), r2;
153
+ } });
154
+ }
155
+ function L(e2) {
156
+ if (!v(e2)) throw new TypeError("[VueTypes error]: You must provide an array as argument.");
157
+ const t2 = `oneOf - value should be one of "${e2.map((e3) => "symbol" == typeof e3 ? e3.toString() : e3).join('", "')}".`, n2 = { validator(n3) {
158
+ const r2 = -1 !== e2.indexOf(n3);
159
+ return r2 || d(t2), r2;
160
+ } };
161
+ if (-1 === e2.indexOf(null)) {
162
+ const t3 = e2.reduce((e3, t4) => {
163
+ if (null != t4) {
164
+ const n3 = t4.constructor;
165
+ -1 === e3.indexOf(n3) && e3.push(n3);
166
+ }
167
+ return e3;
168
+ }, []);
169
+ t3.length > 0 && (n2.type = t3);
170
+ }
171
+ return j("oneOf", n2);
172
+ }
173
+ function B(e2) {
174
+ if (!v(e2)) throw new TypeError("[VueTypes error]: You must provide an array as argument");
175
+ let t2 = false, n2 = false, r2 = [];
176
+ for (let i3 = 0; i3 < e2.length; i3 += 1) {
177
+ const o2 = e2[i3];
178
+ if (g(o2)) {
179
+ if (h(o2.validator) && (t2 = true), b(o2, "oneOf") && o2.type) {
180
+ r2 = r2.concat(o2.type);
181
+ continue;
182
+ }
183
+ if (b(o2, "nullable")) {
184
+ n2 = true;
185
+ continue;
186
+ }
187
+ if (true === o2.type || !o2.type) {
188
+ d('oneOfType - invalid usage of "true" and "null" as types.');
189
+ continue;
190
+ }
191
+ r2 = r2.concat(o2.type);
192
+ } else r2.push(o2);
193
+ }
194
+ r2 = r2.filter((e3, t3) => r2.indexOf(e3) === t3);
195
+ const i2 = false === n2 && r2.length > 0 ? r2 : null;
196
+ return j("oneOfType", t2 ? { type: i2, validator(t3) {
197
+ const n3 = [], r3 = e2.some((e3) => {
198
+ const r4 = m(e3, t3, true);
199
+ return "string" == typeof r4 && n3.push(r4), true === r4;
200
+ });
201
+ return r3 || d(`oneOfType - provided value does not match any of the ${n3.length} passed-in validators:
202
+ ${$(n3.join("\n"))}`), r3;
203
+ } } : { type: i2 });
204
+ }
205
+ function F(e2) {
206
+ return j("arrayOf", { type: Array, validator(t2) {
207
+ let n2 = "";
208
+ const r2 = t2.every((t3) => (n2 = m(e2, t3, true), true === n2));
209
+ return r2 || d(`arrayOf - value validation error:
210
+ ${$(n2)}`), r2;
211
+ } });
212
+ }
213
+ function Y(e2) {
214
+ return j("instanceOf", { type: e2 });
215
+ }
216
+ function I(e2) {
217
+ return j("objectOf", { type: Object, validator(t2) {
218
+ let n2 = "";
219
+ const r2 = Object.keys(t2).every((r3) => (n2 = m(e2, t2[r3], true), true === n2));
220
+ return r2 || d(`objectOf - value validation error:
221
+ ${$(n2)}`), r2;
222
+ } });
223
+ }
224
+ function J(e2) {
225
+ const t2 = Object.keys(e2), n2 = t2.filter((t3) => {
226
+ var n3;
227
+ return !(null === (n3 = e2[t3]) || void 0 === n3 || !n3.required);
228
+ }), r2 = j("shape", { type: Object, validator(r3) {
229
+ if (!c(r3)) return false;
230
+ const i2 = Object.keys(r3);
231
+ if (n2.length > 0 && n2.some((e3) => -1 === i2.indexOf(e3))) {
232
+ const e3 = n2.filter((e4) => -1 === i2.indexOf(e4));
233
+ return d(1 === e3.length ? `shape - required property "${e3[0]}" is not defined.` : `shape - required properties "${e3.join('", "')}" are not defined.`), false;
234
+ }
235
+ return i2.every((n3) => {
236
+ if (-1 === t2.indexOf(n3)) return true === this._vueTypes_isLoose || (d(`shape - shape definition does not include a "${n3}" property. Allowed keys: "${t2.join('", "')}".`), false);
237
+ const i3 = m(e2[n3], r3[n3], true);
238
+ return "string" == typeof i3 && d(`shape - "${n3}" property validation error:
239
+ ${$(i3)}`), true === i3;
240
+ });
241
+ } });
242
+ return Object.defineProperty(r2, "_vueTypes_isLoose", { writable: true, value: false }), Object.defineProperty(r2, "loose", { get() {
243
+ return this._vueTypes_isLoose = true, this;
244
+ } }), r2;
245
+ }
246
+ const M = ["name", "validate", "getter"], R = /* @__PURE__ */ ((e2) => ((e2 = class {
247
+ static get any() {
248
+ return w();
249
+ }
250
+ static get func() {
251
+ return x().def(this.defaults.func);
252
+ }
253
+ static get bool() {
254
+ return void 0 === this.defaults.bool ? P() : P().def(this.defaults.bool);
255
+ }
256
+ static get string() {
257
+ return A().def(this.defaults.string);
258
+ }
259
+ static get number() {
260
+ return E().def(this.defaults.number);
261
+ }
262
+ static get array() {
263
+ return S().def(this.defaults.array);
264
+ }
265
+ static get object() {
266
+ return N().def(this.defaults.object);
267
+ }
268
+ static get integer() {
269
+ return V().def(this.defaults.integer);
270
+ }
271
+ static get symbol() {
272
+ return q();
273
+ }
274
+ static get nullable() {
275
+ return k();
276
+ }
277
+ static extend(e3) {
278
+ if (d("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."), v(e3)) return e3.forEach((e4) => this.extend(e4)), this;
279
+ const { name: t2, validate: r2 = false, getter: i2 = false } = e3, o2 = n(e3, M);
280
+ if (p(this, t2)) throw new TypeError(`[VueTypes error]: Type "${t2}" already defined`);
281
+ const { type: a2 } = o2;
282
+ if (b(a2)) return delete o2.type, Object.defineProperty(this, t2, i2 ? { get: () => T(t2, a2, o2) } : { value(...e4) {
283
+ const n2 = T(t2, a2, o2);
284
+ return n2.validator && (n2.validator = n2.validator.bind(n2, ...e4)), n2;
285
+ } });
286
+ let s2;
287
+ return s2 = i2 ? { get() {
288
+ const e4 = Object.assign({}, o2);
289
+ return r2 ? _(t2, e4) : j(t2, e4);
290
+ }, enumerable: true } : { value(...e4) {
291
+ const n2 = Object.assign({}, o2);
292
+ let i3;
293
+ return i3 = r2 ? _(t2, n2) : j(t2, n2), n2.validator && (i3.validator = n2.validator.bind(i3, ...e4)), i3;
294
+ }, enumerable: true }, Object.defineProperty(this, t2, s2);
295
+ }
296
+ }).defaults = {}, e2.sensibleDefaults = void 0, e2.config = r, e2.custom = D, e2.oneOf = L, e2.instanceOf = Y, e2.oneOfType = B, e2.arrayOf = F, e2.objectOf = I, e2.shape = J, e2.utils = { validate: (e3, t2) => true === m(t2, e3, true), toType: (e3, t2, n2 = false) => n2 ? _(e3, t2) : j(e3, t2) }, e2))();
297
+ function U(e2 = { func: () => {
298
+ }, bool: true, string: "", number: 0, array: () => [], object: () => ({}), integer: 0 }) {
299
+ var n2;
300
+ return (n2 = class extends R {
301
+ static get sensibleDefaults() {
302
+ return t({}, this.defaults);
303
+ }
304
+ static set sensibleDefaults(n3) {
305
+ this.defaults = false !== n3 ? t({}, true !== n3 ? n3 : e2) : {};
306
+ }
307
+ }).defaults = t({}, e2), n2;
308
+ }
309
+ class z extends U() {
310
+ }
311
+ class PropUtils {
312
+ /** String 类型,默认:'' */
313
+ static get string() {
314
+ return A().def("");
315
+ }
316
+ /** String 类型,默认:undefined */
317
+ static get looseString() {
318
+ return A();
319
+ }
320
+ /** Number 类型,默认:0 */
321
+ static get number() {
322
+ return E().def(0);
323
+ }
324
+ /** Number 类型,默认:undefined */
325
+ static get looseNumber() {
326
+ return E();
327
+ }
328
+ /** Boolean 类型,默认:true */
329
+ static get bool() {
330
+ return P().def(true);
331
+ }
332
+ static get looseBool() {
333
+ return B([]).def(void 0);
334
+ }
335
+ static get looseElement() {
336
+ return B([]).def(void 0);
337
+ }
338
+ }
339
+ __publicField(PropUtils, "objectType", N);
340
+ /** Array 类型,默认:[] */
341
+ __publicField(PropUtils, "array", () => {
342
+ return S().def([]);
343
+ });
344
+ /** Object 类型 */
345
+ __publicField(PropUtils, "object", N);
346
+ /** Function 类型 */
347
+ __publicField(PropUtils, "func", x);
348
+ /** 指定为数组中的值 */
349
+ __publicField(PropUtils, "oneOf", L);
350
+ /** 自定义类型 */
351
+ __publicField(PropUtils, "oneOfType", B);
352
+ /** 枚举类型 */
353
+ __publicField(PropUtils, "enum", A);
354
+ /** 任意类型 */
355
+ __publicField(PropUtils, "any", w);
356
+ const emitFunc = () => () => true;
357
+ const htmlChars = ['"', "'", "&", "<", ">"], htmlEntities = ["&quot;", "&#39;", "&amp;", "&lt;", "&gt;"], charsToEntities = /* @__PURE__ */ Object.create(null), entitiesToChars = /* @__PURE__ */ Object.create(null);
358
+ htmlChars.forEach((n2, e) => {
359
+ charsToEntities[n2] = htmlEntities[e], entitiesToChars[htmlEntities[e]] = n2;
360
+ });
361
+ function maskChars(n2, e) {
362
+ var t2, r2, o2;
363
+ e = e || {};
364
+ const i2 = n2.length, l2 = null !== (t2 = e.start) && void 0 !== t2 ? t2 : 0, s2 = null !== (r2 = e.end) && void 0 !== r2 ? r2 : i2 - 1, a2 = null !== (o2 = e.maskChar) && void 0 !== o2 ? o2 : "*";
365
+ if (l2 >= 0 && s2 >= 0 && l2 <= s2 && s2 < i2) {
366
+ let e2 = n2.substring(0, l2);
367
+ return e2 += new Array(s2 - l2 + 2).join(a2), s2 < i2 - 1 && (e2 += n2.substring(s2 + 1)), e2;
368
+ }
369
+ if (l2 >= 0) return l2 >= i2 ? n2 : n2.substring(0, l2) + new Array(i2 - l2 + 1).join(a2);
370
+ if (s2 >= 0) {
371
+ let e2 = new Array(Math.min(s2, i2) + 2).join(a2);
372
+ return s2 < i2 - 1 && (e2 += n2.substring(s2 + 1)), e2;
373
+ }
374
+ return n2;
375
+ }
376
+ const _sfc_main = /* @__PURE__ */ defineComponent({
377
+ __name: "address-item",
378
+ props: {
379
+ addressInfo: PropUtils.object().isRequired
380
+ },
381
+ emits: {
382
+ "choose-address": emitFunc()
383
+ },
384
+ setup(__props, { emit }) {
385
+ const props = __props;
386
+ function onClick() {
387
+ emit("choose-address", props.addressInfo);
388
+ }
389
+ return { __sfc: true, props, emit, onClick, maskChars };
390
+ }
391
+ });
392
+ function normalizeComponent(scriptExports, render2, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
393
+ var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
394
+ if (render2) {
395
+ options.render = render2;
396
+ options.staticRenderFns = staticRenderFns;
397
+ options._compiled = true;
398
+ }
399
+ return {
400
+ exports: scriptExports,
401
+ options
402
+ };
403
+ }
404
+ var _sfc_render = function render() {
405
+ var _vm = this, _c = _vm._self._c, _setup = _vm._self._setupProxy;
406
+ return _c("div", { staticClass: "plv-product-address-item", on: { "click": _setup.onClick } }, [_c("div", { staticClass: "plv-product-address-item__top" }, [_c("div", { staticClass: "plv-product-address-item__content" }, [_c("div", { staticClass: "plv-product-address-item__header" }, [_c("span", [_vm._v(_vm._s(_vm.addressInfo.name))]), _c("span", { staticClass: "plv-product-address-item__header-phone" }, [_vm._v(_vm._s(_setup.maskChars(_vm.addressInfo.mobile, { start: 3, end: 6 })))])]), _c("div", { staticClass: "plv-product-address-item__address" }, [_vm._v(" " + _vm._s(_vm.addressInfo.address) + " ")])]), _vm.$slots.icon ? _c("div", { staticClass: "plv-product-address-item__icon-wrapper" }, [_vm._t("icon")], 2) : _vm._e()]), _vm._t("action")], 2);
407
+ };
408
+ var _sfc_staticRenderFns = [];
409
+ var __component__ = /* @__PURE__ */ normalizeComponent(
410
+ _sfc_main,
411
+ _sfc_render,
412
+ _sfc_staticRenderFns
413
+ );
414
+ const addressItem = __component__.exports;
415
+ ;
416
+ console.log(
417
+ "%c@polyv/product-ui",
418
+ "background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff",
419
+ "[component: address-item]",
420
+ "[version: 1.0.0-rc-20250612.3]",
421
+ "[buildTime: 2025-06-12 02:29:23]"
422
+ );
423
+ export {
424
+ addressItem as default
425
+ };
@@ -0,0 +1,8 @@
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.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-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-address-item{box-sizing:border-box;padding:12px 16px;border-radius:8px;background:#fff}.plv-product-address-item__top{display:flex;justify-content:space-between;align-items:center}.plv-product-address-item__content{flex:1;min-width:0}.plv-product-address-item__header{color:#000c;font-size:14px}.plv-product-address-item__header-phone{margin-left:4px}.plv-product-address-item__address{margin-top:4px;color:#0006;font-size:14px;display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical}.plv-product-address-item__icon-wrapper{display:flex;flex-shrink:0;align-items:center;margin-left:40px}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).PolyvProductUIAddressItem=t(e.Vue2Module||e.Vue)}(this,(function(e){"use strict";var t=Object.defineProperty,n=(e,n,r)=>((e,n,r)=>n in e?t(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r)(e,"symbol"!=typeof n?n+"":n,r)
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 r(e){return"[object Object]"===Object.prototype.toString.call(e)}function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const s={silent:!1,logLevel:"warn"},a=["validator"],u=Object.prototype,l=u.toString,c=u.hasOwnProperty,d=/^\s*function (\w+)/;function f(e){var t;const n=null!==(t=null==e?void 0:e.type)&&void 0!==t?t:e;if(n){const e=n.toString().match(d);return e?e[1]:""}return""}const p=function(e){var t,n;return!1!==r(e)&&(void 0===(t=e.constructor)||!1!==r(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))};function y(){}let v=y;if("production"!=={}.NODE_ENV){const e="undefined"!=typeof console;v=e?function(e,t=s.logLevel){!1===s.silent&&console[t](`[VueTypes warn]: ${e}`)}:y}const h=(e,t)=>c.call(e,t),b=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},g=Array.isArray||function(e){return"[object Array]"===l.call(e)},m=e=>"[object Function]"===l.call(e),O=(e,t)=>p(e)&&h(e,"_vueTypes_name")&&(!t||e._vueTypes_name===t),_=e=>p(e)&&(h(e,"type")||["_vueTypes_name","validator","default","required"].some((t=>h(e,t))));function j(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function T(e,t,n=!1){let r,o=!0,i="";r=p(e)?e:{type:e};const s=O(r)?r._vueTypes_name+" - ":"";if(_(r)&&null!==r.type){if(void 0===r.type||!0===r.type)return o;if(!r.required&&null==t)return o;g(r.type)?(o=r.type.some((e=>!0===T(e,t,!0))),i=r.type.map((e=>f(e))).join(" or ")):(i=f(r),o="Array"===i?g(t):"Object"===i?p(t):"String"===i||"Number"===i||"Boolean"===i||"Function"===i?function(e){if(null==e)return"";const t=e.constructor.toString().match(d);return t?t[1].replace(/^Async/,""):""}(t)===i:t instanceof r.type)}if(!o){const e=`${s}value "${t}" should be of type "${i}"`;return!1===n?(v(e),!1):e}if(h(r,"validator")&&m(r.validator)){const e=v,i=[];if(v=e=>{i.push(e)},o=r.validator(t),v=e,!o){const e=(i.length>1?"* ":"")+i.join("\n* ");return i.length=0,!1===n?(v(e),o):e}}return o}function w(e,t){const n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get(){return this.required=!0,this}},def:{value(e){return void 0===e?this.type===Boolean||Array.isArray(this.type)&&this.type.includes(Boolean)?void(this.default=void 0):(h(this,"default")&&delete this.default,this):m(e)||!0===T(this,e,!0)?(this.default=g(e)?()=>[...e]:p(e)?()=>Object.assign({},e):e,this):(v(`${this._vueTypes_name} - invalid default value: "${e}"`),this)}}}),{validator:r}=n;return m(r)&&(n.validator=j(r,n)),n}function $(e,t){const n=w(e,t);return Object.defineProperty(n,"validate",{value(e){return m(this.validator)&&v(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:\n${JSON.stringify(this)}`),this.validator=j(e,this),this}})}function x(e,t,n){const r=function(e){const t={};return Object.getOwnPropertyNames(e).forEach((n=>{t[n]=Object.getOwnPropertyDescriptor(e,n)})),Object.defineProperties({},t)}(t);if(r._vueTypes_name=e,!p(n))return r;const{validator:o}=n,s=i(n,a);if(m(o)){let{validator:e}=r;e&&(e=null!==(l=(u=e).__original)&&void 0!==l?l:u),r.validator=j(e?function(t){return e.call(this,t)&&o.call(this,t)}:o,r)}var u,l;return Object.assign(r,s)}function P(e){return e.replace(/^(?!\s*$)/gm," ")}const A=()=>$("any",{}),C=()=>$("function",{type:Function}),k=()=>$("boolean",{type:Boolean}),E=()=>$("string",{type:String}),S=()=>$("number",{type:Number}),q=()=>$("array",{type:Array}),V=()=>$("object",{type:Object});function N(e,t="custom validation failed"){if("function"!=typeof e)throw new TypeError("[VueTypes error]: You must provide a function as argument");return w(e.name||"<<anonymous function>>",{type:null,validator(n){const r=e(n);return r||v(`${this._vueTypes_name} - ${t}`),r}})}function I(e){if(!g(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");const t=`oneOf - value should be one of "${e.map((e=>"symbol"==typeof e?e.toString():e)).join('", "')}".`,n={validator(n){const r=-1!==e.indexOf(n);return r||v(t),r}};if(-1===e.indexOf(null)){const t=e.reduce(((e,t)=>{if(null!=t){const n=t.constructor;-1===e.indexOf(n)&&e.push(n)}return e}),[]);t.length>0&&(n.type=t)}return w("oneOf",n)}function F(e){if(!g(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");let t=!1,n=!1,r=[];for(let i=0;i<e.length;i+=1){const o=e[i];if(_(o)){if(m(o.validator)&&(t=!0),O(o,"oneOf")&&o.type){r=r.concat(o.type);continue}if(O(o,"nullable")){n=!0;continue}if(!0===o.type||!o.type){v('oneOfType - invalid usage of "true" and "null" as types.');continue}r=r.concat(o.type)}else r.push(o)}r=r.filter(((e,t)=>r.indexOf(e)===t));const o=!1===n&&r.length>0?r:null;return w("oneOfType",t?{type:o,validator(t){const n=[],r=e.some((e=>{const r=T(e,t,!0);return"string"==typeof r&&n.push(r),!0===r}));return r||v(`oneOfType - provided value does not match any of the ${n.length} passed-in validators:\n${P(n.join("\n"))}`),r}}:{type:o})}function B(e){return w("arrayOf",{type:Array,validator(t){let n="";const r=t.every((t=>(n=T(e,t,!0),!0===n)));return r||v(`arrayOf - value validation error:\n${P(n)}`),r}})}function D(e){return w("instanceOf",{type:e})}function L(e){return w("objectOf",{type:Object,validator(t){let n="";const r=Object.keys(t).every((r=>(n=T(e,t[r],!0),!0===n)));return r||v(`objectOf - value validation error:\n${P(n)}`),r}})}function M(e){const t=Object.keys(e),n=t.filter((t=>{var n;return!(null===(n=e[t])||void 0===n||!n.required)})),r=w("shape",{type:Object,validator(r){if(!p(r))return!1;const o=Object.keys(r);if(n.length>0&&n.some((e=>-1===o.indexOf(e)))){const e=n.filter((e=>-1===o.indexOf(e)));return v(1===e.length?`shape - required property "${e[0]}" is not defined.`:`shape - required properties "${e.join('", "')}" are not defined.`),!1}return o.every((n=>{if(-1===t.indexOf(n))return!0===this._vueTypes_isLoose||(v(`shape - shape definition does not include a "${n}" property. Allowed keys: "${t.join('", "')}".`),!1);const o=T(e[n],r[n],!0);return"string"==typeof o&&v(`shape - "${n}" property validation error:\n ${P(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 R=["name","validate","getter"],Y=(e=>((e=class{static get any(){return A()}static get func(){return C().def(this.defaults.func)}static get bool(){return void 0===this.defaults.bool?k():k().def(this.defaults.bool)}static get string(){return E().def(this.defaults.string)}static get number(){return S().def(this.defaults.number)}static get array(){return q().def(this.defaults.array)}static get object(){return V().def(this.defaults.object)}static get integer(){return w("integer",{type:Number,validator(e){const t=b(e);return!1===t&&v(`integer - "${e}" is not an integer`),t}}).def(this.defaults.integer)}static get symbol(){return w("symbol",{validator(e){const t="symbol"==typeof e;return!1===t&&v(`symbol - invalid value "${e}"`),t}})}static get nullable(){return Object.defineProperty({type:null,validator(e){const t=null===e;return!1===t&&v("nullable - value should be null"),t}},"_vueTypes_name",{value:"nullable"})}static extend(e){if(v("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."),g(e))return e.forEach((e=>this.extend(e))),this;const{name:t,validate:n=!1,getter:r=!1}=e,o=i(e,R);if(h(this,t))throw new TypeError(`[VueTypes error]: Type "${t}" already defined`);const{type:s}=o;if(O(s))return delete o.type,Object.defineProperty(this,t,r?{get:()=>x(t,s,o)}:{value(...e){const n=x(t,s,o);return n.validator&&(n.validator=n.validator.bind(n,...e)),n}});let a;return a=r?{get(){const e=Object.assign({},o);return n?$(t,e):w(t,e)},enumerable:!0}:{value(...e){const r=Object.assign({},o);let i;return i=n?$(t,r):w(t,r),r.validator&&(i.validator=r.validator.bind(i,...e)),i},enumerable:!0},Object.defineProperty(this,t,a)}}).defaults={},e.sensibleDefaults=void 0,e.config=s,e.custom=N,e.oneOf=I,e.instanceOf=D,e.oneOfType=F,e.arrayOf=B,e.objectOf=L,e.shape=M,e.utils={validate:(e,t)=>!0===T(t,e,!0),toType:(e,t,n=!1)=>n?$(e,t):w(e,t)},e))();!function(e={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var t;(t=class extends Y{static get sensibleDefaults(){return o({},this.defaults)}static set sensibleDefaults(t){this.defaults=!1!==t?o({},!0!==t?t:e):{}}}).defaults=o({},e)}();class U{static get string(){return E().def("")}static get looseString(){return E()}static get number(){return S().def(0)}static get looseNumber(){return S()}static get bool(){return k().def(!0)}static get looseBool(){return F([]).def(void 0)}static get looseElement(){return F([]).def(void 0)}}n(U,"objectType",V),n(U,"array",(()=>q().def([]))),n(U,"object",V),n(U,"func",C),n(U,"oneOf",I),n(U,"oneOfType",F),n(U,"enum",E),n(U,"any",A);const J=["&quot;","&#39;","&amp;","&lt;","&gt;"],z=Object.create(null),G=Object.create(null);function H(e,t){var n,r,o;t=t||{};const i=e.length,s=null!==(n=t.start)&&void 0!==n?n:0,a=null!==(r=t.end)&&void 0!==r?r:i-1,u=null!==(o=t.maskChar)&&void 0!==o?o:"*";if(s>=0&&a>=0&&s<=a&&a<i){let t=e.substring(0,s);return t+=new Array(a-s+2).join(u),a<i-1&&(t+=e.substring(a+1)),t}if(s>=0)return s>=i?e:e.substring(0,s)+new Array(i-s+1).join(u);if(a>=0){let t=new Array(Math.min(a,i)+2).join(u);return a<i-1&&(t+=e.substring(a+1)),t}return e}['"',"'","&","<",">"].forEach(((e,t)=>{z[e]=J[t],G[J[t]]=e}));function K(e,t,n,r,o,i,s,a){var u="function"==typeof e?e.options:e;return t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),{exports:e,options:u}}return K(e.defineComponent({__name:"address-item",props:{addressInfo:U.object().isRequired},emits:{"choose-address":()=>!0},setup(e,{emit:t}){const n=e;return{__sfc:!0,props:n,emit:t,onClick:function(){t("choose-address",n.addressInfo)},maskChars:H}}}),(function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t("div",{staticClass:"plv-product-address-item",on:{click:n.onClick}},[t("div",{staticClass:"plv-product-address-item__top"},[t("div",{staticClass:"plv-product-address-item__content"},[t("div",{staticClass:"plv-product-address-item__header"},[t("span",[e._v(e._s(e.addressInfo.name))]),t("span",{staticClass:"plv-product-address-item__header-phone"},[e._v(e._s(n.maskChars(e.addressInfo.mobile,{start:3,end:6})))])]),t("div",{staticClass:"plv-product-address-item__address"},[e._v(" "+e._s(e.addressInfo.address)+" ")])]),e.$slots.icon?t("div",{staticClass:"plv-product-address-item__icon-wrapper"},[e._t("icon")],2):e._e()]),e._t("action")],2)}),[]).exports})),console.log("%c@polyv/product-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[component: address-item]","[version: 1.0.0-rc-20250612.3]","[buildTime: 2025-06-12 02:29:23]");