diff --git a/.gitignore b/.gitignore index 5d8887bb..425a9863 100644 --- a/.gitignore +++ b/.gitignore @@ -29,6 +29,14 @@ config.codekit npm-debug.log testem.log +# Compiled JS & CSS # +##################### +/assets/css/style.css +/assets/css/style.css.map +/assets/js/frontend.min.js +/assets/js/vendor.js +/languages/wepos.pot + # Compiled source # ################### *.com diff --git a/assets/css/admin.css b/assets/css/admin.css old mode 100644 new mode 100755 diff --git a/assets/css/admin.css.map b/assets/css/admin.css.map old mode 100644 new mode 100755 diff --git a/assets/css/bootstrap.css b/assets/css/bootstrap.css old mode 100644 new mode 100755 diff --git a/assets/css/bootstrap.css.map b/assets/css/bootstrap.css.map old mode 100644 new mode 100755 diff --git a/assets/css/flaticon.css b/assets/css/flaticon.css old mode 100644 new mode 100755 diff --git a/assets/css/fonts.css b/assets/css/fonts.css old mode 100644 new mode 100755 diff --git a/assets/css/frontend.css b/assets/css/frontend.css old mode 100644 new mode 100755 diff --git a/assets/css/frontend.css.map b/assets/css/frontend.css.map old mode 100644 new mode 100755 diff --git a/assets/css/style.css b/assets/css/style.css deleted file mode 100644 index 2132ed59..00000000 --- a/assets/css/style.css +++ /dev/null @@ -1,2 +0,0 @@ -body{margin:0;padding:0;background-color:#f0f2f4;font-size:14px;font-family:Lato,"sans-serif"}[v-cloak]{display:none}.wepos-clearfix:after,.wepos-clearfix:before{display:table;content:" "}.wepos-clearfix:after{clear:both}.wepos-right{float:right!important}.wepos-left{float:left!important}.wepos-hide{display:none}.spinner{position:absolute;width:125px;height:125px;top:40%;left:45%}.spinner:after,.spinner:before{content:"";display:block;position:absolute;border-width:5px;border-style:solid;border-radius:50%;opacity:1}.wepos-alert{background:#fafafa;border:1px solid #eee;padding:20px;font-size:15px;border-radius:3px;margin-bottom:1rem}.wepos-alert.wepos-alert-info{color:#004085;background-color:#cce5ff;border-color:#b8daff}.wepos-alert.wepos-alert-success{color:#155724;background-color:#d4edda;border-color:#c3e6cb}.wepos-alert.wepos-alert-danger{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.wepos-alert.wepos-alert-warning{color:#856404;background-color:#fff3cd;border-color:#ffeeba}@keyframes scale-2{0%{transform:scale(0);opacity:0}50%{transform:scale(.7);opacity:1}to{transform:scale(1);opacity:0}}.spinner.spinner-loading:before{width:117px;height:117px;border-color:#3b80f4;top:0;left:0;animation:scale-2 1s linear 0s infinite}.spinner.spinner-loading:after{width:117px;height:117px;border-color:#3b80f4;top:0;left:0;opacity:0;animation:scale-2 1s linear .5s infinite}.lds-ripple{display:inline-block;position:relative;width:64px;height:64px}.lds-ripple div{position:absolute;border:4px solid #fff;opacity:1;border-radius:50%;animation:lds-ripple 1s cubic-bezier(0,.2,.8,1) infinite}.lds-ripple div:nth-child(2){animation-delay:-.5s}@keyframes lds-ripple{0%{top:28px;left:28px;width:0;height:0;opacity:1}to{top:-1px;left:-1px;width:58px;height:58px;opacity:0}}.product-variation{padding:0;border-radius:5px;box-shadow:0 4px 25px 1px rgba(0,0,0,.06);border-radius:3px;margin-top:45px;z-index:99999;margin-left:5px}.product-variation .variation-header{padding:10px 15px;border-bottom:1px solid #e0e3e6;text-align:left;font-size:18px}.product-variation .variation-body{padding:10px 15px 0}.product-variation .variation-body .attribute{margin-bottom:15px}.product-variation .variation-body .attribute p{padding:0;margin:0;text-align:left;font-size:14px;font-weight:700;margin-bottom:5px}.product-variation .variation-body .attribute .options{text-align:left}.product-variation .variation-body .attribute .options label{display:inline-block}.product-variation .variation-body .attribute .options label input[type=radio]{-webkit-appearance:none;display:none}.product-variation .variation-body .attribute .options label input[type=radio]:checked+.box{background:#1abc9c;color:#fff;border:1px solid #1abc9c}.product-variation .variation-body .attribute .options label .box{padding:6px 10px;border:1px solid #e0e5ea;margin-right:5px;margin-bottom:5px;cursor:pointer;font-size:13px;border-radius:3px}.product-variation .variation-footer button{color:#fff;width:100%;display:block;padding:10px 15px;background:#3b80f4;box-sizing:border-box;border-bottom-left-radius:3px;border-bottom-right-radius:3px;border:none;cursor:pointer}.product-variation .variation-footer button:active,.product-variation .variation-footer button:focus{outline:none}.product-variation .variation-footer button:disabled{background:#76a2ed;cursor:no-drop}.list-item{display:inline-block;margin-right:10px}.list-enter-active,.list-leave-active{transition:all 1s}.list-enter,.list-leave-to{opacity:0;transform:translateY(30px)}.wepos-zindex{z-index:9999}.wepos-button{padding:8px 10px;background:#fff;border:1px solid #e9edf0;border-radius:3px;cursor:pointer}.wepos-dropdown-menu ul{list-style:none;margin:0;padding:0;min-width:180px}.wepos-dropdown-menu ul li{display:block}.wepos-dropdown-menu ul li a{display:block;padding:10px 15px;text-decoration:none;color:#212121}.wepos-dropdown-menu ul li a .quick-menu-icon{margin-right:7px}.wepos-dropdown-menu ul li a .quick-menu-icon:before{font-size:15px}.wepos-dropdown-menu ul li.divider{border-bottom:1px solid #e9edf0}.wepos-checkout-wrapper{display:flex}.wepos-checkout-wrapper .left-content{flex:3;background:#fbfcfe;height:95vh;position:relative}.wepos-checkout-wrapper .left-content .header{padding:12px 15px;border-bottom:1px solid #eaedf0;font-size:20px;font-weight:700}.wepos-checkout-wrapper .left-content .content{height:55vh;overflow:auto}.wepos-checkout-wrapper .left-content .content table.sale-summary-cart{width:100%;border-collapse:collapse}.wepos-checkout-wrapper .left-content .content table.sale-summary-cart tbody tr td{font-size:13px;padding:10px 15px}.wepos-checkout-wrapper .left-content .content table.sale-summary-cart tbody tr td.name{width:70%;font-weight:700;font-size:14px}.wepos-checkout-wrapper .left-content .content table.sale-summary-cart tbody tr td.name .attribute{margin-top:2px}.wepos-checkout-wrapper .left-content .content table.sale-summary-cart tbody tr td.name .attribute ul{margin:0;padding:0;list-style:none}.wepos-checkout-wrapper .left-content .content table.sale-summary-cart tbody tr td.name .attribute ul li{display:inline-block;margin-right:5px;font-size:12px;font-weight:400}.wepos-checkout-wrapper .left-content .content table.sale-summary-cart tbody tr td.name .attribute ul li .attr_name{color:#758598}.wepos-checkout-wrapper .left-content .content table.sale-summary-cart tbody tr td.quantity{width:15%;color:#758598}.wepos-checkout-wrapper .left-content .content table.sale-summary-cart tbody tr td.price span{display:block;color:#758598}.wepos-checkout-wrapper .left-content .content table.sale-summary-cart tbody tr td.price span.regular-price{font-size:11px;text-decoration:line-through;color:#9095a5;padding-left:5px}.wepos-checkout-wrapper .left-content .footer{position:absolute;bottom:0;width:100%}.wepos-checkout-wrapper .left-content .footer ul{list-style:none;margin:0;padding:0;width:100%}.wepos-checkout-wrapper .left-content .footer ul li{padding:8px 15px;font-weight:700}.wepos-checkout-wrapper .left-content .footer ul li .metadata{margin-left:6px;color:#758598;font-size:13px;font-weight:400}.wepos-checkout-wrapper .left-content .footer ul li:first-child{border-top:1px solid #eaedf0}.wepos-checkout-wrapper .left-content .footer ul li:last-child{border-top:1px solid #eaedf0;padding:15px;font-size:15px}.wepos-checkout-wrapper .right-content{flex:6;padding:50px;box-sizing:border-box;display:flex;flex-flow:column}.wepos-checkout-wrapper .right-content .header h2{margin:0;padding:0;font-size:26px;display:block;margin-top:8px}.wepos-checkout-wrapper .right-content .header span.pay-amount{display:block;padding:15px 25px;background:rgba(59,128,244,.1);color:#3b80f4;opacity:.8;font-size:18px;border-radius:3px}.wepos-checkout-wrapper .right-content .content{margin:20px -15px;height:350px;flex:1}.wepos-checkout-wrapper .right-content .content .payment-gateway{display:flex;flex-wrap:wrap}.wepos-checkout-wrapper .right-content .content .payment-gateway label{flex:1 0 21%;padding:0 15px 20px}.wepos-checkout-wrapper .right-content .content .payment-gateway label input[type=radio]{display:none}.wepos-checkout-wrapper .right-content .content .payment-gateway label input[type=radio]:checked+span.gateway{border:1px solid rgba(26,188,156,.7)}.wepos-checkout-wrapper .right-content .content .payment-gateway label span.gateway{text-align:center;height:100px;background:rgba(26,188,156,.1);line-height:100px;font-size:20px;cursor:pointer;color:#16a085;box-sizing:border-box;display:block;border:1px solid rgba(26,188,156,.1);border-radius:3px}.wepos-checkout-wrapper .right-content .content .payment-gateway label span.grid-placeholder{background:#fafafa;border:1px solid #f7f7f7;height:100px;line-height:100px;box-sizing:border-box;display:block}.wepos-checkout-wrapper .right-content .content .payment-option{padding:0 15px}.wepos-checkout-wrapper .right-content .content .payment-option .payment-amount{height:250px;border:1px solid #eaedf0;position:relative}.wepos-checkout-wrapper .right-content .content .payment-option .payment-amount .input-part{background:#fbfcfe;height:80%;text-align:center}.wepos-checkout-wrapper .right-content .content .payment-option .payment-amount .input-part .input-wrap{width:65%;margin:0 auto;text-align:left;padding:35px;padding-top:5%}.wepos-checkout-wrapper .right-content .content .payment-option .payment-amount .input-part .input-wrap p{font-size:15px;margin-bottom:10px}.wepos-checkout-wrapper .right-content .content .payment-option .payment-amount .input-part .input-wrap .input-addon{position:relative}.wepos-checkout-wrapper .right-content .content .payment-option .payment-amount .input-part .input-wrap .input-addon span.currency{position:absolute;width:50px;height:50px;text-align:center;line-height:48px;font-size:16px;border-right:1px solid #eaedf0}.wepos-checkout-wrapper .right-content .content .payment-option .payment-amount .input-part .input-wrap .input-addon input{border:1px solid #eaedf0;width:100%;font-size:16px;height:50px;padding:2px 10px 2px 60px;border-radius:3px}.wepos-checkout-wrapper .right-content .content .payment-option .payment-amount .input-part .input-wrap .input-addon input:focus{outline:none}.wepos-checkout-wrapper .right-content .content .payment-option .payment-amount .change-money{background:#fff;border-top:1px solid #eaedf0;text-align:center;color:#9013fe;font-size:15px}.wepos-checkout-wrapper .right-content .footer a{text-decoration:none;padding:15px 25px;font-size:16px;border-radius:3px}.wepos-checkout-wrapper .right-content .footer a.back-btn{border:1px solid #eaedf0;color:#212121}.wepos-checkout-wrapper .right-content .footer button.process-checkout-btn{padding:15px 25px;font-size:16px;border-radius:3px;border:1px solid #3b80f4;color:#fff;background:#3b80f4;cursor:pointer}.wepos-checkout-wrapper .right-content .footer button.process-checkout-btn:disabled{background:#76a2ed;border:1px solid #76a2ed;cursor:no-drop}.wepos-payment-receipt{width:80%;text-align:center;margin:10% auto}.wepos-payment-receipt .sale-completed h2{margin-top:0;padding-top:0;font-size:35px;font-weight:400;color:#1abc9c}.wepos-payment-receipt .print-section{padding-top:15px}.wepos-payment-receipt .print-section button{padding:12px 15px;color:#fff;font-size:15px;border-radius:3px;margin:0 10px;width:150px;cursor:pointer}.wepos-payment-receipt .print-section button.print-btn{background:#9013fe;border:1px solid #9013fe}.wepos-payment-receipt .print-section button.new-sale-btn{background:#f2683e;border:1px solid #f2683e}.wepos-payment-receipt .print-section button span.icon:before{font-size:15px;margin-right:5px}.wepos-form .form-row{display:flex;width:100%;margin-bottom:10px;padding:0 15px;box-sizing:border-box}.wepos-form .form-row input,.wepos-form .form-row select{margin:inherit;border:1px solid #e0e5ea;font-size:14px;padding:8px 10px;width:100%}.wepos-form .form-row input::placeholder,.wepos-form .form-row select::placeholder{color:#999dac;font-size:13px}.wepos-form .form-row input:-ms-input-placeholder,.wepos-form .form-row input::-ms-input-placeholder,.wepos-form .form-row select:-ms-input-placeholder,.wepos-form .form-row select::-ms-input-placeholder{color:#999dac;font-size:13px}.wepos-form .form-row input:focus,.wepos-form .form-row select:focus{outline:none}.wepos-form .form-row .form-group{width:100%;margin:5px 0}.wepos-form .form-row .form-group label{margin-bottom:5px;color:#212121;display:inline-block}.wepos-form .form-row .form-group input,.wepos-form .form-row .form-group select{background:#f9f9f9;border-radius:3px;border:1px solid #f1f1f1;box-shadow:none}.wepos-form .form-row .form-group input::placeholder,.wepos-form .form-row .form-group select::placeholder{color:#cbcbcb;font-size:13px}.wepos-form .form-row .form-group input:-ms-input-placeholder,.wepos-form .form-row .form-group input::-ms-input-placeholder,.wepos-form .form-row .form-group select:-ms-input-placeholder,.wepos-form .form-row .form-group select::-ms-input-placeholder{color:#cbcbcb;font-size:13px}.wepos-form .form-row.sections-heading{margin-bottom:25px;color:#212121}.wepos-form .form-row.sections-heading .section-title{width:100%;padding:10px 0;border-bottom:1px solid #f1f1f1;font-size:15px}.wepos-form .form-row.sections-heading .section-title span.heading-icon:before{font-size:15px;color:#212121;margin-right:5px}.wepos-form .form-row.col-2,.wepos-form .form-row.col-3{display:flex}.wepos-form .form-row.col-2 .form-group,.wepos-form .form-row.col-3 .form-group{flex:1;margin:5px 20px 5px 0}.wepos-form .form-row.col-2 .form-group:last-child,.wepos-form .form-row.col-3 .form-group:last-child{margin:5px 0}.wepos-form .form-row.col-2 .form-group label,.wepos-form .form-row.col-3 .form-group label{margin-bottom:5px;color:#212121;display:inline-block}.wepos-form .form-row.col-2 input,.wepos-form .form-row.col-2 select,.wepos-form .form-row.col-3 input,.wepos-form .form-row.col-3 select{flex:1;margin-right:20px}.wepos-form .form-row.col-2 input:last-child,.wepos-form .form-row.col-2 select:last-child,.wepos-form .form-row.col-3 input:last-child,.wepos-form .form-row.col-3 select:last-child{margin-right:0}button:focus,div:focus,input:focus,span:focus{outline:none!important}.wepos-btn{font-size:13px;text-decoration:none;padding:0 10px;border-radius:3px;border:1px solid #e2e2e2;display:inline-block;height:28px;line-height:28px;cursor:pointer}button.wepos-btn,input.wepos-btn{height:30px}.wepos-btn.wepos-btn-default{background:#fff;color:#788383}.wepos-btn.wepos-btn-default:hover{color:#5d5d5d;background:#fafafa}.wepos-btn.wepos-btn-primary{background:#1a9ed4;color:#fff;border:none}.wepos-btn.wepos-btn-primary:hover{color:#fff;background:#29ace2;border:none}.wepos-btn.wepos-btn-primary:disabled{background:#33a9da;color:#eee;cursor:no-drop}.wepos-btn.wepos-btn-large{font-size:16px;padding:0 35px;height:45px;line-height:45px}.v-popover:focus{outline:none}.v-popover span{width:100%}.tooltip{display:block!important;z-index:10000}.tooltip .tooltip-inner{background:#000;color:#fff;border-radius:16px;max-width:300px}.tooltip .tooltip-arrow{width:0;height:0;border-style:solid;position:absolute;margin:5px;border-color:#000;z-index:1}.tooltip[x-placement^=top]{margin-bottom:5px}.tooltip[x-placement^=top] .tooltip-arrow{border-width:5px 5px 0;border-left-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important;bottom:-5px;left:45%;margin-top:0;margin-bottom:0}.tooltip[x-placement^=bottom]{margin-top:5px}.tooltip[x-placement^=bottom] .tooltip-arrow{border-width:0 5px 5px;border-left-color:transparent!important;border-right-color:transparent!important;border-top-color:transparent!important;top:-5px;left:45%;margin-top:0;margin-bottom:0}.tooltip[x-placement^=right]{margin-left:5px}.tooltip[x-placement^=right] .tooltip-arrow{border-width:5px 5px 5px 0;border-left-color:transparent!important;border-top-color:transparent!important;border-bottom-color:transparent!important;left:-5px;top:45%;margin-left:0;margin-right:0}.tooltip[x-placement^=left]{margin-right:5px}.tooltip[x-placement^=left] .tooltip-arrow{border-width:5px 0 5px 5px;border-top-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important;right:-5px;top:45%;margin-left:0;margin-right:0}.tooltip.popover{color:#f9f9f9}.tooltip.popover .popover-inner{background:#fff;color:#212121;border-radius:5px;box-shadow:0 5px 30px rgba(0,0,0,.1)}.tooltip.popover .popover-arrow{border-color:#f9f9f9}.tooltip[aria-hidden=true]{visibility:hidden;opacity:0;transition:opacity .15s,visibility .15s}.tooltip[aria-hidden=false]{visibility:visible;opacity:1;transition:opacity .15s}.wepos-multiselect{min-height:35px!important;font-size:13px!important}.wepos-multiselect .multiselect__select{width:35px;height:35px;padding:6px 8px}.wepos-multiselect .multiselect__tags{border-radius:3px;min-height:34px;padding:5px 30px 0 8px;border:1px solid #e9edf0;background:#fff;font-size:13px}.wepos-multiselect .multiselect__tags .multiselect__single{font-size:13px}.wepos-multiselect .multiselect__input{width:75%!important;font-size:13px;padding-left:3px!important;line-height:22px!important;margin-bottom:0!important;border:none!important}.wepos-multiselect .multiselect__input::placeholder{color:#999dac;font-size:13px}.wepos-multiselect .multiselect__input:-ms-input-placeholder,.wepos-multiselect .multiselect__input::-ms-input-placeholder{color:#999dac;font-size:13px}.wepos-multiselect.multiselect--active .multiselect__input{width:100%!important;font-size:13px;padding-left:3px!important}.wepos-multiselect .multiselect__content-wrapper{border-bottom-left-radius:3px;border-bottom-right-radius:3px;box-shadow:0 30px 45px -10px rgba(0,0,0,.2);z-index:99999;border-bottom:none}.wepos-multiselect .multiselect__content-wrapper ul li.multiselect__element{border-bottom:1px solid #e9edf0;position:relative}.wepos-multiselect .multiselect__content-wrapper ul li.multiselect__element .multiselect__option{padding:8px 12px;line-height:20px;min-height:35px}.wepos-multiselect .multiselect__content-wrapper ul li.multiselect__element .multiselect__option--highlight,.wepos-multiselect .multiselect__content-wrapper ul li.multiselect__element .multiselect__option--selected{background:#f6f7fb;color:#212121;font-weight:400}.wepos-multiselect .multiselect__content-wrapper ul li.multiselect__element .multiselect__option--highlight:after{font-family:Flaticon;content:"\F10F";position:absolute;top:10px;right:12px;color:#758598;background:none;line-height:20px;padding:0}.wepos-multiselect .multiselect__content-wrapper ul li.multiselect__element .no-data-found{padding:20px;text-align:center;color:#758598}.wepos-modal-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;min-height:360px;background:#000;opacity:.2;z-index:99999}.wepos-modal *{box-sizing:border-box}.wepos-modal .wepos-modal-content{position:fixed;background:#fff;z-index:100000;left:50%;top:50%;transform:translate(-50%,-50%)}.wepos-modal .wepos-modal-main.has-footer{padding-bottom:20px}.wepos-modal header.modal-header{height:auto;background:#fcfcfc;padding:1em 1.5em;border-bottom:1px solid #ddd}.wepos-modal header.modal-header h1{margin:0;padding:0;font-size:18px;font-weight:700;line-height:1.5em}.wepos-modal .modal-close-link{cursor:pointer;position:absolute;top:15px;right:15px}.wepos-modal .modal-close-link:before{font-size:14px;color:#909090}.wepos-modal .modal-body{min-height:100px;overflow-y:scroll}.wepos-modal footer{position:absolute;left:0;right:0;bottom:-30px;z-index:100;padding:10px;background:#fcfcfc;border-top:1px solid #dfdfdf;box-shadow:0 -4px 4px -4px rgba(0,0,0,.1)}.wepos-modal footer .inner{text-align:right;line-height:23px}@media only screen and (max-width:500px){.wepos-modal-content{width:400px!important;top:300px!important}}@media only screen and (max-width:376px){.wepos-modal-content{width:350px!important;top:300px!important}}@media only screen and (max-width:320px){.wepos-modal-content{width:300px!important;top:300px!important}}.switch{position:relative;display:inline-block;width:38px;height:20px}.switch input{display:none}.switch input:checked+.slider{background-color:#3b80f4}.switch input:checked+.slider:before{transform:translateX(17px)}.switch input:focus+.slider{box-shadow:0 0 1px #2196f3}.switch .slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;transition:.4s}.switch .slider:before{position:absolute;content:"";height:14px;width:14px;left:3px;bottom:3px;background-color:#fff;transition:.4s}.switch .slider.round{border-radius:34px}.switch .slider.round:before{border-radius:50%} -/*# sourceMappingURL=style.css.map */ \ No newline at end of file diff --git a/assets/css/style.css.map b/assets/css/style.css.map deleted file mode 100644 index a62a2617..00000000 --- a/assets/css/style.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["style.css"],"names":[],"mappings":"AAAA,KACE,SAAU,AACV,UAAW,AACX,yBAA0B,AAC1B,eAAgB,AAChB,6BAAkC,CACnC,AACD,UACE,YAAc,CACf,AACD,6CAEE,cAAe,AACf,WAAa,CACd,AACD,sBACE,UAAY,CACb,AACD,aACE,qBAAwB,CACzB,AACD,YACE,oBAAuB,CACxB,AACD,YACE,YAAc,CACf,AACD,SACE,kBAAmB,AACnB,YAAa,AACb,aAAc,AACd,QAAS,AACT,QAAU,CACX,AACD,+BAEE,WAAY,AACZ,cAAe,AACf,kBAAmB,AACnB,iBAAkB,AAClB,mBAAoB,AACpB,kBAAmB,AACnB,SAAW,CACZ,AACD,aACE,mBAAoB,AACpB,sBAAuB,AACvB,aAAc,AACd,eAAgB,AAChB,kBAAmB,AACnB,kBAAoB,CACrB,AACD,8BACE,cAAe,AACf,yBAA0B,AAC1B,oBAAsB,CACvB,AACD,iCACE,cAAe,AACf,yBAA0B,AAC1B,oBAAsB,CACvB,AACD,gCACE,cAAe,AACf,yBAA0B,AAC1B,oBAAsB,CACvB,AACD,iCACE,cAAe,AACf,yBAA0B,AAC1B,oBAAsB,CACvB,AACD,mBACE,GACE,mBAAoB,AACpB,SAAW,CACZ,AACD,IACE,oBAAsB,AACtB,SAAW,CACZ,AACD,GACE,mBAAoB,AACpB,SAAW,CACZ,CACF,AACD,gCACE,YAAa,AACb,aAAc,AACd,qBAAsB,AACtB,MAAS,AACT,OAAU,AACV,uCAAyC,CAC1C,AACD,+BACE,YAAa,AACb,aAAc,AACd,qBAAsB,AACtB,MAAO,AACP,OAAQ,AACR,UAAW,AACX,wCAA2C,CAC5C,AACD,YACE,qBAAsB,AACtB,kBAAmB,AACnB,WAAY,AACZ,WAAa,CACd,AACD,gBACE,kBAAmB,AACnB,sBAAuB,AACvB,UAAW,AACX,kBAAmB,AACnB,wDAA+D,CAChE,AACD,6BACE,oBAAuB,CACxB,AACD,sBACE,GACE,SAAU,AACV,UAAW,AACX,QAAS,AACT,SAAU,AACV,SAAW,CACZ,AACD,GACE,SAAU,AACV,UAAW,AACX,WAAY,AACZ,YAAa,AACb,SAAW,CACZ,CACF,AACD,mBACE,UAAW,AACX,kBAAmB,AACnB,0CAAiD,AACjD,kBAAmB,AACnB,gBAAiB,AACjB,cAAe,AACf,eAAiB,CAClB,AACD,qCACE,kBAAmB,AACnB,gCAAiC,AACjC,gBAAiB,AACjB,cAAgB,CACjB,AACD,mCACE,mBAAuB,CACxB,AACD,8CACE,kBAAoB,CACrB,AACD,gDACE,UAAW,AACX,SAAU,AACV,gBAAiB,AACjB,eAAgB,AAChB,gBAAkB,AAClB,iBAAmB,CACpB,AACD,uDACE,eAAiB,CAClB,AACD,6DACE,oBAAsB,CACvB,AACD,+EACE,wBAAyB,AACzB,YAAc,CACf,AACD,4FACE,mBAAoB,AACpB,WAAY,AACZ,wBAA0B,CAC3B,AACD,kEACE,iBAAkB,AAClB,yBAA0B,AAC1B,iBAAkB,AAClB,kBAAmB,AACnB,eAAgB,AAChB,eAAgB,AAChB,iBAAmB,CACpB,AACD,4CACE,WAAY,AACZ,WAAY,AACZ,cAAe,AACf,kBAAmB,AACnB,mBAAoB,AACpB,sBAAuB,AACvB,8BAA+B,AAC/B,+BAAgC,AAChC,YAAa,AACb,cAAgB,CACjB,AACD,qGAEE,YAAc,CACf,AACD,qDACE,mBAAoB,AACpB,cAAgB,CACjB,AACD,WACE,qBAAsB,AACtB,iBAAmB,CACpB,AACD,sCAEE,iBAAmB,CACpB,AACD,2BAEE,UAAW,AACX,0BAA4B,CAC7B,AACD,cACE,YAAc,CACf,AACD,cACE,iBAAkB,AAClB,gBAAiB,AACjB,yBAA0B,AAC1B,kBAAmB,AACnB,cAAgB,CACjB,AACD,wBACE,gBAAiB,AACjB,SAAY,AACZ,UAAa,AACb,eAAiB,CAClB,AACD,2BACE,aAAe,CAChB,AACD,6BACE,cAAe,AACf,kBAAmB,AACnB,qBAAsB,AACtB,aAAe,CAChB,AACD,8CACE,gBAAkB,CACnB,AACD,qDACE,cAAgB,CACjB,AACD,mCACE,+BAAiC,CAClC,AACD,wBACE,YAAc,CACf,AACD,sCACE,OAAQ,AACR,mBAAoB,AACpB,YAAa,AACb,iBAAmB,CACpB,AACD,8CACE,kBAAmB,AACnB,gCAAiC,AACjC,eAAgB,AAChB,eAAkB,CACnB,AACD,+CACE,YAAa,AACb,aAAe,CAChB,AACD,uEACE,WAAY,AACZ,wBAA0B,CAC3B,AACD,mFACE,eAAgB,AAChB,iBAAmB,CACpB,AACD,wFACE,UAAW,AACX,gBAAkB,AAClB,cAAgB,CACjB,AACD,mGACE,cAAgB,CACjB,AACD,sGACE,SAAU,AACV,UAAW,AACX,eAAiB,CAClB,AACD,yGACE,qBAAsB,AACtB,iBAAkB,AAClB,eAAgB,AAChB,eAAoB,CACrB,AACD,oHACE,aAAe,CAChB,AACD,4FACE,UAAW,AACX,aAAe,CAChB,AACD,8FACE,cAAe,AACf,aAAe,CAChB,AACD,4GACE,eAAgB,AAChB,6BAA8B,AAC9B,cAAe,AACf,gBAAkB,CACnB,AACD,8CACE,kBAAmB,AACnB,SAAU,AACV,UAAY,CACb,AACD,iDACE,gBAAiB,AACjB,SAAU,AACV,UAAW,AACX,UAAY,CACb,AACD,oDACE,iBAAkB,AAClB,eAAkB,CACnB,AACD,8DACE,gBAAiB,AACjB,cAAe,AACf,eAAgB,AAChB,eAAoB,CACrB,AACD,gEACE,4BAA8B,CAC/B,AACD,+DACE,6BAA8B,AAC9B,aAAc,AACd,cAAgB,CACjB,AACD,uCACE,OAAQ,AACR,aAAc,AACd,sBAAuB,AACvB,aAAc,AACd,gBAAkB,CACnB,AACD,kDACE,SAAU,AACV,UAAW,AACX,eAAgB,AAChB,cAAe,AACf,cAAgB,CACjB,AACD,+DACE,cAAe,AACf,kBAAmB,AACnB,+BAAoC,AACpC,cAAe,AACf,WAAa,AACb,eAAgB,AAChB,iBAAmB,CACpB,AACD,gDACE,kBAAwB,AACxB,aAAc,AACd,MAAQ,CACT,AACD,iEACE,aAAc,AACd,cAAgB,CACjB,AACD,uEACE,aAAc,AACd,mBAAqB,CACtB,AACD,yFACE,YAAc,CACf,AACD,8GACE,oCAA0C,CAC3C,AACD,oFACE,kBAAmB,AACnB,aAAc,AACd,+BAAoC,AACpC,kBAAmB,AACnB,eAAgB,AAChB,eAAgB,AAChB,cAAe,AACf,sBAAuB,AACvB,cAAe,AACf,qCAA0C,AAC1C,iBAAmB,CACpB,AACD,6FACE,mBAAoB,AACpB,yBAA0B,AAC1B,aAAc,AACd,kBAAmB,AACnB,sBAAuB,AACvB,aAAe,CAChB,AACD,gEACE,cAAkB,CACnB,AACD,gFACE,aAAc,AACd,yBAA0B,AAC1B,iBAAmB,CACpB,AACD,4FACE,mBAAoB,AACpB,WAAY,AACZ,iBAAmB,CACpB,AACD,wGACE,UAAW,AACX,cAAiB,AACjB,gBAAiB,AACjB,aAAc,AACd,cAAgB,CACjB,AACD,0GACE,eAAgB,AAChB,kBAAoB,CACrB,AACD,qHACE,iBAAmB,CACpB,AACD,mIACE,kBAAmB,AACnB,WAAY,AACZ,YAAa,AACb,kBAAmB,AACnB,iBAAkB,AAClB,eAAgB,AAChB,8BAAgC,CACjC,AACD,2HACE,yBAA0B,AAC1B,WAAY,AACZ,eAAgB,AAChB,YAAa,AACb,0BAA2B,AAC3B,iBAAmB,CACpB,AACD,iIACE,YAAc,CACf,AACD,8FACE,gBAAiB,AACjB,6BAA8B,AAC9B,kBAAmB,AACnB,cAAe,AACf,cAAgB,CACjB,AACD,iDACE,qBAAsB,AACtB,kBAAmB,AACnB,eAAgB,AAChB,iBAAmB,CACpB,AACD,0DACE,yBAA0B,AAC1B,aAAe,CAChB,AACD,2EACE,kBAAmB,AACnB,eAAgB,AAChB,kBAAmB,AACnB,yBAA0B,AAC1B,WAAY,AACZ,mBAAoB,AACpB,cAAgB,CACjB,AACD,oFACE,mBAAoB,AACpB,yBAA0B,AAC1B,cAAgB,CACjB,AACD,uBACE,UAAW,AACX,kBAAmB,AACnB,eAAiB,CAClB,AACD,0CACE,aAAc,AACd,cAAe,AACf,eAAgB,AAChB,gBAAoB,AACpB,aAAe,CAChB,AACD,sCACE,gBAAkB,CACnB,AACD,6CACE,kBAAmB,AACnB,WAAY,AACZ,eAAgB,AAChB,kBAAmB,AACnB,cAAiB,AACjB,YAAa,AACb,cAAgB,CACjB,AACD,uDACE,mBAAoB,AACpB,wBAA0B,CAC3B,AACD,0DACE,mBAAoB,AACpB,wBAA0B,CAC3B,AACD,8DACE,eAAgB,AAChB,gBAAkB,CACnB,AACD,sBACE,aAAc,AACd,WAAY,AACZ,mBAAoB,AACpB,eAAgB,AAChB,qBAAuB,CACxB,AACD,yDAEE,eAAgB,AAChB,yBAA0B,AAC1B,eAAgB,AAChB,iBAAkB,AAClB,UAAY,CACb,AACD,mFAEE,cAAe,AACf,cAAgB,CACjB,AAMD,4MAEE,cAAe,AACf,cAAgB,CACjB,AACD,qEAEE,YAAc,CACf,AACD,kCACE,WAAY,AACZ,YAAgB,CACjB,AACD,wCACE,kBAAmB,AACnB,cAAe,AACf,oBAAsB,CACvB,AACD,iFAEE,mBAAoB,AACpB,kBAAmB,AACnB,yBAA0B,AAC1B,eAAiB,CAClB,AACD,2GAEE,cAAe,AACf,cAAgB,CACjB,AAMD,4PAEE,cAAe,AACf,cAAgB,CACjB,AACD,uCACE,mBAAoB,AACpB,aAAe,CAChB,AACD,sDACE,WAAY,AACZ,eAAkB,AAClB,gCAAiC,AACjC,cAAgB,CACjB,AACD,+EACE,eAAgB,AAChB,cAAe,AACf,gBAAkB,CACnB,AACD,wDAEE,YAAc,CACf,AACD,gFAEE,OAAQ,AACR,qBAAyB,CAC1B,AACD,sGAEE,YAAwB,CACzB,AACD,4FAEE,kBAAmB,AACnB,cAAe,AACf,oBAAsB,CACvB,AACD,0IAIE,OAAQ,AACR,iBAAmB,CACpB,AACD,sLAIE,cAAkB,CACnB,AACD,8CAIE,sBAAyB,CAC1B,AACD,WACE,eAAgB,AAChB,qBAAsB,AACtB,eAAkB,AAClB,kBAAmB,AACnB,yBAA0B,AAC1B,qBAAsB,AACtB,YAAa,AACb,iBAAkB,AAClB,cAAgB,CACjB,AACD,iCAEE,WAAa,CACd,AACD,6BACE,gBAAiB,AACjB,aAAe,CAChB,AACD,mCACE,cAAe,AACf,kBAAoB,CACrB,AACD,6BACE,mBAAoB,AACpB,WAAY,AACZ,WAAa,CACd,AACD,mCACE,WAAY,AACZ,mBAAoB,AACpB,WAAa,CACd,AACD,sCACE,mBAAoB,AACpB,WAAY,AACZ,cAAgB,CACjB,AACD,2BACE,eAAgB,AAChB,eAAgB,AAChB,YAAa,AACb,gBAAkB,CACnB,AACD,iBACE,YAAc,CACf,AACD,gBACE,UAAY,CACb,AACD,SACE,wBAA0B,AAC1B,aAAe,CAChB,AACD,wBACE,gBAAkB,AAClB,WAAa,AACb,mBAAoB,AACpB,eAAiB,CAClB,AACD,wBACE,QAAS,AACT,SAAU,AACV,mBAAoB,AACpB,kBAAmB,AACnB,WAAY,AACZ,kBAAoB,AACpB,SAAW,CACZ,AACD,2BACE,iBAAmB,CACpB,AACD,0CACE,uBAA4B,AAC5B,wCAA0C,AAC1C,yCAA2C,AAC3C,0CAA4C,AAC5C,YAAa,AACb,SAAgB,AAChB,aAAc,AACd,eAAiB,CAClB,AACD,8BACE,cAAgB,CACjB,AACD,6CACE,uBAA4B,AAC5B,wCAA0C,AAC1C,yCAA2C,AAC3C,uCAAyC,AACzC,SAAU,AACV,SAAgB,AAChB,aAAc,AACd,eAAiB,CAClB,AACD,6BACE,eAAiB,CAClB,AACD,4CACE,2BAA4B,AAC5B,wCAA0C,AAC1C,uCAAyC,AACzC,0CAA4C,AAC5C,UAAW,AACX,QAAe,AACf,cAAe,AACf,cAAgB,CACjB,AACD,4BACE,gBAAkB,CACnB,AACD,2CACE,2BAA4B,AAC5B,uCAAyC,AACzC,yCAA2C,AAC3C,0CAA4C,AAC5C,WAAY,AACZ,QAAe,AACf,cAAe,AACf,cAAgB,CACjB,AACD,iBACE,aAAe,CAChB,AACD,gCACE,gBAAiB,AACjB,cAAe,AACf,kBAAmB,AACnB,oCAA0C,CAC3C,AACD,gCACE,oBAAsB,CACvB,AACD,2BACE,kBAAmB,AACnB,UAAW,AACX,uCAA0C,CAC3C,AACD,4BACE,mBAAoB,AACpB,UAAW,AACX,uBAAyB,CAC1B,AACD,mBACE,0BAA4B,AAC5B,wBAA2B,CAC5B,AACD,wCACE,WAAY,AACZ,YAAa,AACb,eAAiB,CAClB,AACD,sCACE,kBAAmB,AACnB,gBAAiB,AACjB,uBAAwB,AACxB,yBAA0B,AAC1B,gBAAiB,AACjB,cAAgB,CACjB,AACD,2DACE,cAAgB,CACjB,AACD,uCACE,oBAAsB,AACtB,eAAgB,AAChB,2BAA6B,AAC7B,2BAA6B,AAC7B,0BAA8B,AAC9B,qBAAwB,CACzB,AACD,oDACE,cAAe,AACf,cAAgB,CACjB,AAKD,2HACE,cAAe,AACf,cAAgB,CACjB,AACD,2DACE,qBAAuB,AACvB,eAAgB,AAChB,0BAA6B,CAC9B,AACD,iDACE,8BAA+B,AAC/B,+BAAgC,AAChC,4CAAiD,AACjD,cAAe,AACf,kBAAoB,CACrB,AACD,4EACE,gCAAiC,AACjC,iBAAmB,CACpB,AACD,iGACE,iBAAkB,AAClB,iBAAkB,AAClB,eAAiB,CAClB,AACD,uNAEE,mBAAoB,AACpB,cAAe,AACf,eAAoB,CACrB,AACD,kHACE,qBAAwB,AACxB,gBAAiB,AACjB,kBAAmB,AACnB,SAAU,AACV,WAAY,AACZ,cAAe,AACf,gBAAiB,AACjB,iBAAkB,AAClB,SAAa,CACd,AACD,2FACE,aAAc,AACd,kBAAmB,AACnB,aAAe,CAChB,AACD,sBACE,eAAgB,AAChB,MAAO,AACP,OAAQ,AACR,QAAS,AACT,SAAU,AACV,iBAAkB,AAClB,gBAAiB,AACjB,WAAa,AACb,aAAe,CAChB,AACD,eACE,qBAAuB,CACxB,AACD,kCACE,eAAgB,AAChB,gBAAiB,AACjB,eAAgB,AAChB,SAAU,AACV,QAAS,AAGT,8BAAiC,CAClC,AACD,0CACE,mBAAqB,CACtB,AACD,iCACE,YAAa,AACb,mBAAoB,AACpB,kBAAmB,AACnB,4BAA8B,CAC/B,AACD,oCACE,SAAU,AACV,UAAW,AACX,eAAgB,AAChB,gBAAiB,AACjB,iBAAmB,CACpB,AACD,+BACE,eAAgB,AAChB,kBAAmB,AACnB,SAAU,AACV,UAAY,CACb,AACD,sCACE,eAAgB,AAChB,aAAe,CAChB,AACD,yBACE,iBAAkB,AAClB,iBAAmB,CACpB,AACD,oBACE,kBAAmB,AACnB,OAAQ,AACR,QAAS,AACT,aAAc,AACd,YAAa,AACb,aAAc,AACd,mBAAoB,AACpB,6BAA8B,AAE9B,yCAA+C,CAChD,AACD,2BACE,iBAAkB,AAClB,gBAAkB,CACnB,AACD,yCACE,qBACE,sBAAwB,AACxB,mBAAsB,CACvB,CACF,AACD,yCACE,qBACE,sBAAwB,AACxB,mBAAsB,CACvB,CACF,AACD,yCACE,qBACE,sBAAwB,AACxB,mBAAsB,CACvB,CACF,AACD,QACE,kBAAmB,AACnB,qBAAsB,AACtB,WAAY,AACZ,WAAa,CACd,AACD,cACE,YAAc,CACf,AACD,8BACE,wBAA0B,CAC3B,AACD,qCAGE,0BAA4B,CAC7B,AACD,4BACE,0BAA4B,CAC7B,AACD,gBACE,kBAAmB,AACnB,eAAgB,AAChB,MAAO,AACP,OAAQ,AACR,QAAS,AACT,SAAU,AACV,sBAAuB,AAEvB,cAAgB,CACjB,AACD,uBACE,kBAAmB,AACnB,WAAY,AACZ,YAAa,AACb,WAAY,AACZ,SAAU,AACV,WAAY,AACZ,sBAAwB,AAExB,cAAgB,CACjB,AACD,sBACE,kBAAoB,CACrB,AACD,6BACE,iBAAmB,CACpB","file":"style.css","sourcesContent":["body {\n margin: 0;\n padding: 0;\n background-color: #F0F2F4;\n font-size: 14px;\n font-family: 'Lato', 'sans-serif';\n}\n[v-cloak] {\n display: none;\n}\n.wepos-clearfix:before,\n.wepos-clearfix:after {\n display: table;\n content: \" \";\n}\n.wepos-clearfix:after {\n clear: both;\n}\n.wepos-right {\n float: right !important;\n}\n.wepos-left {\n float: left !important;\n}\n.wepos-hide {\n display: none;\n}\n.spinner {\n position: absolute;\n width: 125px;\n height: 125px;\n top: 40%;\n left: 45%;\n}\n.spinner:before,\n.spinner:after {\n content: \"\";\n display: block;\n position: absolute;\n border-width: 5px;\n border-style: solid;\n border-radius: 50%;\n opacity: 1;\n}\n.wepos-alert {\n background: #fafafa;\n border: 1px solid #eee;\n padding: 20px;\n font-size: 15px;\n border-radius: 3px;\n margin-bottom: 1rem;\n}\n.wepos-alert.wepos-alert-info {\n color: #004085;\n background-color: #cce5ff;\n border-color: #b8daff;\n}\n.wepos-alert.wepos-alert-success {\n color: #155724;\n background-color: #d4edda;\n border-color: #c3e6cb;\n}\n.wepos-alert.wepos-alert-danger {\n color: #721c24;\n background-color: #f8d7da;\n border-color: #f5c6cb;\n}\n.wepos-alert.wepos-alert-warning {\n color: #856404;\n background-color: #fff3cd;\n border-color: #ffeeba;\n}\n@keyframes scale-2 {\n 0% {\n transform: scale(0);\n opacity: 0;\n }\n 50% {\n transform: scale(0.7);\n opacity: 1;\n }\n 100% {\n transform: scale(1);\n opacity: 0;\n }\n}\n.spinner.spinner-loading:before {\n width: 117px;\n height: 117px;\n border-color: #3b80f4;\n top: 0px;\n left: 0px;\n animation: scale-2 1s linear 0s infinite;\n}\n.spinner.spinner-loading:after {\n width: 117px;\n height: 117px;\n border-color: #3b80f4;\n top: 0;\n left: 0;\n opacity: 0;\n animation: scale-2 1s linear 0.5s infinite;\n}\n.lds-ripple {\n display: inline-block;\n position: relative;\n width: 64px;\n height: 64px;\n}\n.lds-ripple div {\n position: absolute;\n border: 4px solid #fff;\n opacity: 1;\n border-radius: 50%;\n animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;\n}\n.lds-ripple div:nth-child(2) {\n animation-delay: -0.5s;\n}\n@keyframes lds-ripple {\n 0% {\n top: 28px;\n left: 28px;\n width: 0;\n height: 0;\n opacity: 1;\n }\n 100% {\n top: -1px;\n left: -1px;\n width: 58px;\n height: 58px;\n opacity: 0;\n }\n}\n.product-variation {\n padding: 0;\n border-radius: 5px;\n box-shadow: 0px 4px 25px 1px rgba(0, 0, 0, 0.06);\n border-radius: 3px;\n margin-top: 45px;\n z-index: 99999;\n margin-left: 5px;\n}\n.product-variation .variation-header {\n padding: 10px 15px;\n border-bottom: 1px solid #E0E3E6;\n text-align: left;\n font-size: 18px;\n}\n.product-variation .variation-body {\n padding: 10px 15px 0px;\n}\n.product-variation .variation-body .attribute {\n margin-bottom: 15px;\n}\n.product-variation .variation-body .attribute p {\n padding: 0;\n margin: 0;\n text-align: left;\n font-size: 14px;\n font-weight: bold;\n margin-bottom: 5px;\n}\n.product-variation .variation-body .attribute .options {\n text-align: left;\n}\n.product-variation .variation-body .attribute .options label {\n display: inline-block;\n}\n.product-variation .variation-body .attribute .options label input[type=radio] {\n -webkit-appearance: none;\n display: none;\n}\n.product-variation .variation-body .attribute .options label input[type=radio]:checked + .box {\n background: #1ABC9C;\n color: #fff;\n border: 1px solid #1ABC9C;\n}\n.product-variation .variation-body .attribute .options label .box {\n padding: 6px 10px;\n border: 1px solid #E0E5EA;\n margin-right: 5px;\n margin-bottom: 5px;\n cursor: pointer;\n font-size: 13px;\n border-radius: 3px;\n}\n.product-variation .variation-footer button {\n color: #fff;\n width: 100%;\n display: block;\n padding: 10px 15px;\n background: #3b80f4;\n box-sizing: border-box;\n border-bottom-left-radius: 3px;\n border-bottom-right-radius: 3px;\n border: none;\n cursor: pointer;\n}\n.product-variation .variation-footer button:focus,\n.product-variation .variation-footer button:active {\n outline: none;\n}\n.product-variation .variation-footer button:disabled {\n background: #76A2ED;\n cursor: no-drop;\n}\n.list-item {\n display: inline-block;\n margin-right: 10px;\n}\n.list-enter-active,\n.list-leave-active {\n transition: all 1s;\n}\n.list-enter,\n.list-leave-to {\n opacity: 0;\n transform: translateY(30px);\n}\n.wepos-zindex {\n z-index: 9999;\n}\n.wepos-button {\n padding: 8px 10px;\n background: #fff;\n border: 1px solid #E9EDF0;\n border-radius: 3px;\n cursor: pointer;\n}\n.wepos-dropdown-menu ul {\n list-style: none;\n margin: 0px;\n padding: 0px;\n min-width: 180px;\n}\n.wepos-dropdown-menu ul li {\n display: block;\n}\n.wepos-dropdown-menu ul li a {\n display: block;\n padding: 10px 15px;\n text-decoration: none;\n color: #212121;\n}\n.wepos-dropdown-menu ul li a .quick-menu-icon {\n margin-right: 7px;\n}\n.wepos-dropdown-menu ul li a .quick-menu-icon:before {\n font-size: 15px;\n}\n.wepos-dropdown-menu ul li.divider {\n border-bottom: 1px solid #E9EDF0;\n}\n.wepos-checkout-wrapper {\n display: flex;\n}\n.wepos-checkout-wrapper .left-content {\n flex: 3;\n background: #FBFCFE;\n height: 95vh;\n position: relative;\n}\n.wepos-checkout-wrapper .left-content .header {\n padding: 12px 15px;\n border-bottom: 1px solid #EAEDF0;\n font-size: 20px;\n font-weight: bold;\n}\n.wepos-checkout-wrapper .left-content .content {\n height: 55vh;\n overflow: auto;\n}\n.wepos-checkout-wrapper .left-content .content table.sale-summary-cart {\n width: 100%;\n border-collapse: collapse;\n}\n.wepos-checkout-wrapper .left-content .content table.sale-summary-cart tbody tr td {\n font-size: 13px;\n padding: 10px 15px;\n}\n.wepos-checkout-wrapper .left-content .content table.sale-summary-cart tbody tr td.name {\n width: 70%;\n font-weight: bold;\n font-size: 14px;\n}\n.wepos-checkout-wrapper .left-content .content table.sale-summary-cart tbody tr td.name .attribute {\n margin-top: 2px;\n}\n.wepos-checkout-wrapper .left-content .content table.sale-summary-cart tbody tr td.name .attribute ul {\n margin: 0;\n padding: 0;\n list-style: none;\n}\n.wepos-checkout-wrapper .left-content .content table.sale-summary-cart tbody tr td.name .attribute ul li {\n display: inline-block;\n margin-right: 5px;\n font-size: 12px;\n font-weight: normal;\n}\n.wepos-checkout-wrapper .left-content .content table.sale-summary-cart tbody tr td.name .attribute ul li .attr_name {\n color: #758598;\n}\n.wepos-checkout-wrapper .left-content .content table.sale-summary-cart tbody tr td.quantity {\n width: 15%;\n color: #758598;\n}\n.wepos-checkout-wrapper .left-content .content table.sale-summary-cart tbody tr td.price span {\n display: block;\n color: #758598;\n}\n.wepos-checkout-wrapper .left-content .content table.sale-summary-cart tbody tr td.price span.regular-price {\n font-size: 11px;\n text-decoration: line-through;\n color: #9095A5;\n padding-left: 5px;\n}\n.wepos-checkout-wrapper .left-content .footer {\n position: absolute;\n bottom: 0;\n width: 100%;\n}\n.wepos-checkout-wrapper .left-content .footer ul {\n list-style: none;\n margin: 0;\n padding: 0;\n width: 100%;\n}\n.wepos-checkout-wrapper .left-content .footer ul li {\n padding: 8px 15px;\n font-weight: bold;\n}\n.wepos-checkout-wrapper .left-content .footer ul li .metadata {\n margin-left: 6px;\n color: #758598;\n font-size: 13px;\n font-weight: normal;\n}\n.wepos-checkout-wrapper .left-content .footer ul li:first-child {\n border-top: 1px solid #EAEDF0;\n}\n.wepos-checkout-wrapper .left-content .footer ul li:last-child {\n border-top: 1px solid #EAEDF0;\n padding: 15px;\n font-size: 15px;\n}\n.wepos-checkout-wrapper .right-content {\n flex: 6;\n padding: 50px;\n box-sizing: border-box;\n display: flex;\n flex-flow: column;\n}\n.wepos-checkout-wrapper .right-content .header h2 {\n margin: 0;\n padding: 0;\n font-size: 26px;\n display: block;\n margin-top: 8px;\n}\n.wepos-checkout-wrapper .right-content .header span.pay-amount {\n display: block;\n padding: 15px 25px;\n background: rgba(59, 128, 244, 0.1);\n color: #3B80F4;\n opacity: 0.8;\n font-size: 18px;\n border-radius: 3px;\n}\n.wepos-checkout-wrapper .right-content .content {\n margin: 20px -15px 20px;\n height: 350px;\n flex: 1;\n}\n.wepos-checkout-wrapper .right-content .content .payment-gateway {\n display: flex;\n flex-wrap: wrap;\n}\n.wepos-checkout-wrapper .right-content .content .payment-gateway label {\n flex: 1 0 21%;\n padding: 0 15px 20px;\n}\n.wepos-checkout-wrapper .right-content .content .payment-gateway label input[type=radio] {\n display: none;\n}\n.wepos-checkout-wrapper .right-content .content .payment-gateway label input[type=radio]:checked + span.gateway {\n border: 1px solid rgba(26, 188, 156, 0.7);\n}\n.wepos-checkout-wrapper .right-content .content .payment-gateway label span.gateway {\n text-align: center;\n height: 100px;\n background: rgba(26, 188, 156, 0.1);\n line-height: 100px;\n font-size: 20px;\n cursor: pointer;\n color: #16a085;\n box-sizing: border-box;\n display: block;\n border: 1px solid rgba(26, 188, 156, 0.1);\n border-radius: 3px;\n}\n.wepos-checkout-wrapper .right-content .content .payment-gateway label span.grid-placeholder {\n background: #fafafa;\n border: 1px solid #f7f7f7;\n height: 100px;\n line-height: 100px;\n box-sizing: border-box;\n display: block;\n}\n.wepos-checkout-wrapper .right-content .content .payment-option {\n padding: 0px 15px;\n}\n.wepos-checkout-wrapper .right-content .content .payment-option .payment-amount {\n height: 250px;\n border: 1px solid #EAEDF0;\n position: relative;\n}\n.wepos-checkout-wrapper .right-content .content .payment-option .payment-amount .input-part {\n background: #FBFCFE;\n height: 80%;\n text-align: center;\n}\n.wepos-checkout-wrapper .right-content .content .payment-option .payment-amount .input-part .input-wrap {\n width: 65%;\n margin: 0px auto;\n text-align: left;\n padding: 35px;\n padding-top: 5%;\n}\n.wepos-checkout-wrapper .right-content .content .payment-option .payment-amount .input-part .input-wrap p {\n font-size: 15px;\n margin-bottom: 10px;\n}\n.wepos-checkout-wrapper .right-content .content .payment-option .payment-amount .input-part .input-wrap .input-addon {\n position: relative;\n}\n.wepos-checkout-wrapper .right-content .content .payment-option .payment-amount .input-part .input-wrap .input-addon span.currency {\n position: absolute;\n width: 50px;\n height: 50px;\n text-align: center;\n line-height: 48px;\n font-size: 16px;\n border-right: 1px solid #EAEDF0;\n}\n.wepos-checkout-wrapper .right-content .content .payment-option .payment-amount .input-part .input-wrap .input-addon input {\n border: 1px solid #EAEDF0;\n width: 100%;\n font-size: 16px;\n height: 50px;\n padding: 2px 10px 2px 60px;\n border-radius: 3px;\n}\n.wepos-checkout-wrapper .right-content .content .payment-option .payment-amount .input-part .input-wrap .input-addon input:focus {\n outline: none;\n}\n.wepos-checkout-wrapper .right-content .content .payment-option .payment-amount .change-money {\n background: #fff;\n border-top: 1px solid #EAEDF0;\n text-align: center;\n color: #9013FE;\n font-size: 15px;\n}\n.wepos-checkout-wrapper .right-content .footer a {\n text-decoration: none;\n padding: 15px 25px;\n font-size: 16px;\n border-radius: 3px;\n}\n.wepos-checkout-wrapper .right-content .footer a.back-btn {\n border: 1px solid #EAEDF0;\n color: #212121;\n}\n.wepos-checkout-wrapper .right-content .footer button.process-checkout-btn {\n padding: 15px 25px;\n font-size: 16px;\n border-radius: 3px;\n border: 1px solid #3B80F4;\n color: #FFF;\n background: #3B80F4;\n cursor: pointer;\n}\n.wepos-checkout-wrapper .right-content .footer button.process-checkout-btn:disabled {\n background: #76A2ED;\n border: 1px solid #76A2ED;\n cursor: no-drop;\n}\n.wepos-payment-receipt {\n width: 80%;\n text-align: center;\n margin: 10% auto;\n}\n.wepos-payment-receipt .sale-completed h2 {\n margin-top: 0;\n padding-top: 0;\n font-size: 35px;\n font-weight: normal;\n color: #1ABC9C;\n}\n.wepos-payment-receipt .print-section {\n padding-top: 15px;\n}\n.wepos-payment-receipt .print-section button {\n padding: 12px 15px;\n color: #fff;\n font-size: 15px;\n border-radius: 3px;\n margin: 0px 10px;\n width: 150px;\n cursor: pointer;\n}\n.wepos-payment-receipt .print-section button.print-btn {\n background: #9013FE;\n border: 1px solid #9013FE;\n}\n.wepos-payment-receipt .print-section button.new-sale-btn {\n background: #F2683E;\n border: 1px solid #F2683E;\n}\n.wepos-payment-receipt .print-section button span.icon:before {\n font-size: 15px;\n margin-right: 5px;\n}\n.wepos-form .form-row {\n display: flex;\n width: 100%;\n margin-bottom: 10px;\n padding: 0 15px;\n box-sizing: border-box;\n}\n.wepos-form .form-row input,\n.wepos-form .form-row select {\n margin: inherit;\n border: 1px solid #E0E5EA;\n font-size: 14px;\n padding: 8px 10px;\n width: 100%;\n}\n.wepos-form .form-row input::placeholder,\n.wepos-form .form-row select::placeholder {\n color: #999DAC;\n font-size: 13px;\n}\n.wepos-form .form-row input:-ms-input-placeholder,\n.wepos-form .form-row select:-ms-input-placeholder {\n color: #999DAC;\n font-size: 13px;\n}\n.wepos-form .form-row input::-ms-input-placeholder,\n.wepos-form .form-row select::-ms-input-placeholder {\n color: #999DAC;\n font-size: 13px;\n}\n.wepos-form .form-row input:focus,\n.wepos-form .form-row select:focus {\n outline: none;\n}\n.wepos-form .form-row .form-group {\n width: 100%;\n margin: 5px 0px;\n}\n.wepos-form .form-row .form-group label {\n margin-bottom: 5px;\n color: #212121;\n display: inline-block;\n}\n.wepos-form .form-row .form-group input,\n.wepos-form .form-row .form-group select {\n background: #F9F9F9;\n border-radius: 3px;\n border: 1px solid #F1F1F1;\n box-shadow: none;\n}\n.wepos-form .form-row .form-group input::placeholder,\n.wepos-form .form-row .form-group select::placeholder {\n color: #CBCBCB;\n font-size: 13px;\n}\n.wepos-form .form-row .form-group input:-ms-input-placeholder,\n.wepos-form .form-row .form-group select:-ms-input-placeholder {\n color: #CBCBCB;\n font-size: 13px;\n}\n.wepos-form .form-row .form-group input::-ms-input-placeholder,\n.wepos-form .form-row .form-group select::-ms-input-placeholder {\n color: #CBCBCB;\n font-size: 13px;\n}\n.wepos-form .form-row.sections-heading {\n margin-bottom: 25px;\n color: #212121;\n}\n.wepos-form .form-row.sections-heading .section-title {\n width: 100%;\n padding: 10px 0px;\n border-bottom: 1px solid #f1f1f1;\n font-size: 15px;\n}\n.wepos-form .form-row.sections-heading .section-title span.heading-icon:before {\n font-size: 15px;\n color: #212121;\n margin-right: 5px;\n}\n.wepos-form .form-row.col-2,\n.wepos-form .form-row.col-3 {\n display: flex;\n}\n.wepos-form .form-row.col-2 .form-group,\n.wepos-form .form-row.col-3 .form-group {\n flex: 1;\n margin: 5px 20px 5px 0px;\n}\n.wepos-form .form-row.col-2 .form-group:last-child,\n.wepos-form .form-row.col-3 .form-group:last-child {\n margin: 5px 0px 5px 0px;\n}\n.wepos-form .form-row.col-2 .form-group label,\n.wepos-form .form-row.col-3 .form-group label {\n margin-bottom: 5px;\n color: #212121;\n display: inline-block;\n}\n.wepos-form .form-row.col-2 input,\n.wepos-form .form-row.col-3 input,\n.wepos-form .form-row.col-2 select,\n.wepos-form .form-row.col-3 select {\n flex: 1;\n margin-right: 20px;\n}\n.wepos-form .form-row.col-2 input:last-child,\n.wepos-form .form-row.col-3 input:last-child,\n.wepos-form .form-row.col-2 select:last-child,\n.wepos-form .form-row.col-3 select:last-child {\n margin-right: 0px;\n}\ndiv:focus,\nspan:focus,\nbutton:focus,\ninput:focus {\n outline: none !important;\n}\n.wepos-btn {\n font-size: 13px;\n text-decoration: none;\n padding: 0px 10px;\n border-radius: 3px;\n border: 1px solid #E2E2E2;\n display: inline-block;\n height: 28px;\n line-height: 28px;\n cursor: pointer;\n}\ninput.wepos-btn,\nbutton.wepos-btn {\n height: 30px;\n}\n.wepos-btn.wepos-btn-default {\n background: #fff;\n color: #788383;\n}\n.wepos-btn.wepos-btn-default:hover {\n color: #5d5d5d;\n background: #fafafa;\n}\n.wepos-btn.wepos-btn-primary {\n background: #1A9ED4;\n color: #fff;\n border: none;\n}\n.wepos-btn.wepos-btn-primary:hover {\n color: #fff;\n background: #29ace2;\n border: none;\n}\n.wepos-btn.wepos-btn-primary:disabled {\n background: #33a9da;\n color: #eee;\n cursor: no-drop;\n}\n.wepos-btn.wepos-btn-large {\n font-size: 16px;\n padding: 0 35px;\n height: 45px;\n line-height: 45px;\n}\n.v-popover:focus {\n outline: none;\n}\n.v-popover span {\n width: 100%;\n}\n.tooltip {\n display: block !important;\n z-index: 10000;\n}\n.tooltip .tooltip-inner {\n background: black;\n color: white;\n border-radius: 16px;\n max-width: 300px;\n}\n.tooltip .tooltip-arrow {\n width: 0;\n height: 0;\n border-style: solid;\n position: absolute;\n margin: 5px;\n border-color: black;\n z-index: 1;\n}\n.tooltip[x-placement^=\"top\"] {\n margin-bottom: 5px;\n}\n.tooltip[x-placement^=\"top\"] .tooltip-arrow {\n border-width: 5px 5px 0 5px;\n border-left-color: transparent !important;\n border-right-color: transparent !important;\n border-bottom-color: transparent !important;\n bottom: -5px;\n left: calc(45%);\n margin-top: 0;\n margin-bottom: 0;\n}\n.tooltip[x-placement^=\"bottom\"] {\n margin-top: 5px;\n}\n.tooltip[x-placement^=\"bottom\"] .tooltip-arrow {\n border-width: 0 5px 5px 5px;\n border-left-color: transparent !important;\n border-right-color: transparent !important;\n border-top-color: transparent !important;\n top: -5px;\n left: calc(45%);\n margin-top: 0;\n margin-bottom: 0;\n}\n.tooltip[x-placement^=\"right\"] {\n margin-left: 5px;\n}\n.tooltip[x-placement^=\"right\"] .tooltip-arrow {\n border-width: 5px 5px 5px 0;\n border-left-color: transparent !important;\n border-top-color: transparent !important;\n border-bottom-color: transparent !important;\n left: -5px;\n top: calc(45%);\n margin-left: 0;\n margin-right: 0;\n}\n.tooltip[x-placement^=\"left\"] {\n margin-right: 5px;\n}\n.tooltip[x-placement^=\"left\"] .tooltip-arrow {\n border-width: 5px 0 5px 5px;\n border-top-color: transparent !important;\n border-right-color: transparent !important;\n border-bottom-color: transparent !important;\n right: -5px;\n top: calc(45%);\n margin-left: 0;\n margin-right: 0;\n}\n.tooltip.popover {\n color: #f9f9f9;\n}\n.tooltip.popover .popover-inner {\n background: #fff;\n color: #212121;\n border-radius: 5px;\n box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);\n}\n.tooltip.popover .popover-arrow {\n border-color: #f9f9f9;\n}\n.tooltip[aria-hidden='true'] {\n visibility: hidden;\n opacity: 0;\n transition: opacity .15s, visibility .15s;\n}\n.tooltip[aria-hidden='false'] {\n visibility: visible;\n opacity: 1;\n transition: opacity .15s;\n}\n.wepos-multiselect {\n min-height: 35px !important;\n font-size: 13px !important;\n}\n.wepos-multiselect .multiselect__select {\n width: 35px;\n height: 35px;\n padding: 6px 8px;\n}\n.wepos-multiselect .multiselect__tags {\n border-radius: 3px;\n min-height: 34px;\n padding: 5px 30px 0 8px;\n border: 1px solid #e9edf0;\n background: #fff;\n font-size: 13px;\n}\n.wepos-multiselect .multiselect__tags .multiselect__single {\n font-size: 13px;\n}\n.wepos-multiselect .multiselect__input {\n width: 75% !important;\n font-size: 13px;\n padding-left: 3px !important;\n line-height: 22px !important;\n margin-bottom: 0px !important;\n border: none !important;\n}\n.wepos-multiselect .multiselect__input::placeholder {\n color: #999DAC;\n font-size: 13px;\n}\n.wepos-multiselect .multiselect__input:-ms-input-placeholder {\n color: #999DAC;\n font-size: 13px;\n}\n.wepos-multiselect .multiselect__input::-ms-input-placeholder {\n color: #999DAC;\n font-size: 13px;\n}\n.wepos-multiselect.multiselect--active .multiselect__input {\n width: 100% !important;\n font-size: 13px;\n padding-left: 3px !important;\n}\n.wepos-multiselect .multiselect__content-wrapper {\n border-bottom-left-radius: 3px;\n border-bottom-right-radius: 3px;\n box-shadow: 0 30px 45px -10px rgba(0, 0, 0, 0.2);\n z-index: 99999;\n border-bottom: none;\n}\n.wepos-multiselect .multiselect__content-wrapper ul li.multiselect__element {\n border-bottom: 1px solid #e9edf0;\n position: relative;\n}\n.wepos-multiselect .multiselect__content-wrapper ul li.multiselect__element .multiselect__option {\n padding: 8px 12px;\n line-height: 20px;\n min-height: 35px;\n}\n.wepos-multiselect .multiselect__content-wrapper ul li.multiselect__element .multiselect__option--highlight,\n.wepos-multiselect .multiselect__content-wrapper ul li.multiselect__element .multiselect__option--selected {\n background: #f6f7fb;\n color: #212121;\n font-weight: normal;\n}\n.wepos-multiselect .multiselect__content-wrapper ul li.multiselect__element .multiselect__option--highlight:after {\n font-family: 'Flaticon';\n content: \"\\F10F\";\n position: absolute;\n top: 10px;\n right: 12px;\n color: #758598;\n background: none;\n line-height: 20px;\n padding: 0px;\n}\n.wepos-multiselect .multiselect__content-wrapper ul li.multiselect__element .no-data-found {\n padding: 20px;\n text-align: center;\n color: #758598;\n}\n.wepos-modal-backdrop {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n min-height: 360px;\n background: #000;\n opacity: 0.2;\n z-index: 99999;\n}\n.wepos-modal * {\n box-sizing: border-box;\n}\n.wepos-modal .wepos-modal-content {\n position: fixed;\n background: #fff;\n z-index: 100000;\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n -ms-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n}\n.wepos-modal .wepos-modal-main.has-footer {\n padding-bottom: 20px;\n}\n.wepos-modal header.modal-header {\n height: auto;\n background: #fcfcfc;\n padding: 1em 1.5em;\n border-bottom: 1px solid #ddd;\n}\n.wepos-modal header.modal-header h1 {\n margin: 0;\n padding: 0;\n font-size: 18px;\n font-weight: 700;\n line-height: 1.5em;\n}\n.wepos-modal .modal-close-link {\n cursor: pointer;\n position: absolute;\n top: 15px;\n right: 15px;\n}\n.wepos-modal .modal-close-link:before {\n font-size: 14px;\n color: #909090;\n}\n.wepos-modal .modal-body {\n min-height: 100px;\n overflow-y: scroll;\n}\n.wepos-modal footer {\n position: absolute;\n left: 0;\n right: 0;\n bottom: -30px;\n z-index: 100;\n padding: 10px;\n background: #fcfcfc;\n border-top: 1px solid #dfdfdf;\n -webkit-box-shadow: 0 -4px 4px -4px rgba(0, 0, 0, 0.1);\n box-shadow: 0 -4px 4px -4px rgba(0, 0, 0, 0.1);\n}\n.wepos-modal footer .inner {\n text-align: right;\n line-height: 23px;\n}\n@media only screen and (max-width: 500px) {\n .wepos-modal-content {\n width: 400px !important;\n top: 300px !important;\n }\n}\n@media only screen and (max-width: 376px) {\n .wepos-modal-content {\n width: 350px !important;\n top: 300px !important;\n }\n}\n@media only screen and (max-width: 320px) {\n .wepos-modal-content {\n width: 300px !important;\n top: 300px !important;\n }\n}\n.switch {\n position: relative;\n display: inline-block;\n width: 38px;\n height: 20px;\n}\n.switch input {\n display: none;\n}\n.switch input:checked + .slider {\n background-color: #3B80F4;\n}\n.switch input:checked + .slider:before {\n -webkit-transform: translateX(17px);\n -ms-transform: translateX(17px);\n transform: translateX(17px);\n}\n.switch input:focus + .slider {\n box-shadow: 0 0 1px #2196F3;\n}\n.switch .slider {\n position: absolute;\n cursor: pointer;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: #ccc;\n -webkit-transition: .4s;\n transition: .4s;\n}\n.switch .slider:before {\n position: absolute;\n content: \"\";\n height: 14px;\n width: 14px;\n left: 3px;\n bottom: 3px;\n background-color: white;\n -webkit-transition: .4s;\n transition: .4s;\n}\n.switch .slider.round {\n border-radius: 34px;\n}\n.switch .slider.round:before {\n border-radius: 50%;\n}\n"]} \ No newline at end of file diff --git a/assets/css/vendor.css b/assets/css/vendor.css old mode 100644 new mode 100755 diff --git a/assets/css/vendor.css.map b/assets/css/vendor.css.map old mode 100644 new mode 100755 diff --git a/assets/fonts/Flaticon.eot b/assets/fonts/Flaticon.eot old mode 100644 new mode 100755 diff --git a/assets/fonts/Flaticon.svg b/assets/fonts/Flaticon.svg old mode 100644 new mode 100755 diff --git a/assets/fonts/Flaticon.ttf b/assets/fonts/Flaticon.ttf old mode 100644 new mode 100755 diff --git a/assets/fonts/Flaticon.woff b/assets/fonts/Flaticon.woff old mode 100644 new mode 100755 diff --git a/assets/fonts/Flaticon.woff2 b/assets/fonts/Flaticon.woff2 old mode 100644 new mode 100755 diff --git a/assets/fonts/S6u8w4BMUTPHjxsAXC-v.ttf b/assets/fonts/S6u8w4BMUTPHjxsAXC-v.ttf old mode 100644 new mode 100755 diff --git a/assets/fonts/S6u9w4BMUTPHh6UVSwiPHA.ttf b/assets/fonts/S6u9w4BMUTPHh6UVSwiPHA.ttf old mode 100644 new mode 100755 diff --git a/assets/fonts/S6u_w4BMUTPHjxsI5wq_Gwfo.ttf b/assets/fonts/S6u_w4BMUTPHjxsI5wq_Gwfo.ttf old mode 100644 new mode 100755 diff --git a/assets/fonts/S6uyw4BMUTPHjx4wWw.ttf b/assets/fonts/S6uyw4BMUTPHjx4wWw.ttf old mode 100644 new mode 100755 diff --git a/assets/images/empty-cart.png b/assets/images/empty-cart.png old mode 100644 new mode 100755 diff --git a/assets/images/no-product.png b/assets/images/no-product.png old mode 100644 new mode 100755 diff --git a/assets/images/sale-completed.png b/assets/images/sale-completed.png old mode 100644 new mode 100755 diff --git a/assets/images/spinner-2x.gif b/assets/images/spinner-2x.gif old mode 100644 new mode 100755 diff --git a/assets/js/admin.js b/assets/js/admin.js old mode 100644 new mode 100755 diff --git a/assets/js/admin.min.js b/assets/js/admin.min.js old mode 100644 new mode 100755 diff --git a/assets/js/bootstrap.js b/assets/js/bootstrap.js old mode 100644 new mode 100755 diff --git a/assets/js/bootstrap.min.js b/assets/js/bootstrap.min.js old mode 100644 new mode 100755 diff --git a/assets/js/frontend.js b/assets/js/frontend.js old mode 100644 new mode 100755 index 7ab087c5..ef8b0b4b --- a/assets/js/frontend.js +++ b/assets/js/frontend.js @@ -1755,7 +1755,7 @@ let Modal = wepos_get_lib('Modal'); return { showResults: false, showVariationModal: false, - mode: 'scan', + mode: 'product', serachInput: '', searchableProduct: [], selectedVariationProduct: {}, @@ -4995,7 +4995,7 @@ var render = function() { }, [ _c("a", { attrs: { href: "#" }, on: { click: _vm.showFeeKeypad } }, [ - _vm._v(_vm._s(_vm.__("Add", "wepos")) + " " + _vm._s(_vm.name)) + _vm._v("+ " + _vm._s(_vm.name)) ]), _vm._v(" "), _c( @@ -6848,7 +6848,7 @@ var render = function() { _vm._v(" "), _c("p", [ _vm._v( - _vm._s(_vm.__("Empty Cart", "wepos")) + _vm._s(_vm.__("Cart Empty", "wepos")) ) ]) ]) diff --git a/assets/js/frontend.min.js b/assets/js/frontend.min.js deleted file mode 100644 index e11bd4fd..00000000 --- a/assets/js/frontend.min.js +++ /dev/null @@ -1 +0,0 @@ -pluginWebpack([0],Array(27).concat([function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=o(a(28)),i=o(a(30));function o(t){return t&&t.__esModule?t:{default:t}}var r=wepos_get_lib("Vue"),n=wepos_get_lib("Vuex");r.use(n),e.default=new n.Store({modules:{Cart:s.default,Order:i.default}})},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s,i=a(29),o=(s=i)&&s.__esModule?s:{default:s};e.default={namespaced:!0,state:{settings:{},availableTax:{},cartdata:{line_items:[],fee_lines:[]}},getters:{getSubtotal:function(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:function(t){var e=0;return weLo_.forEach(t.cartdata.fee_lines,function(t,a){"fee"==t.type&&(e+=Math.abs(t.total))}),e},getTotalDiscount:function(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:function(t){var e=0;return weLo_.forEach(t.cartdata.line_items,function(t,a){e+=Math.abs(t.tax_amount*t.quantity)}),e},getTotalTax:function(t){var e=0,a=0;return weLo_.forEach(t.cartdata.line_items,function(t,a){e+=Math.abs(t.tax_amount*t.quantity)}),void 0!=t.settings.woo_tax&&"incl"==t.settings.woo_tax.wc_tax_display_cart&&(e=0),weLo_.forEach(t.cartdata.fee_lines,function(e,s){if("fee"==e.type&&"taxable"==e.tax_status){var i=""===e.tax_class?"standard":e.tax_class,o=weLo_.find(t.availableTax,{class:i.toString()});void 0!==o&&(a+=Math.abs(e.total)*Math.abs(o.rate)/100)}}),e+a},getOrderTotal:function(t,e){return e.getSubtotal+e.getTotalFee+e.getTotalTax},getTotal:function(t,e){return e.getOrderTotal-e.getTotalDiscount}},mutations:{setSettings:function(t,e){t.settings=e},setAvailableTax:function(t,e){t.availableTax=e},setCartData:function(t,e){weLo_.isEmpty(e)?t.cartdata={line_items:[],fee_lines:[]}:t.cartdata=Object.assign({},e)},addToCartItem:function(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.default.hasStock(e)&&t.cartdata.line_items.push(a):o.default.hasStock(e,t.cartdata.line_items[s].quantity)&&(t.cartdata.line_items[s].quantity+=1)},removeCartItem:function(t,e){t.cartdata.line_items.splice(e,1)},addCartItemQuantity:function(t,e){var a=t.cartdata.line_items[e];o.default.hasStock(a,a.quantity)&&t.cartdata.line_items[e].quantity++},removeCartItemQuantity:function(t,e){t.cartdata.line_items[e].quantity<=1?t.cartdata.line_items[e].quantity=1:t.cartdata.line_items[e].quantity--},toggleEditQuantity:function(t,e){t.cartdata.line_items[e].editQuantity=!t.cartdata.line_items[e].editQuantity},addDiscount:function(t,e){t.cartdata.fee_lines.push({name:e.title,type:"discount",value:e.value.toString(),isEdit:!1,discount_type:e.type,tax_status:"none",tax_class:"",total:0})},addFee:function(t,e){t.cartdata.fee_lines.push({name:e.title,type:"fee",value:e.value.toString(),isEdit:!1,fee_type:e.type,tax_status:"none",tax_class:"",total:0})},saveFeeValue:function(t,e){t.cartdata.fee_lines.splice(e.key,1,e.feeData),t.cartdata.fee_lines[e.key].isEdit=!1},editFeeValue:function(t,e){t.cartdata.fee_lines[e].isEdit=!0},cancelSaveFeeValue:function(t,e){t.cartdata.fee_lines[e].isEdit=!1},removeFeeLineItems:function(t,e){t.cartdata.fee_lines.splice(e,1)},emptyCart:function(t){t.cartdata={line_items:[],fee_lines:[]}},calculateDiscount:function(t,e){t.cartdata.fee_lines.length>0&&weLo_.forEach(t.cartdata.fee_lines,function(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:function(t,e){t.cartdata.fee_lines.length>0&&weLo_.forEach(t.cartdata.fee_lines,function(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:function(t,e){t.commit("setSettings",e)},setAvailableTaxAction:function(t,e){t.commit("setAvailableTax",e)},setCartDataAction:function(t,e){t.commit("setCartData",e),t.commit("calculateDiscount",t.getters),t.commit("calculateFee",t.getters)},addToCartAction:function(t,e){t.commit("addToCartItem",e),t.commit("calculateDiscount",t.getters),t.commit("calculateFee",t.getters)},removeCartItemAction:function(t,e){t.commit("removeCartItem",e),t.commit("calculateDiscount",t.getters),t.commit("calculateFee",t.getters)},addItemQuantityAction:function(t,e){t.commit("addCartItemQuantity",e),t.commit("calculateDiscount",t.getters),t.commit("calculateFee",t.getters)},removeItemQuantityAction:function(t,e){t.commit("removeCartItemQuantity",e),t.commit("calculateDiscount",t.getters),t.commit("calculateFee",t.getters)},toggleEditQuantityAction:function(t,e){t.commit("toggleEditQuantity",e)},addDiscountAction:function(t,e){t.commit("addDiscount",e),t.commit("calculateDiscount",t.getters),t.commit("calculateFee",t.getters)},addFeeAction:function(t,e){t.commit("addFee",e),t.commit("calculateDiscount",t.getters),t.commit("calculateFee",t.getters)},removeFeeLineItemsAction:function(t,e){t.commit("removeFeeLineItems",e),t.commit("calculateDiscount",t.getters),t.commit("calculateFee",t.getters)},saveFeeValueAction:function(t,e){t.commit("saveFeeValue",e),t.commit("calculateDiscount",t.getters),t.commit("calculateFee",t.getters)},editFeeValueAction:function(t,e){t.commit("editFeeValue",e)},cancelSaveFeeValueAction:function(t,e){t.commit("cancelSaveFeeValue",e)},emptyCartAction:function(t){t.commit("emptyCart")},calculateDiscount:function(t){t.commit("calculateDiscount",t.getters)},calculateFee:function(t){t.commit("calculateFee",t.getters)}}}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={hasStock:function(t){var 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}}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={namespaced:!0,state:{orderdata:{billing:{},shipping:{},customer_id:0,customer_note:"",payment_method:"",payment_method_title:""}},getters:{},mutations:{setOrderData:function(t,e){weLo_.isEmpty(e)?t.orderdata={billing:{},shipping:{},customer_id:0,customer_note:"",payment_method:"",payment_method_title:""}:t.orderdata=e},setCustomer:function(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:function(t){t.orderdata={billing:{},shipping:{},customer_id:0,customer_note:"",payment_method:"",payment_method_title:""}},setCustomerNote:function(t,e){t.orderdata.customer_note=e.trim()},removeCustomerNote:function(t){t.orderdata.customer_note=""},setGateway:function(t,e){t.orderdata.payment_method=e.id,t.orderdata.payment_method_title=e.title}},actions:{setOrderDataAction:function(t,e){t.commit("setOrderData",e)},setCustomerAction:function(t,e){t.commit("setCustomer",e)},emptyOrderdataAction:function(t){t.commit("emptyOrderdata")},setCustomerNoteAction:function(t,e){t.commit("setCustomerNote",e)},removeCustomerNoteAction:function(t){t.commit("removeCustomerNote")},setGatewayAction:function(t,e){t.commit("setGateway",e)}}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,a){"use strict";e.a={name:"App"}},function(t,e,a){"use strict";var s=a(146),i=a(149),o=a(152),r=a(155),n=a(69),c=a.n(n),l=a(162),u=a(165),d=a(168);let p=wepos_get_lib("Modal");e.a={name:"Home",components:{ProductSearch:i.a,CustomerSearch:o.a,Overlay:s.a,Modal:p,MugenScroll:c.a,FeeKeypad:r.a,PrintReceipt:l.a,PrintReceiptHtml:u.a,CustomerNote:d.a},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 void 0!=e&&Object.keys(e).length>0}):this.products},changeAmount(){var t=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),i=[];if(s.length>0){for(var o=s.length-1;o>=0;o--)if(i.length>0){var r=weLo_.find(s,{id:s[o+1].parent_id});if(void 0!=r&&(i.push(r),null==r.parent_id))break}else i.push(s[o]);return i.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)}},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(){return this.cartdata.line_items.length>0&&this.isSelectGateway()},processPayment(t){if(t.preventDefault(),this.ableToProcess()){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 .right-content").find(".content");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()}).fail(t=>{a.unblock(),alert(t.responseJSON.message)})}).fail(t=>{a.unblock(),alert(t.responseJSON.message)})}},initPayment(){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!(void 0==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)},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.products=this.products.concat(t),this.page+=1,this.totalPages=parseInt(a.getResponseHeader("X-WP-TotalPages")),this.productLoading=!1}).then((t,e,a)=>{this.fetchProducts()}):this.productLoading=!1},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(){var t=this.findMatchingVariations(this.selectedVariationProduct.variations,this.selectedAttribute)[0];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.$store.dispatch("Cart/addToCartAction",t)},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(){var t,e;wepos.api.get(wepos.rest.root+wepos.rest.wcversion+"/products/categories?hide_empty=true&_fields=id,name,parent_id&per_page=100").then(a=>{a.sort(function(t,e){return t.name.localeCompare(e.name)});var s=(t=[],e={},a.forEach(function(a){e[a.id]={response:a,children:e[a.id]&&e[a.id].children},null===a.parent_id?t.push(e[a.id]):(e[a.parent_id]=e[a.parent_id]||{},e[a.parent_id].children=e[a.parent_id].children||[],e[a.parent_id].children.push(e[a.id]))}),t),i={id:-1,level:0,name:this.__("All categories","wepos"),parent_id:null},o=s.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=o,this.categories.unshift(i),this.selectedCategory=i,void 0!==this.$route.query.category&&(this.selectedCategory=weLo_.find(a,{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})}},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)}}},function(t,e,a){"use strict";e.a={name:"Overlay",props:{show:{type:Boolean}}}},function(t,e,a){"use strict";var s=a(64),i=a(26);a.n(i);let o=wepos_get_lib("Modal");e.a={name:"ProductInlineSearch",props:{products:{type:Array,default:()=>[]},settings:{type:Object,default:()=>({})}},components:{Modal:o,KeyboardControl:s.a},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()},selectedHandler(t){var e=this.searchableProduct[t];"simple"==e.type?this.addToCartAction(e):this.selectVariation(e)},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()}}},function(t,e,a){"use strict";var s=a(65),i=a(0)(s.a,null,!1,null,null,null);i.options.__file="assets/src/frontend/components/KeyboardControl.vue",e.a=i.exports},function(t,e,a){"use strict";e.a={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")):13===e&&this.handleEnter(t)},handleEnter(t){t.preventDefault(),this.$emit("selected",this.selectedIndex)},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({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},selectedHandler(t){var e=this.customers[t];this.selectCustomer(e)},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,i=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)}}},function(t,e,a){"use strict";var s=a(157);e.a={name:"FeeKeypad",components:{keyboard:s.a},computed:{hotkeys(){return{discount:{f4:this.showFeeKeypad,esc:this.hideFeeKepad},fee:{f5:this.showFeeKeypad,esc:this.hideFeeKepad}}[this.shortKey]}},props:{name:{type:String,default:"Fee"},className:{type:String,default:""},shortKey:{type:String,default:""}},data:()=>({input:"",displayValue:"",viewFeeKeypad:!1}),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(t){this.$emit("inputfee",t.value.toString(),"percent"),this.viewFeeKeypad=!1,this.input="",this.displayValue=""},flatFee(t){this.$emit("inputfee",t.value.toString(),"flat"),this.viewFeeKeypad=!1,this.input="",this.displayValue=""},change(t){isNaN(t)?(this.input=this.displayValue,""==this.displayValue&&(this.input="")):(this.displayValue=t,this.input=this.displayValue),jQuery(this.$refs.feeinput).focus(),""==this.input&&jQuery(this.$refs.feeinput).focus()},inputChange(){isNaN(this.displayValue)?this.displayValue=this.input:this.input=this.displayValue,""==this.input&&jQuery(this.$refs.feeinput).focus()},showFeeKeypad(t){t.preventDefault(),this.viewFeeKeypad=!0,setTimeout(()=>{jQuery(this.$refs.feeinput).focus()},500)}}}},function(t,e,a){"use strict";const s="7440011c983cf39ae730b1f831e2922ac5a76910",i="f630c4abcae620278f82e142a526ef325c2a773a",o="ad982c66898e02a5dab419ea7568421b03f68ee2";e.a={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("||",s).replace("{{",i).replace("}}",o).split("|")},buttons(){return this.lines.map(t=>{let e=[],a=null;return t.match(new RegExp(`(${i}|${o}|${s}|.)`,"g")).forEach(t=>{if("{"===t)a="";else if("}"===t){let t=a.split(":"),s=t.length>1?t[0]:"",i=t.length>1?t[1]:t[0],o=t.length>2?t[2]:null,r=null;r=["append","backspace","space","clear","goto"].indexOf(i)>=0?this[i].bind(this,o):this.$emit.bind(this,i,this),e.push({type:"action",action:{name:i.replace(/\s+/g,"-").toLowerCase(),callable:r},value:s,args:o}),a=null}else null!==a?a+=t:(t===s&&(t="|"),t===i&&(t="{"),t===o&&(t="}"),e.push({type:"char",action:{name:null,callable:this.append.bind(this,t)},value:t,args:null}))}),e})},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{window.print()},500)}}}},function(t,e,a){"use strict";e.a={name:"ReceiptPrintHtml",props:{printdata:{type:Object,default:()=>({})},settings:{type:Object,default:()=>({})}},methods:{formatDate:t=>(t=new Date(t)).toLocaleString()}}},function(t,e,a){"use strict";e.a={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=""}}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,a){"use strict";var s=r(a(139)),i=r(a(143)),o=r(a(27));function r(t){return t&&t.__esModule?t:{default:t}}var n=wepos_get_lib("Vue");n.config.productionTip=!1,new n({el:"#vue-frontend-app",router:i.default,store:o.default,render:function(t){return t(s.default)},created:function(){this.setLocaleData(wepos.i18n.wepos)}})},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a(60),i=a(142),o=!1;var r=function(t){o||a(140)},n=a(0)(s.a,i.a,!1,r,null,null);n.options.__file="assets/src/frontend/App.vue",e.default=n.exports},function(t,e){},,function(t,e,a){"use strict";var s=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{attrs:{id:"vue-frontend-app"}},[e("router-view")],1)};s._withStripped=!0;var i={render:s,staticRenderFns:[]};e.a=i},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s,i=a(144),o=(s=i)&&s.__esModule?s:{default:s};var r=wepos_get_lib("Vue"),n=wepos_get_lib("Router");r.use(n),e.default=new n({routes:wepos.hooks.applyFilters("wepos_frontend_routes",[{path:"/",name:"Home",component:o.default}])})},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a(61),i=a(171),o=!1;var r=function(t){o||a(145)},n=a(0)(s.a,i.a,!1,r,null,null);n.options.__file="assets/src/frontend/components/Home.vue",e.default=n.exports},function(t,e){},function(t,e,a){"use strict";var s=a(62),i=a(148),o=!1;var r=function(t){o||a(147)},n=a(0)(s.a,i.a,!1,r,null,null);n.options.__file="assets/src/frontend/components/Overlay.vue",e.a=n.exports},function(t,e){},function(t,e,a){"use strict";var s=function(){var t=this.$createElement,e=this._self._c||t;return this.show?e("div",{staticClass:"overlay"}):this._e()};s._withStripped=!0;var i={render:s,staticRenderFns:[]};e.a=i},function(t,e,a){"use strict";var s=a(63),i=a(151),o=!1;var r=function(t){o||a(150)},n=a(0)(s.a,i.a,!1,r,null,null);n.options.__file="assets/src/frontend/components/ProductSearch.vue",e.a=n.exports},function(t,e){},function(t,e,a){"use strict";var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.outside,expression:"outside"}],staticClass:"search-box"},[a("form",{attrs:{action:"",autocomplete:"off"},on:{submit:function(e){e.preventDefault(),t.handleProductScan(e)}}},[a("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){e.preventDefault(),t.triggerFocus(e)},keyup:function(e){e.preventDefault(),t.searchProduct(e)},input:function(e){e.target.composing||(t.serachInput=e.target.value)}}}),t._v(" "),"product"==t.mode?a("span",{staticClass:"search-icon flaticon-musica-searcher"}):t._e(),t._v(" "),"scan"==t.mode?a("span",{staticClass:"search-icon flaticon-supermarket-scanner"}):t._e(),t._v(" "),a("div",{directives:[{name:"hotkey",rawName:"v-hotkey",value:t.hotkeys,expression:"hotkeys"}],staticClass:"search-type"},[a("a",{class:{active:"product"==t.mode},attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.changeMode("product")}}},[t._v(t._s(t.__("Product","wepos")))]),t._v(" "),a("a",{class:{active:"scan"==t.mode},attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.changeMode("scan")}}},[t._v(t._s(t.__("Scan","wepos")))])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.showResults&&"product"==t.mode,expression:"showResults && mode=='product'"}],staticClass:"search-result"},[t.searchableProduct.length?a("div",[a("keyboard-control",{attrs:{listLength:t.searchableProduct.length},on:{selected:t.selectedHandler,"key-down":t.onKeyDown,"key-up":t.onKeyUp},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.selectedIndex;return t._l(t.searchableProduct,function(e,i){return a("li",{key:i,staticClass:"product-search-item",class:{selected:i===s}},["simple"==e.type?[a("a",{staticClass:"wepos-clearfix",attrs:{href:"#"},on:{click:function(a){t.addToCartAction(e)}}},[t._v(t._s(e.name)+"\n "),a("span",{staticClass:"price"},[t._v(t._s(t.formatPrice(e.price)))]),t._v(" "),e.sku?a("span",{staticClass:"sku"},[t._v(t._s(e.sku))]):t._e(),t._v(" "),a("span",{staticClass:"action flaticon-enter-arrow wepos-right"})])]:t._e(),t._v(" "),"variable"==e.type?[a("a",{attrs:{href:"#"},on:{click:function(a){a.preventDefault(),t.selectVariation(e)}}},[t._v(t._s(e.name)+"\n "),a("span",{staticClass:"price"},[t._v(t._s(t.formatPrice(e.price)))]),t._v(" "),e.sku?a("span",{staticClass:"sku"},[t._v(t._s(e.sku))]):t._e(),t._v(" "),a("span",{staticClass:"action flaticon-enter-arrow wepos-right"})])]:t._e()],2)})}}])})],1):a("div",{staticClass:"no-data-found"},[t._v("\n "+t._s(t.__("No product found","wepos"))+"\n ")]),t._v(" "),a("div",{staticClass:"suggession"},[a("span",{staticClass:"term"},[a("span",{staticClass:"flaticon-swap"}),t._v(" "+t._s(t.__("to navigate","wepos"))+"\n ")]),t._v(" "),a("span",{staticClass:"term"},[a("span",{staticClass:"flaticon-enter-arrow"}),t._v(" "+t._s(t.__("to select","wepos"))+"\n ")]),t._v(" "),a("span",{staticClass:"term"},[a("strong",[t._v("esc")]),t._v(" "+t._s(t.__("to dismiss","wepos"))+"\n ")])])])]),t._v(" "),t.showVariationModal?a("modal",{attrs:{title:t.__("Select Variations","wepos"),width:"500px",height:"auto",footer:!0,header:!0},on:{close:function(e){t.showVariationModal=!1}}},[a("template",{slot:"body"},t._l(t.selectedVariationProduct.attributes,function(e){return a("div",{staticClass:"variation-attribute-wrapper"},[a("div",{staticClass:"attribute"},[a("p",[t._v(t._s(e.name))]),t._v(" "),a("div",{staticClass:"options"},[t._l(e.options,function(s){return[a("label",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.chosenAttribute[e.name],expression:"chosenAttribute[attribute.name]"}],attrs:{type:"radio"},domProps:{value:s,checked:t._q(t.chosenAttribute[e.name],s)},on:{change:function(a){t.$set(t.chosenAttribute,e.name,s)}}}),t._v(" "),a("div",{staticClass:"box"},[t._v("\n "+t._s(s)+"\n ")])])]})],2)])])})),t._v(" "),a("template",{slot:"footer"},[a("button",{staticClass:"add-variation-btn",attrs:{disabled:t.attributeDisabled},on:{click:function(e){t.addVariationProduct()}}},[t._v(t._s(t.__("Add Product","wepos")))])])],2):t._e()],1)};s._withStripped=!0;var i={render:s,staticRenderFns:[]};e.a=i},function(t,e,a){"use strict";var s=a(66),i=a(154),o=!1;var r=function(t){o||a(153)},n=a(0)(s.a,i.a,!1,r,null,null);n.options.__file="assets/src/frontend/components/CustomerSearch.vue",e.a=n.exports},function(t,e){},function(t,e,a){"use strict";var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("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"},[a("form",{attrs:{action:"",autocomplete:"off"}},[a("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"}},[a("defs",[a("linearGradient",{attrs:{x1:"14.5524094%",y1:"14.6909544%",x2:"82.7722259%",y2:"85.2519444%",id:"linearGradient-1"}},[a("stop",{attrs:{"stop-color":"#C444FB",offset:"0%"}}),t._v(" "),a("stop",{attrs:{"stop-color":"#5B56D7",offset:"100%"}})],1)],1),t._v(" "),a("g",{attrs:{id:"Page-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[a("g",{attrs:{id:"POS-Design---Dokan-P2",transform:"translate(-759.000000, -27.000000)"}},[a("g",{attrs:{id:"Group",transform:"translate(759.000000, 27.000000)"}},[a("circle",{attrs:{id:"Oval",fill:"url(#linearGradient-1)","fill-rule":"nonzero",cx:"9.5",cy:"9.5",r:"9.5"}}),t._v(" "),a("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)"}},[a("g",{attrs:{id:"flaticon1543304699-svg"}},[a("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(" "),a("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(" "),a("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(" "),a("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(" "),a("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){e.preventDefault(),t.triggerFocus(e)},keyup:t.searchCustomer,input:function(e){e.target.composing||(t.serachInput=e.target.value)}}}),t._v(" "),a("span",{staticClass:"add-new-customer flaticon-add",on:{click:function(e){e.preventDefault(),t.addNewCustomer()}}}),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.showCustomerResults,expression:"showCustomerResults"}],staticClass:"search-result"},[t.customers.length?a("div",[a("keyboard-control",{attrs:{listLength:t.customers.length},on:{selected:t.selectedHandler,"key-down":t.onKeyDown,"key-up":t.onKeyUp},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.selectedIndex;return t._l(t.customers,function(e,i){return a("li",{key:i,staticClass:"customer-search-item",class:{selected:i===s}},[a("a",{staticClass:"wepos-clearfix",attrs:{href:"#"},on:{click:function(a){t.selectCustomer(e)}}},[a("span",{staticClass:"avatar wepos-left"},[a("img",{attrs:{src:e.avatar_url,alt:e.first_name+" "+e.last_name}})]),t._v(" "),a("span",{staticClass:"name wepos-left"},[t._v(t._s(e.first_name+" "+e.last_name)),a("span",{staticClass:"metadata"},[t._v(t._s(e.email))])]),t._v(" "),a("span",{staticClass:"action flaticon-enter-arrow wepos-right"})])])})}}])})],1):a("div",{staticClass:"no-data-found"},[t._v("\n "+t._s(t.__("No customer found","wepos"))+"\n ")]),t._v(" "),a("div",{staticClass:"suggession"},[a("span",{staticClass:"term"},[a("span",{staticClass:"flaticon-swap"}),t._v(" "+t._s(t.__("to navigate","wepos"))+"\n ")]),t._v(" "),a("span",{staticClass:"term"},[a("span",{staticClass:"flaticon-enter-arrow"}),t._v(" "+t._s(t.__("to select","wepos"))+"\n ")]),t._v(" "),a("span",{staticClass:"term"},[a("strong",[t._v("esc")]),t._v(" "+t._s(t.__("to dismiss","wepos"))+"\n ")])])])]),t._v(" "),t.showNewCustomerModal?a("modal",{attrs:{title:t.__("Add New Customer","wepos"),width:"700px",footer:!0,header:!0},on:{close:t.closeNewCustomerModal}},[a("template",{slot:"body"},[a("div",{staticClass:"wepos-new-customer-form"},[a("form",{staticClass:"wepos-form",attrs:{action:"",autocomplete:"off"}},[a("div",{staticClass:"form-row col-2"},[a("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(" "),a("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(" "),a("div",{staticClass:"form-row"},[a("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(" "),a("div",{staticClass:"form-row col-2"},[a("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(" "),a("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(" "),a("div",{staticClass:"form-row col-2"},[a("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(e){return[a("span",{domProps:{innerHTML:t._s(e.option.name)}})]}},{key:"option",fn:function(e){return[a("span",{domProps:{innerHTML:t._s(e.option.name)}})]}}]),model:{value:t.selectedCountry,callback:function(e){t.selectedCountry=e},expression:"selectedCountry"}},[a("template",{slot:"noResult"},[a("div",{staticClass:"no-data-found"},[t._v(t._s(t.__("No country found","wepos")))])])],2),t._v(" "),t.stateList.length>0?[a("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(e){return[a("span",{domProps:{innerHTML:t._s(e.option.name)}})]}},{key:"option",fn:function(e){return[a("span",{domProps:{innerHTML:t._s(e.option.name)}})]}}]),model:{value:t.selectedState,callback:function(e){t.selectedState=e},expression:"selectedState"}},[a("template",{slot:"noResult"},[a("div",{staticClass:"no-data-found"},[t._v(t._s(t.__("No country found","wepos")))])])],2)]:[a("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(" "),a("div",{staticClass:"form-row col-2"},[a("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(" "),a("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(" "),a("div",{staticClass:"form-row"},[a("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(" "),a("template",{slot:"footer"},[a("button",{staticClass:"add-new-customer-btn add-variation-btn",attrs:{disabled:t.isDisabled},on:{click:function(e){t.createCustomer()}}},[t._v(t._s(t.__("Add Customer","wepos")))])])],2):t._e()],1)};s._withStripped=!0;var i={render:s,staticRenderFns:[]};e.a=i},function(t,e,a){"use strict";var s=a(67),i=a(160),o=!1;var r=function(t){o||a(156)},n=a(0)(s.a,i.a,!1,r,null,null);n.options.__file="assets/src/frontend/components/FeeKeypad.vue",e.a=n.exports},function(t,e){},function(t,e,a){"use strict";var s=a(68),i=a(159),o=!1;var r=function(t){o||a(158)},n=a(0)(s.a,i.a,!1,r,null,null);n.options.__file="assets/src/frontend/components/Keyboard.vue",e.a=n.exports},function(t,e){},function(t,e,a){"use strict";var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("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(e){return a("div",{staticClass:"vue-keyboard-row",attrs:{role:"row","data-keys":e.length}},t._l(e,function(e){return a("button",{staticClass:"vue-keyboard-key",class:e.type,attrs:{role:"button","data-args":e.args,"data-text":e.value,"data-action":e.action.name},domProps:{innerHTML:t._s(e.value)},on:{click:function(t){t.preventDefault(),e.action.callable(t)}}})}))}))};s._withStripped=!0;var i={render:s,staticRenderFns:[]};e.a=i},function(t,e,a){"use strict";var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"hotkey",rawName:"v-hotkey",value:t.hotkeys,expression:"hotkeys"}],staticClass:"wepos-fee-keypad-wrap",class:t.className},[a("v-popover",{attrs:{offset:"5","popover-base-class":"fee-keypad tooltip popover",placement:"top",open:t.viewFeeKeypad}},[a("a",{attrs:{href:"#"},on:{click:t.showFeeKeypad}},[t._v(t._s(t.__("Add","wepos"))+" "+t._s(t.name))]),t._v(" "),a("template",{slot:"popover"},[a("form",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.displayValue,expression:"displayValue"}],ref:"feeinput",attrs:{type:"text"},domProps:{value:t.displayValue},on:{keyup:t.inputChange,input:function(e){e.target.composing||(t.displayValue=e.target.value)}}})]),t._v(" "),a("keyboard",{attrs:{layouts:t.layout()},on:{percent:t.percentFee,flat:t.flatFee,input:t.change},model:{value:t.input,callback:function(e){t.input=e},expression:"input"}})],1)],2)],1)};s._withStripped=!0;var i={render:s,staticRenderFns:[]};e.a=i},,function(t,e,a){"use strict";var s=a(70),i=a(164),o=!1;var r=function(t){o||a(163)},n=a(0)(s.a,i.a,!1,r,null,null);n.options.__file="assets/src/frontend/components/PrintReceipt.vue",e.a=n.exports},function(t,e){},function(t,e,a){"use strict";var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"wepos-print-receipt"}},[a("button",{staticClass:"print-btn",on:{click:function(e){e.preventDefault(),t.printReceipt()}}},[a("span",{staticClass:"icon flaticon-printer"}),t._v(" "),a("span",{staticClass:"label"},[t._v(t._s(t.__("Print Receipt","wepos")))])])])};s._withStripped=!0;var i={render:s,staticRenderFns:[]};e.a=i},function(t,e,a){"use strict";var s=a(71),i=a(167),o=!1;var r=function(t){o||a(166)},n=a(0)(s.a,i.a,!1,r,null,null);n.options.__file="assets/src/frontend/components/PrintReceiptHtml.vue",e.a=n.exports},function(t,e){},function(t,e,a){"use strict";var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.settings.wepos_receipts?a("div",{staticClass:"wepos-checkout-print-wrapper"},[a("div",{staticClass:"header",domProps:{innerHTML:t._s(t.settings.wepos_receipts.receipt_header)}}),t._v(" "),a("div",{staticClass:"order-info"},[a("span",{staticClass:"wepos-left"},[a("strong",[t._v(t._s(t.__("Order ID","wepos"))+": #"+t._s(t.printdata.order_id))])]),t._v(" "),a("span",{staticClass:"wepos-right"},[a("strong",[t._v(t._s(t.__("Order Date","wepos"))+": "+t._s(t.formatDate(t.printdata.order_date)))])]),t._v(" "),a("div",{staticClass:"wepos-clearfix"})]),t._v(" "),a("div",{staticClass:"content"},[a("table",{staticClass:"sale-summary"},[a("tbody",[t._l(t.printdata.line_items,function(e){return a("tr",[a("td",{staticClass:"name"},[t._v("\n "+t._s(e.name)+"\n "),e.attribute.length>0?a("div",{staticClass:"attribute"},[a("ul",t._l(e.attribute,function(e){return a("li",[a("span",{staticClass:"attr_name"},[t._v(t._s(e.name))]),t._v(": "),a("span",{staticClass:"attr_value"},[t._v(t._s(e.option))])])}))]):t._e()]),t._v(" "),a("td",{staticClass:"quantity"},[t._v(t._s(e.quantity))]),t._v(" "),a("td",{staticClass:"price"},[e.on_sale?[a("span",{staticClass:"regular-price"},[t._v(t._s(t.formatPrice(e.quantity*e.regular_price)))]),t._v(" "),a("span",{staticClass:"sale-price"},[t._v(t._s(t.formatPrice(e.quantity*e.sale_price)))])]:[a("span",{staticClass:"sale-price"},[t._v(t._s(t.formatPrice(e.quantity*e.regular_price)))])]],2)])}),t._v(" "),a("tr",{staticClass:"cart-meta-data"},[a("td",{staticClass:"name",attrs:{colspan:"2"}},[t._v("\n "+t._s(t.__("Subtotal","wepos"))+"\n "),"incl"==t.settings.woo_tax.wc_tax_display_cart?a("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(" "),a("td",{staticClass:"price"},[t._v(t._s(t.formatPrice(t.printdata.subtotal)))])]),t._v(" "),t._l(t.printdata.fee_lines,function(e,s){return a("tr",{staticClass:"cart-meta-data"},["discount"==e.type?[a("td",{staticClass:"name",attrs:{colspan:"2"}},[t._v(t._s(t.__("Discount","wepos"))+" "),a("span",{staticClass:"metadata"},[t._v(t._s("percent"==e.discount_type?e.value+"%":t.formatPrice(e.value)))])]),t._v(" "),a("td",{staticClass:"price"},[t._v("-"+t._s(t.formatPrice(Math.abs(e.total))))])]:[a("td",{staticClass:"name",attrs:{colspan:"2"}},[t._v(t._s(t.__("Fee","wepos"))+" "),a("span",{staticClass:"metadata"},[t._v(t._s(e.name)+" "+t._s("percent"==e.fee_type?e.value+"%":t.formatPrice(e.value)))])]),t._v(" "),a("td",{staticClass:"price"},[t._v("-"+t._s(t.formatPrice(Math.abs(e.total))))])]],2)}),t._v(" "),t.printdata.taxtotal?a("tr",[a("td",{staticClass:"name",attrs:{colspan:"2"}},[t._v(t._s(t.__("Tax","wepos")))]),t._v(" "),a("td",{staticClass:"price"},[t._v(t._s(t.formatPrice(t.printdata.taxtotal)))])]):t._e(),t._v(" "),a("tr",[a("td",{staticClass:"name",attrs:{colspan:"2"}},[t._v(t._s(t.__("Order Total","wepos")))]),t._v(" "),a("td",{staticClass:"price"},[t._v(t._s(t.formatPrice(t.printdata.ordertotal)))])]),t._v(" "),t._m(0),t._v(" "),a("tr",[a("td",{attrs:{colspan:"2"}},[t._v(t._s(t.__("Payment method","wepos")))]),t._v(" "),a("td",{staticClass:"price"},[t._v(t._s(t.printdata.gateway.title||""))])]),t._v(" "),(t.printdata.gateway.id="wepos_cash")?[a("tr",[a("td",{attrs:{colspan:"2"}},[t._v(t._s(t.__("Cash Given","wepos")))]),t._v(" "),a("td",{staticClass:"price"},[t._v(t._s(t.formatPrice(t.printdata.cashamount)))])]),t._v(" "),a("tr",[a("td",{attrs:{colspan:"2"}},[t._v(t._s(t.__("Change Money","wepos")))]),t._v(" "),a("td",{staticClass:"price"},[t._v(t._s(t.formatPrice(t.printdata.changeamount)))])])]:t._e()],2)])]),t._v(" "),a("div",{staticClass:"footer",domProps:{innerHTML:t._s(t.settings.wepos_receipts.receipt_footer)}})]):t._e()};s._withStripped=!0;var i={render:s,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("tr",{staticClass:"divider"},[e("td",{attrs:{colspan:"3"}})])}]};e.a=i},function(t,e,a){"use strict";var s=a(72),i=a(170),o=!1;var r=function(t){o||a(169)},n=a(0)(s.a,i.a,!1,r,null,null);n.options.__file="assets/src/frontend/components/CustomerNote.vue",e.a=n.exports},function(t,e){},function(t,e,a){"use strict";var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"hotkey",rawName:"v-hotkey",value:t.hotkeys,expression:"hotkeys"}],staticClass:"wepos-custom-note-wrap"},[a("v-popover",{attrs:{offset:"5","popover-base-class":"customer-note tooltip popover",placement:"top",open:t.viewNotePopover}},[a("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.openNote(e)}}},[t._v(t._s(t.__("Add Note","wepos")))]),t._v(" "),a("template",{slot:"popover"},[a("form",{on:{submit:function(e){e.preventDefault(),t.addCustomerNote(e)}}},[a("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(" "),a("button",{staticClass:"add-note-btn",attrs:{type:"submit",disabled:""==t.customerNote}},[t._v(t._s(t.__("Add Note","wepos")))])])])],2)],1)};s._withStripped=!0;var i={render:s,staticRenderFns:[]};e.a=i},function(t,e,a){"use strict";var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"hotkey",rawName:"v-hotkey",value:t.hotkeys,expression:"hotkeys"}],attrs:{id:"wepos-main"}},[a("div",{staticClass:"content-product"},[a("div",{staticClass:"top-panel wepos-clearfix"},[a("div",{staticClass:"search-bar"},[a("product-search",{attrs:{products:t.products,settings:t.settings},on:{onProductAdded:t.addToCart}})],1),t._v(" "),a("div",{staticClass:"category"},[a("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(e){return[a("span",[t._l(e.option.level,function(e){return[t._v("\n  \n ")]}),t._v("\n "+t._s(e.option.name)+"\n ")],2)]}}]),model:{value:t.selectedCategory,callback:function(e){t.selectedCategory=e},expression:"selectedCategory"}},[a("template",{slot:"noResult"},[a("div",{staticClass:"no-data-found"},[t._v(t._s(t.__("Not found","wepos")))])])],2)],1),t._v(" "),a("div",{staticClass:"toggle-view"},[a("div",{staticClass:"product-toggle"},[a("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(" "),a("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?a("div",{staticClass:"breadcrumb"},[a("ul",[t._l(t.getBreadCrums,function(e){return[a("router-link",{attrs:{tag:"li",to:{name:"Home",query:{category:e.id}}}},[a("a",[t._v(t._s(e.name))])])]})],2),t._v(" "),a("span",{staticClass:"close-breadcrumb flaticon-cancel-music",on:{click:function(e){e.preventDefault(),t.removeBreadcrums(e)}}})]):t._e(),t._v(" "),a("div",{ref:"items-wrapper",staticClass:"items-wrapper",class:t.productView},[t.productLoading?t._e():[t._l(t.getFilteredProduct,function(e){return t.getFilteredProduct.length>0?a("div",{staticClass:"item"},["simple"==e.type?[a("div",{staticClass:"item-wrap",on:{click:function(a){if(!("button"in a)&&t._k(a.keyCode,"prevnt",void 0,a.key))return null;t.addToCart(e)}}},[a("div",{staticClass:"img"},[a("img",{attrs:{src:t.getProductImage(e),alt:t.getProductImageName(e)}})]),t._v(" "),"grid"==t.productView?a("div",{staticClass:"title"},[t._v("\n "+t._s(t.truncateTitle(e.name,20))+"\n\n ")]):a("div",{staticClass:"title"},[a("div",{staticClass:"product-name"},[t._v(t._s(e.name))]),t._v(" "),a("ul",{staticClass:"meta"},[e.sku?a("li",[a("span",{staticClass:"label"},[t._v(t._s(t.__("Sku :","wepos")))]),t._v(" "),a("span",{staticClass:"value"},[t._v(t._s(e.sku))])]):t._e(),t._v(" "),a("li",[a("span",{staticClass:"label"},[t._v(t._s(t.__("Price :","wepos")))]),t._v(" "),a("span",{staticClass:"value",domProps:{innerHTML:t._s(e.price_html)}})])])]),t._v(" "),a("span",{staticClass:"add-product-icon flaticon-add",class:t.productView})])]:t._e(),t._v(" "),"variable"==e.type?[a("v-popover",{attrs:{offset:"10","popover-base-class":"product-variation tooltip popover",placement:"left-end"}},[a("div",{staticClass:"item-wrap",on:{click:function(a){t.selectVariationProduct(e)}}},[a("div",{staticClass:"img"},[a("img",{attrs:{src:t.getProductImage(e),alt:t.getProductImageName(e)}})]),t._v(" "),"grid"==t.productView?a("div",{staticClass:"title"},[t._v("\n "+t._s(t.truncateTitle(e.name,20))+"\n ")]):a("div",{staticClass:"title"},[a("div",{staticClass:"product-name"},[t._v(t._s(e.name))]),t._v(" "),a("ul",{staticClass:"meta"},[a("li",[a("span",{staticClass:"label"},[t._v(t._s(t.__("Price :","wepos")))]),t._v(" "),a("span",{staticClass:"value",domProps:{innerHTML:t._s(e.price_html)}})])])]),t._v(" "),a("span",{staticClass:"add-product-icon flaticon-add",class:t.productView})]),t._v(" "),a("template",{slot:"popover"},[a("div",{staticClass:"variation-header"},[t._v("\n "+t._s(t.__("Select Variations","wepos"))+"\n ")]),t._v(" "),a("div",{staticClass:"variation-body"},[t._l(e.attributes,function(e){return[a("div",{staticClass:"attribute"},[a("p",[t._v(t._s(e.name))]),t._v(" "),a("div",{staticClass:"options"},[t._l(e.options,function(s){return[a("label",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.selectedAttribute[e.name],expression:"selectedAttribute[attribute.name]"}],attrs:{type:"radio"},domProps:{value:s,checked:t._q(t.selectedAttribute[e.name],s)},on:{change:function(a){t.$set(t.selectedAttribute,e.name,s)}}}),t._v(" "),a("div",{staticClass:"box"},[t._v("\n "+t._s(s)+"\n ")])])]})],2)])]})],2),t._v(" "),a("div",{staticClass:"variation-footer"},[a("button",{attrs:{disabled:t.attributeDisabled},on:{click:function(e){e.preventDefault(),t.addVariationProduct(e)}}},[t._v(t._s(t.__("Add Product","wepos")))])])])],2)]:t._e()],2):t._e()}),t._v(" "),t.getFilteredProduct.length<=0?a("div",{staticClass:"no-product-found"},[a("img",{attrs:{src:t.wepos.assets_url+"/images/no-product.png",alt:"",width:"120px"}}),t._v(" "),a("p",[t._v(t._s(t.__("No Product Found","wepos")))])]):t._e()],t._v(" "),t.productLoading?a("div",{staticClass:"product-loading"},[a("div",{staticClass:"spinner spinner-loading"})]):t._e()],2)]),t._v(" "),a("div",{staticClass:"content-cart"},[a("div",{staticClass:"top-panel"},[a("customer-search",{on:{onCustomerSelected:t.selectCustomer}}),t._v(" "),a("div",{staticClass:"action"},[a("div",{staticClass:"more-options"},[a("v-popover",{attrs:{offset:"5","popover-base-class":"wepos-dropdown-menu tooltip popover",placement:"bottom-end",open:t.showQucikMenu}},[a("button",{staticClass:"wepos-button",on:{click:function(e){e.preventDefault(),t.openQucikMenu()}}},[a("span",{staticClass:"more-icon flaticon-more"})]),t._v(" "),a("template",{slot:"popover"},[a("ul",[t._l(t.quickLinkListStart,function(t,e){return a(t,{key:e-"1",tag:"component"})}),t._v(" "),a("li",[a("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.emptyCart(e)}}},[a("span",{staticClass:"flaticon-empty-cart quick-menu-icon"}),t._v(t._s(t.__("Empty Cart","wepos")))])]),t._v(" "),a("li",[a("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.openHelp(e)}}},[a("span",{staticClass:"flaticon-information quick-menu-icon"}),t._v(t._s(t.__("Help","wepos")))])]),t._v(" "),a("li",{staticClass:"divider"}),t._v(" "),t._l(t.quickLinkList,function(t,e){return a(t,{key:e,tag:"component"})}),t._v(" "),a("li",[a("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.logout(e)}}},[a("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,e){return a(t,{key:e,tag:"component"})}),t._v(" "),t.settings.wepos_general?a("div",{staticClass:"cart-panel"},[a("div",{staticClass:"cart-content"},[a("table",{staticClass:"cart-table"},[a("thead",[a("tr",[a("th",{attrs:{width:"65%"}},[t._v(t._s(t.__("Product","wepos")))]),t._v(" "),a("th",{attrs:{width:"15%"}},[t._v(t._s(t.__("Qty","wepos")))]),t._v(" "),a("th",{attrs:{width:"30%"}},[t._v(t._s(t.__("Price","wepos")))]),t._v(" "),a("th"),t._v(" "),a("th")])]),t._v(" "),a("tbody",[t.cartdata.line_items.length>0?[t._l(t.cartdata.line_items,function(e,s){return[a("tr",[a("td",{staticClass:"name",on:{click:function(a){t.toggleEditQuantity(e,s)}}},[t._v("\n "+t._s(e.name)+"\n "),e.attribute.length>0&&"variable"===e.type?a("div",{staticClass:"attribute"},[a("ul",t._l(e.attribute,function(e){return a("li",[a("span",{staticClass:"attr_name"},[t._v(t._s(e.name))]),t._v(": "),a("span",{staticClass:"attr_value"},[t._v(t._s(e.option))])])}))]):t._e()]),t._v(" "),a("td",{staticClass:"qty",on:{click:function(a){t.toggleEditQuantity(e,s)}}},[t._v(t._s(e.quantity))]),t._v(" "),a("td",{staticClass:"price",on:{click:function(a){t.toggleEditQuantity(e,s)}}},[e.on_sale?[a("span",{staticClass:"sale-price"},[t._v(t._s(t.formatPrice(e.quantity*e.sale_price)))]),t._v(" "),a("span",{staticClass:"regular-price"},[t._v(t._s(t.formatPrice(e.quantity*e.regular_price)))])]:[a("span",{staticClass:"sale-price"},[t._v(t._s(t.formatPrice(e.quantity*e.regular_price)))])]],2),t._v(" "),a("td",{staticClass:"action"},[a("span",{staticClass:"flaticon-right-arrow",class:{open:e.editQuantity},on:{click:function(a){a.preventDefault(),t.toggleEditQuantity(e,s)}}})]),t._v(" "),a("td",{staticClass:"remove"},[a("span",{staticClass:"flaticon-cancel-music",on:{click:function(e){e.preventDefault(),t.removeItem(s)}}})])]),t._v(" "),e.editQuantity?a("tr",{staticClass:"update-quantity-wrap"},[a("td",{attrs:{colspan:"5"}},[a("span",{staticClass:"qty"},[t._v(t._s(t.__("Quantity","wepos")))]),t._v(" "),a("span",{staticClass:"qty-number"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.quantity,expression:"item.quantity"}],attrs:{type:"number",min:"1",step:"1"},domProps:{value:e.quantity},on:{input:function(a){a.target.composing||t.$set(e,"quantity",a.target.value)}}})]),t._v(" "),a("span",{staticClass:"qty-action"},[a("a",{staticClass:"add",attrs:{href:"#"},on:{click:function(a){a.preventDefault(),t.addQuantity(e,s)}}},[t._v("+")]),t._v(" "),a("a",{staticClass:"minus",attrs:{href:"#"},on:{click:function(a){a.preventDefault(),t.removeQuantity(e,s)}}},[t._v("-")])])])]):t._e()]})]:[a("tr",{staticClass:"no-item"},[a("td",{attrs:{colspan:"5"}},[a("img",{attrs:{src:t.wepos.assets_url+"/images/empty-cart.png",alt:"",width:"120px"}}),t._v(" "),a("p",[t._v(t._s(t.__("Empty Cart","wepos")))])])])]],2)])]),t._v(" "),a("div",{staticClass:"cart-calculation"},[a("form",{attrs:{autocomplete:"off"}},[a("table",{staticClass:"cart-total-table"},[a("tbody",[a("tr",{staticClass:"cart-meta-data"},[a("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?a("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(" "),a("td",{staticClass:"price"},[t._v(t._s(t.formatPrice(t.$store.getters["Cart/getSubtotal"])))]),t._v(" "),a("td",{staticClass:"action"})]),t._v(" "),t.cartdata.fee_lines.length>0?t._l(t.cartdata.fee_lines,function(e,s){return a("tr",{staticClass:"cart-meta-data"},["discount"==e.type?[a("td",{staticClass:"label"},[t._v(t._s(t.__("Discount","wepos"))+" "),a("span",{staticClass:"name"},[t._v(t._s("percent"==e.discount_type?e.value+"%":t.formatPrice(e.value)))])]),t._v(" "),a("td",{staticClass:"price"},[t._v("−"+t._s(t.formatPrice(Math.abs(e.total))))]),t._v(" "),a("td",{staticClass:"action"},[a("span",{staticClass:"flaticon-cancel-music",on:{click:function(e){t.removeFeeLine(s)}}})])]:[t.cartdata.fee_lines[s].isEdit?[a("td",{staticClass:"label",attrs:{colspan:"2"}},[a("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(" "),a("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?[a("label",{attrs:{for:"fee-tax-status"}},[a("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,i=s.checked?"taxable":"none";if(Array.isArray(a)){var o=t._i(a,null);s.checked?o<0&&(t.feeData.tax_status=a.concat([null])):o>-1&&(t.feeData.tax_status=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.feeData,"tax_status",i)}}}),t._v(" "+t._s(t.__("Taxable","wepos")))]),t._v(" "),"taxable"==t.feeData.tax_status?a("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(e){return a("option",{domProps:{value:"standard"==e.class?"":e.class}},[t._v(t._s(t.unSanitizeString(e.class))+" - "+t._s(e.percentage_rate))])})):t._e()]:t._e(),t._v(" "),a("button",{attrs:{disabled:""==t.feeData.name},on:{click:function(e){e.preventDefault(),t.saveFee(s)}}},[t._v(t._s(t.__("Apply","wepos")))]),t._v(" "),a("button",{staticClass:"cancel",on:{click:function(e){e.preventDefault(),t.cancelEditFee(s)}}},[t._v(t._s(t.__("Cancel","wepos")))])],2),t._v(" "),a("td",{staticClass:"action"},[a("span",{staticClass:"flaticon-cancel-music",on:{click:function(e){t.removeFeeLine(s)}}})])]:[a("td",{staticClass:"label",on:{dblclick:function(e){e.preventDefault(),t.editFeeData(s)}}},[t._v(t._s(t.__("Fee","wepos"))+" "),a("span",{staticClass:"name"},[t._v(t._s(e.name)+" "+t._s("percent"==e.fee_type?e.value+"%":t.formatPrice(e.value)))])]),t._v(" "),a("td",{staticClass:"price"},[t._v(t._s(t.formatPrice(Math.abs(e.total))))]),t._v(" "),a("td",{staticClass:"action"},[a("span",{staticClass:"flaticon-cancel-music",on:{click:function(e){t.removeFeeLine(s)}}})])]]],2)}):t._e(),t._v(" "),t.$store.getters["Cart/getTotalTax"]?a("tr",{staticClass:"tax"},[a("td",{staticClass:"label"},[t._v(t._s(t.__("Tax","wepos")))]),t._v(" "),a("td",{staticClass:"price"},[t._v(t._s(t.formatPrice(t.$store.getters["Cart/getTotalTax"])))]),t._v(" "),a("td",{staticClass:"action"})]):t._e(),t._v(" "),a("tr",{staticClass:"cart-action"},[a("td",{attrs:{colspan:"3"}},[a("fee-keypad",{attrs:{name:t.__("Discount","wepos"),"short-key":"discount"},on:{inputfee:t.setDiscount}}),t._v(" "),a("fee-keypad",{attrs:{name:t.__("Fee","wepos"),"short-key":"fee"},on:{inputfee:t.setFee}}),t._v(" "),""==t.orderdata.customer_note?a("customer-note",{on:{addnote:t.addCustomerNote}}):t._e()],1)]),t._v(" "),t.orderdata.customer_note?a("tr",{staticClass:"note"},[a("td",{staticClass:"note-text",attrs:{colspan:"2"}},[t._v("\n "+t._s(t.orderdata.customer_note)+"\n ")]),t._v(" "),a("td",{staticClass:"action"},[a("span",{staticClass:"flaticon-cancel-music",on:{click:function(e){e.preventDefault(),t.removeCustomerNote(e)}}})])]):t._e(),t._v(" "),a("tr",{staticClass:"pay-now",on:{click:function(e){t.initPayment()}}},[a("td",[t._v(t._s(t.__("Pay Now","wepos")))]),t._v(" "),a("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?a("modal",{attrs:{width:"600px",height:"400px"},on:{close:function(e){t.createNewSale()}}},[a("template",{slot:"body"},[a("div",{staticClass:"wepos-payment-receipt"},[a("div",{staticClass:"sale-completed"},[a("img",{attrs:{src:t.wepos.assets_url+"/images/sale-completed.png",alt:"",width:"120px"}}),t._v(" "),a("h2",[t._v(t._s(t.__("Sale Completed","wepos")))])]),t._v(" "),a("div",{staticClass:"print-section"},[a("print-receipt"),t._v(" "),a("button",{staticClass:"new-sale-btn",on:{click:function(e){e.preventDefault(),t.createNewSale()}}},[a("span",{staticClass:"icon flaticon-add"}),t._v(" "),a("span",{staticClass:"label"},[t._v(t._s(t.__("New Sale","wepos")))])])],1)])])],2):t._e(),t._v(" "),t.showHelp?a("modal",{attrs:{width:"700px",height:"500px"},on:{close:function(e){t.closeHelp()}}},[a("template",{slot:"body"},[a("div",{staticClass:"wepos-help-wrapper"},[a("h2",[t._v(t._s(t.__("Shortcut Keys","wepos")))]),t._v(" "),a("ul",[a("li",[a("span",{staticClass:"code"},[a("code",[t._v("f1")])]),t._v(" "),a("span",{staticClass:"title"},[t._v(t._s(t.__("Search Product","wepos")))])]),t._v(" "),a("li",[a("span",{staticClass:"code"},[a("code",[t._v("f2")])]),t._v(" "),a("span",{staticClass:"title"},[t._v(t._s(t.__("Scan Product","wepos")))])]),t._v(" "),a("li",[a("span",{staticClass:"code"},[a("code",[t._v("f3")])]),t._v(" "),a("span",{staticClass:"title"},[t._v(t._s(t.__("Toggle Product View","wepos")))])]),t._v(" "),a("li",[a("span",{staticClass:"code"},[a("code",[t._v("f4")])]),t._v(" "),a("span",{staticClass:"title"},[t._v(t._s(t.__("Add Fee in cart","wepos")))])]),t._v(" "),a("li",[a("span",{staticClass:"code"},[a("code",[t._v("f5")])]),t._v(" "),a("span",{staticClass:"title"},[t._v(t._s(t.__("Add Discount in cart","wepos")))])]),t._v(" "),a("li",[a("span",{staticClass:"code"},[a("code",[t._v("f6")])]),t._v(" "),a("span",{staticClass:"title"},[t._v(t._s(t.__("Add Customer note","wepos")))])]),t._v(" "),a("li",[a("span",{staticClass:"code"},[a("code",[t._v("f7")])]),t._v(" "),a("span",{staticClass:"title"},[t._v(t._s(t.__("Customer Search","wepos")))])]),t._v(" "),a("li",[a("span",{staticClass:"code"},[a("code",[t._v("shift+f7")])]),t._v(" "),a("span",{staticClass:"title"},[t._v(t._s(t.__("Add new Customer","wepos")))])]),t._v(" "),a("li",[a("span",{staticClass:"code"},[a("code",[t._v("f8")])]),t._v(" "),a("span",{staticClass:"title"},[t._v(t._s(t.__("Create New Sale","wepos")))])]),t._v(" "),a("li",[a("span",{staticClass:"code"},[a("code",[t._v("shift+f8")])]),t._v(" "),a("span",{staticClass:"title"},[t._v(t._s(t.__("Empty your cart","wepos")))])]),t._v(" "),a("li",[a("span",{staticClass:"code"},[a("code",[t._v("f9")])]),t._v(" "),a("span",{staticClass:"title"},[t._v(t._s(t.__("Go to payment receipt","wepos")))])]),t._v(" "),a("li",[a("span",{staticClass:"code"},[a("code",[t._v("f10")])]),t._v(" "),a("span",{staticClass:"title"},[t._v(t._s(t.__("Process Payment","wepos")))])]),t._v(" "),a("li",[a("span",{staticClass:"code"},[a("code",[t._v("ctrl/cmd+p")])]),t._v(" "),a("span",{staticClass:"title"},[t._v(t._s(t.__("Print Receipt","wepos")))])]),t._v(" "),a("li",[a("span",{staticClass:"code"},[a("code",[t._v("ctrl/cmd+?")])]),t._v(" "),a("span",{staticClass:"title"},[t._v(t._s(t.__("Show/Close(Toggle) Help","wepos")))])]),t._v(" "),a("li",[a("span",{staticClass:"code"},[a("code",[t._v("esc")])]),t._v(" "),a("span",{staticClass:"title"},[t._v(t._s(t.__("Close anything","wepos")))])])])])])],2):t._e(),t._v(" "),t.showModal?a("modal",{attrs:{width:"98%",height:"95vh"},on:{close:function(e){t.backToSale()}}},[a("template",{slot:"body"},[a("div",{staticClass:"wepos-checkout-wrapper"},[a("div",{staticClass:"left-content"},[a("div",{staticClass:"header"},[t._v("\n "+t._s(t.__("Sale Summary","wepos"))+"\n ")]),t._v(" "),a("div",{staticClass:"content"},[a("table",{staticClass:"sale-summary-cart"},[a("tbody",t._l(t.cartdata.line_items,function(e){return a("tr",[a("td",{staticClass:"name"},[t._v("\n "+t._s(e.name)+"\n "),e.attribute.length>0&&"variable"===e.type?a("div",{staticClass:"attribute"},[a("ul",t._l(e.attribute,function(e){return a("li",[a("span",{staticClass:"attr_name"},[t._v(t._s(e.name))]),t._v(": "),a("span",{staticClass:"attr_value"},[t._v(t._s(e.option))])])}))]):t._e()]),t._v(" "),a("td",{staticClass:"quantity"},[t._v(t._s(e.quantity))]),t._v(" "),a("td",{staticClass:"price"},[e.on_sale?[a("span",{staticClass:"sale-price"},[t._v(t._s(t.formatPrice(e.quantity*e.sale_price)))]),t._v(" "),a("span",{staticClass:"regular-price"},[t._v(t._s(t.formatPrice(e.quantity*e.regular_price)))])]:[a("span",{staticClass:"sale-price"},[t._v(t._s(t.formatPrice(e.quantity*e.regular_price)))])]],2)])}))])]),t._v(" "),a("div",{staticClass:"footer"},[a("ul",[a("li",{staticClass:"wepos-clearfix"},[a("span",{staticClass:"wepos-left"},[t._v("\n "+t._s(t.__("Subtotal","wepos"))+"\n "),"incl"==t.settings.woo_tax.wc_tax_display_cart?a("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(" "),a("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(e,s){return a("li",{staticClass:"wepos-clearfix"},["discount"==e.type?[a("span",{staticClass:"wepos-left"},[t._v(t._s(t.__("Discount","wepos"))+" "),a("span",{staticClass:"metadata"},[t._v(t._s(e.name)+" "+t._s("percent"==e.discount_type?e.value+"%":t.formatPrice(e.value)))])]),t._v(" "),a("span",{staticClass:"wepos-right"},[t._v("-"+t._s(t.formatPrice(Math.abs(e.total))))])]:[a("span",{staticClass:"wepos-left"},[t._v(t._s(t.__("Fee","wepos"))+" "),a("span",{staticClass:"metadata"},[t._v(t._s(e.name)+" "+t._s("percent"==e.fee_type?e.value+"%":t.formatPrice(e.value)))])]),t._v(" "),a("span",{staticClass:"wepos-right"},[t._v(t._s(t.formatPrice(e.total)))])]],2)}):t._e(),t._v(" "),t.$store.getters["Cart/getTotalTax"]?a("li",{staticClass:"wepos-clearfix"},[a("span",{staticClass:"wepos-left"},[t._v(t._s(t.__("Tax","wepos")))]),t._v(" "),a("span",{staticClass:"wepos-right"},[t._v(t._s(t.formatPrice(t.$store.getters["Cart/getTotalTax"])))])]):t._e(),t._v(" "),a("li",{staticClass:"wepos-clearfix"},[a("span",{staticClass:"wepos-left"},[t._v(t._s(t.__("Order Total","wepos")))]),t._v(" "),a("span",{staticClass:"wepos-right"},[t._v(t._s(t.formatPrice(t.$store.getters["Cart/getTotal"])))])]),t._v(" "),a("li",{staticClass:"wepos-clearfix"},[a("span",{staticClass:"wepos-left"},[t._v(t._s(t.__("Pay","wepos")))]),t._v(" "),a("span",{staticClass:"wepos-right"},[t._v(t._s(t.formatPrice(t.$store.getters["Cart/getTotal"])))])])],2)])]),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"header wepos-clearfix"},[a("h2",{staticClass:"wepos-left"},[t._v(t._s(t.__("Pay","wepos")))]),t._v(" "),a("span",{staticClass:"pay-amount wepos-right"},[t._v(t._s(t.formatPrice(t.$store.getters["Cart/getTotal"])))])]),t._v(" "),a("div",{staticClass:"content"},[a("div",{staticClass:"payment-gateway"},[t.availableGateways.length>0?[t._l(t.availableGateways,function(e){return a("label",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.selectedGateway,expression:"selectedGateway"}],attrs:{type:"radio",name:"gateway",checked:""},domProps:{value:e.id,checked:t._q(t.selectedGateway,e.id)},on:{change:function(a){t.selectedGateway=e.id}}}),t._v(" "),a("span",{staticClass:"gateway",class:"gateway-"+e.id},[t._v("\n "+t._s(e.title)+"\n ")])])}),t._v(" "),t.emptyGatewayDiv>0?t._l(t.emptyGatewayDiv,function(t){return a("label",{key:t},[a("span",{staticClass:"grid-placeholder"})])}):t._e()]:[a("p",[t._v(t._s(t.__("No gateway found","wepos")))])]],2),t._v(" "),"wepos_cash"==t.orderdata.payment_method?[a("div",{staticClass:"payment-option"},[a("div",{staticClass:"payment-amount"},[a("div",{staticClass:"input-part"},[a("div",{staticClass:"input-wrap"},[a("p",[t._v(t._s(t.__("Cash","wepos")))]),t._v(" "),a("div",{staticClass:"input-addon"},[a("span",{staticClass:"currency"},[t._v(t._s(t.wepos.currency_format_symbol))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.cashAmount,expression:"cashAmount"}],ref:"cashamount",attrs:{type:"text"},domProps:{value:t.cashAmount},on:{input:function(e){e.target.composing||(t.cashAmount=e.target.value)}}})])])]),t._v(" "),a("div",{staticClass:"change-money"},[a("p",[t._v(t._s(t.__("Change money","wepos"))+": "+t._s(t.formatPrice(t.changeAmount)))])])])])]:t._e(),t._v(" "),t._l(t.availableGatewayContent,function(e,s){return a(e,{key:s,tag:"component",attrs:{availablegateways:t.availableGateways}})})],2),t._v(" "),a("div",{staticClass:"footer wepos-clearfix"},[a("a",{staticClass:"back-btn wepos-left",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.backToSale()}}},[t._v(t._s(t.__("Back to Sale","wepos")))]),t._v(" "),a("button",{staticClass:"process-checkout-btn wepos-right",attrs:{disabled:!t.ableToProcess()},on:{click:function(e){e.preventDefault(),t.processPayment(e)}}},[t._v(t._s(t.__("Process Payment","wepos")))])])])])])],2):t._e(),t._v(" "),a("overlay",{attrs:{show:t.showOverlay}}),t._v(" "),t.showReceiptHtml?a("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(e,s){return a(e,{key:s,tag:"component",attrs:{orderdata:t.orderdata,printdata:t.printdata}})})],2)};s._withStripped=!0;var i={render:s,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("td",{staticClass:"icon"},[e("span",{staticClass:"flaticon-right-arrow"})])}]};e.a=i}]),[138]); \ No newline at end of file diff --git a/assets/js/jed.js b/assets/js/jed.js old mode 100644 new mode 100755 diff --git a/assets/js/jquery.min.js b/assets/js/jquery.min.js old mode 100644 new mode 100755 diff --git a/assets/js/style.js b/assets/js/style.js old mode 100644 new mode 100755 diff --git a/assets/js/style.min.js b/assets/js/style.min.js old mode 100644 new mode 100755 diff --git a/assets/js/vendor.js b/assets/js/vendor.js deleted file mode 100644 index ca5b2269..00000000 --- a/assets/js/vendor.js +++ /dev/null @@ -1,39285 +0,0 @@ -/******/ (function(modules) { // webpackBootstrap -/******/ // install a JSONP callback for chunk loading -/******/ var parentJsonpFunction = window["pluginWebpack"]; -/******/ window["pluginWebpack"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) { -/******/ // add "moreModules" to the modules object, -/******/ // then flag all "chunkIds" as loaded and fire callback -/******/ var moduleId, chunkId, i = 0, resolves = [], result; -/******/ for(;i < chunkIds.length; i++) { -/******/ chunkId = chunkIds[i]; -/******/ if(installedChunks[chunkId]) { -/******/ resolves.push(installedChunks[chunkId][0]); -/******/ } -/******/ installedChunks[chunkId] = 0; -/******/ } -/******/ for(moduleId in moreModules) { -/******/ if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) { -/******/ modules[moduleId] = moreModules[moduleId]; -/******/ } -/******/ } -/******/ if(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules); -/******/ while(resolves.length) { -/******/ resolves.shift()(); -/******/ } -/******/ if(executeModules) { -/******/ for(i=0; i < executeModules.length; i++) { -/******/ result = __webpack_require__(__webpack_require__.s = executeModules[i]); -/******/ } -/******/ } -/******/ return result; -/******/ }; -/******/ -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // objects to store loaded and loading chunks -/******/ var installedChunks = { -/******/ 5: 0 -/******/ }; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { -/******/ configurable: false, -/******/ enumerable: true, -/******/ get: getter -/******/ }); -/******/ } -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ // on error function for async loading -/******/ __webpack_require__.oe = function(err) { console.error(err); throw err; }; -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 209); -/******/ }) -/************************************************************************/ -/******/ ([ -/* 0 */ -/***/ (function(module, exports) { - -/* globals __VUE_SSR_CONTEXT__ */ - -// IMPORTANT: Do NOT use ES2015 features in this file. -// This module is a runtime utility for cleaner component module output and will -// be included in the final webpack user bundle. - -module.exports = function normalizeComponent ( - rawScriptExports, - compiledTemplate, - functionalTemplate, - injectStyles, - scopeId, - moduleIdentifier /* server only */ -) { - var esModule - var scriptExports = rawScriptExports = rawScriptExports || {} - - // ES6 modules interop - var type = typeof rawScriptExports.default - if (type === 'object' || type === 'function') { - esModule = rawScriptExports - scriptExports = rawScriptExports.default - } - - // Vue.extend constructor export interop - var options = typeof scriptExports === 'function' - ? scriptExports.options - : scriptExports - - // render functions - if (compiledTemplate) { - options.render = compiledTemplate.render - options.staticRenderFns = compiledTemplate.staticRenderFns - options._compiled = true - } - - // functional template - if (functionalTemplate) { - options.functional = true - } - - // scopedId - if (scopeId) { - options._scopeId = scopeId - } - - var hook - if (moduleIdentifier) { // server build - hook = function (context) { - // 2.3 injection - context = - context || // cached call - (this.$vnode && this.$vnode.ssrContext) || // stateful - (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional - // 2.2 with runInNewContext: true - if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { - context = __VUE_SSR_CONTEXT__ - } - // inject component styles - if (injectStyles) { - injectStyles.call(this, context) - } - // register component module identifier for async chunk inferrence - if (context && context._registeredComponents) { - context._registeredComponents.add(moduleIdentifier) - } - } - // used by ssr in case component is cached and beforeCreate - // never gets called - options._ssrRegister = hook - } else if (injectStyles) { - hook = injectStyles - } - - if (hook) { - var functional = options.functional - var existing = functional - ? options.render - : options.beforeCreate - - if (!functional) { - // inject component registration as beforeCreate hook - options.beforeCreate = existing - ? [].concat(existing, hook) - : [hook] - } else { - // for template-only hot-reload because in that case the render fn doesn't - // go through the normalizer - options._injectStyles = hook - // register for functioal component in vue file - options.render = function renderWithStyleInjection (h, context) { - hook.call(context) - return existing(h, context) - } - } - } - - return { - esModule: esModule, - exports: scriptExports, - options: options - } -} - - -/***/ }), -/* 1 */ -/***/ (function(module, exports, __webpack_require__) { - -var freeGlobal = __webpack_require__(93); - -/** Detect free variable `self`. */ -var freeSelf = typeof self == 'object' && self && self.Object === Object && self; - -/** Used as a reference to the global object. */ -var root = freeGlobal || freeSelf || Function('return this')(); - -module.exports = root; - - -/***/ }), -/* 2 */ -/***/ (function(module, exports) { - -/** - * Checks if `value` is classified as an `Array` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an array, else `false`. - * @example - * - * _.isArray([1, 2, 3]); - * // => true - * - * _.isArray(document.body.children); - * // => false - * - * _.isArray('abc'); - * // => false - * - * _.isArray(_.noop); - * // => false - */ -var isArray = Array.isArray; - -module.exports = isArray; - - -/***/ }), -/* 3 */ -/***/ (function(module, exports) { - -/** - * Checks if `value` is object-like. A value is object-like if it's not `null` - * and has a `typeof` result of "object". - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - * @example - * - * _.isObjectLike({}); - * // => true - * - * _.isObjectLike([1, 2, 3]); - * // => true - * - * _.isObjectLike(_.noop); - * // => false - * - * _.isObjectLike(null); - * // => false - */ -function isObjectLike(value) { - return value != null && typeof value == 'object'; -} - -module.exports = isObjectLike; - - -/***/ }), -/* 4 */ -/***/ (function(module, exports) { - -/** - * Checks if `value` is the - * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) - * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an object, else `false`. - * @example - * - * _.isObject({}); - * // => true - * - * _.isObject([1, 2, 3]); - * // => true - * - * _.isObject(_.noop); - * // => true - * - * _.isObject(null); - * // => false - */ -function isObject(value) { - var type = typeof value; - return value != null && (type == 'object' || type == 'function'); -} - -module.exports = isObject; - - -/***/ }), -/* 5 */ -/***/ (function(module, exports, __webpack_require__) { - -var Symbol = __webpack_require__(8), - getRawTag = __webpack_require__(239), - objectToString = __webpack_require__(240); - -/** `Object#toString` result references. */ -var nullTag = '[object Null]', - undefinedTag = '[object Undefined]'; - -/** Built-in value references. */ -var symToStringTag = Symbol ? Symbol.toStringTag : undefined; - -/** - * The base implementation of `getTag` without fallbacks for buggy environments. - * - * @private - * @param {*} value The value to query. - * @returns {string} Returns the `toStringTag`. - */ -function baseGetTag(value) { - if (value == null) { - return value === undefined ? undefinedTag : nullTag; - } - return (symToStringTag && symToStringTag in Object(value)) - ? getRawTag(value) - : objectToString(value); -} - -module.exports = baseGetTag; - - -/***/ }), -/* 6 */ -/***/ (function(module, exports) { - -var g; - -// This works in non-strict mode -g = (function() { - return this; -})(); - -try { - // This works if eval is allowed (see CSP) - g = g || Function("return this")() || (1,eval)("this"); -} catch(e) { - // This works if the window reference is available - if(typeof window === "object") - g = window; -} - -// g can still be undefined, but nothing to do about it... -// We return undefined, instead of nothing here, so it's -// easier to handle this case. if(!global) { ...} - -module.exports = g; - - -/***/ }), -/* 7 */ -/***/ (function(module, exports, __webpack_require__) { - -var baseIsNative = __webpack_require__(238), - getValue = __webpack_require__(243); - -/** - * Gets the native function at `key` of `object`. - * - * @private - * @param {Object} object The object to query. - * @param {string} key The key of the method to get. - * @returns {*} Returns the function if it's native, else `undefined`. - */ -function getNative(object, key) { - var value = getValue(object, key); - return baseIsNative(value) ? value : undefined; -} - -module.exports = getNative; - - -/***/ }), -/* 8 */ -/***/ (function(module, exports, __webpack_require__) { - -var root = __webpack_require__(1); - -/** Built-in value references. */ -var Symbol = root.Symbol; - -module.exports = Symbol; - - -/***/ }), -/* 9 */ -/***/ (function(module, exports, __webpack_require__) { - -var arrayLikeKeys = __webpack_require__(101), - baseKeys = __webpack_require__(103), - isArrayLike = __webpack_require__(46); - -/** - * Creates an array of the own enumerable property names of `object`. - * - * **Note:** Non-object values are coerced to objects. See the - * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) - * for more details. - * - * @static - * @since 0.1.0 - * @memberOf _ - * @category Object - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property names. - * @example - * - * function Foo() { - * this.a = 1; - * this.b = 2; - * } - * - * Foo.prototype.c = 3; - * - * _.keys(new Foo); - * // => ['a', 'b'] (iteration order is not guaranteed) - * - * _.keys('hi'); - * // => ['0', '1'] - */ -function keys(object) { - return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); -} - -module.exports = keys; - - -/***/ }), -/* 10 */ -/***/ (function(module, exports, __webpack_require__) { - -var DataView = __webpack_require__(272), - Map = __webpack_require__(36), - Promise = __webpack_require__(273), - Set = __webpack_require__(274), - WeakMap = __webpack_require__(105), - baseGetTag = __webpack_require__(5), - toSource = __webpack_require__(94); - -/** `Object#toString` result references. */ -var mapTag = '[object Map]', - objectTag = '[object Object]', - promiseTag = '[object Promise]', - setTag = '[object Set]', - weakMapTag = '[object WeakMap]'; - -var dataViewTag = '[object DataView]'; - -/** Used to detect maps, sets, and weakmaps. */ -var dataViewCtorString = toSource(DataView), - mapCtorString = toSource(Map), - promiseCtorString = toSource(Promise), - setCtorString = toSource(Set), - weakMapCtorString = toSource(WeakMap); - -/** - * Gets the `toStringTag` of `value`. - * - * @private - * @param {*} value The value to query. - * @returns {string} Returns the `toStringTag`. - */ -var getTag = baseGetTag; - -// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6. -if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) || - (Map && getTag(new Map) != mapTag) || - (Promise && getTag(Promise.resolve()) != promiseTag) || - (Set && getTag(new Set) != setTag) || - (WeakMap && getTag(new WeakMap) != weakMapTag)) { - getTag = function(value) { - var result = baseGetTag(value), - Ctor = result == objectTag ? value.constructor : undefined, - ctorString = Ctor ? toSource(Ctor) : ''; - - if (ctorString) { - switch (ctorString) { - case dataViewCtorString: return dataViewTag; - case mapCtorString: return mapTag; - case promiseCtorString: return promiseTag; - case setCtorString: return setTag; - case weakMapCtorString: return weakMapTag; - } - } - return result; - }; -} - -module.exports = getTag; - - -/***/ }), -/* 11 */ -/***/ (function(module, exports, __webpack_require__) { - -var baseGetTag = __webpack_require__(5), - isObjectLike = __webpack_require__(3); - -/** `Object#toString` result references. */ -var symbolTag = '[object Symbol]'; - -/** - * Checks if `value` is classified as a `Symbol` primitive or object. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. - * @example - * - * _.isSymbol(Symbol.iterator); - * // => true - * - * _.isSymbol('abc'); - * // => false - */ -function isSymbol(value) { - return typeof value == 'symbol' || - (isObjectLike(value) && baseGetTag(value) == symbolTag); -} - -module.exports = isSymbol; - - -/***/ }), -/* 12 */ -/***/ (function(module, exports, __webpack_require__) { - -var isSymbol = __webpack_require__(11); - -/** Used as references for various `Number` constants. */ -var INFINITY = 1 / 0; - -/** - * Converts `value` to a string key if it's not a string or symbol. - * - * @private - * @param {*} value The value to inspect. - * @returns {string|symbol} Returns the key. - */ -function toKey(value) { - if (typeof value == 'string' || isSymbol(value)) { - return value; - } - var result = (value + ''); - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; -} - -module.exports = toKey; - - -/***/ }), -/* 13 */ -/***/ (function(module, exports, __webpack_require__) { - -var toFinite = __webpack_require__(285); - -/** - * Converts `value` to an integer. - * - * **Note:** This method is loosely based on - * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to convert. - * @returns {number} Returns the converted integer. - * @example - * - * _.toInteger(3.2); - * // => 3 - * - * _.toInteger(Number.MIN_VALUE); - * // => 0 - * - * _.toInteger(Infinity); - * // => 1.7976931348623157e+308 - * - * _.toInteger('3.2'); - * // => 3 - */ -function toInteger(value) { - var result = toFinite(value), - remainder = result % 1; - - return result === result ? (remainder ? result - remainder : result) : 0; -} - -module.exports = toInteger; - - -/***/ }), -/* 14 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addAction", function() { return addAction; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addFilter", function() { return addFilter; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeAction", function() { return removeAction; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeFilter", function() { return removeFilter; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasAction", function() { return hasAction; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasFilter", function() { return hasFilter; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeAllActions", function() { return removeAllActions; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeAllFilters", function() { return removeAllFilters; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "doAction", function() { return doAction; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "applyFilters", function() { return applyFilters; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "currentAction", function() { return currentAction; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "currentFilter", function() { return currentFilter; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "doingAction", function() { return doingAction; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "doingFilter", function() { return doingFilter; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "didAction", function() { return didAction; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "didFilter", function() { return didFilter; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "actions", function() { return actions; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "filters", function() { return filters; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__createHooks__ = __webpack_require__(210); -/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "createHooks", function() { return __WEBPACK_IMPORTED_MODULE_0__createHooks__["a"]; }); - - -var _createHooks = Object(__WEBPACK_IMPORTED_MODULE_0__createHooks__["a" /* default */])(), - addAction = _createHooks.addAction, - addFilter = _createHooks.addFilter, - removeAction = _createHooks.removeAction, - removeFilter = _createHooks.removeFilter, - hasAction = _createHooks.hasAction, - hasFilter = _createHooks.hasFilter, - removeAllActions = _createHooks.removeAllActions, - removeAllFilters = _createHooks.removeAllFilters, - doAction = _createHooks.doAction, - applyFilters = _createHooks.applyFilters, - currentAction = _createHooks.currentAction, - currentFilter = _createHooks.currentFilter, - doingAction = _createHooks.doingAction, - doingFilter = _createHooks.doingFilter, - didAction = _createHooks.didAction, - didFilter = _createHooks.didFilter, - actions = _createHooks.actions, - filters = _createHooks.filters; - - -//# sourceMappingURL=index.js.map - -/***/ }), -/* 15 */ -/***/ (function(module, exports) { - -// shim for using process in browser -var process = module.exports = {}; - -// cached from whatever global is present so that test runners that stub it -// don't break things. But we need to wrap it in a try catch in case it is -// wrapped in strict mode code which doesn't define any globals. It's inside a -// function because try/catches deoptimize in certain engines. - -var cachedSetTimeout; -var cachedClearTimeout; - -function defaultSetTimout() { - throw new Error('setTimeout has not been defined'); -} -function defaultClearTimeout () { - throw new Error('clearTimeout has not been defined'); -} -(function () { - try { - if (typeof setTimeout === 'function') { - cachedSetTimeout = setTimeout; - } else { - cachedSetTimeout = defaultSetTimout; - } - } catch (e) { - cachedSetTimeout = defaultSetTimout; - } - try { - if (typeof clearTimeout === 'function') { - cachedClearTimeout = clearTimeout; - } else { - cachedClearTimeout = defaultClearTimeout; - } - } catch (e) { - cachedClearTimeout = defaultClearTimeout; - } -} ()) -function runTimeout(fun) { - if (cachedSetTimeout === setTimeout) { - //normal enviroments in sane situations - return setTimeout(fun, 0); - } - // if setTimeout wasn't available but was latter defined - if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { - cachedSetTimeout = setTimeout; - return setTimeout(fun, 0); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedSetTimeout(fun, 0); - } catch(e){ - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedSetTimeout.call(null, fun, 0); - } catch(e){ - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error - return cachedSetTimeout.call(this, fun, 0); - } - } - - -} -function runClearTimeout(marker) { - if (cachedClearTimeout === clearTimeout) { - //normal enviroments in sane situations - return clearTimeout(marker); - } - // if clearTimeout wasn't available but was latter defined - if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { - cachedClearTimeout = clearTimeout; - return clearTimeout(marker); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedClearTimeout(marker); - } catch (e){ - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedClearTimeout.call(null, marker); - } catch (e){ - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. - // Some versions of I.E. have different rules for clearTimeout vs setTimeout - return cachedClearTimeout.call(this, marker); - } - } - - - -} -var queue = []; -var draining = false; -var currentQueue; -var queueIndex = -1; - -function cleanUpNextTick() { - if (!draining || !currentQueue) { - return; - } - draining = false; - if (currentQueue.length) { - queue = currentQueue.concat(queue); - } else { - queueIndex = -1; - } - if (queue.length) { - drainQueue(); - } -} - -function drainQueue() { - if (draining) { - return; - } - var timeout = runTimeout(cleanUpNextTick); - draining = true; - - var len = queue.length; - while(len) { - currentQueue = queue; - queue = []; - while (++queueIndex < len) { - if (currentQueue) { - currentQueue[queueIndex].run(); - } - } - queueIndex = -1; - len = queue.length; - } - currentQueue = null; - draining = false; - runClearTimeout(timeout); -} - -process.nextTick = function (fun) { - var args = new Array(arguments.length - 1); - if (arguments.length > 1) { - for (var i = 1; i < arguments.length; i++) { - args[i - 1] = arguments[i]; - } - } - queue.push(new Item(fun, args)); - if (queue.length === 1 && !draining) { - runTimeout(drainQueue); - } -}; - -// v8 likes predictible objects -function Item(fun, array) { - this.fun = fun; - this.array = array; -} -Item.prototype.run = function () { - this.fun.apply(null, this.array); -}; -process.title = 'browser'; -process.browser = true; -process.env = {}; -process.argv = []; -process.version = ''; // empty string to avoid regexp issues -process.versions = {}; - -function noop() {} - -process.on = noop; -process.addListener = noop; -process.once = noop; -process.off = noop; -process.removeListener = noop; -process.removeAllListeners = noop; -process.emit = noop; -process.prependListener = noop; -process.prependOnceListener = noop; - -process.listeners = function (name) { return [] } - -process.binding = function (name) { - throw new Error('process.binding is not supported'); -}; - -process.cwd = function () { return '/' }; -process.chdir = function (dir) { - throw new Error('process.chdir is not supported'); -}; -process.umask = function() { return 0; }; - - -/***/ }), -/* 16 */ -/***/ (function(module, exports) { - -module.exports = function(module) { - if(!module.webpackPolyfill) { - module.deprecate = function() {}; - module.paths = []; - // module.parent = undefined by default - if(!module.children) module.children = []; - Object.defineProperty(module, "loaded", { - enumerable: true, - get: function() { - return module.l; - } - }); - Object.defineProperty(module, "id", { - enumerable: true, - get: function() { - return module.i; - } - }); - module.webpackPolyfill = 1; - } - return module; -}; - - -/***/ }), -/* 17 */ -/***/ (function(module, exports, __webpack_require__) { - -var listCacheClear = __webpack_require__(228), - listCacheDelete = __webpack_require__(229), - listCacheGet = __webpack_require__(230), - listCacheHas = __webpack_require__(231), - listCacheSet = __webpack_require__(232); - -/** - * Creates an list cache object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function ListCache(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -// Add methods to `ListCache`. -ListCache.prototype.clear = listCacheClear; -ListCache.prototype['delete'] = listCacheDelete; -ListCache.prototype.get = listCacheGet; -ListCache.prototype.has = listCacheHas; -ListCache.prototype.set = listCacheSet; - -module.exports = ListCache; - - -/***/ }), -/* 18 */ -/***/ (function(module, exports, __webpack_require__) { - -var eq = __webpack_require__(35); - -/** - * Gets the index at which the `key` is found in `array` of key-value pairs. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} key The key to search for. - * @returns {number} Returns the index of the matched value, else `-1`. - */ -function assocIndexOf(array, key) { - var length = array.length; - while (length--) { - if (eq(array[length][0], key)) { - return length; - } - } - return -1; -} - -module.exports = assocIndexOf; - - -/***/ }), -/* 19 */ -/***/ (function(module, exports, __webpack_require__) { - -var getNative = __webpack_require__(7); - -/* Built-in method references that are verified to be native. */ -var nativeCreate = getNative(Object, 'create'); - -module.exports = nativeCreate; - - -/***/ }), -/* 20 */ -/***/ (function(module, exports, __webpack_require__) { - -var isKeyable = __webpack_require__(252); - -/** - * Gets the data for `map`. - * - * @private - * @param {Object} map The map to query. - * @param {string} key The reference key. - * @returns {*} Returns the map data. - */ -function getMapData(map, key) { - var data = map.__data__; - return isKeyable(key) - ? data[typeof key == 'string' ? 'string' : 'hash'] - : data.map; -} - -module.exports = getMapData; - - -/***/ }), -/* 21 */ -/***/ (function(module, exports) { - -/** - * The base implementation of `_.unary` without support for storing metadata. - * - * @private - * @param {Function} func The function to cap arguments for. - * @returns {Function} Returns the new capped function. - */ -function baseUnary(func) { - return function(value) { - return func(value); - }; -} - -module.exports = baseUnary; - - -/***/ }), -/* 22 */ -/***/ (function(module, exports, __webpack_require__) { - -/* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(93); - -/** Detect free variable `exports`. */ -var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; - -/** Detect free variable `module`. */ -var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; - -/** Detect the popular CommonJS extension `module.exports`. */ -var moduleExports = freeModule && freeModule.exports === freeExports; - -/** Detect free variable `process` from Node.js. */ -var freeProcess = moduleExports && freeGlobal.process; - -/** Used to access faster Node.js helpers. */ -var nodeUtil = (function() { - try { - // Use `util.types` for Node.js 10+. - var types = freeModule && freeModule.require && freeModule.require('util').types; - - if (types) { - return types; - } - - // Legacy `process.binding('util')` for Node.js < 10. - return freeProcess && freeProcess.binding && freeProcess.binding('util'); - } catch (e) {} -}()); - -module.exports = nodeUtil; - -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(16)(module))) - -/***/ }), -/* 23 */ -/***/ (function(module, exports, __webpack_require__) { - -var baseCreate = __webpack_require__(24), - isObject = __webpack_require__(4); - -/** - * Creates a function that produces an instance of `Ctor` regardless of - * whether it was invoked as part of a `new` expression or by `call` or `apply`. - * - * @private - * @param {Function} Ctor The constructor to wrap. - * @returns {Function} Returns the new wrapped function. - */ -function createCtor(Ctor) { - return function() { - // Use a `switch` statement to work with class constructors. See - // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist - // for more details. - var args = arguments; - switch (args.length) { - case 0: return new Ctor; - case 1: return new Ctor(args[0]); - case 2: return new Ctor(args[0], args[1]); - case 3: return new Ctor(args[0], args[1], args[2]); - case 4: return new Ctor(args[0], args[1], args[2], args[3]); - case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]); - case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]); - case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]); - } - var thisBinding = baseCreate(Ctor.prototype), - result = Ctor.apply(thisBinding, args); - - // Mimic the constructor's `return` behavior. - // See https://es5.github.io/#x13.2.2 for more details. - return isObject(result) ? result : thisBinding; - }; -} - -module.exports = createCtor; - - -/***/ }), -/* 24 */ -/***/ (function(module, exports, __webpack_require__) { - -var isObject = __webpack_require__(4); - -/** Built-in value references. */ -var objectCreate = Object.create; - -/** - * The base implementation of `_.create` without support for assigning - * properties to the created object. - * - * @private - * @param {Object} proto The object to inherit from. - * @returns {Object} Returns the new object. - */ -var baseCreate = (function() { - function object() {} - return function(proto) { - if (!isObject(proto)) { - return {}; - } - if (objectCreate) { - return objectCreate(proto); - } - object.prototype = proto; - var result = new object; - object.prototype = undefined; - return result; - }; -}()); - -module.exports = baseCreate; - - -/***/ }), -/* 25 */ -/***/ (function(module, exports) { - -/** - * Copies the values of `source` to `array`. - * - * @private - * @param {Array} source The array to copy values from. - * @param {Array} [array=[]] The array to copy values to. - * @returns {Array} Returns `array`. - */ -function copyArray(source, array) { - var index = -1, - length = source.length; - - array || (array = Array(length)); - while (++index < length) { - array[index] = source[index]; - } - return array; -} - -module.exports = copyArray; - - -/***/ }), -/* 26 */ -/***/ (function(module, exports, __webpack_require__) { - -var assignValue = __webpack_require__(131), - baseAssignValue = __webpack_require__(132); - -/** - * Copies properties of `source` to `object`. - * - * @private - * @param {Object} source The object to copy properties from. - * @param {Array} props The property identifiers to copy. - * @param {Object} [object={}] The object to copy properties to. - * @param {Function} [customizer] The function to customize copied values. - * @returns {Object} Returns `object`. - */ -function copyObject(source, props, object, customizer) { - var isNew = !object; - object || (object = {}); - - var index = -1, - length = props.length; - - while (++index < length) { - var key = props[index]; - - var newValue = customizer - ? customizer(object[key], source[key], key, object, source) - : undefined; - - if (newValue === undefined) { - newValue = source[key]; - } - if (isNew) { - baseAssignValue(object, key, newValue); - } else { - assignValue(object, key, newValue); - } - } - return object; -} - -module.exports = copyObject; - - -/***/ }), -/* 27 */ -/***/ (function(module, exports, __webpack_require__) { - -!function(e,t){ true?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VueHotkey=t():e.VueHotkey=t()}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=1)}([function(e,t,n){var o,r,a;!function(n,u){r=[t],o=u,void 0!==(a="function"==typeof o?o.apply(t,r):o)&&(e.exports=a)}(0,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.default=function(e){if(e&&"object"===(void 0===e?"undefined":t(e))){var r=e.which||e.keyCode||e.charCode;r&&(e=r)}if("number"==typeof e)return names[e];var a=String(e),u=n[a.toLowerCase()];if(u)return u;var u=o[a.toLowerCase()];return u||(1===a.length?a.charCodeAt(0):void 0)};var n=e.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=e.aliases={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};for(r=97;r<123;r++)n[String.fromCharCode(r)]=r-32;for(var r=48;r<58;r++)n[r-48]=r;for(r=1;r<13;r++)n["f"+r]=r+111;for(r=0;r<10;r++)n["numpad "+r]=r+96})},function(e,t,n){var o,r,a;!function(u,c){r=[e,t,n(0)],o=c,void 0!==(a="function"==typeof o?o.apply(t,r):o)&&(e.exports=a)}(0,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return e&&e.__esModule?e:{default:e}}(n),r=function(e){return Object.keys(e).map(function(t){var n={};return t.split("+").forEach(function(e){switch(e.toLowerCase()){case"ctrl":case"alt":case"shift":case"meta":n[e]=!0;break;default:n.keyCode=(0,o.default)(e)}}),n.callback=e[t],n})};t.default={install:function(e){e.directive("hotkey",{bind:function(e,t,n,o){e._keymap=r(t.value),e._keymapHasKeyUp=e._keymap.some(function(e){return e.callback.keyup}),e._keyHandler=function(t){var n=!0,o=!1,r=void 0;try{for(var a,u=e._keymap[Symbol.iterator]();!(n=(a=u.next()).done);n=!0){var c=a.value,i=c.keyCode===t.keyCode&&!!c.ctrl===t.ctrlKey&&!!c.alt===t.altKey&&!!c.shift===t.shiftKey&&!!c.meta===t.metaKey&&("keydown"===t.type?c.callback.keydown||c.callback:c.callback.keyup);i&&i(t)}}catch(e){o=!0,r=e}finally{try{!n&&u.return&&u.return()}finally{if(o)throw r}}},document.addEventListener("keydown",e._keyHandler),e._keymapHasKeyUp&&document.addEventListener("keyup",e._keyHandler)},unbind:function(e,t,n,o){document.removeEventListener("keydown",e._keyHandler),e._keymapHasKeyUp&&document.removeEventListener("keyup",e._keyHandler)}})}},e.exports=t.default})}])}); - -/***/ }), -/* 28 */, -/* 29 */, -/* 30 */, -/* 31 */, -/* 32 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/** - * Validate a hookName string. - * - * @param {string} hookName The hook name to validate. Should be a non empty string containing - * only numbers, letters, dashes, periods and underscores. Also, - * the hook name cannot begin with `__`. - * - * @return {boolean} Whether the hook name is valid. - */ -function validateHookName(hookName) { - if ('string' !== typeof hookName || '' === hookName) { - // eslint-disable-next-line no-console - console.error('The hook name must be a non-empty string.'); - return false; - } - - if (/^__/.test(hookName)) { - // eslint-disable-next-line no-console - console.error('The hook name cannot begin with `__`.'); - return false; - } - - if (!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(hookName)) { - // eslint-disable-next-line no-console - console.error('The hook name can only contain numbers, letters, dashes, periods and underscores.'); - return false; - } - - return true; -} - -/* harmony default export */ __webpack_exports__["a"] = (validateHookName); -//# sourceMappingURL=validateHookName.js.map - -/***/ }), -/* 33 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); -/* WEBPACK VAR INJECTION */(function(process, global, setImmediate) {/*! - * Vue.js v2.5.13 - * (c) 2014-2017 Evan You - * Released under the MIT License. - */ -/* */ - -var emptyObject = Object.freeze({}); - -// these helpers produces better vm code in JS engines due to their -// explicitness and function inlining -function isUndef (v) { - return v === undefined || v === null -} - -function isDef (v) { - return v !== undefined && v !== null -} - -function isTrue (v) { - return v === true -} - -function isFalse (v) { - return v === false -} - -/** - * Check if value is primitive - */ -function isPrimitive (value) { - return ( - typeof value === 'string' || - typeof value === 'number' || - // $flow-disable-line - typeof value === 'symbol' || - typeof value === 'boolean' - ) -} - -/** - * Quick object check - this is primarily used to tell - * Objects from primitive values when we know the value - * is a JSON-compliant type. - */ -function isObject (obj) { - return obj !== null && typeof obj === 'object' -} - -/** - * Get the raw type string of a value e.g. [object Object] - */ -var _toString = Object.prototype.toString; - -function toRawType (value) { - return _toString.call(value).slice(8, -1) -} - -/** - * Strict object type check. Only returns true - * for plain JavaScript objects. - */ -function isPlainObject (obj) { - return _toString.call(obj) === '[object Object]' -} - -function isRegExp (v) { - return _toString.call(v) === '[object RegExp]' -} - -/** - * Check if val is a valid array index. - */ -function isValidArrayIndex (val) { - var n = parseFloat(String(val)); - return n >= 0 && Math.floor(n) === n && isFinite(val) -} - -/** - * Convert a value to a string that is actually rendered. - */ -function toString (val) { - return val == null - ? '' - : typeof val === 'object' - ? JSON.stringify(val, null, 2) - : String(val) -} - -/** - * Convert a input value to a number for persistence. - * If the conversion fails, return original string. - */ -function toNumber (val) { - var n = parseFloat(val); - return isNaN(n) ? val : n -} - -/** - * Make a map and return a function for checking if a key - * is in that map. - */ -function makeMap ( - str, - expectsLowerCase -) { - var map = Object.create(null); - var list = str.split(','); - for (var i = 0; i < list.length; i++) { - map[list[i]] = true; - } - return expectsLowerCase - ? function (val) { return map[val.toLowerCase()]; } - : function (val) { return map[val]; } -} - -/** - * Check if a tag is a built-in tag. - */ -var isBuiltInTag = makeMap('slot,component', true); - -/** - * Check if a attribute is a reserved attribute. - */ -var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is'); - -/** - * Remove an item from an array - */ -function remove (arr, item) { - if (arr.length) { - var index = arr.indexOf(item); - if (index > -1) { - return arr.splice(index, 1) - } - } -} - -/** - * Check whether the object has the property. - */ -var hasOwnProperty = Object.prototype.hasOwnProperty; -function hasOwn (obj, key) { - return hasOwnProperty.call(obj, key) -} - -/** - * Create a cached version of a pure function. - */ -function cached (fn) { - var cache = Object.create(null); - return (function cachedFn (str) { - var hit = cache[str]; - return hit || (cache[str] = fn(str)) - }) -} - -/** - * Camelize a hyphen-delimited string. - */ -var camelizeRE = /-(\w)/g; -var camelize = cached(function (str) { - return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; }) -}); - -/** - * Capitalize a string. - */ -var capitalize = cached(function (str) { - return str.charAt(0).toUpperCase() + str.slice(1) -}); - -/** - * Hyphenate a camelCase string. - */ -var hyphenateRE = /\B([A-Z])/g; -var hyphenate = cached(function (str) { - return str.replace(hyphenateRE, '-$1').toLowerCase() -}); - -/** - * Simple bind, faster than native - */ -function bind (fn, ctx) { - function boundFn (a) { - var l = arguments.length; - return l - ? l > 1 - ? fn.apply(ctx, arguments) - : fn.call(ctx, a) - : fn.call(ctx) - } - // record original fn length - boundFn._length = fn.length; - return boundFn -} - -/** - * Convert an Array-like object to a real Array. - */ -function toArray (list, start) { - start = start || 0; - var i = list.length - start; - var ret = new Array(i); - while (i--) { - ret[i] = list[i + start]; - } - return ret -} - -/** - * Mix properties into target object. - */ -function extend (to, _from) { - for (var key in _from) { - to[key] = _from[key]; - } - return to -} - -/** - * Merge an Array of Objects into a single Object. - */ -function toObject (arr) { - var res = {}; - for (var i = 0; i < arr.length; i++) { - if (arr[i]) { - extend(res, arr[i]); - } - } - return res -} - -/** - * Perform no operation. - * Stubbing args to make Flow happy without leaving useless transpiled code - * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/) - */ -function noop (a, b, c) {} - -/** - * Always return false. - */ -var no = function (a, b, c) { return false; }; - -/** - * Return same value - */ -var identity = function (_) { return _; }; - -/** - * Generate a static keys string from compiler modules. - */ -function genStaticKeys (modules) { - return modules.reduce(function (keys, m) { - return keys.concat(m.staticKeys || []) - }, []).join(',') -} - -/** - * Check if two values are loosely equal - that is, - * if they are plain objects, do they have the same shape? - */ -function looseEqual (a, b) { - if (a === b) { return true } - var isObjectA = isObject(a); - var isObjectB = isObject(b); - if (isObjectA && isObjectB) { - try { - var isArrayA = Array.isArray(a); - var isArrayB = Array.isArray(b); - if (isArrayA && isArrayB) { - return a.length === b.length && a.every(function (e, i) { - return looseEqual(e, b[i]) - }) - } else if (!isArrayA && !isArrayB) { - var keysA = Object.keys(a); - var keysB = Object.keys(b); - return keysA.length === keysB.length && keysA.every(function (key) { - return looseEqual(a[key], b[key]) - }) - } else { - /* istanbul ignore next */ - return false - } - } catch (e) { - /* istanbul ignore next */ - return false - } - } else if (!isObjectA && !isObjectB) { - return String(a) === String(b) - } else { - return false - } -} - -function looseIndexOf (arr, val) { - for (var i = 0; i < arr.length; i++) { - if (looseEqual(arr[i], val)) { return i } - } - return -1 -} - -/** - * Ensure a function is called only once. - */ -function once (fn) { - var called = false; - return function () { - if (!called) { - called = true; - fn.apply(this, arguments); - } - } -} - -var SSR_ATTR = 'data-server-rendered'; - -var ASSET_TYPES = [ - 'component', - 'directive', - 'filter' -]; - -var LIFECYCLE_HOOKS = [ - 'beforeCreate', - 'created', - 'beforeMount', - 'mounted', - 'beforeUpdate', - 'updated', - 'beforeDestroy', - 'destroyed', - 'activated', - 'deactivated', - 'errorCaptured' -]; - -/* */ - -var config = ({ - /** - * Option merge strategies (used in core/util/options) - */ - // $flow-disable-line - optionMergeStrategies: Object.create(null), - - /** - * Whether to suppress warnings. - */ - silent: false, - - /** - * Show production mode tip message on boot? - */ - productionTip: process.env.NODE_ENV !== 'production', - - /** - * Whether to enable devtools - */ - devtools: process.env.NODE_ENV !== 'production', - - /** - * Whether to record perf - */ - performance: false, - - /** - * Error handler for watcher errors - */ - errorHandler: null, - - /** - * Warn handler for watcher warns - */ - warnHandler: null, - - /** - * Ignore certain custom elements - */ - ignoredElements: [], - - /** - * Custom user key aliases for v-on - */ - // $flow-disable-line - keyCodes: Object.create(null), - - /** - * Check if a tag is reserved so that it cannot be registered as a - * component. This is platform-dependent and may be overwritten. - */ - isReservedTag: no, - - /** - * Check if an attribute is reserved so that it cannot be used as a component - * prop. This is platform-dependent and may be overwritten. - */ - isReservedAttr: no, - - /** - * Check if a tag is an unknown element. - * Platform-dependent. - */ - isUnknownElement: no, - - /** - * Get the namespace of an element - */ - getTagNamespace: noop, - - /** - * Parse the real tag name for the specific platform. - */ - parsePlatformTagName: identity, - - /** - * Check if an attribute must be bound using property, e.g. value - * Platform-dependent. - */ - mustUseProp: no, - - /** - * Exposed for legacy reasons - */ - _lifecycleHooks: LIFECYCLE_HOOKS -}); - -/* */ - -/** - * Check if a string starts with $ or _ - */ -function isReserved (str) { - var c = (str + '').charCodeAt(0); - return c === 0x24 || c === 0x5F -} - -/** - * Define a property. - */ -function def (obj, key, val, enumerable) { - Object.defineProperty(obj, key, { - value: val, - enumerable: !!enumerable, - writable: true, - configurable: true - }); -} - -/** - * Parse simple path. - */ -var bailRE = /[^\w.$]/; -function parsePath (path) { - if (bailRE.test(path)) { - return - } - var segments = path.split('.'); - return function (obj) { - for (var i = 0; i < segments.length; i++) { - if (!obj) { return } - obj = obj[segments[i]]; - } - return obj - } -} - -/* */ - - -// can we use __proto__? -var hasProto = '__proto__' in {}; - -// Browser environment sniffing -var inBrowser = typeof window !== 'undefined'; -var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform; -var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase(); -var UA = inBrowser && window.navigator.userAgent.toLowerCase(); -var isIE = UA && /msie|trident/.test(UA); -var isIE9 = UA && UA.indexOf('msie 9.0') > 0; -var isEdge = UA && UA.indexOf('edge/') > 0; -var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android'); -var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios'); -var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge; - -// Firefox has a "watch" function on Object.prototype... -var nativeWatch = ({}).watch; - -var supportsPassive = false; -if (inBrowser) { - try { - var opts = {}; - Object.defineProperty(opts, 'passive', ({ - get: function get () { - /* istanbul ignore next */ - supportsPassive = true; - } - })); // https://github.com/facebook/flow/issues/285 - window.addEventListener('test-passive', null, opts); - } catch (e) {} -} - -// this needs to be lazy-evaled because vue may be required before -// vue-server-renderer can set VUE_ENV -var _isServer; -var isServerRendering = function () { - if (_isServer === undefined) { - /* istanbul ignore if */ - if (!inBrowser && typeof global !== 'undefined') { - // detect presence of vue-server-renderer and avoid - // Webpack shimming the process - _isServer = global['process'].env.VUE_ENV === 'server'; - } else { - _isServer = false; - } - } - return _isServer -}; - -// detect devtools -var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__; - -/* istanbul ignore next */ -function isNative (Ctor) { - return typeof Ctor === 'function' && /native code/.test(Ctor.toString()) -} - -var hasSymbol = - typeof Symbol !== 'undefined' && isNative(Symbol) && - typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys); - -var _Set; -/* istanbul ignore if */ // $flow-disable-line -if (typeof Set !== 'undefined' && isNative(Set)) { - // use native Set when available. - _Set = Set; -} else { - // a non-standard Set polyfill that only works with primitive keys. - _Set = (function () { - function Set () { - this.set = Object.create(null); - } - Set.prototype.has = function has (key) { - return this.set[key] === true - }; - Set.prototype.add = function add (key) { - this.set[key] = true; - }; - Set.prototype.clear = function clear () { - this.set = Object.create(null); - }; - - return Set; - }()); -} - -/* */ - -var warn = noop; -var tip = noop; -var generateComponentTrace = (noop); // work around flow check -var formatComponentName = (noop); - -if (process.env.NODE_ENV !== 'production') { - var hasConsole = typeof console !== 'undefined'; - var classifyRE = /(?:^|[-_])(\w)/g; - var classify = function (str) { return str - .replace(classifyRE, function (c) { return c.toUpperCase(); }) - .replace(/[-_]/g, ''); }; - - warn = function (msg, vm) { - var trace = vm ? generateComponentTrace(vm) : ''; - - if (config.warnHandler) { - config.warnHandler.call(null, msg, vm, trace); - } else if (hasConsole && (!config.silent)) { - console.error(("[Vue warn]: " + msg + trace)); - } - }; - - tip = function (msg, vm) { - if (hasConsole && (!config.silent)) { - console.warn("[Vue tip]: " + msg + ( - vm ? generateComponentTrace(vm) : '' - )); - } - }; - - formatComponentName = function (vm, includeFile) { - if (vm.$root === vm) { - return '' - } - var options = typeof vm === 'function' && vm.cid != null - ? vm.options - : vm._isVue - ? vm.$options || vm.constructor.options - : vm || {}; - var name = options.name || options._componentTag; - var file = options.__file; - if (!name && file) { - var match = file.match(/([^/\\]+)\.vue$/); - name = match && match[1]; - } - - return ( - (name ? ("<" + (classify(name)) + ">") : "") + - (file && includeFile !== false ? (" at " + file) : '') - ) - }; - - var repeat = function (str, n) { - var res = ''; - while (n) { - if (n % 2 === 1) { res += str; } - if (n > 1) { str += str; } - n >>= 1; - } - return res - }; - - generateComponentTrace = function (vm) { - if (vm._isVue && vm.$parent) { - var tree = []; - var currentRecursiveSequence = 0; - while (vm) { - if (tree.length > 0) { - var last = tree[tree.length - 1]; - if (last.constructor === vm.constructor) { - currentRecursiveSequence++; - vm = vm.$parent; - continue - } else if (currentRecursiveSequence > 0) { - tree[tree.length - 1] = [last, currentRecursiveSequence]; - currentRecursiveSequence = 0; - } - } - tree.push(vm); - vm = vm.$parent; - } - return '\n\nfound in\n\n' + tree - .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm) - ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)") - : formatComponentName(vm))); }) - .join('\n') - } else { - return ("\n\n(found in " + (formatComponentName(vm)) + ")") - } - }; -} - -/* */ - - -var uid = 0; - -/** - * A dep is an observable that can have multiple - * directives subscribing to it. - */ -var Dep = function Dep () { - this.id = uid++; - this.subs = []; -}; - -Dep.prototype.addSub = function addSub (sub) { - this.subs.push(sub); -}; - -Dep.prototype.removeSub = function removeSub (sub) { - remove(this.subs, sub); -}; - -Dep.prototype.depend = function depend () { - if (Dep.target) { - Dep.target.addDep(this); - } -}; - -Dep.prototype.notify = function notify () { - // stabilize the subscriber list first - var subs = this.subs.slice(); - for (var i = 0, l = subs.length; i < l; i++) { - subs[i].update(); - } -}; - -// the current target watcher being evaluated. -// this is globally unique because there could be only one -// watcher being evaluated at any time. -Dep.target = null; -var targetStack = []; - -function pushTarget (_target) { - if (Dep.target) { targetStack.push(Dep.target); } - Dep.target = _target; -} - -function popTarget () { - Dep.target = targetStack.pop(); -} - -/* */ - -var VNode = function VNode ( - tag, - data, - children, - text, - elm, - context, - componentOptions, - asyncFactory -) { - this.tag = tag; - this.data = data; - this.children = children; - this.text = text; - this.elm = elm; - this.ns = undefined; - this.context = context; - this.fnContext = undefined; - this.fnOptions = undefined; - this.fnScopeId = undefined; - this.key = data && data.key; - this.componentOptions = componentOptions; - this.componentInstance = undefined; - this.parent = undefined; - this.raw = false; - this.isStatic = false; - this.isRootInsert = true; - this.isComment = false; - this.isCloned = false; - this.isOnce = false; - this.asyncFactory = asyncFactory; - this.asyncMeta = undefined; - this.isAsyncPlaceholder = false; -}; - -var prototypeAccessors = { child: { configurable: true } }; - -// DEPRECATED: alias for componentInstance for backwards compat. -/* istanbul ignore next */ -prototypeAccessors.child.get = function () { - return this.componentInstance -}; - -Object.defineProperties( VNode.prototype, prototypeAccessors ); - -var createEmptyVNode = function (text) { - if ( text === void 0 ) text = ''; - - var node = new VNode(); - node.text = text; - node.isComment = true; - return node -}; - -function createTextVNode (val) { - return new VNode(undefined, undefined, undefined, String(val)) -} - -// optimized shallow clone -// used for static nodes and slot nodes because they may be reused across -// multiple renders, cloning them avoids errors when DOM manipulations rely -// on their elm reference. -function cloneVNode (vnode, deep) { - var componentOptions = vnode.componentOptions; - var cloned = new VNode( - vnode.tag, - vnode.data, - vnode.children, - vnode.text, - vnode.elm, - vnode.context, - componentOptions, - vnode.asyncFactory - ); - cloned.ns = vnode.ns; - cloned.isStatic = vnode.isStatic; - cloned.key = vnode.key; - cloned.isComment = vnode.isComment; - cloned.fnContext = vnode.fnContext; - cloned.fnOptions = vnode.fnOptions; - cloned.fnScopeId = vnode.fnScopeId; - cloned.isCloned = true; - if (deep) { - if (vnode.children) { - cloned.children = cloneVNodes(vnode.children, true); - } - if (componentOptions && componentOptions.children) { - componentOptions.children = cloneVNodes(componentOptions.children, true); - } - } - return cloned -} - -function cloneVNodes (vnodes, deep) { - var len = vnodes.length; - var res = new Array(len); - for (var i = 0; i < len; i++) { - res[i] = cloneVNode(vnodes[i], deep); - } - return res -} - -/* - * not type checking this file because flow doesn't play well with - * dynamically accessing methods on Array prototype - */ - -var arrayProto = Array.prototype; -var arrayMethods = Object.create(arrayProto);[ - 'push', - 'pop', - 'shift', - 'unshift', - 'splice', - 'sort', - 'reverse' -].forEach(function (method) { - // cache original method - var original = arrayProto[method]; - def(arrayMethods, method, function mutator () { - var args = [], len = arguments.length; - while ( len-- ) args[ len ] = arguments[ len ]; - - var result = original.apply(this, args); - var ob = this.__ob__; - var inserted; - switch (method) { - case 'push': - case 'unshift': - inserted = args; - break - case 'splice': - inserted = args.slice(2); - break - } - if (inserted) { ob.observeArray(inserted); } - // notify change - ob.dep.notify(); - return result - }); -}); - -/* */ - -var arrayKeys = Object.getOwnPropertyNames(arrayMethods); - -/** - * By default, when a reactive property is set, the new value is - * also converted to become reactive. However when passing down props, - * we don't want to force conversion because the value may be a nested value - * under a frozen data structure. Converting it would defeat the optimization. - */ -var observerState = { - shouldConvert: true -}; - -/** - * Observer class that are attached to each observed - * object. Once attached, the observer converts target - * object's property keys into getter/setters that - * collect dependencies and dispatches updates. - */ -var Observer = function Observer (value) { - this.value = value; - this.dep = new Dep(); - this.vmCount = 0; - def(value, '__ob__', this); - if (Array.isArray(value)) { - var augment = hasProto - ? protoAugment - : copyAugment; - augment(value, arrayMethods, arrayKeys); - this.observeArray(value); - } else { - this.walk(value); - } -}; - -/** - * Walk through each property and convert them into - * getter/setters. This method should only be called when - * value type is Object. - */ -Observer.prototype.walk = function walk (obj) { - var keys = Object.keys(obj); - for (var i = 0; i < keys.length; i++) { - defineReactive(obj, keys[i], obj[keys[i]]); - } -}; - -/** - * Observe a list of Array items. - */ -Observer.prototype.observeArray = function observeArray (items) { - for (var i = 0, l = items.length; i < l; i++) { - observe(items[i]); - } -}; - -// helpers - -/** - * Augment an target Object or Array by intercepting - * the prototype chain using __proto__ - */ -function protoAugment (target, src, keys) { - /* eslint-disable no-proto */ - target.__proto__ = src; - /* eslint-enable no-proto */ -} - -/** - * Augment an target Object or Array by defining - * hidden properties. - */ -/* istanbul ignore next */ -function copyAugment (target, src, keys) { - for (var i = 0, l = keys.length; i < l; i++) { - var key = keys[i]; - def(target, key, src[key]); - } -} - -/** - * Attempt to create an observer instance for a value, - * returns the new observer if successfully observed, - * or the existing observer if the value already has one. - */ -function observe (value, asRootData) { - if (!isObject(value) || value instanceof VNode) { - return - } - var ob; - if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) { - ob = value.__ob__; - } else if ( - observerState.shouldConvert && - !isServerRendering() && - (Array.isArray(value) || isPlainObject(value)) && - Object.isExtensible(value) && - !value._isVue - ) { - ob = new Observer(value); - } - if (asRootData && ob) { - ob.vmCount++; - } - return ob -} - -/** - * Define a reactive property on an Object. - */ -function defineReactive ( - obj, - key, - val, - customSetter, - shallow -) { - var dep = new Dep(); - - var property = Object.getOwnPropertyDescriptor(obj, key); - if (property && property.configurable === false) { - return - } - - // cater for pre-defined getter/setters - var getter = property && property.get; - var setter = property && property.set; - - var childOb = !shallow && observe(val); - Object.defineProperty(obj, key, { - enumerable: true, - configurable: true, - get: function reactiveGetter () { - var value = getter ? getter.call(obj) : val; - if (Dep.target) { - dep.depend(); - if (childOb) { - childOb.dep.depend(); - if (Array.isArray(value)) { - dependArray(value); - } - } - } - return value - }, - set: function reactiveSetter (newVal) { - var value = getter ? getter.call(obj) : val; - /* eslint-disable no-self-compare */ - if (newVal === value || (newVal !== newVal && value !== value)) { - return - } - /* eslint-enable no-self-compare */ - if (process.env.NODE_ENV !== 'production' && customSetter) { - customSetter(); - } - if (setter) { - setter.call(obj, newVal); - } else { - val = newVal; - } - childOb = !shallow && observe(newVal); - dep.notify(); - } - }); -} - -/** - * Set a property on an object. Adds the new property and - * triggers change notification if the property doesn't - * already exist. - */ -function set (target, key, val) { - if (Array.isArray(target) && isValidArrayIndex(key)) { - target.length = Math.max(target.length, key); - target.splice(key, 1, val); - return val - } - if (key in target && !(key in Object.prototype)) { - target[key] = val; - return val - } - var ob = (target).__ob__; - if (target._isVue || (ob && ob.vmCount)) { - process.env.NODE_ENV !== 'production' && warn( - 'Avoid adding reactive properties to a Vue instance or its root $data ' + - 'at runtime - declare it upfront in the data option.' - ); - return val - } - if (!ob) { - target[key] = val; - return val - } - defineReactive(ob.value, key, val); - ob.dep.notify(); - return val -} - -/** - * Delete a property and trigger change if necessary. - */ -function del (target, key) { - if (Array.isArray(target) && isValidArrayIndex(key)) { - target.splice(key, 1); - return - } - var ob = (target).__ob__; - if (target._isVue || (ob && ob.vmCount)) { - process.env.NODE_ENV !== 'production' && warn( - 'Avoid deleting properties on a Vue instance or its root $data ' + - '- just set it to null.' - ); - return - } - if (!hasOwn(target, key)) { - return - } - delete target[key]; - if (!ob) { - return - } - ob.dep.notify(); -} - -/** - * Collect dependencies on array elements when the array is touched, since - * we cannot intercept array element access like property getters. - */ -function dependArray (value) { - for (var e = (void 0), i = 0, l = value.length; i < l; i++) { - e = value[i]; - e && e.__ob__ && e.__ob__.dep.depend(); - if (Array.isArray(e)) { - dependArray(e); - } - } -} - -/* */ - -/** - * Option overwriting strategies are functions that handle - * how to merge a parent option value and a child option - * value into the final value. - */ -var strats = config.optionMergeStrategies; - -/** - * Options with restrictions - */ -if (process.env.NODE_ENV !== 'production') { - strats.el = strats.propsData = function (parent, child, vm, key) { - if (!vm) { - warn( - "option \"" + key + "\" can only be used during instance " + - 'creation with the `new` keyword.' - ); - } - return defaultStrat(parent, child) - }; -} - -/** - * Helper that recursively merges two data objects together. - */ -function mergeData (to, from) { - if (!from) { return to } - var key, toVal, fromVal; - var keys = Object.keys(from); - for (var i = 0; i < keys.length; i++) { - key = keys[i]; - toVal = to[key]; - fromVal = from[key]; - if (!hasOwn(to, key)) { - set(to, key, fromVal); - } else if (isPlainObject(toVal) && isPlainObject(fromVal)) { - mergeData(toVal, fromVal); - } - } - return to -} - -/** - * Data - */ -function mergeDataOrFn ( - parentVal, - childVal, - vm -) { - if (!vm) { - // in a Vue.extend merge, both should be functions - if (!childVal) { - return parentVal - } - if (!parentVal) { - return childVal - } - // when parentVal & childVal are both present, - // we need to return a function that returns the - // merged result of both functions... no need to - // check if parentVal is a function here because - // it has to be a function to pass previous merges. - return function mergedDataFn () { - return mergeData( - typeof childVal === 'function' ? childVal.call(this, this) : childVal, - typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal - ) - } - } else { - return function mergedInstanceDataFn () { - // instance merge - var instanceData = typeof childVal === 'function' - ? childVal.call(vm, vm) - : childVal; - var defaultData = typeof parentVal === 'function' - ? parentVal.call(vm, vm) - : parentVal; - if (instanceData) { - return mergeData(instanceData, defaultData) - } else { - return defaultData - } - } - } -} - -strats.data = function ( - parentVal, - childVal, - vm -) { - if (!vm) { - if (childVal && typeof childVal !== 'function') { - process.env.NODE_ENV !== 'production' && warn( - 'The "data" option should be a function ' + - 'that returns a per-instance value in component ' + - 'definitions.', - vm - ); - - return parentVal - } - return mergeDataOrFn(parentVal, childVal) - } - - return mergeDataOrFn(parentVal, childVal, vm) -}; - -/** - * Hooks and props are merged as arrays. - */ -function mergeHook ( - parentVal, - childVal -) { - return childVal - ? parentVal - ? parentVal.concat(childVal) - : Array.isArray(childVal) - ? childVal - : [childVal] - : parentVal -} - -LIFECYCLE_HOOKS.forEach(function (hook) { - strats[hook] = mergeHook; -}); - -/** - * Assets - * - * When a vm is present (instance creation), we need to do - * a three-way merge between constructor options, instance - * options and parent options. - */ -function mergeAssets ( - parentVal, - childVal, - vm, - key -) { - var res = Object.create(parentVal || null); - if (childVal) { - process.env.NODE_ENV !== 'production' && assertObjectType(key, childVal, vm); - return extend(res, childVal) - } else { - return res - } -} - -ASSET_TYPES.forEach(function (type) { - strats[type + 's'] = mergeAssets; -}); - -/** - * Watchers. - * - * Watchers hashes should not overwrite one - * another, so we merge them as arrays. - */ -strats.watch = function ( - parentVal, - childVal, - vm, - key -) { - // work around Firefox's Object.prototype.watch... - if (parentVal === nativeWatch) { parentVal = undefined; } - if (childVal === nativeWatch) { childVal = undefined; } - /* istanbul ignore if */ - if (!childVal) { return Object.create(parentVal || null) } - if (process.env.NODE_ENV !== 'production') { - assertObjectType(key, childVal, vm); - } - if (!parentVal) { return childVal } - var ret = {}; - extend(ret, parentVal); - for (var key$1 in childVal) { - var parent = ret[key$1]; - var child = childVal[key$1]; - if (parent && !Array.isArray(parent)) { - parent = [parent]; - } - ret[key$1] = parent - ? parent.concat(child) - : Array.isArray(child) ? child : [child]; - } - return ret -}; - -/** - * Other object hashes. - */ -strats.props = -strats.methods = -strats.inject = -strats.computed = function ( - parentVal, - childVal, - vm, - key -) { - if (childVal && process.env.NODE_ENV !== 'production') { - assertObjectType(key, childVal, vm); - } - if (!parentVal) { return childVal } - var ret = Object.create(null); - extend(ret, parentVal); - if (childVal) { extend(ret, childVal); } - return ret -}; -strats.provide = mergeDataOrFn; - -/** - * Default strategy. - */ -var defaultStrat = function (parentVal, childVal) { - return childVal === undefined - ? parentVal - : childVal -}; - -/** - * Validate component names - */ -function checkComponents (options) { - for (var key in options.components) { - validateComponentName(key); - } -} - -function validateComponentName (name) { - if (!/^[a-zA-Z][\w-]*$/.test(name)) { - warn( - 'Invalid component name: "' + name + '". Component names ' + - 'can only contain alphanumeric characters and the hyphen, ' + - 'and must start with a letter.' - ); - } - if (isBuiltInTag(name) || config.isReservedTag(name)) { - warn( - 'Do not use built-in or reserved HTML elements as component ' + - 'id: ' + name - ); - } -} - -/** - * Ensure all props option syntax are normalized into the - * Object-based format. - */ -function normalizeProps (options, vm) { - var props = options.props; - if (!props) { return } - var res = {}; - var i, val, name; - if (Array.isArray(props)) { - i = props.length; - while (i--) { - val = props[i]; - if (typeof val === 'string') { - name = camelize(val); - res[name] = { type: null }; - } else if (process.env.NODE_ENV !== 'production') { - warn('props must be strings when using array syntax.'); - } - } - } else if (isPlainObject(props)) { - for (var key in props) { - val = props[key]; - name = camelize(key); - res[name] = isPlainObject(val) - ? val - : { type: val }; - } - } else if (process.env.NODE_ENV !== 'production') { - warn( - "Invalid value for option \"props\": expected an Array or an Object, " + - "but got " + (toRawType(props)) + ".", - vm - ); - } - options.props = res; -} - -/** - * Normalize all injections into Object-based format - */ -function normalizeInject (options, vm) { - var inject = options.inject; - if (!inject) { return } - var normalized = options.inject = {}; - if (Array.isArray(inject)) { - for (var i = 0; i < inject.length; i++) { - normalized[inject[i]] = { from: inject[i] }; - } - } else if (isPlainObject(inject)) { - for (var key in inject) { - var val = inject[key]; - normalized[key] = isPlainObject(val) - ? extend({ from: key }, val) - : { from: val }; - } - } else if (process.env.NODE_ENV !== 'production') { - warn( - "Invalid value for option \"inject\": expected an Array or an Object, " + - "but got " + (toRawType(inject)) + ".", - vm - ); - } -} - -/** - * Normalize raw function directives into object format. - */ -function normalizeDirectives (options) { - var dirs = options.directives; - if (dirs) { - for (var key in dirs) { - var def = dirs[key]; - if (typeof def === 'function') { - dirs[key] = { bind: def, update: def }; - } - } - } -} - -function assertObjectType (name, value, vm) { - if (!isPlainObject(value)) { - warn( - "Invalid value for option \"" + name + "\": expected an Object, " + - "but got " + (toRawType(value)) + ".", - vm - ); - } -} - -/** - * Merge two option objects into a new one. - * Core utility used in both instantiation and inheritance. - */ -function mergeOptions ( - parent, - child, - vm -) { - if (process.env.NODE_ENV !== 'production') { - checkComponents(child); - } - - if (typeof child === 'function') { - child = child.options; - } - - normalizeProps(child, vm); - normalizeInject(child, vm); - normalizeDirectives(child); - var extendsFrom = child.extends; - if (extendsFrom) { - parent = mergeOptions(parent, extendsFrom, vm); - } - if (child.mixins) { - for (var i = 0, l = child.mixins.length; i < l; i++) { - parent = mergeOptions(parent, child.mixins[i], vm); - } - } - var options = {}; - var key; - for (key in parent) { - mergeField(key); - } - for (key in child) { - if (!hasOwn(parent, key)) { - mergeField(key); - } - } - function mergeField (key) { - var strat = strats[key] || defaultStrat; - options[key] = strat(parent[key], child[key], vm, key); - } - return options -} - -/** - * Resolve an asset. - * This function is used because child instances need access - * to assets defined in its ancestor chain. - */ -function resolveAsset ( - options, - type, - id, - warnMissing -) { - /* istanbul ignore if */ - if (typeof id !== 'string') { - return - } - var assets = options[type]; - // check local registration variations first - if (hasOwn(assets, id)) { return assets[id] } - var camelizedId = camelize(id); - if (hasOwn(assets, camelizedId)) { return assets[camelizedId] } - var PascalCaseId = capitalize(camelizedId); - if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] } - // fallback to prototype chain - var res = assets[id] || assets[camelizedId] || assets[PascalCaseId]; - if (process.env.NODE_ENV !== 'production' && warnMissing && !res) { - warn( - 'Failed to resolve ' + type.slice(0, -1) + ': ' + id, - options - ); - } - return res -} - -/* */ - -function validateProp ( - key, - propOptions, - propsData, - vm -) { - var prop = propOptions[key]; - var absent = !hasOwn(propsData, key); - var value = propsData[key]; - // handle boolean props - if (isType(Boolean, prop.type)) { - if (absent && !hasOwn(prop, 'default')) { - value = false; - } else if (!isType(String, prop.type) && (value === '' || value === hyphenate(key))) { - value = true; - } - } - // check default value - if (value === undefined) { - value = getPropDefaultValue(vm, prop, key); - // since the default value is a fresh copy, - // make sure to observe it. - var prevShouldConvert = observerState.shouldConvert; - observerState.shouldConvert = true; - observe(value); - observerState.shouldConvert = prevShouldConvert; - } - if ( - process.env.NODE_ENV !== 'production' && - // skip validation for weex recycle-list child component props - !(false && isObject(value) && ('@binding' in value)) - ) { - assertProp(prop, key, value, vm, absent); - } - return value -} - -/** - * Get the default value of a prop. - */ -function getPropDefaultValue (vm, prop, key) { - // no default, return undefined - if (!hasOwn(prop, 'default')) { - return undefined - } - var def = prop.default; - // warn against non-factory defaults for Object & Array - if (process.env.NODE_ENV !== 'production' && isObject(def)) { - warn( - 'Invalid default value for prop "' + key + '": ' + - 'Props with type Object/Array must use a factory function ' + - 'to return the default value.', - vm - ); - } - // the raw prop value was also undefined from previous render, - // return previous default value to avoid unnecessary watcher trigger - if (vm && vm.$options.propsData && - vm.$options.propsData[key] === undefined && - vm._props[key] !== undefined - ) { - return vm._props[key] - } - // call factory function for non-Function types - // a value is Function if its prototype is function even across different execution context - return typeof def === 'function' && getType(prop.type) !== 'Function' - ? def.call(vm) - : def -} - -/** - * Assert whether a prop is valid. - */ -function assertProp ( - prop, - name, - value, - vm, - absent -) { - if (prop.required && absent) { - warn( - 'Missing required prop: "' + name + '"', - vm - ); - return - } - if (value == null && !prop.required) { - return - } - var type = prop.type; - var valid = !type || type === true; - var expectedTypes = []; - if (type) { - if (!Array.isArray(type)) { - type = [type]; - } - for (var i = 0; i < type.length && !valid; i++) { - var assertedType = assertType(value, type[i]); - expectedTypes.push(assertedType.expectedType || ''); - valid = assertedType.valid; - } - } - if (!valid) { - warn( - "Invalid prop: type check failed for prop \"" + name + "\"." + - " Expected " + (expectedTypes.map(capitalize).join(', ')) + - ", got " + (toRawType(value)) + ".", - vm - ); - return - } - var validator = prop.validator; - if (validator) { - if (!validator(value)) { - warn( - 'Invalid prop: custom validator check failed for prop "' + name + '".', - vm - ); - } - } -} - -var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/; - -function assertType (value, type) { - var valid; - var expectedType = getType(type); - if (simpleCheckRE.test(expectedType)) { - var t = typeof value; - valid = t === expectedType.toLowerCase(); - // for primitive wrapper objects - if (!valid && t === 'object') { - valid = value instanceof type; - } - } else if (expectedType === 'Object') { - valid = isPlainObject(value); - } else if (expectedType === 'Array') { - valid = Array.isArray(value); - } else { - valid = value instanceof type; - } - return { - valid: valid, - expectedType: expectedType - } -} - -/** - * Use function string name to check built-in types, - * because a simple equality check will fail when running - * across different vms / iframes. - */ -function getType (fn) { - var match = fn && fn.toString().match(/^\s*function (\w+)/); - return match ? match[1] : '' -} - -function isType (type, fn) { - if (!Array.isArray(fn)) { - return getType(fn) === getType(type) - } - for (var i = 0, len = fn.length; i < len; i++) { - if (getType(fn[i]) === getType(type)) { - return true - } - } - /* istanbul ignore next */ - return false -} - -/* */ - -function handleError (err, vm, info) { - if (vm) { - var cur = vm; - while ((cur = cur.$parent)) { - var hooks = cur.$options.errorCaptured; - if (hooks) { - for (var i = 0; i < hooks.length; i++) { - try { - var capture = hooks[i].call(cur, err, vm, info) === false; - if (capture) { return } - } catch (e) { - globalHandleError(e, cur, 'errorCaptured hook'); - } - } - } - } - } - globalHandleError(err, vm, info); -} - -function globalHandleError (err, vm, info) { - if (config.errorHandler) { - try { - return config.errorHandler.call(null, err, vm, info) - } catch (e) { - logError(e, null, 'config.errorHandler'); - } - } - logError(err, vm, info); -} - -function logError (err, vm, info) { - if (process.env.NODE_ENV !== 'production') { - warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm); - } - /* istanbul ignore else */ - if ((inBrowser || inWeex) && typeof console !== 'undefined') { - console.error(err); - } else { - throw err - } -} - -/* */ -/* globals MessageChannel */ - -var callbacks = []; -var pending = false; - -function flushCallbacks () { - pending = false; - var copies = callbacks.slice(0); - callbacks.length = 0; - for (var i = 0; i < copies.length; i++) { - copies[i](); - } -} - -// Here we have async deferring wrappers using both micro and macro tasks. -// In < 2.4 we used micro tasks everywhere, but there are some scenarios where -// micro tasks have too high a priority and fires in between supposedly -// sequential events (e.g. #4521, #6690) or even between bubbling of the same -// event (#6566). However, using macro tasks everywhere also has subtle problems -// when state is changed right before repaint (e.g. #6813, out-in transitions). -// Here we use micro task by default, but expose a way to force macro task when -// needed (e.g. in event handlers attached by v-on). -var microTimerFunc; -var macroTimerFunc; -var useMacroTask = false; - -// Determine (macro) Task defer implementation. -// Technically setImmediate should be the ideal choice, but it's only available -// in IE. The only polyfill that consistently queues the callback after all DOM -// events triggered in the same loop is by using MessageChannel. -/* istanbul ignore if */ -if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) { - macroTimerFunc = function () { - setImmediate(flushCallbacks); - }; -} else if (typeof MessageChannel !== 'undefined' && ( - isNative(MessageChannel) || - // PhantomJS - MessageChannel.toString() === '[object MessageChannelConstructor]' -)) { - var channel = new MessageChannel(); - var port = channel.port2; - channel.port1.onmessage = flushCallbacks; - macroTimerFunc = function () { - port.postMessage(1); - }; -} else { - /* istanbul ignore next */ - macroTimerFunc = function () { - setTimeout(flushCallbacks, 0); - }; -} - -// Determine MicroTask defer implementation. -/* istanbul ignore next, $flow-disable-line */ -if (typeof Promise !== 'undefined' && isNative(Promise)) { - var p = Promise.resolve(); - microTimerFunc = function () { - p.then(flushCallbacks); - // in problematic UIWebViews, Promise.then doesn't completely break, but - // it can get stuck in a weird state where callbacks are pushed into the - // microtask queue but the queue isn't being flushed, until the browser - // needs to do some other work, e.g. handle a timer. Therefore we can - // "force" the microtask queue to be flushed by adding an empty timer. - if (isIOS) { setTimeout(noop); } - }; -} else { - // fallback to macro - microTimerFunc = macroTimerFunc; -} - -/** - * Wrap a function so that if any code inside triggers state change, - * the changes are queued using a Task instead of a MicroTask. - */ -function withMacroTask (fn) { - return fn._withTask || (fn._withTask = function () { - useMacroTask = true; - var res = fn.apply(null, arguments); - useMacroTask = false; - return res - }) -} - -function nextTick (cb, ctx) { - var _resolve; - callbacks.push(function () { - if (cb) { - try { - cb.call(ctx); - } catch (e) { - handleError(e, ctx, 'nextTick'); - } - } else if (_resolve) { - _resolve(ctx); - } - }); - if (!pending) { - pending = true; - if (useMacroTask) { - macroTimerFunc(); - } else { - microTimerFunc(); - } - } - // $flow-disable-line - if (!cb && typeof Promise !== 'undefined') { - return new Promise(function (resolve) { - _resolve = resolve; - }) - } -} - -/* */ - -var mark; -var measure; - -if (process.env.NODE_ENV !== 'production') { - var perf = inBrowser && window.performance; - /* istanbul ignore if */ - if ( - perf && - perf.mark && - perf.measure && - perf.clearMarks && - perf.clearMeasures - ) { - mark = function (tag) { return perf.mark(tag); }; - measure = function (name, startTag, endTag) { - perf.measure(name, startTag, endTag); - perf.clearMarks(startTag); - perf.clearMarks(endTag); - perf.clearMeasures(name); - }; - } -} - -/* not type checking this file because flow doesn't play well with Proxy */ - -var initProxy; - -if (process.env.NODE_ENV !== 'production') { - var allowedGlobals = makeMap( - 'Infinity,undefined,NaN,isFinite,isNaN,' + - 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' + - 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' + - 'require' // for Webpack/Browserify - ); - - var warnNonPresent = function (target, key) { - warn( - "Property or method \"" + key + "\" is not defined on the instance but " + - 'referenced during render. Make sure that this property is reactive, ' + - 'either in the data option, or for class-based components, by ' + - 'initializing the property. ' + - 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.', - target - ); - }; - - var hasProxy = - typeof Proxy !== 'undefined' && - Proxy.toString().match(/native code/); - - if (hasProxy) { - var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact'); - config.keyCodes = new Proxy(config.keyCodes, { - set: function set (target, key, value) { - if (isBuiltInModifier(key)) { - warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key)); - return false - } else { - target[key] = value; - return true - } - } - }); - } - - var hasHandler = { - has: function has (target, key) { - var has = key in target; - var isAllowed = allowedGlobals(key) || key.charAt(0) === '_'; - if (!has && !isAllowed) { - warnNonPresent(target, key); - } - return has || !isAllowed - } - }; - - var getHandler = { - get: function get (target, key) { - if (typeof key === 'string' && !(key in target)) { - warnNonPresent(target, key); - } - return target[key] - } - }; - - initProxy = function initProxy (vm) { - if (hasProxy) { - // determine which proxy handler to use - var options = vm.$options; - var handlers = options.render && options.render._withStripped - ? getHandler - : hasHandler; - vm._renderProxy = new Proxy(vm, handlers); - } else { - vm._renderProxy = vm; - } - }; -} - -/* */ - -var seenObjects = new _Set(); - -/** - * Recursively traverse an object to evoke all converted - * getters, so that every nested property inside the object - * is collected as a "deep" dependency. - */ -function traverse (val) { - _traverse(val, seenObjects); - seenObjects.clear(); -} - -function _traverse (val, seen) { - var i, keys; - var isA = Array.isArray(val); - if ((!isA && !isObject(val)) || Object.isFrozen(val)) { - return - } - if (val.__ob__) { - var depId = val.__ob__.dep.id; - if (seen.has(depId)) { - return - } - seen.add(depId); - } - if (isA) { - i = val.length; - while (i--) { _traverse(val[i], seen); } - } else { - keys = Object.keys(val); - i = keys.length; - while (i--) { _traverse(val[keys[i]], seen); } - } -} - -/* */ - -var normalizeEvent = cached(function (name) { - var passive = name.charAt(0) === '&'; - name = passive ? name.slice(1) : name; - var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first - name = once$$1 ? name.slice(1) : name; - var capture = name.charAt(0) === '!'; - name = capture ? name.slice(1) : name; - return { - name: name, - once: once$$1, - capture: capture, - passive: passive - } -}); - -function createFnInvoker (fns) { - function invoker () { - var arguments$1 = arguments; - - var fns = invoker.fns; - if (Array.isArray(fns)) { - var cloned = fns.slice(); - for (var i = 0; i < cloned.length; i++) { - cloned[i].apply(null, arguments$1); - } - } else { - // return handler return value for single handlers - return fns.apply(null, arguments) - } - } - invoker.fns = fns; - return invoker -} - -function updateListeners ( - on, - oldOn, - add, - remove$$1, - vm -) { - var name, def, cur, old, event; - for (name in on) { - def = cur = on[name]; - old = oldOn[name]; - event = normalizeEvent(name); - /* istanbul ignore if */ - if (isUndef(cur)) { - process.env.NODE_ENV !== 'production' && warn( - "Invalid handler for event \"" + (event.name) + "\": got " + String(cur), - vm - ); - } else if (isUndef(old)) { - if (isUndef(cur.fns)) { - cur = on[name] = createFnInvoker(cur); - } - add(event.name, cur, event.once, event.capture, event.passive, event.params); - } else if (cur !== old) { - old.fns = cur; - on[name] = old; - } - } - for (name in oldOn) { - if (isUndef(on[name])) { - event = normalizeEvent(name); - remove$$1(event.name, oldOn[name], event.capture); - } - } -} - -/* */ - -function mergeVNodeHook (def, hookKey, hook) { - if (def instanceof VNode) { - def = def.data.hook || (def.data.hook = {}); - } - var invoker; - var oldHook = def[hookKey]; - - function wrappedHook () { - hook.apply(this, arguments); - // important: remove merged hook to ensure it's called only once - // and prevent memory leak - remove(invoker.fns, wrappedHook); - } - - if (isUndef(oldHook)) { - // no existing hook - invoker = createFnInvoker([wrappedHook]); - } else { - /* istanbul ignore if */ - if (isDef(oldHook.fns) && isTrue(oldHook.merged)) { - // already a merged invoker - invoker = oldHook; - invoker.fns.push(wrappedHook); - } else { - // existing plain hook - invoker = createFnInvoker([oldHook, wrappedHook]); - } - } - - invoker.merged = true; - def[hookKey] = invoker; -} - -/* */ - -function extractPropsFromVNodeData ( - data, - Ctor, - tag -) { - // we are only extracting raw values here. - // validation and default values are handled in the child - // component itself. - var propOptions = Ctor.options.props; - if (isUndef(propOptions)) { - return - } - var res = {}; - var attrs = data.attrs; - var props = data.props; - if (isDef(attrs) || isDef(props)) { - for (var key in propOptions) { - var altKey = hyphenate(key); - if (process.env.NODE_ENV !== 'production') { - var keyInLowerCase = key.toLowerCase(); - if ( - key !== keyInLowerCase && - attrs && hasOwn(attrs, keyInLowerCase) - ) { - tip( - "Prop \"" + keyInLowerCase + "\" is passed to component " + - (formatComponentName(tag || Ctor)) + ", but the declared prop name is" + - " \"" + key + "\". " + - "Note that HTML attributes are case-insensitive and camelCased " + - "props need to use their kebab-case equivalents when using in-DOM " + - "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"." - ); - } - } - checkProp(res, props, key, altKey, true) || - checkProp(res, attrs, key, altKey, false); - } - } - return res -} - -function checkProp ( - res, - hash, - key, - altKey, - preserve -) { - if (isDef(hash)) { - if (hasOwn(hash, key)) { - res[key] = hash[key]; - if (!preserve) { - delete hash[key]; - } - return true - } else if (hasOwn(hash, altKey)) { - res[key] = hash[altKey]; - if (!preserve) { - delete hash[altKey]; - } - return true - } - } - return false -} - -/* */ - -// The template compiler attempts to minimize the need for normalization by -// statically analyzing the template at compile time. -// -// For plain HTML markup, normalization can be completely skipped because the -// generated render function is guaranteed to return Array. There are -// two cases where extra normalization is needed: - -// 1. When the children contains components - because a functional component -// may return an Array instead of a single root. In this case, just a simple -// normalization is needed - if any child is an Array, we flatten the whole -// thing with Array.prototype.concat. It is guaranteed to be only 1-level deep -// because functional components already normalize their own children. -function simpleNormalizeChildren (children) { - for (var i = 0; i < children.length; i++) { - if (Array.isArray(children[i])) { - return Array.prototype.concat.apply([], children) - } - } - return children -} - -// 2. When the children contains constructs that always generated nested Arrays, -// e.g.