@tuoyuan/module-page-select 1.0.1

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.
@@ -0,0 +1,2 @@
1
+ (function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["module-page-select"]=t(require("vue")):e["module-page-select"]=t(e["Vue"])})("undefined"!==typeof self?self:this,function(e){return function(){var t={9164:function(e,t,r){"use strict";r.r(t);var n=r(1601),o=r.n(n),i=r(6314),a=r.n(i),s=a()(o());s.push([e.id,".module-page-select[data-v-142cfac8]{width:100%}.selection-preview[data-v-142cfac8]{margin-top:8px;padding:8px 12px;background:#f0f9ff;border:1px solid #91d5ff;border-radius:4px;font-size:13px}.preview-label[data-v-142cfac8]{color:#666;font-size:12px;margin-bottom:4px}.preview-value[data-v-142cfac8]{color:#1890ff;font-weight:500}.config-form[data-v-142cfac8]{margin-top:16px}",""]),t["default"]=s},6314:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r="",n="undefined"!==typeof t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r}).join("")},t.i=function(e,r,n,o,i){"string"===typeof e&&(e=[[null,e,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(a[c]=!0)}for(var u=0;u<e.length;u++){var l=[].concat(e[u]);n&&a[l[0]]||("undefined"!==typeof i&&("undefined"===typeof l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=i),r&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=r):l[2]=r),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),t.push(l))}},t}},1601:function(e){"use strict";e.exports=function(e){return e[1]}},8868:function(e,t){"use strict";t.A=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r}},7441:function(e,t,r){var n=r(9164);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals);var o=r(5292).A;o("2ff6e9f2",n,!0,{sourceMap:!1,shadowMode:!1})},5292:function(e,t,r){"use strict";r.d(t,{A:function(){return h}});r(4114);function n(e,t){for(var r=[],n={},o=0;o<t.length;o++){var i=t[o],a=i[0],s=i[1],c=i[2],u=i[3],l={id:e+":"+o,css:s,media:c,sourceMap:u};n[a]?n[a].parts.push(l):r.push(n[a]={id:a,parts:[l]})}return r}var o="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i={},a=o&&(document.head||document.getElementsByTagName("head")[0]),s=null,c=0,u=!1,l=function(){},f=null,d="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(e,t,r,o){u=r,f=o||{};var a=n(e,t);return g(a),function(t){for(var r=[],o=0;o<a.length;o++){var s=a[o],c=i[s.id];c.refs--,r.push(c)}t?(a=n(e,t),g(a)):a=[];for(o=0;o<r.length;o++){c=r[o];if(0===c.refs){for(var u=0;u<c.parts.length;u++)c.parts[u]();delete i[c.id]}}}}function g(e){for(var t=0;t<e.length;t++){var r=e[t],n=i[r.id];if(n){n.refs++;for(var o=0;o<n.parts.length;o++)n.parts[o](r.parts[o]);for(;o<r.parts.length;o++)n.parts.push(m(r.parts[o]));n.parts.length>r.parts.length&&(n.parts.length=r.parts.length)}else{var a=[];for(o=0;o<r.parts.length;o++)a.push(m(r.parts[o]));i[r.id]={id:r.id,refs:1,parts:a}}}}function v(){var e=document.createElement("style");return e.type="text/css",a.appendChild(e),e}function m(e){var t,r,n=document.querySelector("style["+d+'~="'+e.id+'"]');if(n){if(u)return l;n.parentNode.removeChild(n)}if(p){var o=c++;n=s||(s=v()),t=b.bind(null,n,o,!1),r=b.bind(null,n,o,!0)}else n=v(),t=w.bind(null,n),r=function(){n.parentNode.removeChild(n)};return t(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;t(e=n)}else r()}}var y=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}();function b(e,t,r,n){var o=r?"":n.css;if(e.styleSheet)e.styleSheet.cssText=y(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function w(e,t){var r=t.css,n=t.media,o=t.sourceMap;if(n&&e.setAttribute("media",n),f.ssrId&&e.setAttribute(d,t.id),o&&(r+="\n/*# sourceURL="+o.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=r;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}},9274:function(t){"use strict";t.exports=e},9306:function(e,t,r){"use strict";var n=r(4901),o=r(6823),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not a function")}},6469:function(e,t,r){"use strict";var n=r(8227),o=r(2360),i=r(4913).f,a=n("unscopables"),s=Array.prototype;void 0===s[a]&&i(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},679:function(e,t,r){"use strict";var n=r(1625),o=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new o("Incorrect invocation")}},8551:function(e,t,r){"use strict";var n=r(34),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not an object")}},9617:function(e,t,r){"use strict";var n=r(5397),o=r(5610),i=r(6198),a=function(e){return function(t,r,a){var s=n(t),c=i(s);if(0===c)return!e&&-1;var u,l=o(a,c);if(e&&r!==r){while(c>l)if(u=s[l++],u!==u)return!0}else for(;c>l;l++)if((e||l in s)&&s[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},4527:function(e,t,r){"use strict";var n=r(3724),o=r(4376),i=TypeError,a=Object.getOwnPropertyDescriptor,s=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(o(e)&&!a(e,"length").writable)throw new i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},7680:function(e,t,r){"use strict";var n=r(9504);e.exports=n([].slice)},6319:function(e,t,r){"use strict";var n=r(8551),o=r(9539);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(a){o(e,"throw",a)}}},2195:function(e,t,r){"use strict";var n=r(9504),o=n({}.toString),i=n("".slice);e.exports=function(e){return i(o(e),8,-1)}},6955:function(e,t,r){"use strict";var n=r(2140),o=r(4901),i=r(2195),a=r(8227),s=a("toStringTag"),c=Object,u="Arguments"===i(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(r){}};e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=l(t=c(e),s))?r:u?i(t):"Object"===(n=i(t))&&o(t.callee)?"Arguments":n}},7740:function(e,t,r){"use strict";var n=r(9297),o=r(5031),i=r(7347),a=r(4913);e.exports=function(e,t,r){for(var s=o(t),c=a.f,u=i.f,l=0;l<s.length;l++){var f=s[l];n(e,f)||r&&n(r,f)||c(e,f,u(t,f))}}},2211:function(e,t,r){"use strict";var n=r(9039);e.exports=!n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},2529:function(e){"use strict";e.exports=function(e,t){return{value:e,done:t}}},6699:function(e,t,r){"use strict";var n=r(3724),o=r(4913),i=r(6980);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},6980:function(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},4659:function(e,t,r){"use strict";var n=r(3724),o=r(4913),i=r(6980);e.exports=function(e,t,r){n?o.f(e,t,i(0,r)):e[t]=r}},2106:function(e,t,r){"use strict";var n=r(283),o=r(4913);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),o.f(e,t,r)}},6840:function(e,t,r){"use strict";var n=r(4901),o=r(4913),i=r(283),a=r(9433);e.exports=function(e,t,r,s){s||(s={});var c=s.enumerable,u=void 0!==s.name?s.name:t;if(n(r)&&i(r,u,s),s.global)c?e[t]=r:a(t,r);else{try{s.unsafe?e[t]&&(c=!0):delete e[t]}catch(l){}c?e[t]=r:o.f(e,t,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},6279:function(e,t,r){"use strict";var n=r(6840);e.exports=function(e,t,r){for(var o in t)n(e,o,t[o],r);return e}},9433:function(e,t,r){"use strict";var n=r(4576),o=Object.defineProperty;e.exports=function(e,t){try{o(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},3724:function(e,t,r){"use strict";var n=r(9039);e.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},4055:function(e,t,r){"use strict";var n=r(4576),o=r(34),i=n.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},6837:function(e){"use strict";var t=TypeError,r=9007199254740991;e.exports=function(e){if(e>r)throw new t("Maximum allowed index exceeded");return e}},8727:function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2839:function(e,t,r){"use strict";var n=r(4576),o=n.navigator,i=o&&o.userAgent;e.exports=i?String(i):""},9519:function(e,t,r){"use strict";var n,o,i=r(4576),a=r(2839),s=i.process,c=i.Deno,u=s&&s.versions||c&&c.version,l=u&&u.v8;l&&(n=l.split("."),o=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(n=a.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/),n&&(o=+n[1]))),e.exports=o},6518:function(e,t,r){"use strict";var n=r(4576),o=r(7347).f,i=r(6699),a=r(6840),s=r(9433),c=r(7740),u=r(2796);e.exports=function(e,t){var r,l,f,d,p,h,g=e.target,v=e.global,m=e.stat;if(l=v?n:m?n[g]||s(g,{}):n[g]&&n[g].prototype,l)for(f in t){if(p=t[f],e.dontCallGetSet?(h=o(l,f),d=h&&h.value):d=l[f],r=u(v?f:g+(m?".":"#")+f,e.forced),!r&&void 0!==d){if(typeof p==typeof d)continue;c(p,d)}(e.sham||d&&d.sham)&&i(p,"sham",!0),a(l,f,p,e)}}},9039:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},8745:function(e,t,r){"use strict";var n=r(616),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})},6080:function(e,t,r){"use strict";var n=r(7476),o=r(9306),i=r(616),a=n(n.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},616:function(e,t,r){"use strict";var n=r(9039);e.exports=!n(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},9565:function(e,t,r){"use strict";var n=r(616),o=Function.prototype.call;e.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},350:function(e,t,r){"use strict";var n=r(3724),o=r(9297),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=o(i,"name"),c=s&&"something"===function(){}.name,u=s&&(!n||n&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},7476:function(e,t,r){"use strict";var n=r(2195),o=r(9504);e.exports=function(e){if("Function"===n(e))return o(e)}},9504:function(e,t,r){"use strict";var n=r(616),o=Function.prototype,i=o.call,a=n&&o.bind.bind(i,i);e.exports=n?a:function(e){return function(){return i.apply(e,arguments)}}},7751:function(e,t,r){"use strict";var n=r(4576),o=r(4901),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(n[e]):n[e]&&n[e][t]}},1767:function(e){"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},851:function(e,t,r){"use strict";var n=r(6955),o=r(5966),i=r(4117),a=r(6269),s=r(8227),c=s("iterator");e.exports=function(e){if(!i(e))return o(e,c)||o(e,"@@iterator")||a[n(e)]}},81:function(e,t,r){"use strict";var n=r(9565),o=r(9306),i=r(8551),a=r(6823),s=r(851),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?s(e):t;if(o(r))return i(n(r,e));throw new c(a(e)+" is not iterable")}},5966:function(e,t,r){"use strict";var n=r(9306),o=r(4117);e.exports=function(e,t){var r=e[t];return o(r)?void 0:n(r)}},4576:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:function(e,t,r){"use strict";var n=r(9504),o=r(8981),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},421:function(e){"use strict";e.exports={}},397:function(e,t,r){"use strict";var n=r(7751);e.exports=n("document","documentElement")},5917:function(e,t,r){"use strict";var n=r(3724),o=r(9039),i=r(4055);e.exports=!n&&!o(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},7055:function(e,t,r){"use strict";var n=r(9504),o=r(9039),i=r(2195),a=Object,s=n("".split);e.exports=o(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"===i(e)?s(e,""):a(e)}:a},3706:function(e,t,r){"use strict";var n=r(9504),o=r(4901),i=r(7629),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},1181:function(e,t,r){"use strict";var n,o,i,a=r(8622),s=r(4576),c=r(34),u=r(6699),l=r(9297),f=r(7629),d=r(6119),p=r(421),h="Object already initialized",g=s.TypeError,v=s.WeakMap,m=function(e){return i(e)?o(e):n(e,{})},y=function(e){return function(t){var r;if(!c(t)||(r=o(t)).type!==e)throw new g("Incompatible receiver, "+e+" required");return r}};if(a||f.state){var b=f.state||(f.state=new v);b.get=b.get,b.has=b.has,b.set=b.set,n=function(e,t){if(b.has(e))throw new g(h);return t.facade=e,b.set(e,t),t},o=function(e){return b.get(e)||{}},i=function(e){return b.has(e)}}else{var w=d("state");p[w]=!0,n=function(e,t){if(l(e,w))throw new g(h);return t.facade=e,u(e,w,t),t},o=function(e){return l(e,w)?e[w]:{}},i=function(e){return l(e,w)}}e.exports={set:n,get:o,has:i,enforce:m,getterFor:y}},4209:function(e,t,r){"use strict";var n=r(8227),o=r(6269),i=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},4376:function(e,t,r){"use strict";var n=r(2195);e.exports=Array.isArray||function(e){return"Array"===n(e)}},4901:function(e){"use strict";var t="object"==typeof document&&document.all;e.exports="undefined"==typeof t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},2796:function(e,t,r){"use strict";var n=r(9039),o=r(4901),i=/#|\.prototype\./,a=function(e,t){var r=c[s(e)];return r===l||r!==u&&(o(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},4117:function(e){"use strict";e.exports=function(e){return null===e||void 0===e}},34:function(e,t,r){"use strict";var n=r(4901);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},6395:function(e){"use strict";e.exports=!1},5810:function(e,t,r){"use strict";var n=r(34),o=r(1181).get;e.exports=function(e){if(!n(e))return!1;var t=o(e);return!!t&&"RawJSON"===t.type}},757:function(e,t,r){"use strict";var n=r(7751),o=r(4901),i=r(1625),a=r(7040),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return o(t)&&i(t.prototype,s(e))}},2652:function(e,t,r){"use strict";var n=r(6080),o=r(9565),i=r(8551),a=r(6823),s=r(4209),c=r(6198),u=r(1625),l=r(81),f=r(851),d=r(9539),p=TypeError,h=function(e,t){this.stopped=e,this.result=t},g=h.prototype;e.exports=function(e,t,r){var v,m,y,b,w,x,C,S=r&&r.that,P=!(!r||!r.AS_ENTRIES),I=!(!r||!r.IS_RECORD),O=!(!r||!r.IS_ITERATOR),j=!(!r||!r.INTERRUPTED),M=n(t,S),k=function(e){var t=v;return v=void 0,t&&d(t,"normal"),new h(!0,e)},E=function(e){return P?(i(e),j?M(e[0],e[1],k):M(e[0],e[1])):j?M(e,k):M(e)};if(I)v=e.iterator;else if(O)v=e;else{if(m=f(e),!m)throw new p(a(e)+" is not iterable");if(s(m)){for(y=0,b=c(e);b>y;y++)if(w=E(e[y]),w&&u(g,w))return w;return new h(!1)}v=l(e,m)}x=I?e.next:v.next;while(!(C=o(x,v)).done){var N=C.value;try{w=E(N)}catch(_){if(!v)throw _;d(v,"throw",_)}if("object"==typeof w&&w&&u(g,w))return w}return new h(!1)}},1385:function(e,t,r){"use strict";var n=r(9539);e.exports=function(e,t,r){for(var o=e.length-1;o>=0;o--)if(void 0!==e[o])try{r=n(e[o].iterator,t,r)}catch(i){t="throw",r=i}if("throw"===t)throw r;return r}},9539:function(e,t,r){"use strict";var n=r(9565),o=r(8551),i=r(5966);e.exports=function(e,t,r){var a,s;o(e);try{if(a=i(e,"return"),!a){if("throw"===t)throw r;return r}a=n(a,e)}catch(c){s=!0,a=c}if("throw"===t)throw r;if(s)throw a;return o(a),r}},9462:function(e,t,r){"use strict";var n=r(9565),o=r(2360),i=r(6699),a=r(6279),s=r(8227),c=r(1181),u=r(5966),l=r(7657).IteratorPrototype,f=r(2529),d=r(9539),p=r(1385),h=s("toStringTag"),g="IteratorHelper",v="WrapForValidIterator",m="normal",y="throw",b=c.set,w=function(e){var t=c.getterFor(e?v:g);return a(o(l),{next:function(){var r=t(this);if(e)return r.nextHandler();if(r.done)return f(void 0,!0);try{var n=r.nextHandler();return r.returnHandlerResult?n:f(n,r.done)}catch(o){throw r.done=!0,o}},return:function(){var r=t(this),o=r.iterator,i=r.done;if(r.done=!0,e){var a=u(o,"return");return a?n(a,o):f(void 0,!0)}if(i)return f(void 0,!0);if(r.inner)try{d(r.inner.iterator,m)}catch(s){return d(o,y,s)}if(r.openIters)try{p(r.openIters,m)}catch(s){if(o)return d(o,y,s);throw s}return o&&d(o,m),f(void 0,!0)}})},x=w(!0),C=w(!1);i(C,h,"Iterator Helper"),e.exports=function(e,t,r){var n=function(n,o){o?(o.iterator=n.iterator,o.next=n.next):o=n,o.type=t?v:g,o.returnHandlerResult=!!r,o.nextHandler=e,o.counter=0,o.done=!1,b(this,o)};return n.prototype=t?x:C,n}},684:function(e){"use strict";e.exports=function(e,t){var r="function"==typeof Iterator&&Iterator.prototype[e];if(r)try{r.call({next:null},t).next()}catch(n){return!0}}},4549:function(e,t,r){"use strict";var n=r(4576);e.exports=function(e,t){var r=n.Iterator,o=r&&r.prototype,i=o&&o[e],a=!1;if(i)try{i.call({next:function(){return{done:!0}},return:function(){a=!0}},-1)}catch(s){s instanceof t||(a=!1)}if(!a)return i}},7657:function(e,t,r){"use strict";var n,o,i,a=r(9039),s=r(4901),c=r(34),u=r(2360),l=r(2787),f=r(6840),d=r(8227),p=r(6395),h=d("iterator"),g=!1;[].keys&&(i=[].keys(),"next"in i?(o=l(l(i)),o!==Object.prototype&&(n=o)):g=!0);var v=!c(n)||a(function(){var e={};return n[h].call(e)!==e});v?n={}:p&&(n=u(n)),s(n[h])||f(n,h,function(){return this}),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:g}},6269:function(e){"use strict";e.exports={}},6198:function(e,t,r){"use strict";var n=r(8014);e.exports=function(e){return n(e.length)}},283:function(e,t,r){"use strict";var n=r(9504),o=r(9039),i=r(4901),a=r(9297),s=r(3724),c=r(350).CONFIGURABLE,u=r(3706),l=r(1181),f=l.enforce,d=l.get,p=String,h=Object.defineProperty,g=n("".slice),v=n("".replace),m=n([].join),y=s&&!o(function(){return 8!==h(function(){},"length",{value:8}).length}),b=String(String).split("String"),w=e.exports=function(e,t,r){"Symbol("===g(p(t),0,7)&&(t="["+v(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||c&&e.name!==t)&&(s?h(e,"name",{value:t,configurable:!0}):e.name=t),y&&r&&a(r,"arity")&&e.length!==r.arity&&h(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?s&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(o){}var n=f(e);return a(n,"source")||(n.source=m(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w(function(){return i(this)&&d(this).source||u(this)},"toString")},741:function(e){"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},7819:function(e,t,r){"use strict";var n=r(9039);e.exports=!n(function(){var e="9007199254740993",t=JSON.rawJSON(e);return!JSON.isRawJSON(t)||JSON.stringify(t)!==e})},2360:function(e,t,r){"use strict";var n,o=r(8551),i=r(6801),a=r(8727),s=r(421),c=r(397),u=r(4055),l=r(6119),f=">",d="<",p="prototype",h="script",g=l("IE_PROTO"),v=function(){},m=function(e){return d+h+f+e+d+"/"+h+f},y=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=u("iframe"),r="java"+h+":";return t.style.display="none",c.appendChild(t),t.src=String(r),e=t.contentWindow.document,e.open(),e.write(m("document.F=Object")),e.close(),e.F},w=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}w="undefined"!=typeof document?document.domain&&n?y(n):b():y(n);var e=a.length;while(e--)delete w[p][a[e]];return w()};s[g]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(v[p]=o(e),r=new v,v[p]=null,r[g]=e):r=w(),void 0===t?r:i.f(r,t)}},6801:function(e,t,r){"use strict";var n=r(3724),o=r(8686),i=r(4913),a=r(8551),s=r(5397),c=r(1072);t.f=n&&!o?Object.defineProperties:function(e,t){a(e);var r,n=s(t),o=c(t),u=o.length,l=0;while(u>l)i.f(e,r=o[l++],n[r]);return e}},4913:function(e,t,r){"use strict";var n=r(3724),o=r(5917),i=r(8686),a=r(8551),s=r(6969),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",p="writable";t.f=n?i?function(e,t,r){if(a(e),t=s(t),a(r),"function"===typeof e&&"prototype"===t&&"value"in r&&p in r&&!r[p]){var n=l(e,t);n&&n[p]&&(e[t]=r.value,r={configurable:d in r?r[d]:n[d],enumerable:f in r?r[f]:n[f],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(a(e),t=s(t),a(r),o)try{return u(e,t,r)}catch(n){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},7347:function(e,t,r){"use strict";var n=r(3724),o=r(9565),i=r(8773),a=r(6980),s=r(5397),c=r(6969),u=r(9297),l=r(5917),f=Object.getOwnPropertyDescriptor;t.f=n?f:function(e,t){if(e=s(e),t=c(t),l)try{return f(e,t)}catch(r){}if(u(e,t))return a(!o(i.f,e,t),e[t])}},8480:function(e,t,r){"use strict";var n=r(1828),o=r(8727),i=o.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},3717:function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},2787:function(e,t,r){"use strict";var n=r(9297),o=r(4901),i=r(8981),a=r(6119),s=r(2211),c=a("IE_PROTO"),u=Object,l=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=i(e);if(n(t,c))return t[c];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof u?l:null}},1625:function(e,t,r){"use strict";var n=r(9504);e.exports=n({}.isPrototypeOf)},1828:function(e,t,r){"use strict";var n=r(9504),o=r(9297),i=r(5397),a=r(9617).indexOf,s=r(421),c=n([].push);e.exports=function(e,t){var r,n=i(e),u=0,l=[];for(r in n)!o(s,r)&&o(n,r)&&c(l,r);while(t.length>u)o(n,r=t[u++])&&(~a(l,r)||c(l,r));return l}},1072:function(e,t,r){"use strict";var n=r(1828),o=r(8727);e.exports=Object.keys||function(e){return n(e,o)}},8773:function(e,t){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);t.f=o?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},4270:function(e,t,r){"use strict";var n=r(9565),o=r(4901),i=r(34),a=TypeError;e.exports=function(e,t){var r,s;if("string"===t&&o(r=e.toString)&&!i(s=n(r,e)))return s;if(o(r=e.valueOf)&&!i(s=n(r,e)))return s;if("string"!==t&&o(r=e.toString)&&!i(s=n(r,e)))return s;throw new a("Can't convert object to primitive value")}},5031:function(e,t,r){"use strict";var n=r(7751),o=r(9504),i=r(8480),a=r(3717),s=r(8551),c=o([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(s(e)),r=a.f;return r?c(t,r(e)):t}},8235:function(e,t,r){"use strict";var n=r(9504),o=r(9297),i=SyntaxError,a=parseInt,s=String.fromCharCode,c=n("".charAt),u=n("".slice),l=n(/./.exec),f={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},d=/^[\da-f]{4}$/i,p=/^[\u0000-\u001F]$/;e.exports=function(e,t){var r=!0,n="";while(t<e.length){var h=c(e,t);if("\\"===h){var g=u(e,t,t+2);if(o(f,g))n+=f[g],t+=2;else{if("\\u"!==g)throw new i('Unknown escape sequence: "'+g+'"');t+=2;var v=u(e,t,t+4);if(!l(d,v))throw new i("Bad Unicode escape at: "+t);n+=s(a(v,16)),t+=4}}else{if('"'===h){r=!1,t++;break}if(l(p,h))throw new i("Bad control character in string literal at: "+t);n+=h,t++}}if(r)throw new i("Unterminated string at: "+t);return{value:n,end:t}}},7750:function(e,t,r){"use strict";var n=r(4117),o=TypeError;e.exports=function(e){if(n(e))throw new o("Can't call method on "+e);return e}},6119:function(e,t,r){"use strict";var n=r(5745),o=r(3392),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},7629:function(e,t,r){"use strict";var n=r(6395),o=r(4576),i=r(9433),a="__core-js_shared__",s=e.exports=o[a]||i(a,{});(s.versions||(s.versions=[])).push({version:"3.49.0",mode:n?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(e,t,r){"use strict";var n=r(7629);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},4495:function(e,t,r){"use strict";var n=r(9519),o=r(9039),i=r(4576),a=i.String;e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol("symbol detection");return!a(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},5610:function(e,t,r){"use strict";var n=r(1291),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},5397:function(e,t,r){"use strict";var n=r(7055),o=r(7750);e.exports=function(e){return n(o(e))}},1291:function(e,t,r){"use strict";var n=r(741);e.exports=function(e){var t=+e;return t!==t||0===t?0:n(t)}},8014:function(e,t,r){"use strict";var n=r(1291),o=Math.min;e.exports=function(e){var t=n(e);return t>0?o(t,9007199254740991):0}},8981:function(e,t,r){"use strict";var n=r(7750),o=Object;e.exports=function(e){return o(n(e))}},2777:function(e,t,r){"use strict";var n=r(9565),o=r(34),i=r(757),a=r(5966),s=r(4270),c=r(8227),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var r,c=a(e,l);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!o(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},6969:function(e,t,r){"use strict";var n=r(2777),o=r(757);e.exports=function(e){var t=n(e,"string");return o(t)?t:t+""}},2140:function(e,t,r){"use strict";var n=r(8227),o=n("toStringTag"),i={};i[o]="z",e.exports="[object z]"===String(i)},655:function(e,t,r){"use strict";var n=r(6955),o=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},6823:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(r){return"Object"}}},3392:function(e,t,r){"use strict";var n=r(9504),o=0,i=Math.random(),a=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},7040:function(e,t,r){"use strict";var n=r(4495);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:function(e,t,r){"use strict";var n=r(3724),o=r(9039);e.exports=n&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},8622:function(e,t,r){"use strict";var n=r(4576),o=r(4901),i=n.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},8227:function(e,t,r){"use strict";var n=r(4576),o=r(5745),i=r(9297),a=r(3392),s=r(4495),c=r(7040),u=n.Symbol,l=o("wks"),f=c?u["for"]||u:u&&u.withoutSetter||a;e.exports=function(e){return i(l,e)||(l[e]=s&&i(u,e)?u[e]:f("Symbol."+e)),l[e]}},4423:function(e,t,r){"use strict";var n=r(6518),o=r(9617).includes,i=r(9039),a=r(6469),s=i(function(){return!Array(1).includes()}),c=i(function(){return[,1].includes(void 0,1)});n({target:"Array",proto:!0,forced:s||c},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},4114:function(e,t,r){"use strict";var n=r(6518),o=r(8981),i=r(6198),a=r(4527),s=r(6837),c=r(9039),u=c(function(){return 4294967297!==[].push.call({length:4294967296},1)}),l=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},f=u||!l();n({target:"Array",proto:!0,arity:1,forced:f},{push:function(e){var t=o(this),r=i(t),n=arguments.length;s(r+n);for(var c=0;c<n;c++)t[r]=arguments[c],r++;return a(t,r),r}})},8111:function(e,t,r){"use strict";var n=r(6518),o=r(4576),i=r(679),a=r(8551),s=r(4901),c=r(2787),u=r(2106),l=r(4659),f=r(9039),d=r(9297),p=r(8227),h=r(7657).IteratorPrototype,g=r(3724),v=r(6395),m="constructor",y="Iterator",b=p("toStringTag"),w=TypeError,x=o[y],C=v||!s(x)||x.prototype!==h||!f(function(){x({})}),S=function(){if(i(this,h),c(this)===h)throw new w("Abstract class Iterator not directly constructable")},P=function(e,t){g?u(h,e,{configurable:!0,get:function(){return t},set:function(t){if(a(this),this===h)throw new w("You can't redefine this property");d(this,e)?this[e]=t:l(this,e,t)}}):h[e]=t};d(h,b)||P(b,y),!C&&d(h,m)&&h[m]!==Object||P(m,S),S.prototype=h,n({global:!0,constructor:!0,forced:C},{Iterator:S})},116:function(e,t,r){"use strict";var n=r(6518),o=r(9565),i=r(2652),a=r(9306),s=r(8551),c=r(1767),u=r(9539),l=r(4549),f=l("find",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:f},{find:function(e){s(this);try{a(e)}catch(n){u(this,"throw",n)}if(f)return o(f,this,e);var t=c(this),r=0;return i(t,function(t,n){if(e(t,r++))return n(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},7588:function(e,t,r){"use strict";var n=r(6518),o=r(9565),i=r(2652),a=r(9306),s=r(8551),c=r(1767),u=r(9539),l=r(4549),f=l("forEach",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:f},{forEach:function(e){s(this);try{a(e)}catch(n){u(this,"throw",n)}if(f)return o(f,this,e);var t=c(this),r=0;i(t,function(t){e(t,r++)},{IS_RECORD:!0})}})},1701:function(e,t,r){"use strict";var n=r(6518),o=r(9565),i=r(9306),a=r(8551),s=r(1767),c=r(9462),u=r(6319),l=r(9539),f=r(684),d=r(4549),p=r(6395),h=!p&&!f("map",function(){}),g=!p&&!h&&d("map",TypeError),v=p||h||g,m=c(function(){var e=this.iterator,t=a(o(this.next,e)),r=this.done=!!t.done;if(!r)return u(e,this.mapper,[t.value,this.counter++],!0)});n({target:"Iterator",proto:!0,real:!0,forced:v},{map:function(e){a(this);try{i(e)}catch(t){l(this,"throw",t)}return g?o(g,this,e):new m(s(this),{mapper:e})}})},3110:function(e,t,r){"use strict";var n=r(6518),o=r(7751),i=r(8745),a=r(9565),s=r(9504),c=r(9039),u=r(4376),l=r(4901),f=r(5810),d=r(757),p=r(2195),h=r(655),g=r(7680),v=r(8235),m=r(3392),y=r(4495),b=r(7819),w=String,x=o("JSON","stringify"),C=s(/./.exec),S=s("".charAt),P=s("".charCodeAt),I=s("".replace),O=s("".slice),j=s([].push),M=s(1.1.toString),k=/[\uD800-\uDFFF]/g,E=/^[\uD800-\uDBFF]$/,N=/^[\uDC00-\uDFFF]$/,_=m(),T=_.length,V=!y||c(function(){var e=o("Symbol")("stringify detection");return"[null]"!==x([e])||"{}"!==x({a:e})||"{}"!==x(Object(e))}),F=c(function(){return'"\\udf06\\ud834"'!==x("\udf06\ud834")||'"\\udead"'!==x("\udead")}),B=V?function(e,t){var r=g(arguments),n=D(t);if(l(n)||void 0!==e&&!d(e))return r[1]=function(e,t){if(l(n)&&(t=a(n,this,w(e),t)),!d(t))return t},i(x,null,r)}:x,A=function(e,t,r){var n=S(r,t-1),o=S(r,t+1);return C(E,e)&&!C(N,o)||C(N,e)&&!C(E,n)?"\\u"+M(P(e,0),16):e},D=function(e){if(l(e))return e;if(u(e)){for(var t=e.length,r=[],n=0;n<t;n++){var o=e[n];"string"==typeof o?j(r,o):"number"!=typeof o&&"Number"!==p(o)&&"String"!==p(o)||j(r,h(o))}var i=r.length,a=!0;return function(e,t){if(a)return a=!1,t;if(u(this))return t;for(var n=0;n<i;n++)if(r[n]===e)return t}}};x&&n({target:"JSON",stat:!0,arity:3,forced:V||F||!b},{stringify:function(e,t,r){var n=D(t),o=[],i=B(e,function(e,t){var r=l(n)?a(n,this,w(e),t):t;return!b&&f(r)?_+(j(o,r.rawJSON)-1):r},r);if("string"!=typeof i)return i;if(F&&(i=I(i,k,A)),b)return i;for(var s="",c=i.length,u=0;u<c;u++){var d=S(i,u);if('"'===d){var p=v(i,++u).end-1,h=O(i,u,p);s+=O(h,0,T)===_?o[O(h,T)]:'"'+h+'"',u=p}else s+=d}return s}})}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={id:e,exports:{}};return t[e].call(i.exports,i,i.exports,n),i.exports}!function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){n.p=""}();var o={};return function(){"use strict";if(n.r(o),n.d(o,{default:function(){return w}}),"undefined"!==typeof window){var e=window.document.currentScript,t=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);t&&(n.p=t[1])}var r=n(9274);const i={class:"module-page-select"},a={key:0,class:"selection-preview"},s={class:"preview-value"};function c(e,t,n,o,c,u){const l=(0,r.resolveComponent)("a-option"),f=(0,r.resolveComponent)("a-select"),d=(0,r.resolveComponent)("a-form-item"),p=(0,r.resolveComponent)("a-divider"),h=(0,r.resolveComponent)("a-input"),g=(0,r.resolveComponent)("a-input-number"),v=(0,r.resolveComponent)("a-textarea"),m=(0,r.resolveComponent)("a-button"),y=(0,r.resolveComponent)("a-form");return(0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.createVNode)(y,{layout:"vertical",size:"small"},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(d,{label:"选择模块"},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(f,{modelValue:c.selectedModuleId,"onUpdate:modelValue":t[0]||(t[0]=e=>c.selectedModuleId=e),onChange:u.handleModuleChange,placeholder:"请选择模块","allow-clear":"","allow-search":"",size:"small"},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(c.modules,e=>((0,r.openBlock)(),(0,r.createBlock)(l,{key:e.id,value:e.id},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.name),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),(0,r.createVNode)(d,{label:"选择页面"},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(f,{modelValue:c.selectedPageId,"onUpdate:modelValue":t[1]||(t[1]=e=>c.selectedPageId=e),onChange:u.handlePageChange,placeholder:"请选择页面",disabled:!c.selectedModuleId,"allow-clear":"","allow-search":"",size:"small"},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(c.pages,e=>((0,r.openBlock)(),(0,r.createBlock)(l,{key:e.id,value:e.id},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.name),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","onChange","disabled"])]),_:1}),c.selectedModuleName&&c.selectedPageName?((0,r.openBlock)(),(0,r.createElementBlock)("div",a,[t[2]||(t[2]=(0,r.createElementVNode)("div",{class:"preview-label"},"当前选择:",-1)),(0,r.createElementVNode)("div",s,(0,r.toDisplayString)(c.selectedModuleName)+" - "+(0,r.toDisplayString)(c.selectedPageName),1)])):(0,r.createCommentVNode)("",!0),c.showConfigForm?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createVNode)(p,null,{default:(0,r.withCtx)(()=>[...t[3]||(t[3]=[(0,r.createTextVNode)("页面配置",-1)])]),_:1}),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(c.configFields,(e,t)=>((0,r.openBlock)(),(0,r.createBlock)(d,{key:t,label:e.label,field:t},{default:(0,r.withCtx)(()=>["text"===e.type?((0,r.openBlock)(),(0,r.createBlock)(h,{key:0,modelValue:c.formData[t],"onUpdate:modelValue":e=>c.formData[t]=e,placeholder:e.placeholder||""},null,8,["modelValue","onUpdate:modelValue","placeholder"])):"number"===e.type?((0,r.openBlock)(),(0,r.createBlock)(g,{key:1,modelValue:c.formData[t],"onUpdate:modelValue":e=>c.formData[t]=e,placeholder:e.placeholder||"",style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","placeholder"])):"textarea"===e.type?((0,r.openBlock)(),(0,r.createBlock)(v,{key:2,modelValue:c.formData[t],"onUpdate:modelValue":e=>c.formData[t]=e,placeholder:e.placeholder||"","auto-size":{minRows:3,maxRows:6}},null,8,["modelValue","onUpdate:modelValue","placeholder"])):"select"===e.type?((0,r.openBlock)(),(0,r.createBlock)(f,{key:3,modelValue:c.formData[t],"onUpdate:modelValue":e=>c.formData[t]=e,placeholder:"请选择"},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.options,e=>((0,r.openBlock)(),(0,r.createBlock)(l,{key:e.value,value:e.value,label:e.label},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.label),1)]),_:2},1032,["value","label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):(0,r.createCommentVNode)("",!0)]),_:2},1032,["label","field"]))),128))],64)):(0,r.createCommentVNode)("",!0),c.showConfirmButton?((0,r.openBlock)(),(0,r.createBlock)(m,{key:2,type:"primary",long:"",size:"small",onClick:u.handleConfirm,disabled:!c.selectedModuleId||!c.selectedPageId,style:{"margin-top":"16px"}},{default:(0,r.withCtx)(()=>[...t[4]||(t[4]=[(0,r.createTextVNode)(" 确认选择 ",-1)])]),_:1},8,["onClick","disabled"])):(0,r.createCommentVNode)("",!0)]),_:1})])}n(8111),n(116),n(7588),n(1701),n(3110),n(4423);function u(e){const t=new Error(e);throw t.name="[gateway-request]",t}var l=function(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function a(e){try{c(n.next(e))}catch(t){i(t)}}function s(e){try{c(n["throw"](e))}catch(t){i(t)}}function c(e){e.done?r(e.value):o(e.value).then(a,s)}c((n=n.apply(e,t||[])).next())})};let f;const d=e=>new Promise((t,r)=>l(void 0,void 0,void 0,function*(){var n,o,i,a,s;try{f||u("未初始化。");const r={plat:null===(n=e.config)||void 0===n?void 0:n.plat,access_token:null===(o=e.config)||void 0===o?void 0:o.access_token};["null","undefined"].includes(typeof(null===(i=e.config)||void 0===i?void 0:i.globalMessage))||(r.globalMessage={},"boolean"===typeof e.config.globalMessage&&(r.globalMessage.success=r.globalMessage.fail=e.config.globalMessage),"object"===typeof e.config.globalMessage&&("boolean"===typeof e.config.globalMessage.success&&(r.globalMessage.success=e.config.globalMessage.success),"boolean"===typeof e.config.globalMessage.fail&&(r.globalMessage.fail=e.config.globalMessage.fail)));const c=(e=>"object"===typeof e?e:"function"===typeof e?e():{})(e.params),l=e=>1e4===e.code?Promise.resolve(e.data):Promise.reject(e),d=yield e.requester?(e=>{const t={base_url:f.getConfig("base_url"),app_id:f.getConfig("app_id"),app_key:f.getConfig("app_key"),getToken:f.getConfig("getToken"),hooks:{beforeRequest:e=>{var t,r;null===(r=null===(t=null===f||void 0===f?void 0:f.getConfig("hooks"))||void 0===t?void 0:t.beforeRequest)||void 0===r||r.call(t,e)},afterResponse:e=>{var t,r;null===(r=null===(t=null===f||void 0===f?void 0:f.getConfig("hooks"))||void 0===t?void 0:t.afterResponse)||void 0===r||r.call(t,e)},error:e=>{var t,r;null===(r=null===(t=null===f||void 0===f?void 0:f.getConfig("hooks"))||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)}},openMessage:f.openMessage.bind(f)},r=e.requester;return r.call(t,e.api,c,e.config)})(e):f.baseRequest(e.api,c,e.config),p=null!==(a=null===e||void 0===e?void 0:e.transformResponse)&&void 0!==a?a:l,h=yield p(null!==(s=null===d||void 0===d?void 0:d.data)&&void 0!==s?s:{},d);t({axiosResponse:d,response:d.data,data:h})}catch(c){r(c)}})),p=(e,t)=>{var r;if("object"!==typeof e||null===e)return e;if("object"!==typeof t||null===t)return e;for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n))if("object"===typeof t[n]&&null!==t[n]){const r=p(Array.isArray(t[n])?[]:{},e[n]);e[n]=p(r,t[n])}else e[n]=null!==(r=t[n])&&void 0!==r?r:e[n];return e};const h=new Proxy({value:{},deepMerge(e){return p(this.value,e)}},{get(e,t){return"deepMerge"===t?e.deepMerge.bind(e):t in e.value?e.value[t]:void 0}});h.deepMerge.bind(h);var g={name:"ModulePageSelect",props:{modelValue:{type:Object,default:()=>({})},moduleId:{type:String,default:""},pageId:{type:String,default:""}},emits:["update:modelValue","change","error"],data(){return{modules:[],pages:[],selectedModuleId:"",selectedPageId:"",selectedModuleName:"",selectedPageName:"",currentPage:null,configFields:{},formData:{},showConfigForm:!1,moduleCache:null,pageCache:{},showConfirmButton:!0,lastConfirmedState:null}},computed:{pageType(){const e=this.modelValue?.type||"mobile";return"mobile"===e?2:1}},watch:{modelValue:{immediate:!0,deep:!0,async handler(e){if(e&&"object"===typeof e){const t=e.module_id||this.moduleId,r=e.page_id||this.pageId;if(t&&t!==this.selectedModuleId){if(this.selectedModuleId=t,this.selectedModuleName=e.module_name||"",0===this.modules.length&&await this.loadModules(),!this.selectedModuleName){const e=this.modules.find(e=>e.id===t);e&&(this.selectedModuleName=e.name)}await this.loadPages(t)}if(r&&r!==this.selectedPageId&&(this.selectedPageId=r,this.selectedPageName=e.page_name||"",this.pages.length>0)){const t=this.pages.find(e=>e.id===r);t&&(this.selectedPageName=t.name,this.currentPage=t,this.loadPageConfig(t),e.config&&(this.formData={...e.config}))}}}},moduleId:{immediate:!0,async handler(e){if(e&&e!==this.selectedModuleId&&!this.modelValue?.module_id){this.selectedModuleId=e,0===this.modules.length&&await this.loadModules();const t=this.modules.find(t=>t.id===e);t&&(this.selectedModuleName=t.name),await this.loadPages(e)}}},pageId:{immediate:!0,async handler(e){if(e&&e!==this.selectedPageId&&!this.modelValue?.page_id&&(this.selectedPageId=e,this.pages.length>0)){const t=this.pages.find(t=>t.id===e);t&&(this.selectedPageName=t.name,this.currentPage=t,this.loadPageConfig(t))}}}},mounted(){this.loadModules()},methods:{async loadModules(){try{if(this.moduleCache)return void(this.modules=this.moduleCache);const e=await this.fetchModulesFromAPI();if(this.modules=e,this.moduleCache=e,this.moduleId){this.selectedModuleId=this.moduleId;const e=this.modules.find(e=>e.id===this.moduleId);e&&(this.selectedModuleName=e.name),await this.loadPages(this.moduleId)}}catch(e){console.error("加载模块列表失败:",e),this.$emit("error",{type:"loadModules",error:e})}},async fetchModulesFromAPI(){try{const e=await d({api:"/api/assembly-center.extend_module.list",params:{page_no:1,page_size:1e3},config:{access_token:!0}}),t=e?.data?.list||[];return Array.isArray(t)?t.map(e=>({id:e.id,name:e.name})):(console.error("modules 不是数组:",t),[])}catch(e){throw console.error("获取模块列表失败:",e),e}},async handleModuleChange(){if(this.pages=[],this.selectedPageId="",this.selectedPageName="",this.currentPage=null,this.showConfigForm=!1,this.formData={},this.showConfirmButton=!0,this.selectedModuleId){const e=this.modules.find(e=>e.id===this.selectedModuleId);e&&(this.selectedModuleName=e.name),await this.loadPages(this.selectedModuleId)}else this.selectedModuleName=""},async loadPages(e){try{if(this.pageCache[e])this.pages=this.pageCache[e];else{const t=await this.fetchPagesFromAPI(e);this.pages=t,this.pageCache[e]=t}if(this.pageId&&this.pages.length>0){const e=this.pages.find(e=>e.id===this.pageId);e&&(this.selectedPageId=this.pageId,this.selectedPageName=e.name,this.currentPage=e,this.loadPageConfig(e))}}catch(t){console.error("加载页面列表失败:",t),this.$emit("error",{type:"loadPages",error:t})}},async fetchPagesFromAPI(e){try{const t=await d({api:"/api/assembly-center.extend_module.page_list",params:{module_id:e,type:this.pageType,page_no:1,page_size:1e3},config:{access_token:!0}}),r=t?.data?.list||[];return Array.isArray(r)?r.map(e=>({id:e.id,name:e.name,options:e.options||{}})):(console.error("pages 不是数组:",r),[])}catch(t){throw console.error("获取页面列表失败:",t),t}},handlePageChange(){if(this.showConfirmButton=!0,this.selectedPageId){const e=this.pages.find(e=>e.id===this.selectedPageId);e&&(this.selectedPageName=e.name,this.currentPage=e,this.loadPageConfig(e))}else this.selectedPageName="",this.currentPage=null,this.showConfigForm=!1,this.formData={}},loadPageConfig(e){e.options&&"object"===typeof e.options&&Object.keys(e.options).length>0?(this.configFields=this.parseConfigSchema(e.options),this.showConfigForm=!0,this.modelValue?.config?this.formData={...this.modelValue.config}:this.initFormData()):(this.configFields={},this.showConfigForm=!1,this.formData={})},parseConfigSchema(e){const t={};return e.properties&&Object.keys(e.properties).forEach(r=>{const n=e.properties[r];t[r]={label:n.title||r,type:this.mapSchemaType(n.type),placeholder:n.description||"",options:n.enum?n.enum.map((e,t)=>({label:n.enumDescriptions?.[t]||e,value:e})):null,default:n.default}}),t},mapSchemaType(e){const t={string:"text",number:"number",integer:"number",boolean:"select"};return t[e]||"text"},initFormData(){const e={};Object.keys(this.configFields).forEach(t=>{e[t]=void 0!==this.configFields[t].default?this.configFields[t].default:""}),this.formData=e},handleConfirm(){if(!this.selectedModuleId||!this.selectedPageId)return;const e=this.modules.find(e=>e.id===this.selectedModuleId),t=this.pages.find(e=>e.id===this.selectedPageId);if(!e||!t)return void console.error("未找到选中的模块或页面");const r={module_id:e.id,module_name:e.name,page_id:t.id,page_name:t.name,type:2===this.pageType?"mobile":"pc",config:this.showConfigForm?{...this.formData}:void 0};this.lastConfirmedState=JSON.stringify({moduleId:this.selectedModuleId,pageId:this.selectedPageId,config:r.config}),this.showConfirmButton=!1,this.$emit("update:modelValue",r),this.$emit("change",r)}}},v=(n(7441),n(8868));const m=(0,v.A)(g,[["render",c],["__scopeId","data-v-142cfac8"]]);var y=m;y.install=function(e){e.component(y.name,y)},"undefined"!==typeof window&&window.Vue&&window.Vue.use(y);var b=y,w=b}(),o}()});
2
+ //# sourceMappingURL=module-page-select.umd.min.js.map