PageSourceSearch

https://www.payuni.com.tw/js/0202bd568a470d54.js

js payuni.com.tw collected 2026-09-24 08:52:04 UTC 87,780 bytes, 2 lines download raw bytes

1/*! For license information please see 0202bd568a470d54.js.LICENSE.txt */
2!function(){"use strict";function t(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(t){if("string"==typeof t)return e(t,r);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,r):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function r(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function n(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}(self.webpackChunk=self.webpackChunk||[]).push([[875],{875:function(t,e,r){r.r(e),r.d(e,{default:function(){return F}});var n=r(33389),o=r(67787),i=r(81207),a=r(78037),s=r(53615),l=r(79987),c=r(20019),u=r(58884),d=r(93579),p=r(85840),v=r(84435),f=r(15091),h=r(79534),m=r(61206),g=r(92099),y=r(77658),w=r(65072),b=r(22435),x=r(66363),_=r(2541),P=r(48250),S=r(94894),C=r(90762);function A(t){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},A(t)}function k(t){return function(t){if(Array.isArray(t))return E(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return E(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?E(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function M(){M=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(t,e,r,n){return Object.defineProperty(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function c(e,r,n,o){var i=r&&r.prototype instanceof p?r:p,a=Object.create(i.prototype);return l(a,"_invoke",function(e,r,n){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=x(s,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var c=u(e,r,n);if("normal"===c.type){if(o=n.done?4:2,c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=4,n.method="throw",n.arg=c.arg)}}}(e,n,new S(o||[])),!0),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var d={};function p(){}function v(){}function f(){}var h={};l(h,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(C([])));
2g&&g!==r&&n.call(g,i)&&(h=g);var y=f.prototype=p.prototype=Object.create(h);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function r(o,i,a,s){var l=u(t[o],t,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==A(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(d).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(e,r){var n=r.method,o=e.i[n];if(o===t)return r.delegate=null,"throw"===n&&e.i.return&&(r.method="return",r.arg=t,x(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=u(o,e.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[e.r]=a.value,r.next=e.n,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function _(t){this.tryEntries.push(t)}function P(e){var r=e[4]||{};r.type="normal",r.arg=t,e[4]=r}function S(t){this.tryEntries=[[-1]],t.forEach(_,this),this.reset(!0)}function C(e){if(null!=e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(A(e)+" is not iterable")}return v.prototype=f,l(y,"constructor",f),l(f,"constructor",v),v.displayName=l(f,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,l(t,s,"GeneratorFunction")),t.prototype=Object.create(y),t},e.awrap=function(t){return{__await:t}},w(b.prototype),l(b.prototype,a,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new b(c(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(y),l(y,s,"Generator"),l(y,i,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.unshift(n);return function t(){for(;r.length;)if((n=r.pop())in e)return t.value=n,t.done=!1,t;return t.done=!0,t}},e.values=C,S.prototype={constructor:S,reset:function(e){if(this.prev=this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0][4];if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(t){a.type="throw",a.arg=e,r.next=t}for(var o=r.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return n("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=t,n(l),!0;if(s<c)return n(c),!1}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break}}o&&("break"===t||"continue"===t)&&o[0]<=e&&e<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o[2],d):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r[2]===t)return this.complete(r[4],r[3]),P(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r[0]===t){var n=r[4];if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={i:C(e),r:r,n:n},"next"===this.method&&(this.arg=t),d}},e}function T(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function O(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
2e%2?T(Object(r),!0).forEach((function(e){D(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):T(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function D(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=A(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==A(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function j(t,e,r,n,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(n,o)}function L(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){j(i,n,o,a,s,"next",t)}function s(t){j(i,n,o,a,s,"throw",t)}a(void 0)}))}}var I={__name:"ListIndex",setup:function(t){var e=function(){return{MerStatus:null,MerType:0,CreateDTStr:null,CreateDTEnd:null,sortRegex:"desc",MerName:null,searchName:null,goPage:null,length:-1}},r=(0,f.KR)({0:{text:"全部",value:0,itemsLength:0},1:{text:"網路商店",value:1,itemsLength:0},2:{text:"實體商店",value:2,itemsLength:0}}),n=(0,f.KR)(!1),o=(0,f.KR)([]),i=(0,f.KR)(!1),a=(0,f.KR)([]),s=(0,f.KR)([]),l=(0,f.KR)(10),c=(0,f.KR)(!1),u=(0,f.KR)([]),d=(0,f.KR)({MerStatus:null,MerType:0,CreateDTStr:null,CreateDTEnd:null,sortRegex:"desc",MerName:null,searchName:null,goPage:null,length:-1}),p=(0,f.KR)(!1),v=(0,f.KR)({pageCount:0,totalItems:0}),A=(0,f.KR)(0),E=(0,f.KR)(0),T=(0,f.KR)(!1),D=(0,f.KR)(!1),j=(0,f.EW)((function(){return x.A.state.user.info.tipPage})),I=function(){var t=L(M().mark((function t(){var e,r,n,o,i=arguments;return M().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:"all",c.value=!0,"filter"===e&&0===d.value.MerType&&(d.value.MerType=null),r={CreateDTStr:d.value.CreateDTStr,CreateDTEnd:d.value.CreateDTEnd,sortRegex:d.value.sortRegex,length:-1},t.next=6,h.A.post("/api/merchant/search_list",r);case 6:n=t.sent,(o=n.data).success?(o.data.list.length>0?u.value=o.data.list.map((function(t){return O(O({},t),{},{MerNameAndMerID:"".concat(t.MerName).concat(t.MerID),MerCVas:!0===t.MerCVas?1:2})})):u.value=[],N(u.value)):w.E.error(o.message),c.value=!1;case 10:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),B=function(){var t=L(M().mark((function t(){var e,r;return M().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.value=!0,t.next=3,h.A.post("/api/merchant/list/type_status_total");case 3:e=t.sent,(r=e.data).success?R(r.data.status):w.E.error(r.message),n.value=!1;case 7:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),R=function(t){var e=!Array.isArray(t)&&Object.keys(t).length>0;o.value=[{text:"全部",value:null,itemsLength:e?Object.values(t).reduce((function(t,e){return t+e}),0):0}],e&&S.A.merStatus.forEach((function(e){92===e.value&&!t[92]&&t[8]?t[92]=t[8]:92===e.value&&t[92]&&t[8]&&(t[92]=t[92]+t[8]),t[e.value]&&8!==e.value&&o.value.push({text:e.text,value:e.value,itemsLength:t[e.value]})}))},N=function(t){v.value.totalItems=t.length,v.value.pageCount=Math.ceil(v.value.totalItems/l.value),E.value=v.value.pageCount,A.value=1},G=(0,f.EW)((function(){return d.value.MerType?1===d.value.MerType?a.value:2===d.value.MerType?s.value:void 0:H.value})),H=(0,f.EW)({get:function(){var t=k(u.value);return d.value.MerStatus&&(t=u.value.filter((function(t){var e=8===t.MerStatus&&92===d.value.MerStatus;return t.MerStatus===d.value.MerStatus||e}))),d.value.searchName&&(t=t.filter((function(t){return t.MerNameAndMerID.includes(d.value.searchName)}))),t}});(0,f.wB)(H,(function(t){for(var e in a.value=H.value.filter((function(t){return 1===t.MerType})),s.value=H.value.filter((function(t){return 2===t.MerType})),r.value)"0"===e&&(r.value[e].itemsLength=H.value.length),"1"===e&&(r.value[e].itemsLength=a.value.length),"2"===e&&(r.value[e].itemsLength=s.value.length);N(G.value)})),(0,f.wB)((function(){return d.value.MerType}),(function(){N(G.value)}),{deep:!0});var F=(0,f.EW)((function(){var t=(A.value-1)*l.value,e=A.value*l.value;return G.value.slice(t,e)})),W=function(){o.value.length>1&&j.value.includes(b.A.currentRoute.meta.permission)&&(D.value=!0)};return(0,f.sV)(L(M().mark((function t(){return M().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,B();case 2:return t.next=4,W();case 4:I();case 5:case"end":return t.stop()}}),t)})))),{__sfc:!0,initDtParams:e,tabs:r,shortcutLoading:n,merStatusList:o,doHandleMerStatusText:i,webShop:a,physicalShop:s,length:l,listLoading:c,merchantList:u,dtParams:d,dtLoading:p,dtPagination:v,dtPage:A,maxPage:E,exportCsvModal:T,tipModal:D,tipPage:j,getMerchantList:I,getShortcutData:B,handleMerchantStatus:R,enterPage:function(t){var e=parseInt(t,10);isNaN(e)?w.E.error("請輸入正常頁數"):e>0&&e<=E.value?A.value=e:w.E.error("請輸入範圍內頁數")},changeDtPage:function(t){A.value=t},handlePage:N,resetSearch:function(){d.value={MerStatus:null,MerType:0,CreateDTStr:null,CreateDTEnd:null,sortRegex:"desc",MerName:null,searchName:null,goPage:null,length:-1}},currentList:G,filterList:H,currentPageList:F,changMerStatus:function(t){d.value.MerStatus=t.value,i.value=!0},exportCsv:function(){T.value=!1;var t={sortRegex:d.value.sortRegex};["MerStatus","MerType","CreateDTStr","CreateDTEnd"].forEach((function(e){d.value[e]&&(t[e]=d.value[e])})),_.A.formPostAction(t,"/api/merchant/list/download")},triggerGuide:W,closeGuide:function(){(0,C.F)(b.A.currentRoute.meta.permission),D.value=!1},startGuide:function(){D.value=!1;(0,C.Y)({steps:[{element:"#merchantShortCut",class:"general",needVector:!0,popover:{title:"新增快捷鍵",de
2scription:"可以快速查看目前所有商店狀態,點一下就可以快速篩出狀態下的商店。",side:"bottom",align:"start",onPopoverRender:function(t,e){e.config,e.step,t.arrow.style.left="12%"}}},{element:"#merchantSearch",class:"general",needVector:!0,popover:{title:"更多條件",description:"點擊搜尋可以有更多條件進行搜尋。",side:"bottom",align:"start",onPopoverRender:function(t,e){e.config,e.step,t.arrow.style.left="42%"}}},{element:"#merchantTypeSwitch",class:"general",needVector:!0,popover:{title:"切換頁籤",description:"可以切換查看不同商店類型。",side:"bottom",align:"start",onPopoverRender:function(t,e){e.config,e.step,t.arrow.style.left="12%"}}},{element:"#merchantItem",class:"general",needVector:!0,popover:{title:"商店卡片",description:"點擊後可以進入商店詳細頁。",side:"bottom",align:"start",onPopoverRender:function(t,e){e.config,e.step,t.arrow.style.left="22%"}}}],onDestroyStarted:function(t,e,r){var n=r.driver;n.hasNextStep()&&!confirm("要關閉引導嗎?")||n.destroy()},onDestroyed:function(){(0,C.F)(b.A.currentRoute.meta.permission)}})},MerchantFilter:m.A,MerchantItem:g.A,tableLayout:y.A,GAButtonId:P.Y,merchantItemsRef:S.A}}},B=I,R=r(56058),N=r.n(R),G=r(49238),H={insert:"head",singleton:!1};N()(G.A,H),G.A.locals;var F=(0,r(98851).A)(B,(function(){var t=this,e=t._self._c,r=t._self._setupProxy;return e("div",[e("div",[e("PageTitle"),t._v(" "),e("div",{staticClass:"ma-6"},[e(o.A,{staticClass:"rounded-box mb-4",attrs:{elevation:"1"}},[e(i.OQ,{staticClass:"pa-md-6"},[e("div",{staticClass:"mb-4 h4"},[t._v("\n            商店快捷鍵\n          ")]),t._v(" "),e("div",{staticClass:"mb-4 pa-4 rounded-box bg",attrs:{id:"merchantShortCut"}},[r.shortcutLoading?e(c.A,{staticStyle:{margin:"-8px"}},t._l(r.merchantItemsRef.merStatus,(function(t){return e(a.A,{key:t.value},[e(u.A,{attrs:{height:"62",type:"image"}})],1)})),1):e(c.A,{staticClass:"merStatusBar"},t._l(r.merStatusList,(function(n){return e(a.A,{key:n.value,staticClass:"pa-2",attrs:{md:"3",xl:"2"}},[e("div",{staticClass:"cursor-pointer merStatusItem elevation-1",class:{isActive:r.dtParams.MerStatus===n.value},on:{click:function(t){return r.changMerStatus(n)}}},[e("div",{staticClass:"merStatusItem__dot",class:r.merchantItemsRef.globalMerStatusColor(n.value)||"primary"}),t._v(" "),e("span",{staticClass:"merStatusItem__title"},[t._v(t._s(n.text)+"  ")])])])})),1)],1),t._v(" "),e("div",{staticClass:"d-flex"},[e(r.MerchantFilter,{attrs:{"dt-params":r.dtParams,"mer-status-list":r.merStatusList,"do-handle-mer-status-text":r.doHandleMerStatusText},on:{"update:doHandleMerStatusText":function(t){r.doHandleMerStatusText=t},"update:do-handle-mer-status-text":function(t){r.doHandleMerStatusText=t},getMerchantList:r.getMerchantList,resetSearch:r.resetSearch}}),t._v(" "),e(n.A,{staticClass:"outLined-white-bg ml-2",attrs:{outlined:"",rounded:"",color:"tips"},on:{click:function(t){r.exportCsvModal=!0}}},[e(l.A,{attrs:{small:""}},[t._v("\n                mdi-export-variant\n              ")]),t._v(" 匯出\n            ")],1)],1),t._v(" "),e(v.A,{staticClass:"mb-4",attrs:{id:"merchantTypeSwitch",grow:"",color:"info600"},model:{value:r.dtParams.MerType,callback:function(e){t.$set(r.dtParams,"MerType",e)},expression:"dtParams.MerType"}},t._l(r.tabs,(function(r,n){return e(p.A,{key:n,staticClass:"font-weight-bold normalTab",staticStyle:{padding:"0!important"},attrs:{"active-class":"info600--text"}},[t._v("\n              "+t._s(r.text)+"\n              ("+t._s(r.itemsLength)+")\n            ")])})),1),t._v(" "),r.listLoading?e(c.A,t._l(4,(function(t){return e(a.A,{key:t,attrs:{cols:"12",sm:"6"}},[e(o.A,{staticClass:"rounded-box elevation-0 default-border"},[e(i.OQ,[e(u.A,{attrs:{type:"list-item-avatar-three-line"}})],1)],1)],1)})),1):e(c.A,t._l(r.currentPageList,(function(t,n){return e(a.A,{key:n,attrs:{cols:"12",sm:"6"}},[e(r.MerchantItem,{attrs:{item:t}})],1)})),1)],1)],1),t._v(" "),r.currentPageList.length?e(r.tableLayout,{key:1,attrs:{pagination:r.dtPagination,page:r.dtPage,"per-page":r.length,"max-page":r.maxPage,"is-footer":!0,loading:r.dtLo
2ading},on:{goPageByInput:r.enterPage,goPageByClick:r.changeDtPage}}):t._e()],1)],1),t._v(" "),e(s.A,{attrs:{scrollable:"","max-width":"400"},model:{value:r.exportCsvModal,callback:function(t){r.exportCsvModal=t},expression:"exportCsvModal"}},[e(o.A,[e(i.ri,{staticClass:"text-h6 font-weight-bold"},[t._v("\n        匯出\n      ")]),t._v(" "),e(i.OQ,[t._v("\n        下載目前頁面的商店資訊\n      ")]),t._v(" "),e(i.SL,{staticClass:"pb-6"},[e(d.A),t._v(" "),e(n.A,{attrs:{color:"primary"},on:{click:function(t){r.exportCsvModal=!1}}},[t._v("\n          取消\n        ")]),t._v(" "),e(n.A,{attrs:{color:"green darken-1",dark:""},on:{click:r.exportCsv}},[t._v("\n          確認\n        ")]),t._v(" "),e(d.A)],1)],1)],1),t._v(" "),e(s.A,{attrs:{persistent:"",scrollable:"","max-width":"600"},model:{value:r.tipModal,callback:function(t){r.tipModal=t},expression:"tipModal"}},[e("div",{attrs:{id:r.GAButtonId.merchant.wrapper}},[e(o.A,[e("div",{staticClass:"d-flex justify-space-between align-center"},[e(i.ri,{staticClass:"text-h6 font-weight-bold"},[t._v("\n            提醒\n          ")]),t._v(" "),e(n.A,{staticClass:"mr-2",attrs:{text:""},on:{click:r.closeGuide}},[e("span",{attrs:{id:r.GAButtonId.merchant.skipGuide}},[t._v("略過")]),t._v(" "),e(l.A,{attrs:{small:""}},[t._v("\n              mdi-chevron-double-right\n            ")])],1)],1),t._v(" "),e(i.OQ,[t._v("\n          商店清單有更新,我們有教學模式,
2幫助你快速了解更新內容,是否立即查看 ?\n        ")]),t._v(" "),e(i.SL,{staticClass:"pb-6"},[e(d.A),t._v(" "),e(n.A,{attrs:{color:"primary"},on:{click:function(t){r.tipModal=!1}}},[e("span",{attrs:{id:r.GAButtonId.merchant.nextTimeGuide}},[t._v("稍後查看")])]),t._v(" "),e(n.A,{attrs:{color:"green darken-1 ml-4",dark:""},on:{click:r.startGuide}},[e("span",{attrs:{id:r.GAButtonId.merchant.startGuide}},[t._v("確認")])]),t._v(" "),e(d.A)],1)],1)],1)])],1)}),[],!1,null,null,null).exports},39742:function(t,e,r){var n=r(37360),o=r.n(n)()((function(t){return t[1]}));o.push([t.id,".page-control[data-v-2f677ad8]{border:1px solid #5f5f5f;border-radius:3px;height:24px;margin:-2px 5px;padding:3px;text-align:center;width:70px}.enter-btn[data-v-2f677ad8]{background-color:#fff!important;border:1px solid #5c3a93;box-shadow:1px 3px 5px 0 hsla(312,9%,89%,.5);color:#5c3a93!important;font-size:14px!important;padding:4px 24px!important}",""]),e.A=o},45748:function(t,e,r){var n=r(37360),o=r.n(n)()((function(t){return t[1]}));o.push([t.id,".merchantLogoBox{align-items:center;display:flex;justify-content:center}.merchantLogo{max-height:64px;max-width:100%;text-align:center}.merchantItemBox{overflow:hidden}.merchantItemBox:hover{box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)!important;transition:all .3s}.merchantItemBox__action{background-color:#f6f6f9;border-left:1px solid #c9c5ca!important;width:46px}",""]),e.A=o},48250:function(t,e,r){r.d(e,{Y:function(){return n}});var n={merchant:{startGuide:"startGuide",skipGuide:"skipGuide",nextTimeGuide:"nextTimeGuide",wrapper:"wrapper"},couponBaseInfo:{startGuide:"couponBaseInfoStartGuide",skipGuide:"couponBaseInfoSkipGuide",nextTimeGuide:"couponBaseInfoNextTimeGuide",wrapper:"couponBaseInfoWrapper"},couponEditEvent:{startGuide:"couponEditEventStartGuide",skipGuide:"couponEditEventSkipGuide",nextTimeGuide:"couponEditEventNextTimeGuide",wrapper:"couponEditEventWrapper"},couponCreateCoupon:{startGuide:"couponCreateCouponStartGuide",skipGuide:"couponCreateCouponSkipGuide",nextTimeGuide:"couponCreateCouponNextTimeGuide",wrapper:"couponCreateCouponWrapper"}}},49238:function(t,e,r){var n=r(37360),o=r.n(n)()((function(t){return t[1]}));o.push([t.id,"@media (max-width:960px){.merStatusBar{flex-wrap:nowrap;overflow:auto}}.merStatusItem{align-items:center;background-color:#fff;border-radius:6px;display:flex;font-size:14px;min-width:150px;padding:8px 16px}.merStatusItem__dot{border-radius:10px;height:10px;margin-right:5px;width:10px}.merStatusItem__title{font-weight:900}.merStatusItem.isActive{background-color:#9160e0;color:#fff}.merStatusItem.isActive .merStatusItem__dot{background-color:#fff!important}.merchantLogoBox{align-items:center;display:flex;justify-content:center}.merchantLogo{max-height:64px;max-width:100%;text-align:center}.merchantItemBox{overflow:hidden}.merchantItemBox:hover{box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)!important;transition:all .3s}.merchantItemBox__action{background-color:#f6f6f9;border-left:1px solid #c9c5ca!important;width:46px}",""]),e.A=o},61206:function(t,e,r){r.d(e,{A:function(){return w}});var n=r(33389),o=r(67787),i=r(81207),a=r(31464),s=r(63008),l=r(53615),c=r(79987),u=r(93579),d=r(97218),p=r(15091),v=r(76877);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function m(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach((function(e){g(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function g(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=f(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
2(t,"string");return"symbol"==f(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var y={__name:"MerchantFilter",props:{dtParams:{type:Object,default:function(){return{}}},merStatusList:{type:Array,default:function(){return[]}},doHandleMerStatusText:{type:Boolean,default:!1}},emits:["getMerchantList","update:doHandleMerStatusText","resetSearch"],setup:function(t,e){var r=e.emit,n=t,o=function(){return{MerStatus:null,MerType:0,CreateDTStr:null,CreateDTEnd:null,sortRegex:"desc",MerName:null,searchName:null,goPage:null,length:-1}},i=(0,p.KR)([]),a=(0,p.KR)(!1),s=(0,p.KR)(!1),l=[{text:"新到舊",value:"desc"},{text:"舊到新",value:"asc"}],c=function(){if(i.value=[],n.dtParams.searchName&&i.value.push({type:"searchName",text:" ".concat(n.dtParams.searchName)}),n.dtParams.MerStatus){var t=n.merStatusList.find((function(t){return t.value===n.dtParams.MerStatus}));i.value.push(m(m({},t),{},{type:"MerStatus",text:"".concat(t.text)}))}n.dtParams.CreateDTStr&&i.value.push({type:"CreateDTStr",text:"".concat(n.dtParams.CreateDTStr,"~").concat(n.dtParams.CreateDTEnd)}),"desc"!==n.dtParams.sortRegex&&i.value.push({type:"sortRegex",text:"排序方式: ".concat(l.find((function(t){return t.value===n.dtParams.sortRegex})).text)})},u=function(){var t=i.value.findIndex((function(t){return"MerStatus"===t.type}));if(-1!==t&&i.value.splice(t,1),n.dtParams.MerStatus){var e=n.merStatusList.find((function(t){return t.value===n.dtParams.MerStatus}));i.value.push(m(m({},e),{},{type:"MerStatus",text:"".concat(e.text)}))}r("update:doHandleMerStatusText",!1)};(0,p.wB)(i,(function(t,e){if(!t.length){r("resetSearch");var n=e.map((function(t){return t.type}));(n.includes("CreateDTStr")||n.includes("sortRegex"))&&(f.value=["",""],r("getMerchantList"))}})),(0,p.wB)((function(){return n.doHandleMerStatusText}),(function(t){t&&u()}));var d=(0,p.KR)(!1),f=(0,p.KR)(["",""]);return{__sfc:!0,props:n,emits:r,initDtParams:o,filterText:i,sendLoader:a,searchMerchantModal:s,sortType:l,handleFilterText:c,handleMerStatusText:u,filterSearch:function(){c(),r("getMerchantList","filter"),s.value=!1},deleteItem:function(t){"MerStatus"===t.type&&(i.value.splice(i.value.findIndex((function(t){return"MerStatus"===t.type})),1),n.dtParams[t.type]={MerStatus:null,MerType:0,CreateDTStr:null,CreateDTEnd:null,sortRegex:"desc",MerName:null,searchName:null,goPage:null,length:-1}[t.type]),"searchName"===t.type&&(i.value.splice(i.value.findIndex((function(t){return"searchName"===t.type})),1),n.dtParams[t.type]={MerStatus:null,MerType:0,CreateDTStr:null,CreateDTEnd:null,sortRegex:"desc",MerName:null,searchName:null,goPage:null,length:-1}[t.type]),"CreateDTStr"===t.type&&(i.value.splice(i.value.findIndex((function(t){return"CreateDTStr"===t.type})),1),n.dtParams.CreateDTStr=null,n.dtParams.CreateDTEnd=null,f.value=["",""],c(),r("getMerchantList","filter")),"sortRegex"===t.type&&(i.value.splice(i.value.findIndex((function(t){return"sortRegex"===t.type})),1),n.dtParams[t.type]={MerStatus:null,MerType:0,CreateDTStr:null,CreateDTEnd:null,sortRegex:"desc",MerName:null,searchName:null,goPage:null,length:-1}[t.type],c(),r("getMerchantList","filter"))},handleSearch:function(){c()},dateRangePickForm:d,dateInit:f,datePickAction:function(t){t?(n.dtParams.CreateDTStr=t[0],n.dtParams.CreateDTEnd=t[1]):(n.dtParams.CreateDTStr=null,n.dtParams.CreateDTEnd=null)},dateRangePick:v.A}}},w=(0,r(98851).A)(y,(function(){var t=this,e=t._self._c,r=t._self._setupProxy;return e("div",{staticStyle:{width:"100%"}}
2,[e("div",{staticClass:"mb-2 merchantSearchBox default-border cursor-pointer",attrs:{id:"merchantSearch"},on:{click:function(t){r.searchMerchantModal=!0}}},[e("div",{staticClass:"merchantSearchBox__inner"},[e("div",[e(c.A,[t._v("\n          mdi-magnify\n        ")]),t._v(" "),r.filterText.length?t._e():e("span",[t._v("\n          請輸入商店名稱/商店代號\n        ")])],1),t._v(" "),e("div",{},[r.filterText.length?e(c.A,{on:{click:function(t){t.stopPropagation(),r.filterText=[]}}},[t._v("\n          mdi-close\n        ")]):t._e(),t._v(" "),e(c.A,{staticClass:"mr-2"},[t._v("\n          mdi-filter-variant\n        ")])],1)]),t._v(" "),e("div",{staticClass:"d-none d-sm-block",staticStyle:{display:"flex",overflow:"hidden"}},t._l(r.filterText,(function(n,o){return e(a.A,{key:o,staticClass:"mr-2",staticStyle:{overflow:"visible"},attrs:{color:"lighten-3",small:"",rounded:""},on:{click:function(t){t.stopPropagation()}}},[e("span",{staticClass:"pr-2"},[t._v("\n          "+t._s(n.text)+"\n        ")]),t._v(" "),e(c.A,{attrs:{small:""},on:{click:function(t){return t.stopPropagation(),r.deleteItem(n)}}},[t._v("\n          $delete\n        ")])],1)})),1),t._v(" "),r.filterText.length?e("div",{staticClass:"d-sm-none"},[t._v("\n      已設定: "+t._s(r.filterText.length)+" 項\n    ")]):t._e()]),t._v(" "),e(l.A,{attrs:{persistent:"",scrollable:"","max-width":"800"},model:{value:r.searchMerchantModal,callback:function(t){r.searchMerchantModal=t},expression:"searchMerchantModal"}},[e(o.A,[e(i.ri,{staticClass:"text-h6 font-weight-bold"},[t._v("\n        搜尋條件\n      ")]),t._v(" "),e(i.OQ,{staticClass:"pb-0"},[e("div",{staticClass:"mb-4"},[e(d.A,{attrs:{dense:"","hide-details":"",placeholder:"請輸入商店名稱 / 商店代號",rounded:"","prepend-inner-icon":"mdi-magnify",clearable:"",solo:""},on:{input:r.handleSearch},model:{value:t.dtParams.searchName,callback:function(e){t.$set(t.dtParams,"searchName","string"==typeof e?e.trim():e)},expression:"dtParams.searchName"}})],1),t._v(" "),e("div",{staticClass:"mb-4"},[e("label",{staticClass:"body-2 font-weight-bold"},[t._v("\n            商店狀態\n          ")]),t._v(" "),e(s.A,{attrs:{column:"",mandatory:""},model:{value:t.dtParams.MerStatus,callback:function(e){t.$set(t.dtParams,"MerStatus",e)},expression:"dtParams.MerStatus"}},t._l(t.merStatusList,(function(r,n){return e(a.A,{key:n,attrs:{filter:"",outlined:"","active-class":"success success--text",value:r.value}},[t._v("\n              "+t._s(r.text)+"\n            ")])})),1)],1),t._v(" "),e("div",{staticClass:"mb-4"},[e("label",{staticClass:"body-2 font-weight-bold"},[t._v("\n            建立日期\n          ")]),t._v(" "),e(r.dateRangePick,{ref:"dateRangePickForm",staticClass:"mt-2",attrs:{clearable:"","date-init":r.dateInit},on:{dateSync:r.datePickAction}})],1),t._v(" "),e("div",[e("label",{staticClass:"body-2 font-weight-bold"},[t._v("\n            排序方式\n          ")]),t._v(" "),e("div",{staticClass:"d-flex align-center"},[t._v("\n            建立時間:\n            "),e(s.A,{attrs:{column:"",mandatory:""},model:{value:t.dtParams.sortRegex,callback:function(e){t.$set(t.dtParams,"sortRegex",e)},expression:"dtParams.sortRegex"}},t._l(r.sortType,(function(r,n){return e(a.A,{key:n,attrs:{filter:"",outlined:"","active-class":"success success--text",value:r.value}},[t._v("\n                "+t._s(r.text)+"\n              ")])})),1)],1)])]),t._v(" "),e(i.SL,{staticClass:"pb-6"},[e(u.A),t._v(" "),e(n.A,{attrs:{color:"primary"},on:{click:function(t){r.searchMerchantModal=!1}}},[t._v("\n          取消\n        ")]),t._v(" "),e(n.A,{attrs:{color:"green darken-1",dark:"",loading:r.sendLoader},on:{click:r.filterSearch}},[t._v("\n          確認\n        ")]),t._v(" "),e(u.A)],1)],1)],1)],1)}),[],!1,null,null,null).exports},65072:function(t,e,r){r.d(e,{E:function(){return i}});var n=r(15576),o=r(14269),i=(0,n.bO)(o.A)},66634:function(t,e,r){var n=r(37360),o=r.n(n),i=r(86085),a=o()((function(t){return t[1]}));a.i(i.A),a.push([t.id,".driver-theme{color:#000;max-width:90%;width:600px}.driver-theme .popover-footer{-moz-column-gap:10%;column-gap:10%;display:flex;justify-content:center;width:40%}.driver-theme .driver-popover-title{font-size:18px}.driver-theme .driver-popover-description{font-size:14px}.driver-theme .popover-button{background:#000!important;border-radius:5px;color:#fff;font-size:14px;font-weight:400;min-width:150px;padding:6px 0;text-align:center;text-shadow:none}.driver-theme .popover-progress{color:#000;font-size:14px;position:absolute;right:15px;top:15px}.driver-theme-sidebar{background:transparent;box-shadow:none;color:#fff}.driver-theme-sidebar .driver-popover-description,.driver-theme-sidebar .driver-popover-title{text-wrap:nowrap;font-size:26px}.driver-theme-right{margin-right:-15px}.driver-overlay{pointer-events:all!important}",""]),e.A=a},76877:function(t,e,r){r.d(e,{A:function(){return m}});var n=r(33389),o=r(67787),i=r(81207),a=r(31464),s=r(7966),l=r(68125),c=r(79987),u=r(8300),d=r(56511),p=r(97218),v=r(47449),f=r(2541),h={name:"DateRangePick",props:{label:{type:String,default:function(){return"起訖日"}},dateInit:{type:Array,default:function(){return["2022-08-01",f.A.getFormattedDay()]}},minDate:{type:String,default:function(){return"2022-08-01"}},maxDate:{type:String,default:function(){return f.A.getFormattedDay()}},textOutlined:{type:Boolean,default:function(){return!0}},disabled:{type:Boolean,default:function(){return!1}},clearable:{type:Boolean,default:function(){return!1}}},data:function(){return{colorVariables:v.A,dpSnackbar:!1,openPick:!1,date:[]}},computed:{formatDate:{get:function(){return void 0===this.date[1]?this.date[0]+" - "+this.date[0]:this.date.join(" - ")},set:function(t){t||(this.date=["",""],this.$emit("dateSync",this.date))}}},watch:{dateInit:{deep:!0,handler:function(t,e){this.date=t}}},methods:{datePicked:function(){1!==this.date.length?(this.date.sort((function(t,e){return Date.parse(t)-Date.parse(e)>0?1:Date.parse(t)-Date.parse(e)<0?-1:0})),this.$refs.datePicker.save(this.date),Array.isArray(this.date)&&2===this.date.length||(this.date=this.dateInit),this.$emit("dateSync",this.date)):this.openPick=!0},cancelSelect:function(){return this.date=this.dateInit,this.openPick=!1,this.$emit("dateSync",this.date)},setDatePick:function(t){var e=new Date,r=new Date;return 1===t||3===t?e.setMonth(e.getMonth()-t):"yesterday"===t&&(e.setDate(e.getDate()-1),r=e),this.openPick=!1,e=f.A.getFormattedDay(e),r=f.A.getFormattedDay(r),this.date=[e,r],Array.isArray(this.date)&&2===this.date.length||(this.date=this.dateInit),this.$emit("dateSync",this.date)}},created:function(){this.date=this.dateInit,this.$emit("dateSync",this.date)}},m=(0,r(98851).A)(h,(function(){var t=this,e=t._self._c;return e("div",[e(u.A,{ref:"datePicker",attrs:{"close-on-content-click":!1,"close-on-click":!1,transition:"scale-transition","offset-y":"","min-width":"290px"},scopedSlots:t._u([{key:"activator",fn:function(r){var n=r.on;return[e(p.A,t._g({attrs:{disabled:t.disabled,outlined:t.textOutlined,label:t.label,readonly:"",dense:"",clearable:t.clearable,"hide-details":""},scopedSlots:t._u([{key:"append",fn:function(){return[e(c.A,{attrs:{size:"20px",disabled:t.disabled,color:t.disabled?t.colorVariables["grey-variant-250"]:t.color
2Variables["info-300"]},on:{click:function(e){t.openPick=!t.openPick}}},[t._v("\n            $calendar\n          ")])]},proxy:!0}],null,!0),model:{value:t.formatDate,callback:function(e){t.formatDate="string"==typeof e?e.trim():e},expression:"formatDate"}},n))]}}]),model:{value:t.openPick,callback:function(e){t.openPick=e},expression:"openPick"}},[t._v(" "),e(o.A,[e(i.OQ,{staticClass:"pa-1"},[e("div",[e("div",{staticClass:"body-2 px-4 py-2"},[t._v("\n            快速選擇:\n          ")]),t._v(" "),e("div",{staticClass:"ml-4 d-flex"},[e(a.A,{staticClass:"mr-1",attrs:{small:"",label:"",color:"primary"},on:{click:function(e){return t.setDatePick(3)}}},[t._v("\n              最近三個月\n            ")]),t._v(" "),e(a.A,{staticClass:"mr-1",attrs:{small:"",label:"",color:"primary"},on:{click:function(e){return t.setDatePick(1)}}},[t._v("\n              最近一個月\n            ")]),t._v(" "),e(a.A,{staticClass:"mr-1",attrs:{small:"",label:"",color:"primary"},on:{click:function(e){return t.setDatePick("yesterday")}}},[t._v("\n              昨天\n            ")]),t._v(" "),e(a.A,{staticClass:"mr-1",attrs:{small:"",label:"",color:"primary"},on:{click:function(e){return t.setDatePick()}}},[t._v("\n              今天\n            ")])],1)]),t._v(" "),e(l.A,{staticClass:"mt-3"}),t._v(" "),e("div",[e(d.A,[t._v("自訂日期區間:")]),t._v(" "),e(s.A,{attrs:{min:t.minDate,max:t.maxDate,range:"","no-title":"",scrollable:"",color:"cyan darken-1"},on:{input:t.datePicked},model:{value:t.date,callback:function(e){t.date=e},expression:"date"}},[e(n.A,{staticClass:"mt-3",attrs:{outlined:"",block:"",color:"primary"},on:{click:t.cancelSelect}},[t._v("\n              取消\n            ")])],1)],1)],1)],1)],1)],1)}),[],!1,null,null,null).exports},77658:function(t,e,r){r.d(e,{A:function(){return v}});var n=r(33389),o=r(78037),i=r(79987),a=r(57132),s=r(20019),l={name:"TableLayout",props:{pagination:{type:Object,default:function(){return{pageCount:0,totalItems:0}}},page:{type:Number,default:0},perPage:{type:Number,default:0},maxPage:{type:Number,default:0},isHeader:{type:Boolean,default:!1},isFooter:{type:Boolean,default:!1},isSlot:{type:Boolean,default:!1},otherField:{type:String,default:""},showExport:{type:Boolean,default:!0},loading:{type:Boolean,default:!1}},data:function(){return{pagin:{pageCount:0,totalItems:0},inputPage:0,clickPage:0}},computed:{startRow:function(){return this.page*this.perPage-this.perPage+1},endRow:function(){var t=this.page*this.perPage;return t>this.pagin.totalItems?this.pagin.totalItems:t}},watch:{page:{handler:function(t,e){this.inputPage=t,this.clickPage=t},deep:!0},pagination:{handler:function(t,e){this.pagin=t},deep:!0},clickPage:function(t){this.$emit("goPageByClick",t)}},methods:{enterToPage:function(){this.$emit("goPageByInput",this.inputPage)},exportQuery:function(){this.$emit("doExport")}},created:function(){this.pagin=this.pagination,this.clickPage=this.page,this.inputPage=this.page}},c=r(56058),u=r.n(c),d=r(39742),p={insert:"head",singleton:!1};u()(d.A,p),d.A.locals;var v=(0,r(98851).A)(l,(function(){var t=this,e=t._self._c;return e("div",[t.isHeader?[e(s.A,{staticClass:"my-3",attrs:{"no-gutters":""}},[t.isSlot?[e(o.A,{attrs:{cols:"12",md:"10"}},[t._t("default")],2)]:e(o.A,{staticClass:"py-2",attrs:{cols:"12",md:"10"}},[e("div",{staticClass:"primary--text font-weight-bold d-flex flex-wrap justify-center justify-md-start"},[e("div",[t._v("\n            顯示 "+t._s(t.startRow)+" - "+t._s(t.endRow)+" 筆,共\n            "+t._s(t.pagination.totalItems)+" 筆,\n          ")]),t._v(" "),""!==t.otherField?e("div",{domProps:{innerHTML:t._s(t.otherField)}}):e("div",[t._v("\n            跳至\n            "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.inputPage,expression:"inputPage"}],staticClass:"page-control",attrs:{type:"number",min:"1"},domProps:{value:t.inputPage},on:{input:function(e){e.target.composing||(t.inputPage=e.target.value)}}}),t._v("\n            頁 / "+t._s(t.maxPage)+" 頁\n            "),e(n.A,{staticClass:"ml-2 enter-btn",attrs:{small:""},on:{click:t.enterToPage}},[t._v("\n              GO\n            ")])],1)])]),t._v(" "),e(o.A,{staticClass:"d-flex justify-end",attrs:{cols:"12",md:"2"}},[t.showExport?e(n.A,{staticClass:"outLined-white-bg",attrs:{color:"tips",outlined:""},on:{click:t.exportQuery}},[e(i.A,{attrs:{small:""}},[t._v("\n            mdi-export-variant\n          ")]),t._v(" 匯出報表\n        ")],1):t._e()],1)],2)]:t._e(),t._v(" "),t.isFooter?[e(s.A,{staticClass:"my-3",attrs:{"no-gutters":""}},[e(o.A,{staticClass:"py-2",attrs:{cols:"12",md:"7"}},[e("div",{staticClass:"primary--text font-weight-bold d-flex flex-wrap justify-center justify-md-start"},[e("div",[t._v("\n            顯示 "+t._s(t.startRow)+" - "+t._s(t.endRow)+" 筆,共\n            "+t._s(t.pagination.totalItems)+" 筆\n          ")]),t._v(" "),e("div",[e("span",{staticClass:"d-none d-sm-inline"},[t._v(",")]),t._v("\n            跳至\n            "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.inputPage,expression:"inputPage"}],staticClass:"page-control",attrs:{type:"number",min:"1"},domProps:{value:t.inputPage},on:{input:function(e){e.target.composing||(t.inputPage=e.target.value)}}}),t._v("\n            頁 / "+t._s(t.maxPage)+" 頁\n            "),e(n.A,{staticClass:"ml-2 enter-btn",attrs:{small:"",disabled:t.loading},on:{click:t.enterToPage}},[t._v("\n              GO\n            ")])],1)])]),t._v(" "),e(o.A,{attrs:{cols:"12",md:"5"}},[e("div",{staticClass:"d-sm-flex justify-center justify-md-end pt-0"},[e(a.A,{attrs:{color:"info",disabled:t.loading,"total-visible":8,length:t.pagination.pageCount},model:{value:t.clickPage,callback:function(e){t.clickPage=e},expression:"clickPage"}})],1)])],1)]:t._e()],2)}),[],!1,null,"2f677ad8",null).exports},86085:function(t,e,r){var n=r(37360),o=r.n(n)()((function(t){return t[1]}));o.push([t.id,'.driver-active .driver-overlay,.driver-active *{pointer-events:none}.driver-active .driver-active-element,.driver-active .driver-active-element *,.driver-popover,.driver-popover *{pointer-events:auto}@keyframes animate-fade-in{0%{opacity:0}
2to{opacity:1}}.driver-fade .driver-overlay{animation:animate-fade-in .2s ease-in-out}.driver-fade .driver-popover{animation:animate-fade-in .2s}.driver-popover{all:unset;box-sizing:border-box;color:#2d2d2d;margin:0;padding:15px;border-radius:5px;min-width:250px;max-width:300px;box-shadow:0 1px 10px #0006;z-index:1000000000;position:fixed;top:0;right:0;background-color:#fff}.driver-popover *{font-family:Helvetica Neue,Inter,ui-sans-serif,"Apple Color Emoji",Helvetica,Arial,sans-serif}.driver-popover-title{font:19px/normal sans-serif;font-weight:700;display:block;position:relative;line-height:1.5;zoom:1;margin:0}.driver-popover-close-btn{all:unset;position:absolute;top:0;right:0;width:32px;height:28px;cursor:pointer;font-size:18px;font-weight:500;color:#d2d2d2;z-index:1;text-align:center;transition:color;transition-duration:.2s}.driver-popover-close-btn:hover,.driver-popover-close-btn:focus{color:#2d2d2d}.driver-popover-title[style*=block]+.driver-popover-description{margin-top:5px}.driver-popover-description{margin-bottom:0;font:14px/normal sans-serif;line-height:1.5;font-weight:400;zoom:1}.driver-popover-footer{margin-top:15px;text-align:right;zoom:1;display:flex;align-items:center;justify-content:space-between}.driver-popover-progress-text{font-size:13px;font-weight:400;color:#727272;zoom:1}.driver-popover-footer button{all:unset;display:inline-block;box-sizing:border-box;padding:3px 7px;text-decoration:none;text-shadow:1px 1px 0 #fff;background-color:#fff;color:#2d2d2d;font:12px/normal sans-serif;cursor:pointer;outline:0;zoom:1;line-height:1.3;border:1px solid #ccc;border-radius:3px}.driver-popover-footer .driver-popover-btn-disabled{opacity:.5;pointer-events:none}:not(body):has(>.driver-active-element){overflow:hidden!important}.driver-no-interaction,.driver-no-interaction *{pointer-events:none!important}.driver-popover-footer button:hover,.driver-popover-footer button:focus{background-color:#f7f7f7}.driver-popover-navigation-btns{display:flex;flex-grow:1;justify-content:flex-end}.driver-popover-navigation-btns button+button{margin-left:4px}.driver-popover-arrow{content:"";position:absolute;border:5px solid #fff}.driver-popover-arrow-side-over{display:none}.driver-popover-arrow-side-left{left:100%;border-right-color:transparent;border-bottom-color:transparent;border-top-color:transparent}.driver-popover-arrow-side-right{right:100%;border-left-color:transparent;border-bottom-color:transparent;border-top-color:transparent}.driver-popover-arrow-side-top{top:100%;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}.driver-popover-arrow-side-bottom{bottom:100%;border-left-color:transparent;border-top-color:transparent;border-right-color:transparent}.driver-popover-arrow-side-center{display:none}.driver-popover-arrow-side-left.driver-popover-arrow-align-start,.driver-popover-arrow-side-right.driver-popover-arrow-align-start{top:15px}.driver-popover-arrow-side-top.driver-popover-arrow-align-start,.driver-popover-arrow-side-bottom.driver-popover-arrow-align-start{left:15px}.driver-popover-arrow-align-end.driver-popover-arrow-side-left,.driver-popover-arrow-align-end.driver-popover-arrow-side-right{bottom:15px}.driver-popover-arrow-side-top.driver-popover-arrow-align-end,.driver-popover-arrow-side-bottom.driver-popover-arrow-align-end{right:15px}.driver-popover-arrow-side-left.driver-popover-arrow-align-center,.driver-popover-arrow-side-right.driver-popover-arrow-align-center{top:50%;margin-top:-5px}.driver-popover-arrow-side-top.driver-popover-arrow-align-center,.driver-popover-arrow-side-bottom.driver-popover-arrow-align-center{left:50%;margin-left:-5px}.driver-popover-arrow-none{display:none}\n',""]),e.A=o},90762:function(e,r,o){o.d(r,{F:function(){return et},Y:function(){return tt}});var i=o(56058),a=o.n(i),s=o(66634),l={insert:"head",singleton:!1};a()(s.A,l),s.A.locals;var c,u={};function d(){u=n({animate:!0,allowClose:!0,overlayClickBehavior:"close",overlayOpacity:.7,smoothScroll:!1,disableActiveInteraction:!1,showProgress:!1,stagePadding:10,stageRadius:5,popoverOffset:10,showButtons:["next","previous","close"],disableButtons:[],overlayColor:"#000"},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}function p(t){return t?u[t]:u}function v(){return c}var f={};function h(t,e){f[t]=e}function m(t){var e;null==(e=f[t])||e.call(f)}function g(t,e,r,n){return(t/=n/2)<1?r/2*t*t+e:-r/2*(--t*(t-2)-1)+e}function y(e){var r='a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])';return e.flatMap((function(e){var n=e.matches(r),o=Array.from(e.querySelectorAll(r));return[].concat(t(n?[e]:[]),o)})).filter((function(t){return"none"!==getComputedStyle(t).pointerEvents&&function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}(t)}))}function w(t){if(t&&!function(t){var e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}(t)){var e=p("smoothScroll"),r=t.offsetHeight>window.innerHeight;t.scrollIntoView({behavior:!e||b(t)?"auto":"smooth",inline:"center",block:r?"start":"center"})}}function b(t){if(t&&t.parentElement){var e=t.parentElement;return e.scrollHeight>e.clientHeight}}var x={};function _(t,e){x[t]=e}function P(t){return t?x[t]:x}function S(){x={}}function C(t){if(t){var e=t.getBoundingClientRect(),r={x:e.x,y:e.y,width:e.width,height:e.height};_("__activeStagePosition",r),k(r)}}function A(t){var e=function(t){var e=window.innerWidth,r=window.innerHeight,n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.classList.add("driver-overlay","driver-overlay-animated"),n.setAttribute("viewBox","0 0 ".concat(e," ").concat(r)),n.setAttribute("xmlSpace","preserve"),n.setAttribute("xmlnsXlink","http://www.w3.org/1999/xlink"),n.setAttribute("version","1.1"),n.setAttribute("preserveAspectRatio","xMinYMin slice"),n.style.fillRule="evenodd",n.style.clipRule="evenodd",n.style.strokeLinejoin="round",n.style.strokeMiterlimit="2",n.style.zIndex="10000",n.style.position="fixed",n.style.top="0",n.style.left="0",n.style.width="100%",n.style.height="100%";var o=document.createElementNS("http://www.w3.org/2000/svg","path");return o.setAttribute("d",E(t)),o.style.fill=p("overlayColor")||"rgb(0,0,0)",o.style.opacity="".concat(p("overlayOpacity")),o.style.pointerEvents="auto",o.style.cursor="auto",n.appendChild(o),n}(t);document.body.appendChild(e),L(e,(function(t){"path"===t.target.tagName&&m("overlayClick")})),_("__overlaySvg",e)}function k(t){var e=P("__overlaySvg");if(e){var r=e.firstElementChild;if("path"!==(null==r?void 0:r.tagName))throw new Error("no path element found in stage svg");r.setAttribute("d",E(t))}else A(t)}function E(t){var e=window.innerWidth,r=window.innerHeight,n=p("stagePadding")||0,o=p("stageRadius")||0,i=t.width+2*n,a=t.height+2*n,s=Math.min(o,i/2,a/2),l=Math.floor(Math.max(s,0)),c=t.x-n+l,u=t.y-n,d=i-2*l,v=a-2*l;return"M".concat(e,",0L0,0L0,").concat(r,"L").concat(e,",").concat(r,"L").concat(e,",0Z\n    M").concat(c,",").concat(u," h").concat(d," a").concat(l,",").concat(l," 0 0 1 ").concat(l,",").concat(l," v").concat(v," a").concat(l,",").concat(l," 0 0 1 -").concat(l,",").concat(l," h-").concat(d," a").concat(l,",").concat(l," 0 0 1 -").concat(l,",-").concat(l," v-").concat(v," a").concat(l,",").concat(l," 0 0 1 ").concat(l,",-").concat(l," z")}function M(t){var e=t.element,r="function"==typeof e?e():"string"==typeof e?document.querySelector(e):e;r||(r=function(){var t=document.getElementById("driver-dummy-element");
2if(t)return t;var e=document.createElement("div");return e.id="driver-dummy-element",e.style.width="0",e.style.height="0",e.style.pointerEvents="none",e.style.opacity="0",e.style.position="fixed",e.style.top="50%",e.style.left="50%",document.body.appendChild(e),e}()),function(t,e){var r,n=Date.now(),o=P("__activeStep"),i=P("__activeElement")||t,a=!i||i===t,s="driver-dummy-element"===t.id,l="driver-dummy-element"===i.id,c=p("animate"),u=e.onHighlightStarted||p("onHighlightStarted"),d=(null==e?void 0:e.onHighlighted)||p("onHighlighted"),f=(null==o?void 0:o.onDeselected)||p("onDeselected"),h=p(),m=P();!a&&f&&f(l?void 0:i,o,{config:h,state:m,driver:v()}),u&&u(s?void 0:t,e,{config:h,state:m,driver:v()});var y=!a&&c,b=!1;(function(){var t=P("popover");t&&(t.wrapper.style.display="none")})(),_("previousStep",o),_("previousElement",i),_("activeStep",e),_("activeElement",t);var x=function(){if(P("__transitionCallback")===x){var r=Date.now()-n,a=400-r<=200;e.popover&&a&&!b&&y&&(I(t,e),b=!0),p("animate")&&r<400?function(t,e,r,n){var o=P("__activeStagePosition"),i=o||r.getBoundingClientRect(),a=n.getBoundingClientRect();k(o={x:g(t,i.x,a.x-i.x,e),y:g(t,i.y,a.y-i.y,e),width:g(t,i.width,a.width-i.width,e),height:g(t,i.height,a.height-i.height,e)}),_("__activeStagePosition",o)}(r,400,i,t):(C(t),d&&d(s?void 0:t,e,{config:p(),state:P(),driver:v()}),_("__transitionCallback",void 0),_("__previousStep",o),_("__previousElement",i),_("__activeStep",e),_("__activeElement",t)),window.requestAnimationFrame(x)}};_("__transitionCallback",x),window.requestAnimationFrame(x),w(t),!y&&e.popover&&I(t,e),i.classList.remove("driver-active-element","driver-no-interaction"),i.removeAttribute("aria-haspopup"),i.removeAttribute("aria-expanded"),i.removeAttribute("aria-controls"),(null!=(r=e.disableActiveInteraction)?r:p("disableActiveInteraction"))&&t.classList.add("driver-no-interaction"),t.classList.add("driver-active-element"),t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded","true"),t.setAttribute("aria-controls","driver-popover-content")}(r,t)}function T(){var t=P("__activeElement"),e=P("__activeStep");t&&(C(t),function(){var t=P("__activeStagePosition"),e=P("__overlaySvg");if(t&&e){var r=window.innerWidth,n=window.innerHeight;e.setAttribute("viewBox","0 0 ".concat(r," ").concat(n))}}(),G(t,e))}function O(){var t=P("__resizeTimeout");t&&window.cancelAnimationFrame(t),_("__resizeTimeout",window.requestAnimationFrame(T))}function D(e){var r;if(P("isInitialized")&&("Tab"===e.key||9===e.keyCode)){var n=P("__activeElement"),o=null==(r=P("popover"))?void 0:r.wrapper,i=y([].concat(t(o?[o]:[]),t(n?[n]:[]))),a=i[0],s=i[i.length-1];if(e.preventDefault(),e.shiftKey){var l=i[i.indexOf(document.activeElement)-1]||s;null==l||l.focus()}else{var c=i[i.indexOf(document.activeElement)+1]||a;null==c||c.focus()}}}function j(t){var e;(null==(e=p("allowKeyboardControl"))||e)&&("Escape"===t.key?m("escapePress"):"ArrowRight"===t.key?m("arrowRightPress"):"ArrowLeft"===t.key&&m("arrowLeftPress"))}function L(t,e,r){var n=function(e,n){var o=e.target;t.contains(o)&&((!r||r(o))&&(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()),null==n||n(e))};document.addEventListener("pointerdown",n,!0),document.addEventListener("mousedown",n,!0),document.addEventListener("pointerup",n,!0),document.addEventListener("mouseup",n,!0),document.addEventListener("click",(function(t){n(t,e)}),!0)}function I(e,r){var n,o,i=P("popover");i&&document.body.removeChild(i.wrapper),i=function(){var t=document.createElement("div");t.classList.add("driver-popover");var e=document.createElement("div");e.classList.add("driver-popover-arrow");var r=document.createElement("header");r.id="driver-popover-title",r.classList.add("driver-popover-title"),r.style.display="none",r.innerText="Popover Title";var n=document.createElement("div");n.id="driver-popover-description",n.classList.add("driver-popover-description"),n.style.display="none",n.innerText="Popover description is here";var o=document.createElement("button");o.type="button",o.classList.add("driver-popover-close-btn"),o.setAttribute("aria-label","Close"),o.innerHTML="&times;";var i=document.createElement("footer");i.classList.add("driver-popover-footer");var a=document.createElement("span");a.classList.add("driver-popover-progress-text"),a.innerText="";var s=document.createElement("span");s.classList.add("driver-popover-navigation-btns");var l=document.createElement("button");l.type="button",l.classList.add("driver-popover-prev-btn"),l.innerHTML="&larr; Previous";var c=document.createElement("button");return c.type="button",c.classList.add("driver-popover-next-btn"),c.innerHTML="Next &rarr;",s.appendChild(l),s.appendChild(c),i.appendChild(a),i.appendChild(s),t.appendChild(o),t.appendChild(e),t.appendChild(r),t.appendChild(n),t.appendChild(i),{wrapper:t,arrow:e,title:r,de
2scription:n,footer:i,previousButton:l,nextButton:c,closeButton:o,footerButtons:s,progress:a}}(),document.body.appendChild(i.wrapper);var a=r.popover||{},s=a.title,l=a.description,c=a.showButtons,u=a.disableButtons,d=a.showProgress,f=a.nextBtnText,h=void 0===f?p("nextBtnText")||"Next &rarr;":f,g=a.prevBtnText,b=void 0===g?p("prevBtnText")||"&larr; Previous":g,x=a.progressText,S=void 0===x?p("progressText")||"{current} of {total}":x;i.nextButton.innerHTML=h,i.previousButton.innerHTML=b,i.progress.innerHTML=S,s?(i.title.innerHTML=s,i.title.style.display="block"):i.title.style.display="none",l?(i.description.innerHTML=l,i.description.style.display="block"):i.description.style.display="none";var C=c||p("showButtons"),A=d||p("showProgress")||!1,k=(null==C?void 0:C.includes("next"))||(null==C?void 0:C.includes("previous"))||A;i.closeButton.style.display=C.includes("close")?"block":"none",k?(i.footer.style.display="flex",i.progress.style.display=A?"block":"none",i.nextButton.style.display=C.includes("next")?"block":"none",i.previousButton.style.display=C.includes("previous")?"block":"none"):i.footer.style.display="none";var E=u||p("disableButtons")||[];null!=E&&E.includes("next")&&(i.nextButton.disabled=!0,i.nextButton.classList.add("driver-popover-btn-disabled")),null!=E&&E.includes("previous")&&(i.previousButton.disabled=!0,i.previousButton.classList.add("driver-popover-btn-disabled")),null!=E&&E.includes("close")&&(i.closeButton.disabled=!0,i.closeButton.classList.add("driver-popover-btn-disabled"));var M=i.wrapper;M.style.display="block",M.style.left="",M.style.top="",M.style.bottom="",M.style.right="",M.id="driver-popover-content",M.setAttribute("role","dialog"),M.setAttribute("aria-labelledby","driver-popover-title"),M.setAttribute("aria-describedby","driver-popover-description"),i.arrow.className="driver-popover-arrow";var T=(null==(n=r.popover)?void 0:n.popoverClass)||p("popoverClass")||"";M.className="driver-popover ".concat(T).trim(),L(i.wrapper,(function(t){var n,o,i,a=t.target,s=(null==(n=r.popover)?void 0:n.onNextClick)||p("onNextClick"),l=(null==(o=r.popover)?void 0:o.onPrevClick)||p("onPrevClick"),c=(null==(i=r.popover)?void 0:i.onCloseClick)||p("onCloseClick");return a.classList.contains("driver-popover-next-btn")?s?s(e,r,{config:p(),state:P(),driver:v()}):m("nextClick"):a.classList.contains("driver-popover-prev-btn")?l?l(e,r,{config:p(),state:P(),driver:v()}):m("prevClick"):a.classList.contains("driver-popover-close-btn")?c?c(e,r,{config:p(),state:P(),driver:v()}):m("closeClick"):void 0}),(function(t){return!(null!=i&&i.description.contains(t))&&!(null!=i&&i.title.contains(t))&&"string"==typeof t.className&&t.className.includes("driver-popover")})),_("popover",i);var O=(null==(o=r.popover)?void 0:o.onPopoverRender)||p("onPopoverRender");O&&O(i,{config:p(),state:P(),driver:v()}),G(e,r),w(M);var D=e.classList.contains("driver-dummy-element"),j=y([M].concat(t(D?[]:[e])));j.length>0&&j[0].focus()}function B(){var t=P("popover");if(null!=t&&t.wrapper){var e=t.wrapper.getBoundingClientRect(),r=p("stagePadding")||0,n=p("popoverOffset")||0;return{width:e.width+r+n,height:e.height+r+n,realWidth:e.width,realHeight:e.height}}}function R(t,e){var r=e.elementDimensions,n=e.popoverDimensions,o=e.popoverPadding,i=e.popoverArrowDimensions;return"start"===t?Math.max(Math.min(r.top-o,window.innerHeight-n.realHeight-i.width),i.width):"end"===t?Math.max(Math.min(r.top-(null==n?void 0:n.realHeight)+r.height+o,window.innerHeight-(null==n?void 0:n.realHeight)-i.width),i.width):"center"===t?Math.max(Math.min(r.top+r.height/2-(null==n?void 0:n.realHeight)/2,window.innerHeight-(null==n?void 0:n.realHeight)-i.width),i.width):0}function N(t,e){var r=e.elementDimensions,n=e.popoverDimensions,o=e.popoverPadding,i=e.popoverArrowDimensions;return"start"===t?Math.max(Math.min(r.left-o,window.innerWidth-n.realWidth-i.width),i.width):"end"===t?Math.max(Math.min(r.left-(null==n?void 0:n.realWidth)+r.width+o,window.innerWidth-(null==n?void 0:n.realWidth)-i.width),i.width):"center"===t?Math.max(Math.min(r.left+r.width/2-(null==n?void 0:n.realWidth)/2,window.innerWidth-(null==n?void 0:n.realWidth)-i.width),i.width):0}function G(t,e){var r=P("popover");if(r){var n=(null==e?void 0:e.popover)||{},o=n.align,i=void 0===o?"start":o,a=n.side,s=void 0===a?"left":a,l=i,c="driver-dummy-element"===t.id?"over":s,u=p("stagePadding")||0,d=B(),v=r.arrow.getBoundingClientRect(),f=t.getBoundingClientRect(),h=f.top-d.height,m=h>=0,g=window.innerHeight-(f.bottom+d.height),y=g>=0,w=f.left-d.width,b=w>=0,x=window.innerWidth-(f.right+d.width),_=x>=0,S=!(m||y||b||_),C=c;if("top"===c&&m?_=b=y=!1:"bottom"===c&&y?_=b=m=!1:"left"===c&&b?_=m=y=!1:"right"===c&&_&&(b=m=y=!1),"over"===c){var A=window.innerWidth/2-d.realWidth/2,k=window.innerHeight/2-d.realHeight/2;r.wrapper.style.left="".concat(A,"px"),r.wrapper.style.right="auto",r.wrapper.style.top="".concat(k,"px"),r.wrapper.style.bottom="auto"}else if(S){var E=window.innerWidth/2-(null==d?void 0:d.realWidth)/2;r.wrapper.style.left="".concat(E,"px"),r.wrapper.style.right="auto",r.wrapper.style.bottom="".concat(10,"px"),r.wrapper.style.top="auto"}else if(b){var M=Math.min(w,window.innerWidth-(null==d?void 0:d.realWidth)-v.width),T=R(l,{elementDimensions:f,popoverDimensions:d,popoverPadding:u,popoverArrowDimensions:v});r.wrapper.style.left="".concat(M,"px"),r.wrapper.style.top="".concat(T,"px"),r.wrapper.style.bottom="auto",r.wrapper.style.right="auto",C="left"}else if(_){var O=Math.min(x,window.innerWidth-(null==d?void 0:d.realWidth)-v.width),D=R(l,{elementDimensions:f,popoverDimensions:d,popoverPadding:u,popoverArrowDimensions:v});r.wrapper.style.right="".concat(O,"px"),r.wrapper.style.top="".concat(D,"px"),r.wrapper.style.bottom="auto",r.wrapper.style.left="auto",C="right"}else if(m){var j=Math.min(h,window.innerHeight-d.realHeight-v.width),L=N(l,{elementDimensions:f,popoverDimensions:d,popoverPadding:u,popoverArrowDimensions:v});r.wrapper.style.top="".concat(j,"px"),r.wrapper.style.left="".concat(L,"px"),r.wrapper.style.bottom="auto",r.wrapper.style.right="auto",C="top"}else if(y){var I=Math.min(g,window.innerHeight-(null==d?void 0:d.realHeight)-v.width),G=N(l,{elementDimensions:f,popoverDimensions:d,popoverPadding:u,popoverArrowDimensions:v});r.wrapper.style.left="".concat(G,"px"),r.wrapper.style.bottom="".concat(I,"px"),r.wrapper.style.top="auto",r.wrapper.style.right="auto",C="bottom"}S?r.arrow.classList.add("driver-popover-arrow-none"):function(t,e,r){var n=P("popover");if(!n)return;var o=r.getBoundingClientRect(),i=B(),a=n.arrow,s=i.width,l=window.innerWidth,c=o.width,u=o.left,d=i.height,v=window.innerHeight,f=o.top,h=o.height;a.className="driver-popover-arrow";var m=e,g=t;if("top"===e?(u+c<=0?(m="right",g="end"):u+c-s<=0&&(m="top",g="start"),u>=l?(m="left",g="end"):u+s>=l&&(m="top",g="end")):"bottom"===e?(u+c<=0?(m="right",g="start"):u+c-s<=0&&(m="bottom",g="start"),u>=l?(m="left",g="start"):u+s>=l&&(m="bottom",g="end")):"left"===e?(f+h<=0?(m="bottom",g="end"):f+h-d<=0&&(m="left",g="start"),f>=v?(m="top",g="end"):f+d>=v&&(m="left",g="end")):"right"===e&&(f+h<=0?(m="bottom",g="start"):f+h-d<=0&&(m="right",g="start"),f>=v?(m="top",g="start"):f+d>=v&&(m="right",g="end")),m){a.classList.add("driver-popover-arrow-side-".concat(m)),a.classList.add("driver-popover-arrow-align-".concat(g));var y=r.getBoundingClientRect(),w=a.getBoundingClientRect(),b=p("stagePadding")||0,x=y.left-b<window.innerWidth&&y.right+b>0&&y.top-b<window.innerHeight&&y.bottom+b>0;"bottom"===e&&x&&(w.x>y.x&&w.x+w.width<y.x+y.width?n.wrapper.style.transform="translateY(0)":(a.classList.remove("driver-popover-arrow-align-".concat(g)),a.classList.add("driver-popover-arrow-none"),n.wrapper.style.transform="translateY(-".concat(b/2,"px)")))}else a.classList.add("driver-popover-arrow-none")}(l,C,t)}}function H(){function e(){p("allowClose")&&m()}function r(){var t=p("overlayClickBehavior");p("allowClose")&&"close"===t?m():"nextStep"===t&&o()}function o(){var t=P("activeIndex"),e=p("steps")||[];if(void 0!==t){var r=t+1;e[r]?u(r):m()}}function i(){var t=P("activeIndex"),e=p("steps")||[];if(void 0!==t){var r=t-1;e[r]?u(r):m()}}function a(){var t;if(!P("__transitionCallback")){var e=P("activeIndex"),r=P("__activeStep"),n=P("__activeElement");
2if(void 0!==e&&void 0!==r&&void 0!==P("activeIndex")){var o=(null==(t=r.popover)?void 0:t.onPrevClick)||p("onPrevClick");if(o)return o(n,r,{config:p(),state:P(),driver:v()});i()}}}function s(){var t;if(!P("__transitionCallback")){var e=P("activeIndex"),r=P("__activeStep"),n=P("__activeElement");if(void 0!==e&&void 0!==r){var i=(null==(t=r.popover)?void 0:t.onNextClick)||p("onNextClick");if(i)return i(n,r,{config:p(),state:P(),driver:v()});o()}}}function l(){P("isInitialized")||(_("isInitialized",!0),document.body.classList.add("driver-active",p("animate")?"driver-fade":"driver-simple"),window.addEventListener("keyup",j,!1),window.addEventListener("keydown",D,!1),window.addEventListener("resize",O),window.addEventListener("scroll",O),h("overlayClick",r),h("escapePress",e),h("arrowLeftPress",a),h("arrowRightPress",s))}function u(){var e,r,o,i,a,s,l,c,d=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,v=p("steps");if(v)if(v[d]){_("__activeOnDestroyed",document.activeElement),_("activeIndex",d);var f=v[d],h=v[d+1],g=v[d-1],y=(null==(e=f.popover)?void 0:e.doneBtnText)||p("doneBtnText")||"Done",w=p("allowClose"),b=void 0!==(null==(r=f.popover)?void 0:r.showProgress)?null==(o=f.popover)?void 0:o.showProgress:p("showProgress"),x=((null==(i=f.popover)?void 0:i.progressText)||p("progressText")||"{{current}} of {{total}}").replace("{{current}}","".concat(d+1)).replace("{{total}}","".concat(v.length)),P=(null==(a=f.popover)?void 0:a.showButtons)||p("showButtons"),S=["next","previous"].concat(t(w?["close"]:[])).filter((function(t){return!(null!=P&&P.length)||P.includes(t)})),C=(null==(s=f.popover)?void 0:s.onNextClick)||p("onNextClick"),A=(null==(l=f.popover)?void 0:l.onPrevClick)||p("onPrevClick"),k=(null==(c=f.popover)?void 0:c.onCloseClick)||p("onCloseClick");M(n(n({},f),{},{popover:n({showButtons:S,nextBtnText:h?void 0:y,disableButtons:t(g?[]:["previous"]),showProgress:b,progressText:x,onNextClick:C||function(){h?u(d+1):m()},onPrevClick:A||function(){u(d-1)},onCloseClick:k||function(){m()}},(null==f?void 0:f.popover)||{})}))}else m();else m()}function m(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=P("__activeElement"),r=P("__activeStep"),n=P("__activeOnDestroyed"),o=p("onDestroyStarted");if(t&&o){o(!e||"driver-dummy-element"===(null==e?void 0:e.id)?void 0:e,r,{config:p(),state:P(),driver:v()})}else{var i=(null==r?void 0:r.onDeselected)||p("onDeselected"),a=p("onDestroyed");if(document.body.classList.remove("driver-active","driver-fade","driver-simple"),window.removeEventListener("keyup",j),window.removeEventListener("resize",O),window.removeEventListener("scroll",O),function(){var t,e=P("popover");e&&(null==(t=e.wrapper.parentElement)||t.removeChild(e.wrapper))}(),function(){var t;null==(t=document.getElementById("driver-dummy-element"))||t.remove(),document.querySelectorAll(".driver-active-element").forEach((function(t){t.classList.remove("driver-active-element","driver-no-interaction"),t.removeAttribute("aria-haspopup"),t.removeAttribute("aria-expanded"),t.removeAttribute("aria-controls")}))}(),function(){var t=P("__overlaySvg");t&&t.remove()}(),f={},S(),e&&r){var s="driver-dummy-element"===e.id;i&&i(s?void 0:e,r,{config:p(),state:P(),driver:v()}),a&&a(s?void 0:e,r,{config:p(),state:P(),driver:v()})}n&&n.focus()}}d(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});var g={isActive:function(){return P("isInitialized")||!1},refresh:O,drive:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;l(),u(t)},setConfig:d,setSteps:function(t){S(),d(n(n({},p()),{},{steps:t}))},getConfig:p,getState:P,getActiveIndex:function(){return P("activeIndex")},isFirstStep:function(){return 0===P("activeIndex")},isLastStep:function(){var t=p("steps")||[],e=P("activeIndex");return void 0!==e&&e===t.length-1},getActiveStep:function(){return P("activeStep")},getActiveElement:function(){return P("activeElement")},getPreviousElement:function(){return P("previousElement")},getPreviousStep:function(){return P("previousStep")},moveNext:o,movePrevious:i,moveTo:function(t){(p("steps")||[])[t]?u(t):m()},hasNextStep:function(){var t=p("steps")||[],e=P("activeIndex");return void 0!==e&&!!t[e+1]},hasPreviousStep:function(){var t=p("steps")||[],e=P("activeIndex");return void 0!==e&&!!t[e-1]},highlight:function(t){l(),M(n(n({},t),{},{popover:t.popover?n({showButtons:[],showProgress:!1,progressText:""},t.popover):void 0}))},destroy:function(){m(!1)}};return function(t){c=t}(g),g}var F=o(79534),W=o(65072),z=o(66363);function K(t){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},K(t)}function $(){$=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(t,e,r,n){return Object.defineProperty(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function c(e,r,n,o){var i=r&&r.prototype instanceof p?r:p,a=Object.create(i.prototype);return l(a,"_invoke",function(e,r,n){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:t,done:!0}}
2for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=x(s,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var c=u(e,r,n);if("normal"===c.type){if(o=n.done?4:2,c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=4,n.method="throw",n.arg=c.arg)}}}(e,n,new S(o||[])),!0),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var d={};function p(){}function v(){}function f(){}var h={};l(h,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(C([])));g&&g!==r&&n.call(g,i)&&(h=g);var y=f.prototype=p.prototype=Object.create(h);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function r(o,i,a,s){var l=u(t[o],t,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==K(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(d).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}),!0)}function x(e,r){var n=r.method,o=e.i[n];if(o===t)return r.delegate=null,"throw"===n&&e.i.return&&(r.method="return",r.arg=t,x(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=u(o,e.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[e.r]=a.value,r.next=e.n,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function _(t){this.tryEntries.push(t)}function P(e){var r=e[4]||{};r.type="normal",r.arg=t,e[4]=r}function S(t){this.tryEntries=[[-1]],t.forEach(_,this),this.reset(!0)}function C(e){if(null!=e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(K(e)+" is not iterable")}return v.prototype=f,l(y,"constructor",f),l(f,"constructor",v),v.displayName=l(f,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,l(t,s,"GeneratorFunction")),t.prototype=Object.create(y),t},e.awrap=function(t){return{__await:t}},w(b.prototype),l(b.prototype,a,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new b(c(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(y),l(y,s,"Generator"),l(y,i,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.unshift(n);return function t(){for(;r.length;)if((n=r.pop())in e)return t.value=n,t.done=!1,t;return t.done=!0,t}},e.values=C,S.prototype={constructor:S,reset:function(e){if(this.prev=this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0][4];if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(t){a.type="throw",a.arg=e,r.next=t}for(var o=r.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return n("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=t,n(l),!0;if(s<c)return n(c),!1}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break}}o&&("break"===t||"continue"===t)&&o[0]<=e&&e<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o[2],d):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r[2]===t)return this.complete(r[4],r[3]),P(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r[0]===t){var n=r[4];if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={i:C(e),r:r,n:n},"next"===this.method&&(this.arg=t),d}},e}function V(t){return function(t){if(Array.isArray(t))return Y(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Y(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Y(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function Q(t,e,r,n,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(n,o)}function q(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function U(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
2e%2?q(Object(r),!0).forEach((function(e){X(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):q(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function X(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=K(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=K(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==K(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Z="driver-theme",J=function(t,e){switch(e.position="absolute",t){case"bottom":e.top="-40px",e.right="-10px";break;case"right":e.top="-20px",e.right="0px";break;case"left":e.top="-20px";break;case"top":e.right="-10px"}},tt=function(t){var e,r,n,o,i,a,s,l=t.steps;l.forEach((function(e){var r,n=e.popover.onPopoverRender;("sidebar"===e.class?(e.disableActiveInteraction=!0,e.popover.showProgress=!1,e.popover.popoverClass="driver-theme-sidebar",e.popover.onPopoverRender=function(t,e){var r=e.config,o=e.step;r.allowClose=!0,function(t){t.arrow.style.display="none",t.footer.style.display="none"}(t),n&&n(t,{config:r,step:o})}):"general"===e.class&&(e.popover.popoverClass=Z,e.popover.onPopoverRender=function(r,o){var i,a=o.config,s=o.step;a.allowClose=null===(i=t.allowClose)||void 0===i||i,function(t,e){t.footerButtons.classList.add("popover-footer"),t.nextButton.classList.add("popover-button"),t.previousButton.classList.add("popover-button"),t.arrow.style.borderWidth="10px";var r=t.progress;if(r.classList.add("popover-progress"),r.parentElement.parentElement.insertBefore(r,t.title),e.needVector){var n=document.createElement("img");n.src="/img/vector.png",n.style.width="30px",J(e.popover.side,n.style),t.arrow.appendChild(n)}}(r,e),n&&n(r,{config:a,step:s})}),"right"===e.popover.side)&&(e.popover.popoverClass="".concat(null!==(r=e.popover.popoverClass)&&void 0!==r?r:""," driver-theme-right"))}));var c=H(U(U({},t),{},{showProgress:null===(e=t.showProgress)||void 0===e||e,showButtons:null!==(r=t.showButtons)&&void 0!==r?r:["next","previous"],popoverClass:null!==(n=t.popoverClass)&&void 0!==n?n:Z,nextBtnText:null!==(o=t.nextBtnText)&&void 0!==o?o:"下一步",prevBtnText:null!==(i=t.prevBtnText)&&void 0!==i?i:"上一步",doneBtnText:null!==(a=t.doneBtnText)&&void 0!==a?a:"完成",progressText:null!==(s=t.progressText)&&void 0!==s?s:"{{current}}/{{total}}",onDestroyStarted:function(e,r,n){l.filter((function(t){return"sidebar"===t.class})).map((function(t){return t.element})).includes(r.element)?n.driver.moveNext():t.onDestroyStarted?t.onDestroyStarted(e,r,n):n.driver.destroy()},steps:l}));return c.drive(),c},et=function(){var t,e=(t=$().mark((function t(e){var r,n,o,i;return $().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,F.A.post("/api/guide/mark_read",{tipPage:[e]});case 2:r=t.sent,(n=r.data).success?(o=V(z.A.state.user.info.tipPage),(i=o.indexOf(e))>-1&&o.splice(i,1),z.A.dispatch("user/setTipPage",o)):W.E.error(n.message);case 5:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Q(i,n,o,a,s,"next",t)}function s(t){Q(i,n,o,a,s,"throw",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}()},92099:function(t,e,r){r.d(e,{A:function(){return b}});var n=r(33389),o=r(67787),i=r(81207),a=r(31464),s=r(79987),l=r(65072),c=r(22435),u=r(94894);function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function p(){p=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(t,e,r,n){return Object.defineProperty(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function c(e,r,n,o){var i=r&&r.prototype instanceof f?r:f,a=Object.create(i.prototype);return l(a,"_invoke",function(e,r,n){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:t,done:!0}}
2for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=P(s,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var c=u(e,r,n);if("normal"===c.type){if(o=n.done?4:2,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=4,n.method="throw",n.arg=c.arg)}}}(e,n,new A(o||[])),!0),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var v={};function f(){}function h(){}function m(){}var g={};l(g,i,(function(){return this}));var y=Object.getPrototypeOf,w=y&&y(y(k([])));w&&w!==r&&n.call(w,i)&&(g=w);var b=m.prototype=f.prototype=Object.create(g);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function r(o,i,a,s){var l=u(t[o],t,i);if("throw"!==l.type){var c=l.arg,p=c.value;return p&&"object"==d(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(p).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}),!0)}function P(e,r){var n=r.method,o=e.i[n];if(o===t)return r.delegate=null,"throw"===n&&e.i.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=u(o,e.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.r]=a.value,r.next=e.n,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function S(t){this.tryEntries.push(t)}function C(e){var r=e[4]||{};r.type="normal",r.arg=t,e[4]=r}function A(t){this.tryEntries=[[-1]],t.forEach(S,this),this.reset(!0)}function k(e){if(null!=e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(d(e)+" is not iterable")}return h.prototype=m,l(b,"constructor",m),l(m,"constructor",h),h.displayName=l(m,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,s,"GeneratorFunction")),t.prototype=Object.create(b),t},e.awrap=function(t){return{__await:t}},x(_.prototype),l(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(c(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(b),l(b,s,"Generator"),l(b,i,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.unshift(n);return function t(){for(;r.length;)if((n=r.pop())in e)return t.value=n,t.done=!1,t;return t.done=!0,t}},e.values=k,A.prototype={constructor:A,reset:function(e){if(this.prev=this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0][4];if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(t){a.type="throw",a.arg=e,r.next=t}for(var o=r.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return n("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=t,n(l),!0;if(s<c)return n(c),!1}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break}}o&&("break"===t||"continue"===t)&&o[0]<=e&&e<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o[2],v):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r[2]===t)return this.complete(r[4],r[3]),C(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r[0]===t){var n=r[4];if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={i:k(e),r:r,n:n},"next"===this.method&&(this.arg=t),v}},e}function v(t,e,r,n,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(n,o)}var f={__name:"MerchantItem",props:{item:{type:Object,default:function(){return{}}},tab:{type:String,default:null}},setup:function(t){var e=t,r=function(){var t,e=(t=p().mark((function t(e){return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,navigator.clipboard.writeText(e.MerID);case 3:l.E.success("商店代號複製成功",{closeButton:!1,timeout:2e3}),t.next=9;break;case 6:t.prev=6,t.t0=t.catch(0),l.E.error("複製失敗,請手動複製");case 9:case"end":return t.stop()}}),t,null,[[0,6]])})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){v(i,n,o,a,s,"next",t)}function s(t){v(i,n,o,a,s,"throw",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}();
2return{__sfc:!0,props:e,goNext:function(t){var r={name:"merchant.detail",params:{id:t.MerSysID}};e.tab&&(r.query={tab:e.tab});var n=c.A.resolve(r);window.open(n.href,"_blank")},copyMerID:r,merchantItemsRef:u.A}}},h=f,m=r(56058),g=r.n(m),y=r(45748),w={insert:"head",singleton:!1};g()(y.A,w),y.A.locals;var b=(0,r(98851).A)(h,(function(){var t=this,e=t._self._c,r=t._self._setupProxy;return e(o.A,{staticClass:"cursor-pointer rounded-box merchantItemBox default-border elevation-0",attrs:{id:"merchantItem"},on:{click:function(t){return r.goNext(r.props.item)}}},[e(i.OQ,{staticClass:"d-flex pa-0"},[e("div",{staticClass:"full-width pa-4"},[e("div",{staticClass:"d-flex mb-2"},[t.item.MerLogo?e("div",{staticClass:"mr-4 merchantLogoBox default-border",staticStyle:{width:"64px"}},[e("img",{staticClass:"merchantLogo",attrs:{src:r.props.item.MerLogo,alt:r.props.item.MerName}})]):t._e(),t._v(" "),e("div",[e("div",{staticClass:"caption"},[t._v("\n            "+t._s(1===r.props.item.MerType?"網路商店":"實體商店")+"\n            "),e("span",{staticClass:"ml-2"},[t._v("|")]),t._v(" "),e(n.A,{staticClass:"px-2",attrs:{text:"",small:"",color:"info600"},on:{click:function(e){return e.stopPropagation(),r.copyMerID(t.item)}}},[t._v("\n              "+t._s(r.props.item.MerID)+"\n              "),e(s.A,{attrs:{small:"",color:"info600"}},[t._v("\n                mdi-content-copy\n              ")])],1)],1),t._v(" "),e("div",{staticClass:"font-weight-bold"},[t._v("\n            "+t._s(r.props.item.MerName)+"\n          ")])])]),t._v(" "),e("div",{staticClass:"d-sm-flex justify-space-between"},[e("div",{staticClass:"mb-2 mb-sm-0"},[e(a.A,{staticClass:"mr-2",staticStyle:{width:"64px","text-align":"center","justify-content":"center","padding-left":"0","padding-right":"0"},attrs:{color:r.merchantItemsRef.globalMerStatusColor(t.item.MerStatus),active:"",small:"",label:"",pill:""}},[t._v("\n            "+t._s(t._f("globalMerStatusExplain")(r.props.item.MerStatus))+"\n          ")]),t._v(" "),1===r.props.item.MerCVas?e(a.A,{staticStyle:{background:"#EEEEFD !important"},attrs:{small:"",label:"",pill:"",outlined:"",color:"secondary"}},[t._v("\n            優惠券\n          ")]):t._e()],1),t._v(" "),e("span",{staticClass:"caption"},[t._v("建立日期:"+t._s(r.props.item.MerCreateTime.split(" ")[0]))])])]),t._v(" "),e("div",{staticClass:"merchantItemBox__action d-flex align-center justify-center flex-column"},[e(s.A,[t._v("\n        mdi-chevron-right\n      ")])],1)])],1)}),[],!1,null,null,null).exports}}])}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.