You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hai-oil-web/.angular/cache/17.0.7/vite/deps/ng-zorro-antd_carousel.js.map

8 lines
59 KiB

7 months ago
{
"version": 3,
"sources": ["../../../../../node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-carousel.mjs"],
"sourcesContent": ["import * as i0 from '@angular/core';\nimport { Directive, InjectionToken, EventEmitter, Component, ChangeDetectionStrategy, ViewEncapsulation, Optional, Inject, ContentChildren, ViewChild, Input, Output, NgModule } from '@angular/core';\nimport { __decorate } from 'tslib';\nimport { LEFT_ARROW, RIGHT_ARROW } from '@angular/cdk/keycodes';\nimport { NgIf, NgForOf, NgTemplateOutlet } from '@angular/common';\nimport { Subject, fromEvent, timer } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\nimport * as i1 from 'ng-zorro-antd/core/config';\nimport { WithConfig } from 'ng-zorro-antd/core/config';\nimport { InputBoolean, InputNumber } from 'ng-zorro-antd/core/util';\nimport * as i2 from '@angular/cdk/platform';\nimport * as i3 from 'ng-zorro-antd/core/services';\nimport * as i4 from '@angular/cdk/bidi';\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nconst _c0 = [\"slickList\"];\nconst _c1 = [\"slickTrack\"];\nfunction NzCarouselComponent_ul_6_li_1_ng_template_1_Template(rf, ctx) {}\nconst _c2 = a0 => ({\n $implicit: a0\n});\nfunction NzCarouselComponent_ul_6_li_1_Template(rf, ctx) {\n if (rf & 1) {\n const _r10 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"li\", 9);\n i0.ɵɵlistener(\"click\", function NzCarouselComponent_ul_6_li_1_Template_li_click_0_listener() {\n const restoredCtx = i0.ɵɵrestoreView(_r10);\n const i_r7 = restoredCtx.index;\n const ctx_r9 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r9.onLiClick(i_r7));\n });\n i0.ɵɵtemplate(1, NzCarouselComponent_ul_6_li_1_ng_template_1_Template, 0, 0, \"ng-template\", 10);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const i_r7 = ctx.index;\n const ctx_r5 = i0.ɵɵnextContext(2);\n const _r4 = i0.ɵɵreference(8);\n i0.ɵɵclassProp(\"slick-active\", i_r7 === ctx_r5.activeIndex);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r5.nzDotRender || _r4)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(4, _c2, i_r7));\n }\n}\nfunction NzCarouselComponent_ul_6_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"ul\", 7);\n i0.ɵɵtemplate(1, NzCarouselComponent_ul_6_li_1_Template, 2, 6, \"li\", 8);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext();\n i0.ɵɵclassProp(\"slick-dots-top\", ctx_r2.nzDotPosition === \"top\")(\"slick-dots-bottom\", ctx_r2.nzDotPosition === \"bottom\")(\"slick-dots-left\", ctx_r2.nzDotPosition === \"left\")(\"slick-dots-right\", ctx_r2.nzDotPosition === \"right\");\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngForOf\", ctx_r2.carouselContents);\n }\n}\nfunction NzCarouselComponent_ng_template_7_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"button\");\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const index_r11 = ctx.$implicit;\n i0.ɵɵadvance(1);\n i0.ɵɵtextInterpolate(index_r11 + 1);\n }\n}\nconst _c3 = [\"*\"];\nclass NzCarouselContentDirective {\n set isActive(value) {\n this._active = value;\n if (this.isActive) {\n this.renderer.addClass(this.el, 'slick-active');\n } else {\n this.renderer.removeClass(this.el, 'slick-active');\n }\n }\n get isActive() {\n return this._active;\n }\n constructor(elementRef, renderer) {\n this.renderer = renderer;\n this._active = false;\n this.el = elementRef.nativeElement;\n }\n static {\n this.ɵfac = function NzCarouselContentDirective_Factory(t) {\n return new (t || NzCarouselContentDirective)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2));\n };\n }\n static {\n this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: NzCarouselContentDirective,\n selectors: [[\"\", \"nz-carousel-content\", \"\"]],\n hostAttrs: [1, \"slick-slide\"],\n exportAs: [\"nzCarouselContent\"],\n standalone: true\n });\n }\n}\n((
7 months ago
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,IAAM,MAAM,CAAC,WAAW;AACxB,IAAM,MAAM,CAAC,YAAY;AACzB,SAAS,qDAAqD,IAAI,KAAK;AAAC;AACxE,IAAM,MAAM,SAAO;AAAA,EACjB,WAAW;AACb;AACA,SAAS,uCAAuC,IAAI,KAAK;AACvD,MAAI,KAAK,GAAG;AACV,UAAM,OAAU,iBAAiB;AACjC,IAAG,eAAe,GAAG,MAAM,CAAC;AAC5B,IAAG,WAAW,SAAS,SAAS,6DAA6D;AAC3F,YAAM,cAAiB,cAAc,IAAI;AACzC,YAAM,OAAO,YAAY;AACzB,YAAM,SAAY,cAAc,CAAC;AACjC,aAAU,YAAY,OAAO,UAAU,IAAI,CAAC;AAAA,IAC9C,CAAC;AACD,IAAG,WAAW,GAAG,sDAAsD,GAAG,GAAG,eAAe,EAAE;AAC9F,IAAG,aAAa;AAAA,EAClB;AACA,MAAI,KAAK,GAAG;AACV,UAAM,OAAO,IAAI;AACjB,UAAM,SAAY,cAAc,CAAC;AACjC,UAAM,MAAS,YAAY,CAAC;AAC5B,IAAG,YAAY,gBAAgB,SAAS,OAAO,WAAW;AAC1D,IAAG,UAAU,CAAC;AACd,IAAG,WAAW,oBAAoB,OAAO,eAAe,GAAG,EAAE,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