From 2327048b07c240f3fbbfa18703919a09e1aa0f47 Mon Sep 17 00:00:00 2001 From: David Day Date: Tue, 21 May 2024 17:10:16 -0700 Subject: [PATCH] Add clear search button. --- assets/css/frontend.css | 2 +- assets/css/frontend.min.css | 2 +- assets/js/frontend.js | 4 ++-- assets/js/frontend.min.js | 2 +- assets/src/frontend/components/Home.vue | 11 +++++++++++ assets/src/frontend/components/ProductSearch.vue | 6 ++++++ 6 files changed, 22 insertions(+), 5 deletions(-) diff --git a/assets/css/frontend.css b/assets/css/frontend.css index 2899d078..c072060d 100644 --- a/assets/css/frontend.css +++ b/assets/css/frontend.css @@ -32,4 +32,4 @@ /*!****************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./assets/src/frontend/components/Home.vue?vue&type=style&index=0&id=76253014&lang=less& ***! - \****************************************************************************************************************************************************************************************************************************************************************************************************/#wepos-main{display:flex;padding:20px}#wepos-main .content-product{flex:2;margin-right:20px}#wepos-main .content-product .top-panel{margin-bottom:20px}#wepos-main .content-product .top-panel .search-bar{float:left;margin-right:2%;width:56%}#wepos-main .content-product .top-panel .search-bar .search-box{position:relative}#wepos-main .content-product .top-panel .search-bar .search-box input#product-search{border:1px solid #e9edf0;border-radius:3px;box-shadow:0 3px 15px 0 rgba(0,0,0,.02);box-sizing:border-box;font-size:14px;height:35px;line-height:10px;padding-left:32px;padding-right:120px;width:100%}#wepos-main .content-product .top-panel .search-bar .search-box input#product-search::placeholder{color:#999dac;font-size:13px}#wepos-main .content-product .top-panel .search-bar .search-box input#product-search:-ms-input-placeholder{color:#999dac;font-size:13px}#wepos-main .content-product .top-panel .search-bar .search-box input#product-search::-ms-input-placeholder{color:#999dac;font-size:13px}#wepos-main .content-product .top-panel .search-bar .search-box input#product-search:focus{outline:none}#wepos-main .content-product .top-panel .search-bar .search-box span.search-icon{color:#3b80f4;height:10px;left:10px;position:absolute;top:8px}#wepos-main .content-product .top-panel .search-bar .search-box span.search-icon:before{font-size:14px}#wepos-main .content-product .top-panel .search-bar .search-box .search-type{position:absolute;right:0;top:0}#wepos-main .content-product .top-panel .search-bar .search-box .search-type a{box-sizing:border-box;color:#bdc0c9;display:inline-block;font-size:13px;height:35px;line-height:14px;margin-left:-2px;padding:10px;text-decoration:none}#wepos-main .content-product .top-panel .search-bar .search-box .search-type a.active{background:#3b80f4;color:#fff}#wepos-main .content-product .top-panel .search-bar .search-box .search-type a:first-child{border-left:1px solid #e9ebed}#wepos-main .content-product .top-panel .search-bar .search-box .search-type a:last-child{border-bottom-right-radius:3px;border-top-right-radius:3px}#wepos-main .content-product .top-panel .search-bar .search-box .search-result{background:#fff;border:1px solid #e9edf0;border-bottom-left-radius:3px;border-bottom-right-radius:3px;border-top:none;box-shadow:0 30px 45px -10px rgba(0,0,0,.2);box-sizing:border-box;position:absolute;width:100%;z-index:999}#wepos-main .content-product .top-panel .search-bar .search-box .search-result .no-data-found{color:#758598;padding:20px;text-align:center}#wepos-main .content-product .top-panel .search-bar .search-box .search-result ul{list-style-type:none;margin:0;max-height:300px;overflow:scroll;padding:0}#wepos-main .content-product .top-panel .search-bar .search-box .search-result ul li a{border-bottom:1px solid #e9edf0;color:#212121;display:block;padding:8px 10px;text-decoration:none}#wepos-main .content-product .top-panel .search-bar .search-box .search-result ul li a span{color:#758598;font-size:11px;margin-left:10px}#wepos-main .content-product .top-panel .search-bar .search-box .search-result ul li a span.action{visibility:hidden}#wepos-main .content-product .top-panel .search-bar .search-box .search-result ul li a span.action:before{font-size:12px}#wepos-main .content-product .top-panel .search-bar .search-box .search-result ul li a:hover span.action{visibility:visible}#wepos-main .content-product .top-panel .search-bar .search-box .search-result ul li:last-child a{border-bottom:none}#wepos-main .content-product .top-panel .search-bar .search-box .search-result ul li.selected{background:#f6f7fb}#wepos-main .content-product .top-panel .search-bar .search-box .search-result ul li.selected a span.action{visibility:visible}#wepos-main .content-product .top-panel .search-bar .search-box .search-result .suggession{background:#f6f7fb;border-top:1px solid #eceef0;color:#999dac;font-size:11px;padding:12px}#wepos-main .content-product .top-panel .search-bar .search-box .search-result .suggession span.term{margin-right:15px}#wepos-main .content-product .top-panel .search-bar .search-box .search-result .suggession span.term span:before{color:#5d5d5d;font-size:9px;margin-right:2px}#wepos-main .content-product .top-panel .search-bar .search-box .search-result .suggession span.term strong{color:#5d5d5d;margin-right:2px}#wepos-main .content-product .top-panel .category{float:left;margin-right:2%;position:relative;width:26%}#wepos-main .content-product .top-panel .category select#product-category{-moz-appearance:none;-webkit-appearance:none;appearance:none;background:#fff;border:1px solid #e9edf0;border-radius:3px;box-shadow:0 3px 15px 0 rgba(0,0,0,.02);box-sizing:border-box;color:#758598;font-size:13px;padding:9px;width:100%}#wepos-main .content-product .top-panel .category select#product-category:focus{outline:none}#wepos-main .content-product .top-panel .category span.select-arrow{position:absolute;right:9px;top:9px}#wepos-main .content-product .top-panel .category span.select-arrow:before{color:#758598;font-size:13px;margin-left:0}#wepos-main .content-product .top-panel .toggle-view{float:left;text-align:right;width:14%}#wepos-main .content-product .top-panel .toggle-view .toggle-icon{background:#fff;border:1px solid #e9edf0;box-shadow:0 3px 15px 0 rgba(0,0,0,.02);color:#bdc0c9;cursor:pointer;display:inline-block;padding:8px 10px}#wepos-main .content-product .top-panel .toggle-view .toggle-icon.active{color:#3b80f4}#wepos-main .content-product .top-panel .toggle-view .toggle-icon:before{font-size:13px;margin-left:0}#wepos-main .content-product .top-panel .toggle-view .toggle-icon.list-view{border-right:none;margin-right:-4px}#wepos-main .content-product .breadcrumb{background:#fff;box-shadow:0 3px 15px 0 rgba(0,0,0,.02);margin-bottom:20px;padding:8px 12px;position:relative}#wepos-main .content-product .breadcrumb span.close-breadcrumb{color:#9b59b6;cursor:pointer;position:absolute;right:15px;top:5px}#wepos-main .content-product .breadcrumb span.close-breadcrumb:before{font-size:9px}#wepos-main .content-product .breadcrumb ul{line-height:16px;margin:0;padding:0}#wepos-main .content-product .breadcrumb ul li{display:inline-block}#wepos-main .content-product .breadcrumb ul li:after{color:#758598;content:"\f10b";font-family:Flaticon;font-size:9px;margin-left:7px;margin-right:4px}#wepos-main .content-product .breadcrumb ul li:last-child:after{content:""}#wepos-main .content-product .breadcrumb ul li a{color:#9b59b6;font-size:13px;text-decoration:none}#wepos-main .content-product .items-wrapper.grid{display:flex;flex-flow:row wrap;height:84.9vh;justify-content:flex-start;margin:0 -10px;overflow:auto}#wepos-main .content-product .items-wrapper.grid .item{box-sizing:border-box;flex-basis:20%;-ms-flex:auto;margin-bottom:20px;padding:0 10px;text-align:center}#wepos-main .content-product .items-wrapper.grid .item:focus{outline:none}#wepos-main .content-product .items-wrapper.grid .item .item-wrap{background:#fff;cursor:pointer;margin-bottom:-2px;position:relative}#wepos-main .content-product .items-wrapper.grid .item .item-wrap:focus{-webkit-appearance:none;outline:none}#wepos-main .content-product .items-wrapper.grid .item .item-wrap img{width:100%}#wepos-main .content-product .items-wrapper.grid .item .item-wrap .title{border-top:1px solid #e9edf0;color:#212121;font-size:13px;margin-top:-3px;padding:10px 5px}#wepos-main .content-product .items-wrapper.grid .item .item-wrap .add-product-icon{background:rgba(0,0,0,.3);height:100%;position:absolute;right:0;top:0;visibility:hidden;width:100%}#wepos-main .content-product .items-wrapper.grid .item .item-wrap .add-product-icon:before{color:#fff;display:inline-block;font-size:35px;font-weight:400;margin-top:40%;text-shadow:1px 1px 1px rgba(0,0,0,.5)}#wepos-main .content-product .items-wrapper.grid .item .item-wrap:hover .add-product-icon{visibility:visible}#wepos-main .content-product .items-wrapper.grid .item .disabled{border:1px solid #ffcbcb;cursor:not-allowed;opacity:.4}#wepos-main .content-product .items-wrapper.list{height:84.9vh;overflow:auto}#wepos-main .content-product .items-wrapper.list .item .item-wrap{background:#fff;border-radius:3px;box-shadow:0 3px 15px 0 rgba(0,0,0,.02);cursor:pointer;margin-bottom:20px;overflow:hidden;position:relative}#wepos-main .content-product .items-wrapper.list .item .item-wrap .img{border-right:1px solid #f0f2f4;float:left;height:80px;margin-right:20px;width:80px}#wepos-main .content-product .items-wrapper.list .item .item-wrap .img img{height:100%;width:100%}#wepos-main .content-product .items-wrapper.list .item .item-wrap .title{float:left;font-size:14px;font-weight:700;height:100%;height:44px;left:100px;margin-top:-22px;max-width:78%;position:absolute;top:40px}#wepos-main .content-product .items-wrapper.list .item .item-wrap .title .product-name{margin-bottom:8px}#wepos-main .content-product .items-wrapper.list .item .item-wrap .title ul.meta{font-size:13px;font-weight:400;list-style:none;margin:0;padding:0}#wepos-main .content-product .items-wrapper.list .item .item-wrap .title ul.meta li{display:inline-block}#wepos-main .content-product .items-wrapper.list .item .item-wrap .title ul.meta li .label{color:#758598;margin-right:3px}#wepos-main .content-product .items-wrapper.list .item .item-wrap .title ul.meta li .value del{color:#9095a5;margin-right:3px}#wepos-main .content-product .items-wrapper.list .item .item-wrap .title ul.meta li:after{color:#e9ebed;content:"|";display:inline-block;margin:0 7px}#wepos-main .content-product .items-wrapper.list .item .item-wrap .title ul.meta li:last-child:after{content:""}#wepos-main .content-product .items-wrapper.list .item .item-wrap .add-product-icon{position:absolute;right:3%;top:35%}#wepos-main .content-product .items-wrapper.list .item .item-wrap .add-product-icon:before{color:#1a9ed4;font-weight:400}#wepos-main .content-product .items-wrapper .product-loading{color:#c6cace;display:block;font-size:16px;padding:10px;position:relative;text-align:center;width:100%}#wepos-main .content-product .items-wrapper .no-product-found{margin:auto 0;text-align:center;vertical-align:middle;width:100%}#wepos-main .content-product .items-wrapper .no-product-found p{color:#c6cace;font-size:18px}#wepos-main .content-cart{flex:1.3;height:94.5vh}#wepos-main .content-cart .top-panel{display:flex;margin-bottom:20px}#wepos-main .content-cart .top-panel .customer-search-box{flex:7;position:relative}#wepos-main .content-cart .top-panel .customer-search-box input#customer-search{border:1px solid #e9edf0;border-radius:3px;box-shadow:0 3px 15px 0 rgba(0,0,0,.02);box-sizing:border-box;font-size:14px;height:33px;height:35px;line-height:10px;padding:10px 10px 10px 35px;width:100%}#wepos-main .content-cart .top-panel .customer-search-box input#customer-search::placeholder{color:#999dac;font-size:13px}#wepos-main .content-cart .top-panel .customer-search-box input#customer-search:-ms-input-placeholder{color:#999dac;font-size:13px}#wepos-main .content-cart .top-panel .customer-search-box input#customer-search::-ms-input-placeholder{color:#999dac;font-size:13px}#wepos-main .content-cart .top-panel .customer-search-box input#customer-search:focus{outline:none}#wepos-main .content-cart .top-panel .customer-search-box span.add-new-customer{position:absolute;right:10px;top:9px}#wepos-main .content-cart .top-panel .customer-search-box span.add-new-customer:before{color:#bdc0c9;cursor:pointer;font-size:15px}#wepos-main .content-cart .top-panel .customer-search-box .search-result{background:#fff;border:1px solid #e9edf0;border-bottom-left-radius:3px;border-bottom-right-radius:3px;border-top:none;box-shadow:0 30px 45px -10px rgba(0,0,0,.2);box-sizing:border-box;position:absolute;width:100%;z-index:99}#wepos-main .content-cart .top-panel .customer-search-box .search-result .no-data-found{color:#758598;padding:20px;text-align:center}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul{list-style-type:none;margin:0;max-height:300px;overflow:scroll;padding:0}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li a{border-bottom:1px solid #e9edf0;color:#212121;display:block;padding:8px 10px;text-decoration:none}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li a span{color:#758598;font-size:13px;margin-left:10px}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li a span.avatar img{border-radius:20px;width:20px}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li a span.name{color:#212121;font-size:14px;line-height:18px;margin-left:6px}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li a span.action{visibility:hidden}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li a span.action:before{font-size:12px}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li a:hover span.action{visibility:visible}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li:last-child a{border-bottom:none}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li.selected{background:#f6f7fb}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li.selected a span.action{visibility:visible}#wepos-main .content-cart .top-panel .customer-search-box .search-result .suggession{background:#f6f7fb;border-top:1px solid #eceef0;color:#999dac;font-size:11px;padding:12px}#wepos-main .content-cart .top-panel .customer-search-box .search-result .suggession span.term{margin-right:15px}#wepos-main .content-cart .top-panel .customer-search-box .search-result .suggession span.term span:before{color:#5d5d5d;font-size:9px;margin-right:2px}#wepos-main .content-cart .top-panel .customer-search-box .search-result .suggession span.term strong{color:#5d5d5d;margin-right:2px}#wepos-main .content-cart .top-panel .customer-search-box svg.customer-icon{left:10px;position:absolute;top:8px}#wepos-main .content-cart .top-panel .action{flex:1}#wepos-main .content-cart .top-panel .action .more-options{text-align:right}#wepos-main .content-cart .top-panel .action .more-options span.more-icon:before{color:#bdc0c9;font-size:16px}#wepos-main .content-cart .cart-panel{background:#fff;border-radius:3px;box-shadow:0 3px 15px 0 rgba(0,0,0,.02);display:flex;flex-flow:column wrap;height:90%;position:relative}#wepos-main .content-cart .cart-panel .cart-calculation{flex-grow:0;width:100%}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table{border-collapse:collapse;width:100%}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr{border-bottom:1px solid #eceef0;display:table-row;height:35px;line-height:20px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr:first-child{border-top:1px solid #eceef0}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr:last-child{border-bottom:none}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr:nth-child(odd){background:#fafbfe}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr td{font-weight:700;line-height:20px;padding:9px 12px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr td:last-child{text-align:right}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr td.label{width:45%}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr td.price{text-align:right;width:45%}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr td.action{width:6%}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr td.action span:before{background:#bdc0c9;border:none;border-radius:50px;color:#fff;cursor:pointer;font-size:7px;padding:5px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr td.action span:hover:before{background:#e9485e;border:none;color:#fff}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-action td{text-align:left}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-action td a{background:#fff;border:1px solid #e0e5ea;border-radius:3px;color:#3b80f4;font-size:12px;margin-right:5px;padding:5px 8px;text-decoration:none}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td.label span.name{color:#758598;font-size:12px;font-weight:400;margin-left:5px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td.label label{font-weight:400;margin-right:5px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td.label .fee-name{width:15%}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td.label .fee-amount{margin-right:5px;width:15%}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td.label select.fee-tax-class{background:#fff;border:1px solid #e9ebed;border-radius:3px;height:24px;padding:5px;width:22%}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td.label select.fee-tax-class:focus{outline:none}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=number],#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=text]{border:1px solid #eceef0;border-radius:3px;padding:5px 8px;width:50%}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=number]:focus,#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=text]:focus{-webkit-appearance:none;outline:none}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=number]::placeholder,#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=text]::placeholder{color:#999dac;font-size:13px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=number]:-ms-input-placeholder,#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=text]:-ms-input-placeholder{color:#999dac;font-size:13px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=number]::-ms-input-placeholder,#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=text]::-ms-input-placeholder{color:#999dac;font-size:13px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td button{background:#3b80f4;border:1px solid #3b80f4;border-radius:3px;color:#fff;cursor:pointer;margin-left:5px;padding:5px 8px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td button.cancel{background:#fff;border:1px solid #afafaf;color:#222}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td button:disabled{background:#76a2ed;border-color:#76a2ed}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.note .note-text{font-weight:400}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.pay-now{background:#1abc9c;color:#fff;cursor:pointer;font-size:16px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.pay-now td{padding:18px 10px 18px 12px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.pay-now td.amount{text-align:right}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.pay-now td.icon{line-height:25px;padding:0 5px;text-align:left}#wepos-main .content-cart .cart-panel .cart-content{flex:5;overflow-x:scroll}#wepos-main .content-cart .cart-panel .cart-content table.cart-table{border-collapse:collapse;width:100%}#wepos-main .content-cart .cart-panel .cart-content table.cart-table thead tr{border-bottom:1px solid #eceef0;box-shadow:0 3px 15px 0 rgba(0,0,0,.04);color:#3b80f4;font-size:13px;text-align:left}#wepos-main .content-cart .cart-panel .cart-content table.cart-table thead tr th{line-height:19px;padding:8px 12px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr{border-bottom:1px solid #eceef0;display:table-row;height:35px;line-height:20px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr.no-item{border-bottom:none;height:55vh;text-align:center}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr.no-item p{color:#c6cace;font-size:17px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td{font-size:13px;padding:8px 12px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.name{font-weight:700}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.name .attribute ul{list-style:none;margin:0;padding:0}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.name .attribute ul li{display:inline-block;font-size:12px;font-weight:400;margin-right:5px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.name .attribute ul li .attr_name{color:#758598}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.price span{display:block}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.price span.regular-price{color:#9095a5;font-size:11px;padding-left:5px;text-decoration:line-through}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.action span:before,#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.remove span:before{background:#bdc0c9;border:.84px solid #bdc0c9;border-radius:50px;color:#fff;cursor:pointer;display:inline-block;font-size:8px;text-align:center;width:20px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.action span.open:before,#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.remove span.open:before{background:#3b80f4;border:.84px solid #3b80f4;-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-o-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(89deg)}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.remove span:before{border:none;color:#fff}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.remove span:hover:before{background:#e9485e;border:none;color:#fff}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr.update-quantity-wrap td{background:#f6f7fb;padding:10px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr.update-quantity-wrap td span{margin-right:5px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr.update-quantity-wrap td span input[type=number]{-webkit-appearance:none;border:1px solid #eceef0;border-radius:3px;font-size:13px;margin-right:5px;outline:none;padding:5px;width:60px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr.update-quantity-wrap td span input[type=number]::-webkit-inner-spin-button,#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr.update-quantity-wrap td span input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr.update-quantity-wrap td span.qty-action a{background:#fff;border:1px solid #eceef0;border-radius:3px;color:#999dac;display:inline-block;font-size:18px;font-weight:700;height:23px;margin-right:3px;text-align:center;text-decoration:none;width:25px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr.update-quantity-wrap td span.qty-action a.add{background:#3b80f4;color:#fff}#wepos-main .wepos-help-wrapper{margin-top:20px;padding:15px 20px}#wepos-main .wepos-help-wrapper h2{border-bottom:1px solid #eceef0;color:#c6cace;font-weight:400;margin:0 0 15px;padding:0 0 15px}#wepos-main .wepos-help-wrapper ul{list-style:none;margin:0;padding:0}#wepos-main .wepos-help-wrapper ul li{display:inline-block;margin-bottom:20px;margin-right:2%;width:48%}#wepos-main .wepos-help-wrapper ul li:nth-child(2n){margin-right:0}#wepos-main .wepos-help-wrapper ul li span{display:block}#wepos-main .wepos-help-wrapper ul li span.code{color:#758598;float:left;font-size:15px;width:40%}#wepos-main .wepos-help-wrapper ul li span.title{display:block;float:left;width:58%}@media screen and (max-width:768px){#wepos-main{display:table-row}#wepos-main .content-cart{min-height:200px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table{height:fit-content}} \ No newline at end of file + \****************************************************************************************************************************************************************************************************************************************************************************************************/#wepos-main{display:flex;padding:20px}#wepos-main .content-product{flex:2;margin-right:20px}#wepos-main .content-product .top-panel{margin-bottom:20px}#wepos-main .content-product .top-panel .search-bar{float:left;margin-right:2%;width:56%}#wepos-main .content-product .top-panel .search-bar .search-box{position:relative}#wepos-main .content-product .top-panel .search-bar .search-box input#product-search{border:1px solid #e9edf0;border-radius:3px;box-shadow:0 3px 15px 0 rgba(0,0,0,.02);box-sizing:border-box;font-size:14px;height:35px;line-height:10px;padding-left:32px;padding-right:120px;width:100%}#wepos-main .content-product .top-panel .search-bar .search-box input#product-search::placeholder{color:#999dac;font-size:13px}#wepos-main .content-product .top-panel .search-bar .search-box input#product-search:-ms-input-placeholder{color:#999dac;font-size:13px}#wepos-main .content-product .top-panel .search-bar .search-box input#product-search::-ms-input-placeholder{color:#999dac;font-size:13px}#wepos-main .content-product .top-panel .search-bar .search-box input#product-search:focus{outline:none}#wepos-main .content-product .top-panel .search-bar .search-box span.search-icon{color:#3b80f4;height:10px;left:10px;position:absolute;top:8px}#wepos-main .content-product .top-panel .search-bar .search-box span.search-icon:before{font-size:14px}#wepos-main .content-product .top-panel .search-bar .search-box .clear-button{background-color:transparent;border:none;color:#bdc0c9;height:35px}#wepos-main .content-product .top-panel .search-bar .search-box .clear-button:hover{color:#e9485e}#wepos-main .content-product .top-panel .search-bar .search-box .search-type{position:absolute;right:0;top:0}#wepos-main .content-product .top-panel .search-bar .search-box .search-type a{box-sizing:border-box;color:#bdc0c9;display:inline-block;font-size:13px;height:35px;line-height:14px;margin-left:-2px;padding:10px;text-decoration:none}#wepos-main .content-product .top-panel .search-bar .search-box .search-type a.active{background:#3b80f4;color:#fff}#wepos-main .content-product .top-panel .search-bar .search-box .search-type a:first-child{border-left:1px solid #e9ebed}#wepos-main .content-product .top-panel .search-bar .search-box .search-type a:last-child{border-bottom-right-radius:3px;border-top-right-radius:3px}#wepos-main .content-product .top-panel .search-bar .search-box .search-result{background:#fff;border:1px solid #e9edf0;border-bottom-left-radius:3px;border-bottom-right-radius:3px;border-top:none;box-shadow:0 30px 45px -10px rgba(0,0,0,.2);box-sizing:border-box;position:absolute;width:100%;z-index:999}#wepos-main .content-product .top-panel .search-bar .search-box .search-result .no-data-found{color:#758598;padding:20px;text-align:center}#wepos-main .content-product .top-panel .search-bar .search-box .search-result ul{list-style-type:none;margin:0;max-height:300px;overflow:scroll;padding:0}#wepos-main .content-product .top-panel .search-bar .search-box .search-result ul li a{border-bottom:1px solid #e9edf0;color:#212121;display:block;padding:8px 10px;text-decoration:none}#wepos-main .content-product .top-panel .search-bar .search-box .search-result ul li a span{color:#758598;font-size:11px;margin-left:10px}#wepos-main .content-product .top-panel .search-bar .search-box .search-result ul li a span.action{visibility:hidden}#wepos-main .content-product .top-panel .search-bar .search-box .search-result ul li a span.action:before{font-size:12px}#wepos-main .content-product .top-panel .search-bar .search-box .search-result ul li a:hover span.action{visibility:visible}#wepos-main .content-product .top-panel .search-bar .search-box .search-result ul li:last-child a{border-bottom:none}#wepos-main .content-product .top-panel .search-bar .search-box .search-result ul li.selected{background:#f6f7fb}#wepos-main .content-product .top-panel .search-bar .search-box .search-result ul li.selected a span.action{visibility:visible}#wepos-main .content-product .top-panel .search-bar .search-box .search-result .suggession{background:#f6f7fb;border-top:1px solid #eceef0;color:#999dac;font-size:11px;padding:12px}#wepos-main .content-product .top-panel .search-bar .search-box .search-result .suggession span.term{margin-right:15px}#wepos-main .content-product .top-panel .search-bar .search-box .search-result .suggession span.term span:before{color:#5d5d5d;font-size:9px;margin-right:2px}#wepos-main .content-product .top-panel .search-bar .search-box .search-result .suggession span.term strong{color:#5d5d5d;margin-right:2px}#wepos-main .content-product .top-panel .category{float:left;margin-right:2%;position:relative;width:26%}#wepos-main .content-product .top-panel .category select#product-category{-moz-appearance:none;-webkit-appearance:none;appearance:none;background:#fff;border:1px solid #e9edf0;border-radius:3px;box-shadow:0 3px 15px 0 rgba(0,0,0,.02);box-sizing:border-box;color:#758598;font-size:13px;padding:9px;width:100%}#wepos-main .content-product .top-panel .category select#product-category:focus{outline:none}#wepos-main .content-product .top-panel .category span.select-arrow{position:absolute;right:9px;top:9px}#wepos-main .content-product .top-panel .category span.select-arrow:before{color:#758598;font-size:13px;margin-left:0}#wepos-main .content-product .top-panel .toggle-view{float:left;text-align:right;width:14%}#wepos-main .content-product .top-panel .toggle-view .toggle-icon{background:#fff;border:1px solid #e9edf0;box-shadow:0 3px 15px 0 rgba(0,0,0,.02);color:#bdc0c9;cursor:pointer;display:inline-block;padding:8px 10px}#wepos-main .content-product .top-panel .toggle-view .toggle-icon.active{color:#3b80f4}#wepos-main .content-product .top-panel .toggle-view .toggle-icon:before{font-size:13px;margin-left:0}#wepos-main .content-product .top-panel .toggle-view .toggle-icon.list-view{border-right:none;margin-right:-4px}#wepos-main .content-product .breadcrumb{background:#fff;box-shadow:0 3px 15px 0 rgba(0,0,0,.02);margin-bottom:20px;padding:8px 12px;position:relative}#wepos-main .content-product .breadcrumb span.close-breadcrumb{color:#9b59b6;cursor:pointer;position:absolute;right:15px;top:5px}#wepos-main .content-product .breadcrumb span.close-breadcrumb:before{font-size:9px}#wepos-main .content-product .breadcrumb ul{line-height:16px;margin:0;padding:0}#wepos-main .content-product .breadcrumb ul li{display:inline-block}#wepos-main .content-product .breadcrumb ul li:after{color:#758598;content:"\f10b";font-family:Flaticon;font-size:9px;margin-left:7px;margin-right:4px}#wepos-main .content-product .breadcrumb ul li:last-child:after{content:""}#wepos-main .content-product .breadcrumb ul li a{color:#9b59b6;font-size:13px;text-decoration:none}#wepos-main .content-product .items-wrapper.grid{display:flex;flex-flow:row wrap;height:84.9vh;justify-content:flex-start;margin:0 -10px;overflow:auto}#wepos-main .content-product .items-wrapper.grid .item{box-sizing:border-box;flex-basis:20%;-ms-flex:auto;margin-bottom:20px;padding:0 10px;text-align:center}#wepos-main .content-product .items-wrapper.grid .item:focus{outline:none}#wepos-main .content-product .items-wrapper.grid .item .item-wrap{background:#fff;cursor:pointer;margin-bottom:-2px;position:relative}#wepos-main .content-product .items-wrapper.grid .item .item-wrap:focus{-webkit-appearance:none;outline:none}#wepos-main .content-product .items-wrapper.grid .item .item-wrap img{width:100%}#wepos-main .content-product .items-wrapper.grid .item .item-wrap .title{border-top:1px solid #e9edf0;color:#212121;font-size:13px;margin-top:-3px;padding:10px 5px}#wepos-main .content-product .items-wrapper.grid .item .item-wrap .add-product-icon{background:rgba(0,0,0,.3);height:100%;position:absolute;right:0;top:0;visibility:hidden;width:100%}#wepos-main .content-product .items-wrapper.grid .item .item-wrap .add-product-icon:before{color:#fff;display:inline-block;font-size:35px;font-weight:400;margin-top:40%;text-shadow:1px 1px 1px rgba(0,0,0,.5)}#wepos-main .content-product .items-wrapper.grid .item .item-wrap:hover .add-product-icon{visibility:visible}#wepos-main .content-product .items-wrapper.grid .item .disabled{border:1px solid #ffcbcb;cursor:not-allowed;opacity:.4}#wepos-main .content-product .items-wrapper.list{height:84.9vh;overflow:auto}#wepos-main .content-product .items-wrapper.list .item .item-wrap{background:#fff;border-radius:3px;box-shadow:0 3px 15px 0 rgba(0,0,0,.02);cursor:pointer;margin-bottom:20px;overflow:hidden;position:relative}#wepos-main .content-product .items-wrapper.list .item .item-wrap .img{border-right:1px solid #f0f2f4;float:left;height:80px;margin-right:20px;width:80px}#wepos-main .content-product .items-wrapper.list .item .item-wrap .img img{height:100%;width:100%}#wepos-main .content-product .items-wrapper.list .item .item-wrap .title{float:left;font-size:14px;font-weight:700;height:100%;height:44px;left:100px;margin-top:-22px;max-width:78%;position:absolute;top:40px}#wepos-main .content-product .items-wrapper.list .item .item-wrap .title .product-name{margin-bottom:8px}#wepos-main .content-product .items-wrapper.list .item .item-wrap .title ul.meta{font-size:13px;font-weight:400;list-style:none;margin:0;padding:0}#wepos-main .content-product .items-wrapper.list .item .item-wrap .title ul.meta li{display:inline-block}#wepos-main .content-product .items-wrapper.list .item .item-wrap .title ul.meta li .label{color:#758598;margin-right:3px}#wepos-main .content-product .items-wrapper.list .item .item-wrap .title ul.meta li .value del{color:#9095a5;margin-right:3px}#wepos-main .content-product .items-wrapper.list .item .item-wrap .title ul.meta li:after{color:#e9ebed;content:"|";display:inline-block;margin:0 7px}#wepos-main .content-product .items-wrapper.list .item .item-wrap .title ul.meta li:last-child:after{content:""}#wepos-main .content-product .items-wrapper.list .item .item-wrap .add-product-icon{position:absolute;right:3%;top:35%}#wepos-main .content-product .items-wrapper.list .item .item-wrap .add-product-icon:before{color:#1a9ed4;font-weight:400}#wepos-main .content-product .items-wrapper .product-loading{color:#c6cace;display:block;font-size:16px;padding:10px;position:relative;text-align:center;width:100%}#wepos-main .content-product .items-wrapper .no-product-found{margin:auto 0;text-align:center;vertical-align:middle;width:100%}#wepos-main .content-product .items-wrapper .no-product-found p{color:#c6cace;font-size:18px}#wepos-main .content-cart{flex:1.3;height:94.5vh}#wepos-main .content-cart .top-panel{display:flex;margin-bottom:20px}#wepos-main .content-cart .top-panel .customer-search-box{flex:7;position:relative}#wepos-main .content-cart .top-panel .customer-search-box input#customer-search{border:1px solid #e9edf0;border-radius:3px;box-shadow:0 3px 15px 0 rgba(0,0,0,.02);box-sizing:border-box;font-size:14px;height:33px;height:35px;line-height:10px;padding:10px 10px 10px 35px;width:100%}#wepos-main .content-cart .top-panel .customer-search-box input#customer-search::placeholder{color:#999dac;font-size:13px}#wepos-main .content-cart .top-panel .customer-search-box input#customer-search:-ms-input-placeholder{color:#999dac;font-size:13px}#wepos-main .content-cart .top-panel .customer-search-box input#customer-search::-ms-input-placeholder{color:#999dac;font-size:13px}#wepos-main .content-cart .top-panel .customer-search-box input#customer-search:focus{outline:none}#wepos-main .content-cart .top-panel .customer-search-box span.add-new-customer{position:absolute;right:10px;top:9px}#wepos-main .content-cart .top-panel .customer-search-box span.add-new-customer:before{color:#bdc0c9;cursor:pointer;font-size:15px}#wepos-main .content-cart .top-panel .customer-search-box .search-result{background:#fff;border:1px solid #e9edf0;border-bottom-left-radius:3px;border-bottom-right-radius:3px;border-top:none;box-shadow:0 30px 45px -10px rgba(0,0,0,.2);box-sizing:border-box;position:absolute;width:100%;z-index:99}#wepos-main .content-cart .top-panel .customer-search-box .search-result .no-data-found{color:#758598;padding:20px;text-align:center}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul{list-style-type:none;margin:0;max-height:300px;overflow:scroll;padding:0}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li a{border-bottom:1px solid #e9edf0;color:#212121;display:block;padding:8px 10px;text-decoration:none}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li a span{color:#758598;font-size:13px;margin-left:10px}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li a span.avatar img{border-radius:20px;width:20px}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li a span.name{color:#212121;font-size:14px;line-height:18px;margin-left:6px}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li a span.action{visibility:hidden}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li a span.action:before{font-size:12px}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li a:hover span.action{visibility:visible}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li:last-child a{border-bottom:none}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li.selected{background:#f6f7fb}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li.selected a span.action{visibility:visible}#wepos-main .content-cart .top-panel .customer-search-box .search-result .suggession{background:#f6f7fb;border-top:1px solid #eceef0;color:#999dac;font-size:11px;padding:12px}#wepos-main .content-cart .top-panel .customer-search-box .search-result .suggession span.term{margin-right:15px}#wepos-main .content-cart .top-panel .customer-search-box .search-result .suggession span.term span:before{color:#5d5d5d;font-size:9px;margin-right:2px}#wepos-main .content-cart .top-panel .customer-search-box .search-result .suggession span.term strong{color:#5d5d5d;margin-right:2px}#wepos-main .content-cart .top-panel .customer-search-box svg.customer-icon{left:10px;position:absolute;top:8px}#wepos-main .content-cart .top-panel .action{flex:1}#wepos-main .content-cart .top-panel .action .more-options{text-align:right}#wepos-main .content-cart .top-panel .action .more-options span.more-icon:before{color:#bdc0c9;font-size:16px}#wepos-main .content-cart .cart-panel{background:#fff;border-radius:3px;box-shadow:0 3px 15px 0 rgba(0,0,0,.02);display:flex;flex-flow:column wrap;height:90%;position:relative}#wepos-main .content-cart .cart-panel .cart-calculation{flex-grow:0;width:100%}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table{border-collapse:collapse;width:100%}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr{border-bottom:1px solid #eceef0;display:table-row;height:35px;line-height:20px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr:first-child{border-top:1px solid #eceef0}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr:last-child{border-bottom:none}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr:nth-child(odd){background:#fafbfe}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr td{font-weight:700;line-height:20px;padding:9px 12px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr td:last-child{text-align:right}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr td.label{width:45%}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr td.price{text-align:right;width:45%}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr td.action{width:6%}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr td.action span:before{background:#bdc0c9;border:none;border-radius:50px;color:#fff;cursor:pointer;font-size:7px;padding:5px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr td.action span:hover:before{background:#e9485e;border:none;color:#fff}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-action td{text-align:left}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-action td a{background:#fff;border:1px solid #e0e5ea;border-radius:3px;color:#3b80f4;font-size:12px;margin-right:5px;padding:5px 8px;text-decoration:none}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td.label span.name{color:#758598;font-size:12px;font-weight:400;margin-left:5px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td.label label{font-weight:400;margin-right:5px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td.label .fee-name{width:15%}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td.label .fee-amount{margin-right:5px;width:15%}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td.label select.fee-tax-class{background:#fff;border:1px solid #e9ebed;border-radius:3px;height:24px;padding:5px;width:22%}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td.label select.fee-tax-class:focus{outline:none}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=number],#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=text]{border:1px solid #eceef0;border-radius:3px;padding:5px 8px;width:50%}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=number]:focus,#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=text]:focus{-webkit-appearance:none;outline:none}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=number]::placeholder,#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=text]::placeholder{color:#999dac;font-size:13px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=number]:-ms-input-placeholder,#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=text]:-ms-input-placeholder{color:#999dac;font-size:13px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=number]::-ms-input-placeholder,#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=text]::-ms-input-placeholder{color:#999dac;font-size:13px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td button{background:#3b80f4;border:1px solid #3b80f4;border-radius:3px;color:#fff;cursor:pointer;margin-left:5px;padding:5px 8px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td button.cancel{background:#fff;border:1px solid #afafaf;color:#222}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td button:disabled{background:#76a2ed;border-color:#76a2ed}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.note .note-text{font-weight:400}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.pay-now{background:#1abc9c;color:#fff;cursor:pointer;font-size:16px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.pay-now td{padding:18px 10px 18px 12px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.pay-now td.amount{text-align:right}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.pay-now td.icon{line-height:25px;padding:0 5px;text-align:left}#wepos-main .content-cart .cart-panel .cart-content{flex:5;overflow-x:scroll}#wepos-main .content-cart .cart-panel .cart-content table.cart-table{border-collapse:collapse;width:100%}#wepos-main .content-cart .cart-panel .cart-content table.cart-table thead tr{border-bottom:1px solid #eceef0;box-shadow:0 3px 15px 0 rgba(0,0,0,.04);color:#3b80f4;font-size:13px;text-align:left}#wepos-main .content-cart .cart-panel .cart-content table.cart-table thead tr th{line-height:19px;padding:8px 12px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr{border-bottom:1px solid #eceef0;display:table-row;height:35px;line-height:20px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr.no-item{border-bottom:none;height:55vh;text-align:center}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr.no-item p{color:#c6cace;font-size:17px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td{font-size:13px;padding:8px 12px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.name{font-weight:700}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.name .attribute ul{list-style:none;margin:0;padding:0}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.name .attribute ul li{display:inline-block;font-size:12px;font-weight:400;margin-right:5px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.name .attribute ul li .attr_name{color:#758598}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.price span{display:block}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.price span.regular-price{color:#9095a5;font-size:11px;padding-left:5px;text-decoration:line-through}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.action span:before,#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.remove span:before{background:#bdc0c9;border:.84px solid #bdc0c9;border-radius:50px;color:#fff;cursor:pointer;display:inline-block;font-size:8px;text-align:center;width:20px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.action span.open:before,#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.remove span.open:before{background:#3b80f4;border:.84px solid #3b80f4;-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-o-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(89deg)}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.remove span:before{border:none;color:#fff}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.remove span:hover:before{background:#e9485e;border:none;color:#fff}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr.update-quantity-wrap td{background:#f6f7fb;padding:10px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr.update-quantity-wrap td span{margin-right:5px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr.update-quantity-wrap td span input[type=number]{-webkit-appearance:none;border:1px solid #eceef0;border-radius:3px;font-size:13px;margin-right:5px;outline:none;padding:5px;width:60px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr.update-quantity-wrap td span input[type=number]::-webkit-inner-spin-button,#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr.update-quantity-wrap td span input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr.update-quantity-wrap td span.qty-action a{background:#fff;border:1px solid #eceef0;border-radius:3px;color:#999dac;display:inline-block;font-size:18px;font-weight:700;height:23px;margin-right:3px;text-align:center;text-decoration:none;width:25px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr.update-quantity-wrap td span.qty-action a.add{background:#3b80f4;color:#fff}#wepos-main .wepos-help-wrapper{margin-top:20px;padding:15px 20px}#wepos-main .wepos-help-wrapper h2{border-bottom:1px solid #eceef0;color:#c6cace;font-weight:400;margin:0 0 15px;padding:0 0 15px}#wepos-main .wepos-help-wrapper ul{list-style:none;margin:0;padding:0}#wepos-main .wepos-help-wrapper ul li{display:inline-block;margin-bottom:20px;margin-right:2%;width:48%}#wepos-main .wepos-help-wrapper ul li:nth-child(2n){margin-right:0}#wepos-main .wepos-help-wrapper ul li span{display:block}#wepos-main .wepos-help-wrapper ul li span.code{color:#758598;float:left;font-size:15px;width:40%}#wepos-main .wepos-help-wrapper ul li span.title{display:block;float:left;width:58%}@media screen and (max-width:768px){#wepos-main{display:table-row}#wepos-main .content-cart{min-height:200px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table{height:fit-content}} \ No newline at end of file diff --git a/assets/css/frontend.min.css b/assets/css/frontend.min.css index fa21faef..51719b77 100644 --- a/assets/css/frontend.min.css +++ b/assets/css/frontend.min.css @@ -1 +1 @@ -.overlay{background:#000;background-color:#000;filter:alpha(opacity=20);height:100%;left:0;opacity:.25;position:fixed;top:0;width:100%;z-index:99}.variation-attribute-wrapper{padding:10px 20px 0}.variation-attribute-wrapper .attribute{margin-bottom:15px}.variation-attribute-wrapper .attribute p{font-size:14px;font-weight:700;margin:0 0 5px;padding:0;text-align:left}.variation-attribute-wrapper .attribute .options{text-align:left}.variation-attribute-wrapper .attribute .options label{display:inline-block}.variation-attribute-wrapper .attribute .options label input[type=radio]{-webkit-appearance:none;display:none}.variation-attribute-wrapper .attribute .options label input[type=radio]:checked+.box{background:#1abc9c;border:1px solid #1abc9c;color:#fff}.variation-attribute-wrapper .attribute .options label .box{border:1px solid #e0e5ea;border-radius:3px;cursor:pointer;font-size:13px;margin-bottom:5px;margin-right:5px;padding:6px 10px}.add-variation-btn{background:#3b80f4;border:none;border-radius:3px;color:#fff;cursor:pointer;font-size:14px;padding:10px;width:150px}.add-variation-btn:active,.add-variation-btn:focus{outline:none}.add-variation-btn:disabled{background:#76a2ed}.wepos-new-customer-form{padding:20px}.wepos-new-customer-form .customer-country.multiselect--active .multiselect__input,.wepos-new-customer-form .customer-state.multiselect--active .multiselect__input{padding:0 3px!important}.wepos-new-customer-form button.add-new-customer-btn:disabled{background:#76a2ed;border:1px solid #76a2ed;cursor:no-drop!important}aside.vue-keyboard .vue-keyboard-row[data-keys="3"]{border-bottom:1px solid #eceef0}aside.vue-keyboard .vue-keyboard-row[data-keys="3"] button{border:none;border-right:1px solid #eceef0;color:#212121;cursor:pointer;display:inline-block;font-size:24px;height:60px;padding:5px 20px;text-align:center;width:80px}aside.vue-keyboard .vue-keyboard-row[data-keys="3"] button:last-child{border-right:none}aside.vue-keyboard .vue-keyboard-row[data-keys="3"] button span.keypord-icon:before{font-weight:700}aside.vue-keyboard .vue-keyboard-row[data-keys="3"]:first-child{border-top:1px solid #eceef0}aside.vue-keyboard .vue-keyboard-row[data-keys="2"] button{background:#3b80f4;border:none;border-right:1px solid #fff;color:#fff;font-size:14px;padding:15px;width:50%}aside.vue-keyboard .vue-keyboard-row[data-keys="2"] button:last-child{border-right:none}aside.vue-keyboard .vue-keyboard-row[data-keys="2"] button span.keypord-icon:before{font-weight:700}.wepos-fee-keypad-wrap{display:inline-block;float:left}.fee-keypad .tooltip-inner input{border:none;font-size:20px;height:25px;padding:13px;width:87%}.fee-keypad .tooltip-inner button[data-action=flat],.fee-keypad .tooltip-inner button[data-action=percent]{cursor:pointer}#wepos-print-receipt{display:inline}[v-cloak]{display:none}@media print{@page{margin:.5cm}.wepos-modal-content,body *{visibility:hidden}.wepos-checkout-print-wrapper{color:#000;display:inline-block!important;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.wepos-checkout-print-wrapper *{visibility:visible}.wepos-checkout-print-wrapper{left:0;position:absolute;top:0;width:100%}.wepos-checkout-print-wrapper .footer,.wepos-checkout-print-wrapper .header{padding:5px;text-align:center}.wepos-checkout-print-wrapper .order-info{border-bottom:1px dashed #b7b7b7;margin:10px 0;padding:10px 5px}.wepos-checkout-print-wrapper .content{padding:10px}.wepos-checkout-print-wrapper .content table.sale-summary{border-collapse:collapse;width:100%}.wepos-checkout-print-wrapper .content table.sale-summary tbody tr td{font-size:14px;padding:8px 10px}.wepos-checkout-print-wrapper .content table.sale-summary tbody tr td.name{font-weight:700;width:60%}.wepos-checkout-print-wrapper .content table.sale-summary tbody tr td.name .attribute{margin-top:2px}.wepos-checkout-print-wrapper .content table.sale-summary tbody tr td.name .attribute ul{list-style:none;margin:0;padding:0}.wepos-checkout-print-wrapper .content table.sale-summary tbody tr td.name .attribute ul li{display:inline-block;font-size:12px;font-weight:400;margin-right:5px}.wepos-checkout-print-wrapper .content table.sale-summary tbody tr td.name .attribute ul li .attr_name{color:#758598}.wepos-checkout-print-wrapper .content table.sale-summary tbody tr td.quantity{color:#758598;text-align:center;width:12%}.wepos-checkout-print-wrapper .content table.sale-summary tbody tr td.price{color:#758598;text-align:right}.wepos-checkout-print-wrapper .content table.sale-summary tbody tr td.price span{color:#758598}.wepos-checkout-print-wrapper .content table.sale-summary tbody tr td.price span.regular-price{color:#9095a5;font-size:12px;padding-right:3px;text-decoration:line-through}.wepos-checkout-print-wrapper .content table.sale-summary tbody tr.cart-meta-data td .metadata{color:#758598;font-size:13px;font-weight:400;margin-left:6px}.wepos-checkout-print-wrapper .content table.sale-summary tbody tr.divider{border-bottom:1px dashed #b7b7b7;color:#b5b5b5}}.wepos-custom-note-wrap{display:inline-block;float:left}.customer-note .tooltip-inner{box-sizing:border-box;padding:10px;width:500px}.customer-note .tooltip-inner form{text-align:right}.customer-note .tooltip-inner form textarea{border:1px solid #e9edf0;border-radius:3px;box-shadow:0 3px 15px 0 rgba(0,0,0,.02);box-sizing:border-box;font-size:13px;height:100px;line-height:10px;margin-bottom:10px;padding:10px;width:100%}.customer-note .tooltip-inner form textarea:focus{outline:none}.customer-note .tooltip-inner form button.add-note-btn{background:#3b80f4;border:1px solid #3b80f4;border-radius:3px;color:#fff;cursor:pointer;font-size:14px;padding:6px 25px}.customer-note .tooltip-inner form button.add-note-btn:disabled{background:#76a2ed;border-color:#76a2ed;cursor:no-drop}#wepos-main{display:flex;padding:20px}#wepos-main .content-product{flex:2;margin-right:20px}#wepos-main .content-product .top-panel{margin-bottom:20px}#wepos-main .content-product .top-panel .search-bar{float:left;margin-right:2%;width:56%}#wepos-main .content-product .top-panel .search-bar .search-box{position:relative}#wepos-main .content-product .top-panel .search-bar .search-box input#product-search{border:1px solid #e9edf0;border-radius:3px;box-shadow:0 3px 15px 0 rgba(0,0,0,.02);box-sizing:border-box;font-size:14px;height:35px;line-height:10px;padding-left:32px;padding-right:120px;width:100%}#wepos-main .content-product .top-panel .search-bar .search-box input#product-search::placeholder{color:#999dac;font-size:13px}#wepos-main .content-product .top-panel .search-bar .search-box input#product-search:-ms-input-placeholder{color:#999dac;font-size:13px}#wepos-main .content-product .top-panel .search-bar .search-box input#product-search::-ms-input-placeholder{color:#999dac;font-size:13px}#wepos-main .content-product .top-panel .search-bar .search-box input#product-search:focus{outline:none}#wepos-main .content-product .top-panel .search-bar .search-box span.search-icon{color:#3b80f4;height:10px;left:10px;position:absolute;top:8px}#wepos-main .content-product .top-panel .search-bar .search-box span.search-icon:before{font-size:14px}#wepos-main .content-product .top-panel .search-bar .search-box .search-type{position:absolute;right:0;top:0}#wepos-main .content-product .top-panel .search-bar .search-box .search-type a{box-sizing:border-box;color:#bdc0c9;display:inline-block;font-size:13px;height:35px;line-height:14px;margin-left:-2px;padding:10px;text-decoration:none}#wepos-main .content-product .top-panel .search-bar .search-box .search-type a.active{background:#3b80f4;color:#fff}#wepos-main .content-product .top-panel .search-bar .search-box .search-type a:first-child{border-left:1px solid #e9ebed}#wepos-main .content-product .top-panel .search-bar .search-box .search-type a:last-child{border-bottom-right-radius:3px;border-top-right-radius:3px}#wepos-main .content-product .top-panel .search-bar .search-box .search-result{background:#fff;border:1px solid #e9edf0;border-bottom-left-radius:3px;border-bottom-right-radius:3px;border-top:none;box-shadow:0 30px 45px -10px rgba(0,0,0,.2);box-sizing:border-box;position:absolute;width:100%;z-index:999}#wepos-main .content-product .top-panel .search-bar .search-box .search-result .no-data-found{color:#758598;padding:20px;text-align:center}#wepos-main .content-product .top-panel .search-bar .search-box .search-result ul{list-style-type:none;margin:0;max-height:300px;overflow:scroll;padding:0}#wepos-main .content-product .top-panel .search-bar .search-box .search-result ul li a{border-bottom:1px solid #e9edf0;color:#212121;display:block;padding:8px 10px;text-decoration:none}#wepos-main .content-product .top-panel .search-bar .search-box .search-result ul li a span{color:#758598;font-size:11px;margin-left:10px}#wepos-main .content-product .top-panel .search-bar .search-box .search-result ul li a span.action{visibility:hidden}#wepos-main .content-product .top-panel .search-bar .search-box .search-result ul li a span.action:before{font-size:12px}#wepos-main .content-product .top-panel .search-bar .search-box .search-result ul li a:hover span.action{visibility:visible}#wepos-main .content-product .top-panel .search-bar .search-box .search-result ul li:last-child a{border-bottom:none}#wepos-main .content-product .top-panel .search-bar .search-box .search-result ul li.selected{background:#f6f7fb}#wepos-main .content-product .top-panel .search-bar .search-box .search-result ul li.selected a span.action{visibility:visible}#wepos-main .content-product .top-panel .search-bar .search-box .search-result .suggession{background:#f6f7fb;border-top:1px solid #eceef0;color:#999dac;font-size:11px;padding:12px}#wepos-main .content-product .top-panel .search-bar .search-box .search-result .suggession span.term{margin-right:15px}#wepos-main .content-product .top-panel .search-bar .search-box .search-result .suggession span.term span:before{color:#5d5d5d;font-size:9px;margin-right:2px}#wepos-main .content-product .top-panel .search-bar .search-box .search-result .suggession span.term strong{color:#5d5d5d;margin-right:2px}#wepos-main .content-product .top-panel .category{float:left;margin-right:2%;position:relative;width:26%}#wepos-main .content-product .top-panel .category select#product-category{-moz-appearance:none;-webkit-appearance:none;appearance:none;background:#fff;border:1px solid #e9edf0;border-radius:3px;box-shadow:0 3px 15px 0 rgba(0,0,0,.02);box-sizing:border-box;color:#758598;font-size:13px;padding:9px;width:100%}#wepos-main .content-product .top-panel .category select#product-category:focus{outline:none}#wepos-main .content-product .top-panel .category span.select-arrow{position:absolute;right:9px;top:9px}#wepos-main .content-product .top-panel .category span.select-arrow:before{color:#758598;font-size:13px;margin-left:0}#wepos-main .content-product .top-panel .toggle-view{float:left;text-align:right;width:14%}#wepos-main .content-product .top-panel .toggle-view .toggle-icon{background:#fff;border:1px solid #e9edf0;box-shadow:0 3px 15px 0 rgba(0,0,0,.02);color:#bdc0c9;cursor:pointer;display:inline-block;padding:8px 10px}#wepos-main .content-product .top-panel .toggle-view .toggle-icon.active{color:#3b80f4}#wepos-main .content-product .top-panel .toggle-view .toggle-icon:before{font-size:13px;margin-left:0}#wepos-main .content-product .top-panel .toggle-view .toggle-icon.list-view{border-right:none;margin-right:-4px}#wepos-main .content-product .breadcrumb{background:#fff;box-shadow:0 3px 15px 0 rgba(0,0,0,.02);margin-bottom:20px;padding:8px 12px;position:relative}#wepos-main .content-product .breadcrumb span.close-breadcrumb{color:#9b59b6;cursor:pointer;position:absolute;right:15px;top:5px}#wepos-main .content-product .breadcrumb span.close-breadcrumb:before{font-size:9px}#wepos-main .content-product .breadcrumb ul{line-height:16px;margin:0;padding:0}#wepos-main .content-product .breadcrumb ul li{display:inline-block}#wepos-main .content-product .breadcrumb ul li:after{color:#758598;content:"\f10b";font-family:Flaticon;font-size:9px;margin-left:7px;margin-right:4px}#wepos-main .content-product .breadcrumb ul li:last-child:after{content:""}#wepos-main .content-product .breadcrumb ul li a{color:#9b59b6;font-size:13px;text-decoration:none}#wepos-main .content-product .items-wrapper.grid{display:flex;flex-flow:row wrap;height:84.9vh;justify-content:flex-start;margin:0 -10px;overflow:auto}#wepos-main .content-product .items-wrapper.grid .item{box-sizing:border-box;flex-basis:20%;-ms-flex:auto;margin-bottom:20px;padding:0 10px;text-align:center}#wepos-main .content-product .items-wrapper.grid .item:focus{outline:none}#wepos-main .content-product .items-wrapper.grid .item .item-wrap{background:#fff;cursor:pointer;margin-bottom:-2px;position:relative}#wepos-main .content-product .items-wrapper.grid .item .item-wrap:focus{-webkit-appearance:none;outline:none}#wepos-main .content-product .items-wrapper.grid .item .item-wrap img{width:100%}#wepos-main .content-product .items-wrapper.grid .item .item-wrap .title{border-top:1px solid #e9edf0;color:#212121;font-size:13px;margin-top:-3px;padding:10px 5px}#wepos-main .content-product .items-wrapper.grid .item .item-wrap .add-product-icon{background:rgba(0,0,0,.3);height:100%;position:absolute;right:0;top:0;visibility:hidden;width:100%}#wepos-main .content-product .items-wrapper.grid .item .item-wrap .add-product-icon:before{color:#fff;display:inline-block;font-size:35px;font-weight:400;margin-top:40%;text-shadow:1px 1px 1px rgba(0,0,0,.5)}#wepos-main .content-product .items-wrapper.grid .item .item-wrap:hover .add-product-icon{visibility:visible}#wepos-main .content-product .items-wrapper.grid .item .disabled{border:1px solid #ffcbcb;cursor:not-allowed;opacity:.4}#wepos-main .content-product .items-wrapper.list{height:84.9vh;overflow:auto}#wepos-main .content-product .items-wrapper.list .item .item-wrap{background:#fff;border-radius:3px;box-shadow:0 3px 15px 0 rgba(0,0,0,.02);cursor:pointer;margin-bottom:20px;overflow:hidden;position:relative}#wepos-main .content-product .items-wrapper.list .item .item-wrap .img{border-right:1px solid #f0f2f4;float:left;height:80px;margin-right:20px;width:80px}#wepos-main .content-product .items-wrapper.list .item .item-wrap .img img{height:100%;width:100%}#wepos-main .content-product .items-wrapper.list .item .item-wrap .title{float:left;font-size:14px;font-weight:700;height:100%;height:44px;left:100px;margin-top:-22px;max-width:78%;position:absolute;top:40px}#wepos-main .content-product .items-wrapper.list .item .item-wrap .title .product-name{margin-bottom:8px}#wepos-main .content-product .items-wrapper.list .item .item-wrap .title ul.meta{font-size:13px;font-weight:400;list-style:none;margin:0;padding:0}#wepos-main .content-product .items-wrapper.list .item .item-wrap .title ul.meta li{display:inline-block}#wepos-main .content-product .items-wrapper.list .item .item-wrap .title ul.meta li .label{color:#758598;margin-right:3px}#wepos-main .content-product .items-wrapper.list .item .item-wrap .title ul.meta li .value del{color:#9095a5;margin-right:3px}#wepos-main .content-product .items-wrapper.list .item .item-wrap .title ul.meta li:after{color:#e9ebed;content:"|";display:inline-block;margin:0 7px}#wepos-main .content-product .items-wrapper.list .item .item-wrap .title ul.meta li:last-child:after{content:""}#wepos-main .content-product .items-wrapper.list .item .item-wrap .add-product-icon{position:absolute;right:3%;top:35%}#wepos-main .content-product .items-wrapper.list .item .item-wrap .add-product-icon:before{color:#1a9ed4;font-weight:400}#wepos-main .content-product .items-wrapper .product-loading{color:#c6cace;display:block;font-size:16px;padding:10px;position:relative;text-align:center;width:100%}#wepos-main .content-product .items-wrapper .no-product-found{margin:auto 0;text-align:center;vertical-align:middle;width:100%}#wepos-main .content-product .items-wrapper .no-product-found p{color:#c6cace;font-size:18px}#wepos-main .content-cart{flex:1.3;height:94.5vh}#wepos-main .content-cart .top-panel{display:flex;margin-bottom:20px}#wepos-main .content-cart .top-panel .customer-search-box{flex:7;position:relative}#wepos-main .content-cart .top-panel .customer-search-box input#customer-search{border:1px solid #e9edf0;border-radius:3px;box-shadow:0 3px 15px 0 rgba(0,0,0,.02);box-sizing:border-box;font-size:14px;height:33px;height:35px;line-height:10px;padding:10px 10px 10px 35px;width:100%}#wepos-main .content-cart .top-panel .customer-search-box input#customer-search::placeholder{color:#999dac;font-size:13px}#wepos-main .content-cart .top-panel .customer-search-box input#customer-search:-ms-input-placeholder{color:#999dac;font-size:13px}#wepos-main .content-cart .top-panel .customer-search-box input#customer-search::-ms-input-placeholder{color:#999dac;font-size:13px}#wepos-main .content-cart .top-panel .customer-search-box input#customer-search:focus{outline:none}#wepos-main .content-cart .top-panel .customer-search-box span.add-new-customer{position:absolute;right:10px;top:9px}#wepos-main .content-cart .top-panel .customer-search-box span.add-new-customer:before{color:#bdc0c9;cursor:pointer;font-size:15px}#wepos-main .content-cart .top-panel .customer-search-box .search-result{background:#fff;border:1px solid #e9edf0;border-bottom-left-radius:3px;border-bottom-right-radius:3px;border-top:none;box-shadow:0 30px 45px -10px rgba(0,0,0,.2);box-sizing:border-box;position:absolute;width:100%;z-index:99}#wepos-main .content-cart .top-panel .customer-search-box .search-result .no-data-found{color:#758598;padding:20px;text-align:center}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul{list-style-type:none;margin:0;max-height:300px;overflow:scroll;padding:0}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li a{border-bottom:1px solid #e9edf0;color:#212121;display:block;padding:8px 10px;text-decoration:none}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li a span{color:#758598;font-size:13px;margin-left:10px}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li a span.avatar img{border-radius:20px;width:20px}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li a span.name{color:#212121;font-size:14px;line-height:18px;margin-left:6px}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li a span.action{visibility:hidden}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li a span.action:before{font-size:12px}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li a:hover span.action{visibility:visible}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li:last-child a{border-bottom:none}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li.selected{background:#f6f7fb}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li.selected a span.action{visibility:visible}#wepos-main .content-cart .top-panel .customer-search-box .search-result .suggession{background:#f6f7fb;border-top:1px solid #eceef0;color:#999dac;font-size:11px;padding:12px}#wepos-main .content-cart .top-panel .customer-search-box .search-result .suggession span.term{margin-right:15px}#wepos-main .content-cart .top-panel .customer-search-box .search-result .suggession span.term span:before{color:#5d5d5d;font-size:9px;margin-right:2px}#wepos-main .content-cart .top-panel .customer-search-box .search-result .suggession span.term strong{color:#5d5d5d;margin-right:2px}#wepos-main .content-cart .top-panel .customer-search-box svg.customer-icon{left:10px;position:absolute;top:8px}#wepos-main .content-cart .top-panel .action{flex:1}#wepos-main .content-cart .top-panel .action .more-options{text-align:right}#wepos-main .content-cart .top-panel .action .more-options span.more-icon:before{color:#bdc0c9;font-size:16px}#wepos-main .content-cart .cart-panel{background:#fff;border-radius:3px;box-shadow:0 3px 15px 0 rgba(0,0,0,.02);display:flex;flex-flow:column wrap;height:90%;position:relative}#wepos-main .content-cart .cart-panel .cart-calculation{flex-grow:0;width:100%}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table{border-collapse:collapse;width:100%}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr{border-bottom:1px solid #eceef0;display:table-row;height:35px;line-height:20px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr:first-child{border-top:1px solid #eceef0}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr:last-child{border-bottom:none}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr:nth-child(odd){background:#fafbfe}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr td{font-weight:700;line-height:20px;padding:9px 12px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr td:last-child{text-align:right}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr td.label{width:45%}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr td.price{text-align:right;width:45%}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr td.action{width:6%}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr td.action span:before{background:#bdc0c9;border:none;border-radius:50px;color:#fff;cursor:pointer;font-size:7px;padding:5px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr td.action span:hover:before{background:#e9485e;border:none;color:#fff}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-action td{text-align:left}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-action td a{background:#fff;border:1px solid #e0e5ea;border-radius:3px;color:#3b80f4;font-size:12px;margin-right:5px;padding:5px 8px;text-decoration:none}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td.label span.name{color:#758598;font-size:12px;font-weight:400;margin-left:5px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td.label label{font-weight:400;margin-right:5px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td.label .fee-name{width:15%}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td.label .fee-amount{margin-right:5px;width:15%}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td.label select.fee-tax-class{background:#fff;border:1px solid #e9ebed;border-radius:3px;height:24px;padding:5px;width:22%}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td.label select.fee-tax-class:focus{outline:none}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=number],#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=text]{border:1px solid #eceef0;border-radius:3px;padding:5px 8px;width:50%}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=number]:focus,#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=text]:focus{-webkit-appearance:none;outline:none}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=number]::placeholder,#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=text]::placeholder{color:#999dac;font-size:13px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=number]:-ms-input-placeholder,#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=text]:-ms-input-placeholder{color:#999dac;font-size:13px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=number]::-ms-input-placeholder,#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=text]::-ms-input-placeholder{color:#999dac;font-size:13px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td button{background:#3b80f4;border:1px solid #3b80f4;border-radius:3px;color:#fff;cursor:pointer;margin-left:5px;padding:5px 8px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td button.cancel{background:#fff;border:1px solid #afafaf;color:#222}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td button:disabled{background:#76a2ed;border-color:#76a2ed}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.note .note-text{font-weight:400}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.pay-now{background:#1abc9c;color:#fff;cursor:pointer;font-size:16px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.pay-now td{padding:18px 10px 18px 12px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.pay-now td.amount{text-align:right}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.pay-now td.icon{line-height:25px;padding:0 5px;text-align:left}#wepos-main .content-cart .cart-panel .cart-content{flex:5;overflow-x:scroll}#wepos-main .content-cart .cart-panel .cart-content table.cart-table{border-collapse:collapse;width:100%}#wepos-main .content-cart .cart-panel .cart-content table.cart-table thead tr{border-bottom:1px solid #eceef0;box-shadow:0 3px 15px 0 rgba(0,0,0,.04);color:#3b80f4;font-size:13px;text-align:left}#wepos-main .content-cart .cart-panel .cart-content table.cart-table thead tr th{line-height:19px;padding:8px 12px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr{border-bottom:1px solid #eceef0;display:table-row;height:35px;line-height:20px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr.no-item{border-bottom:none;height:55vh;text-align:center}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr.no-item p{color:#c6cace;font-size:17px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td{font-size:13px;padding:8px 12px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.name{font-weight:700}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.name .attribute ul{list-style:none;margin:0;padding:0}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.name .attribute ul li{display:inline-block;font-size:12px;font-weight:400;margin-right:5px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.name .attribute ul li .attr_name{color:#758598}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.price span{display:block}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.price span.regular-price{color:#9095a5;font-size:11px;padding-left:5px;text-decoration:line-through}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.action span:before,#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.remove span:before{background:#bdc0c9;border:.84px solid #bdc0c9;border-radius:50px;color:#fff;cursor:pointer;display:inline-block;font-size:8px;text-align:center;width:20px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.action span.open:before,#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.remove span.open:before{background:#3b80f4;border:.84px solid #3b80f4;-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-o-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(89deg)}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.remove span:before{border:none;color:#fff}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.remove span:hover:before{background:#e9485e;border:none;color:#fff}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr.update-quantity-wrap td{background:#f6f7fb;padding:10px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr.update-quantity-wrap td span{margin-right:5px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr.update-quantity-wrap td span input[type=number]{-webkit-appearance:none;border:1px solid #eceef0;border-radius:3px;font-size:13px;margin-right:5px;outline:none;padding:5px;width:60px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr.update-quantity-wrap td span input[type=number]::-webkit-inner-spin-button,#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr.update-quantity-wrap td span input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr.update-quantity-wrap td span.qty-action a{background:#fff;border:1px solid #eceef0;border-radius:3px;color:#999dac;display:inline-block;font-size:18px;font-weight:700;height:23px;margin-right:3px;text-align:center;text-decoration:none;width:25px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr.update-quantity-wrap td span.qty-action a.add{background:#3b80f4;color:#fff}#wepos-main .wepos-help-wrapper{margin-top:20px;padding:15px 20px}#wepos-main .wepos-help-wrapper h2{border-bottom:1px solid #eceef0;color:#c6cace;font-weight:400;margin:0 0 15px;padding:0 0 15px}#wepos-main .wepos-help-wrapper ul{list-style:none;margin:0;padding:0}#wepos-main .wepos-help-wrapper ul li{display:inline-block;margin-bottom:20px;margin-right:2%;width:48%}#wepos-main .wepos-help-wrapper ul li:nth-child(2n){margin-right:0}#wepos-main .wepos-help-wrapper ul li span{display:block}#wepos-main .wepos-help-wrapper ul li span.code{color:#758598;float:left;font-size:15px;width:40%}#wepos-main .wepos-help-wrapper ul li span.title{display:block;float:left;width:58%}@media screen and (max-width:768px){#wepos-main{display:table-row}#wepos-main .content-cart{min-height:200px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table{height:fit-content}} \ No newline at end of file +.overlay{background:#000;background-color:#000;filter:alpha(opacity=20);height:100%;left:0;opacity:.25;position:fixed;top:0;width:100%;z-index:99}.variation-attribute-wrapper{padding:10px 20px 0}.variation-attribute-wrapper .attribute{margin-bottom:15px}.variation-attribute-wrapper .attribute p{font-size:14px;font-weight:700;margin:0 0 5px;padding:0;text-align:left}.variation-attribute-wrapper .attribute .options{text-align:left}.variation-attribute-wrapper .attribute .options label{display:inline-block}.variation-attribute-wrapper .attribute .options label input[type=radio]{-webkit-appearance:none;display:none}.variation-attribute-wrapper .attribute .options label input[type=radio]:checked+.box{background:#1abc9c;border:1px solid #1abc9c;color:#fff}.variation-attribute-wrapper .attribute .options label .box{border:1px solid #e0e5ea;border-radius:3px;cursor:pointer;font-size:13px;margin-bottom:5px;margin-right:5px;padding:6px 10px}.add-variation-btn{background:#3b80f4;border:none;border-radius:3px;color:#fff;cursor:pointer;font-size:14px;padding:10px;width:150px}.add-variation-btn:active,.add-variation-btn:focus{outline:none}.add-variation-btn:disabled{background:#76a2ed}.wepos-new-customer-form{padding:20px}.wepos-new-customer-form .customer-country.multiselect--active .multiselect__input,.wepos-new-customer-form .customer-state.multiselect--active .multiselect__input{padding:0 3px!important}.wepos-new-customer-form button.add-new-customer-btn:disabled{background:#76a2ed;border:1px solid #76a2ed;cursor:no-drop!important}aside.vue-keyboard .vue-keyboard-row[data-keys="3"]{border-bottom:1px solid #eceef0}aside.vue-keyboard .vue-keyboard-row[data-keys="3"] button{border:none;border-right:1px solid #eceef0;color:#212121;cursor:pointer;display:inline-block;font-size:24px;height:60px;padding:5px 20px;text-align:center;width:80px}aside.vue-keyboard .vue-keyboard-row[data-keys="3"] button:last-child{border-right:none}aside.vue-keyboard .vue-keyboard-row[data-keys="3"] button span.keypord-icon:before{font-weight:700}aside.vue-keyboard .vue-keyboard-row[data-keys="3"]:first-child{border-top:1px solid #eceef0}aside.vue-keyboard .vue-keyboard-row[data-keys="2"] button{background:#3b80f4;border:none;border-right:1px solid #fff;color:#fff;font-size:14px;padding:15px;width:50%}aside.vue-keyboard .vue-keyboard-row[data-keys="2"] button:last-child{border-right:none}aside.vue-keyboard .vue-keyboard-row[data-keys="2"] button span.keypord-icon:before{font-weight:700}.wepos-fee-keypad-wrap{display:inline-block;float:left}.fee-keypad .tooltip-inner input{border:none;font-size:20px;height:25px;padding:13px;width:87%}.fee-keypad .tooltip-inner button[data-action=flat],.fee-keypad .tooltip-inner button[data-action=percent]{cursor:pointer}#wepos-print-receipt{display:inline}[v-cloak]{display:none}@media print{@page{margin:.5cm}.wepos-modal-content,body *{visibility:hidden}.wepos-checkout-print-wrapper{color:#000;display:inline-block!important;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.wepos-checkout-print-wrapper *{visibility:visible}.wepos-checkout-print-wrapper{left:0;position:absolute;top:0;width:100%}.wepos-checkout-print-wrapper .footer,.wepos-checkout-print-wrapper .header{padding:5px;text-align:center}.wepos-checkout-print-wrapper .order-info{border-bottom:1px dashed #b7b7b7;margin:10px 0;padding:10px 5px}.wepos-checkout-print-wrapper .content{padding:10px}.wepos-checkout-print-wrapper .content table.sale-summary{border-collapse:collapse;width:100%}.wepos-checkout-print-wrapper .content table.sale-summary tbody tr td{font-size:14px;padding:8px 10px}.wepos-checkout-print-wrapper .content table.sale-summary tbody tr td.name{font-weight:700;width:60%}.wepos-checkout-print-wrapper .content table.sale-summary tbody tr td.name .attribute{margin-top:2px}.wepos-checkout-print-wrapper .content table.sale-summary tbody tr td.name .attribute ul{list-style:none;margin:0;padding:0}.wepos-checkout-print-wrapper .content table.sale-summary tbody tr td.name .attribute ul li{display:inline-block;font-size:12px;font-weight:400;margin-right:5px}.wepos-checkout-print-wrapper .content table.sale-summary tbody tr td.name .attribute ul li .attr_name{color:#758598}.wepos-checkout-print-wrapper .content table.sale-summary tbody tr td.quantity{color:#758598;text-align:center;width:12%}.wepos-checkout-print-wrapper .content table.sale-summary tbody tr td.price{color:#758598;text-align:right}.wepos-checkout-print-wrapper .content table.sale-summary tbody tr td.price span{color:#758598}.wepos-checkout-print-wrapper .content table.sale-summary tbody tr td.price span.regular-price{color:#9095a5;font-size:12px;padding-right:3px;text-decoration:line-through}.wepos-checkout-print-wrapper .content table.sale-summary tbody tr.cart-meta-data td .metadata{color:#758598;font-size:13px;font-weight:400;margin-left:6px}.wepos-checkout-print-wrapper .content table.sale-summary tbody tr.divider{border-bottom:1px dashed #b7b7b7;color:#b5b5b5}}.wepos-custom-note-wrap{display:inline-block;float:left}.customer-note .tooltip-inner{box-sizing:border-box;padding:10px;width:500px}.customer-note .tooltip-inner form{text-align:right}.customer-note .tooltip-inner form textarea{border:1px solid #e9edf0;border-radius:3px;box-shadow:0 3px 15px 0 rgba(0,0,0,.02);box-sizing:border-box;font-size:13px;height:100px;line-height:10px;margin-bottom:10px;padding:10px;width:100%}.customer-note .tooltip-inner form textarea:focus{outline:none}.customer-note .tooltip-inner form button.add-note-btn{background:#3b80f4;border:1px solid #3b80f4;border-radius:3px;color:#fff;cursor:pointer;font-size:14px;padding:6px 25px}.customer-note .tooltip-inner form button.add-note-btn:disabled{background:#76a2ed;border-color:#76a2ed;cursor:no-drop}#wepos-main{display:flex;padding:20px}#wepos-main .content-product{flex:2;margin-right:20px}#wepos-main .content-product .top-panel{margin-bottom:20px}#wepos-main .content-product .top-panel .search-bar{float:left;margin-right:2%;width:56%}#wepos-main .content-product .top-panel .search-bar .search-box{position:relative}#wepos-main .content-product .top-panel .search-bar .search-box input#product-search{border:1px solid #e9edf0;border-radius:3px;box-shadow:0 3px 15px 0 rgba(0,0,0,.02);box-sizing:border-box;font-size:14px;height:35px;line-height:10px;padding-left:32px;padding-right:120px;width:100%}#wepos-main .content-product .top-panel .search-bar .search-box input#product-search::placeholder{color:#999dac;font-size:13px}#wepos-main .content-product .top-panel .search-bar .search-box input#product-search:-ms-input-placeholder{color:#999dac;font-size:13px}#wepos-main .content-product .top-panel .search-bar .search-box input#product-search::-ms-input-placeholder{color:#999dac;font-size:13px}#wepos-main .content-product .top-panel .search-bar .search-box input#product-search:focus{outline:none}#wepos-main .content-product .top-panel .search-bar .search-box span.search-icon{color:#3b80f4;height:10px;left:10px;position:absolute;top:8px}#wepos-main .content-product .top-panel .search-bar .search-box span.search-icon:before{font-size:14px}#wepos-main .content-product .top-panel .search-bar .search-box .clear-button{background-color:transparent;border:none;color:#bdc0c9;height:35px}#wepos-main .content-product .top-panel .search-bar .search-box .clear-button:hover{color:#e9485e}#wepos-main .content-product .top-panel .search-bar .search-box .search-type{position:absolute;right:0;top:0}#wepos-main .content-product .top-panel .search-bar .search-box .search-type a{box-sizing:border-box;color:#bdc0c9;display:inline-block;font-size:13px;height:35px;line-height:14px;margin-left:-2px;padding:10px;text-decoration:none}#wepos-main .content-product .top-panel .search-bar .search-box .search-type a.active{background:#3b80f4;color:#fff}#wepos-main .content-product .top-panel .search-bar .search-box .search-type a:first-child{border-left:1px solid #e9ebed}#wepos-main .content-product .top-panel .search-bar .search-box .search-type a:last-child{border-bottom-right-radius:3px;border-top-right-radius:3px}#wepos-main .content-product .top-panel .search-bar .search-box .search-result{background:#fff;border:1px solid #e9edf0;border-bottom-left-radius:3px;border-bottom-right-radius:3px;border-top:none;box-shadow:0 30px 45px -10px rgba(0,0,0,.2);box-sizing:border-box;position:absolute;width:100%;z-index:999}#wepos-main .content-product .top-panel .search-bar .search-box .search-result .no-data-found{color:#758598;padding:20px;text-align:center}#wepos-main .content-product .top-panel .search-bar .search-box .search-result ul{list-style-type:none;margin:0;max-height:300px;overflow:scroll;padding:0}#wepos-main .content-product .top-panel .search-bar .search-box .search-result ul li a{border-bottom:1px solid #e9edf0;color:#212121;display:block;padding:8px 10px;text-decoration:none}#wepos-main .content-product .top-panel .search-bar .search-box .search-result ul li a span{color:#758598;font-size:11px;margin-left:10px}#wepos-main .content-product .top-panel .search-bar .search-box .search-result ul li a span.action{visibility:hidden}#wepos-main .content-product .top-panel .search-bar .search-box .search-result ul li a span.action:before{font-size:12px}#wepos-main .content-product .top-panel .search-bar .search-box .search-result ul li a:hover span.action{visibility:visible}#wepos-main .content-product .top-panel .search-bar .search-box .search-result ul li:last-child a{border-bottom:none}#wepos-main .content-product .top-panel .search-bar .search-box .search-result ul li.selected{background:#f6f7fb}#wepos-main .content-product .top-panel .search-bar .search-box .search-result ul li.selected a span.action{visibility:visible}#wepos-main .content-product .top-panel .search-bar .search-box .search-result .suggession{background:#f6f7fb;border-top:1px solid #eceef0;color:#999dac;font-size:11px;padding:12px}#wepos-main .content-product .top-panel .search-bar .search-box .search-result .suggession span.term{margin-right:15px}#wepos-main .content-product .top-panel .search-bar .search-box .search-result .suggession span.term span:before{color:#5d5d5d;font-size:9px;margin-right:2px}#wepos-main .content-product .top-panel .search-bar .search-box .search-result .suggession span.term strong{color:#5d5d5d;margin-right:2px}#wepos-main .content-product .top-panel .category{float:left;margin-right:2%;position:relative;width:26%}#wepos-main .content-product .top-panel .category select#product-category{-moz-appearance:none;-webkit-appearance:none;appearance:none;background:#fff;border:1px solid #e9edf0;border-radius:3px;box-shadow:0 3px 15px 0 rgba(0,0,0,.02);box-sizing:border-box;color:#758598;font-size:13px;padding:9px;width:100%}#wepos-main .content-product .top-panel .category select#product-category:focus{outline:none}#wepos-main .content-product .top-panel .category span.select-arrow{position:absolute;right:9px;top:9px}#wepos-main .content-product .top-panel .category span.select-arrow:before{color:#758598;font-size:13px;margin-left:0}#wepos-main .content-product .top-panel .toggle-view{float:left;text-align:right;width:14%}#wepos-main .content-product .top-panel .toggle-view .toggle-icon{background:#fff;border:1px solid #e9edf0;box-shadow:0 3px 15px 0 rgba(0,0,0,.02);color:#bdc0c9;cursor:pointer;display:inline-block;padding:8px 10px}#wepos-main .content-product .top-panel .toggle-view .toggle-icon.active{color:#3b80f4}#wepos-main .content-product .top-panel .toggle-view .toggle-icon:before{font-size:13px;margin-left:0}#wepos-main .content-product .top-panel .toggle-view .toggle-icon.list-view{border-right:none;margin-right:-4px}#wepos-main .content-product .breadcrumb{background:#fff;box-shadow:0 3px 15px 0 rgba(0,0,0,.02);margin-bottom:20px;padding:8px 12px;position:relative}#wepos-main .content-product .breadcrumb span.close-breadcrumb{color:#9b59b6;cursor:pointer;position:absolute;right:15px;top:5px}#wepos-main .content-product .breadcrumb span.close-breadcrumb:before{font-size:9px}#wepos-main .content-product .breadcrumb ul{line-height:16px;margin:0;padding:0}#wepos-main .content-product .breadcrumb ul li{display:inline-block}#wepos-main .content-product .breadcrumb ul li:after{color:#758598;content:"\f10b";font-family:Flaticon;font-size:9px;margin-left:7px;margin-right:4px}#wepos-main .content-product .breadcrumb ul li:last-child:after{content:""}#wepos-main .content-product .breadcrumb ul li a{color:#9b59b6;font-size:13px;text-decoration:none}#wepos-main .content-product .items-wrapper.grid{display:flex;flex-flow:row wrap;height:84.9vh;justify-content:flex-start;margin:0 -10px;overflow:auto}#wepos-main .content-product .items-wrapper.grid .item{box-sizing:border-box;flex-basis:20%;-ms-flex:auto;margin-bottom:20px;padding:0 10px;text-align:center}#wepos-main .content-product .items-wrapper.grid .item:focus{outline:none}#wepos-main .content-product .items-wrapper.grid .item .item-wrap{background:#fff;cursor:pointer;margin-bottom:-2px;position:relative}#wepos-main .content-product .items-wrapper.grid .item .item-wrap:focus{-webkit-appearance:none;outline:none}#wepos-main .content-product .items-wrapper.grid .item .item-wrap img{width:100%}#wepos-main .content-product .items-wrapper.grid .item .item-wrap .title{border-top:1px solid #e9edf0;color:#212121;font-size:13px;margin-top:-3px;padding:10px 5px}#wepos-main .content-product .items-wrapper.grid .item .item-wrap .add-product-icon{background:rgba(0,0,0,.3);height:100%;position:absolute;right:0;top:0;visibility:hidden;width:100%}#wepos-main .content-product .items-wrapper.grid .item .item-wrap .add-product-icon:before{color:#fff;display:inline-block;font-size:35px;font-weight:400;margin-top:40%;text-shadow:1px 1px 1px rgba(0,0,0,.5)}#wepos-main .content-product .items-wrapper.grid .item .item-wrap:hover .add-product-icon{visibility:visible}#wepos-main .content-product .items-wrapper.grid .item .disabled{border:1px solid #ffcbcb;cursor:not-allowed;opacity:.4}#wepos-main .content-product .items-wrapper.list{height:84.9vh;overflow:auto}#wepos-main .content-product .items-wrapper.list .item .item-wrap{background:#fff;border-radius:3px;box-shadow:0 3px 15px 0 rgba(0,0,0,.02);cursor:pointer;margin-bottom:20px;overflow:hidden;position:relative}#wepos-main .content-product .items-wrapper.list .item .item-wrap .img{border-right:1px solid #f0f2f4;float:left;height:80px;margin-right:20px;width:80px}#wepos-main .content-product .items-wrapper.list .item .item-wrap .img img{height:100%;width:100%}#wepos-main .content-product .items-wrapper.list .item .item-wrap .title{float:left;font-size:14px;font-weight:700;height:100%;height:44px;left:100px;margin-top:-22px;max-width:78%;position:absolute;top:40px}#wepos-main .content-product .items-wrapper.list .item .item-wrap .title .product-name{margin-bottom:8px}#wepos-main .content-product .items-wrapper.list .item .item-wrap .title ul.meta{font-size:13px;font-weight:400;list-style:none;margin:0;padding:0}#wepos-main .content-product .items-wrapper.list .item .item-wrap .title ul.meta li{display:inline-block}#wepos-main .content-product .items-wrapper.list .item .item-wrap .title ul.meta li .label{color:#758598;margin-right:3px}#wepos-main .content-product .items-wrapper.list .item .item-wrap .title ul.meta li .value del{color:#9095a5;margin-right:3px}#wepos-main .content-product .items-wrapper.list .item .item-wrap .title ul.meta li:after{color:#e9ebed;content:"|";display:inline-block;margin:0 7px}#wepos-main .content-product .items-wrapper.list .item .item-wrap .title ul.meta li:last-child:after{content:""}#wepos-main .content-product .items-wrapper.list .item .item-wrap .add-product-icon{position:absolute;right:3%;top:35%}#wepos-main .content-product .items-wrapper.list .item .item-wrap .add-product-icon:before{color:#1a9ed4;font-weight:400}#wepos-main .content-product .items-wrapper .product-loading{color:#c6cace;display:block;font-size:16px;padding:10px;position:relative;text-align:center;width:100%}#wepos-main .content-product .items-wrapper .no-product-found{margin:auto 0;text-align:center;vertical-align:middle;width:100%}#wepos-main .content-product .items-wrapper .no-product-found p{color:#c6cace;font-size:18px}#wepos-main .content-cart{flex:1.3;height:94.5vh}#wepos-main .content-cart .top-panel{display:flex;margin-bottom:20px}#wepos-main .content-cart .top-panel .customer-search-box{flex:7;position:relative}#wepos-main .content-cart .top-panel .customer-search-box input#customer-search{border:1px solid #e9edf0;border-radius:3px;box-shadow:0 3px 15px 0 rgba(0,0,0,.02);box-sizing:border-box;font-size:14px;height:33px;height:35px;line-height:10px;padding:10px 10px 10px 35px;width:100%}#wepos-main .content-cart .top-panel .customer-search-box input#customer-search::placeholder{color:#999dac;font-size:13px}#wepos-main .content-cart .top-panel .customer-search-box input#customer-search:-ms-input-placeholder{color:#999dac;font-size:13px}#wepos-main .content-cart .top-panel .customer-search-box input#customer-search::-ms-input-placeholder{color:#999dac;font-size:13px}#wepos-main .content-cart .top-panel .customer-search-box input#customer-search:focus{outline:none}#wepos-main .content-cart .top-panel .customer-search-box span.add-new-customer{position:absolute;right:10px;top:9px}#wepos-main .content-cart .top-panel .customer-search-box span.add-new-customer:before{color:#bdc0c9;cursor:pointer;font-size:15px}#wepos-main .content-cart .top-panel .customer-search-box .search-result{background:#fff;border:1px solid #e9edf0;border-bottom-left-radius:3px;border-bottom-right-radius:3px;border-top:none;box-shadow:0 30px 45px -10px rgba(0,0,0,.2);box-sizing:border-box;position:absolute;width:100%;z-index:99}#wepos-main .content-cart .top-panel .customer-search-box .search-result .no-data-found{color:#758598;padding:20px;text-align:center}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul{list-style-type:none;margin:0;max-height:300px;overflow:scroll;padding:0}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li a{border-bottom:1px solid #e9edf0;color:#212121;display:block;padding:8px 10px;text-decoration:none}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li a span{color:#758598;font-size:13px;margin-left:10px}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li a span.avatar img{border-radius:20px;width:20px}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li a span.name{color:#212121;font-size:14px;line-height:18px;margin-left:6px}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li a span.action{visibility:hidden}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li a span.action:before{font-size:12px}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li a:hover span.action{visibility:visible}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li:last-child a{border-bottom:none}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li.selected{background:#f6f7fb}#wepos-main .content-cart .top-panel .customer-search-box .search-result ul li.selected a span.action{visibility:visible}#wepos-main .content-cart .top-panel .customer-search-box .search-result .suggession{background:#f6f7fb;border-top:1px solid #eceef0;color:#999dac;font-size:11px;padding:12px}#wepos-main .content-cart .top-panel .customer-search-box .search-result .suggession span.term{margin-right:15px}#wepos-main .content-cart .top-panel .customer-search-box .search-result .suggession span.term span:before{color:#5d5d5d;font-size:9px;margin-right:2px}#wepos-main .content-cart .top-panel .customer-search-box .search-result .suggession span.term strong{color:#5d5d5d;margin-right:2px}#wepos-main .content-cart .top-panel .customer-search-box svg.customer-icon{left:10px;position:absolute;top:8px}#wepos-main .content-cart .top-panel .action{flex:1}#wepos-main .content-cart .top-panel .action .more-options{text-align:right}#wepos-main .content-cart .top-panel .action .more-options span.more-icon:before{color:#bdc0c9;font-size:16px}#wepos-main .content-cart .cart-panel{background:#fff;border-radius:3px;box-shadow:0 3px 15px 0 rgba(0,0,0,.02);display:flex;flex-flow:column wrap;height:90%;position:relative}#wepos-main .content-cart .cart-panel .cart-calculation{flex-grow:0;width:100%}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table{border-collapse:collapse;width:100%}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr{border-bottom:1px solid #eceef0;display:table-row;height:35px;line-height:20px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr:first-child{border-top:1px solid #eceef0}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr:last-child{border-bottom:none}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr:nth-child(odd){background:#fafbfe}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr td{font-weight:700;line-height:20px;padding:9px 12px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr td:last-child{text-align:right}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr td.label{width:45%}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr td.price{text-align:right;width:45%}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr td.action{width:6%}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr td.action span:before{background:#bdc0c9;border:none;border-radius:50px;color:#fff;cursor:pointer;font-size:7px;padding:5px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr td.action span:hover:before{background:#e9485e;border:none;color:#fff}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-action td{text-align:left}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-action td a{background:#fff;border:1px solid #e0e5ea;border-radius:3px;color:#3b80f4;font-size:12px;margin-right:5px;padding:5px 8px;text-decoration:none}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td.label span.name{color:#758598;font-size:12px;font-weight:400;margin-left:5px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td.label label{font-weight:400;margin-right:5px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td.label .fee-name{width:15%}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td.label .fee-amount{margin-right:5px;width:15%}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td.label select.fee-tax-class{background:#fff;border:1px solid #e9ebed;border-radius:3px;height:24px;padding:5px;width:22%}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td.label select.fee-tax-class:focus{outline:none}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=number],#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=text]{border:1px solid #eceef0;border-radius:3px;padding:5px 8px;width:50%}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=number]:focus,#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=text]:focus{-webkit-appearance:none;outline:none}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=number]::placeholder,#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=text]::placeholder{color:#999dac;font-size:13px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=number]:-ms-input-placeholder,#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=text]:-ms-input-placeholder{color:#999dac;font-size:13px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=number]::-ms-input-placeholder,#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td input[type=text]::-ms-input-placeholder{color:#999dac;font-size:13px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td button{background:#3b80f4;border:1px solid #3b80f4;border-radius:3px;color:#fff;cursor:pointer;margin-left:5px;padding:5px 8px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td button.cancel{background:#fff;border:1px solid #afafaf;color:#222}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.cart-meta-data td button:disabled{background:#76a2ed;border-color:#76a2ed}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.note .note-text{font-weight:400}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.pay-now{background:#1abc9c;color:#fff;cursor:pointer;font-size:16px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.pay-now td{padding:18px 10px 18px 12px}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.pay-now td.amount{text-align:right}#wepos-main .content-cart .cart-panel .cart-calculation table.cart-total-table tbody tr.pay-now td.icon{line-height:25px;padding:0 5px;text-align:left}#wepos-main .content-cart .cart-panel .cart-content{flex:5;overflow-x:scroll}#wepos-main .content-cart .cart-panel .cart-content table.cart-table{border-collapse:collapse;width:100%}#wepos-main .content-cart .cart-panel .cart-content table.cart-table thead tr{border-bottom:1px solid #eceef0;box-shadow:0 3px 15px 0 rgba(0,0,0,.04);color:#3b80f4;font-size:13px;text-align:left}#wepos-main .content-cart .cart-panel .cart-content table.cart-table thead tr th{line-height:19px;padding:8px 12px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr{border-bottom:1px solid #eceef0;display:table-row;height:35px;line-height:20px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr.no-item{border-bottom:none;height:55vh;text-align:center}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr.no-item p{color:#c6cace;font-size:17px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td{font-size:13px;padding:8px 12px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.name{font-weight:700}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.name .attribute ul{list-style:none;margin:0;padding:0}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.name .attribute ul li{display:inline-block;font-size:12px;font-weight:400;margin-right:5px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.name .attribute ul li .attr_name{color:#758598}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.price span{display:block}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.price span.regular-price{color:#9095a5;font-size:11px;padding-left:5px;text-decoration:line-through}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.action span:before,#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.remove span:before{background:#bdc0c9;border:.84px solid #bdc0c9;border-radius:50px;color:#fff;cursor:pointer;display:inline-block;font-size:8px;text-align:center;width:20px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.action span.open:before,#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.remove span.open:before{background:#3b80f4;border:.84px solid #3b80f4;-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-o-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(89deg)}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.remove span:before{border:none;color:#fff}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr td.remove span:hover:before{background:#e9485e;border:none;color:#fff}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr.update-quantity-wrap td{background:#f6f7fb;padding:10px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr.update-quantity-wrap td span{margin-right:5px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr.update-quantity-wrap td span input[type=number]{-webkit-appearance:none;border:1px solid #eceef0;border-radius:3px;font-size:13px;margin-right:5px;outline:none;padding:5px;width:60px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr.update-quantity-wrap td span input[type=number]::-webkit-inner-spin-button,#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr.update-quantity-wrap td span input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr.update-quantity-wrap td span.qty-action a{background:#fff;border:1px solid #eceef0;border-radius:3px;color:#999dac;display:inline-block;font-size:18px;font-weight:700;height:23px;margin-right:3px;text-align:center;text-decoration:none;width:25px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table tbody tr.update-quantity-wrap td span.qty-action a.add{background:#3b80f4;color:#fff}#wepos-main .wepos-help-wrapper{margin-top:20px;padding:15px 20px}#wepos-main .wepos-help-wrapper h2{border-bottom:1px solid #eceef0;color:#c6cace;font-weight:400;margin:0 0 15px;padding:0 0 15px}#wepos-main .wepos-help-wrapper ul{list-style:none;margin:0;padding:0}#wepos-main .wepos-help-wrapper ul li{display:inline-block;margin-bottom:20px;margin-right:2%;width:48%}#wepos-main .wepos-help-wrapper ul li:nth-child(2n){margin-right:0}#wepos-main .wepos-help-wrapper ul li span{display:block}#wepos-main .wepos-help-wrapper ul li span.code{color:#758598;float:left;font-size:15px;width:40%}#wepos-main .wepos-help-wrapper ul li span.title{display:block;float:left;width:58%}@media screen and (max-width:768px){#wepos-main{display:table-row}#wepos-main .content-cart{min-height:200px}#wepos-main .content-cart .cart-panel .cart-content table.cart-table{height:fit-content}} \ No newline at end of file diff --git a/assets/js/frontend.js b/assets/js/frontend.js index a53cecb4..564fc9e5 100644 --- a/assets/js/frontend.js +++ b/assets/js/frontend.js @@ -49,7 +49,7 @@ \******************************************************************************************************************************************************************************************/(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: 'ReceiptPrintHtml',\n props: {\n printdata: {\n type: Object,\n\n default() {\n return {};\n }\n\n },\n settings: {\n type: Object,\n\n default() {\n return {};\n }\n\n }\n },\n methods: {\n formatDate(date) {\n var date = new Date(date);\n return date.toLocaleString();\n }\n\n }\n});\n\n//# sourceURL=webpack://wepos/./assets/src/frontend/components/PrintReceiptHtml.vue?./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options")},"./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./assets/src/frontend/components/ProductSearch.vue?vue&type=script&lang=js&": /*!***************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./assets/src/frontend/components/ProductSearch.vue?vue&type=script&lang=js& ***! - \***************************************************************************************************************************************************************************************/(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _KeyboardControl_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./KeyboardControl.vue */ \"./assets/src/frontend/components/KeyboardControl.vue\");\n/* harmony import */ var v_hotkey__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! v-hotkey */ \"./node_modules/v-hotkey/dist/v-hotkey.common.js\");\n/* harmony import */ var v_hotkey__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(v_hotkey__WEBPACK_IMPORTED_MODULE_1__);\n// import Modal from './Modal.vue';\n\n\nlet Modal = wepos_get_lib('Modal');\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: 'ProductInlineSearch',\n props: {\n products: {\n type: Array,\n\n default() {\n return [];\n }\n\n },\n settings: {\n type: Object,\n\n default() {\n return {};\n }\n\n }\n },\n components: {\n Modal,\n KeyboardControl: _KeyboardControl_vue__WEBPACK_IMPORTED_MODULE_0__[\"default\"]\n },\n\n data() {\n return {\n showResults: false,\n showVariationModal: false,\n mode: 'scan',\n serachInput: '',\n searchableProduct: [],\n selectedVariationProduct: {},\n attributeDisabled: true,\n chosenAttribute: {}\n };\n },\n\n computed: {\n placeholder() {\n return this.mode == 'scan' ? this.__('Scan your product', 'wepos') : this.__('Search product by typing', 'wepos');\n },\n\n hotkeys() {\n return {\n 'f1': this.changeProductSearch,\n 'f2': this.changeScan,\n 'esc': this.searchClose\n };\n }\n\n },\n watch: {\n chosenAttribute(newdata, olddata) {\n if (Object.keys(newdata).length == this.selectedVariationProduct.attributes.length) {\n this.attributeDisabled = false;\n }\n }\n\n },\n methods: {\n changeScan(e) {\n e.preventDefault();\n this.changeMode('scan');\n },\n\n changeProductSearch(e) {\n e.preventDefault();\n this.changeMode('product');\n },\n\n searchClose() {\n this.showResults = false;\n this.showVariationModal = false;\n this.changeMode('scan');\n this.$refs.productSearch.blur();\n },\n\n onKeyDown() {\n jQuery('.product-search-item.selected').next().children('a').focus();\n },\n\n onKeyUp() {\n jQuery('.product-search-item.selected').prev().children('a').focus();\n },\n\n triggerFocus() {\n this.showResults = true;\n this.$emit('onfocus');\n },\n\n outside() {\n this.showResults = false;\n this.$emit('onblur');\n },\n\n changeMode(mode) {\n this.mode = mode;\n\n if (this.mode == 'scan') {\n this.searchableProduct = [];\n this.showResults = false;\n }\n\n this.$refs.productSearch.focus();\n },\n\n handleProductScan() {\n if (this.mode == 'product') {\n return;\n }\n\n var generalSettings = this.settings.wepos_general,\n field = generalSettings.barcode_scanner_field == 'custom' ? 'barcode' : generalSettings.barcode_scanner_field,\n selectedProduct = {},\n filterProduct = this.products.filter(product => {\n if (product.type == 'simple') {\n if (product[field].toString() == this.serachInput) {\n return true;\n }\n }\n\n if (product.type == 'variable') {\n var ifFound = false;\n\n if (product.variations.length > 0) {\n weLo_.forEach(product.variations, (item, key) => {\n if (item[field].toString() == this.serachInput) {\n ifFound = true;\n }\n });\n }\n\n if (ifFound) {\n return true;\n }\n }\n\n return false;\n });\n\n if (filterProduct.length > 0) {\n filterProduct = filterProduct[0];\n\n if (filterProduct.type == 'variable') {\n var variations = filterProduct.variations;\n var selectedVariationProduct = variations.filter(item => {\n if (item[field].toString() == this.serachInput) {\n return true;\n }\n\n return false;\n });\n selectedProduct = selectedVariationProduct[0];\n selectedProduct.parent_id = filterProduct.id;\n selectedProduct.type = filterProduct.type;\n selectedProduct.name = filterProduct.name;\n this.$emit('onProductAdded', selectedProduct);\n } else {\n this.$emit('onProductAdded', filterProduct);\n }\n }\n\n this.serachInput = '';\n },\n\n searchProduct(e) {\n if (this.serachInput) {\n if (this.mode == 'product') {\n this.searchableProduct = this.products.filter(product => {\n if (product.id.toString().indexOf(this.serachInput) != -1) {\n return true;\n } else if (product.name.toString().toLowerCase().indexOf(this.serachInput.toLowerCase()) != -1) {\n return true;\n } else if (product.sku.indexOf(this.serachInput) != -1) {\n return true;\n } else {\n return false;\n }\n });\n }\n }\n },\n\n selectVariation(product) {\n this.selectedVariationProduct = product;\n this.showVariationModal = true;\n },\n\n addVariationProduct() {\n var chosenVariationProduct = this.findMatchingVariations(this.selectedVariationProduct.variations, this.chosenAttribute);\n var variationProduct = chosenVariationProduct[0];\n variationProduct.parent_id = this.selectedVariationProduct.id;\n variationProduct.type = this.selectedVariationProduct.type;\n variationProduct.name = this.selectedVariationProduct.name;\n this.$emit('onProductAdded', variationProduct);\n this.showVariationModal = false;\n this.chosenAttribute = {};\n },\n\n addToCartAction(product) {\n this.$emit('onProductAdded', product);\n }\n\n },\n\n mounted() {\n this.$refs.productSearch.focus();\n }\n\n});\n\n//# sourceURL=webpack://wepos/./assets/src/frontend/components/ProductSearch.vue?./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options")},"./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./assets/src/frontend/App.vue?vue&type=template&id=152fd186&": + \***************************************************************************************************************************************************************************************/(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _KeyboardControl_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./KeyboardControl.vue */ \"./assets/src/frontend/components/KeyboardControl.vue\");\n/* harmony import */ var v_hotkey__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! v-hotkey */ \"./node_modules/v-hotkey/dist/v-hotkey.common.js\");\n/* harmony import */ var v_hotkey__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(v_hotkey__WEBPACK_IMPORTED_MODULE_1__);\n// import Modal from './Modal.vue';\n\n\nlet Modal = wepos_get_lib('Modal');\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: 'ProductInlineSearch',\n props: {\n products: {\n type: Array,\n\n default() {\n return [];\n }\n\n },\n settings: {\n type: Object,\n\n default() {\n return {};\n }\n\n }\n },\n components: {\n Modal,\n KeyboardControl: _KeyboardControl_vue__WEBPACK_IMPORTED_MODULE_0__[\"default\"]\n },\n\n data() {\n return {\n showResults: false,\n showVariationModal: false,\n mode: 'scan',\n serachInput: '',\n searchableProduct: [],\n selectedVariationProduct: {},\n attributeDisabled: true,\n chosenAttribute: {}\n };\n },\n\n computed: {\n placeholder() {\n return this.mode == 'scan' ? this.__('Scan your product', 'wepos') : this.__('Search product by typing', 'wepos');\n },\n\n hotkeys() {\n return {\n 'f1': this.changeProductSearch,\n 'f2': this.changeScan,\n 'esc': this.searchClose\n };\n }\n\n },\n watch: {\n chosenAttribute(newdata, olddata) {\n if (Object.keys(newdata).length == this.selectedVariationProduct.attributes.length) {\n this.attributeDisabled = false;\n }\n }\n\n },\n methods: {\n changeScan(e) {\n e.preventDefault();\n this.changeMode('scan');\n },\n\n changeProductSearch(e) {\n e.preventDefault();\n this.changeMode('product');\n },\n\n searchClose() {\n this.showResults = false;\n this.showVariationModal = false;\n this.changeMode('scan');\n this.$refs.productSearch.blur();\n },\n\n clearSearch() {\n this.searchClose();\n this.serachInput = '';\n },\n\n onKeyDown() {\n jQuery('.product-search-item.selected').next().children('a').focus();\n },\n\n onKeyUp() {\n jQuery('.product-search-item.selected').prev().children('a').focus();\n },\n\n triggerFocus() {\n this.showResults = true;\n this.$emit('onfocus');\n },\n\n outside() {\n this.showResults = false;\n this.$emit('onblur');\n },\n\n changeMode(mode) {\n this.mode = mode;\n\n if (this.mode == 'scan') {\n this.searchableProduct = [];\n this.showResults = false;\n }\n\n this.$refs.productSearch.focus();\n },\n\n handleProductScan() {\n if (this.mode == 'product') {\n return;\n }\n\n var generalSettings = this.settings.wepos_general,\n field = generalSettings.barcode_scanner_field == 'custom' ? 'barcode' : generalSettings.barcode_scanner_field,\n selectedProduct = {},\n filterProduct = this.products.filter(product => {\n if (product.type == 'simple') {\n if (product[field].toString() == this.serachInput) {\n return true;\n }\n }\n\n if (product.type == 'variable') {\n var ifFound = false;\n\n if (product.variations.length > 0) {\n weLo_.forEach(product.variations, (item, key) => {\n if (item[field].toString() == this.serachInput) {\n ifFound = true;\n }\n });\n }\n\n if (ifFound) {\n return true;\n }\n }\n\n return false;\n });\n\n if (filterProduct.length > 0) {\n filterProduct = filterProduct[0];\n\n if (filterProduct.type == 'variable') {\n var variations = filterProduct.variations;\n var selectedVariationProduct = variations.filter(item => {\n if (item[field].toString() == this.serachInput) {\n return true;\n }\n\n return false;\n });\n selectedProduct = selectedVariationProduct[0];\n selectedProduct.parent_id = filterProduct.id;\n selectedProduct.type = filterProduct.type;\n selectedProduct.name = filterProduct.name;\n this.$emit('onProductAdded', selectedProduct);\n } else {\n this.$emit('onProductAdded', filterProduct);\n }\n }\n\n this.serachInput = '';\n },\n\n searchProduct(e) {\n if (this.serachInput) {\n if (this.mode == 'product') {\n this.searchableProduct = this.products.filter(product => {\n if (product.id.toString().indexOf(this.serachInput) != -1) {\n return true;\n } else if (product.name.toString().toLowerCase().indexOf(this.serachInput.toLowerCase()) != -1) {\n return true;\n } else if (product.sku.indexOf(this.serachInput) != -1) {\n return true;\n } else {\n return false;\n }\n });\n }\n }\n },\n\n selectVariation(product) {\n this.selectedVariationProduct = product;\n this.showVariationModal = true;\n },\n\n addVariationProduct() {\n var chosenVariationProduct = this.findMatchingVariations(this.selectedVariationProduct.variations, this.chosenAttribute);\n var variationProduct = chosenVariationProduct[0];\n variationProduct.parent_id = this.selectedVariationProduct.id;\n variationProduct.type = this.selectedVariationProduct.type;\n variationProduct.name = this.selectedVariationProduct.name;\n this.$emit('onProductAdded', variationProduct);\n this.showVariationModal = false;\n this.chosenAttribute = {};\n },\n\n addToCartAction(product) {\n this.$emit('onProductAdded', product);\n }\n\n },\n\n mounted() {\n this.$refs.productSearch.focus();\n }\n\n});\n\n//# sourceURL=webpack://wepos/./assets/src/frontend/components/ProductSearch.vue?./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options")},"./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./assets/src/frontend/App.vue?vue&type=template&id=152fd186&": /*!*****************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./assets/src/frontend/App.vue?vue&type=template&id=152fd186& ***! \*****************************************************************************************************************************************************************************************************************************************************/(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "render": () => (/* binding */ render),\n/* harmony export */ "staticRenderFns": () => (/* binding */ staticRenderFns)\n/* harmony export */ });\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c;\n\n return _c("div", {\n attrs: {\n id: "vue-frontend-app"\n }\n }, [_c("router-view")], 1);\n};\n\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack://wepos/./assets/src/frontend/App.vue?./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet%5B1%5D.rules%5B2%5D!./node_modules/vue-loader/lib/index.js??vue-loader-options')},"./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./assets/src/frontend/components/CustomerNote.vue?vue&type=template&id=4073e2a5&": @@ -79,7 +79,7 @@ \*****************************************************************************************************************************************************************************************************************************************************************************/(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "render": () => (/* binding */ render),\n/* harmony export */ "staticRenderFns": () => (/* binding */ staticRenderFns)\n/* harmony export */ });\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c;\n\n return _vm.settings.wepos_receipts ? _c("div", {\n staticClass: "wepos-checkout-print-wrapper"\n }, [_c("div", {\n staticClass: "header",\n domProps: {\n innerHTML: _vm._s(_vm.settings.wepos_receipts.receipt_header)\n }\n }), _vm._v(" "), _c("div", {\n staticClass: "order-info"\n }, [_c("span", {\n staticClass: "wepos-left"\n }, [_c("strong", [_vm._v(_vm._s(_vm.__("Order ID", "wepos")) + ": #" + _vm._s(_vm.printdata.order_id))])]), _vm._v(" "), _c("span", {\n staticClass: "wepos-right"\n }, [_c("strong", [_vm._v(_vm._s(_vm.__("Order Date", "wepos")) + ": " + _vm._s(_vm.formatDate(_vm.printdata.order_date)))])]), _vm._v(" "), _c("div", {\n staticClass: "wepos-clearfix"\n })]), _vm._v(" "), _c("div", {\n staticClass: "content"\n }, [_c("table", {\n staticClass: "sale-summary"\n }, [_c("tbody", [_vm._l(_vm.printdata.line_items, function (item) {\n return _c("tr", [_c("td", {\n staticClass: "name"\n }, [_vm._v("\\n " + _vm._s(item.name) + "\\n "), item.attribute.length > 0 ? _c("div", {\n staticClass: "attribute"\n }, [_c("ul", _vm._l(item.attribute, function (attribute_item) {\n return _c("li", [_c("span", {\n staticClass: "attr_name"\n }, [_vm._v(_vm._s(attribute_item.name))]), _vm._v(": "), _c("span", {\n staticClass: "attr_value"\n }, [_vm._v(_vm._s(attribute_item.option))])]);\n }), 0)]) : _vm._e()]), _vm._v(" "), _c("td", {\n staticClass: "quantity"\n }, [_vm._v(_vm._s(item.quantity))]), _vm._v(" "), _c("td", {\n staticClass: "price"\n }, [item.on_sale ? [_c("span", {\n staticClass: "regular-price"\n }, [_vm._v(_vm._s(_vm.formatPrice(item.quantity * item.regular_price)))]), _vm._v(" "), _c("span", {\n staticClass: "sale-price"\n }, [_vm._v(_vm._s(_vm.formatPrice(item.quantity * item.sale_price)))])] : [_c("span", {\n staticClass: "sale-price"\n }, [_vm._v(_vm._s(_vm.formatPrice(item.quantity * item.regular_price)))])]], 2)]);\n }), _vm._v(" "), _c("tr", {\n staticClass: "cart-meta-data"\n }, [_c("td", {\n staticClass: "name",\n attrs: {\n colspan: "2"\n }\n }, [_vm._v("\\n " + _vm._s(_vm.__("Subtotal", "wepos")) + "\\n "), _vm.settings.woo_tax.wc_tax_display_cart == "incl" ? _c("span", {\n staticClass: "metadata"\n }, [_vm._v("\\n " + _vm._s(_vm.__("Includes Tax", "wepos")) + " " + _vm._s(_vm.formatPrice(_vm.$store.getters["Cart/getTotalLineTax"])) + "\\n ")]) : _vm._e()]), _vm._v(" "), _c("td", {\n staticClass: "price"\n }, [_vm._v(_vm._s(_vm.formatPrice(_vm.printdata.subtotal)))])]), _vm._v(" "), _vm._l(_vm.printdata.fee_lines, function (fee, key) {\n return _c("tr", {\n staticClass: "cart-meta-data"\n }, [fee.type == "discount" ? [_c("td", {\n staticClass: "name",\n attrs: {\n colspan: "2"\n }\n }, [_vm._v(_vm._s(_vm.__("Discount", "wepos")) + " "), _c("span", {\n staticClass: "metadata"\n }, [_vm._v(_vm._s(fee.discount_type == "percent" ? fee.value + "%" : _vm.formatPrice(fee.value)))])]), _vm._v(" "), _c("td", {\n staticClass: "price"\n }, [_vm._v("-" + _vm._s(_vm.formatPrice(Math.abs(fee.total))))])] : [_c("td", {\n staticClass: "name",\n attrs: {\n colspan: "2"\n }\n }, [_vm._v(_vm._s(_vm.__("Fee", "wepos")) + " "), _c("span", {\n staticClass: "metadata"\n }, [_vm._v(_vm._s(fee.name) + " " + _vm._s(fee.fee_type == "percent" ? fee.value + "%" : _vm.formatPrice(fee.value)))])]), _vm._v(" "), _c("td", {\n staticClass: "price"\n }, [_vm._v("-" + _vm._s(_vm.formatPrice(Math.abs(fee.total))))])]], 2);\n }), _vm._v(" "), _vm.printdata.taxtotal ? _c("tr", [_c("td", {\n staticClass: "name",\n attrs: {\n colspan: "2"\n }\n }, [_vm._v(_vm._s(_vm.__("Tax", "wepos")))]), _vm._v(" "), _c("td", {\n staticClass: "price"\n }, [_vm._v(_vm._s(_vm.formatPrice(_vm.printdata.taxtotal)))])]) : _vm._e(), _vm._v(" "), _c("tr", [_c("td", {\n staticClass: "name",\n attrs: {\n colspan: "2"\n }\n }, [_vm._v(_vm._s(_vm.__("Order Total", "wepos")))]), _vm._v(" "), _c("td", {\n staticClass: "price"\n }, [_vm._v(_vm._s(_vm.formatPrice(_vm.printdata.ordertotal)))])]), _vm._v(" "), _vm._m(0), _vm._v(" "), _c("tr", [_c("td", {\n attrs: {\n colspan: "2"\n }\n }, [_vm._v(_vm._s(_vm.__("Payment method", "wepos")))]), _vm._v(" "), _c("td", {\n staticClass: "price"\n }, [_vm._v(_vm._s(_vm.printdata.gateway.title || ""))])]), _vm._v(" "), (_vm.printdata.gateway.id = "wepos_cash") ? [_c("tr", [_c("td", {\n attrs: {\n colspan: "2"\n }\n }, [_vm._v(_vm._s(_vm.__("Cash Given", "wepos")))]), _vm._v(" "), _c("td", {\n staticClass: "price"\n }, [_vm._v(_vm._s(_vm.formatPrice(_vm.printdata.cashamount)))])]), _vm._v(" "), _c("tr", [_c("td", {\n attrs: {\n colspan: "2"\n }\n }, [_vm._v(_vm._s(_vm.__("Change Money", "wepos")))]), _vm._v(" "), _c("td", {\n staticClass: "price"\n }, [_vm._v(_vm._s(_vm.formatPrice(_vm.printdata.changeamount)))])])] : _vm._e()], 2)])]), _vm._v(" "), _c("div", {\n staticClass: "footer",\n domProps: {\n innerHTML: _vm._s(_vm.settings.wepos_receipts.receipt_footer)\n }\n })]) : _vm._e();\n};\n\nvar staticRenderFns = [function () {\n var _vm = this,\n _c = _vm._self._c;\n\n return _c("tr", {\n staticClass: "divider"\n }, [_c("td", {\n attrs: {\n colspan: "3"\n }\n })]);\n}];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack://wepos/./assets/src/frontend/components/PrintReceiptHtml.vue?./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet%5B1%5D.rules%5B2%5D!./node_modules/vue-loader/lib/index.js??vue-loader-options')},"./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./assets/src/frontend/components/ProductSearch.vue?vue&type=template&id=64fc4f12&": /*!**************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./assets/src/frontend/components/ProductSearch.vue?vue&type=template&id=64fc4f12& ***! - \**************************************************************************************************************************************************************************************************************************************************************************/(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "render": () => (/* binding */ render),\n/* harmony export */ "staticRenderFns": () => (/* binding */ staticRenderFns)\n/* harmony export */ });\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c;\n\n return _c("div", {\n directives: [{\n name: "click-outside",\n rawName: "v-click-outside",\n value: _vm.outside,\n expression: "outside"\n }],\n staticClass: "search-box"\n }, [_c("form", {\n attrs: {\n action: "",\n autocomplete: "off"\n },\n on: {\n submit: function ($event) {\n $event.preventDefault();\n return _vm.handleProductScan.apply(null, arguments);\n }\n }\n }, [_c("input", {\n directives: [{\n name: "model",\n rawName: "v-model",\n value: _vm.serachInput,\n expression: "serachInput"\n }],\n ref: "productSearch",\n attrs: {\n type: "text",\n name: "search",\n id: "product-search",\n placeholder: _vm.placeholder\n },\n domProps: {\n value: _vm.serachInput\n },\n on: {\n focus: function ($event) {\n $event.preventDefault();\n return _vm.triggerFocus.apply(null, arguments);\n },\n keyup: function ($event) {\n $event.preventDefault();\n return _vm.searchProduct.apply(null, arguments);\n },\n input: function ($event) {\n if ($event.target.composing) return;\n _vm.serachInput = $event.target.value;\n }\n }\n }), _vm._v(" "), _vm.mode == "product" ? _c("span", {\n staticClass: "search-icon flaticon-musica-searcher"\n }) : _vm._e(), _vm._v(" "), _vm.mode == "scan" ? _c("span", {\n staticClass: "search-icon flaticon-supermarket-scanner"\n }) : _vm._e(), _vm._v(" "), _c("div", {\n directives: [{\n name: "hotkey",\n rawName: "v-hotkey",\n value: _vm.hotkeys,\n expression: "hotkeys"\n }],\n staticClass: "search-type"\n }, [_c("a", {\n class: {\n active: _vm.mode == "product"\n },\n attrs: {\n href: "#"\n },\n on: {\n click: function ($event) {\n $event.preventDefault();\n return _vm.changeMode("product");\n }\n }\n }, [_vm._v(_vm._s(_vm.__("Product", "wepos")))]), _vm._v(" "), _c("a", {\n class: {\n active: _vm.mode == "scan"\n },\n attrs: {\n href: "#"\n },\n on: {\n click: function ($event) {\n $event.preventDefault();\n return _vm.changeMode("scan");\n }\n }\n }, [_vm._v(_vm._s(_vm.__("Scan", "wepos")))])]), _vm._v(" "), _c("div", {\n directives: [{\n name: "show",\n rawName: "v-show",\n value: _vm.showResults && _vm.mode == "product",\n expression: "showResults && mode==\'product\'"\n }],\n staticClass: "search-result"\n }, [_vm.searchableProduct.length ? _c("div", [_c("keyboard-control", {\n attrs: {\n listLength: _vm.searchableProduct.length\n },\n on: {\n "key-down": _vm.onKeyDown,\n "key-up": _vm.onKeyUp\n },\n scopedSlots: _vm._u([{\n key: "default",\n fn: function (_ref) {\n let {\n selectedIndex\n } = _ref;\n return _vm._l(_vm.searchableProduct, function (product, index) {\n return _c("li", {\n key: index,\n staticClass: "product-search-item",\n class: {\n selected: index === selectedIndex\n }\n }, [product.type == "simple" ? [_c("a", {\n staticClass: "wepos-clearfix",\n attrs: {\n href: "#"\n },\n on: {\n click: function ($event) {\n return _vm.addToCartAction(product);\n }\n }\n }, [_vm._v(_vm._s(product.name) + "\\n "), _c("span", {\n staticClass: "price"\n }, [_vm._v(_vm._s(_vm.formatPrice(product.price)))]), _vm._v(" "), product.sku ? _c("span", {\n staticClass: "sku"\n }, [_vm._v(_vm._s(product.sku))]) : _vm._e(), _vm._v(" "), _c("span", {\n staticClass: "action flaticon-enter-arrow wepos-right"\n })])] : _vm._e(), _vm._v(" "), product.type == "variable" ? [_c("a", {\n attrs: {\n href: "#"\n },\n on: {\n click: function ($event) {\n $event.preventDefault();\n return _vm.selectVariation(product);\n }\n }\n }, [_vm._v(_vm._s(product.name) + "\\n "), _c("span", {\n staticClass: "price"\n }, [_vm._v(_vm._s(_vm.formatPrice(product.price)))]), _vm._v(" "), product.sku ? _c("span", {\n staticClass: "sku"\n }, [_vm._v(_vm._s(product.sku))]) : _vm._e(), _vm._v(" "), _c("span", {\n staticClass: "action flaticon-enter-arrow wepos-right"\n })])] : _vm._e()], 2);\n });\n }\n }], null, false, 2881840290)\n })], 1) : _c("div", {\n staticClass: "no-data-found"\n }, [_vm._v("\\n " + _vm._s(_vm.__("No product found", "wepos")) + "\\n ")]), _vm._v(" "), _c("div", {\n staticClass: "suggession"\n }, [_c("span", {\n staticClass: "term"\n }, [_c("span", {\n staticClass: "flaticon-swap"\n }), _vm._v(" " + _vm._s(_vm.__("to navigate", "wepos")) + "\\n ")]), _vm._v(" "), _c("span", {\n staticClass: "term"\n }, [_c("span", {\n staticClass: "flaticon-enter-arrow"\n }), _vm._v(" " + _vm._s(_vm.__("to select", "wepos")) + "\\n ")]), _vm._v(" "), _c("span", {\n staticClass: "term"\n }, [_c("strong", [_vm._v("esc")]), _vm._v(" " + _vm._s(_vm.__("to dismiss", "wepos")) + "\\n ")])])])]), _vm._v(" "), _vm.showVariationModal ? _c("modal", {\n attrs: {\n title: _vm.__("Select Variations", "wepos"),\n width: "500px",\n height: "auto",\n footer: true,\n header: true\n },\n on: {\n close: function ($event) {\n _vm.showVariationModal = false;\n }\n }\n }, [_c("template", {\n slot: "body"\n }, _vm._l(_vm.selectedVariationProduct.attributes, function (attribute) {\n return _c("div", {\n staticClass: "variation-attribute-wrapper"\n }, [_c("div", {\n staticClass: "attribute"\n }, [_c("p", [_vm._v(_vm._s(attribute.name))]), _vm._v(" "), _c("div", {\n staticClass: "options"\n }, [_vm._l(attribute.options, function (option) {\n return [_c("label", [_c("input", {\n directives: [{\n name: "model",\n rawName: "v-model",\n value: _vm.chosenAttribute[attribute.name],\n expression: "chosenAttribute[attribute.name]"\n }],\n attrs: {\n type: "radio"\n },\n domProps: {\n value: option,\n checked: _vm._q(_vm.chosenAttribute[attribute.name], option)\n },\n on: {\n change: function ($event) {\n return _vm.$set(_vm.chosenAttribute, attribute.name, option);\n }\n }\n }), _vm._v(" "), _c("div", {\n staticClass: "box"\n }, [_vm._v("\\n " + _vm._s(option) + "\\n ")])])];\n })], 2)])]);\n }), 0), _vm._v(" "), _c("template", {\n slot: "footer"\n }, [_c("button", {\n staticClass: "add-variation-btn",\n attrs: {\n disabled: _vm.attributeDisabled\n },\n on: {\n click: function ($event) {\n return _vm.addVariationProduct();\n }\n }\n }, [_vm._v(_vm._s(_vm.__("Add Product", "wepos")))])])], 2) : _vm._e()], 1);\n};\n\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack://wepos/./assets/src/frontend/components/ProductSearch.vue?./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet%5B1%5D.rules%5B2%5D!./node_modules/vue-loader/lib/index.js??vue-loader-options')},"./node_modules/element-in-view/dist/element-in-view.common.js": + \**************************************************************************************************************************************************************************************************************************************************************************/(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "render": () => (/* binding */ render),\n/* harmony export */ "staticRenderFns": () => (/* binding */ staticRenderFns)\n/* harmony export */ });\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c;\n\n return _c("div", {\n directives: [{\n name: "click-outside",\n rawName: "v-click-outside",\n value: _vm.outside,\n expression: "outside"\n }],\n staticClass: "search-box"\n }, [_c("form", {\n attrs: {\n action: "",\n autocomplete: "off"\n },\n on: {\n submit: function ($event) {\n $event.preventDefault();\n return _vm.handleProductScan.apply(null, arguments);\n }\n }\n }, [_c("input", {\n directives: [{\n name: "model",\n rawName: "v-model",\n value: _vm.serachInput,\n expression: "serachInput"\n }],\n ref: "productSearch",\n attrs: {\n type: "text",\n name: "search",\n id: "product-search",\n placeholder: _vm.placeholder\n },\n domProps: {\n value: _vm.serachInput\n },\n on: {\n focus: function ($event) {\n $event.preventDefault();\n return _vm.triggerFocus.apply(null, arguments);\n },\n keyup: function ($event) {\n $event.preventDefault();\n return _vm.searchProduct.apply(null, arguments);\n },\n input: function ($event) {\n if ($event.target.composing) return;\n _vm.serachInput = $event.target.value;\n }\n }\n }), _vm._v(" "), _vm.mode == "product" ? _c("span", {\n staticClass: "search-icon flaticon-musica-searcher"\n }) : _vm._e(), _vm._v(" "), _vm.mode == "scan" ? _c("span", {\n staticClass: "search-icon flaticon-supermarket-scanner"\n }) : _vm._e(), _vm._v(" "), _c("div", {\n directives: [{\n name: "hotkey",\n rawName: "v-hotkey",\n value: _vm.hotkeys,\n expression: "hotkeys"\n }],\n staticClass: "search-type"\n }, [_vm.serachInput != "" ? _c("button", {\n staticClass: "clear-button",\n attrs: {\n type: "button"\n },\n on: {\n click: _vm.clearSearch\n }\n }, [_vm._v("X")]) : _vm._e(), _vm._v(" "), _c("a", {\n class: {\n active: _vm.mode == "product"\n },\n attrs: {\n href: "#"\n },\n on: {\n click: function ($event) {\n $event.preventDefault();\n return _vm.changeMode("product");\n }\n }\n }, [_vm._v(_vm._s(_vm.__("Product", "wepos")))]), _vm._v(" "), _c("a", {\n class: {\n active: _vm.mode == "scan"\n },\n attrs: {\n href: "#"\n },\n on: {\n click: function ($event) {\n $event.preventDefault();\n return _vm.changeMode("scan");\n }\n }\n }, [_vm._v(_vm._s(_vm.__("Scan", "wepos")))])]), _vm._v(" "), _c("div", {\n directives: [{\n name: "show",\n rawName: "v-show",\n value: _vm.showResults && _vm.mode == "product",\n expression: "showResults && mode==\'product\'"\n }],\n staticClass: "search-result"\n }, [_vm.searchableProduct.length ? _c("div", [_c("keyboard-control", {\n attrs: {\n listLength: _vm.searchableProduct.length\n },\n on: {\n "key-down": _vm.onKeyDown,\n "key-up": _vm.onKeyUp\n },\n scopedSlots: _vm._u([{\n key: "default",\n fn: function (_ref) {\n let {\n selectedIndex\n } = _ref;\n return _vm._l(_vm.searchableProduct, function (product, index) {\n return _c("li", {\n key: index,\n staticClass: "product-search-item",\n class: {\n selected: index === selectedIndex\n }\n }, [product.type == "simple" ? [_c("a", {\n staticClass: "wepos-clearfix",\n attrs: {\n href: "#"\n },\n on: {\n click: function ($event) {\n return _vm.addToCartAction(product);\n }\n }\n }, [_vm._v(_vm._s(product.name) + "\\n "), _c("span", {\n staticClass: "price"\n }, [_vm._v(_vm._s(_vm.formatPrice(product.price)))]), _vm._v(" "), product.sku ? _c("span", {\n staticClass: "sku"\n }, [_vm._v(_vm._s(product.sku))]) : _vm._e(), _vm._v(" "), _c("span", {\n staticClass: "action flaticon-enter-arrow wepos-right"\n })])] : _vm._e(), _vm._v(" "), product.type == "variable" ? [_c("a", {\n attrs: {\n href: "#"\n },\n on: {\n click: function ($event) {\n $event.preventDefault();\n return _vm.selectVariation(product);\n }\n }\n }, [_vm._v(_vm._s(product.name) + "\\n "), _c("span", {\n staticClass: "price"\n }, [_vm._v(_vm._s(_vm.formatPrice(product.price)))]), _vm._v(" "), product.sku ? _c("span", {\n staticClass: "sku"\n }, [_vm._v(_vm._s(product.sku))]) : _vm._e(), _vm._v(" "), _c("span", {\n staticClass: "action flaticon-enter-arrow wepos-right"\n })])] : _vm._e()], 2);\n });\n }\n }], null, false, 2881840290)\n })], 1) : _c("div", {\n staticClass: "no-data-found"\n }, [_vm._v("\\n " + _vm._s(_vm.__("No product found", "wepos")) + "\\n ")]), _vm._v(" "), _c("div", {\n staticClass: "suggession"\n }, [_c("span", {\n staticClass: "term"\n }, [_c("span", {\n staticClass: "flaticon-swap"\n }), _vm._v(" " + _vm._s(_vm.__("to navigate", "wepos")) + "\\n ")]), _vm._v(" "), _c("span", {\n staticClass: "term"\n }, [_c("span", {\n staticClass: "flaticon-enter-arrow"\n }), _vm._v(" " + _vm._s(_vm.__("to select", "wepos")) + "\\n ")]), _vm._v(" "), _c("span", {\n staticClass: "term"\n }, [_c("strong", [_vm._v("esc")]), _vm._v(" " + _vm._s(_vm.__("to dismiss", "wepos")) + "\\n ")])])])]), _vm._v(" "), _vm.showVariationModal ? _c("modal", {\n attrs: {\n title: _vm.__("Select Variations", "wepos"),\n width: "500px",\n height: "auto",\n footer: true,\n header: true\n },\n on: {\n close: function ($event) {\n _vm.showVariationModal = false;\n }\n }\n }, [_c("template", {\n slot: "body"\n }, _vm._l(_vm.selectedVariationProduct.attributes, function (attribute) {\n return _c("div", {\n staticClass: "variation-attribute-wrapper"\n }, [_c("div", {\n staticClass: "attribute"\n }, [_c("p", [_vm._v(_vm._s(attribute.name))]), _vm._v(" "), _c("div", {\n staticClass: "options"\n }, [_vm._l(attribute.options, function (option) {\n return [_c("label", [_c("input", {\n directives: [{\n name: "model",\n rawName: "v-model",\n value: _vm.chosenAttribute[attribute.name],\n expression: "chosenAttribute[attribute.name]"\n }],\n attrs: {\n type: "radio"\n },\n domProps: {\n value: option,\n checked: _vm._q(_vm.chosenAttribute[attribute.name], option)\n },\n on: {\n change: function ($event) {\n return _vm.$set(_vm.chosenAttribute, attribute.name, option);\n }\n }\n }), _vm._v(" "), _c("div", {\n staticClass: "box"\n }, [_vm._v("\\n " + _vm._s(option) + "\\n ")])])];\n })], 2)])]);\n }), 0), _vm._v(" "), _c("template", {\n slot: "footer"\n }, [_c("button", {\n staticClass: "add-variation-btn",\n attrs: {\n disabled: _vm.attributeDisabled\n },\n on: {\n click: function ($event) {\n return _vm.addVariationProduct();\n }\n }\n }, [_vm._v(_vm._s(_vm.__("Add Product", "wepos")))])])], 2) : _vm._e()], 1);\n};\n\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack://wepos/./assets/src/frontend/components/ProductSearch.vue?./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet%5B1%5D.rules%5B2%5D!./node_modules/vue-loader/lib/index.js??vue-loader-options')},"./node_modules/element-in-view/dist/element-in-view.common.js": /*!*********************************************************************!*\ !*** ./node_modules/element-in-view/dist/element-in-view.common.js ***! \*********************************************************************/module=>{"use strict";eval("\n\nvar index = function (element, ref) {\n if ( ref === void 0 ) ref = {};\n var offset = ref.offset; if ( offset === void 0 ) offset = 0;\n var threshold = ref.threshold; if ( threshold === void 0 ) threshold = 0;\n\n var ref$1 = element.getBoundingClientRect();\n var top = ref$1.top;\n var right = ref$1.right;\n var bottom = ref$1.bottom;\n var left = ref$1.left;\n var width = ref$1.width;\n var height = ref$1.height;\n\n var intersection = {\n t: bottom,\n r: window.innerWidth - left,\n b: window.innerHeight - top,\n l: right\n };\n\n var elementThreshold = {\n x: threshold * width,\n y: threshold * height\n };\n\n return (\n intersection.t >= (offset.top || offset + elementThreshold.y) &&\n intersection.r >= (offset.right || offset + elementThreshold.x) &&\n intersection.b >= (offset.bottom || offset + elementThreshold.y) &&\n intersection.l >= (offset.left || offset + elementThreshold.x)\n )\n};\n\nmodule.exports = index;\n\n\n//# sourceURL=webpack://wepos/./node_modules/element-in-view/dist/element-in-view.common.js?")},"./node_modules/mini-css-extract-plugin/dist/loader.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./assets/src/frontend/components/CustomerNote.vue?vue&type=style&index=0&id=4073e2a5&lang=less&": diff --git a/assets/js/frontend.min.js b/assets/js/frontend.min.js index 6c02ef88..112e467a 100644 --- a/assets/js/frontend.min.js +++ b/assets/js/frontend.min.js @@ -1 +1 @@ -(()=>{var t={4577:t=>{"use strict";t.exports=function(t,e){void 0===e&&(e={});var a=e.offset;void 0===a&&(a=0);var s=e.threshold;void 0===s&&(s=0);var o=t.getBoundingClientRect(),r=o.top,i=o.right,n=o.bottom,c=o.left,l=o.width,u=o.height,d=n,p=window.innerWidth-c,_=window.innerHeight-r,m=i,h=s*l,v=s*u;return d>=(a.top||a+v)&&p>=(a.right||a+h)&&_>=(a.bottom||a+v)&&m>=(a.left||a+h)}},9623:t=>{t.exports=function(t,e){var a,s,o,r,i=0;return function(){a=this,s=arguments;var t=new Date-i;return r||(t>=e?n():r=setTimeout(n,e-t)),o};function n(){r=0,i=+new Date,o=t.apply(a,s),a=null,s=null}}},671:t=>{t.exports=function(t){var e={};function a(s){if(e[s])return e[s].exports;var o=e[s]={i:s,l:!1,exports:{}};return t[s].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=t,a.c=e,a.d=function(t,e,s){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(a.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)a.d(s,o,function(e){return t[e]}.bind(null,o));return s},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="",a(a.s="fb15")}({f6fd:function(t,e){!function(t){var e="currentScript",a=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(s){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(s.stack)||[!1])[1];for(t in a)if(a[t].src==e||"interactive"==a[t].readyState)return a[t];return null}}})}(document)},fb15:function(t,e,a){"use strict";var s;(a.r(e),"undefined"!=typeof window)&&(a("f6fd"),(s=window.document.currentScript)&&(s=s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(a.p=s[1]));function o(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,s)}return a}function r(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var i=function(t){for(var e=1;e":190,"?":191,"~":192,"{":219,"|":220,"}":221,'"':222},{a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90},{},{"numpad*":106,"numpad+":43,numpadadd:43,"numpad-":109,"numpad.":110,"numpad/":111,numlock:144,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105},{},{f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},{},{windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91});function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t))&&"[object Arguments]"!==Object.prototype.toString.call(t))return;var a=[],s=!0,o=!1,r=void 0;try{for(var i,n=t[Symbol.iterator]();!(s=(i=n.next()).done)&&(a.push(i.value),!e||a.length!==e);s=!0);}catch(t){o=!0,r=t}finally{try{s||null==n.return||n.return()}finally{if(o)throw r}}return a}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var c=["INPUT","TEXTAREA","SELECT"],l=function(t,e,a){var s=t.find((function(t){var s,o,r=t.code,i=t.modifiers;return r===e&&(s=a,o=i,Object.entries(s).every((function(t){var e=n(t,2),a=e[0],s=e[1];return o[a]===s})))}));return!!s&&s.callback};function u(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,s)}return a}function d(t){for(var e=1;e1)return t.reduce((function(t,a){return a=h[a]||a,m.hasOwnProperty("".concat(a,"Key"))?t.modifiers=d({},t.modifiers,p({},"".concat(a,"Key"),!0)):t.code=e[a]||f(a),t}),{modifiers:a});var s=h[t[0]]||t[0];return m.hasOwnProperty("".concat(s,"Key"))&&(a=d({},a,p({},"".concat(s,"Key"),!0))),{modifiers:a,code:e[s]||f(s)}},f=function(t){return i[t.toLowerCase()]||function(t){return 1===t.length?t.charCodeAt(0):void 0}(t)};function y(t,e,a){var s=e.value,o=e.modifiers;t._keyMap=function(t,e){var a=[];return Object.keys(t).forEach((function(s){var o=t[s],r=o.keyup,i={keydown:o.keydown||(r?_:t[s]),keyup:r||_},n=function(t){return(t=(t=(t=t.replace(/\s/g,"")).includes("numpad+")?t.replace("numpad+","numpadadd"):t).includes("++")?t.replace("++","+="):t).split(/\+{1}/)}(s),c=v(n,e),l=c.code,u=c.modifiers;a.push({code:l,modifiers:u,callback:i})})),a}(s,a),t._keyHandler=function(e){return function(t,e,a){var s=t.keyCode,o={ctrlKey:t.ctrlKey,altKey:t.altKey,shiftKey:t.shiftKey,metaKey:t.metaKey};a.prevent&&t.preventDefault(),a.stop&&t.stopPropagation();var r=document.activeElement,i=r.nodeName;if(!r.isContentEditable&&!c.includes(i)){var n=l(e,s,o);if(!n)return t;t.preventDefault(),n[t.type](t)}}(e,t._keyMap,o)},document.addEventListener("keydown",t._keyHandler),document.addEventListener("keyup",t._keyHandler)}function g(t){document.removeEventListener("keydown",t._keyHandler),document.removeEventListener("keyup",t._keyHandler)}var w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{bind:function(e,a){y(e,a,t)},componentUpdated:function(e,a){a.value!==a.oldValue&&(g(e),y(e,a,t))},unbind:g}},C={install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.directive("hotkey",w(e))},directive:w()},b=C;e.default=b}})},2377:(t,e,a)=>{"use strict";function s(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var o=s(a(9623)),r=s(a(4577)),i=["scroll","resize"],n={name:"mugen-scroll",props:{handler:{type:Function,required:!0},shouldHandle:{type:Boolean,default:!0},threshold:{type:Number,default:0},handleOnMount:{type:Boolean,default:!0},scrollContainer:{type:String}},mounted:function(){this.checkInView()},methods:{checkInView:function(){var t=this,e=function(){if(t.$refs.scroll){var e=r(t.$refs.scroll,{threshold:t.threshold});t.shouldHandle&&e&&t.handler()}};if(this.handleOnMount&&e(),this.scrollContainer){for(var a=this;(a=a.$parent)&&!this._scrollContainer;)t._scrollContainer=a.$refs[t.scrollContainer];this._scrollContainer&&this._scrollContainer.$el&&(this._scrollContainer=this._scrollContainer.$el)}this._scrollContainer=this._scrollContainer||window,this.check=o(e,200),i.forEach((function(e){return t._scrollContainer.addEventListener(e,t.check)}))}},render:function(t){return t("div",{staticClass:"mugen-scroll",ref:"scroll"},this.$slots.default)},beforeDestroy:function(){var t=this;i.forEach((function(e){return t._scrollContainer.removeEventListener(e,t.check)}))}};"undefined"!=typeof window&&window.Vue&&window.Vue.component(n.name,n),t.exports=n}},e={};function a(s){var o=e[s];if(void 0!==o)return o.exports;var r=e[s]={exports:{}};return t[s](r,r.exports,a),r.exports}a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var s in e)a.o(e,s)&&!a.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";var t=function(){var t=this._self._c;return t("div",{attrs:{id:"vue-frontend-app"}},[t("router-view")],1)};t._withStripped=!0;function e(t,e,a,s,o,r,i,n){var c,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=a,l._compiled=!0),s&&(l.functional=!0),r&&(l._scopeId="data-v-"+r),i?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=c):o&&(c=n?function(){o.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(t,e){return c.call(e),u(t,e)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:t,options:l}}const s=e({name:"App"},t,[],!1,null,null,null).exports;var o=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"hotkey",rawName:"v-hotkey",value:t.hotkeys,expression:"hotkeys"}],attrs:{id:"wepos-main"}},[e("div",{staticClass:"content-product"},[e("div",{staticClass:"top-panel wepos-clearfix"},[e("div",{staticClass:"search-bar"},[e("product-search",{attrs:{products:t.products,settings:t.settings},on:{onProductAdded:t.addToCart}})],1),t._v(" "),e("div",{staticClass:"category"},[e("multiselect",{staticClass:"wepos-multiselect",attrs:{options:t.categories,selectLabel:"",deselectLabel:"",selectedLabel:"",placeholder:t.__("Select a category","wepos")},on:{select:t.handleCategorySelect,remove:t.handleCategoryRemove},scopedSlots:t._u([{key:"singleLabel",fn:function(e){return[t._v("\n "+t._s(e.option.name)+"\n ")]}},{key:"option",fn:function(a){return[e("span",[t._l(a.option.level,(function(e){return[t._v("\n  \n ")]})),t._v("\n "+t._s(a.option.name)+"\n ")],2)]}}]),model:{value:t.selectedCategory,callback:function(e){t.selectedCategory=e},expression:"selectedCategory"}},[t._v(" "),t._v(" "),e("template",{slot:"noResult"},[e("div",{staticClass:"no-data-found"},[t._v(t._s(t.__("Not found","wepos")))])])],2)],1),t._v(" "),e("div",{staticClass:"toggle-view"},[e("div",{staticClass:"product-toggle"},[e("span",{staticClass:"toggle-icon list-view flaticon-menu-button-of-three-horizontal-lines",class:{active:"list"==t.productView},on:{click:function(e){t.productView="list"}}}),t._v(" "),e("span",{staticClass:"toggle-icon grid-view flaticon-menu",class:{active:"grid"==t.productView},on:{click:function(e){t.productView="grid"}}})])])]),t._v(" "),t.getBreadCrums.length>0?e("div",{staticClass:"breadcrumb"},[e("ul",[t._l(t.getBreadCrums,(function(a){return[e("router-link",{attrs:{tag:"li",to:{name:"Home",query:{category:a.id}}}},[e("a",[t._v(t._s(a.name))])])]}))],2),t._v(" "),e("span",{staticClass:"close-breadcrumb flaticon-cancel-music",on:{click:function(e){return e.preventDefault(),t.removeBreadcrums.apply(null,arguments)}}})]):t._e(),t._v(" "),e("div",{ref:"items-wrapper",staticClass:"items-wrapper",class:t.productView},[t.productLoading?t._e():[t._l(t.getFilteredProduct,(function(a){return t.getFilteredProduct.length>0?e("div",{staticClass:"item"},["simple"===a.type?[e("div",{staticClass:"item-wrap",class:{disabled:!t.hasStock(a)},on:{click:function(e){return e.preventDefault(),t.addToCart(a)}}},[e("div",{staticClass:"img"},[e("img",{attrs:{src:t.getProductImage(a),alt:t.getProductImageName(a)}})]),t._v(" "),"grid"===t.productView?e("div",{staticClass:"title"},[t._v("\n "+t._s(t.truncateTitle(a.name,20))+"\n ")]):e("div",{staticClass:"title"},[e("div",{staticClass:"product-name"},[t._v(t._s(a.name))]),t._v(" "),e("ul",{staticClass:"meta"},[a.sku?e("li",[e("span",{staticClass:"label"},[t._v(t._s(t.__("Sku :","wepos")))]),t._v(" "),e("span",{staticClass:"value"},[t._v(t._s(a.sku))])]):t._e(),t._v(" "),e("li",[e("span",{staticClass:"label"},[t._v(t._s(t.__("Price :","wepos")))]),t._v(" "),e("span",{staticClass:"value",domProps:{innerHTML:t._s(a.price_html)}})])])]),t._v(" "),e("span",{staticClass:"add-product-icon flaticon-add",class:t.productView})])]:t._e(),t._v(" "),"variable"===a.type?[e("v-popover",{attrs:{offset:"10","popover-base-class":"product-variation tooltip popover",placement:"left-end"}},[e("div",{staticClass:"item-wrap",on:{click:function(e){return t.selectVariationProduct(a)}}},[e("div",{staticClass:"img"},[e("img",{attrs:{src:t.getProductImage(a),alt:t.getProductImageName(a)}})]),t._v(" "),"grid"===t.productView?e("div",{staticClass:"title"},[t._v("\n "+t._s(t.truncateTitle(a.name,20))+"\n ")]):e("div",{staticClass:"title"},[e("div",{staticClass:"product-name"},[t._v(t._s(a.name))]),t._v(" "),e("ul",{staticClass:"meta"},[e("li",[e("span",{staticClass:"label"},[t._v(t._s(t.__("Price :","wepos")))]),t._v(" "),e("span",{staticClass:"value",domProps:{innerHTML:t._s(a.price_html)}})])])]),t._v(" "),e("span",{staticClass:"add-product-icon flaticon-add",class:t.productView})]),t._v(" "),e("template",{slot:"popover"},[e("div",{staticClass:"variation-header"},[t._v("\n "+t._s(t.__("Select Variations","wepos"))+"\n ")]),t._v(" "),e("div",{staticClass:"variation-body"},[t._l(a.attributes,(function(a){return[e("div",{staticClass:"attribute"},[e("p",[t._v(t._s(a.name))]),t._v(" "),e("div",{staticClass:"options"},[t._l(a.options,(function(s){return[e("label",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.selectedAttribute[a.name],expression:"selectedAttribute[attribute.name]"}],attrs:{type:"radio"},domProps:{value:s,checked:t._q(t.selectedAttribute[a.name],s)},on:{change:function(e){return t.$set(t.selectedAttribute,a.name,s)}}}),t._v(" "),e("div",{staticClass:"box"},[t._v("\n "+t._s(s)+"\n ")])])]}))],2)])]}))],2),t._v(" "),e("div",{staticClass:"variation-footer"},[e("button",{attrs:{disabled:t.attributeDisabled},on:{click:function(e){return e.preventDefault(),t.addVariationProduct.apply(null,arguments)}}},[t._v(t._s(t.__("Add Product","wepos")))])])])],2)]:t._e()],2):t._e()})),t._v(" "),t.getFilteredProduct.length<=0?e("div",{staticClass:"no-product-found"},[e("img",{attrs:{src:t.wepos.assets_url+"/images/no-product.png",alt:"",width:"120px"}}),t._v(" "),e("p",[t._v(t._s(t.__("No Product Found","wepos")))])]):t._e()],t._v(" "),t.productLoading?e("div",{staticClass:"product-loading"},[e("div",{staticClass:"spinner spinner-loading"})]):t._e()],2)]),t._v(" "),e("div",{staticClass:"content-cart"},[e("div",{staticClass:"top-panel"},[e("customer-search",{on:{onCustomerSelected:t.selectCustomer}}),t._v(" "),e("div",{staticClass:"action"},[e("div",{staticClass:"more-options"},[e("v-popover",{attrs:{offset:"5","popover-base-class":"wepos-dropdown-menu tooltip popover",placement:"bottom-end",open:t.showQucikMenu}},[e("button",{staticClass:"wepos-button",on:{click:function(e){return e.preventDefault(),t.openQucikMenu()}}},[e("span",{staticClass:"more-icon flaticon-more"})]),t._v(" "),e("template",{slot:"popover"},[e("ul",[t._l(t.quickLinkListStart,(function(t,a){return e(t,{key:a-"1",tag:"component"})})),t._v(" "),e("li",[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.emptyCart.apply(null,arguments)}}},[e("span",{staticClass:"flaticon-empty-cart quick-menu-icon"}),t._v(t._s(t.__("Empty Cart","wepos")))])]),t._v(" "),e("li",[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.openHelp.apply(null,arguments)}}},[e("span",{staticClass:"flaticon-information quick-menu-icon"}),t._v(t._s(t.__("Help","wepos")))])]),t._v(" "),e("li",{staticClass:"divider"}),t._v(" "),t._l(t.quickLinkList,(function(t,a){return e(t,{key:a,tag:"component"})})),t._v(" "),e("li",[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.logout.apply(null,arguments)}}},[e("span",{staticClass:"flaticon-logout quick-menu-icon"}),t._v(t._s(t.__("Logout","wepos")))])])],2)])],2)],1)])],1),t._v(" "),t._l(t.beforCartPanels,(function(t,a){return e(t,{key:a,tag:"component"})})),t._v(" "),t.settings.wepos_general?e("div",{staticClass:"cart-panel"},[e("div",{staticClass:"cart-content"},[e("table",{staticClass:"cart-table"},[e("thead",[e("tr",[e("th",{attrs:{width:"65%"}},[t._v(t._s(t.__("Product","wepos")))]),t._v(" "),e("th",{attrs:{width:"15%"}},[t._v(t._s(t.__("Qty","wepos")))]),t._v(" "),e("th",{attrs:{width:"30%"}},[t._v(t._s(t.__("Price","wepos")))]),t._v(" "),e("th"),t._v(" "),e("th")])]),t._v(" "),e("tbody",[t.cartdata.line_items.length>0?[t._l(t.cartdata.line_items,(function(a,s){return[e("tr",[e("td",{staticClass:"name",on:{click:function(e){return t.toggleEditQuantity(a,s)}}},[t._v("\n "+t._s(a.name)+"\n "),a.attribute.length>0&&"variable"===a.type?e("div",{staticClass:"attribute"},[e("ul",t._l(a.attribute,(function(a){return e("li",[e("span",{staticClass:"attr_name"},[t._v(t._s(a.name))]),t._v(": "),e("span",{staticClass:"attr_value"},[t._v(t._s(a.option))])])})),0)]):t._e()]),t._v(" "),e("td",{staticClass:"qty",on:{click:function(e){return t.toggleEditQuantity(a,s)}}},[t._v(t._s(a.quantity))]),t._v(" "),e("td",{staticClass:"price",on:{click:function(e){return t.toggleEditQuantity(a,s)}}},[a.on_sale?[e("span",{staticClass:"sale-price"},[t._v(t._s(t.formatPrice(a.quantity*a.sale_price)))]),t._v(" "),e("span",{staticClass:"regular-price"},[t._v(t._s(t.formatPrice(a.quantity*a.regular_price)))])]:[e("span",{staticClass:"sale-price"},[t._v(t._s(t.formatPrice(a.quantity*a.regular_price)))])]],2),t._v(" "),e("td",{staticClass:"action"},[e("span",{staticClass:"flaticon-right-arrow",class:{open:a.editQuantity},on:{click:function(e){return e.preventDefault(),t.toggleEditQuantity(a,s)}}})]),t._v(" "),e("td",{staticClass:"remove"},[e("span",{staticClass:"flaticon-cancel-music",on:{click:function(e){return e.preventDefault(),t.removeItem(s)}}})])]),t._v(" "),a.editQuantity?e("tr",{staticClass:"update-quantity-wrap"},[e("td",{attrs:{colspan:"5"}},[e("span",{staticClass:"qty"},[t._v(t._s(t.__("Quantity","wepos")))]),t._v(" "),e("span",{staticClass:"qty-number"},[e("input",{directives:[{name:"model",rawName:"v-model",value:a.quantity,expression:"item.quantity"}],attrs:{type:"number",min:"1",step:"1"},domProps:{value:a.quantity},on:{input:function(e){e.target.composing||t.$set(a,"quantity",e.target.value)}}})]),t._v(" "),e("span",{staticClass:"qty-action"},[e("a",{staticClass:"add",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.addQuantity(a,s)}}},[t._v("+")]),t._v(" "),e("a",{staticClass:"minus",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.removeQuantity(a,s)}}},[t._v("-")])])])]):t._e()]}))]:[e("tr",{staticClass:"no-item"},[e("td",{attrs:{colspan:"5"}},[e("img",{attrs:{src:t.wepos.assets_url+"/images/empty-cart.png",alt:"",width:"120px"}}),t._v(" "),e("p",[t._v(t._s(t.__("Empty Cart","wepos")))])])])]],2)])]),t._v(" "),e("div",{staticClass:"cart-calculation"},[e("form",{attrs:{autocomplete:"off"}},[e("table",{staticClass:"cart-total-table"},[e("tbody",[e("tr",{staticClass:"cart-meta-data"},[e("td",{staticClass:"label"},[t._v("\n "+t._s(t.__("Subtotal","wepos"))+"\n "),"incl"==t.settings.woo_tax.wc_tax_display_cart&&t.$store.getters["Cart/getTotalLineTax"]>0?e("span",{staticClass:"name"},[t._v("\n "+t._s(t.__("Includes Tax","wepos"))+" "+t._s(t.formatPrice(t.$store.getters["Cart/getTotalLineTax"]))+"\n ")]):t._e()]),t._v(" "),e("td",{staticClass:"price"},[t._v(t._s(t.formatPrice(t.$store.getters["Cart/getSubtotal"])))]),t._v(" "),e("td",{staticClass:"action"})]),t._v(" "),t.cartdata.fee_lines.length>0?t._l(t.cartdata.fee_lines,(function(a,s){return e("tr",{staticClass:"cart-meta-data"},["discount"==a.type?[e("td",{staticClass:"label"},[t._v(t._s(t.__("Discount","wepos"))+" "),e("span",{staticClass:"name"},[t._v(t._s(t.getDiscountAmount(a)))])]),t._v(" "),e("td",{staticClass:"price"},[t._v("−"+t._s(t.formatPrice(Math.abs(a.total))))]),t._v(" "),e("td",{staticClass:"action"},[e("span",{staticClass:"flaticon-cancel-music",on:{click:function(e){return t.removeFeeLine(s)}}})])]:[t.cartdata.fee_lines[s].isEdit?[e("td",{staticClass:"label",attrs:{colspan:"2"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.feeData.name,expression:"feeData.name"}],ref:"fee_name",refInFor:!0,staticClass:"fee-name",attrs:{type:"text",placeholder:t.__("Fee Name","wepos")},domProps:{value:t.feeData.name},on:{input:function(e){e.target.composing||t.$set(t.feeData,"name",e.target.value)}}}),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.feeData.value,expression:"feeData.value"}],ref:"fee_total",refInFor:!0,staticClass:"fee-amount",attrs:{type:"number",min:"0",step:"any",placeholder:t.__("Total","wepos")},domProps:{value:t.feeData.value},on:{input:function(e){e.target.composing||t.$set(t.feeData,"value",e.target.value)}}}),t._v(" "),"yes"==t.settings.wepos_general.enable_fee_tax?[e("label",{attrs:{for:"fee-tax-status"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.feeData.tax_status,expression:"feeData.tax_status"}],staticClass:"fee-tax-status",attrs:{type:"checkbox",id:"fee-tax-status","true-value":"taxable","false-value":"none"},domProps:{checked:Array.isArray(t.feeData.tax_status)?t._i(t.feeData.tax_status,null)>-1:t._q(t.feeData.tax_status,"taxable")},on:{change:function(e){var a=t.feeData.tax_status,s=e.target,o=s.checked?"taxable":"none";if(Array.isArray(a)){var r=t._i(a,null);s.checked?r<0&&t.$set(t.feeData,"tax_status",a.concat([null])):r>-1&&t.$set(t.feeData,"tax_status",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.feeData,"tax_status",o)}}}),t._v(" "+t._s(t.__("Taxable","wepos")))]),t._v(" "),"taxable"==t.feeData.tax_status?e("select",{directives:[{name:"model",rawName:"v-model",value:t.feeData.tax_class,expression:"feeData.tax_class"}],staticClass:"fee-tax-class",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.feeData,"tax_class",e.target.multiple?a:a[0])}}},t._l(t.availableTax,(function(a){return e("option",{domProps:{value:"standard"==a.class?"":a.class}},[t._v(t._s(t.unSanitizeString(a.class))+" - "+t._s(a.percentage_rate))])})),0):t._e()]:t._e(),t._v(" "),e("button",{attrs:{disabled:""==t.feeData.name},on:{click:function(e){return e.preventDefault(),t.saveFee(s)}}},[t._v(t._s(t.__("Apply","wepos")))]),t._v(" "),e("button",{staticClass:"cancel",on:{click:function(e){return e.preventDefault(),t.cancelEditFee(s)}}},[t._v(t._s(t.__("Cancel","wepos")))])],2),t._v(" "),e("td",{staticClass:"action"},[e("span",{staticClass:"flaticon-cancel-music",on:{click:function(e){return t.removeFeeLine(s)}}})])]:[e("td",{staticClass:"label",on:{dblclick:function(e){return e.preventDefault(),t.editFeeData(s)}}},[t._v(t._s(t.__("Fee","wepos"))+" "),e("span",{staticClass:"name"},[t._v(t._s(a.name)+" "+t._s(t.getDiscountAmount(a)))])]),t._v(" "),e("td",{staticClass:"price"},[t._v(t._s(t.formatPrice(Math.abs(a.total))))]),t._v(" "),e("td",{staticClass:"action"},[e("span",{staticClass:"flaticon-cancel-music",on:{click:function(e){return t.removeFeeLine(s)}}})])]]],2)})):t._e(),t._v(" "),t.$store.getters["Cart/getTotalTax"]?e("tr",{staticClass:"tax"},[e("td",{staticClass:"label"},[t._v(t._s(t.__("Tax","wepos")))]),t._v(" "),e("td",{staticClass:"price"},[t._v(t._s(t.formatPrice(t.$store.getters["Cart/getTotalTax"])))]),t._v(" "),e("td",{staticClass:"action"})]):t._e(),t._v(" "),e("tr",{staticClass:"cart-action"},[e("td",{attrs:{colspan:"3"}},[e("fee-keypad",{attrs:{name:t.__("Discount","wepos"),"short-key":"discount"},on:{inputfee:t.setDiscount}}),t._v(" "),e("fee-keypad",{attrs:{name:t.__("Fee","wepos"),"short-key":"fee"},on:{inputfee:t.setFee}}),t._v(" "),""==t.orderdata.customer_note?e("customer-note",{on:{addnote:t.addCustomerNote}}):t._e()],1)]),t._v(" "),t.orderdata.customer_note?e("tr",{staticClass:"note"},[e("td",{staticClass:"note-text",attrs:{colspan:"2"}},[t._v("\n "+t._s(t.orderdata.customer_note)+"\n ")]),t._v(" "),e("td",{staticClass:"action"},[e("span",{staticClass:"flaticon-cancel-music",on:{click:function(e){return e.preventDefault(),t.removeCustomerNote.apply(null,arguments)}}})])]):t._e(),t._v(" "),e("tr",{staticClass:"pay-now",on:{click:function(e){return t.initPayment()}}},[e("td",[t._v(t._s(t.__("Pay Now","wepos")))]),t._v(" "),e("td",{staticClass:"amount"},[t._v(t._s(t.formatPrice(t.$store.getters["Cart/getTotal"])))]),t._v(" "),t._m(0)])],2)])])])]):t._e()],2),t._v(" "),t.showPaymentReceipt?e("modal",{attrs:{width:"600px",height:"400px"},on:{close:function(e){return t.createNewSale()}}},[e("template",{slot:"body"},[e("div",{staticClass:"wepos-payment-receipt"},[e("div",{staticClass:"sale-completed"},[e("img",{attrs:{src:t.wepos.assets_url+"/images/sale-completed.png",alt:"",width:"120px"}}),t._v(" "),e("h2",[t._v(t._s(t.__("Sale Completed","wepos")))])]),t._v(" "),e("div",{staticClass:"print-section"},[e("print-receipt"),t._v(" "),e("button",{staticClass:"new-sale-btn",on:{click:function(e){return e.preventDefault(),t.createNewSale()}}},[e("span",{staticClass:"icon flaticon-add"}),t._v(" "),e("span",{staticClass:"label"},[t._v(t._s(t.__("New Sale","wepos")))])])],1)])])],2):t._e(),t._v(" "),t.showHelp?e("modal",{attrs:{width:"700px",height:"500px"},on:{close:function(e){return t.closeHelp()}}},[e("template",{slot:"body"},[e("div",{staticClass:"wepos-help-wrapper"},[e("h2",[t._v(t._s(t.__("Shortcut Keys","wepos")))]),t._v(" "),e("ul",[e("li",[e("span",{staticClass:"code"},[e("code",[t._v("f1")])]),t._v(" "),e("span",{staticClass:"title"},[t._v(t._s(t.__("Search Product","wepos")))])]),t._v(" "),e("li",[e("span",{staticClass:"code"},[e("code",[t._v("f2")])]),t._v(" "),e("span",{staticClass:"title"},[t._v(t._s(t.__("Scan Product","wepos")))])]),t._v(" "),e("li",[e("span",{staticClass:"code"},[e("code",[t._v("f3")])]),t._v(" "),e("span",{staticClass:"title"},[t._v(t._s(t.__("Toggle Product View","wepos")))])]),t._v(" "),e("li",[e("span",{staticClass:"code"},[e("code",[t._v("f4")])]),t._v(" "),e("span",{staticClass:"title"},[t._v(t._s(t.__("Add Fee in cart","wepos")))])]),t._v(" "),e("li",[e("span",{staticClass:"code"},[e("code",[t._v("f5")])]),t._v(" "),e("span",{staticClass:"title"},[t._v(t._s(t.__("Add Discount in cart","wepos")))])]),t._v(" "),e("li",[e("span",{staticClass:"code"},[e("code",[t._v("f6")])]),t._v(" "),e("span",{staticClass:"title"},[t._v(t._s(t.__("Add Customer note","wepos")))])]),t._v(" "),e("li",[e("span",{staticClass:"code"},[e("code",[t._v("f7")])]),t._v(" "),e("span",{staticClass:"title"},[t._v(t._s(t.__("Customer Search","wepos")))])]),t._v(" "),e("li",[e("span",{staticClass:"code"},[e("code",[t._v("shift+f7")])]),t._v(" "),e("span",{staticClass:"title"},[t._v(t._s(t.__("Add new Customer","wepos")))])]),t._v(" "),e("li",[e("span",{staticClass:"code"},[e("code",[t._v("f8")])]),t._v(" "),e("span",{staticClass:"title"},[t._v(t._s(t.__("Create New Sale","wepos")))])]),t._v(" "),e("li",[e("span",{staticClass:"code"},[e("code",[t._v("shift+f8")])]),t._v(" "),e("span",{staticClass:"title"},[t._v(t._s(t.__("Empty your cart","wepos")))])]),t._v(" "),e("li",[e("span",{staticClass:"code"},[e("code",[t._v("f9")])]),t._v(" "),e("span",{staticClass:"title"},[t._v(t._s(t.__("Go to payment receipt","wepos")))])]),t._v(" "),e("li",[e("span",{staticClass:"code"},[e("code",[t._v("f10")])]),t._v(" "),e("span",{staticClass:"title"},[t._v(t._s(t.__("Process Payment","wepos")))])]),t._v(" "),e("li",[e("span",{staticClass:"code"},[e("code",[t._v("ctrl/cmd+p")])]),t._v(" "),e("span",{staticClass:"title"},[t._v(t._s(t.__("Print Receipt","wepos")))])]),t._v(" "),e("li",[e("span",{staticClass:"code"},[e("code",[t._v("ctrl/cmd+?")])]),t._v(" "),e("span",{staticClass:"title"},[t._v(t._s(t.__("Show/Close(Toggle) Help","wepos")))])]),t._v(" "),e("li",[e("span",{staticClass:"code"},[e("code",[t._v("esc")])]),t._v(" "),e("span",{staticClass:"title"},[t._v(t._s(t.__("Close anything","wepos")))])])])])])],2):t._e(),t._v(" "),t.showModal?e("modal",{attrs:{width:"98%",height:"95vh"},on:{open:function(e){return t.focusCashInput()},close:function(e){return t.backToSale()},enterpressed:function(e){return t.processPayment()}}},[e("template",{slot:"body"},[e("div",{staticClass:"wepos-checkout-wrapper"},[e("div",{staticClass:"left-content"},[e("div",{staticClass:"header"},[t._v("\n "+t._s(t.__("Sale Summary","wepos"))+"\n ")]),t._v(" "),e("div",{staticClass:"content"},[e("table",{staticClass:"sale-summary-cart"},[e("tbody",t._l(t.cartdata.line_items,(function(a){return e("tr",[e("td",{staticClass:"name"},[t._v("\n "+t._s(a.name)+"\n "),a.attribute.length>0&&"variable"===a.type?e("div",{staticClass:"attribute"},[e("ul",t._l(a.attribute,(function(a){return e("li",[e("span",{staticClass:"attr_name"},[t._v(t._s(a.name))]),t._v(": "),e("span",{staticClass:"attr_value"},[t._v(t._s(a.option))])])})),0)]):t._e()]),t._v(" "),e("td",{staticClass:"quantity"},[t._v(t._s(a.quantity))]),t._v(" "),e("td",{staticClass:"price"},[a.on_sale?[e("span",{staticClass:"sale-price"},[t._v(t._s(t.formatPrice(a.quantity*a.sale_price)))]),t._v(" "),e("span",{staticClass:"regular-price"},[t._v(t._s(t.formatPrice(a.quantity*a.regular_price)))])]:[e("span",{staticClass:"sale-price"},[t._v(t._s(t.formatPrice(a.quantity*a.regular_price)))])]],2)])})),0)])]),t._v(" "),e("div",{staticClass:"footer"},[e("ul",[e("li",{staticClass:"wepos-clearfix"},[e("span",{staticClass:"wepos-left"},[t._v("\n "+t._s(t.__("Subtotal","wepos"))+"\n "),"incl"==t.settings.woo_tax.wc_tax_display_cart?e("span",{staticClass:"metadata"},[t._v("\n "+t._s(t.__("Includes Tax","wepos"))+" "+t._s(t.formatPrice(t.$store.getters["Cart/getTotalLineTax"]))+"\n ")]):t._e()]),t._v(" "),e("span",{staticClass:"wepos-right"},[t._v(t._s(t.formatPrice(t.$store.getters["Cart/getSubtotal"])))])]),t._v(" "),t.cartdata.fee_lines.length>0?t._l(t.cartdata.fee_lines,(function(a,s){return e("li",{staticClass:"wepos-clearfix"},["discount"==a.type?[e("span",{staticClass:"wepos-left"},[t._v(t._s(t.__("Discount","wepos"))+" "),e("span",{staticClass:"metadata"},[t._v(t._s(a.name)+" "+t._s(t.getDiscountAmount(a)))])]),t._v(" "),e("span",{staticClass:"wepos-right"},[t._v("-"+t._s(t.formatPrice(Math.abs(a.total))))])]:[e("span",{staticClass:"wepos-left"},[t._v(t._s(t.__("Fee","wepos"))+" "),e("span",{staticClass:"metadata"},[t._v(t._s(a.name)+" "+t._s(t.getDiscountAmount(a)))])]),t._v(" "),e("span",{staticClass:"wepos-right"},[t._v(t._s(t.formatPrice(a.total)))])]],2)})):t._e(),t._v(" "),t.$store.getters["Cart/getTotalTax"]?e("li",{staticClass:"wepos-clearfix"},[e("span",{staticClass:"wepos-left"},[t._v(t._s(t.__("Tax","wepos")))]),t._v(" "),e("span",{staticClass:"wepos-right"},[t._v(t._s(t.formatPrice(t.$store.getters["Cart/getTotalTax"])))])]):t._e(),t._v(" "),e("li",{staticClass:"wepos-clearfix"},[e("span",{staticClass:"wepos-left"},[t._v(t._s(t.__("Order Total","wepos")))]),t._v(" "),e("span",{staticClass:"wepos-right"},[t._v(t._s(t.formatPrice(t.$store.getters["Cart/getTotal"])))])]),t._v(" "),e("li",{staticClass:"wepos-clearfix"},[e("span",{staticClass:"wepos-left"},[t._v(t._s(t.__("Pay","wepos")))]),t._v(" "),e("span",{staticClass:"wepos-right"},[t._v(t._s(t.formatPrice(t.$store.getters["Cart/getTotal"])))])])],2)])]),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"header wepos-clearfix"},[e("h2",{staticClass:"wepos-left"},[t._v(t._s(t.__("Pay","wepos")))]),t._v(" "),e("span",{staticClass:"pay-amount wepos-right"},[t._v(t._s(t.formatPrice(t.$store.getters["Cart/getTotal"])))])]),t._v(" "),e("div",{staticClass:"content"},[e("div",{staticClass:"payment-gateway"},[t.availableGateways.length>0?[t._l(t.availableGateways,(function(a){return e("label",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.selectedGateway,expression:"selectedGateway"}],attrs:{type:"radio",name:"gateway",checked:""},domProps:{value:a.id,checked:t._q(t.selectedGateway,a.id)},on:{change:function(e){t.selectedGateway=a.id}}}),t._v(" "),e("span",{staticClass:"gateway",class:`gateway-${a.id}`},[t._v("\n "+t._s(a.title)+"\n ")])])})),t._v(" "),t.emptyGatewayDiv>0?t._l(t.emptyGatewayDiv,(function(t){return e("label",{key:t},[e("span",{staticClass:"grid-placeholder"})])})):t._e()]:[e("p",[t._v(t._s(t.__("No gateway found","wepos")))])]],2),t._v(" "),"wepos_cash"==t.orderdata.payment_method?[e("div",{staticClass:"payment-option"},[e("div",{staticClass:"payment-amount"},[e("div",{staticClass:"input-part"},[e("div",{staticClass:"input-wrap"},[e("p",[t._v(t._s(t.__("Cash","wepos")))]),t._v(" "),e("div",{staticClass:"input-addon"},[e("span",{staticClass:"currency"},[t._v(t._s(t.wepos.currency_format_symbol))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.cashAmount,expression:"cashAmount"}],ref:"cashamount",attrs:{id:"input-cash-amount",type:"text"},domProps:{value:t.cashAmount},on:{input:function(e){e.target.composing||(t.cashAmount=e.target.value)}}})])])]),t._v(" "),e("div",{staticClass:"change-money"},[e("p",[t._v(t._s(t.__("Change money","wepos"))+": "+t._s(t.formatPrice(t.changeAmount)))])])])])]:t._e(),t._v(" "),t._l(t.availableGatewayContent,(function(a,s){return e(a,{key:s,tag:"component",attrs:{availablegateways:t.availableGateways}})}))],2),t._v(" "),e("div",{staticClass:"footer wepos-clearfix"},[e("a",{staticClass:"back-btn wepos-left",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.backToSale()}}},[t._v(t._s(t.__("Back to Sale","wepos")))]),t._v(" "),e("button",{staticClass:"process-checkout-btn wepos-right",attrs:{disabled:!t.$store.getters["Order/getCanProcessPayment"]},on:{click:function(e){return e.preventDefault(),t.processPayment.apply(null,arguments)}}},[t._v(t._s(t.__("Process Payment","wepos")))])])])])])],2):t._e(),t._v(" "),e("overlay",{attrs:{show:t.showOverlay}}),t._v(" "),t.showReceiptHtml?e("print-receipt-html",{directives:[{name:"show",rawName:"v-show",value:t.createprintreceipt,expression:"createprintreceipt"}],attrs:{printdata:t.printdata,settings:t.settings}}):t._e(),t._v(" "),t._l(t.afterMainContents,(function(a,s){return e(a,{key:s,tag:"component",attrs:{orderdata:t.orderdata,printdata:t.printdata}})}))],2)};o._withStripped=!0;var r=function(){var t=this,e=t._self._c;return t.show?e("div",{staticClass:"overlay"}):t._e()};r._withStripped=!0;const i=e({name:"Overlay",props:{show:{type:Boolean}}},r,[],!1,null,null,null).exports;var n=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.outside,expression:"outside"}],staticClass:"search-box"},[e("form",{attrs:{action:"",autocomplete:"off"},on:{submit:function(e){return e.preventDefault(),t.handleProductScan.apply(null,arguments)}}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.serachInput,expression:"serachInput"}],ref:"productSearch",attrs:{type:"text",name:"search",id:"product-search",placeholder:t.placeholder},domProps:{value:t.serachInput},on:{focus:function(e){return e.preventDefault(),t.triggerFocus.apply(null,arguments)},keyup:function(e){return e.preventDefault(),t.searchProduct.apply(null,arguments)},input:function(e){e.target.composing||(t.serachInput=e.target.value)}}}),t._v(" "),"product"==t.mode?e("span",{staticClass:"search-icon flaticon-musica-searcher"}):t._e(),t._v(" "),"scan"==t.mode?e("span",{staticClass:"search-icon flaticon-supermarket-scanner"}):t._e(),t._v(" "),e("div",{directives:[{name:"hotkey",rawName:"v-hotkey",value:t.hotkeys,expression:"hotkeys"}],staticClass:"search-type"},[e("a",{class:{active:"product"==t.mode},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.changeMode("product")}}},[t._v(t._s(t.__("Product","wepos")))]),t._v(" "),e("a",{class:{active:"scan"==t.mode},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.changeMode("scan")}}},[t._v(t._s(t.__("Scan","wepos")))])]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.showResults&&"product"==t.mode,expression:"showResults && mode=='product'"}],staticClass:"search-result"},[t.searchableProduct.length?e("div",[e("keyboard-control",{attrs:{listLength:t.searchableProduct.length},on:{"key-down":t.onKeyDown,"key-up":t.onKeyUp},scopedSlots:t._u([{key:"default",fn:function(a){let{selectedIndex:s}=a;return t._l(t.searchableProduct,(function(a,o){return e("li",{key:o,staticClass:"product-search-item",class:{selected:o===s}},["simple"==a.type?[e("a",{staticClass:"wepos-clearfix",attrs:{href:"#"},on:{click:function(e){return t.addToCartAction(a)}}},[t._v(t._s(a.name)+"\n "),e("span",{staticClass:"price"},[t._v(t._s(t.formatPrice(a.price)))]),t._v(" "),a.sku?e("span",{staticClass:"sku"},[t._v(t._s(a.sku))]):t._e(),t._v(" "),e("span",{staticClass:"action flaticon-enter-arrow wepos-right"})])]:t._e(),t._v(" "),"variable"==a.type?[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.selectVariation(a)}}},[t._v(t._s(a.name)+"\n "),e("span",{staticClass:"price"},[t._v(t._s(t.formatPrice(a.price)))]),t._v(" "),a.sku?e("span",{staticClass:"sku"},[t._v(t._s(a.sku))]):t._e(),t._v(" "),e("span",{staticClass:"action flaticon-enter-arrow wepos-right"})])]:t._e()],2)}))}}],null,!1,2881840290)})],1):e("div",{staticClass:"no-data-found"},[t._v("\n "+t._s(t.__("No product found","wepos"))+"\n ")]),t._v(" "),e("div",{staticClass:"suggession"},[e("span",{staticClass:"term"},[e("span",{staticClass:"flaticon-swap"}),t._v(" "+t._s(t.__("to navigate","wepos"))+"\n ")]),t._v(" "),e("span",{staticClass:"term"},[e("span",{staticClass:"flaticon-enter-arrow"}),t._v(" "+t._s(t.__("to select","wepos"))+"\n ")]),t._v(" "),e("span",{staticClass:"term"},[e("strong",[t._v("esc")]),t._v(" "+t._s(t.__("to dismiss","wepos"))+"\n ")])])])]),t._v(" "),t.showVariationModal?e("modal",{attrs:{title:t.__("Select Variations","wepos"),width:"500px",height:"auto",footer:!0,header:!0},on:{close:function(e){t.showVariationModal=!1}}},[e("template",{slot:"body"},t._l(t.selectedVariationProduct.attributes,(function(a){return e("div",{staticClass:"variation-attribute-wrapper"},[e("div",{staticClass:"attribute"},[e("p",[t._v(t._s(a.name))]),t._v(" "),e("div",{staticClass:"options"},[t._l(a.options,(function(s){return[e("label",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.chosenAttribute[a.name],expression:"chosenAttribute[attribute.name]"}],attrs:{type:"radio"},domProps:{value:s,checked:t._q(t.chosenAttribute[a.name],s)},on:{change:function(e){return t.$set(t.chosenAttribute,a.name,s)}}}),t._v(" "),e("div",{staticClass:"box"},[t._v("\n "+t._s(s)+"\n ")])])]}))],2)])])})),0),t._v(" "),e("template",{slot:"footer"},[e("button",{staticClass:"add-variation-btn",attrs:{disabled:t.attributeDisabled},on:{click:function(e){return t.addVariationProduct()}}},[t._v(t._s(t.__("Add Product","wepos")))])])],2):t._e()],1)};n._withStripped=!0;const c=e({props:{listLength:Number},data:()=>({selectedIndex:0}),render(t){return t("ul",this.$scopedSlots.default({selectedIndex:this.selectedIndex}))},methods:{keyHandler(t){const e=t.which||t.keyCode;38===e||t.shiftKey&&9===e?(this.handleKeyUp(t),this.$emit("key-up")):40!==e&&9!==e||(this.handleKeyDown(t),this.$emit("key-down"))},handleKeyUp(t){t.preventDefault(),this.selectedIndex<=0?this.selectedIndex=this.listLength-1:this.selectedIndex>0&&this.selectedIndex<=this.listLength-1&&this.selectedIndex--},handleKeyDown(t){t.preventDefault(),this.selectedIndex<0||this.selectedIndex===this.listLength-1?this.selectedIndex=0:this.selectedIndex>=0&&this.selectedIndex[]},settings:{type:Object,default:()=>({})}},components:{Modal:l,KeyboardControl:c},data:()=>({showResults:!1,showVariationModal:!1,mode:"scan",serachInput:"",searchableProduct:[],selectedVariationProduct:{},attributeDisabled:!0,chosenAttribute:{}}),computed:{placeholder(){return"scan"==this.mode?this.__("Scan your product","wepos"):this.__("Search product by typing","wepos")},hotkeys(){return{f1:this.changeProductSearch,f2:this.changeScan,esc:this.searchClose}}},watch:{chosenAttribute(t,e){Object.keys(t).length==this.selectedVariationProduct.attributes.length&&(this.attributeDisabled=!1)}},methods:{changeScan(t){t.preventDefault(),this.changeMode("scan")},changeProductSearch(t){t.preventDefault(),this.changeMode("product")},searchClose(){this.showResults=!1,this.showVariationModal=!1,this.changeMode("scan"),this.$refs.productSearch.blur()},onKeyDown(){jQuery(".product-search-item.selected").next().children("a").focus()},onKeyUp(){jQuery(".product-search-item.selected").prev().children("a").focus()},triggerFocus(){this.showResults=!0,this.$emit("onfocus")},outside(){this.showResults=!1,this.$emit("onblur")},changeMode(t){this.mode=t,"scan"==this.mode&&(this.searchableProduct=[],this.showResults=!1),this.$refs.productSearch.focus()},handleProductScan(){if("product"!=this.mode){var t=this.settings.wepos_general,e="custom"==t.barcode_scanner_field?"barcode":t.barcode_scanner_field,a={},s=this.products.filter((t=>{if("simple"==t.type&&t[e].toString()==this.serachInput)return!0;if("variable"==t.type){var a=!1;if(t.variations.length>0&&weLo_.forEach(t.variations,((t,s)=>{t[e].toString()==this.serachInput&&(a=!0)})),a)return!0}return!1}));if(s.length>0)if("variable"==(s=s[0]).type)(a=s.variations.filter((t=>t[e].toString()==this.serachInput))[0]).parent_id=s.id,a.type=s.type,a.name=s.name,this.$emit("onProductAdded",a);else this.$emit("onProductAdded",s);this.serachInput=""}},searchProduct(t){this.serachInput&&"product"==this.mode&&(this.searchableProduct=this.products.filter((t=>-1!=t.id.toString().indexOf(this.serachInput)||(-1!=t.name.toString().toLowerCase().indexOf(this.serachInput.toLowerCase())||-1!=t.sku.indexOf(this.serachInput)))))},selectVariation(t){this.selectedVariationProduct=t,this.showVariationModal=!0},addVariationProduct(){var t=this.findMatchingVariations(this.selectedVariationProduct.variations,this.chosenAttribute)[0];t.parent_id=this.selectedVariationProduct.id,t.type=this.selectedVariationProduct.type,t.name=this.selectedVariationProduct.name,this.$emit("onProductAdded",t),this.showVariationModal=!1,this.chosenAttribute={}},addToCartAction(t){this.$emit("onProductAdded",t)}},mounted(){this.$refs.productSearch.focus()}},n,[],!1,null,null,null).exports;var d=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.onblur,expression:"onblur"},{name:"hotkey",rawName:"v-hotkey",value:t.hotkeys,expression:"hotkeys"}],staticClass:"customer-search-box"},[e("form",{attrs:{action:"",autocomplete:"off"}},[e("svg",{staticClass:"customer-icon",attrs:{width:"19px",height:"19px",viewBox:"0 0 19 19",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[e("defs",[e("linearGradient",{attrs:{x1:"14.5524094%",y1:"14.6909544%",x2:"82.7722259%",y2:"85.2519444%",id:"linearGradient-1"}},[e("stop",{attrs:{"stop-color":"#C444FB",offset:"0%"}}),t._v(" "),e("stop",{attrs:{"stop-color":"#5B56D7",offset:"100%"}})],1)],1),t._v(" "),e("g",{attrs:{id:"Page-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[e("g",{attrs:{id:"POS-Design---Dokan-P2",transform:"translate(-759.000000, -27.000000)"}},[e("g",{attrs:{id:"Group",transform:"translate(759.000000, 27.000000)"}},[e("circle",{attrs:{id:"Oval",fill:"url(#linearGradient-1)","fill-rule":"nonzero",cx:"9.5",cy:"9.5",r:"9.5"}}),t._v(" "),e("g",{attrs:{id:"flaticon1543304699-svg-2",transform:"translate(9.500000, 9.500000) scale(-1, 1) translate(-9.500000, -9.500000) translate(6.000000, 5.000000)"}},[e("g",{attrs:{id:"flaticon1543304699-svg"}},[e("path",{attrs:{d:"M3.31578947,4.40159143 C4.27870463,4.40159143 5.0593751,3.41627143 5.0593751,2.20080857 C5.0593751,0.98532 4.80306952,0 3.31578947,0 C1.82850943,0 1.57215436,0.98532 1.57215436,2.20080857 C1.57215436,3.41627143 2.35282482,4.40159143 3.31578947,4.40159143 Z",id:"Path",fill:"#FFFFFF"}}),t._v(" "),e("path",{attrs:{d:"M0.0616980658,7.82884897 C0.0604730658,7.62453402 0.0592480658,7.77128348 0.0616980658,7.82884897 Z",id:"Path",fill:"#000000"}}),t._v(" "),e("path",{attrs:{d:"M6.64682715,7.85749962 C6.65070632,7.82585407 6.64815424,7.63794608 6.64682715,7.85749962 Z",id:"Path",fill:"#000000"}}),t._v(" "),e("path",{attrs:{d:"M6.60522584,7.67306571 C6.57293401,5.5557 6.30682954,4.95236571 4.27051414,4.57045714 C4.27051414,4.57045714 3.98387156,4.95002571 3.31576473,4.95002571 C2.64765789,4.95002571 2.36096583,4.57045714 2.36096583,4.57045714 C0.34687117,4.9482 0.0645836606,5.54258571 0.0274666143,7.60428 C0.0244230165,7.77263143 0.0230125687,7.78147714 0.0224681854,7.76193429 C0.0225919089,7.79855143 0.0227403771,7.86628286 0.0227403771,7.98438857 C0.0227403771,7.98438857 0.507538492,9 3.31576473,9 C6.12394148,9 6.60878908,7.98438857 6.60878908,7.98438857 C6.60878908,7.90850571 6.60883857,7.85574 6.6089128,7.81984286 C6.60836842,7.83192857 6.60727965,7.80850286 6.60522584,7.67306571 Z",id:"Path",fill:"#FFFFFF"}})])])])])])]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.serachInput,expression:"serachInput"}],ref:"customerSearch",attrs:{type:"text",name:"customer_search",id:"customer-search",placeholder:t.__("Search customer","wepos")},domProps:{value:t.serachInput},on:{focus:function(e){return e.preventDefault(),t.triggerFocus.apply(null,arguments)},keyup:t.searchCustomer,input:function(e){e.target.composing||(t.serachInput=e.target.value)}}}),t._v(" "),e("span",{staticClass:"add-new-customer flaticon-add",on:{click:function(e){return e.preventDefault(),t.addNewCustomer()}}}),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.showCustomerResults,expression:"showCustomerResults"}],staticClass:"search-result"},[t.customers.length?e("div",[e("keyboard-control",{attrs:{listLength:t.customers.length},on:{"key-down":t.onKeyDown,"key-up":t.onKeyUp},scopedSlots:t._u([{key:"default",fn:function(a){let{selectedIndex:s}=a;return t._l(t.customers,(function(a,o){return e("li",{key:o,staticClass:"customer-search-item",class:{selected:o===s}},[e("a",{staticClass:"wepos-clearfix",attrs:{href:"#"},on:{click:function(e){return t.selectCustomer(a)}}},[e("span",{staticClass:"avatar wepos-left"},[e("img",{attrs:{src:a.avatar_url,alt:a.first_name+" "+a.last_name}})]),t._v(" "),e("span",{staticClass:"name wepos-left"},[t._v(t._s(a.first_name+" "+a.last_name)),e("span",{staticClass:"metadata"},[t._v(t._s(a.email))])]),t._v(" "),e("span",{staticClass:"action flaticon-enter-arrow wepos-right"})])])}))}}],null,!1,1035729388)})],1):e("div",{staticClass:"no-data-found"},[t._v("\n "+t._s(t.__("No customer found","wepos"))+"\n ")]),t._v(" "),e("div",{staticClass:"suggession"},[e("span",{staticClass:"term"},[e("span",{staticClass:"flaticon-swap"}),t._v(" "+t._s(t.__("to navigate","wepos"))+"\n ")]),t._v(" "),e("span",{staticClass:"term"},[e("span",{staticClass:"flaticon-enter-arrow"}),t._v(" "+t._s(t.__("to select","wepos"))+"\n ")]),t._v(" "),e("span",{staticClass:"term"},[e("strong",[t._v("esc")]),t._v(" "+t._s(t.__("to dismiss","wepos"))+"\n ")])])])]),t._v(" "),t.showNewCustomerModal?e("modal",{attrs:{title:t.__("Add New Customer","wepos"),width:"700px",footer:!0,header:!0},on:{close:t.closeNewCustomerModal}},[e("template",{slot:"body"},[e("div",{staticClass:"wepos-new-customer-form"},[e("form",{staticClass:"wepos-form",attrs:{action:"",autocomplete:"off"}},[e("div",{staticClass:"form-row col-2"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.customer.first_name,expression:"customer.first_name"}],attrs:{type:"text",placeholder:t.__("First Name","wepos")},domProps:{value:t.customer.first_name},on:{input:function(e){e.target.composing||t.$set(t.customer,"first_name",e.target.value)}}}),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.customer.last_name,expression:"customer.last_name"}],attrs:{type:"text",placeholder:t.__("Last Name","wepos")},domProps:{value:t.customer.last_name},on:{input:function(e){e.target.composing||t.$set(t.customer,"last_name",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-row"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.customer.email,expression:"customer.email"}],attrs:{type:"email",placeholder:t.__("Email","wepos")},domProps:{value:t.customer.email},on:{input:function(e){e.target.composing||t.$set(t.customer,"email",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-row col-2"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.customer.address_1,expression:"customer.address_1"}],attrs:{type:"text",placeholder:t.__("Address 1","wepos")},domProps:{value:t.customer.address_1},on:{input:function(e){e.target.composing||t.$set(t.customer,"address_1",e.target.value)}}}),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.customer.address_2,expression:"customer.address_2"}],attrs:{type:"text",placeholder:t.__("Address 2 (optional)","wepos")},domProps:{value:t.customer.address_2},on:{input:function(e){e.target.composing||t.$set(t.customer,"address_2",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-row col-2"},[e("multiselect",{staticClass:"wepos-multiselect customer-country",staticStyle:{width:"48.5%","margin-right":"20px"},attrs:{options:t.getCountryList,selectLabel:"",deselectLabel:"",selectedLabel:"",placeholder:t.__("Select a country","wepos"),"track-by":"code",label:"name"},on:{select:t.handleCountrySelect,remove:t.removeCountrySelect},scopedSlots:t._u([{key:"singleLabel",fn:function(a){return[e("span",{domProps:{innerHTML:t._s(a.option.name)}})]}},{key:"option",fn:function(a){return[e("span",{domProps:{innerHTML:t._s(a.option.name)}})]}}],null,!1,568765526),model:{value:t.selectedCountry,callback:function(e){t.selectedCountry=e},expression:"selectedCountry"}},[t._v(" "),t._v(" "),e("template",{slot:"noResult"},[e("div",{staticClass:"no-data-found"},[t._v(t._s(t.__("No country found","wepos")))])])],2),t._v(" "),t.stateList.length>0?[e("multiselect",{staticClass:"wepos-multiselect customer-state",staticStyle:{width:"48.5%"},attrs:{options:t.stateList,selectLabel:"",deselectLabel:"",selectedLabel:"",placeholder:t.__("Select a state","wepos"),"track-by":"code",label:"name"},on:{remove:t.removeStateSelect},scopedSlots:t._u([{key:"singleLabel",fn:function(a){return[e("span",{domProps:{innerHTML:t._s(a.option.name)}})]}},{key:"option",fn:function(a){return[e("span",{domProps:{innerHTML:t._s(a.option.name)}})]}}],null,!1,568765526),model:{value:t.selectedState,callback:function(e){t.selectedState=e},expression:"selectedState"}},[t._v(" "),t._v(" "),e("template",{slot:"noResult"},[e("div",{staticClass:"no-data-found"},[t._v(t._s(t.__("No country found","wepos")))])])],2)]:[e("input",{directives:[{name:"model",rawName:"v-model",value:t.customer.state,expression:"customer.state"}],attrs:{type:"text",placeholder:t.__("States (optional)","wepos")},domProps:{value:t.customer.state},on:{input:function(e){e.target.composing||t.$set(t.customer,"state",e.target.value)}}})]],2),t._v(" "),e("div",{staticClass:"form-row col-2"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.customer.city,expression:"customer.city"}],attrs:{type:"text",placeholder:t.__("City (optional)","wepos")},domProps:{value:t.customer.city},on:{input:function(e){e.target.composing||t.$set(t.customer,"city",e.target.value)}}}),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.customer.postcode,expression:"customer.postcode"}],attrs:{type:"text",placeholder:t.__("Zip/Postal Code (optional)","wepos")},domProps:{value:t.customer.postcode},on:{input:function(e){e.target.composing||t.$set(t.customer,"postcode",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-row"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.customer.phone,expression:"customer.phone"}],attrs:{type:"text",placeholder:t.__("Phone (optional)","wepos")},domProps:{value:t.customer.phone},on:{input:function(e){e.target.composing||t.$set(t.customer,"phone",e.target.value)}}})])])])]),t._v(" "),e("template",{slot:"footer"},[e("button",{staticClass:"add-new-customer-btn add-variation-btn",attrs:{disabled:t.isDisabled},on:{click:function(e){return t.createCustomer()}}},[t._v(t._s(t.__("Add Customer","wepos")))])])],2):t._e()],1)};d._withStripped=!0;const p=e({name:"CustomerSearch",components:{Modal:wepos_get_lib("Modal"),KeyboardControl:c},data:()=>({submitDisable:!1,customers:[],customer:{email:"",first_name:"",last_name:"",address_1:"",address_2:"",country:"",state:"",postcode:"",city:"",phone:""},showCustomerResults:!1,serachInput:"",showNewCustomerModal:!1,stateList:[],selectedState:null,selectedCountry:null,isDisabled:!0}),computed:{hotkeys(){return{f7:this.focusCustomerSearch,"shift+f7":this.addNewCustomer,esc:this.searchClose}},getCountryList:()=>Object.keys(wepos.countries).map((t=>({code:t,name:wepos.countries[t]}))),orderdata(){return this.$store.state.Order.orderdata}},watch:{customer:{handler(t){this.isDisabled=!0,void 0!==t.first_name&&""!=t.first_name.trim()&&void 0!==t.last_name&&""!=t.last_name.trim()&&void 0!==t.email&&""!=t.email.trim()&&(this.isDisabled=!1)},deep:!0},"orderdata.customer_id"(t){this.serachInput=t?this.orderdata.billing.first_name+" "+this.orderdata.billing.last_name:""}},methods:{focusCustomerSearch(t){t.preventDefault(),this.$refs.customerSearch.focus()},searchClose(){this.showCustomerResults=!1,this.serachInput="",this.showNewCustomerModal=!1,this.$refs.customerSearch.blur()},addNewCustomer(){this.showNewCustomerModal=!0},onKeyDown(){jQuery(".customer-search-item.selected").next().children("a").focus()},onKeyUp(){jQuery(".customer-search-item.selected").prev().children("a").focus()},triggerFocus(){this.showCustomerResults=!0,this.$emit("onfocus")},onblur(){this.showCustomerResults=!1,this.$emit("onblur")},closeNewCustomerModal(){this.customer={email:"",first_name:"",last_name:"",address_1:"",address_2:"",country:"",state:"",postcode:"",city:"",phone:""},this.selectedState=null,this.selectedCountry=null,this.showNewCustomerModal=!1},searchCustomer(){this.serachInput?wepos.api.get(wepos.rest.root+wepos.rest.posversion+"/customers?search="+this.serachInput).done((t=>{this.customers=t})):this.$emit("onCustomerSelected",{})},selectCustomer(t){this.$emit("onCustomerSelected",t),this.serachInput=t.first_name+" "+t.last_name,this.showCustomerResults=!1},createCustomer(){if(this.customer.email){var t={email:this.customer.email,first_name:this.customer.first_name,last_name:this.customer.last_name,username:this.customer.email,password:this.generatePassword(20),billing:{first_name:this.customer.first_name,last_name:this.customer.last_name,address_1:this.customer.address_1,address_2:this.customer.address_2,country:null!==this.selectedCountry?this.selectedCountry.code:"",state:null!==this.selectedState?this.selectedState.code:this.customer.state,postcode:this.customer.postcode,city:this.customer.city,phone:this.customer.phone,email:this.customer.email}},e=jQuery(".wepos-new-customer-form");e.block({message:null,overlayCSS:{background:"#fff url("+wepos.ajax_loader+") no-repeat center",opacity:.4}}),wepos.api.post(wepos.rest.root+wepos.rest.posversion+"/customers",t).done((t=>{this.serachInput=t.first_name+" "+t.last_name,this.$emit("onCustomerSelected",t),e.unblock(),this.closeNewCustomerModal()})).fail((t=>{e.unblock(),alert(t.responseJSON.message)}))}else alert(this.__("Please enter an email address for customer","wepos"))},removeCountrySelect(t,e){this.selectedState=null,this.selectedCountry=null,this.stateList=[],this.customer.country="",this.customer.state=""},removeStateSelect(t,e){this.selectedState=null,this.customer.state=""},handleCountrySelect(t,e){var a=void 0!==wepos.states[t.code]?wepos.states[t.code]:[],s=Object.keys(a);s.length>0?this.stateList=s.map((t=>({code:t,name:a[t]}))):(this.stateList=a,this.selectedState=null)},generatePassword(t){for(var e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",a="",s=0,o=e.length;s{this.serachInput=""}));var t=JSON.parse(localStorage.getItem("orderdata"));"undefined"!=t.customer_id&&0!=t.customer_id&&(this.serachInput=t.billing.first_name+" "+t.billing.last_name)}},d,[],!1,null,null,null).exports;var _=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"hotkey",rawName:"v-hotkey",value:t.hotkeys,expression:"hotkeys"}],staticClass:"wepos-fee-keypad-wrap",class:t.className},[e("v-popover",{attrs:{offset:"5","popover-base-class":"fee-keypad tooltip popover",placement:"top",open:t.viewFeeKeypad}},[e("a",{attrs:{href:"#"},on:{click:t.showFeeKeypad}},[t._v(t._s(t.__("Add","wepos"))+" "+t._s(t.name))]),t._v(" "),e("template",{slot:"popover"},[e("form",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.displayValue,expression:"displayValue"}],ref:"feeinput",attrs:{type:"text"},domProps:{value:t.displayValue},on:{input:function(e){e.target.composing||(t.displayValue=e.target.value)}}})]),t._v(" "),e("keyboard",{attrs:{layouts:t.layout()},on:{percent:t.percentFee,flat:t.flatFee},model:{value:t.displayValue,callback:function(e){t.displayValue=e},expression:"displayValue"}})],1)],2)],1)};_._withStripped=!0;var m=function(){var t=this,e=t._self._c;return e("aside",{staticClass:"vue-keyboard",class:{full:t.full,empty:t.empty,valid:t.valid,invalid:!t.valid},attrs:{role:"application","data-value":t.value,"data-layout":t.layout}},t._l(t.buttons,(function(a){return e("div",{staticClass:"vue-keyboard-row",attrs:{role:"row","data-keys":a.length}},t._l(a,(function(a){return e("button",{staticClass:"vue-keyboard-key",class:a.type,attrs:{role:"button","data-args":a.args,"data-text":a.value,"data-action":a.action.name},domProps:{innerHTML:t._s(a.value)},on:{click:function(t){return t.preventDefault(),a.action.callable.apply(null,arguments)}}})})),0)})),0)};m._withStripped=!0;const h="7440011c983cf39ae730b1f831e2922ac5a76910",v="f630c4abcae620278f82e142a526ef325c2a773a",f="ad982c66898e02a5dab419ea7568421b03f68ee2";var y=e({name:"keyboard",props:{value:{type:String,default:""},layouts:{type:[String,Array],required:!0},maxlength:{type:Number,default:0,validator:t=>t>=0},pattern:{type:String,default:null}},data:()=>({layout:0}),computed:{full(){return this.maxlength>0&&this.value.length>=this.maxlength},empty(){return 0===this.value.length},lines(){return(Array.isArray(this.layouts)?this.layouts:[this.layouts])[this.layout].replace("||",h).replace("{{",v).replace("}}",f).split("|")},buttons(){return this.lines.map((t=>{let e=t.match(new RegExp(`(${v}|${f}|${h}|.)`,"g")),a=[],s=null;return e.forEach((t=>{if("{"===t)s="";else if("}"===t){let t=s.split(":"),e=t.length>1?t[0]:"",o=t.length>1?t[1]:t[0],r=t.length>2?t[2]:null,i=null;i=["append","backspace","space","clear","goto"].indexOf(o)>=0?this[o].bind(this,r):this.$emit.bind(this,o,this),a.push({type:"action",action:{name:o.replace(/\s+/g,"-").toLowerCase(),callable:i},value:e,args:r}),s=null}else null!==s?s+=t:(t===h&&(t="|"),t===v&&(t="{"),t===f&&(t="}"),a.push({type:"char",action:{name:null,callable:this.append.bind(this,t)},value:t,args:null}))})),a}))},valid(){return!this.pattern||this.value.match(new RegExp(this.pattern))}},methods:{mutate(t){this.maxlength>0&&(t=t.slice(0,this.maxlength)),this.$emit("input",t)},append(t){this.mutate(this.value+t)},backspace(){this.mutate(this.value.slice(0,this.value.length-1))},space(){this.append(" ")},goto(t){if(!Array.isArray(this.layouts))throw new Error("A single non-array layout was provided.");if(!(t>=0&&t({input:"",displayValue:"",viewFeeKeypad:!1}),watch:{displayValue(t,e){this.inputChange()}},methods:{hideFeeKepad(t){this.viewFeeKeypad=!1},layout(){return'123|456|789|{:backspace}0'+wepos.currency_format_decimal_sep+"|{% "+this.name+":percent}{"+wepos.currency_format_symbol+" "+this.name+":flat}"},percentFee(){this.$emit("inputfee",this.input,"percent"),this.viewFeeKeypad=!1,this.input="",this.displayValue=""},flatFee(){this.$emit("inputfee",this.input,"flat"),this.viewFeeKeypad=!1,this.input="",this.displayValue=""},inputChange(){this.isValidAmount(this.displayValue)?this.input=this.getFormattedValue(this.displayValue,wepos.currency_format_decimal_sep,"."):this.displayValue=this.getFormattedValue(this.input,".",wepos.currency_format_decimal_sep),jQuery(this.$refs.feeinput).focus()},getFormattedValue(t,e,a){let s=t;return"."!==wepos.currency_format_decimal_sep&&(s=t.replace(e,a)),s},isValidAmount(t){const e=wepos.currency_format_decimal_sep,a=new RegExp("^[0-9]*["+e+"]{0,1}[0-9]*$","gi");return t.match(a)},showFeeKeypad(t){t.preventDefault(),this.viewFeeKeypad=!0,setTimeout((()=>{jQuery(this.$refs.feeinput).focus()}),500)}}},_,[],!1,null,null,null).exports;var w=a(2377),C=a.n(w),b=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"wepos-print-receipt"}},[e("button",{staticClass:"print-btn",on:{click:function(e){return e.preventDefault(),t.printReceipt()}}},[e("span",{staticClass:"icon flaticon-printer"}),t._v(" "),e("span",{staticClass:"label"},[t._v(t._s(t.__("Print Receipt","wepos")))])])])};b._withStripped=!0;const k=e({name:"ReceiptPrint",methods:{printReceipt(){setTimeout((()=>{window.print()}),500)},handlePrintingPopup(t){let e=this;"Enter"===t.code&&e.$store.getters["Order/getCanProcessPayment"]&&e.printReceipt()},handlePrintReceiptSubmit(){document.addEventListener("keypress",this.handlePrintingPopup)}},mounted(){this.handlePrintReceiptSubmit()},destroyed(){document.removeEventListener("keypress",this.handlePrintingPopup)}},b,[],!1,null,null,null).exports;var P=function(){var t=this,e=t._self._c;return t.settings.wepos_receipts?e("div",{staticClass:"wepos-checkout-print-wrapper"},[e("div",{staticClass:"header",domProps:{innerHTML:t._s(t.settings.wepos_receipts.receipt_header)}}),t._v(" "),e("div",{staticClass:"order-info"},[e("span",{staticClass:"wepos-left"},[e("strong",[t._v(t._s(t.__("Order ID","wepos"))+": #"+t._s(t.printdata.order_id))])]),t._v(" "),e("span",{staticClass:"wepos-right"},[e("strong",[t._v(t._s(t.__("Order Date","wepos"))+": "+t._s(t.formatDate(t.printdata.order_date)))])]),t._v(" "),e("div",{staticClass:"wepos-clearfix"})]),t._v(" "),e("div",{staticClass:"content"},[e("table",{staticClass:"sale-summary"},[e("tbody",[t._l(t.printdata.line_items,(function(a){return e("tr",[e("td",{staticClass:"name"},[t._v("\n "+t._s(a.name)+"\n "),a.attribute.length>0?e("div",{staticClass:"attribute"},[e("ul",t._l(a.attribute,(function(a){return e("li",[e("span",{staticClass:"attr_name"},[t._v(t._s(a.name))]),t._v(": "),e("span",{staticClass:"attr_value"},[t._v(t._s(a.option))])])})),0)]):t._e()]),t._v(" "),e("td",{staticClass:"quantity"},[t._v(t._s(a.quantity))]),t._v(" "),e("td",{staticClass:"price"},[a.on_sale?[e("span",{staticClass:"regular-price"},[t._v(t._s(t.formatPrice(a.quantity*a.regular_price)))]),t._v(" "),e("span",{staticClass:"sale-price"},[t._v(t._s(t.formatPrice(a.quantity*a.sale_price)))])]:[e("span",{staticClass:"sale-price"},[t._v(t._s(t.formatPrice(a.quantity*a.regular_price)))])]],2)])})),t._v(" "),e("tr",{staticClass:"cart-meta-data"},[e("td",{staticClass:"name",attrs:{colspan:"2"}},[t._v("\n "+t._s(t.__("Subtotal","wepos"))+"\n "),"incl"==t.settings.woo_tax.wc_tax_display_cart?e("span",{staticClass:"metadata"},[t._v("\n "+t._s(t.__("Includes Tax","wepos"))+" "+t._s(t.formatPrice(t.$store.getters["Cart/getTotalLineTax"]))+"\n ")]):t._e()]),t._v(" "),e("td",{staticClass:"price"},[t._v(t._s(t.formatPrice(t.printdata.subtotal)))])]),t._v(" "),t._l(t.printdata.fee_lines,(function(a,s){return e("tr",{staticClass:"cart-meta-data"},["discount"==a.type?[e("td",{staticClass:"name",attrs:{colspan:"2"}},[t._v(t._s(t.__("Discount","wepos"))+" "),e("span",{staticClass:"metadata"},[t._v(t._s("percent"==a.discount_type?a.value+"%":t.formatPrice(a.value)))])]),t._v(" "),e("td",{staticClass:"price"},[t._v("-"+t._s(t.formatPrice(Math.abs(a.total))))])]:[e("td",{staticClass:"name",attrs:{colspan:"2"}},[t._v(t._s(t.__("Fee","wepos"))+" "),e("span",{staticClass:"metadata"},[t._v(t._s(a.name)+" "+t._s("percent"==a.fee_type?a.value+"%":t.formatPrice(a.value)))])]),t._v(" "),e("td",{staticClass:"price"},[t._v("-"+t._s(t.formatPrice(Math.abs(a.total))))])]],2)})),t._v(" "),t.printdata.taxtotal?e("tr",[e("td",{staticClass:"name",attrs:{colspan:"2"}},[t._v(t._s(t.__("Tax","wepos")))]),t._v(" "),e("td",{staticClass:"price"},[t._v(t._s(t.formatPrice(t.printdata.taxtotal)))])]):t._e(),t._v(" "),e("tr",[e("td",{staticClass:"name",attrs:{colspan:"2"}},[t._v(t._s(t.__("Order Total","wepos")))]),t._v(" "),e("td",{staticClass:"price"},[t._v(t._s(t.formatPrice(t.printdata.ordertotal)))])]),t._v(" "),t._m(0),t._v(" "),e("tr",[e("td",{attrs:{colspan:"2"}},[t._v(t._s(t.__("Payment method","wepos")))]),t._v(" "),e("td",{staticClass:"price"},[t._v(t._s(t.printdata.gateway.title||""))])]),t._v(" "),(t.printdata.gateway.id="wepos_cash")?[e("tr",[e("td",{attrs:{colspan:"2"}},[t._v(t._s(t.__("Cash Given","wepos")))]),t._v(" "),e("td",{staticClass:"price"},[t._v(t._s(t.formatPrice(t.printdata.cashamount)))])]),t._v(" "),e("tr",[e("td",{attrs:{colspan:"2"}},[t._v(t._s(t.__("Change Money","wepos")))]),t._v(" "),e("td",{staticClass:"price"},[t._v(t._s(t.formatPrice(t.printdata.changeamount)))])])]:t._e()],2)])]),t._v(" "),e("div",{staticClass:"footer",domProps:{innerHTML:t._s(t.settings.wepos_receipts.receipt_footer)}})]):t._e()};P._withStripped=!0;const x=e({name:"ReceiptPrintHtml",props:{printdata:{type:Object,default:()=>({})},settings:{type:Object,default:()=>({})}},methods:{formatDate:t=>(t=new Date(t)).toLocaleString()}},P,[function(){var t=this._self._c;return t("tr",{staticClass:"divider"},[t("td",{attrs:{colspan:"3"}})])}],!1,null,null,null).exports;var S=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"hotkey",rawName:"v-hotkey",value:t.hotkeys,expression:"hotkeys"}],staticClass:"wepos-custom-note-wrap"},[e("v-popover",{attrs:{offset:"5","popover-base-class":"customer-note tooltip popover",placement:"top",open:t.viewNotePopover}},[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.openNote.apply(null,arguments)}}},[t._v(t._s(t.__("Add Note","wepos")))]),t._v(" "),e("template",{slot:"popover"},[e("form",{on:{submit:function(e){return e.preventDefault(),t.addCustomerNote.apply(null,arguments)}}},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.customerNote,expression:"customerNote"}],ref:"customernote",attrs:{id:"",cols:"30",rows:"5"},domProps:{value:t.customerNote},on:{input:function(e){e.target.composing||(t.customerNote=e.target.value)}}}),t._v(" "),e("button",{staticClass:"add-note-btn",attrs:{type:"submit",disabled:""==t.customerNote}},[t._v(t._s(t.__("Add Note","wepos")))])])])],2)],1)};S._withStripped=!0;const D=e({data:()=>({viewNotePopover:!1,customerNote:""}),computed:{hotkeys(){return{f6:this.openNote,esc:this.closeNote}}},methods:{openNote(t){t.preventDefault(),this.viewNotePopover=!0,setTimeout((()=>{jQuery(this.$refs.customernote).focus()}),500)},closeNote(){this.viewNotePopover=!1},addCustomerNote(){this.$emit("addnote",this.customerNote),this.viewNotePopover=!1,this.customerNote=""}}},S,[],!1,null,null,null).exports;const $=e({name:"Home",components:{ProductSearch:u,CustomerSearch:p,Overlay:i,Modal:wepos_get_lib("Modal"),MugenScroll:C(),FeeKeypad:g,PrintReceipt:k,PrintReceiptHtml:x,CustomerNote:D},data:()=>({showHelp:!1,showQucikMenu:!1,productView:"grid",productLoading:!1,viewVariationPopover:!1,showModal:!1,showPaymentReceipt:!1,products:[],filteredProducts:[],totalPages:1,page:1,showOverlay:!1,selectedVariationProduct:{},attributeDisabled:!0,selectedAttribute:{},availableGateways:[],emptyGatewayDiv:0,cashAmount:"",availableTax:[],settings:{},taxSettings:{},printdata:wepos.hooks.applyFilters("wepos_initial_print_data",{gateway:{id:"",title:""}}),feeData:{},createprintreceipt:!1,selectedCategory:"",selectedGateway:"",categories:[],showReceiptHtml:wepos.hooks.applyFilters("wepos_render_receipt_html",!0),quickLinkList:wepos.hooks.applyFilters("wepos_quick_links",[]),quickLinkListStart:wepos.hooks.applyFilters("wepos_quick_links_start",[]),availableGatewayContent:wepos.hooks.applyFilters("wepos_avaialable_gateway_content",[]),afterMainContents:wepos.hooks.applyFilters("wepos_after_main_content",[]),beforCartPanels:wepos.hooks.applyFilters("wepos_before_cart_panel",[])}),computed:{cartdata(){return this.$store.state.Cart.cartdata},orderdata(){return this.$store.state.Order.orderdata},hotkeys(){return{f3:this.toggleProductView,f9:this.initPayment,f10:this.processPayment,f8:this.createNewSale,"shift+f8":this.emptyCart,esc:this.backToSale,"meta+/":this.openHelp,"ctrl+/":this.openHelp}},getFilteredProduct(){return void 0!==this.$route.query.category?this.products.filter((t=>{var e=weLo_.find(t.categories,{id:parseInt(this.$route.query.category)});return null!=e&&Object.keys(e).length>0})):this.products},changeAmount(){var t=this.unFormat(this.cashAmount)-this.$store.getters["Cart/getTotal"];return t>0?t:0},getBreadCrums(){if(void 0!==this.$route.query.category){var t=jQuery.extend(!0,[],this.categories),e=weLo_.find(this.categories,{id:parseInt(this.$route.query.category)}),a=weLo_.findIndex(this.categories,e),s=t.splice(0,a+1),o=[];if(s.length>0){for(var r=s.length-1;r>=0;r--)if(o.length>0){var i=weLo_.find(s,{id:s[r+1].parent_id});if(null!=i&&(o.push(i),null==i.parent_id))break}else o.push(s[r]);return o.slice().reverse()}}return[]}},watch:{selectedAttribute(t,e){Object.keys(t).length==this.selectedVariationProduct.attributes.length&&(this.attributeDisabled=!1)},"$route.query.order_key"(){""!=this.$route.query.order_key&&"success"==this.$route.query.payment&&(this.showModal=!1,this.showPaymentReceipt=!0)},"$route.query.category"(){this.selectedCategory={id:-1,level:0,name:this.__("All categories","wepos"),parent_id:null},void 0!==this.$route.query.category&&(this.selectedCategory=weLo_.find(this.categories,{id:parseInt(this.$route.query.category)}))},selectedGateway(t,e){var a=weLo_.find(this.availableGateways,{id:t});this.$store.dispatch("Order/setGatewayAction",a)},cashAmount(t,e){this.ableToProcess()}},methods:{openQucikMenu(){this.showQucikMenu=!0},openHelp(t){t.preventDefault(),this.showHelp=!0,this.showQucikMenu=!1},closeHelp(){this.showHelp=!1},addCustomerNote(t){this.$store.dispatch("Order/setCustomerNoteAction",t)},removeCustomerNote(){this.$store.dispatch("Order/removeCustomerNoteAction")},removeBreadcrums(){this.$router.push({name:"Home"})},logout(){wepos.hooks.doAction("wepos_before_logout"),window.location.href=wepos.logout_url.toString()},emptyCart(){this.$store.dispatch("Cart/emptyCartAction"),this.$store.dispatch("Order/emptyOrderdataAction"),this.printdata=wepos.hooks.applyFilters("wepos_initial_print_data",{gateway:{id:"",title:""}}),this.showPaymentReceipt=!1,this.cashAmount="",this.eventBus.$emit("emptycart",this.orderdata),this.showQucikMenu=!1},toggleProductView(t){t.preventDefault(),this.productView="grid"==this.productView?"list":"grid"},createNewSale(){this.$router.push({name:"Home"}),this.emptyCart()},ableToProcess(){let t=this.cartdata.line_items.length>0&&this.isSelectGateway();"wepos_cash"===this.selectedGateway&&(t=this.unFormat(this.cashAmount)>=this.truncateNumber(this.$store.getters["Cart/getTotal"])&&t),console.log(t),this.$store.dispatch("Order/setCanProcessPaymentAction",t)},processPayment(t){if(this.$store.getters["Order/getCanProcessPayment"]){weLo_.find(this.availableGateways,{id:this.orderdata.payment_method});var e=wepos.hooks.applyFilters("wepos_order_form_data",{billing:this.orderdata.billing,shipping:this.orderdata.shipping,line_items:this.cartdata.line_items,fee_lines:this.cartdata.fee_lines,customer_id:this.orderdata.customer_id,customer_note:this.orderdata.customer_note,payment_method:this.orderdata.payment_method,payment_method_title:this.orderdata.payment_method_title,meta_data:[{key:"_wepos_is_pos_order",value:!0},{key:"_wepos_cash_tendered_amount",value:this.cashAmount.toString()},{key:"_wepos_cash_change_amount",value:this.changeAmount.toString()}]},this.orderdata,this.cartdata),a=jQuery(".wepos-checkout-wrapper");a.block({message:null,overlayCSS:{background:"#fff url("+wepos.ajax_loader+") no-repeat center",opacity:.4}}),wepos.api.post(wepos.rest.root+wepos.rest.wcversion+"/orders",e).done((t=>{wepos.api.post(wepos.rest.root+wepos.rest.posversion+"/payment/process",t).done((s=>{"success"==s.result?(this.$router.push({name:"Home",query:{order_key:t.order_key,payment:"success"}}),this.printdata=wepos.hooks.applyFilters("wepos_after_payment_print_data",{line_items:this.cartdata.line_items,fee_lines:this.cartdata.fee_lines,subtotal:this.$store.getters["Cart/getSubtotal"],taxtotal:this.$store.getters["Cart/getTotalTax"],ordertotal:this.$store.getters["Cart/getTotal"],gateway:{id:t.payment_method,title:t.payment_method_title},order_id:t.id,order_date:t.date_created,cashamount:this.cashAmount.toString(),changeamount:this.changeAmount.toString()},e),a.unblock()):a.unblock()})).fail((t=>{a.unblock(),alert(t.responseJSON.message)}))})).fail((t=>{a.unblock(),alert(t.responseJSON.message)}))}},initPayment(){this.$store.state.Cart.cartdata.line_items.length<=0||(this.showModal=!0,this.$store.dispatch("Order/setGatewayAction",this.availableGateways[0]),this.selectedGateway=this.availableGateways[0].id)},backToSale(){this.showModal=!1,this.showHelp=!1},isSelectGateway(){return!(null==this.orderdata.payment_method||""==this.orderdata.payment_method)},getProductImage:t=>t.images.length>0?t.images[0].woocommerce_thumbnail:wepos.placeholder_image,getProductImageName:t=>t.images.length>0?t.images[0].name:t.name,setDiscount(t,e){this.$store.dispatch("Cart/addDiscountAction",{title:this.__("Discount","wepos"),value:t,type:e})},saveFee(t){this.$store.dispatch("Cart/saveFeeValueAction",{key:t,feeData:this.feeData}),this.feeData={}},cancelEditFee(t){this.$store.dispatch("Cart/cancelSaveFeeValueAction",t),this.feeData={}},editFeeData(t){this.$store.dispatch("Cart/editFeeValueAction",t),this.feeData=Object.assign({},this.cartdata.fee_lines[t]),this.$nextTick((()=>{jQuery(this.$refs.fee_name).focus()}))},setFee(t,e){this.$store.dispatch("Cart/addFeeAction",{title:this.__("Fee","wepos"),value:t,type:e})},removeFeeLine(t){this.$store.dispatch("Cart/removeFeeLineItemsAction",t)},getDiscountAmount(t){return"percent"===t.discount_type||"percent"===t.fee_type?this.formatNumber(t.value)+"%":this.formatPrice(t.total)},fetchProducts(){1==this.page&&(this.productLoading=!0),this.totalPages>=this.page?wepos.api.get(wepos.rest.root+wepos.rest.posversion+"/products?status=publish&per_page=30&page="+this.page).done(((t,e,a)=>{this.appendProducts(t),this.page+=1,this.totalPages=parseInt(a.getResponseHeader("X-WP-TotalPages")),this.productLoading=!1})).then(((t,e,a)=>{this.fetchProducts()})):this.productLoading=!1},appendProducts(t){t.forEach((t=>{"variable"===t.type&&this.isAllVariationsDisabled(t)||(this.products=this.products.concat(t))}))},isAllVariationsDisabled(t){let e=!0;return t.attributes.forEach((t=>{!0===t.variation&&(e=!1)})),e},maybeRemoveDeletedProduct:t=>new Promise(((e,a)=>{if(!t)return e(t);if(!t.line_items||t.line_items.length<1)return e(t);let s=t.line_items.map((t=>t.product_id));wepos.api.get(wepos.rest.root+wepos.rest.posversion+"/products?include="+s.toString()).then((a=>{let s=a.map((t=>t.id));return t.line_items.forEach(((e,a)=>{s.includes(e.product_id)||(t.line_items.splice(a,1),localStorage.setItem("cartdata",JSON.stringify(t)))})),e(t)})).fail((()=>a(t)))})),selectCustomer(t){this.$store.dispatch("Order/setCustomerAction",t)},selectVariationProduct(t){this.viewVariationPopover=!0,this.selectedVariationProduct=t},addVariationProduct(){let t=this.findMatchingVariations(this.selectedVariationProduct.variations,this.selectedAttribute)[0];this.hasStock(t)||this.toast({title:this.__("This product is out of stock.","wepos"),type:"error"}),t.parent_id=this.selectedVariationProduct.id,t.type=this.selectedVariationProduct.type,t.name=this.selectedVariationProduct.name,t.type=this.selectedVariationProduct.type,this.selectedAttribute={},this.attributeDisabled=!0,this.$store.dispatch("Cart/addToCartAction",t)},addToCart(t){this.hasStock(t)?this.$store.dispatch("Cart/addToCartAction",t):this.toast({title:this.__("Product is out of stock!","wepos-pro"),type:"error"})},toggleEditQuantity(t,e){this.$store.dispatch("Cart/toggleEditQuantityAction",e)},removeItem(t){this.$store.dispatch("Cart/removeCartItemAction",t)},addQuantity(t,e){this.$store.dispatch("Cart/addItemQuantityAction",e)},removeQuantity(t,e){this.$store.dispatch("Cart/removeItemQuantityAction",e)},fetchGateway(){wepos.api.get(wepos.rest.root+wepos.rest.posversion+"/payment/gateways").done((t=>{this.availableGateways=t,this.emptyGatewayDiv=4-this.availableGateways.length%4}))},truncateTitle:(t,e)=>weLo_.truncate(t,{length:e}),unSanitizeString:t=>t.split("-").map((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})).join(" "),fetchSettings(){wepos.api.get(wepos.rest.root+wepos.rest.posversion+"/settings").done((t=>{this.settings=t,this.$store.dispatch("Cart/setSettingsAction",t)}))},fetchTaxes(){wepos.api.get(wepos.rest.root+wepos.rest.posversion+"/taxes").done((t=>{this.availableTax=t,this.$store.dispatch("Cart/setAvailableTaxAction",t)}))},handleCategorySelect(t,e){"-1"==t.id?this.$router.push({name:"Home"}):this.$router.push({name:"Home",query:{category:t.id}})},handleCategoryRemove(t,e){this.$router.push({name:"Home"}),this.selectedCategory={id:-1,level:0,name:this.__("All categories","wepos"),parent_id:null}},fetchCategories(){wepos.api.get(wepos.rest.root+wepos.rest.wcversion+"/products/categories?hide_empty=true&_fields=id,name,parent_id&per_page=100").then((t=>{t.sort((function(t,e){return t.name.localeCompare(e.name)}));var e=function(t,e){var a=[],s={};return t.forEach((function(t){s[t.id]={response:t,children:s[t.id]&&s[t.id].children},null===t.parent_id?a.push(s[t.id]):(s[t.parent_id]=s[t.parent_id]||{},s[t.parent_id].children=s[t.parent_id].children||[],s[t.parent_id].children.push(s[t.id]))})),a}(t),a={id:-1,level:0,name:this.__("All categories","wepos"),parent_id:null},s=e.reduce(function t(e){return function(a,s){return s.response.level=e,a.concat(s.response,(s.children||[]).reduce(t(e+1),[]))}}(0),[]);this.categories=s,this.categories.unshift(a),this.selectedCategory=a,void 0!==this.$route.query.category&&(this.selectedCategory=weLo_.find(t,{id:parseInt(this.$route.query.category)}))}))},filterProducts(){this.products=this.products.filter((t=>weLo_.findIndex(t.categories,{id:this.$route.query.category})>0))},fetchTaxSettings(){wepos.api.get(wepos.rest.root+wepos.rest.wcversion+"/settings/tax").done((t=>{this.taxSettings=t}))},focusCashInput(){document.querySelector("#input-cash-amount").focus()}},async created(){if(this.fetchSettings(),this.fetchTaxes(),this.fetchProducts(),this.fetchGateway(),this.fetchCategories(),"undefined"!=typeof localStorage)try{var t=JSON.parse(localStorage.getItem("cartdata")),e=JSON.parse(localStorage.getItem("orderdata"));t=await this.maybeRemoveDeletedProduct(t),this.$store.dispatch("Cart/setCartDataAction",t),this.$store.dispatch("Order/setOrderDataAction",e)}catch(t){e=JSON.parse(localStorage.getItem("orderdata"));this.$store.dispatch("Cart/setCartDataAction",t),this.$store.dispatch("Order/setOrderDataAction",e)}window.addEventListener("beforeunload",(()=>{"undefined"!=typeof localStorage&&(localStorage.setItem("cartdata",JSON.stringify(this.$store.state.Cart.cartdata)),localStorage.setItem("orderdata",JSON.stringify(this.$store.state.Order.orderdata)))}),!1)}},o,[function(){var t=this._self._c;return t("td",{staticClass:"icon"},[t("span",{staticClass:"flaticon-right-arrow"})])}],!1,null,null,null).exports;let A=wepos_get_lib("Vue"),N=wepos_get_lib("Router");A.use(N);const F=new N({routes:wepos.hooks.applyFilters("wepos_frontend_routes",[{path:"/",name:"Home",component:$}])}),O={hasStock(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.manage_stock?!!t.backorders_allowed||t.stock_quantity>e:"outofstock"!=t.stock_status}},T={namespaced:!0,state:{settings:{},availableTax:{},cartdata:{line_items:[],fee_lines:[]}},getters:{getSubtotal(t){var e=0;return weLo_.forEach(t.cartdata.line_items,(function(t,a){t.on_sale?e+=t.quantity*t.sale_price:e+=t.quantity*t.regular_price})),e},getTotalFee(t){var e=0;return weLo_.forEach(t.cartdata.fee_lines,(function(t,a){"fee"==t.type&&(e+=Math.abs(t.total))})),e},getTotalDiscount(t){var e=0;return weLo_.forEach(t.cartdata.fee_lines,(function(t,a){"discount"==t.type&&(e+=Number(Math.abs(t.total)))})),e},getTotalLineTax(t){var e=0;return weLo_.forEach(t.cartdata.line_items,(function(t,a){e+=Math.abs(t.tax_amount*t.quantity)})),e},getTotalTax(t){let e=0,a=0;return weLo_.forEach(t.cartdata.line_items,(function(t,a){e+=Math.abs(t.tax_amount*t.quantity)})),null!=t.settings.woo_tax&&"incl"==t.settings.woo_tax.wc_tax_display_cart&&(e=0),weLo_.forEach(t.cartdata.fee_lines,(function(s,o){if("taxable"!==s.tax_status)return;let r=""===s.tax_class?"standard":s.tax_class,i=weLo_.find(t.availableTax,{class:r.toString()});i&&("discount"===s.type&&(e+=s.total/i.rate),"fee"===s.type&&(a+=Math.abs(s.total)*Math.abs(i.rate)/100))})),e+a},getOrderTotal:(t,e)=>e.getSubtotal+e.getTotalFee+e.getTotalTax,getTotal:(t,e)=>e.getOrderTotal-e.getTotalDiscount,getSettings:(t,e)=>t.settings},mutations:{setSettings(t,e){t.settings=e},setAvailableTax(t,e){t.availableTax=e},setCartData(t,e){weLo_.isEmpty(e)?t.cartdata={line_items:[],fee_lines:[]}:t.cartdata=Object.assign({},e)},addToCartItem(t,e){var a={};a.product_id=0===e.parent_id?e.id:e.parent_id,a.name=e.name,a.quantity=1,a.regular_price=e.regular_display_price,a.sale_price=e.sales_display_price,a.on_sale=e.on_sale,a.attribute=e.attributes,a.variation_id=0!==e.parent_id?e.id:0,a.editQuantity=!1,a.type=e.type,a.tax_amount=e.tax_amount,a.manage_stock=e.manage_stock,a.stock_status=e.stock_status,a.backorders_allowed=e.backorders_allowed,a.stock_quantity=e.stock_quantity;var s=weLo_.findIndex(t.cartdata.line_items,{product_id:a.product_id,variation_id:a.variation_id});s<0?O.hasStock(e)&&t.cartdata.line_items.push(a):O.hasStock(e,t.cartdata.line_items[s].quantity)&&(t.cartdata.line_items[s].quantity+=1)},removeCartItem(t,e){t.cartdata.line_items.splice(e,1)},addCartItemQuantity(t,e){var a=t.cartdata.line_items[e];O.hasStock(a,a.quantity)&&t.cartdata.line_items[e].quantity++},removeCartItemQuantity(t,e){t.cartdata.line_items[e].quantity<=1?t.cartdata.line_items[e].quantity=1:t.cartdata.line_items[e].quantity--},toggleEditQuantity(t,e){t.cartdata.line_items[e].editQuantity=!t.cartdata.line_items[e].editQuantity},addDiscount(t,e){t.cartdata.fee_lines.push({name:e.title,type:"discount",value:e.value.toString(),isEdit:!1,discount_type:e.type,tax_status:"taxable",tax_class:"",total:0})},addFee(t,e){t.cartdata.fee_lines.push({name:e.title,type:"fee",value:e.value.toString(),isEdit:!1,fee_type:e.type,tax_status:"taxable",tax_class:"",total:0})},saveFeeValue(t,e){t.cartdata.fee_lines.splice(e.key,1,e.feeData),t.cartdata.fee_lines[e.key].isEdit=!1},editFeeValue(t,e){t.cartdata.fee_lines[e].isEdit=!0},cancelSaveFeeValue(t,e){t.cartdata.fee_lines[e].isEdit=!1},removeFeeLineItems(t,e){t.cartdata.fee_lines.splice(e,1)},emptyCart(t){t.cartdata={line_items:[],fee_lines:[]}},calculateDiscount(t,e){t.cartdata.fee_lines.length>0&&weLo_.forEach(t.cartdata.fee_lines,((a,s)=>{"discount"==a.type&&("percent"==a.discount_type?t.cartdata.fee_lines[s].total="-"+e.getSubtotal*Math.abs(a.value)/100:t.cartdata.fee_lines[s].total="-"+Math.abs(a.value))}))},calculateFee(t,e){t.cartdata.fee_lines.length>0&&weLo_.forEach(t.cartdata.fee_lines,((a,s)=>{"fee"==a.type&&("percent"==a.fee_type?t.cartdata.fee_lines[s].total=(e.getSubtotal*Math.abs(a.value)/100).toString():t.cartdata.fee_lines[s].total=Math.abs(a.value).toString())}))}},actions:{setSettingsAction(t,e){t.commit("setSettings",e)},setAvailableTaxAction(t,e){t.commit("setAvailableTax",e)},setCartDataAction(t,e){t.commit("setCartData",e),t.commit("calculateDiscount",t.getters),t.commit("calculateFee",t.getters)},addToCartAction(t,e){t.commit("addToCartItem",e),t.commit("calculateDiscount",t.getters),t.commit("calculateFee",t.getters)},removeCartItemAction(t,e){t.commit("removeCartItem",e),t.commit("calculateDiscount",t.getters),t.commit("calculateFee",t.getters)},addItemQuantityAction(t,e){t.commit("addCartItemQuantity",e),t.commit("calculateDiscount",t.getters),t.commit("calculateFee",t.getters)},removeItemQuantityAction(t,e){t.commit("removeCartItemQuantity",e),t.commit("calculateDiscount",t.getters),t.commit("calculateFee",t.getters)},toggleEditQuantityAction(t,e){t.commit("toggleEditQuantity",e)},addDiscountAction(t,e){t.commit("addDiscount",e),t.commit("calculateDiscount",t.getters),t.commit("calculateFee",t.getters)},addFeeAction(t,e){t.commit("addFee",e),t.commit("calculateDiscount",t.getters),t.commit("calculateFee",t.getters)},removeFeeLineItemsAction(t,e){t.commit("removeFeeLineItems",e),t.commit("calculateDiscount",t.getters),t.commit("calculateFee",t.getters)},saveFeeValueAction(t,e){t.commit("saveFeeValue",e),t.commit("calculateDiscount",t.getters),t.commit("calculateFee",t.getters)},editFeeValueAction(t,e){t.commit("editFeeValue",e)},cancelSaveFeeValueAction(t,e){t.commit("cancelSaveFeeValue",e)},emptyCartAction(t){t.commit("emptyCart")},calculateDiscount(t){t.commit("calculateDiscount",t.getters)},calculateFee(t){t.commit("calculateFee",t.getters)}}},L={namespaced:!0,state:{orderdata:{billing:{},shipping:{},customer_id:0,customer_note:"",payment_method:"",payment_method_title:""},canProcessPayment:!1},getters:{getCanProcessPayment:t=>t.canProcessPayment},mutations:{setOrderData(t,e){weLo_.isEmpty(e)?t.orderdata={billing:{},shipping:{},customer_id:0,customer_note:"",payment_method:"",payment_method_title:""}:t.orderdata=e},setCustomer(t,e){Object.keys(e).length>0?(t.orderdata.billing=e.billing,t.orderdata.shipping=e.shipping,t.orderdata.customer_id=e.id):(t.orderdata.billing={},t.orderdata.shipping={},t.orderdata.customer_id=0)},emptyOrderdata(t){t.orderdata={billing:{},shipping:{},customer_id:0,customer_note:"",payment_method:"",payment_method_title:""}},setCustomerNote(t,e){t.orderdata.customer_note=e.trim()},removeCustomerNote(t){t.orderdata.customer_note=""},setGateway(t,e){t.orderdata.payment_method=e.id,t.orderdata.payment_method_title=e.title},setCanProcessPayment(t,e){t.canProcessPayment=e}},actions:{setOrderDataAction(t,e){t.commit("setOrderData",e)},setCustomerAction(t,e){t.commit("setCustomer",e)},emptyOrderdataAction(t){t.commit("emptyOrderdata")},setCustomerNoteAction(t,e){t.commit("setCustomerNote",e)},removeCustomerNoteAction(t){t.commit("removeCustomerNote")},setGatewayAction(t,e){t.commit("setGateway",e)},setCanProcessPaymentAction(t,e){t.commit("setCanProcessPayment",e)}}};let I=wepos_get_lib("Vue"),V=wepos_get_lib("Vuex");I.use(V);const M=new V.Store({modules:{Cart:T,Order:L}});let E=wepos_get_lib("Vue");E.config.productionTip=!1,new E({el:"#vue-frontend-app",router:F,store:M,render:t=>t(s),created(){this.setLocaleData(wepos.i18n.wepos),wepos.i18n["wepos-pro"]&&this.setLocaleData(wepos.i18n["wepos-pro"])}})})()})(); \ No newline at end of file +(()=>{var t={4577:t=>{"use strict";t.exports=function(t,e){void 0===e&&(e={});var a=e.offset;void 0===a&&(a=0);var s=e.threshold;void 0===s&&(s=0);var o=t.getBoundingClientRect(),r=o.top,i=o.right,n=o.bottom,c=o.left,l=o.width,u=o.height,d=n,p=window.innerWidth-c,_=window.innerHeight-r,m=i,h=s*l,v=s*u;return d>=(a.top||a+v)&&p>=(a.right||a+h)&&_>=(a.bottom||a+v)&&m>=(a.left||a+h)}},9623:t=>{t.exports=function(t,e){var a,s,o,r,i=0;return function(){a=this,s=arguments;var t=new Date-i;return r||(t>=e?n():r=setTimeout(n,e-t)),o};function n(){r=0,i=+new Date,o=t.apply(a,s),a=null,s=null}}},671:t=>{t.exports=function(t){var e={};function a(s){if(e[s])return e[s].exports;var o=e[s]={i:s,l:!1,exports:{}};return t[s].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=t,a.c=e,a.d=function(t,e,s){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(a.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)a.d(s,o,function(e){return t[e]}.bind(null,o));return s},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="",a(a.s="fb15")}({f6fd:function(t,e){!function(t){var e="currentScript",a=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(s){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(s.stack)||[!1])[1];for(t in a)if(a[t].src==e||"interactive"==a[t].readyState)return a[t];return null}}})}(document)},fb15:function(t,e,a){"use strict";var s;(a.r(e),"undefined"!=typeof window)&&(a("f6fd"),(s=window.document.currentScript)&&(s=s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(a.p=s[1]));function o(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,s)}return a}function r(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var i=function(t){for(var e=1;e":190,"?":191,"~":192,"{":219,"|":220,"}":221,'"':222},{a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90},{},{"numpad*":106,"numpad+":43,numpadadd:43,"numpad-":109,"numpad.":110,"numpad/":111,numlock:144,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105},{},{f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},{},{windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91});function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t))&&"[object Arguments]"!==Object.prototype.toString.call(t))return;var a=[],s=!0,o=!1,r=void 0;try{for(var i,n=t[Symbol.iterator]();!(s=(i=n.next()).done)&&(a.push(i.value),!e||a.length!==e);s=!0);}catch(t){o=!0,r=t}finally{try{s||null==n.return||n.return()}finally{if(o)throw r}}return a}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var c=["INPUT","TEXTAREA","SELECT"],l=function(t,e,a){var s=t.find((function(t){var s,o,r=t.code,i=t.modifiers;return r===e&&(s=a,o=i,Object.entries(s).every((function(t){var e=n(t,2),a=e[0],s=e[1];return o[a]===s})))}));return!!s&&s.callback};function u(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,s)}return a}function d(t){for(var e=1;e1)return t.reduce((function(t,a){return a=h[a]||a,m.hasOwnProperty("".concat(a,"Key"))?t.modifiers=d({},t.modifiers,p({},"".concat(a,"Key"),!0)):t.code=e[a]||f(a),t}),{modifiers:a});var s=h[t[0]]||t[0];return m.hasOwnProperty("".concat(s,"Key"))&&(a=d({},a,p({},"".concat(s,"Key"),!0))),{modifiers:a,code:e[s]||f(s)}},f=function(t){return i[t.toLowerCase()]||function(t){return 1===t.length?t.charCodeAt(0):void 0}(t)};function y(t,e,a){var s=e.value,o=e.modifiers;t._keyMap=function(t,e){var a=[];return Object.keys(t).forEach((function(s){var o=t[s],r=o.keyup,i={keydown:o.keydown||(r?_:t[s]),keyup:r||_},n=function(t){return(t=(t=(t=t.replace(/\s/g,"")).includes("numpad+")?t.replace("numpad+","numpadadd"):t).includes("++")?t.replace("++","+="):t).split(/\+{1}/)}(s),c=v(n,e),l=c.code,u=c.modifiers;a.push({code:l,modifiers:u,callback:i})})),a}(s,a),t._keyHandler=function(e){return function(t,e,a){var s=t.keyCode,o={ctrlKey:t.ctrlKey,altKey:t.altKey,shiftKey:t.shiftKey,metaKey:t.metaKey};a.prevent&&t.preventDefault(),a.stop&&t.stopPropagation();var r=document.activeElement,i=r.nodeName;if(!r.isContentEditable&&!c.includes(i)){var n=l(e,s,o);if(!n)return t;t.preventDefault(),n[t.type](t)}}(e,t._keyMap,o)},document.addEventListener("keydown",t._keyHandler),document.addEventListener("keyup",t._keyHandler)}function g(t){document.removeEventListener("keydown",t._keyHandler),document.removeEventListener("keyup",t._keyHandler)}var w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{bind:function(e,a){y(e,a,t)},componentUpdated:function(e,a){a.value!==a.oldValue&&(g(e),y(e,a,t))},unbind:g}},C={install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.directive("hotkey",w(e))},directive:w()},b=C;e.default=b}})},2377:(t,e,a)=>{"use strict";function s(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var o=s(a(9623)),r=s(a(4577)),i=["scroll","resize"],n={name:"mugen-scroll",props:{handler:{type:Function,required:!0},shouldHandle:{type:Boolean,default:!0},threshold:{type:Number,default:0},handleOnMount:{type:Boolean,default:!0},scrollContainer:{type:String}},mounted:function(){this.checkInView()},methods:{checkInView:function(){var t=this,e=function(){if(t.$refs.scroll){var e=r(t.$refs.scroll,{threshold:t.threshold});t.shouldHandle&&e&&t.handler()}};if(this.handleOnMount&&e(),this.scrollContainer){for(var a=this;(a=a.$parent)&&!this._scrollContainer;)t._scrollContainer=a.$refs[t.scrollContainer];this._scrollContainer&&this._scrollContainer.$el&&(this._scrollContainer=this._scrollContainer.$el)}this._scrollContainer=this._scrollContainer||window,this.check=o(e,200),i.forEach((function(e){return t._scrollContainer.addEventListener(e,t.check)}))}},render:function(t){return t("div",{staticClass:"mugen-scroll",ref:"scroll"},this.$slots.default)},beforeDestroy:function(){var t=this;i.forEach((function(e){return t._scrollContainer.removeEventListener(e,t.check)}))}};"undefined"!=typeof window&&window.Vue&&window.Vue.component(n.name,n),t.exports=n}},e={};function a(s){var o=e[s];if(void 0!==o)return o.exports;var r=e[s]={exports:{}};return t[s](r,r.exports,a),r.exports}a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var s in e)a.o(e,s)&&!a.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";var t=function(){var t=this._self._c;return t("div",{attrs:{id:"vue-frontend-app"}},[t("router-view")],1)};t._withStripped=!0;function e(t,e,a,s,o,r,i,n){var c,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=a,l._compiled=!0),s&&(l.functional=!0),r&&(l._scopeId="data-v-"+r),i?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=c):o&&(c=n?function(){o.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(t,e){return c.call(e),u(t,e)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:t,options:l}}const s=e({name:"App"},t,[],!1,null,null,null).exports;var o=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"hotkey",rawName:"v-hotkey",value:t.hotkeys,expression:"hotkeys"}],attrs:{id:"wepos-main"}},[e("div",{staticClass:"content-product"},[e("div",{staticClass:"top-panel wepos-clearfix"},[e("div",{staticClass:"search-bar"},[e("product-search",{attrs:{products:t.products,settings:t.settings},on:{onProductAdded:t.addToCart}})],1),t._v(" "),e("div",{staticClass:"category"},[e("multiselect",{staticClass:"wepos-multiselect",attrs:{options:t.categories,selectLabel:"",deselectLabel:"",selectedLabel:"",placeholder:t.__("Select a category","wepos")},on:{select:t.handleCategorySelect,remove:t.handleCategoryRemove},scopedSlots:t._u([{key:"singleLabel",fn:function(e){return[t._v("\n "+t._s(e.option.name)+"\n ")]}},{key:"option",fn:function(a){return[e("span",[t._l(a.option.level,(function(e){return[t._v("\n  \n ")]})),t._v("\n "+t._s(a.option.name)+"\n ")],2)]}}]),model:{value:t.selectedCategory,callback:function(e){t.selectedCategory=e},expression:"selectedCategory"}},[t._v(" "),t._v(" "),e("template",{slot:"noResult"},[e("div",{staticClass:"no-data-found"},[t._v(t._s(t.__("Not found","wepos")))])])],2)],1),t._v(" "),e("div",{staticClass:"toggle-view"},[e("div",{staticClass:"product-toggle"},[e("span",{staticClass:"toggle-icon list-view flaticon-menu-button-of-three-horizontal-lines",class:{active:"list"==t.productView},on:{click:function(e){t.productView="list"}}}),t._v(" "),e("span",{staticClass:"toggle-icon grid-view flaticon-menu",class:{active:"grid"==t.productView},on:{click:function(e){t.productView="grid"}}})])])]),t._v(" "),t.getBreadCrums.length>0?e("div",{staticClass:"breadcrumb"},[e("ul",[t._l(t.getBreadCrums,(function(a){return[e("router-link",{attrs:{tag:"li",to:{name:"Home",query:{category:a.id}}}},[e("a",[t._v(t._s(a.name))])])]}))],2),t._v(" "),e("span",{staticClass:"close-breadcrumb flaticon-cancel-music",on:{click:function(e){return e.preventDefault(),t.removeBreadcrums.apply(null,arguments)}}})]):t._e(),t._v(" "),e("div",{ref:"items-wrapper",staticClass:"items-wrapper",class:t.productView},[t.productLoading?t._e():[t._l(t.getFilteredProduct,(function(a){return t.getFilteredProduct.length>0?e("div",{staticClass:"item"},["simple"===a.type?[e("div",{staticClass:"item-wrap",class:{disabled:!t.hasStock(a)},on:{click:function(e){return e.preventDefault(),t.addToCart(a)}}},[e("div",{staticClass:"img"},[e("img",{attrs:{src:t.getProductImage(a),alt:t.getProductImageName(a)}})]),t._v(" "),"grid"===t.productView?e("div",{staticClass:"title"},[t._v("\n "+t._s(t.truncateTitle(a.name,20))+"\n ")]):e("div",{staticClass:"title"},[e("div",{staticClass:"product-name"},[t._v(t._s(a.name))]),t._v(" "),e("ul",{staticClass:"meta"},[a.sku?e("li",[e("span",{staticClass:"label"},[t._v(t._s(t.__("Sku :","wepos")))]),t._v(" "),e("span",{staticClass:"value"},[t._v(t._s(a.sku))])]):t._e(),t._v(" "),e("li",[e("span",{staticClass:"label"},[t._v(t._s(t.__("Price :","wepos")))]),t._v(" "),e("span",{staticClass:"value",domProps:{innerHTML:t._s(a.price_html)}})])])]),t._v(" "),e("span",{staticClass:"add-product-icon flaticon-add",class:t.productView})])]:t._e(),t._v(" "),"variable"===a.type?[e("v-popover",{attrs:{offset:"10","popover-base-class":"product-variation tooltip popover",placement:"left-end"}},[e("div",{staticClass:"item-wrap",on:{click:function(e){return t.selectVariationProduct(a)}}},[e("div",{staticClass:"img"},[e("img",{attrs:{src:t.getProductImage(a),alt:t.getProductImageName(a)}})]),t._v(" "),"grid"===t.productView?e("div",{staticClass:"title"},[t._v("\n "+t._s(t.truncateTitle(a.name,20))+"\n ")]):e("div",{staticClass:"title"},[e("div",{staticClass:"product-name"},[t._v(t._s(a.name))]),t._v(" "),e("ul",{staticClass:"meta"},[e("li",[e("span",{staticClass:"label"},[t._v(t._s(t.__("Price :","wepos")))]),t._v(" "),e("span",{staticClass:"value",domProps:{innerHTML:t._s(a.price_html)}})])])]),t._v(" "),e("span",{staticClass:"add-product-icon flaticon-add",class:t.productView})]),t._v(" "),e("template",{slot:"popover"},[e("div",{staticClass:"variation-header"},[t._v("\n "+t._s(t.__("Select Variations","wepos"))+"\n ")]),t._v(" "),e("div",{staticClass:"variation-body"},[t._l(a.attributes,(function(a){return[e("div",{staticClass:"attribute"},[e("p",[t._v(t._s(a.name))]),t._v(" "),e("div",{staticClass:"options"},[t._l(a.options,(function(s){return[e("label",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.selectedAttribute[a.name],expression:"selectedAttribute[attribute.name]"}],attrs:{type:"radio"},domProps:{value:s,checked:t._q(t.selectedAttribute[a.name],s)},on:{change:function(e){return t.$set(t.selectedAttribute,a.name,s)}}}),t._v(" "),e("div",{staticClass:"box"},[t._v("\n "+t._s(s)+"\n ")])])]}))],2)])]}))],2),t._v(" "),e("div",{staticClass:"variation-footer"},[e("button",{attrs:{disabled:t.attributeDisabled},on:{click:function(e){return e.preventDefault(),t.addVariationProduct.apply(null,arguments)}}},[t._v(t._s(t.__("Add Product","wepos")))])])])],2)]:t._e()],2):t._e()})),t._v(" "),t.getFilteredProduct.length<=0?e("div",{staticClass:"no-product-found"},[e("img",{attrs:{src:t.wepos.assets_url+"/images/no-product.png",alt:"",width:"120px"}}),t._v(" "),e("p",[t._v(t._s(t.__("No Product Found","wepos")))])]):t._e()],t._v(" "),t.productLoading?e("div",{staticClass:"product-loading"},[e("div",{staticClass:"spinner spinner-loading"})]):t._e()],2)]),t._v(" "),e("div",{staticClass:"content-cart"},[e("div",{staticClass:"top-panel"},[e("customer-search",{on:{onCustomerSelected:t.selectCustomer}}),t._v(" "),e("div",{staticClass:"action"},[e("div",{staticClass:"more-options"},[e("v-popover",{attrs:{offset:"5","popover-base-class":"wepos-dropdown-menu tooltip popover",placement:"bottom-end",open:t.showQucikMenu}},[e("button",{staticClass:"wepos-button",on:{click:function(e){return e.preventDefault(),t.openQucikMenu()}}},[e("span",{staticClass:"more-icon flaticon-more"})]),t._v(" "),e("template",{slot:"popover"},[e("ul",[t._l(t.quickLinkListStart,(function(t,a){return e(t,{key:a-"1",tag:"component"})})),t._v(" "),e("li",[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.emptyCart.apply(null,arguments)}}},[e("span",{staticClass:"flaticon-empty-cart quick-menu-icon"}),t._v(t._s(t.__("Empty Cart","wepos")))])]),t._v(" "),e("li",[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.openHelp.apply(null,arguments)}}},[e("span",{staticClass:"flaticon-information quick-menu-icon"}),t._v(t._s(t.__("Help","wepos")))])]),t._v(" "),e("li",{staticClass:"divider"}),t._v(" "),t._l(t.quickLinkList,(function(t,a){return e(t,{key:a,tag:"component"})})),t._v(" "),e("li",[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.logout.apply(null,arguments)}}},[e("span",{staticClass:"flaticon-logout quick-menu-icon"}),t._v(t._s(t.__("Logout","wepos")))])])],2)])],2)],1)])],1),t._v(" "),t._l(t.beforCartPanels,(function(t,a){return e(t,{key:a,tag:"component"})})),t._v(" "),t.settings.wepos_general?e("div",{staticClass:"cart-panel"},[e("div",{staticClass:"cart-content"},[e("table",{staticClass:"cart-table"},[e("thead",[e("tr",[e("th",{attrs:{width:"65%"}},[t._v(t._s(t.__("Product","wepos")))]),t._v(" "),e("th",{attrs:{width:"15%"}},[t._v(t._s(t.__("Qty","wepos")))]),t._v(" "),e("th",{attrs:{width:"30%"}},[t._v(t._s(t.__("Price","wepos")))]),t._v(" "),e("th"),t._v(" "),e("th")])]),t._v(" "),e("tbody",[t.cartdata.line_items.length>0?[t._l(t.cartdata.line_items,(function(a,s){return[e("tr",[e("td",{staticClass:"name",on:{click:function(e){return t.toggleEditQuantity(a,s)}}},[t._v("\n "+t._s(a.name)+"\n "),a.attribute.length>0&&"variable"===a.type?e("div",{staticClass:"attribute"},[e("ul",t._l(a.attribute,(function(a){return e("li",[e("span",{staticClass:"attr_name"},[t._v(t._s(a.name))]),t._v(": "),e("span",{staticClass:"attr_value"},[t._v(t._s(a.option))])])})),0)]):t._e()]),t._v(" "),e("td",{staticClass:"qty",on:{click:function(e){return t.toggleEditQuantity(a,s)}}},[t._v(t._s(a.quantity))]),t._v(" "),e("td",{staticClass:"price",on:{click:function(e){return t.toggleEditQuantity(a,s)}}},[a.on_sale?[e("span",{staticClass:"sale-price"},[t._v(t._s(t.formatPrice(a.quantity*a.sale_price)))]),t._v(" "),e("span",{staticClass:"regular-price"},[t._v(t._s(t.formatPrice(a.quantity*a.regular_price)))])]:[e("span",{staticClass:"sale-price"},[t._v(t._s(t.formatPrice(a.quantity*a.regular_price)))])]],2),t._v(" "),e("td",{staticClass:"action"},[e("span",{staticClass:"flaticon-right-arrow",class:{open:a.editQuantity},on:{click:function(e){return e.preventDefault(),t.toggleEditQuantity(a,s)}}})]),t._v(" "),e("td",{staticClass:"remove"},[e("span",{staticClass:"flaticon-cancel-music",on:{click:function(e){return e.preventDefault(),t.removeItem(s)}}})])]),t._v(" "),a.editQuantity?e("tr",{staticClass:"update-quantity-wrap"},[e("td",{attrs:{colspan:"5"}},[e("span",{staticClass:"qty"},[t._v(t._s(t.__("Quantity","wepos")))]),t._v(" "),e("span",{staticClass:"qty-number"},[e("input",{directives:[{name:"model",rawName:"v-model",value:a.quantity,expression:"item.quantity"}],attrs:{type:"number",min:"1",step:"1"},domProps:{value:a.quantity},on:{input:function(e){e.target.composing||t.$set(a,"quantity",e.target.value)}}})]),t._v(" "),e("span",{staticClass:"qty-action"},[e("a",{staticClass:"add",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.addQuantity(a,s)}}},[t._v("+")]),t._v(" "),e("a",{staticClass:"minus",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.removeQuantity(a,s)}}},[t._v("-")])])])]):t._e()]}))]:[e("tr",{staticClass:"no-item"},[e("td",{attrs:{colspan:"5"}},[e("img",{attrs:{src:t.wepos.assets_url+"/images/empty-cart.png",alt:"",width:"120px"}}),t._v(" "),e("p",[t._v(t._s(t.__("Empty Cart","wepos")))])])])]],2)])]),t._v(" "),e("div",{staticClass:"cart-calculation"},[e("form",{attrs:{autocomplete:"off"}},[e("table",{staticClass:"cart-total-table"},[e("tbody",[e("tr",{staticClass:"cart-meta-data"},[e("td",{staticClass:"label"},[t._v("\n "+t._s(t.__("Subtotal","wepos"))+"\n "),"incl"==t.settings.woo_tax.wc_tax_display_cart&&t.$store.getters["Cart/getTotalLineTax"]>0?e("span",{staticClass:"name"},[t._v("\n "+t._s(t.__("Includes Tax","wepos"))+" "+t._s(t.formatPrice(t.$store.getters["Cart/getTotalLineTax"]))+"\n ")]):t._e()]),t._v(" "),e("td",{staticClass:"price"},[t._v(t._s(t.formatPrice(t.$store.getters["Cart/getSubtotal"])))]),t._v(" "),e("td",{staticClass:"action"})]),t._v(" "),t.cartdata.fee_lines.length>0?t._l(t.cartdata.fee_lines,(function(a,s){return e("tr",{staticClass:"cart-meta-data"},["discount"==a.type?[e("td",{staticClass:"label"},[t._v(t._s(t.__("Discount","wepos"))+" "),e("span",{staticClass:"name"},[t._v(t._s(t.getDiscountAmount(a)))])]),t._v(" "),e("td",{staticClass:"price"},[t._v("−"+t._s(t.formatPrice(Math.abs(a.total))))]),t._v(" "),e("td",{staticClass:"action"},[e("span",{staticClass:"flaticon-cancel-music",on:{click:function(e){return t.removeFeeLine(s)}}})])]:[t.cartdata.fee_lines[s].isEdit?[e("td",{staticClass:"label",attrs:{colspan:"2"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.feeData.name,expression:"feeData.name"}],ref:"fee_name",refInFor:!0,staticClass:"fee-name",attrs:{type:"text",placeholder:t.__("Fee Name","wepos")},domProps:{value:t.feeData.name},on:{input:function(e){e.target.composing||t.$set(t.feeData,"name",e.target.value)}}}),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.feeData.value,expression:"feeData.value"}],ref:"fee_total",refInFor:!0,staticClass:"fee-amount",attrs:{type:"number",min:"0",step:"any",placeholder:t.__("Total","wepos")},domProps:{value:t.feeData.value},on:{input:function(e){e.target.composing||t.$set(t.feeData,"value",e.target.value)}}}),t._v(" "),"yes"==t.settings.wepos_general.enable_fee_tax?[e("label",{attrs:{for:"fee-tax-status"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.feeData.tax_status,expression:"feeData.tax_status"}],staticClass:"fee-tax-status",attrs:{type:"checkbox",id:"fee-tax-status","true-value":"taxable","false-value":"none"},domProps:{checked:Array.isArray(t.feeData.tax_status)?t._i(t.feeData.tax_status,null)>-1:t._q(t.feeData.tax_status,"taxable")},on:{change:function(e){var a=t.feeData.tax_status,s=e.target,o=s.checked?"taxable":"none";if(Array.isArray(a)){var r=t._i(a,null);s.checked?r<0&&t.$set(t.feeData,"tax_status",a.concat([null])):r>-1&&t.$set(t.feeData,"tax_status",a.slice(0,r).concat(a.slice(r+1)))}else t.$set(t.feeData,"tax_status",o)}}}),t._v(" "+t._s(t.__("Taxable","wepos")))]),t._v(" "),"taxable"==t.feeData.tax_status?e("select",{directives:[{name:"model",rawName:"v-model",value:t.feeData.tax_class,expression:"feeData.tax_class"}],staticClass:"fee-tax-class",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.feeData,"tax_class",e.target.multiple?a:a[0])}}},t._l(t.availableTax,(function(a){return e("option",{domProps:{value:"standard"==a.class?"":a.class}},[t._v(t._s(t.unSanitizeString(a.class))+" - "+t._s(a.percentage_rate))])})),0):t._e()]:t._e(),t._v(" "),e("button",{attrs:{disabled:""==t.feeData.name},on:{click:function(e){return e.preventDefault(),t.saveFee(s)}}},[t._v(t._s(t.__("Apply","wepos")))]),t._v(" "),e("button",{staticClass:"cancel",on:{click:function(e){return e.preventDefault(),t.cancelEditFee(s)}}},[t._v(t._s(t.__("Cancel","wepos")))])],2),t._v(" "),e("td",{staticClass:"action"},[e("span",{staticClass:"flaticon-cancel-music",on:{click:function(e){return t.removeFeeLine(s)}}})])]:[e("td",{staticClass:"label",on:{dblclick:function(e){return e.preventDefault(),t.editFeeData(s)}}},[t._v(t._s(t.__("Fee","wepos"))+" "),e("span",{staticClass:"name"},[t._v(t._s(a.name)+" "+t._s(t.getDiscountAmount(a)))])]),t._v(" "),e("td",{staticClass:"price"},[t._v(t._s(t.formatPrice(Math.abs(a.total))))]),t._v(" "),e("td",{staticClass:"action"},[e("span",{staticClass:"flaticon-cancel-music",on:{click:function(e){return t.removeFeeLine(s)}}})])]]],2)})):t._e(),t._v(" "),t.$store.getters["Cart/getTotalTax"]?e("tr",{staticClass:"tax"},[e("td",{staticClass:"label"},[t._v(t._s(t.__("Tax","wepos")))]),t._v(" "),e("td",{staticClass:"price"},[t._v(t._s(t.formatPrice(t.$store.getters["Cart/getTotalTax"])))]),t._v(" "),e("td",{staticClass:"action"})]):t._e(),t._v(" "),e("tr",{staticClass:"cart-action"},[e("td",{attrs:{colspan:"3"}},[e("fee-keypad",{attrs:{name:t.__("Discount","wepos"),"short-key":"discount"},on:{inputfee:t.setDiscount}}),t._v(" "),e("fee-keypad",{attrs:{name:t.__("Fee","wepos"),"short-key":"fee"},on:{inputfee:t.setFee}}),t._v(" "),""==t.orderdata.customer_note?e("customer-note",{on:{addnote:t.addCustomerNote}}):t._e()],1)]),t._v(" "),t.orderdata.customer_note?e("tr",{staticClass:"note"},[e("td",{staticClass:"note-text",attrs:{colspan:"2"}},[t._v("\n "+t._s(t.orderdata.customer_note)+"\n ")]),t._v(" "),e("td",{staticClass:"action"},[e("span",{staticClass:"flaticon-cancel-music",on:{click:function(e){return e.preventDefault(),t.removeCustomerNote.apply(null,arguments)}}})])]):t._e(),t._v(" "),e("tr",{staticClass:"pay-now",on:{click:function(e){return t.initPayment()}}},[e("td",[t._v(t._s(t.__("Pay Now","wepos")))]),t._v(" "),e("td",{staticClass:"amount"},[t._v(t._s(t.formatPrice(t.$store.getters["Cart/getTotal"])))]),t._v(" "),t._m(0)])],2)])])])]):t._e()],2),t._v(" "),t.showPaymentReceipt?e("modal",{attrs:{width:"600px",height:"400px"},on:{close:function(e){return t.createNewSale()}}},[e("template",{slot:"body"},[e("div",{staticClass:"wepos-payment-receipt"},[e("div",{staticClass:"sale-completed"},[e("img",{attrs:{src:t.wepos.assets_url+"/images/sale-completed.png",alt:"",width:"120px"}}),t._v(" "),e("h2",[t._v(t._s(t.__("Sale Completed","wepos")))])]),t._v(" "),e("div",{staticClass:"print-section"},[e("print-receipt"),t._v(" "),e("button",{staticClass:"new-sale-btn",on:{click:function(e){return e.preventDefault(),t.createNewSale()}}},[e("span",{staticClass:"icon flaticon-add"}),t._v(" "),e("span",{staticClass:"label"},[t._v(t._s(t.__("New Sale","wepos")))])])],1)])])],2):t._e(),t._v(" "),t.showHelp?e("modal",{attrs:{width:"700px",height:"500px"},on:{close:function(e){return t.closeHelp()}}},[e("template",{slot:"body"},[e("div",{staticClass:"wepos-help-wrapper"},[e("h2",[t._v(t._s(t.__("Shortcut Keys","wepos")))]),t._v(" "),e("ul",[e("li",[e("span",{staticClass:"code"},[e("code",[t._v("f1")])]),t._v(" "),e("span",{staticClass:"title"},[t._v(t._s(t.__("Search Product","wepos")))])]),t._v(" "),e("li",[e("span",{staticClass:"code"},[e("code",[t._v("f2")])]),t._v(" "),e("span",{staticClass:"title"},[t._v(t._s(t.__("Scan Product","wepos")))])]),t._v(" "),e("li",[e("span",{staticClass:"code"},[e("code",[t._v("f3")])]),t._v(" "),e("span",{staticClass:"title"},[t._v(t._s(t.__("Toggle Product View","wepos")))])]),t._v(" "),e("li",[e("span",{staticClass:"code"},[e("code",[t._v("f4")])]),t._v(" "),e("span",{staticClass:"title"},[t._v(t._s(t.__("Add Fee in cart","wepos")))])]),t._v(" "),e("li",[e("span",{staticClass:"code"},[e("code",[t._v("f5")])]),t._v(" "),e("span",{staticClass:"title"},[t._v(t._s(t.__("Add Discount in cart","wepos")))])]),t._v(" "),e("li",[e("span",{staticClass:"code"},[e("code",[t._v("f6")])]),t._v(" "),e("span",{staticClass:"title"},[t._v(t._s(t.__("Add Customer note","wepos")))])]),t._v(" "),e("li",[e("span",{staticClass:"code"},[e("code",[t._v("f7")])]),t._v(" "),e("span",{staticClass:"title"},[t._v(t._s(t.__("Customer Search","wepos")))])]),t._v(" "),e("li",[e("span",{staticClass:"code"},[e("code",[t._v("shift+f7")])]),t._v(" "),e("span",{staticClass:"title"},[t._v(t._s(t.__("Add new Customer","wepos")))])]),t._v(" "),e("li",[e("span",{staticClass:"code"},[e("code",[t._v("f8")])]),t._v(" "),e("span",{staticClass:"title"},[t._v(t._s(t.__("Create New Sale","wepos")))])]),t._v(" "),e("li",[e("span",{staticClass:"code"},[e("code",[t._v("shift+f8")])]),t._v(" "),e("span",{staticClass:"title"},[t._v(t._s(t.__("Empty your cart","wepos")))])]),t._v(" "),e("li",[e("span",{staticClass:"code"},[e("code",[t._v("f9")])]),t._v(" "),e("span",{staticClass:"title"},[t._v(t._s(t.__("Go to payment receipt","wepos")))])]),t._v(" "),e("li",[e("span",{staticClass:"code"},[e("code",[t._v("f10")])]),t._v(" "),e("span",{staticClass:"title"},[t._v(t._s(t.__("Process Payment","wepos")))])]),t._v(" "),e("li",[e("span",{staticClass:"code"},[e("code",[t._v("ctrl/cmd+p")])]),t._v(" "),e("span",{staticClass:"title"},[t._v(t._s(t.__("Print Receipt","wepos")))])]),t._v(" "),e("li",[e("span",{staticClass:"code"},[e("code",[t._v("ctrl/cmd+?")])]),t._v(" "),e("span",{staticClass:"title"},[t._v(t._s(t.__("Show/Close(Toggle) Help","wepos")))])]),t._v(" "),e("li",[e("span",{staticClass:"code"},[e("code",[t._v("esc")])]),t._v(" "),e("span",{staticClass:"title"},[t._v(t._s(t.__("Close anything","wepos")))])])])])])],2):t._e(),t._v(" "),t.showModal?e("modal",{attrs:{width:"98%",height:"95vh"},on:{open:function(e){return t.focusCashInput()},close:function(e){return t.backToSale()},enterpressed:function(e){return t.processPayment()}}},[e("template",{slot:"body"},[e("div",{staticClass:"wepos-checkout-wrapper"},[e("div",{staticClass:"left-content"},[e("div",{staticClass:"header"},[t._v("\n "+t._s(t.__("Sale Summary","wepos"))+"\n ")]),t._v(" "),e("div",{staticClass:"content"},[e("table",{staticClass:"sale-summary-cart"},[e("tbody",t._l(t.cartdata.line_items,(function(a){return e("tr",[e("td",{staticClass:"name"},[t._v("\n "+t._s(a.name)+"\n "),a.attribute.length>0&&"variable"===a.type?e("div",{staticClass:"attribute"},[e("ul",t._l(a.attribute,(function(a){return e("li",[e("span",{staticClass:"attr_name"},[t._v(t._s(a.name))]),t._v(": "),e("span",{staticClass:"attr_value"},[t._v(t._s(a.option))])])})),0)]):t._e()]),t._v(" "),e("td",{staticClass:"quantity"},[t._v(t._s(a.quantity))]),t._v(" "),e("td",{staticClass:"price"},[a.on_sale?[e("span",{staticClass:"sale-price"},[t._v(t._s(t.formatPrice(a.quantity*a.sale_price)))]),t._v(" "),e("span",{staticClass:"regular-price"},[t._v(t._s(t.formatPrice(a.quantity*a.regular_price)))])]:[e("span",{staticClass:"sale-price"},[t._v(t._s(t.formatPrice(a.quantity*a.regular_price)))])]],2)])})),0)])]),t._v(" "),e("div",{staticClass:"footer"},[e("ul",[e("li",{staticClass:"wepos-clearfix"},[e("span",{staticClass:"wepos-left"},[t._v("\n "+t._s(t.__("Subtotal","wepos"))+"\n "),"incl"==t.settings.woo_tax.wc_tax_display_cart?e("span",{staticClass:"metadata"},[t._v("\n "+t._s(t.__("Includes Tax","wepos"))+" "+t._s(t.formatPrice(t.$store.getters["Cart/getTotalLineTax"]))+"\n ")]):t._e()]),t._v(" "),e("span",{staticClass:"wepos-right"},[t._v(t._s(t.formatPrice(t.$store.getters["Cart/getSubtotal"])))])]),t._v(" "),t.cartdata.fee_lines.length>0?t._l(t.cartdata.fee_lines,(function(a,s){return e("li",{staticClass:"wepos-clearfix"},["discount"==a.type?[e("span",{staticClass:"wepos-left"},[t._v(t._s(t.__("Discount","wepos"))+" "),e("span",{staticClass:"metadata"},[t._v(t._s(a.name)+" "+t._s(t.getDiscountAmount(a)))])]),t._v(" "),e("span",{staticClass:"wepos-right"},[t._v("-"+t._s(t.formatPrice(Math.abs(a.total))))])]:[e("span",{staticClass:"wepos-left"},[t._v(t._s(t.__("Fee","wepos"))+" "),e("span",{staticClass:"metadata"},[t._v(t._s(a.name)+" "+t._s(t.getDiscountAmount(a)))])]),t._v(" "),e("span",{staticClass:"wepos-right"},[t._v(t._s(t.formatPrice(a.total)))])]],2)})):t._e(),t._v(" "),t.$store.getters["Cart/getTotalTax"]?e("li",{staticClass:"wepos-clearfix"},[e("span",{staticClass:"wepos-left"},[t._v(t._s(t.__("Tax","wepos")))]),t._v(" "),e("span",{staticClass:"wepos-right"},[t._v(t._s(t.formatPrice(t.$store.getters["Cart/getTotalTax"])))])]):t._e(),t._v(" "),e("li",{staticClass:"wepos-clearfix"},[e("span",{staticClass:"wepos-left"},[t._v(t._s(t.__("Order Total","wepos")))]),t._v(" "),e("span",{staticClass:"wepos-right"},[t._v(t._s(t.formatPrice(t.$store.getters["Cart/getTotal"])))])]),t._v(" "),e("li",{staticClass:"wepos-clearfix"},[e("span",{staticClass:"wepos-left"},[t._v(t._s(t.__("Pay","wepos")))]),t._v(" "),e("span",{staticClass:"wepos-right"},[t._v(t._s(t.formatPrice(t.$store.getters["Cart/getTotal"])))])])],2)])]),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"header wepos-clearfix"},[e("h2",{staticClass:"wepos-left"},[t._v(t._s(t.__("Pay","wepos")))]),t._v(" "),e("span",{staticClass:"pay-amount wepos-right"},[t._v(t._s(t.formatPrice(t.$store.getters["Cart/getTotal"])))])]),t._v(" "),e("div",{staticClass:"content"},[e("div",{staticClass:"payment-gateway"},[t.availableGateways.length>0?[t._l(t.availableGateways,(function(a){return e("label",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.selectedGateway,expression:"selectedGateway"}],attrs:{type:"radio",name:"gateway",checked:""},domProps:{value:a.id,checked:t._q(t.selectedGateway,a.id)},on:{change:function(e){t.selectedGateway=a.id}}}),t._v(" "),e("span",{staticClass:"gateway",class:`gateway-${a.id}`},[t._v("\n "+t._s(a.title)+"\n ")])])})),t._v(" "),t.emptyGatewayDiv>0?t._l(t.emptyGatewayDiv,(function(t){return e("label",{key:t},[e("span",{staticClass:"grid-placeholder"})])})):t._e()]:[e("p",[t._v(t._s(t.__("No gateway found","wepos")))])]],2),t._v(" "),"wepos_cash"==t.orderdata.payment_method?[e("div",{staticClass:"payment-option"},[e("div",{staticClass:"payment-amount"},[e("div",{staticClass:"input-part"},[e("div",{staticClass:"input-wrap"},[e("p",[t._v(t._s(t.__("Cash","wepos")))]),t._v(" "),e("div",{staticClass:"input-addon"},[e("span",{staticClass:"currency"},[t._v(t._s(t.wepos.currency_format_symbol))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.cashAmount,expression:"cashAmount"}],ref:"cashamount",attrs:{id:"input-cash-amount",type:"text"},domProps:{value:t.cashAmount},on:{input:function(e){e.target.composing||(t.cashAmount=e.target.value)}}})])])]),t._v(" "),e("div",{staticClass:"change-money"},[e("p",[t._v(t._s(t.__("Change money","wepos"))+": "+t._s(t.formatPrice(t.changeAmount)))])])])])]:t._e(),t._v(" "),t._l(t.availableGatewayContent,(function(a,s){return e(a,{key:s,tag:"component",attrs:{availablegateways:t.availableGateways}})}))],2),t._v(" "),e("div",{staticClass:"footer wepos-clearfix"},[e("a",{staticClass:"back-btn wepos-left",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.backToSale()}}},[t._v(t._s(t.__("Back to Sale","wepos")))]),t._v(" "),e("button",{staticClass:"process-checkout-btn wepos-right",attrs:{disabled:!t.$store.getters["Order/getCanProcessPayment"]},on:{click:function(e){return e.preventDefault(),t.processPayment.apply(null,arguments)}}},[t._v(t._s(t.__("Process Payment","wepos")))])])])])])],2):t._e(),t._v(" "),e("overlay",{attrs:{show:t.showOverlay}}),t._v(" "),t.showReceiptHtml?e("print-receipt-html",{directives:[{name:"show",rawName:"v-show",value:t.createprintreceipt,expression:"createprintreceipt"}],attrs:{printdata:t.printdata,settings:t.settings}}):t._e(),t._v(" "),t._l(t.afterMainContents,(function(a,s){return e(a,{key:s,tag:"component",attrs:{orderdata:t.orderdata,printdata:t.printdata}})}))],2)};o._withStripped=!0;var r=function(){var t=this,e=t._self._c;return t.show?e("div",{staticClass:"overlay"}):t._e()};r._withStripped=!0;const i=e({name:"Overlay",props:{show:{type:Boolean}}},r,[],!1,null,null,null).exports;var n=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.outside,expression:"outside"}],staticClass:"search-box"},[e("form",{attrs:{action:"",autocomplete:"off"},on:{submit:function(e){return e.preventDefault(),t.handleProductScan.apply(null,arguments)}}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.serachInput,expression:"serachInput"}],ref:"productSearch",attrs:{type:"text",name:"search",id:"product-search",placeholder:t.placeholder},domProps:{value:t.serachInput},on:{focus:function(e){return e.preventDefault(),t.triggerFocus.apply(null,arguments)},keyup:function(e){return e.preventDefault(),t.searchProduct.apply(null,arguments)},input:function(e){e.target.composing||(t.serachInput=e.target.value)}}}),t._v(" "),"product"==t.mode?e("span",{staticClass:"search-icon flaticon-musica-searcher"}):t._e(),t._v(" "),"scan"==t.mode?e("span",{staticClass:"search-icon flaticon-supermarket-scanner"}):t._e(),t._v(" "),e("div",{directives:[{name:"hotkey",rawName:"v-hotkey",value:t.hotkeys,expression:"hotkeys"}],staticClass:"search-type"},[""!=t.serachInput?e("button",{staticClass:"clear-button",attrs:{type:"button"},on:{click:t.clearSearch}},[t._v("X")]):t._e(),t._v(" "),e("a",{class:{active:"product"==t.mode},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.changeMode("product")}}},[t._v(t._s(t.__("Product","wepos")))]),t._v(" "),e("a",{class:{active:"scan"==t.mode},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.changeMode("scan")}}},[t._v(t._s(t.__("Scan","wepos")))])]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.showResults&&"product"==t.mode,expression:"showResults && mode=='product'"}],staticClass:"search-result"},[t.searchableProduct.length?e("div",[e("keyboard-control",{attrs:{listLength:t.searchableProduct.length},on:{"key-down":t.onKeyDown,"key-up":t.onKeyUp},scopedSlots:t._u([{key:"default",fn:function(a){let{selectedIndex:s}=a;return t._l(t.searchableProduct,(function(a,o){return e("li",{key:o,staticClass:"product-search-item",class:{selected:o===s}},["simple"==a.type?[e("a",{staticClass:"wepos-clearfix",attrs:{href:"#"},on:{click:function(e){return t.addToCartAction(a)}}},[t._v(t._s(a.name)+"\n "),e("span",{staticClass:"price"},[t._v(t._s(t.formatPrice(a.price)))]),t._v(" "),a.sku?e("span",{staticClass:"sku"},[t._v(t._s(a.sku))]):t._e(),t._v(" "),e("span",{staticClass:"action flaticon-enter-arrow wepos-right"})])]:t._e(),t._v(" "),"variable"==a.type?[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.selectVariation(a)}}},[t._v(t._s(a.name)+"\n "),e("span",{staticClass:"price"},[t._v(t._s(t.formatPrice(a.price)))]),t._v(" "),a.sku?e("span",{staticClass:"sku"},[t._v(t._s(a.sku))]):t._e(),t._v(" "),e("span",{staticClass:"action flaticon-enter-arrow wepos-right"})])]:t._e()],2)}))}}],null,!1,2881840290)})],1):e("div",{staticClass:"no-data-found"},[t._v("\n "+t._s(t.__("No product found","wepos"))+"\n ")]),t._v(" "),e("div",{staticClass:"suggession"},[e("span",{staticClass:"term"},[e("span",{staticClass:"flaticon-swap"}),t._v(" "+t._s(t.__("to navigate","wepos"))+"\n ")]),t._v(" "),e("span",{staticClass:"term"},[e("span",{staticClass:"flaticon-enter-arrow"}),t._v(" "+t._s(t.__("to select","wepos"))+"\n ")]),t._v(" "),e("span",{staticClass:"term"},[e("strong",[t._v("esc")]),t._v(" "+t._s(t.__("to dismiss","wepos"))+"\n ")])])])]),t._v(" "),t.showVariationModal?e("modal",{attrs:{title:t.__("Select Variations","wepos"),width:"500px",height:"auto",footer:!0,header:!0},on:{close:function(e){t.showVariationModal=!1}}},[e("template",{slot:"body"},t._l(t.selectedVariationProduct.attributes,(function(a){return e("div",{staticClass:"variation-attribute-wrapper"},[e("div",{staticClass:"attribute"},[e("p",[t._v(t._s(a.name))]),t._v(" "),e("div",{staticClass:"options"},[t._l(a.options,(function(s){return[e("label",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.chosenAttribute[a.name],expression:"chosenAttribute[attribute.name]"}],attrs:{type:"radio"},domProps:{value:s,checked:t._q(t.chosenAttribute[a.name],s)},on:{change:function(e){return t.$set(t.chosenAttribute,a.name,s)}}}),t._v(" "),e("div",{staticClass:"box"},[t._v("\n "+t._s(s)+"\n ")])])]}))],2)])])})),0),t._v(" "),e("template",{slot:"footer"},[e("button",{staticClass:"add-variation-btn",attrs:{disabled:t.attributeDisabled},on:{click:function(e){return t.addVariationProduct()}}},[t._v(t._s(t.__("Add Product","wepos")))])])],2):t._e()],1)};n._withStripped=!0;const c=e({props:{listLength:Number},data:()=>({selectedIndex:0}),render(t){return t("ul",this.$scopedSlots.default({selectedIndex:this.selectedIndex}))},methods:{keyHandler(t){const e=t.which||t.keyCode;38===e||t.shiftKey&&9===e?(this.handleKeyUp(t),this.$emit("key-up")):40!==e&&9!==e||(this.handleKeyDown(t),this.$emit("key-down"))},handleKeyUp(t){t.preventDefault(),this.selectedIndex<=0?this.selectedIndex=this.listLength-1:this.selectedIndex>0&&this.selectedIndex<=this.listLength-1&&this.selectedIndex--},handleKeyDown(t){t.preventDefault(),this.selectedIndex<0||this.selectedIndex===this.listLength-1?this.selectedIndex=0:this.selectedIndex>=0&&this.selectedIndex[]},settings:{type:Object,default:()=>({})}},components:{Modal:l,KeyboardControl:c},data:()=>({showResults:!1,showVariationModal:!1,mode:"scan",serachInput:"",searchableProduct:[],selectedVariationProduct:{},attributeDisabled:!0,chosenAttribute:{}}),computed:{placeholder(){return"scan"==this.mode?this.__("Scan your product","wepos"):this.__("Search product by typing","wepos")},hotkeys(){return{f1:this.changeProductSearch,f2:this.changeScan,esc:this.searchClose}}},watch:{chosenAttribute(t,e){Object.keys(t).length==this.selectedVariationProduct.attributes.length&&(this.attributeDisabled=!1)}},methods:{changeScan(t){t.preventDefault(),this.changeMode("scan")},changeProductSearch(t){t.preventDefault(),this.changeMode("product")},searchClose(){this.showResults=!1,this.showVariationModal=!1,this.changeMode("scan"),this.$refs.productSearch.blur()},clearSearch(){this.searchClose(),this.serachInput=""},onKeyDown(){jQuery(".product-search-item.selected").next().children("a").focus()},onKeyUp(){jQuery(".product-search-item.selected").prev().children("a").focus()},triggerFocus(){this.showResults=!0,this.$emit("onfocus")},outside(){this.showResults=!1,this.$emit("onblur")},changeMode(t){this.mode=t,"scan"==this.mode&&(this.searchableProduct=[],this.showResults=!1),this.$refs.productSearch.focus()},handleProductScan(){if("product"!=this.mode){var t=this.settings.wepos_general,e="custom"==t.barcode_scanner_field?"barcode":t.barcode_scanner_field,a={},s=this.products.filter((t=>{if("simple"==t.type&&t[e].toString()==this.serachInput)return!0;if("variable"==t.type){var a=!1;if(t.variations.length>0&&weLo_.forEach(t.variations,((t,s)=>{t[e].toString()==this.serachInput&&(a=!0)})),a)return!0}return!1}));if(s.length>0)if("variable"==(s=s[0]).type)(a=s.variations.filter((t=>t[e].toString()==this.serachInput))[0]).parent_id=s.id,a.type=s.type,a.name=s.name,this.$emit("onProductAdded",a);else this.$emit("onProductAdded",s);this.serachInput=""}},searchProduct(t){this.serachInput&&"product"==this.mode&&(this.searchableProduct=this.products.filter((t=>-1!=t.id.toString().indexOf(this.serachInput)||(-1!=t.name.toString().toLowerCase().indexOf(this.serachInput.toLowerCase())||-1!=t.sku.indexOf(this.serachInput)))))},selectVariation(t){this.selectedVariationProduct=t,this.showVariationModal=!0},addVariationProduct(){var t=this.findMatchingVariations(this.selectedVariationProduct.variations,this.chosenAttribute)[0];t.parent_id=this.selectedVariationProduct.id,t.type=this.selectedVariationProduct.type,t.name=this.selectedVariationProduct.name,this.$emit("onProductAdded",t),this.showVariationModal=!1,this.chosenAttribute={}},addToCartAction(t){this.$emit("onProductAdded",t)}},mounted(){this.$refs.productSearch.focus()}},n,[],!1,null,null,null).exports;var d=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.onblur,expression:"onblur"},{name:"hotkey",rawName:"v-hotkey",value:t.hotkeys,expression:"hotkeys"}],staticClass:"customer-search-box"},[e("form",{attrs:{action:"",autocomplete:"off"}},[e("svg",{staticClass:"customer-icon",attrs:{width:"19px",height:"19px",viewBox:"0 0 19 19",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[e("defs",[e("linearGradient",{attrs:{x1:"14.5524094%",y1:"14.6909544%",x2:"82.7722259%",y2:"85.2519444%",id:"linearGradient-1"}},[e("stop",{attrs:{"stop-color":"#C444FB",offset:"0%"}}),t._v(" "),e("stop",{attrs:{"stop-color":"#5B56D7",offset:"100%"}})],1)],1),t._v(" "),e("g",{attrs:{id:"Page-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[e("g",{attrs:{id:"POS-Design---Dokan-P2",transform:"translate(-759.000000, -27.000000)"}},[e("g",{attrs:{id:"Group",transform:"translate(759.000000, 27.000000)"}},[e("circle",{attrs:{id:"Oval",fill:"url(#linearGradient-1)","fill-rule":"nonzero",cx:"9.5",cy:"9.5",r:"9.5"}}),t._v(" "),e("g",{attrs:{id:"flaticon1543304699-svg-2",transform:"translate(9.500000, 9.500000) scale(-1, 1) translate(-9.500000, -9.500000) translate(6.000000, 5.000000)"}},[e("g",{attrs:{id:"flaticon1543304699-svg"}},[e("path",{attrs:{d:"M3.31578947,4.40159143 C4.27870463,4.40159143 5.0593751,3.41627143 5.0593751,2.20080857 C5.0593751,0.98532 4.80306952,0 3.31578947,0 C1.82850943,0 1.57215436,0.98532 1.57215436,2.20080857 C1.57215436,3.41627143 2.35282482,4.40159143 3.31578947,4.40159143 Z",id:"Path",fill:"#FFFFFF"}}),t._v(" "),e("path",{attrs:{d:"M0.0616980658,7.82884897 C0.0604730658,7.62453402 0.0592480658,7.77128348 0.0616980658,7.82884897 Z",id:"Path",fill:"#000000"}}),t._v(" "),e("path",{attrs:{d:"M6.64682715,7.85749962 C6.65070632,7.82585407 6.64815424,7.63794608 6.64682715,7.85749962 Z",id:"Path",fill:"#000000"}}),t._v(" "),e("path",{attrs:{d:"M6.60522584,7.67306571 C6.57293401,5.5557 6.30682954,4.95236571 4.27051414,4.57045714 C4.27051414,4.57045714 3.98387156,4.95002571 3.31576473,4.95002571 C2.64765789,4.95002571 2.36096583,4.57045714 2.36096583,4.57045714 C0.34687117,4.9482 0.0645836606,5.54258571 0.0274666143,7.60428 C0.0244230165,7.77263143 0.0230125687,7.78147714 0.0224681854,7.76193429 C0.0225919089,7.79855143 0.0227403771,7.86628286 0.0227403771,7.98438857 C0.0227403771,7.98438857 0.507538492,9 3.31576473,9 C6.12394148,9 6.60878908,7.98438857 6.60878908,7.98438857 C6.60878908,7.90850571 6.60883857,7.85574 6.6089128,7.81984286 C6.60836842,7.83192857 6.60727965,7.80850286 6.60522584,7.67306571 Z",id:"Path",fill:"#FFFFFF"}})])])])])])]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.serachInput,expression:"serachInput"}],ref:"customerSearch",attrs:{type:"text",name:"customer_search",id:"customer-search",placeholder:t.__("Search customer","wepos")},domProps:{value:t.serachInput},on:{focus:function(e){return e.preventDefault(),t.triggerFocus.apply(null,arguments)},keyup:t.searchCustomer,input:function(e){e.target.composing||(t.serachInput=e.target.value)}}}),t._v(" "),e("span",{staticClass:"add-new-customer flaticon-add",on:{click:function(e){return e.preventDefault(),t.addNewCustomer()}}}),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.showCustomerResults,expression:"showCustomerResults"}],staticClass:"search-result"},[t.customers.length?e("div",[e("keyboard-control",{attrs:{listLength:t.customers.length},on:{"key-down":t.onKeyDown,"key-up":t.onKeyUp},scopedSlots:t._u([{key:"default",fn:function(a){let{selectedIndex:s}=a;return t._l(t.customers,(function(a,o){return e("li",{key:o,staticClass:"customer-search-item",class:{selected:o===s}},[e("a",{staticClass:"wepos-clearfix",attrs:{href:"#"},on:{click:function(e){return t.selectCustomer(a)}}},[e("span",{staticClass:"avatar wepos-left"},[e("img",{attrs:{src:a.avatar_url,alt:a.first_name+" "+a.last_name}})]),t._v(" "),e("span",{staticClass:"name wepos-left"},[t._v(t._s(a.first_name+" "+a.last_name)),e("span",{staticClass:"metadata"},[t._v(t._s(a.email))])]),t._v(" "),e("span",{staticClass:"action flaticon-enter-arrow wepos-right"})])])}))}}],null,!1,1035729388)})],1):e("div",{staticClass:"no-data-found"},[t._v("\n "+t._s(t.__("No customer found","wepos"))+"\n ")]),t._v(" "),e("div",{staticClass:"suggession"},[e("span",{staticClass:"term"},[e("span",{staticClass:"flaticon-swap"}),t._v(" "+t._s(t.__("to navigate","wepos"))+"\n ")]),t._v(" "),e("span",{staticClass:"term"},[e("span",{staticClass:"flaticon-enter-arrow"}),t._v(" "+t._s(t.__("to select","wepos"))+"\n ")]),t._v(" "),e("span",{staticClass:"term"},[e("strong",[t._v("esc")]),t._v(" "+t._s(t.__("to dismiss","wepos"))+"\n ")])])])]),t._v(" "),t.showNewCustomerModal?e("modal",{attrs:{title:t.__("Add New Customer","wepos"),width:"700px",footer:!0,header:!0},on:{close:t.closeNewCustomerModal}},[e("template",{slot:"body"},[e("div",{staticClass:"wepos-new-customer-form"},[e("form",{staticClass:"wepos-form",attrs:{action:"",autocomplete:"off"}},[e("div",{staticClass:"form-row col-2"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.customer.first_name,expression:"customer.first_name"}],attrs:{type:"text",placeholder:t.__("First Name","wepos")},domProps:{value:t.customer.first_name},on:{input:function(e){e.target.composing||t.$set(t.customer,"first_name",e.target.value)}}}),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.customer.last_name,expression:"customer.last_name"}],attrs:{type:"text",placeholder:t.__("Last Name","wepos")},domProps:{value:t.customer.last_name},on:{input:function(e){e.target.composing||t.$set(t.customer,"last_name",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-row"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.customer.email,expression:"customer.email"}],attrs:{type:"email",placeholder:t.__("Email","wepos")},domProps:{value:t.customer.email},on:{input:function(e){e.target.composing||t.$set(t.customer,"email",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-row col-2"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.customer.address_1,expression:"customer.address_1"}],attrs:{type:"text",placeholder:t.__("Address 1","wepos")},domProps:{value:t.customer.address_1},on:{input:function(e){e.target.composing||t.$set(t.customer,"address_1",e.target.value)}}}),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.customer.address_2,expression:"customer.address_2"}],attrs:{type:"text",placeholder:t.__("Address 2 (optional)","wepos")},domProps:{value:t.customer.address_2},on:{input:function(e){e.target.composing||t.$set(t.customer,"address_2",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-row col-2"},[e("multiselect",{staticClass:"wepos-multiselect customer-country",staticStyle:{width:"48.5%","margin-right":"20px"},attrs:{options:t.getCountryList,selectLabel:"",deselectLabel:"",selectedLabel:"",placeholder:t.__("Select a country","wepos"),"track-by":"code",label:"name"},on:{select:t.handleCountrySelect,remove:t.removeCountrySelect},scopedSlots:t._u([{key:"singleLabel",fn:function(a){return[e("span",{domProps:{innerHTML:t._s(a.option.name)}})]}},{key:"option",fn:function(a){return[e("span",{domProps:{innerHTML:t._s(a.option.name)}})]}}],null,!1,568765526),model:{value:t.selectedCountry,callback:function(e){t.selectedCountry=e},expression:"selectedCountry"}},[t._v(" "),t._v(" "),e("template",{slot:"noResult"},[e("div",{staticClass:"no-data-found"},[t._v(t._s(t.__("No country found","wepos")))])])],2),t._v(" "),t.stateList.length>0?[e("multiselect",{staticClass:"wepos-multiselect customer-state",staticStyle:{width:"48.5%"},attrs:{options:t.stateList,selectLabel:"",deselectLabel:"",selectedLabel:"",placeholder:t.__("Select a state","wepos"),"track-by":"code",label:"name"},on:{remove:t.removeStateSelect},scopedSlots:t._u([{key:"singleLabel",fn:function(a){return[e("span",{domProps:{innerHTML:t._s(a.option.name)}})]}},{key:"option",fn:function(a){return[e("span",{domProps:{innerHTML:t._s(a.option.name)}})]}}],null,!1,568765526),model:{value:t.selectedState,callback:function(e){t.selectedState=e},expression:"selectedState"}},[t._v(" "),t._v(" "),e("template",{slot:"noResult"},[e("div",{staticClass:"no-data-found"},[t._v(t._s(t.__("No country found","wepos")))])])],2)]:[e("input",{directives:[{name:"model",rawName:"v-model",value:t.customer.state,expression:"customer.state"}],attrs:{type:"text",placeholder:t.__("States (optional)","wepos")},domProps:{value:t.customer.state},on:{input:function(e){e.target.composing||t.$set(t.customer,"state",e.target.value)}}})]],2),t._v(" "),e("div",{staticClass:"form-row col-2"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.customer.city,expression:"customer.city"}],attrs:{type:"text",placeholder:t.__("City (optional)","wepos")},domProps:{value:t.customer.city},on:{input:function(e){e.target.composing||t.$set(t.customer,"city",e.target.value)}}}),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.customer.postcode,expression:"customer.postcode"}],attrs:{type:"text",placeholder:t.__("Zip/Postal Code (optional)","wepos")},domProps:{value:t.customer.postcode},on:{input:function(e){e.target.composing||t.$set(t.customer,"postcode",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-row"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.customer.phone,expression:"customer.phone"}],attrs:{type:"text",placeholder:t.__("Phone (optional)","wepos")},domProps:{value:t.customer.phone},on:{input:function(e){e.target.composing||t.$set(t.customer,"phone",e.target.value)}}})])])])]),t._v(" "),e("template",{slot:"footer"},[e("button",{staticClass:"add-new-customer-btn add-variation-btn",attrs:{disabled:t.isDisabled},on:{click:function(e){return t.createCustomer()}}},[t._v(t._s(t.__("Add Customer","wepos")))])])],2):t._e()],1)};d._withStripped=!0;const p=e({name:"CustomerSearch",components:{Modal:wepos_get_lib("Modal"),KeyboardControl:c},data:()=>({submitDisable:!1,customers:[],customer:{email:"",first_name:"",last_name:"",address_1:"",address_2:"",country:"",state:"",postcode:"",city:"",phone:""},showCustomerResults:!1,serachInput:"",showNewCustomerModal:!1,stateList:[],selectedState:null,selectedCountry:null,isDisabled:!0}),computed:{hotkeys(){return{f7:this.focusCustomerSearch,"shift+f7":this.addNewCustomer,esc:this.searchClose}},getCountryList:()=>Object.keys(wepos.countries).map((t=>({code:t,name:wepos.countries[t]}))),orderdata(){return this.$store.state.Order.orderdata}},watch:{customer:{handler(t){this.isDisabled=!0,void 0!==t.first_name&&""!=t.first_name.trim()&&void 0!==t.last_name&&""!=t.last_name.trim()&&void 0!==t.email&&""!=t.email.trim()&&(this.isDisabled=!1)},deep:!0},"orderdata.customer_id"(t){this.serachInput=t?this.orderdata.billing.first_name+" "+this.orderdata.billing.last_name:""}},methods:{focusCustomerSearch(t){t.preventDefault(),this.$refs.customerSearch.focus()},searchClose(){this.showCustomerResults=!1,this.serachInput="",this.showNewCustomerModal=!1,this.$refs.customerSearch.blur()},addNewCustomer(){this.showNewCustomerModal=!0},onKeyDown(){jQuery(".customer-search-item.selected").next().children("a").focus()},onKeyUp(){jQuery(".customer-search-item.selected").prev().children("a").focus()},triggerFocus(){this.showCustomerResults=!0,this.$emit("onfocus")},onblur(){this.showCustomerResults=!1,this.$emit("onblur")},closeNewCustomerModal(){this.customer={email:"",first_name:"",last_name:"",address_1:"",address_2:"",country:"",state:"",postcode:"",city:"",phone:""},this.selectedState=null,this.selectedCountry=null,this.showNewCustomerModal=!1},searchCustomer(){this.serachInput?wepos.api.get(wepos.rest.root+wepos.rest.posversion+"/customers?search="+this.serachInput).done((t=>{this.customers=t})):this.$emit("onCustomerSelected",{})},selectCustomer(t){this.$emit("onCustomerSelected",t),this.serachInput=t.first_name+" "+t.last_name,this.showCustomerResults=!1},createCustomer(){if(this.customer.email){var t={email:this.customer.email,first_name:this.customer.first_name,last_name:this.customer.last_name,username:this.customer.email,password:this.generatePassword(20),billing:{first_name:this.customer.first_name,last_name:this.customer.last_name,address_1:this.customer.address_1,address_2:this.customer.address_2,country:null!==this.selectedCountry?this.selectedCountry.code:"",state:null!==this.selectedState?this.selectedState.code:this.customer.state,postcode:this.customer.postcode,city:this.customer.city,phone:this.customer.phone,email:this.customer.email}},e=jQuery(".wepos-new-customer-form");e.block({message:null,overlayCSS:{background:"#fff url("+wepos.ajax_loader+") no-repeat center",opacity:.4}}),wepos.api.post(wepos.rest.root+wepos.rest.posversion+"/customers",t).done((t=>{this.serachInput=t.first_name+" "+t.last_name,this.$emit("onCustomerSelected",t),e.unblock(),this.closeNewCustomerModal()})).fail((t=>{e.unblock(),alert(t.responseJSON.message)}))}else alert(this.__("Please enter an email address for customer","wepos"))},removeCountrySelect(t,e){this.selectedState=null,this.selectedCountry=null,this.stateList=[],this.customer.country="",this.customer.state=""},removeStateSelect(t,e){this.selectedState=null,this.customer.state=""},handleCountrySelect(t,e){var a=void 0!==wepos.states[t.code]?wepos.states[t.code]:[],s=Object.keys(a);s.length>0?this.stateList=s.map((t=>({code:t,name:a[t]}))):(this.stateList=a,this.selectedState=null)},generatePassword(t){for(var e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",a="",s=0,o=e.length;s{this.serachInput=""}));var t=JSON.parse(localStorage.getItem("orderdata"));"undefined"!=t.customer_id&&0!=t.customer_id&&(this.serachInput=t.billing.first_name+" "+t.billing.last_name)}},d,[],!1,null,null,null).exports;var _=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"hotkey",rawName:"v-hotkey",value:t.hotkeys,expression:"hotkeys"}],staticClass:"wepos-fee-keypad-wrap",class:t.className},[e("v-popover",{attrs:{offset:"5","popover-base-class":"fee-keypad tooltip popover",placement:"top",open:t.viewFeeKeypad}},[e("a",{attrs:{href:"#"},on:{click:t.showFeeKeypad}},[t._v(t._s(t.__("Add","wepos"))+" "+t._s(t.name))]),t._v(" "),e("template",{slot:"popover"},[e("form",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.displayValue,expression:"displayValue"}],ref:"feeinput",attrs:{type:"text"},domProps:{value:t.displayValue},on:{input:function(e){e.target.composing||(t.displayValue=e.target.value)}}})]),t._v(" "),e("keyboard",{attrs:{layouts:t.layout()},on:{percent:t.percentFee,flat:t.flatFee},model:{value:t.displayValue,callback:function(e){t.displayValue=e},expression:"displayValue"}})],1)],2)],1)};_._withStripped=!0;var m=function(){var t=this,e=t._self._c;return e("aside",{staticClass:"vue-keyboard",class:{full:t.full,empty:t.empty,valid:t.valid,invalid:!t.valid},attrs:{role:"application","data-value":t.value,"data-layout":t.layout}},t._l(t.buttons,(function(a){return e("div",{staticClass:"vue-keyboard-row",attrs:{role:"row","data-keys":a.length}},t._l(a,(function(a){return e("button",{staticClass:"vue-keyboard-key",class:a.type,attrs:{role:"button","data-args":a.args,"data-text":a.value,"data-action":a.action.name},domProps:{innerHTML:t._s(a.value)},on:{click:function(t){return t.preventDefault(),a.action.callable.apply(null,arguments)}}})})),0)})),0)};m._withStripped=!0;const h="7440011c983cf39ae730b1f831e2922ac5a76910",v="f630c4abcae620278f82e142a526ef325c2a773a",f="ad982c66898e02a5dab419ea7568421b03f68ee2";var y=e({name:"keyboard",props:{value:{type:String,default:""},layouts:{type:[String,Array],required:!0},maxlength:{type:Number,default:0,validator:t=>t>=0},pattern:{type:String,default:null}},data:()=>({layout:0}),computed:{full(){return this.maxlength>0&&this.value.length>=this.maxlength},empty(){return 0===this.value.length},lines(){return(Array.isArray(this.layouts)?this.layouts:[this.layouts])[this.layout].replace("||",h).replace("{{",v).replace("}}",f).split("|")},buttons(){return this.lines.map((t=>{let e=t.match(new RegExp(`(${v}|${f}|${h}|.)`,"g")),a=[],s=null;return e.forEach((t=>{if("{"===t)s="";else if("}"===t){let t=s.split(":"),e=t.length>1?t[0]:"",o=t.length>1?t[1]:t[0],r=t.length>2?t[2]:null,i=null;i=["append","backspace","space","clear","goto"].indexOf(o)>=0?this[o].bind(this,r):this.$emit.bind(this,o,this),a.push({type:"action",action:{name:o.replace(/\s+/g,"-").toLowerCase(),callable:i},value:e,args:r}),s=null}else null!==s?s+=t:(t===h&&(t="|"),t===v&&(t="{"),t===f&&(t="}"),a.push({type:"char",action:{name:null,callable:this.append.bind(this,t)},value:t,args:null}))})),a}))},valid(){return!this.pattern||this.value.match(new RegExp(this.pattern))}},methods:{mutate(t){this.maxlength>0&&(t=t.slice(0,this.maxlength)),this.$emit("input",t)},append(t){this.mutate(this.value+t)},backspace(){this.mutate(this.value.slice(0,this.value.length-1))},space(){this.append(" ")},goto(t){if(!Array.isArray(this.layouts))throw new Error("A single non-array layout was provided.");if(!(t>=0&&t({input:"",displayValue:"",viewFeeKeypad:!1}),watch:{displayValue(t,e){this.inputChange()}},methods:{hideFeeKepad(t){this.viewFeeKeypad=!1},layout(){return'123|456|789|{:backspace}0'+wepos.currency_format_decimal_sep+"|{% "+this.name+":percent}{"+wepos.currency_format_symbol+" "+this.name+":flat}"},percentFee(){this.$emit("inputfee",this.input,"percent"),this.viewFeeKeypad=!1,this.input="",this.displayValue=""},flatFee(){this.$emit("inputfee",this.input,"flat"),this.viewFeeKeypad=!1,this.input="",this.displayValue=""},inputChange(){this.isValidAmount(this.displayValue)?this.input=this.getFormattedValue(this.displayValue,wepos.currency_format_decimal_sep,"."):this.displayValue=this.getFormattedValue(this.input,".",wepos.currency_format_decimal_sep),jQuery(this.$refs.feeinput).focus()},getFormattedValue(t,e,a){let s=t;return"."!==wepos.currency_format_decimal_sep&&(s=t.replace(e,a)),s},isValidAmount(t){const e=wepos.currency_format_decimal_sep,a=new RegExp("^[0-9]*["+e+"]{0,1}[0-9]*$","gi");return t.match(a)},showFeeKeypad(t){t.preventDefault(),this.viewFeeKeypad=!0,setTimeout((()=>{jQuery(this.$refs.feeinput).focus()}),500)}}},_,[],!1,null,null,null).exports;var w=a(2377),C=a.n(w),b=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"wepos-print-receipt"}},[e("button",{staticClass:"print-btn",on:{click:function(e){return e.preventDefault(),t.printReceipt()}}},[e("span",{staticClass:"icon flaticon-printer"}),t._v(" "),e("span",{staticClass:"label"},[t._v(t._s(t.__("Print Receipt","wepos")))])])])};b._withStripped=!0;const k=e({name:"ReceiptPrint",methods:{printReceipt(){setTimeout((()=>{window.print()}),500)},handlePrintingPopup(t){let e=this;"Enter"===t.code&&e.$store.getters["Order/getCanProcessPayment"]&&e.printReceipt()},handlePrintReceiptSubmit(){document.addEventListener("keypress",this.handlePrintingPopup)}},mounted(){this.handlePrintReceiptSubmit()},destroyed(){document.removeEventListener("keypress",this.handlePrintingPopup)}},b,[],!1,null,null,null).exports;var P=function(){var t=this,e=t._self._c;return t.settings.wepos_receipts?e("div",{staticClass:"wepos-checkout-print-wrapper"},[e("div",{staticClass:"header",domProps:{innerHTML:t._s(t.settings.wepos_receipts.receipt_header)}}),t._v(" "),e("div",{staticClass:"order-info"},[e("span",{staticClass:"wepos-left"},[e("strong",[t._v(t._s(t.__("Order ID","wepos"))+": #"+t._s(t.printdata.order_id))])]),t._v(" "),e("span",{staticClass:"wepos-right"},[e("strong",[t._v(t._s(t.__("Order Date","wepos"))+": "+t._s(t.formatDate(t.printdata.order_date)))])]),t._v(" "),e("div",{staticClass:"wepos-clearfix"})]),t._v(" "),e("div",{staticClass:"content"},[e("table",{staticClass:"sale-summary"},[e("tbody",[t._l(t.printdata.line_items,(function(a){return e("tr",[e("td",{staticClass:"name"},[t._v("\n "+t._s(a.name)+"\n "),a.attribute.length>0?e("div",{staticClass:"attribute"},[e("ul",t._l(a.attribute,(function(a){return e("li",[e("span",{staticClass:"attr_name"},[t._v(t._s(a.name))]),t._v(": "),e("span",{staticClass:"attr_value"},[t._v(t._s(a.option))])])})),0)]):t._e()]),t._v(" "),e("td",{staticClass:"quantity"},[t._v(t._s(a.quantity))]),t._v(" "),e("td",{staticClass:"price"},[a.on_sale?[e("span",{staticClass:"regular-price"},[t._v(t._s(t.formatPrice(a.quantity*a.regular_price)))]),t._v(" "),e("span",{staticClass:"sale-price"},[t._v(t._s(t.formatPrice(a.quantity*a.sale_price)))])]:[e("span",{staticClass:"sale-price"},[t._v(t._s(t.formatPrice(a.quantity*a.regular_price)))])]],2)])})),t._v(" "),e("tr",{staticClass:"cart-meta-data"},[e("td",{staticClass:"name",attrs:{colspan:"2"}},[t._v("\n "+t._s(t.__("Subtotal","wepos"))+"\n "),"incl"==t.settings.woo_tax.wc_tax_display_cart?e("span",{staticClass:"metadata"},[t._v("\n "+t._s(t.__("Includes Tax","wepos"))+" "+t._s(t.formatPrice(t.$store.getters["Cart/getTotalLineTax"]))+"\n ")]):t._e()]),t._v(" "),e("td",{staticClass:"price"},[t._v(t._s(t.formatPrice(t.printdata.subtotal)))])]),t._v(" "),t._l(t.printdata.fee_lines,(function(a,s){return e("tr",{staticClass:"cart-meta-data"},["discount"==a.type?[e("td",{staticClass:"name",attrs:{colspan:"2"}},[t._v(t._s(t.__("Discount","wepos"))+" "),e("span",{staticClass:"metadata"},[t._v(t._s("percent"==a.discount_type?a.value+"%":t.formatPrice(a.value)))])]),t._v(" "),e("td",{staticClass:"price"},[t._v("-"+t._s(t.formatPrice(Math.abs(a.total))))])]:[e("td",{staticClass:"name",attrs:{colspan:"2"}},[t._v(t._s(t.__("Fee","wepos"))+" "),e("span",{staticClass:"metadata"},[t._v(t._s(a.name)+" "+t._s("percent"==a.fee_type?a.value+"%":t.formatPrice(a.value)))])]),t._v(" "),e("td",{staticClass:"price"},[t._v("-"+t._s(t.formatPrice(Math.abs(a.total))))])]],2)})),t._v(" "),t.printdata.taxtotal?e("tr",[e("td",{staticClass:"name",attrs:{colspan:"2"}},[t._v(t._s(t.__("Tax","wepos")))]),t._v(" "),e("td",{staticClass:"price"},[t._v(t._s(t.formatPrice(t.printdata.taxtotal)))])]):t._e(),t._v(" "),e("tr",[e("td",{staticClass:"name",attrs:{colspan:"2"}},[t._v(t._s(t.__("Order Total","wepos")))]),t._v(" "),e("td",{staticClass:"price"},[t._v(t._s(t.formatPrice(t.printdata.ordertotal)))])]),t._v(" "),t._m(0),t._v(" "),e("tr",[e("td",{attrs:{colspan:"2"}},[t._v(t._s(t.__("Payment method","wepos")))]),t._v(" "),e("td",{staticClass:"price"},[t._v(t._s(t.printdata.gateway.title||""))])]),t._v(" "),(t.printdata.gateway.id="wepos_cash")?[e("tr",[e("td",{attrs:{colspan:"2"}},[t._v(t._s(t.__("Cash Given","wepos")))]),t._v(" "),e("td",{staticClass:"price"},[t._v(t._s(t.formatPrice(t.printdata.cashamount)))])]),t._v(" "),e("tr",[e("td",{attrs:{colspan:"2"}},[t._v(t._s(t.__("Change Money","wepos")))]),t._v(" "),e("td",{staticClass:"price"},[t._v(t._s(t.formatPrice(t.printdata.changeamount)))])])]:t._e()],2)])]),t._v(" "),e("div",{staticClass:"footer",domProps:{innerHTML:t._s(t.settings.wepos_receipts.receipt_footer)}})]):t._e()};P._withStripped=!0;const x=e({name:"ReceiptPrintHtml",props:{printdata:{type:Object,default:()=>({})},settings:{type:Object,default:()=>({})}},methods:{formatDate:t=>(t=new Date(t)).toLocaleString()}},P,[function(){var t=this._self._c;return t("tr",{staticClass:"divider"},[t("td",{attrs:{colspan:"3"}})])}],!1,null,null,null).exports;var S=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"hotkey",rawName:"v-hotkey",value:t.hotkeys,expression:"hotkeys"}],staticClass:"wepos-custom-note-wrap"},[e("v-popover",{attrs:{offset:"5","popover-base-class":"customer-note tooltip popover",placement:"top",open:t.viewNotePopover}},[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.openNote.apply(null,arguments)}}},[t._v(t._s(t.__("Add Note","wepos")))]),t._v(" "),e("template",{slot:"popover"},[e("form",{on:{submit:function(e){return e.preventDefault(),t.addCustomerNote.apply(null,arguments)}}},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.customerNote,expression:"customerNote"}],ref:"customernote",attrs:{id:"",cols:"30",rows:"5"},domProps:{value:t.customerNote},on:{input:function(e){e.target.composing||(t.customerNote=e.target.value)}}}),t._v(" "),e("button",{staticClass:"add-note-btn",attrs:{type:"submit",disabled:""==t.customerNote}},[t._v(t._s(t.__("Add Note","wepos")))])])])],2)],1)};S._withStripped=!0;const D=e({data:()=>({viewNotePopover:!1,customerNote:""}),computed:{hotkeys(){return{f6:this.openNote,esc:this.closeNote}}},methods:{openNote(t){t.preventDefault(),this.viewNotePopover=!0,setTimeout((()=>{jQuery(this.$refs.customernote).focus()}),500)},closeNote(){this.viewNotePopover=!1},addCustomerNote(){this.$emit("addnote",this.customerNote),this.viewNotePopover=!1,this.customerNote=""}}},S,[],!1,null,null,null).exports;const $=e({name:"Home",components:{ProductSearch:u,CustomerSearch:p,Overlay:i,Modal:wepos_get_lib("Modal"),MugenScroll:C(),FeeKeypad:g,PrintReceipt:k,PrintReceiptHtml:x,CustomerNote:D},data:()=>({showHelp:!1,showQucikMenu:!1,productView:"grid",productLoading:!1,viewVariationPopover:!1,showModal:!1,showPaymentReceipt:!1,products:[],filteredProducts:[],totalPages:1,page:1,showOverlay:!1,selectedVariationProduct:{},attributeDisabled:!0,selectedAttribute:{},availableGateways:[],emptyGatewayDiv:0,cashAmount:"",availableTax:[],settings:{},taxSettings:{},printdata:wepos.hooks.applyFilters("wepos_initial_print_data",{gateway:{id:"",title:""}}),feeData:{},createprintreceipt:!1,selectedCategory:"",selectedGateway:"",categories:[],showReceiptHtml:wepos.hooks.applyFilters("wepos_render_receipt_html",!0),quickLinkList:wepos.hooks.applyFilters("wepos_quick_links",[]),quickLinkListStart:wepos.hooks.applyFilters("wepos_quick_links_start",[]),availableGatewayContent:wepos.hooks.applyFilters("wepos_avaialable_gateway_content",[]),afterMainContents:wepos.hooks.applyFilters("wepos_after_main_content",[]),beforCartPanels:wepos.hooks.applyFilters("wepos_before_cart_panel",[])}),computed:{cartdata(){return this.$store.state.Cart.cartdata},orderdata(){return this.$store.state.Order.orderdata},hotkeys(){return{f3:this.toggleProductView,f9:this.initPayment,f10:this.processPayment,f8:this.createNewSale,"shift+f8":this.emptyCart,esc:this.backToSale,"meta+/":this.openHelp,"ctrl+/":this.openHelp}},getFilteredProduct(){return void 0!==this.$route.query.category?this.products.filter((t=>{var e=weLo_.find(t.categories,{id:parseInt(this.$route.query.category)});return null!=e&&Object.keys(e).length>0})):this.products},changeAmount(){var t=this.unFormat(this.cashAmount)-this.$store.getters["Cart/getTotal"];return t>0?t:0},getBreadCrums(){if(void 0!==this.$route.query.category){var t=jQuery.extend(!0,[],this.categories),e=weLo_.find(this.categories,{id:parseInt(this.$route.query.category)}),a=weLo_.findIndex(this.categories,e),s=t.splice(0,a+1),o=[];if(s.length>0){for(var r=s.length-1;r>=0;r--)if(o.length>0){var i=weLo_.find(s,{id:s[r+1].parent_id});if(null!=i&&(o.push(i),null==i.parent_id))break}else o.push(s[r]);return o.slice().reverse()}}return[]}},watch:{selectedAttribute(t,e){Object.keys(t).length==this.selectedVariationProduct.attributes.length&&(this.attributeDisabled=!1)},"$route.query.order_key"(){""!=this.$route.query.order_key&&"success"==this.$route.query.payment&&(this.showModal=!1,this.showPaymentReceipt=!0)},"$route.query.category"(){this.selectedCategory={id:-1,level:0,name:this.__("All categories","wepos"),parent_id:null},void 0!==this.$route.query.category&&(this.selectedCategory=weLo_.find(this.categories,{id:parseInt(this.$route.query.category)}))},selectedGateway(t,e){var a=weLo_.find(this.availableGateways,{id:t});this.$store.dispatch("Order/setGatewayAction",a)},cashAmount(t,e){this.ableToProcess()}},methods:{openQucikMenu(){this.showQucikMenu=!0},openHelp(t){t.preventDefault(),this.showHelp=!0,this.showQucikMenu=!1},closeHelp(){this.showHelp=!1},addCustomerNote(t){this.$store.dispatch("Order/setCustomerNoteAction",t)},removeCustomerNote(){this.$store.dispatch("Order/removeCustomerNoteAction")},removeBreadcrums(){this.$router.push({name:"Home"})},logout(){wepos.hooks.doAction("wepos_before_logout"),window.location.href=wepos.logout_url.toString()},emptyCart(){this.$store.dispatch("Cart/emptyCartAction"),this.$store.dispatch("Order/emptyOrderdataAction"),this.printdata=wepos.hooks.applyFilters("wepos_initial_print_data",{gateway:{id:"",title:""}}),this.showPaymentReceipt=!1,this.cashAmount="",this.eventBus.$emit("emptycart",this.orderdata),this.showQucikMenu=!1},toggleProductView(t){t.preventDefault(),this.productView="grid"==this.productView?"list":"grid"},createNewSale(){this.$router.push({name:"Home"}),this.emptyCart()},ableToProcess(){let t=this.cartdata.line_items.length>0&&this.isSelectGateway();"wepos_cash"===this.selectedGateway&&(t=this.unFormat(this.cashAmount)>=this.truncateNumber(this.$store.getters["Cart/getTotal"])&&t),console.log(t),this.$store.dispatch("Order/setCanProcessPaymentAction",t)},processPayment(t){if(this.$store.getters["Order/getCanProcessPayment"]){weLo_.find(this.availableGateways,{id:this.orderdata.payment_method});var e=wepos.hooks.applyFilters("wepos_order_form_data",{billing:this.orderdata.billing,shipping:this.orderdata.shipping,line_items:this.cartdata.line_items,fee_lines:this.cartdata.fee_lines,customer_id:this.orderdata.customer_id,customer_note:this.orderdata.customer_note,payment_method:this.orderdata.payment_method,payment_method_title:this.orderdata.payment_method_title,meta_data:[{key:"_wepos_is_pos_order",value:!0},{key:"_wepos_cash_tendered_amount",value:this.cashAmount.toString()},{key:"_wepos_cash_change_amount",value:this.changeAmount.toString()}]},this.orderdata,this.cartdata),a=jQuery(".wepos-checkout-wrapper");a.block({message:null,overlayCSS:{background:"#fff url("+wepos.ajax_loader+") no-repeat center",opacity:.4}}),wepos.api.post(wepos.rest.root+wepos.rest.wcversion+"/orders",e).done((t=>{wepos.api.post(wepos.rest.root+wepos.rest.posversion+"/payment/process",t).done((s=>{"success"==s.result?(this.$router.push({name:"Home",query:{order_key:t.order_key,payment:"success"}}),this.printdata=wepos.hooks.applyFilters("wepos_after_payment_print_data",{line_items:this.cartdata.line_items,fee_lines:this.cartdata.fee_lines,subtotal:this.$store.getters["Cart/getSubtotal"],taxtotal:this.$store.getters["Cart/getTotalTax"],ordertotal:this.$store.getters["Cart/getTotal"],gateway:{id:t.payment_method,title:t.payment_method_title},order_id:t.id,order_date:t.date_created,cashamount:this.cashAmount.toString(),changeamount:this.changeAmount.toString()},e),a.unblock()):a.unblock()})).fail((t=>{a.unblock(),alert(t.responseJSON.message)}))})).fail((t=>{a.unblock(),alert(t.responseJSON.message)}))}},initPayment(){this.$store.state.Cart.cartdata.line_items.length<=0||(this.showModal=!0,this.$store.dispatch("Order/setGatewayAction",this.availableGateways[0]),this.selectedGateway=this.availableGateways[0].id)},backToSale(){this.showModal=!1,this.showHelp=!1},isSelectGateway(){return!(null==this.orderdata.payment_method||""==this.orderdata.payment_method)},getProductImage:t=>t.images.length>0?t.images[0].woocommerce_thumbnail:wepos.placeholder_image,getProductImageName:t=>t.images.length>0?t.images[0].name:t.name,setDiscount(t,e){this.$store.dispatch("Cart/addDiscountAction",{title:this.__("Discount","wepos"),value:t,type:e})},saveFee(t){this.$store.dispatch("Cart/saveFeeValueAction",{key:t,feeData:this.feeData}),this.feeData={}},cancelEditFee(t){this.$store.dispatch("Cart/cancelSaveFeeValueAction",t),this.feeData={}},editFeeData(t){this.$store.dispatch("Cart/editFeeValueAction",t),this.feeData=Object.assign({},this.cartdata.fee_lines[t]),this.$nextTick((()=>{jQuery(this.$refs.fee_name).focus()}))},setFee(t,e){this.$store.dispatch("Cart/addFeeAction",{title:this.__("Fee","wepos"),value:t,type:e})},removeFeeLine(t){this.$store.dispatch("Cart/removeFeeLineItemsAction",t)},getDiscountAmount(t){return"percent"===t.discount_type||"percent"===t.fee_type?this.formatNumber(t.value)+"%":this.formatPrice(t.total)},fetchProducts(){1==this.page&&(this.productLoading=!0),this.totalPages>=this.page?wepos.api.get(wepos.rest.root+wepos.rest.posversion+"/products?status=publish&per_page=30&page="+this.page).done(((t,e,a)=>{this.appendProducts(t),this.page+=1,this.totalPages=parseInt(a.getResponseHeader("X-WP-TotalPages")),this.productLoading=!1})).then(((t,e,a)=>{this.fetchProducts()})):this.productLoading=!1},appendProducts(t){t.forEach((t=>{"variable"===t.type&&this.isAllVariationsDisabled(t)||(this.products=this.products.concat(t))}))},isAllVariationsDisabled(t){let e=!0;return t.attributes.forEach((t=>{!0===t.variation&&(e=!1)})),e},maybeRemoveDeletedProduct:t=>new Promise(((e,a)=>{if(!t)return e(t);if(!t.line_items||t.line_items.length<1)return e(t);let s=t.line_items.map((t=>t.product_id));wepos.api.get(wepos.rest.root+wepos.rest.posversion+"/products?include="+s.toString()).then((a=>{let s=a.map((t=>t.id));return t.line_items.forEach(((e,a)=>{s.includes(e.product_id)||(t.line_items.splice(a,1),localStorage.setItem("cartdata",JSON.stringify(t)))})),e(t)})).fail((()=>a(t)))})),selectCustomer(t){this.$store.dispatch("Order/setCustomerAction",t)},selectVariationProduct(t){this.viewVariationPopover=!0,this.selectedVariationProduct=t},addVariationProduct(){let t=this.findMatchingVariations(this.selectedVariationProduct.variations,this.selectedAttribute)[0];this.hasStock(t)||this.toast({title:this.__("This product is out of stock.","wepos"),type:"error"}),t.parent_id=this.selectedVariationProduct.id,t.type=this.selectedVariationProduct.type,t.name=this.selectedVariationProduct.name,t.type=this.selectedVariationProduct.type,this.selectedAttribute={},this.attributeDisabled=!0,this.$store.dispatch("Cart/addToCartAction",t)},addToCart(t){this.hasStock(t)?this.$store.dispatch("Cart/addToCartAction",t):this.toast({title:this.__("Product is out of stock!","wepos-pro"),type:"error"})},toggleEditQuantity(t,e){this.$store.dispatch("Cart/toggleEditQuantityAction",e)},removeItem(t){this.$store.dispatch("Cart/removeCartItemAction",t)},addQuantity(t,e){this.$store.dispatch("Cart/addItemQuantityAction",e)},removeQuantity(t,e){this.$store.dispatch("Cart/removeItemQuantityAction",e)},fetchGateway(){wepos.api.get(wepos.rest.root+wepos.rest.posversion+"/payment/gateways").done((t=>{this.availableGateways=t,this.emptyGatewayDiv=4-this.availableGateways.length%4}))},truncateTitle:(t,e)=>weLo_.truncate(t,{length:e}),unSanitizeString:t=>t.split("-").map((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})).join(" "),fetchSettings(){wepos.api.get(wepos.rest.root+wepos.rest.posversion+"/settings").done((t=>{this.settings=t,this.$store.dispatch("Cart/setSettingsAction",t)}))},fetchTaxes(){wepos.api.get(wepos.rest.root+wepos.rest.posversion+"/taxes").done((t=>{this.availableTax=t,this.$store.dispatch("Cart/setAvailableTaxAction",t)}))},handleCategorySelect(t,e){"-1"==t.id?this.$router.push({name:"Home"}):this.$router.push({name:"Home",query:{category:t.id}})},handleCategoryRemove(t,e){this.$router.push({name:"Home"}),this.selectedCategory={id:-1,level:0,name:this.__("All categories","wepos"),parent_id:null}},fetchCategories(){wepos.api.get(wepos.rest.root+wepos.rest.wcversion+"/products/categories?hide_empty=true&_fields=id,name,parent_id&per_page=100").then((t=>{t.sort((function(t,e){return t.name.localeCompare(e.name)}));var e=function(t,e){var a=[],s={};return t.forEach((function(t){s[t.id]={response:t,children:s[t.id]&&s[t.id].children},null===t.parent_id?a.push(s[t.id]):(s[t.parent_id]=s[t.parent_id]||{},s[t.parent_id].children=s[t.parent_id].children||[],s[t.parent_id].children.push(s[t.id]))})),a}(t),a={id:-1,level:0,name:this.__("All categories","wepos"),parent_id:null},s=e.reduce(function t(e){return function(a,s){return s.response.level=e,a.concat(s.response,(s.children||[]).reduce(t(e+1),[]))}}(0),[]);this.categories=s,this.categories.unshift(a),this.selectedCategory=a,void 0!==this.$route.query.category&&(this.selectedCategory=weLo_.find(t,{id:parseInt(this.$route.query.category)}))}))},filterProducts(){this.products=this.products.filter((t=>weLo_.findIndex(t.categories,{id:this.$route.query.category})>0))},fetchTaxSettings(){wepos.api.get(wepos.rest.root+wepos.rest.wcversion+"/settings/tax").done((t=>{this.taxSettings=t}))},focusCashInput(){document.querySelector("#input-cash-amount").focus()}},async created(){if(this.fetchSettings(),this.fetchTaxes(),this.fetchProducts(),this.fetchGateway(),this.fetchCategories(),"undefined"!=typeof localStorage)try{var t=JSON.parse(localStorage.getItem("cartdata")),e=JSON.parse(localStorage.getItem("orderdata"));t=await this.maybeRemoveDeletedProduct(t),this.$store.dispatch("Cart/setCartDataAction",t),this.$store.dispatch("Order/setOrderDataAction",e)}catch(t){e=JSON.parse(localStorage.getItem("orderdata"));this.$store.dispatch("Cart/setCartDataAction",t),this.$store.dispatch("Order/setOrderDataAction",e)}window.addEventListener("beforeunload",(()=>{"undefined"!=typeof localStorage&&(localStorage.setItem("cartdata",JSON.stringify(this.$store.state.Cart.cartdata)),localStorage.setItem("orderdata",JSON.stringify(this.$store.state.Order.orderdata)))}),!1)}},o,[function(){var t=this._self._c;return t("td",{staticClass:"icon"},[t("span",{staticClass:"flaticon-right-arrow"})])}],!1,null,null,null).exports;let A=wepos_get_lib("Vue"),N=wepos_get_lib("Router");A.use(N);const F=new N({routes:wepos.hooks.applyFilters("wepos_frontend_routes",[{path:"/",name:"Home",component:$}])}),O={hasStock(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.manage_stock?!!t.backorders_allowed||t.stock_quantity>e:"outofstock"!=t.stock_status}},T={namespaced:!0,state:{settings:{},availableTax:{},cartdata:{line_items:[],fee_lines:[]}},getters:{getSubtotal(t){var e=0;return weLo_.forEach(t.cartdata.line_items,(function(t,a){t.on_sale?e+=t.quantity*t.sale_price:e+=t.quantity*t.regular_price})),e},getTotalFee(t){var e=0;return weLo_.forEach(t.cartdata.fee_lines,(function(t,a){"fee"==t.type&&(e+=Math.abs(t.total))})),e},getTotalDiscount(t){var e=0;return weLo_.forEach(t.cartdata.fee_lines,(function(t,a){"discount"==t.type&&(e+=Number(Math.abs(t.total)))})),e},getTotalLineTax(t){var e=0;return weLo_.forEach(t.cartdata.line_items,(function(t,a){e+=Math.abs(t.tax_amount*t.quantity)})),e},getTotalTax(t){let e=0,a=0;return weLo_.forEach(t.cartdata.line_items,(function(t,a){e+=Math.abs(t.tax_amount*t.quantity)})),null!=t.settings.woo_tax&&"incl"==t.settings.woo_tax.wc_tax_display_cart&&(e=0),weLo_.forEach(t.cartdata.fee_lines,(function(s,o){if("taxable"!==s.tax_status)return;let r=""===s.tax_class?"standard":s.tax_class,i=weLo_.find(t.availableTax,{class:r.toString()});i&&("discount"===s.type&&(e+=s.total/i.rate),"fee"===s.type&&(a+=Math.abs(s.total)*Math.abs(i.rate)/100))})),e+a},getOrderTotal:(t,e)=>e.getSubtotal+e.getTotalFee+e.getTotalTax,getTotal:(t,e)=>e.getOrderTotal-e.getTotalDiscount,getSettings:(t,e)=>t.settings},mutations:{setSettings(t,e){t.settings=e},setAvailableTax(t,e){t.availableTax=e},setCartData(t,e){weLo_.isEmpty(e)?t.cartdata={line_items:[],fee_lines:[]}:t.cartdata=Object.assign({},e)},addToCartItem(t,e){var a={};a.product_id=0===e.parent_id?e.id:e.parent_id,a.name=e.name,a.quantity=1,a.regular_price=e.regular_display_price,a.sale_price=e.sales_display_price,a.on_sale=e.on_sale,a.attribute=e.attributes,a.variation_id=0!==e.parent_id?e.id:0,a.editQuantity=!1,a.type=e.type,a.tax_amount=e.tax_amount,a.manage_stock=e.manage_stock,a.stock_status=e.stock_status,a.backorders_allowed=e.backorders_allowed,a.stock_quantity=e.stock_quantity;var s=weLo_.findIndex(t.cartdata.line_items,{product_id:a.product_id,variation_id:a.variation_id});s<0?O.hasStock(e)&&t.cartdata.line_items.push(a):O.hasStock(e,t.cartdata.line_items[s].quantity)&&(t.cartdata.line_items[s].quantity+=1)},removeCartItem(t,e){t.cartdata.line_items.splice(e,1)},addCartItemQuantity(t,e){var a=t.cartdata.line_items[e];O.hasStock(a,a.quantity)&&t.cartdata.line_items[e].quantity++},removeCartItemQuantity(t,e){t.cartdata.line_items[e].quantity<=1?t.cartdata.line_items[e].quantity=1:t.cartdata.line_items[e].quantity--},toggleEditQuantity(t,e){t.cartdata.line_items[e].editQuantity=!t.cartdata.line_items[e].editQuantity},addDiscount(t,e){t.cartdata.fee_lines.push({name:e.title,type:"discount",value:e.value.toString(),isEdit:!1,discount_type:e.type,tax_status:"taxable",tax_class:"",total:0})},addFee(t,e){t.cartdata.fee_lines.push({name:e.title,type:"fee",value:e.value.toString(),isEdit:!1,fee_type:e.type,tax_status:"taxable",tax_class:"",total:0})},saveFeeValue(t,e){t.cartdata.fee_lines.splice(e.key,1,e.feeData),t.cartdata.fee_lines[e.key].isEdit=!1},editFeeValue(t,e){t.cartdata.fee_lines[e].isEdit=!0},cancelSaveFeeValue(t,e){t.cartdata.fee_lines[e].isEdit=!1},removeFeeLineItems(t,e){t.cartdata.fee_lines.splice(e,1)},emptyCart(t){t.cartdata={line_items:[],fee_lines:[]}},calculateDiscount(t,e){t.cartdata.fee_lines.length>0&&weLo_.forEach(t.cartdata.fee_lines,((a,s)=>{"discount"==a.type&&("percent"==a.discount_type?t.cartdata.fee_lines[s].total="-"+e.getSubtotal*Math.abs(a.value)/100:t.cartdata.fee_lines[s].total="-"+Math.abs(a.value))}))},calculateFee(t,e){t.cartdata.fee_lines.length>0&&weLo_.forEach(t.cartdata.fee_lines,((a,s)=>{"fee"==a.type&&("percent"==a.fee_type?t.cartdata.fee_lines[s].total=(e.getSubtotal*Math.abs(a.value)/100).toString():t.cartdata.fee_lines[s].total=Math.abs(a.value).toString())}))}},actions:{setSettingsAction(t,e){t.commit("setSettings",e)},setAvailableTaxAction(t,e){t.commit("setAvailableTax",e)},setCartDataAction(t,e){t.commit("setCartData",e),t.commit("calculateDiscount",t.getters),t.commit("calculateFee",t.getters)},addToCartAction(t,e){t.commit("addToCartItem",e),t.commit("calculateDiscount",t.getters),t.commit("calculateFee",t.getters)},removeCartItemAction(t,e){t.commit("removeCartItem",e),t.commit("calculateDiscount",t.getters),t.commit("calculateFee",t.getters)},addItemQuantityAction(t,e){t.commit("addCartItemQuantity",e),t.commit("calculateDiscount",t.getters),t.commit("calculateFee",t.getters)},removeItemQuantityAction(t,e){t.commit("removeCartItemQuantity",e),t.commit("calculateDiscount",t.getters),t.commit("calculateFee",t.getters)},toggleEditQuantityAction(t,e){t.commit("toggleEditQuantity",e)},addDiscountAction(t,e){t.commit("addDiscount",e),t.commit("calculateDiscount",t.getters),t.commit("calculateFee",t.getters)},addFeeAction(t,e){t.commit("addFee",e),t.commit("calculateDiscount",t.getters),t.commit("calculateFee",t.getters)},removeFeeLineItemsAction(t,e){t.commit("removeFeeLineItems",e),t.commit("calculateDiscount",t.getters),t.commit("calculateFee",t.getters)},saveFeeValueAction(t,e){t.commit("saveFeeValue",e),t.commit("calculateDiscount",t.getters),t.commit("calculateFee",t.getters)},editFeeValueAction(t,e){t.commit("editFeeValue",e)},cancelSaveFeeValueAction(t,e){t.commit("cancelSaveFeeValue",e)},emptyCartAction(t){t.commit("emptyCart")},calculateDiscount(t){t.commit("calculateDiscount",t.getters)},calculateFee(t){t.commit("calculateFee",t.getters)}}},L={namespaced:!0,state:{orderdata:{billing:{},shipping:{},customer_id:0,customer_note:"",payment_method:"",payment_method_title:""},canProcessPayment:!1},getters:{getCanProcessPayment:t=>t.canProcessPayment},mutations:{setOrderData(t,e){weLo_.isEmpty(e)?t.orderdata={billing:{},shipping:{},customer_id:0,customer_note:"",payment_method:"",payment_method_title:""}:t.orderdata=e},setCustomer(t,e){Object.keys(e).length>0?(t.orderdata.billing=e.billing,t.orderdata.shipping=e.shipping,t.orderdata.customer_id=e.id):(t.orderdata.billing={},t.orderdata.shipping={},t.orderdata.customer_id=0)},emptyOrderdata(t){t.orderdata={billing:{},shipping:{},customer_id:0,customer_note:"",payment_method:"",payment_method_title:""}},setCustomerNote(t,e){t.orderdata.customer_note=e.trim()},removeCustomerNote(t){t.orderdata.customer_note=""},setGateway(t,e){t.orderdata.payment_method=e.id,t.orderdata.payment_method_title=e.title},setCanProcessPayment(t,e){t.canProcessPayment=e}},actions:{setOrderDataAction(t,e){t.commit("setOrderData",e)},setCustomerAction(t,e){t.commit("setCustomer",e)},emptyOrderdataAction(t){t.commit("emptyOrderdata")},setCustomerNoteAction(t,e){t.commit("setCustomerNote",e)},removeCustomerNoteAction(t){t.commit("removeCustomerNote")},setGatewayAction(t,e){t.commit("setGateway",e)},setCanProcessPaymentAction(t,e){t.commit("setCanProcessPayment",e)}}};let I=wepos_get_lib("Vue"),V=wepos_get_lib("Vuex");I.use(V);const M=new V.Store({modules:{Cart:T,Order:L}});let E=wepos_get_lib("Vue");E.config.productionTip=!1,new E({el:"#vue-frontend-app",router:F,store:M,render:t=>t(s),created(){this.setLocaleData(wepos.i18n.wepos),wepos.i18n["wepos-pro"]&&this.setLocaleData(wepos.i18n["wepos-pro"])}})})()})(); \ No newline at end of file diff --git a/assets/src/frontend/components/Home.vue b/assets/src/frontend/components/Home.vue index 39432906..af989d04 100644 --- a/assets/src/frontend/components/Home.vue +++ b/assets/src/frontend/components/Home.vue @@ -1235,6 +1235,17 @@ export default { } } + .clear-button { + color: #BDC0C9; + background-color: transparent; + border: none; + height: 35px; + + &:hover { + color: #E9485E; + } + } + .search-type { position: absolute; top: 0px; diff --git a/assets/src/frontend/components/ProductSearch.vue b/assets/src/frontend/components/ProductSearch.vue index 8e6f0dbe..03f39bca 100644 --- a/assets/src/frontend/components/ProductSearch.vue +++ b/assets/src/frontend/components/ProductSearch.vue @@ -5,6 +5,7 @@ @@ -155,6 +156,11 @@ export default { this.$refs.productSearch.blur(); }, + clearSearch() { + this.searchClose(); + this.serachInput = ''; + }, + onKeyDown() { jQuery('.product-search-item.selected').next().children('a').focus(); },