PageSourceSearch

https://www.payuni.com.tw/js/665b0c7a4400592e.js

js payuni.com.tw collected 2026-09-24 08:52:51 UTC 118,006 bytes, 2 lines download raw bytes

1/*! For license information please see 665b0c7a4400592e.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([[6390],{7939:function(t,e,r){r.d(e,{A:function(){return s}});var n=r(33389),o=r(15091),i=r(54784),a={__name:"ConfirmDialog",props:{show:{type:Boolean,default:!1},description:{type:String,default:""},confirmText:{type:String,default:"確定"},cancelText:{type:String,default:"取消"},autoClose:{type:Boolean,default:!0},confirmLoading:{type:Boolean,default:!1},cancelLoading:{type:Boolean,default:!1},scrollable:{type:Boolean,default:!1},showCancel:{type:Boolean,default:!0}},emits:["update:show","confirm","cancel"],setup:function(t,e){var r=e.emit,n=t,a=(0,o.EW)({get:function(){return n.show},set:function(t){r("update:show",t)}});return{__sfc:!0,props:n,emits:r,myShow:a,confirm:function(){r("confirm"),n.autoClose&&(a.value=!1)},cancel:function(){r("cancel"),n.autoClose&&(a.value=!1)},BaseDialog:i.A}}},s=(0,r(98851).A)(a,(function(){var t=this,e=t._self._c,r=t._self._setupProxy;return e(r.BaseDialog,{attrs:{"is-show":r.myShow,persistent:!0,scrollable:t.scrollable},on:{"update:isShow":function(t){r.myShow=t},"update:is-show":function(t){r.myShow=t}},scopedSlots:t._u([{key:"content",fn:function(){return[e("div",{staticClass:"px-6 py-6"},[t._t("content",(function(){return[e("div",{staticStyle:{"font-size":"18px",color:"#4E342E"}},[t._v("\n          "+t._s(t.description)+"\n        ")])]}))],2)]},proxy:!0},{key:"actions",fn:function(){return[e("div",{staticClass:"d-flex justify-center mb-5",staticStyle:{width:"100%","column-gap":"10px"}},[t.showCancel?e(n.A,{staticStyle:{"font-size":"16px"},attrs:{depressed:"",color:"primary",loading:t.cancelLoading},on:{click:r.cancel}},[t._v("\n        "+t._s(t.cancelText)+"\n      ")]):t._e(),t._v(" "),e(n.A,{staticStyle:{"font-size":"16px"},attrs:{depressed:"",color:"success",loading:t.confirmLoading},on:{click:r.confirm}},[t._v("\n        "+t._s(t.confirmText)+"\n      ")])],1)]},proxy:!0}],null,!0)})}),[],!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},46390:function(t,e,r){r.r(e),r.d(e,{default:function(){return X}});var n=r(33389),o=r(67787),i=r(81207),a=r(78037),s=r(29841),l=r(53615),c=r(20019),u=r(58884),p=r(93579),d=r(6964),v=r(15091),f=r(79534),h=r(7939),m=r(77658),g=r(65072),y=r(66363),b=r(31464),w=r(63008),x=r(85840),_=r(84435),P=r(61206),C=r(92099),S=r(94894);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 A(){A=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 d?r:d,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===p)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===p)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=4,n.method="throw",n.arg=c.arg)}}}(e,n,new C(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 p={};function d(){}function v(){}function f(){}var h={};l(h,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==r&&n.call(g,i)&&(h=g);var y=f.prototype=d.prototype=Object.create(h);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(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"==k(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 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")),p;var i=u(o,e.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,p;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,p):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function _(t){this.tryEntries.push(t)}function P(e){var r=e[4]||{};r.type="normal",r.arg=t,e[4]=r}function C(t){this.tryEntries=[[-1]],t.forEach(_,this),this.reset(!0)}function S(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}},b(w.prototype),l(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new w(c(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(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=S,C.prototype={constructor:C,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],p):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),p},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),p}},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:S(e),r:r,n:n},"next"===this.method&&(this.arg=t),p}},e}function E(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?E(Object(r),!0).forEach((function(e){M(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function M(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}function T(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 j(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){T(i,n,o,a,s,"next",t)}function s(t){T(i,n,o,a,s,"throw",t)}a(void 0)}))}}function D(t){return function(t){if(Array.isArray(t))return I(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 I(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)?I(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 I(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}var L={__name:"BaseInfoMerchantList",setup:function(t){var e=function(){return{MerCVas:1,MerStatus:null,MerType:0,CreateDTStr:null,CreateDTEnd:null,sortRegex:"desc",MerName:null,searchName:null,goPage:null,length:-1}},r=(0,v.KR)({1:{text:"已套用商店",value:1,itemsLength:0},2:{text:"未套用商店",value:2,itemsLength:0}}),n=(0,v.KR)({0:{text:"全部",value:0},1:{text:"網路商店",value:1},2:{text:"實體商店",value:2}}),o=(0,v.KR)([]),i=(0,v.KR)([]),a=(0,v.KR)(10),s=(0,v.KR)(!1),l=(0,v.KR)([]),c=(0,v.KR)({MerCVas:1,MerStatus:null,MerType:0,CreateDTStr:null,CreateDTEnd:null,sortRegex:"desc",MerName:null,searchName:null,goPage:null,length:-1}),u=(0,v.KR)({pageCount:0,totalItems:0}),p=(0,v.KR)(0),d=(0,v.KR)(0),y=(0,v.KR)(!1),b=(0,v.KR)(!1),w=(0,v.EW)((function(){var t=D(S.A.merStatus),e=t.findIndex((function(t){return 8===t.value}));return t.splice(e,1),t})),x=function(){var t=j(A().mark((function t(){var e,n,o,i,a,u=arguments;return A().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=u.length>0&&void 0!==u[0]?u[0]:"all",s.value=!0,"filter"===e&&0===c.value.MerType&&(c.value.MerType=null),n={CreateDTStr:c.value.CreateDTStr,CreateDTEnd:c.value.CreateDTEnd,sortRegex:c.value.sortRegex,length:-1},t.prev=4,t.next=7,f.A.post("/api/merchant/list",n);case 7:if(o=t.sent,(i=o.data).success){if(i.data.list.length>0)for(a in l.value=i.data.list.map((function(t){return O(O({},t),{},{MerNameAndMerID:"".concat(t.MerName).concat(t.MerID),MerCVas:!0===t.MerCVas?1:2})})),r.value)"1"===a&&(r.value[a].itemsLength=l.value.filter((function(t){return 1===t.MerCVas})).length),"2"===a&&(r.value[a].itemsLength=l.value.filter((function(t){return 2===t.MerCVas})).length);else l.value=[];_(l.value)}else g.E.error(i.message);t.next=15;break;case 12:t.prev=12,t.t0=t.catch(4);case 15:return t.prev=15,s.value=!1,t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[4,12,15,18]])})));return function(){return t.apply(this,arguments)}}(),_=function(t){u.value.totalItems=t.length,u.value.pageCount=Math.ceil(u.value.totalItems/a.value),d.value=u.value.pageCount,p.value=1},k=(0,v.EW)((function(){return c.value.MerType?1===c.value.MerType?o.value:2===c.value.MerType?i.value:void 0:E.value})),E=(0,v.EW)({get:function(){var t=D(l.value);return c.value.MerStatus&&(t=l.value.filter((function(t){var e=8===t.MerStatus&&92===c.value.MerStatus;return t.MerStatus===c.value.MerStatus||e}))),c.value.searchName&&(t=t.filter((function(t){return t.MerNameAndMerID.includes(c.value.searchName)}))),t=t.filter((function(t){return t.MerCVas===c.value.MerCVas}))}});(0,v.wB)(E,(function(t){o.value=E.value.filter((function(t){return 1===t.MerType})),i.value=E.value.filter((function(t){return 2===t.MerType})),_(k.value)})),(0,v.wB)((function(){return c.value.MerType}),(function(){_(k.value)}),{deep:!0});var M=(0,v.EW)((function(){var t=(p.value-1)*a.value,e=p.value*a.value;return k.value.slice(t,e)})),T=function(){var t=j(A().mark((function t(e){var r,n;return A().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return b.value=!0,t.prev=1,t.next=4,f.A.post("/api/campaign/coupon/vas_switch",{Type:"Merc",MerSysI
2Ds:E.value.filter((function(t){return t.MerCVas===e})).map((function(t){return t.MerSysID})),Switch:1===e?2:1});case 4:r=t.sent,(n=r.data).success?(g.E.success(n.message),x()):g.E.error(n.message),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(1);case 12:return t.prev=12,b.value=!1,t.finish(12);case 15:case"end":return t.stop()}}),t,null,[[1,9,12,15]])})));return function(e){return t.apply(this,arguments)}}();return x(),{__sfc:!0,initDtParams:e,tabs:r,MerTypes:n,webShop:o,physicalShop:i,length:a,listLoading:s,merchantList:l,dtParams:c,dtPagination:u,dtPage:p,maxPage:d,merchantVasModal:y,vasLoading:b,merStatus:w,getMerchantList:x,enterPage:function(t){var e=parseInt(t,10);isNaN(e)?g.E.error("請輸入正常頁數"):e>0&&e<=d.value?p.value=e:g.E.error("請輸入範圍內頁數")},changeDtPage:function(t){p.value=t},handlePage:_,resetSearch:function(){c.value={MerCVas:1,MerStatus:null,MerType:0,CreateDTStr:null,CreateDTEnd:null,sortRegex:"desc",MerName:null,searchName:null,goPage:null,length:-1}},currentList:k,filterList:E,currentPageList:M,changeVas:T,MerchantFilter:P.A,MerchantItem:C.A,ConfirmDialog:h.A,tableLayout:m.A}}},B=L,N=r(98851),R=(0,N.A)(B,(function(){var t=this,e=t._self._c,r=t._self._setupProxy;return e("div",[e(o.A,{staticClass:"rounded-box mb-4",attrs:{elevation:"1"}},[e(i.OQ,{staticClass:"pa-md-6"},[e(_.A,{staticClass:"mb-4",attrs:{id:"merchantTypeSwitch",grow:"",color:"info600"},model:{value:r.dtParams.MerCVas,callback:function(e){t.$set(r.dtParams,"MerCVas",e)},expression:"dtParams.MerCVas"}},t._l(r.tabs,(function(r,n){return e(x.A,{key:n,staticClass:"font-weight-bold",staticStyle:{padding:"0!important"},attrs:{"tab-value":r.value,"active-class":"info600--text"}},[t._v("\n          "+t._s(r.text)+"\n          ("+t._s(r.itemsLength)+")\n        ")])})),1),t._v(" "),e("div",{staticClass:"mb-6"},[e(r.MerchantFilter,{attrs:{"dt-params":r.dtParams,"mer-status-list":r.merStatus},on:{getMerchantList:r.getMerchantList,resetSearch:r.resetSearch}}),t._v(" "),e("div",{staticClass:"d-flex justify-space-between align-center"},[e(w.A,{attrs:{column:"",mandatory:""},model:{value:r.dtParams.MerType,callback:function(e){t.$set(r.dtParams,"MerType",e)},expression:"dtParams.MerType"}},t._l(r.MerTypes,(function(r,n){return e(b.A,{key:n,attrs:{filter:"",outlined:"","active-class":"success success--text",value:r.value}},[t._v("\n              "+t._s(r.text)+"\n            ")])})),1),t._v(" "),r.filterList.length?e(n.A,{attrs:{outlined:"",color:"info600",loading:r.vasLoading},on:{click:function(t){r.merchantVasModal=!0}}},[t._v("\n            全部"+t._s(1===r.dtParams.MerCVas?"關閉":"開啟")+"\n          ")]):t._e()],1),t._v(" "),e("span",{staticClass:"text-tips ml-2 py-1"},[t._v("請進入商店確認「一頁收款」與「賣場」是否啟用優惠券功能")])],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,tab:"marketing"}})],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.listLoading},on:{goPageByInput:r.enterPage,goPageByClick:r.changeDtPage}}):t._e(),t._v(" "),e(r.ConfirmDialog,{attrs:{show:r.merchantVasModal,"cancel-text":"關閉"},on:{"update:show":function(t){r.merchantVasModal=t},confirm:function(t){return r.changeVas(r.dtParams.MerCVas)},cancel:function(t){r.merchantVasModal=!1}},scopedSlots:t._u([{key:"content",fn:function(){return[e("div",{staticClass:"font-weight-bold mb-5",staticStyle:{"font-size":"20px"}},[t._v("\n        確定"+t._s(1===r.dtParams.MerCVas?"取消":"開啟")+"以下商店使用優惠券嗎 ?\n      ")]),t._v(" "),e("div",{staticClass:"w-full text-center"},[e("div",{staticClass:"pa-4 mb-2 rounded-lg",style:1===r.dtParams.MerCVas?"background-color: #FEF3F2;":"background-color: #ECFDF3DD;"},[e("div",[t._v("共 "+t._s(r.filterList.filter((function(t){return t.MerCVas===r.dtParams.MerCVas})).length)+" 間商店")]),t._v(" "),e("span",[t._v("\n            只會根據目前頁面搜尋條件,所顯示商店取消使用å
2„ªæƒ åˆ¸ "),e("br"),t._v("\n            目前條件:商店類型 + 篩選條件\n          ")])]),t._v(" "),1===r.dtParams.MerCVas?e("span",{staticClass:"error--text body-2"},[t._v("*若目前商店有發送優惠券,該商店會停止發送優惠券,也不會接受核銷優惠券")]):t._e(),t._v(" "),2===r.dtParams.MerCVas?e("span",{staticClass:"error--text body-2"},[t._v("*啟用後商店接受消費者可以輸入優惠券!")]):t._e()])]},proxy:!0}])})],1)}),[],!1,null,null,null).exports,G=r(79987),F=r(22435),W=r(48250),H=r(90762),z={__name:"BaseInfoGuide",setup:function(t){var e=(0,v.EW)((function(){var t;return null===(t=y.A.state.user.info)||void 0===t?void 0:t.CouponSwitch})),r=(0,v.WQ)("openDrawer"),n=(0,v.KR)(!1),o=(0,v.EW)((function(){return y.A.state.user.info.tipPage})),i=function(){o.value.includes(F.A.currentRoute.meta.permission)&&!0===e.value&&(n.value=!0)};return i(),{__sfc:!0,CouponSwitch:e,openDrawer:r,tipModal:n,tipPage:o,triggerGuide:i,startGuide:function(){n.value=!1;var t=[{element:"#couponFee",class:"general",needVector:!1,popover:{title:"顯示核銷費用",description:"可查看優惠券的使用條件及相關費用。",side:"bottom",align:"start"}},{element:"#baseInfoMerchantList",class:"general",needVector:!1,popover:{title:"套用商店設定",description:'\n        <div>開通後,系統會將所有商店預設為已套用優惠券功能。您可以自行調整各商店套用狀態。只要商店啟用優惠券,消費者在支付頁時即可輸入優惠碼使用。\n         <img \n            src="/img/coupon/base_info_tip.png"\n          >\n        </div>',side:"top",align:"center",position:"top"},onHighlightStarted:function(t){t.scrollIntoView=function(){}}},{element:"#merchantItem",class:"general",needVector:!1,popover:{title:"商店卡片",description:'<div>點擊後,可以設定商店下的『一頁收款』和『賣場』是否能使用優惠券和發送優惠券。<div\n        <span style="color:#B42318">*續期收款目前不支援優惠券功能</span>',side:"top",align:"start",onPopoverRender:function(t,e){e.config,e.step,t.arrow.style.display="none"}}},{element:"#sidebar-marketing-auth-marketing-event-create",class:"general",popover:{title:"馬上建立活動,才能發送優惠券!",description:"一個活動內可以建立多張優惠券。",side:"right",align:"end"},onHighlighted:function(t){r()},onPopoverRender:function(t,e){e.config,e.step,t.arrow.style.display="none"}}];(0,H.Y)({steps:t,onDestroyStarted:function(t,e,r){var n=r.driver;n.hasNextStep()&&!confirm("要關閉引導嗎?")||n.destroy()},onDestroyed:function(){(0,H.F)(F.A.currentRoute.meta.permission)}})},closeGuide:function(){(0,H.F)(F.A.currentRoute.meta.permission),n.value=!1},GAButtonId:W.Y}}},V=(0,N.A)(z,(function(){var t=this,e=t._self._c,r=t._self._setupProxy;return e("div",[e(l.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.couponBaseInfo.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.couponBaseInfo.skipGuide}},[t._v("略過")]),t._v(" "),e(G.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(p.A),t._v(" "),e(n.A,{attrs:{color:"primary"},on:{click:function(t){r.tipModal=!1}}},[e("span",{attrs:{id:r.GAButtonId.couponBaseInfo.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.couponBaseInfo.startGuide}},[t._v("確認")])]),t._v(" "),e(p.A)],1)],1)],1)])],1)}),[],!1,null,null,null).exports;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 d?r:d,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===p)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===p)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=4,n.method="throw",n.arg=c.arg)}}}(e,n,new C(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 p={};function d(){}function v(){}function f(){}var h={};l(h,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==r&&n.call(g,i)&&(h=g);var y=f.prototype=d.prototype=Object.create(h);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(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"==K(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 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")),p;var i=u(o,e.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,p;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,p):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function _(t){this.tryEntries.push(t)}function P(e){var r=e[4]||{};r.type="normal",r.arg=t,e[4]=r}function C(t){this.tryEntries=[[-1]],t.forEach(_,this),this.reset(!0)}function S(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}},b(w.prototype),l(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,r,n,o,i){void 0===i&&(i=Prom
2ise);var a=new w(c(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(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=S,C.prototype={constructor:C,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],p):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),p},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),p}},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:S(e),r:r,n:n},"next"===this.method&&(this.arg=t),p}},e}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 Y(t){return 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)}))}}var q={__name:"BaseInfo",setup:function(t){var e=(0,v.KR)(window.innerWidth),r=(0,v.KR)(!1),n=(0,v.KR)(!1),o=(0,v.KR)(!1),i=(0,v.KR)(!1),a=(0,v.KR)(!1),s=(0,v.KR)(!1),l=(0,v.KR)(!1),c=(0,v.KR)({}),u=(0,v.KR)({}),p=(0,v.KR)({pageCount:0,totalItems:0}),d=(0,v.KR)({length:10,goPage:1}),b=(0,v.KR)([]),w=(0,v.KR)([{text:"類型",value:"slot_type",sortable:!1,align:"center",width:120},{text:"時間",value:"slot_date",sortable:!1,align:"center",width:220},{text:"內容",value:"slot_content",sortable:!1,align:"center"},{text:"備註",value:"slot_note",sortable:!1,align:"center"}]),x=(0,v.KR)(1),_=(0,v.KR)(0);(0,v.wB)(x,(function(t){t>0&&!a.value&&D()}),{deep:!0});var P=(0,v.EW)((function(){return e.value<960})),C=(0,v.EW)((function(){switch(c.value.ButtonType){case 1:return"申請開通";case 8:return"升級方案";case 9:return"我要續約"}})),S=(0,v.EW)((function(){return y.A.getters["user/getPlatformNum"]})),k=function(){e.value=window.innerWidth},A=function(){var t=Y($().mark((function t(){var e,n;return $().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r.value=!0,t.prev=1,t.next=4,f.A.post("/api/campaign/coupon/get_vas");case 4:e=t.sent,(n=e.data).success?(c.value=n.data,r.value=!1):g.E.error(n.message),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(1);case 12:case"end":return t.stop()}}),t,null,[[1,9]])})));return function(){return t.apply(this,arguments)}}(),E=function(){var t=Y($().mark((function t(){var e,r;return $().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(c.value.MarketingTerm){t.next=4;break}n.value=!0,t.next=15;break;case 4:return t.prev=4,t.next=7,f.A.post("/api/campaign/coupon/new_vas");case 7:e=t.sent,(r=e.data).success?(u.value=r.data,o.value=!0):g.E.error(r.message),t.next=15;break;case 12:t.prev=12,t.t0=t.catch(4);case 15:case"end":return t.stop()}}),t,null,[[4,12]])})));return function(){return t.apply(this,arguments)}}(),O=function(){var t=Y($().mark((function t(){var e,r;return $().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Object.hasOwnProperty.call(u.value,"PaymentCode")){t.next=14;break}return t.prev=1,t.next=4,f.A.post("/api/campaign/coupon/activate_vas",{PlanType:u.value.PlanType});case 4:e=t.sent,(r=e.data).success?A():g.E.error(r.message),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(1);case 12:t.next=16;break;case 14:o.value=!1,["1","2"].includes(u.value.PlanType)?l.value=!0:A();case 16:case"end":return t.stop()}}),t,null,[[1,9]])})));return function(){return t.apply(this,arguments)}}(),M=function(){var t=Y($().mark((function t(){var e,r,n;return $().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a.value=!0,t.prev=1,e={Page:d.value.goPage,length:d.value.length},t.next=5,f.A.post("/api/campaign/coupon/get_vas_user_history",e);case 5:r=t.sent,(n=r.data).success?(i.value=!0,p.value.totalItems=n.data.TotalCount,p.value.pageCount=n.data.TotalPage,_.value=parseInt(n.data.TotalPage,10),b.value=n.data.RawData.map((function(t,e){return t.listIdx=e+1,t}))):g.E.error(n.message),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(1);case 13:return t.prev=13,a.value=!1,t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[1,10,13,16]])})));return function(){return t.apply(this,arguments)}}(),T=function(){var t=Y($().mark((function t(e){var n,o;return $().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r.value=!0,t.prev=1,t.next=4,f.A.post("/api/campaign/coupon/vas_switch",{Type:"Mem",Switch:e});case 4:n=t.sent,(o=n.data).success?g.E.success(o.message):g.E.error(o.message),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(1);case 12:return t.prev=12,A(),t.finish(12);case 15:case"end":return t.stop()}}),t,null,[[1,9,12,15]])})));return function(e){return t.apply(this,arguments)}}(),j=function(){var t=Y($().mark((function t(){var e,r;return $().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,s.value=!0,t.next=4,f.A.post("/api/campaign/coupon/terms_agree");case 4:if(e=t.sent,!(r=e.data).success){t.next=14;break}return g.E.success(r.message),n.value=!1,t.next=11,A();case 11:E(),t.next=15;break;case 14:g.E.error(r.message);case 15:t.next=20;break;case 17:t.prev=17,t.t0=t.catch(0);case 20:return t.prev=20,s.value=!1,t.finish(20);case 23:case"end":return t.stop()}}),t,null,[[0,17,20,23]])})));return function(){return t.apply(this,arguments)}}(),D=function(){d.value.goPage=x.value,M()};return(0,v.sV)((function(){window.addEventListener("resize",k),A(
2)})),(0,v.hi)((function(){window.addEventListener("resize",k)})),{__sfc:!0,windowWidth:e,pageLoader:r,isOpenTermsModal:n,isOpenApplyModal:o,isOpenLogModal:i,dtLoading:a,confirmLoader:s,isOpenPaymentInfo:l,permissionObj:c,applyInfoObj:u,dtPagination:p,dtParams:d,logDataObj:b,headers:w,dtPage:x,maxPage:_,isMobile:P,buttonName:C,PlatformNum:S,updateWidth:k,init:A,applyEvent:E,apply:O,getLogData:M,openCouponFunction:T,eventTermCheck:j,enterPage:function(t){var e=parseInt(t,10);isNaN(e)?g.E.error("請輸入正常頁數"):e>0&&e<=_.value?x.value=e:g.E.error("請輸入範圍內頁數")},changeDtPage:function(t){x.value=t},beforeRenderTable:D,ConfirmDialog:h.A,tableLayout:m.A,BaseInfoMerchantList:R,BaseInfoGuide:V}}},U=q,X=(0,N.A)(U,(function(){var t=this,e=t._self._c,r=t._self._setupProxy;return e("div",[r.pageLoader?e(u.A,{staticClass:"ma-6 skeleton--no-bg",attrs:{type:"list-item-two-line, list-item-two-line,list-item-three-line, list-item-two-line"}}):e("div",[e("PageTitle"),t._v(" "),e(c.A,{staticClass:"ma-6",attrs:{"no-gutters":""}},[e(a.A,{attrs:{span:"12"}},[e(o.A,{staticClass:"rounded-box specific-box-shadow"},[e(i.OQ,{staticClass:"pa-6 d-flex flex-sm-row flex-column justify-space-between"},[e("div",[e("h3",{staticClass:"h4 mb-4"},[t._v("\n                優惠券\n              ")]),t._v(" "),e(c.A,{attrs:{"no-gutters":""}},[!r.permissionObj.OpenPermissions||[2,9].includes(r.permissionObj.PlanType)?e(a.A,{attrs:{cols:"12"}},[e("RowInput",{staticClass:"mb-4 d-md-flex align-center",attrs:{label:r.permissionObj.DateTagName,disabled:"","no-detail":""}},[e("div",{staticClass:"h5"},[r.permissionObj.OpenPermissions?[t._v("\n                        "+t._s(r.permissionObj.StartDate)+" 至 "+t._s(r.permissionObj.EndDate)+"\n                        "),e("span",{staticClass:"error--text"},[t._v("\n                          ("+t._s(9===r.permissionObj.PlanType?"到期後核銷費會以基本方案計費":"剩餘 ".concat(r.permissionObj.AnnualDaysRemaining," 天到期"))+")\n                        ")])]:[t._v("\n                        尚未開通\n                      ")]],2)])],1):t._e(),t._v(" "),e(a.A,{attrs:{cols:"12",id:"couponFee"}},[e("RowInput",{staticClass:"mb-4 d-md-flex align-center",attrs:{label:"條件費用",disabled:"","no-detail":""}},[e("div",{staticClass:"h5"},[e("div",{staticClass:"d-flex align-center"},[r.permissionObj.OpenPermissions?e("div",[2===r.permissionObj.PlanType?e("span",[t._v("\n                            NT "+t._s(t._f("dollarSign")(t._f("priceComma")(r.permissionObj.SettingFee)))+" /年,含 "+t._s(t._f("priceComma")(r.permissionObj.WriteOffPiece))+" 張核銷 | 超出將收取優惠券核銷費用 "+t._s(r.permissionObj.WriteOffFee)+" 元/筆\n                          ")]):e("span",[t._v("\n                            優惠券核銷費用:"+t._s(r.permissionObj.WriteOffFee)+"元/筆\n                            "),r.PlatformNum>0?e("span",{staticClass:"error--text"},[t._v("(代理商商店核銷費用請參考各商店費率)")]):t._e()])]):e("div",[t._v("\n                          -\n                        ")]),t._v(" "),Object.hasOwnProperty.call(r.permissionObj,"PaymentCode")?e(n.A,{attrs:{text:"",color:"blue"},on:{click:r.getLogData}},[t._v("\n                          方案紀錄\n                        ")]):t._e()],1)])])],1),t._v(" "),e(a.A,{attrs:{cols:"12"}},[e("RowInput",{staticClass:"d-md-flex align-center",attrs:{label:"功能啟用",disabled:!r.permissionObj.Open,"no-detail":""}},[e("div",{staticClass:"d-flex align-center"},[r.permissionObj.OpenPermissions?e(d.A,{attrs:{inset:"",label:1===r.permissionObj.Open?"啟用":"關閉","true-value":1,"false-value":2,color:"info",disabled:5===r.permissionObj.Open},on:{change:r.openCouponFunction},model:{value:r.permissionObj.Open,callback:function(e){t.$set(r.permissionObj,"Open",e)},expression:"permissionObj.Open"}}):[t._v("\n                        -\n                      ")],t._v(" "),e("div")],2)])],1)],1)],1),t._v(" "),e("div",{staticClass:"d-flex flex-column",class:{"align-end":!r.isMobile}},[e("div",{staticClass:"order-sm-1 order-2"},[0!==r.permissionObj.ButtonType?e(n.A,{attrs:{color:"info",block:r.isMobile,disabled:r.permissionObj.Disable},on:{click:r.applyEvent}},[t._v("\n                  "+t._s(r.buttonName)+"\n                  "),r.permissionObj.Disable?e("span",[t._v("(維護中)")]):t._e()]):t._e()],1),t._v(" "),e("div",{staticClass:"order-sm-2 order-1 mt-auto"},[r.permissionObj.MarketingTerm?e(n.A,{staticClass:"px-0",attrs:{text:"",color:"blue"},on:{click:function(t){r.isOpenTermsModal=!0}}},[t._v("\n                  查看行銷條款\n                ")]):t._e()],1)])])],1
2)],1)],1),t._v(" "),1===r.permissionObj.Open?e("div",{staticClass:"ma-6"},[e("div",{attrs:{id:"baseInfoMerchantList"}},[e("h2",{staticClass:"h3 bread-title mb-6"},[t._v("\n          套用商店設定\n        ")]),t._v(" "),e(r.BaseInfoMerchantList)],1)]):t._e(),t._v(" "),e(l.A,{attrs:{persistent:"",scrollable:"","max-width":"600"},model:{value:r.isOpenTermsModal,callback:function(t){r.isOpenTermsModal=t},expression:"isOpenTermsModal"}},[e(o.A,[e(i.ri,{staticClass:"text-h6 font-weight-bold"},[t._v("\n          活動條款\n        ")]),t._v(" "),e(i.OQ,[e("div",{staticClass:"default-text-template pb-0 pt-2"},[e("div",{staticClass:"text-h6 font-weight-bold mb-3"},[t._v("\n              優惠券使用條款\n            ")]),t._v(" "),e("p",{staticClass:"body-1"},[t._v("\n              「PAYUNi 優惠券功能服務」(以下稱「本服務」)係由「統一數發股份有限公司」(以下稱「本公司」)提供,適用於商店的行銷活動,協助商店透過本公司提供的優惠券功能進行促銷活動。使用本服務前,請詳細閱讀並同意以下條款:"),e("br"),e("br"),t._v("\n              一、定義\n              "),e("ul",[e("li",[t._v("\n                  優惠券:由本公司提供的電子折扣券,商店可用於促銷活動。\n                ")]),t._v(" "),e("li",[t._v("\n                  商店:使用本公司系統並發放優惠券的註冊會員。\n                ")]),t._v(" "),e("li",[t._v("\n                  用戶:使用優惠券交易的消費者。\n                ")])]),t._v(" "),e("br"),e("br"),t._v("\n              二、優惠券使用範圍\n              "),e("ul",[e("li",[t._v("\n                  優惠券僅適用於商店指定的商品或服務,並受商店自行設定的條件規範。\n                ")]),t._v(" "),e("li",[t._v("\n                  優惠券須於有效期限內使用,逾期自動失效。\n                ")]),t._v(" "),e("li",[t._v("\n                  優惠券不得兌換現金或找零,需於結帳時使用。\n                ")])]),t._v(" "),e("br"),e("br"),t._v("\n              三、優惠券核銷與費用\n              "),e("ul",[e("li",[t._v("\n                  核銷費用為 2 元/筆,或依雙方協議另行設定,並於交易時從商店結算款項中扣除。\n                ")]),t._v(" "),e("li",[t._v("\n                  系統將自動記錄每次核銷交易,供商店查詢。\n                ")])]),t._v(" "),e("br"),e("br"),t._v("\n              四、商店責任\n              "),e("ul",[e("li",[t._v("\n                  商店需自行設定並使用戶了解優惠券的使用規範,若用戶有疑問或異議,應先與商店聯繫解決。\n                ")]),t._v(" "),e("li",[t._v("\n                  本公司對商店及用戶均不承擔任何優惠券兌換、與商店服務提供之責任。如有因優惠券規範產生之爭議,商店應立即且適當地處理該等糾紛,並由商店對第三人(例如:用戶、政府機關等)全權負責處理並負擔相關責任,本公司不會因此負任何損害賠償責任。如有違反本使用條款致本公司受有損害者,本公司有權取消優惠券的使用資格,並要求損害賠償。\n                ")])]),t._v(" "),e("br"),e("br"),t._v("\n              五、用戶責任\n              "),e("ul",[e("li",[t._v("\n                  用戶應遵守商店及本公司訂定的優惠券使用規範。\n                ")]),t._v(" "),e("li",[t._v("\n                  優惠券僅適用於合法商品或服務,涉及侵權或非法內容的商品或服務不得使用,若有違反使用規範,本公司有權取消優惠券。\n                ")])]),t._v(" "),e("br"),e("br"),t._v("\n              六、數據隱私與保護\n              "),e("ul",[e("li",[t._v("\n                  本公司依《個人資料保護法》收集、處理及利用用戶的個人資料,包括但不限於電子郵件,用於優惠券發放、交易確認及促銷通知等依規定使用,商店提供本服務予用戶使用時,應確保用戶同意本公司的隱私權政策。\n                ")]),t._v(" "),e("li",[t._v("\n                  本公司承諾妥善保護用戶資料,僅限於服務所需目的使用,除非法律要求或經用戶同意,本公司不會提供用戶資料給第三方。\n                ")])]),t._v(" "),e("br"),e("br"),t._v("\n              七、暫停或終止服務"),e("br"),t._v("\n              若商店違反本使用條款,本公司有權暫å
2œæˆ–終止全部或部分服務,並請求因此所生之損害賠償。如果商店發現用戶違反本服務條款,應立即通知本公司\n              "),e("br"),e("br"),t._v("\n              八、責任限制"),e("br"),t._v("\n              如本服務相關軟硬體設備進行更換、升級、維護或其他不可歸責於本公司之事由所致之本服務停止或中斷等時,本公司將暫停或中斷本服務之全部或部分,因使用或無法使用本服務,所造成之任何間接、附帶、特殊或衍生性之損害,本公司不負任何責任。\n              "),e("br"),e("br"),t._v("\n              九、條款修改"),e("br"),t._v("\n              本公司有權隨時更新本使用條款,並將通過官網公告、商店後台或電子郵件告知變更內容。更新後的條款自發布時起立即生效,商店繼續使用即視為同意變更。\n              "),e("br"),e("br"),t._v("\n              十、爭議處理"),e("br"),t._v("\n              本使用條款若有未盡事宜,悉依中華民國相關法令定之,因本服務所生爭議而涉訟時,除法律另有規定外,以臺灣臺北地方法院為第一審管轄法院。\n            ")])])]),t._v(" "),e(i.SL,{staticClass:"pb-6"},[e(p.A),t._v(" "),r.permissionObj.MarketingTerm?t._e():e(n.A,{attrs:{small:"",color:"success",dark:"",loading:r.confirmLoader},on:{click:r.eventTermCheck}},[t._v("\n            同意\n          ")]),t._v(" "),e(n.A,{attrs:{color:"primary",small:""},on:{click:function(t){r.isOpenTermsModal=!1}}},[t._v("\n            關閉\n          ")]),t._v(" "),e(p.A)],1)],1)],1),t._v(" "),e(r.ConfirmDialog,{attrs:{show:r.isOpenApplyModal,"cancel-text":"關閉"},on:{"update:show":function(t){r.isOpenApplyModal=t},confirm:r.apply,cancel:function(t){r.isOpenApplyModal=!1}},scopedSlots:t._u([{key:"content",fn:function(){return[e("div",{staticClass:"font-weight-bold mb-5 text-center",staticStyle:{"font-size":"24px"}},[t._v("\n          "+t._s(9===r.applyInfoObj.PlanType?"限時申請":1===r.applyInfoObj.PlanType?"申請開通優惠券功能":"申請年度方案")+"\n        ")]),t._v(" "),e("div",{staticClass:"w-full",staticStyle:{"font-size":"18px"}},[9===r.applyInfoObj.PlanType?[e("div",{staticClass:"pa-4 mb-2 rounded-lg text-center",staticStyle:{"background-color":"#ECFDF3"}},[e("div",{staticClass:"text-h6 font-weight-bold"},[t._v("\n                "+t._s(r.applyInfoObj.StarDate)+" 至 "+t._s(r.applyInfoObj.EndDate)+"\n              ")]),t._v(" "),e("div",{staticClass:"d-flex align-center justify-center mb-2"},[e("img",{attrs:{src:"/img/home/coupon_modal_star_icon.png",alt:""}}),t._v(" "),e("div",{staticClass:"text-h6 font-weight-bold mx-2"},[t._v("\n                  特別適用優惠\n                ")]),t._v(" "),e("img",{attrs:{src:"/img/home/coupon_modal_star_icon.png",alt:""}})]),t._v(" "),e("div",[t._v("\n                期間內免費試用,機會難得!\n              ")])]),t._v(" "),e("div",{staticClass:"px-4 py-3"},[e("ul",[e("li",[t._v("系統設定費用全免,試用期間核銷費"+t._s(t._f("priceComma")(r.applyInfoObj.WriteOffFee))+"元!")]),t._v(" "),e("li",[t._v(t._s(r.applyInfoObj.EndDate)+"後核銷優惠券將會以基本方案計算")])])]),t._v(" "),e("div",{staticClass:"px-4 text-center"},[t._v("\n              按下確定,試用資格立即生效,快來搶先體驗!\n            ")])]:[e("div",{staticClass:"pa-4 mb-4 rounded-lg",staticStyle:{"background-color":"#F1E9FF"}},[1===r.applyInfoObj.PlanType?[e("div",{staticClass:"font-weight-bold mb-2"},[e("span",[t._v("\n                    立即申請開通優惠券功能,付款完成後,功能將於隔日生效。\n                  ")])]),t._v(" "),e("ul",[e("li",[t._v("系統設定費用:"+t._s(t._f("priceComma")(r.applyInfoObj.SettingFee))+" 元(僅需支付一次)")]),t._v(" "),e("li",[t._v("優惠券核銷費用:"+t._s(t._f("priceComma")(r.applyInfoObj.WriteOffFee))+"元/筆")])])]:[e("div",{staticClass:"font-weight-bold mb-2"},[e("span",[t._v("\n                    立即申請年度方案,付款完成å¾
2Œï¼Œå°‡æ–¼æ–¹æ¡ˆèµ·å§‹æ—¥ç”Ÿæ•ˆã€‚\n                  ")])]),t._v(" "),e("ul",[e("li",[t._v("年費:"+t._s(t._f("priceComma")(r.applyInfoObj.SettingFee))+" 元")]),t._v(" "),e("li",[t._v("方案期間:超過"+t._s(t._f("priceComma")(r.applyInfoObj.WriteOffPiece))+"張核銷數")]),t._v(" "),e("li",[t._v("每筆核銷費用:"+t._s(r.applyInfoObj.WriteOffFee)+"元/筆")]),t._v(" "),e("li",[t._v("方案起訖日:"+t._s(r.applyInfoObj.StartDate)+"~"+t._s(r.applyInfoObj.EndDate))])])]],2),t._v(" "),e("div",{staticClass:"px-4 text-center"},[t._v("\n              完成付款即可輕鬆使用!\n            ")])]],2)]},proxy:!0}])}),t._v(" "),e(l.A,{attrs:{persistent:"","max-width":"1000"},model:{value:r.isOpenLogModal,callback:function(t){r.isOpenLogModal=t},expression:"isOpenLogModal"}},[e(o.A,[e(i.ri,{staticClass:"text-h6 font-weight-bold"},[t._v("\n          方案紀錄\n        ")]),t._v(" "),e(i.OQ,[e("div",{staticClass:"w-full",staticStyle:{"font-size":"18px"}},[e(s.A,{staticClass:"main-table style rounded-box font-weight-medium elevation-1",attrs:{headers:r.headers,items:r.logDataObj,loading:r.dtLoading,"hide-default-footer":""},scopedSlots:t._u([{key:"item.slot_type",fn:function(e){var r=e.item;return[t._v("\n                "+t._s(r.Type)+"\n              ")]}},{key:"item.slot_date",fn:function(e){var r=e.item;return[t._v("\n                "+t._s(r.Date)+"\n              ")]}},{key:"item.slot_content",fn:function(e){var r=e.item;return[t._v("\n                "+t._s(r.Content)+"\n              ")]}},{key:"item.slot_note",fn:function(e){var r=e.item;return[t._v("\n                "+t._s(r.Note)+"\n              ")]}}])})],1),t._v(" "),r.logDataObj.length>0?e("div",{staticClass:"mt-5 mx-3"},[e(r.tableLayout,{attrs:{pagination:r.dtPagination,page:r.dtPage,"per-page":r.dtParams.length,"max-page":r.dtPagination.pageCount,"is-footer":!0,loading:r.dtLoading},on:{goPageByInput:r.enterPage,goPageByClick:r.changeDtPage}})],1):t._e()]),t._v(" "),e(i.SL,{staticClass:"pb-6"},[e(p.A),t._v(" "),e(n.A,{attrs:{color:"success",dark:""},on:{click:function(t){r.isOpenLogModal=!1}}},[t._v("\n            確定\n          ")]),t._v(" "),e(p.A)],1)],1)],1),t._v(" "),e(r.ConfirmDialog,{attrs:{show:r.isOpenPaymentInfo,"show-cancel":!1},on:{"update:show":function(t){r.isOpenPaymentInfo=t},confirm:function(t){r.isOpenPaymentInfo=!1}},scopedSlots:t._u([{key:"content",fn:function(){return[e("div",{staticClass:"font-weight-bold mb-5 text-center",staticStyle:{"font-size":"24px"}},[t._v("\n          優惠券繳款資訊\n        ")]),t._v(" "),e("div",{staticClass:"w-full",staticStyle:{"font-size":"18px"}},[e("div",{staticClass:"pa-4 mb-4 rounded-lg",staticStyle:{"background-color":"#F1E9FF"}},[e("ul",{staticClass:"mb-2"},[e("li",[t._v("付款方式:{ ATM 轉帳 }")]),t._v(" "),e("li",[t._v("銀行代碼:{ 882 }")]),t._v(" "),e("li",[t._v("虛擬帳號:{ 000000000000 }")]),t._v(" "),e("li",[t._v("虛擬帳號銀行:{ 中國信託商業銀行 }")]),t._v(" "),e("li",[t._v("帳號付款截止日:{ 2025-10-24 23:59:59 }")])]),t._v(" "),e("p",{staticClass:"text-subtitle-2 font-weight-bold"},[t._v("\n              請於付款截止日期完成支付, 並且留存您的付款資訊, 可透過ATM自動櫃員機、網路銀行轉帳功能或繳費功能繳付\n            ")])]),t._v(" "),e("div",{staticClass:"px-4 text-center"},[t._v("\n            完成付款即可輕鬆使用!\n          ")])])]},proxy:!0}])})],1),t._v(" "),e(r.BaseInfoGuide)],1)}),[],!1,null,null,null).exports},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"}}},54784:function(t,e,r){r.d(e,{A:function(){return c}});var n=r(33389),o=r(67787),i=r(81207),a=r(53615),s=r(93579),l={name:"BaseDialog",props:{title:{type:String,default:void 0},btnText:{type:String,default:"確定"}
2,isShow:{type:Boolean,default:!1},persistent:{type:Boolean,default:!1},scrollable:{type:Boolean,default:!1}},emits:["update:isShow"],data:function(){return{}},computed:{myShow:{get:function(){return this.isShow},set:function(t){this.$emit("update:isShow",t)}}}},c=(0,r(98851).A)(l,(function(){var t=this,e=t._self._c;return e(a.A,{attrs:{"max-width":"500",persistent:t.persistent,scrollable:t.scrollable},model:{value:t.myShow,callback:function(e){t.myShow=e},expression:"myShow"}},[e(o.A,[t._t("content",(function(){return[e(i.OQ,{staticClass:"pt-5"},[t._v("\n        "+t._s(t.title)+"\n      ")])]})),t._v(" "),e(i.SL,[t._t("actions",(function(){return[e(s.A),t._v(" "),e(n.A,{on:{click:function(e){t.myShow=!1}}},[t._v("\n          "+t._s(t.btnText)+"\n        ")])]}))],2)],2)],1)}),[],!1,null,null,null).exports},61206: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(63008),l=r(53615),c=r(79987),u=r(93579),p=r(97218),d=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)}(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,d.KR)([]),a=(0,d.KR)(!1),s=(0,d.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,d.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,d.wB)((function(){return n.doHandleMerStatusText}),(function(t){t&&u()}));var p=(0,d.KR)(!1),f=(0,d.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()}
2,dateRangePickForm:p,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}}},b=(0,r(98851).A)(y,(function(){var t=this,e=t._self._c,r=t._self._setupProxy;return e("div",{staticStyle:{width:"100%"}},[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(p.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),p=r(56511),d=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(d.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(p.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),p=r(39742),d={insert:"head",singleton:!1};u()(p.A,d),p.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 p(){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 d(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 b(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=d("smoothScroll"),r=t.offsetHeight>window.innerHeight;t.scrollIntoView({behavior:!e||w(t)?"auto":"smooth",inline:"center",block:r?"start":"center"})}}function w(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 C(){x={}}function S(t){if(t){var e=t.getBoundingClientRect(),r={x:e.x,y:e.y,width:e.width,height:e.height};_("__activeStagePosition",r),A(r)}}function k(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=d("overlayColor")||"rgb(0,0,0)",o.style.opacity="".concat(d("overlayOpacity")),o.style.pointerEvents="auto",o.style.cursor="auto",n.appendChild(o),n}(t);document.body.appendChild(e),I(e,(function(t){"path"===t.target.tagName&&m("overlayClick")})),_("__overlaySvg",e)}function A(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 k(t)}function E(t){var e=window.innerWidth,r=window.innerHeight,n=d("stagePadding")||0,o=d("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,p=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(p," 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(p," 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 O(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=d("animate"),u=e.onHighlightStarted||d("onHighlightStarted"),p=(null==e?void 0:e.onHighlighted)||d("onHighlighted"),f=(null==o?void 0:o.onDeselected)||d("onDeselected"),h=d(),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,w=!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&&!w&&y&&(L(t,e),w=!0),d("animate")&&r<400?function(t,e,r,n){var o=P("__activeStagePosition"),i=o||r.getBoundingClientRect(),a=n.getBoundingClientRect();A(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):(S(t),p&&p(s?void 0:t,e,{config:d(),state:P(),driver:v()}),_("__transitionCallback",void 0),_("__previousStep",o),_("__previousElement",i),_("__activeStep",e),_("__activeElement",t)),window.requestAnimationFrame(x)}};_("__transitionCallback",x),window.requestAnimationFrame(x),b(t),!y&&e.popover&&L(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:d("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 M(){var t=P("__activeElement"),e=P("__activeStep");t&&(S(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 T(){var t=P("__resizeTimeout");t&&window.cancelAnimationFrame(t),_("__resizeTimeout",window.requestAnimationFrame(M))}function j(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 D(t){var e;
2(null==(e=d("allowKeyboardControl"))||e)&&("Escape"===t.key?m("escapePress"):"ArrowRight"===t.key?m("arrowRightPress"):"ArrowLeft"===t.key&&m("arrowLeftPress"))}function I(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 L(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,description: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,p=a.showProgress,f=a.nextBtnText,h=void 0===f?d("nextBtnText")||"Next &rarr;":f,g=a.prevBtnText,w=void 0===g?d("prevBtnText")||"&larr; Previous":g,x=a.progressText,C=void 0===x?d("progressText")||"{current} of {total}":x;i.nextButton.innerHTML=h,i.previousButton.innerHTML=w,i.progress.innerHTML=C,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 S=c||d("showButtons"),k=p||d("showProgress")||!1,A=(null==S?void 0:S.includes("next"))||(null==S?void 0:S.includes("previous"))||k;i.closeButton.style.display=S.includes("close")?"block":"none",A?(i.footer.style.display="flex",i.progress.style.display=k?"block":"none",i.nextButton.style.display=S.includes("next")?"block":"none",i.previousButton.style.display=S.includes("previous")?"block":"none"):i.footer.style.display="none";var E=u||d("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 O=i.wrapper;O.style.display="block",O.style.left="",O.style.top="",O.style.bottom="",O.style.right="",O.id="driver-popover-content",O.setAttribute("role","dialog"),O.setAttribute("aria-labelledby","driver-popover-title"),O.setAttribute("aria-describedby","driver-popover-description"),i.arrow.className="driver-popover-arrow";var M=(null==(n=r.popover)?void 0:n.popoverClass)||d("popoverClass")||"";O.className="driver-popover ".concat(M).trim(),I(i.wrapper,(function(t){var n,o,i,a=t.target,s=(null==(n=r.popover)?void 0:n.onNextClick)||d("onNextClick"),l=(null==(o=r.popover)?void 0:o.onPrevClick)||d("onPrevClick"),c=(null==(i=r.popover)?void 0:i.onCloseClick)||d("onCloseClick");return a.classList.contains("driver-popover-next-btn")?s?s(e,r,{config:d(),state:P(),driver:v()}):m("nextClick"):a.classList.contains("driver-popover-prev-btn")?l?l(e,r,{config:d(),state:P(),driver:v()}):m("prevClick"):a.classList.contains("driver-popover-close-btn")?c?c(e,r,{config:d(),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);
2var T=(null==(o=r.popover)?void 0:o.onPopoverRender)||d("onPopoverRender");T&&T(i,{config:d(),state:P(),driver:v()}),G(e,r),b(O);var j=e.classList.contains("driver-dummy-element"),D=y([O].concat(t(j?[]:[e])));D.length>0&&D[0].focus()}function B(){var t=P("popover");if(null!=t&&t.wrapper){var e=t.wrapper.getBoundingClientRect(),r=d("stagePadding")||0,n=d("popoverOffset")||0;return{width:e.width+r+n,height:e.height+r+n,realWidth:e.width,realHeight:e.height}}}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.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 R(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=d("stagePadding")||0,p=B(),v=r.arrow.getBoundingClientRect(),f=t.getBoundingClientRect(),h=f.top-p.height,m=h>=0,g=window.innerHeight-(f.bottom+p.height),y=g>=0,b=f.left-p.width,w=b>=0,x=window.innerWidth-(f.right+p.width),_=x>=0,C=!(m||y||w||_),S=c;if("top"===c&&m?_=w=y=!1:"bottom"===c&&y?_=w=m=!1:"left"===c&&w?_=m=y=!1:"right"===c&&_&&(w=m=y=!1),"over"===c){var k=window.innerWidth/2-p.realWidth/2,A=window.innerHeight/2-p.realHeight/2;r.wrapper.style.left="".concat(k,"px"),r.wrapper.style.right="auto",r.wrapper.style.top="".concat(A,"px"),r.wrapper.style.bottom="auto"}else if(C){var E=window.innerWidth/2-(null==p?void 0:p.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(w){var O=Math.min(b,window.innerWidth-(null==p?void 0:p.realWidth)-v.width),M=N(l,{elementDimensions:f,popoverDimensions:p,popoverPadding:u,popoverArrowDimensions:v});r.wrapper.style.left="".concat(O,"px"),r.wrapper.style.top="".concat(M,"px"),r.wrapper.style.bottom="auto",r.wrapper.style.right="auto",S="left"}else if(_){var T=Math.min(x,window.innerWidth-(null==p?void 0:p.realWidth)-v.width),j=N(l,{elementDimensions:f,popoverDimensions:p,popoverPadding:u,popoverArrowDimensions:v});r.wrapper.style.right="".concat(T,"px"),r.wrapper.style.top="".concat(j,"px"),r.wrapper.style.bottom="auto",r.wrapper.style.left="auto",S="right"}else if(m){var D=Math.min(h,window.innerHeight-p.realHeight-v.width),I=R(l,{elementDimensions:f,popoverDimensions:p,popoverPadding:u,popoverArrowDimensions:v});r.wrapper.style.top="".concat(D,"px"),r.wrapper.style.left="".concat(I,"px"),r.wrapper.style.bottom="auto",r.wrapper.style.right="auto",S="top"}else if(y){var L=Math.min(g,window.innerHeight-(null==p?void 0:p.realHeight)-v.width),G=R(l,{elementDimensions:f,popoverDimensions:p,popoverPadding:u,popoverArrowDimensions:v});r.wrapper.style.left="".concat(G,"px"),r.wrapper.style.bottom="".concat(L,"px"),r.wrapper.style.top="auto",r.wrapper.style.right="auto",S="bottom"}C?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,p=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-p<=0&&(m="left",g="start"),f>=v?(m="top",g="end"):f+p>=v&&(m="left",g="end")):"right"===e&&(f+h<=0?(m="bottom",g="start"):f+h-p<=0&&(m="right",g="start"),f>=v?(m="top",g="start"):f+p>=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(),b=a.getBoundingClientRect(),w=d("stagePadding")||0,x=y.left-w<window.innerWidth&&y.right+w>0&&y.top-w<window.innerHeight&&y.bottom+w>0;"bottom"===e&&x&&(b.x>y.x&&b.x+b.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(w/2,"px)")))}else a.classList.add("driver-popover-arrow-none")}(l,S,t)}}function F(){function e(){d("allowClose")&&m()}function r(){var t=d("overlayClickBehavior");d("allowClose")&&"close"===t?m():"nextStep"===t&&o()}function o(){var t=P("activeIndex"),e=d("steps")||[];if(void 0!==t){var r=t+1;e[r]?u(r):m()}}function i(){var t=P("activeIndex"),e=d("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)||d("onPrevClick");if(o)return o(n,r,{config:d(),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)||d("onNextClick");if(i)return i(n,r,{config:d(),state:P(),driver:v()});o()}}}function l(){P("isInitialized")||(_("isInitialized",!0),document.body.classList.add("driver-active",d("animate")?"driver-fade":"driver-simple"),window.addEventListener("keyup",D,!1),window.addEventListener("keydown",j,!1),window.addEventListener("resize",T),window.addEventListener("scroll",T),h("overlayClick",r),h("escapePress",e),h("arrowLeftPress",a),h("arrowRightPress",s))}function u(){var e,r,o,i,a,s,l,c,p=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,v=d("steps");if(v)if(v[p]){_("__activeOnDestroyed",document.activeElement),_("activeIndex",p);var f=v[p],h=v[p+1],g=v[p-1],y=(null==(e=f.popover)?void 0:e.doneBtnText)||d("doneBtnText")||"Done",b=d("allowClose"),w=void 0!==(null==(r=f.popover)?void 0:r.showProgress)?null==(o=f.popover)?void 0:o.showProgress:d("showProgress"),x=((null==(i=f.popover)?void 0:i.progressText)||d("progressText")||"{{current}} of {{total}}").replace("{{current}}","".concat(p+1)).replace("{{total}}","".concat(v.length)),P=(null==(a=f.popover)?void 0:a.showButtons)||d("showButtons"),C=["next","previous"].concat(t(b?["close"]:[])).filter((function(t){return!(null!=P&&P.length)||P.includes(t)})),S=(null==(s=f.popover)?void 0:s.onNextClick)||d("onNextClick"),k=(null==(l=f.popover)?void 0:l.onPrevClick)||d("onPrevClick"),A=(null==(c=f.popover)?void 0:c.onCloseClick)||d("onCloseClick");O(n(n({},f),{},{popover:n({showButtons:C,nextBtnText:h?void 0:y,disableButtons:t(g?[]:["previous"]),showProgress:w,progressText:x,onNextClick:S||function(){h?u(p+1):m()},onPrevClick:k||function(){u(p-1)},onCloseClick:A||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=d("onDestroyStarted");if(t&&o){o(!e||"driver-dummy-element"===(null==e?void 0:e.id)?void 0:e,r,{config:d(),state:P(),driver:v()})}else{var i=(null==r?void 0:r.onDeselected)||d("onDeselected"),a=d("onDestroyed");if(document.body.classList.remove("driver-active","driver-fade","driver-simple"),window.removeEventListener("keyup",D),window.removeEventListener("resize",T),window.removeEventListener("scroll",T),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={},C(),e&&r){var s="driver-dummy-element"===e.id;i&&i(s?void 0:e,r,{config:d(),state:P(),driver:v()}),a&&a(s?void 0:e,r,{config:d(),state:P(),driver:v()})}n&&n.focus()}}p(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});var g={isActive:function(){return P("isInitialized")||!1},refresh:T,drive:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;l(),u(t)},setConfig:p,setSteps:function(t){C(),p(n(n({},d()),{},{steps:t}))},getConfig:d,getState:P,getActiveIndex:function(){return P("activeIndex")},isFirstStep:function(){return 0===P("activeIndex")},isLastStep:function(){var t=d("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){(d("steps")||[])[t]?u(t):m()},hasNextStep:function(){var t=d("steps")||[],e=P("activeIndex");return void 0!==e&&!!t[e+1]},hasPreviousStep:function(){var t=d("steps")||[],e=P("activeIndex");return void 0!==e&&!!t[e-1]},highlight:function(t){l(),O(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 W=o(79534),H=o(65072),z=o(66363);function V(t){return V="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},V(t)}function K(){K=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 d?r:d,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===p)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===p)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=4,n.method="throw",n.arg=c.arg)}}}(e,n,new C(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 p={};function d(){}function v(){}function f(){}var h={};l(h,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==r&&n.call(g,i)&&(h=g);var y=f.prototype=d.prototype=Object.create(h);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(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"==V(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 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")),p;var i=u(o,e.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,p;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,p):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function _(t){this.tryEntries.push(t)}function P(e){var r=e[4]||{};r.type="normal",r.arg=t,e[4]=r}function C(t){this.tryEntries=[[-1]],t.forEach(_,this),this.reset(!0)}function S(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(V(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}},b(w.prototype),l(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new w(c(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(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=S,C.prototype={constructor:C,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],p):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),p},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),p}},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:S(e),r:r,n:n},"next"===this.method&&(this.arg=t),p}},e}function $(t){return function(t){if(Array.isArray(t))return Q(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 Q(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)?Q(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 Q(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 Y(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"!=V(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=V(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==V(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=F(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=K().mark((function t(e){var r,n,o,i;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,W.A.post("/api/guide/mark_read",{tipPage:[e]});case 2:r=t.sent,(n=r.data).success?(o=$(z.A.state.user.info.tipPage),(i=o.indexOf(e))>-1&&o.splice(i,1),z.A.dispatch("user/setTipPage",o)):H.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){Y(i,n,o,a,s,"next",t)}function s(t){Y(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 w}});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 p(t){return p="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},p(t)}function d(){d=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 k(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,b=y&&y(y(A([])));b&&b!==r&&n.call(b,i)&&(g=b);var w=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,d=c.value;return d&&"object"==p(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 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 C(t){this.tryEntries.push(t)}function S(e){var r=e[4]||{};r.type="normal",r.arg=t,e[4]=r}function k(t){this.tryEntries=[[-1]],t.forEach(C,this),this.reset(!0)}function A(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(p(e)+" is not iterable")}return h.prototype=m,l(w,"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(w),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(w),l(w,s,"Generator"),l(w,i,(function(){return this})),l(w,"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=A,k.prototype={constructor:k,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(S),!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]),S(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;S(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={i:A(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=d().mark((function t(e){return d().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),b={insert:"head",singleton:!1};g()(y.A,b),y.A.locals;var w=(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.