PageSourceSearch

https://app.advance.cm/en/569.a7665e7efc74e2f0.js

js advance.cm collected 2026-09-24 13:29:52 UTC 7,208 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunktv3=self.webpackChunktv3||[]).push([[569],{569:(x,r,l)=>{l.r(r),l.d(r,{DiscountsModule:()=>v});var p=l(36362),a=l(52816),O=l(74246),g=l(3269),m=l(12933),D=l(59610),I=l(92357),e=l(3184),P=l(63904),E=l(11371),c=l(97281),A=l(69715),M=l(9108);const b=["table"];function R(o,s){if(1&o){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"ul",17)(1,"li",18)(2,"button",19),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext().onExport()}),e.\u0275\u0275element(3,"i",20),e.\u0275\u0275elementContainerStart(4),e.\u0275\u0275i18n(5,21),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(6,"li")(7,"button",22),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext().onDeleteSelected()}),e.\u0275\u0275element(8,"i",23),e.\u0275\u0275elementContainerStart(9),e.\u0275\u0275i18n(10,24),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd()()()}if(2&o){const t=e.\u0275\u0275nextContext(),n=e.\u0275\u0275reference(22);e.\u0275\u0275advance(1),e.\u0275\u0275property("matTooltip",t.getDownloadTooltip(null==n.dataSource||null==n.dataSource.data?null:n.dataSource.data.length)),e.\u0275\u0275advance(1),e.\u0275\u0275property("disabled",!(null!=n.dataSource&&null!=n.dataSource.data&&n.dataSource.data.length)),e.\u0275\u0275advance(5),e.\u0275\u0275property("disabled",!n.isAnySelected())}}function y(o,s){if(1&o){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"ul",17)(1,"li",25)(2,"button",26),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext();const i=e.\u0275\u0275reference(22);return null==i?null:i.onAddDiscountCode()}),e.\u0275\u0275element(3,"i",27),e.\u0275\u0275elementContainerStart(4),e.\u0275\u0275i18n(5,28),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(6,"li",29)(7,"button",30),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext();const i=e.\u0275\u0275reference(22);return null==i?null:i.onAddLosDiscount()}),e.\u0275\u0275element(8,"i",31),e.\u0275\u0275elementContainerStart(9),e.\u0275\u0275i18n(10,32),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd()()()}}const U=[{path:"",component:(()=>{class o{constructor(t,n,i){this.store=t,this.confirmDialog=n,this.exportDiscountsDialog=i}ngOnInit(){}getDownloadTooltip(t){return t>0?"Download your filtered list to CSV.":"There are no guests under that filter!"}onDeleteSelected(){const t=this.table.selection.selected;!t.length||this.confirmDialog.confirm({title:"Delete selected discounts?",body:"Are you sure you want to delete the selected discounts?"}).subscribe(()=>{const n=t.filter(d=>"code"===d.discountType),i=t.filter(d=>"code"!==d.discountType);if(n.length>0){const d=n.map(S=>S.item.id);this.store.dispatch((0,D.lY)({ids:d}))}if(i.length>0){const d=i.map(S=>S.item.id);this.store.dispatch((0,g.yk)({ids:d}))}})}onExport(){var t,n;const i=null===(t=this.table)||void 0===t?void 0:t.getSelected(),d=i.length?i:null===(n=this.table)||void 0===n?void 0:n.dataSource.data;this.exportDiscountsDialog.open(d)}}return o.\u0275fac=function(t){return new(t||o)(e.\u0275\u0275directiveInject(P.yh),e.\u0275\u0275directiveInject(m.DNF),e.\u0275\u0275directiveInject(I.a))},o.\u0275cmp=e.\u0275\u0275defineComponent({type:o,selectors:[["app-discounts"]],viewQuery:function(t,n){if(1&t&&e.\u0275\u0275viewQuery(b,5),2&t){let i;e.\u0275\u0275queryRefresh(i=e.\u0275\u0275loadQuery())&&(n.table=i.first)}},decls:23,vars:7,consts:function(){let s,t,n,i,d,S,T,C,N,f;return s="Discounts",t="Actions",n="Add Discount",i="Download",d="Delete the selected discount(s).",S="Delete",T="Incentivize guests to book longer stays at your rental property by offering a discount based on the length of their reservation.",C="Discount Code",N="Add Codes to offer Discounts for your Webready bookings.",f="LOS Discount",[[1,"d-flex","align-items-center","gap-3","mb-3"],[1,"d-flex","align-items-center","gap-2"],[1,"page-title","mb-0"],s,["videoId","-",3,"articleId"],[1,"flex-fill"],["role","group","dropdown","",1,"btn-group","dropdown",3,"isDisabled"],["dropdownToggle","","type","button",1,"btn","btn-secondary-warning","dropdown-toggle"],[1,"cs-icon","cs-icon-bolt"],t,["class","dropdown-menu dropdown-menu-right",4,"dropdownMenu"],["dropdown","",1,"btn-group",3,"isDisabled"],["type","button","dropdownToggle","",1,"btn","btn-secondary-info","dropdown-toggle"],[1,"far","fa-plus"],n,[1,"container-box"],["table",""],[1,"dropdown-menu","dropdown-menu-right"],["matTooltipPosition","left",1,"btn-group",3,"matTooltip"],["type","button",3,"disabled","click"],[1,"cs-icon","cs-icon-cloud-download"],i,["type","button","matTooltip",d,"matTooltipPosition","left",3,"disabled","click"],[1,"cs-icon","cs-icon-trash"],S,[1,"menu-item-success"],["type","button","matTooltip",T,"matTooltipPosition","left",3,"click"],[1,"cs-icon","cs-icon-percent","fa-fw","text-sm"],C,[1,"menu-item-indigo"],["type","button","matTooltip",N,"matTooltipPosition","left",3,"click"],[1,"cs-icon","cs-icon-home-percent","fa-fw"],f]},template:function(t,n){1&t&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"h6",2),e.\u0275\u0275i18
1n(3,3),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(4,"app-page-help",4),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(5,"div",5),e.\u0275\u0275elementStart(6,"div",6),e.\u0275\u0275pipe(7,"isReadonlyRole"),e.\u0275\u0275elementStart(8,"button",7),e.\u0275\u0275element(9,"span",8),e.\u0275\u0275elementContainerStart(10),e.\u0275\u0275i18n(11,9),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(12,R,11,3,"ul",10),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(13,"div",11),e.\u0275\u0275pipe(14,"isReadonlyRole"),e.\u0275\u0275elementStart(15,"button",12),e.\u0275\u0275element(16,"span",13),e.\u0275\u0275elementContainerStart(17),e.\u0275\u0275i18n(18,14),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(19,y,11,0,"ul",10),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(20,"div",15),e.\u0275\u0275element(21,"app-discounts-table",null,16),e.\u0275\u0275elementEnd()),2&t&&(e.\u0275\u0275advance(4),e.\u0275\u0275property("articleId","t47j26ldtu"),e.\u0275\u0275advance(2),e.\u0275\u0275property("isDisabled",e.\u0275\u0275pipeBind1(7,3,1)),e.\u0275\u0275advance(7),e.\u0275\u0275property("isDisabled",e.\u0275\u0275pipeBind1(14,5,1)))},directives:[E.G,c.TO,c.Mq,c.Hz,A.gM,O.F],pipes:[M.T],styles:["[_nghost-%COMP%]     .filters-box>mat-form-field2:not(.search){width:12rem}"]}),o})()}];let $=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)}
1,o.\u0275mod=e.\u0275\u0275defineNgModule({type:o}),o.\u0275inj=e.\u0275\u0275defineInjector({imports:[[a.Bz.forChild(U)],a.Bz]}),o})();var h=l(39573);let v=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.\u0275\u0275defineNgModule({type:o}),o.\u0275inj=e.\u0275\u0275defineInjector({imports:[[p.CommonModule,$,h.DiscountsSharedModule]]}),o})()}}]);
2//# sourceMappingURL=569.a7665e7efc74e2f0.js.map

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