1"use strict";(self.webpackChunkng_zorro_antd_doc=self.webpackChunkng_zorro_antd_doc||[]).push([[1232],{8852:(G,O,s)=>{s.r(O),s.d(O,{NzDemoSwitchModule:()=>I});var k=s(9072),u=s(2928),z=s(4299),t=s(8352),w=s(5120);const y=[z.R,t.EV,w.Wy];var C=s(6056),n=s(4496),E=s(8700),g=s(8656),m=s(3172),R=s(9100),p=s(28),r=s(6504);let Y=(()=>{class e{constructor(){this.switchValue=!1}static#n=this.\u0275fac=function(o){return new(o||e)};static#e=this.\u0275cmp=n.In1({type:e,selectors:[["nz-demo-switch-basic"]],decls:1,vars:1,consts:[[3,"ngModel","ngModelChange"]],template:function(o,d){1&o&&(n.I0R(0,"nz-switch",0),n.iHE("ngModelChange",function(h){return n.kNx(d.switchValue,h)||(d.switchValue=h),h}),n.C$Y()),2&o&&n.OKB("ngModel",d.switchValue)},dependencies:[r.ue,r._G,z.c],encapsulation:2})}return e})(),$=(()=>{class e{constructor(){this.switchValue=!1,this.loading=!1}clickSwitch(){this.loading||(this.loading=!0,setTimeout(()=>{this.switchValue=!this.switchValue,this.loading=!1},3e3))}static#n=this.\u0275fac=function(o){return new(o||e)};static#e=this.\u0275cmp=n.In1({type:e,selectors:[["nz-demo-switch-control"]],decls:1,vars:3,consts:[[3,"ngModel","nzControl","nzLoading","ngModelChange","click"]],template:function(o,d){1&o&&(n.I0R(0,"nz-switch",0),n.iHE("ngModelChange",function(h){return n.kNx(d.switchValue,h)||(d.switchValue=h),h}),n.qCj("click",function(){return d.clickSwitch()}),n.C$Y()),2&o&&(n.OKB("ngModel",d.switchValue),n.E7m("nzControl",!0)("nzLoading",d.loading))},dependencies:[r.ue,r._G,z.c],encapsulation:2})}return e})();var S=s(7324);let D=(()=>{class e{constructor(){this.switchValue=!1,this.isDisabled=!0}static#n=this.\u0275fac=function(o){return new(o||e)};static#e=this.\u0275cmp=n.In1({type:e,selectors:[["nz-demo-switch-disabled"]],decls:5,vars:3,consts:[[3,"ngModel","nzDisabled","ngModelChange"],["nz-button","",3,"nzType","click"]],template:function(o,d){1&o&&(n.I0R(0,"nz-switch",0),n.iHE("ngModelChange",function(h){return n.kNx(d.switchValue,h)||(d.switchValue=h),h}),n.C$Y(),n.wR5(1,"br")(2,"br"),n.I0R(3,"button",1),n.qCj("click",function(){return d.isDisabled=!d.isDisabled}),n.OEk(4,"Toggle disabled"),n.C$Y()),2&o&&(n.OKB("ngModel",d.switchValue),n.E7m("nzDisabled",d.isDisabled),n.yG2(3),n.E7m("nzType","primary"))},dependencies:[r.ue,r._G,z.c,t.Ez,p.k,S.o9],encapsulation:2})}return e})(),_=(()=>{class e{static#n=this.\u0275fac=function(o){return new(o||e)};static#e=this.\u0275cmp=n.In1({type:e,selectors:[["nz-demo-switch-loading"]],decls:4,vars:2,consts:[["nzLoading","",3,"ngModel"],["nzSize","small","nzLoading","",3,"ngModel"]],template:function(o,d){1&o&&n.wR5(0,"nz-switch",0)(1,"br")(2,"br")(3,"nz-switch",1),2&o&&(n.E7m("ngModel",!0),n.yG2(3),n.E7m("ngModel",!1))},dependencies:[r.ue,r._G,z.c],encapsulation:2})}return e})(),b=(()=>{class e{static#n=this.\u0275fac=function(o){return new(o||e)};static#e=this.\u0275cmp=n.In1({type:e,selectors:[["nz-demo-switch-size"]],decls:4,vars:2,consts:[[3,"ngModel"],["nzSize","small",3,"ngModel"]],template:function(o,d){1&o&&n.wR5(0,"nz-switch",0)(1,"br")(2,"br")(3,"nz-switch",1),2&o&&(n.E7m("ngModel",!0),n.yG2(3),n.E7m("ngModel",!0))},dependencies:[r.ue,r._G,z.c],encapsulation:2})}return e})();function F(e,a){1&e&&n.wR5(0,"span",5)}function T(e,a){1&e&&n.wR5(0,"span",6)}let f=(()=>{class e{static#n=this.\u0275fac=function(o){return new(o||e)};static#e=this.\u0275cmp=n.In1({type:e,selectors:[["nz-demo-switch-text"]],decls:11,vars:5,consts:[["nzCheckedChildren","\u5f00","nzUnCheckedChildren","\u5173",3,"ngModel"],["nzCheckedChildren","1","nzUnCheckedChildren","0",3,"ngModel"],[3,"ngModel","nzCheckedChildren","nzUnCheckedChildren"],["checkedTemplate",""],["unCheckedTemplate",""],["nz-icon","","nzType","check"],["nz-icon","","nzType","close"]],template:function(o,d){if(1&o&&(n.wR5(0,"nz-switch",0)(1,"br")(2,"br")(3,"nz-switch",1)(4,"br")(5,"br")(6,"nz-switch",2),n.yuY(7,F,1,0,"ng-template",null,3,n.gJz)(9,T,1,0,"ng-template",null,4,n.gJz)),2&o){const l=n.Gew(8),h=n.Gew(10);n.E7m("ngModel",!0),n.yG2(3),n.E7m("ngModel",!1),n.yG2(3),n.E7m("ngModel",!0)("nzCheckedChildren",l)("nzUnCheckedChildren",h)}},dependencies:[r.ue,r._G,w.If,z.c,p.k],encapsulation:2})}return e})(),N=(()=>{class e{constructor(){this.expanded=!1}
1goLink(i){window&&(window.location.hash=i)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(i=>{i.nzExpanded=this.expanded,i.expandCode(this.expanded),i.check()})}static#n=this.\u0275fac=function(o){return new(o||e)};static#e=this.\u0275cmp=n.In1({type:e,selectors:[["nz-demo-switch"]],viewQuery:function(o,d){if(1&o&&n.CC$(C.A,5),2&o){let l;n.wto(l=n.Gqi())&&(d.codeBoxes=l)}},decls:270,vars:31,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzAffix","nzClick"],["nzHref","#components-switch-demo-basic","nzTitle","\u57fa\u672c"],["nzHref","#components-switch-demo-disabled","nzTitle","\u4e0d\u53ef\u7528"],["nzHref","#components-switch-demo-text","nzTitle","\u6587\u5b57\u548c\u56fe\u6807"],["nzHref","#components-switch-demo-size","nzTitle","\u4e24\u79cd\u5927\u5c0f"],["nzHref","#components-switch-demo-loading","nzTitle","\u52a0\u8f7d\u4e2d"],["nzHref","#components-switch-demo-control","nzTitle","\u5b8c\u6574\u63a7\u5236"],["nzHref","#api","nzTitle","API"],[1,"markdown"],[1,"subtitle"],[1,"widget"],["aria-label","Edit this page on Github","href","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/switch/doc/index.zh-CN.md","target","_blank","rel","noopener noreferrer",1,"edit-button"],["nz-icon","","nzType","edit"],["id","\u4f55\u65f6\u4f7f\u7528"],["onclick","window.location.hash = '\u4f55\u65f6\u4f7f\u7528'",1,"anchor"],[1,"language-ts"],[1,"token","keyword"],[1,"token","punctuation"],[1,"token","string"],["nz-icon","","nzType","appstore","nz-tooltip","","nzTooltipTitle","\u5c55\u5f00\u5168\u90e8\u4ee3\u7801",1,"code-box-expand-trigger",3,"click"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzXl","nzSpan"],["nzTitle","\u57fa\u672c","nzSelector","nz-demo-switch-basic","nzGenerateCommand","ng g ng-zorro-antd:switch-basic <name>","nzComponentName","NzDemoSwitchBasicComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["demo",""],["intro",""],["nzTitle","\u6587\u5b57\u548c\u56fe\u6807","nzSelector","nz-demo-switch-text","nzGenerateCommand","ng g ng-zorro-antd:switch-text <name>","nzComponentName","NzDemoSwitchTextComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u52a0\u8f7d\u4e2d","nzSelector","nz-demo-switch-loading","nzGenerateCommand","ng g ng-zorro-antd:switch-loading <name>","nzComponentName","NzDemoSwitchLoadingComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u4e0d\u53ef\u7528","nzSelector","nz-demo-switch-disabled","nzGenerateCommand","ng g ng-zorro-antd:switch-disabled <name>","nzComponentName","NzDemoSwitchDisabledComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u4e24\u79cd\u5927\u5c0f","nzSelector","nz-demo-switch-size","nzGenerateCommand","ng g ng-zorro-antd:switch-size <name>","nzComponentName","NzDemoSwitchSizeComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u5b8c\u6574\u63a7\u5236","nzSelector","nz-demo-switch-control","nzGenerateCommand","ng g ng-zorro-antd:switch-control <name>","nzComponentName","NzDemoSwitchControlComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],["id","nz-switch:standalone"],[1,"api-type-label","component"],[1,"api-type-label","standalone"],["onclick","window.location.hash = 'nz-switch:standalone'",1,"anchor"],["id","\u65b9\u6cd5"],["onclick","window.location.hash = '\u65b9\u6cd5'",1,"anchor"]],template:function(o,d){1&o&&(n.I0R(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),n.qCj("nzClick",function(h){return d.goLink(h)}),n.wR5(3,"nz-link",2)(4,"nz-link",3)(5,"nz-link",4)(6,"nz-link",5)(7,"nz-link",6)(8,"nz-link",7)(9,"nz-link",8),n.C$Y()(),n.I0R(10,"section",9)(11,"h1"),n.OEk(12,"Switch"),n.I0R(13,"span",10),n.OEk(14,"\u5f00\u5173"),n.C$Y(),n.wR5(15,"span",11),n.I0R(16,"a",12),n.wR5(17,"span",13),n.C$Y()(),n.I0R(18,"section",9),n.EdD(),n.I0R(19,"p"),n.OEk(20,"\u5f00\u5173\u9009\u62e9\u5668\u3002"),n.C$Y(),n.I0R(21,"h2",14)(22,"span"),n.OEk(23,"\u4f55\u65f6\u4f7f\u7528"),n.C$Y(),n.I0R(24,"a",15),n.OEk(25,"#"),n.C$Y()(),n.I0R(26,"ul")(27,"li"),n.OEk(28,"\u9700\u8981\u8868\u793a\u5f00\u5173\u72b6\u6001/\u4e24\u79cd\u72b6\u6001\u4e4b\u95f4\u7684\u5207\u6362\u65f6\uff1b"),n.C$Y(),n.I0R(29,"li"),n.OEk(30,"\u548c "),n.I0R(31,"code"),n.OEk(32,"checkbox"),n.C$Y(),n.OEk(33,"\u7684\u533a\u522b\u662f\uff0c\u5207\u6362 "),n.I0R(34,"code"),n.OEk(35,"switch"),n.C$Y(),n.OEk(36," \u4f1a\u76f4\u63a5\u89e6\u53d1\u72b6\u6001\u6539\u53d8\uff0c\u800c "),n.I0R(37,"code"),n.OEk(38,"checkbox"),n.C$Y(),n.OEk(39," \u4e00\u822c\u7528\u4e8e\u72b6\u6001\u6807\u8bb0\uff0c\u9700\u8981\u548c\u63d0\u4ea4\u64cd\u4f5c\u914d\u5408\u3002"),n.C$Y()(),n.I0R(40,"pre",16)(41,"code")(42,"span",17),n.OEk(43,"import"),n.C$Y(),n.OEk(44," "),n.I0R(45,"span",18),n.OEk(46,"{"),n.C$Y(),n.OEk(47," NzSwitchModule "),n.I0R(48,"span",18),n.OEk(49,"}"),n.C$Y(),n.OEk(50," "),n.I0R(51,"span",17),n.OEk(52,"from"),n.C$Y(),n.OEk(53," "),n.I0R(54,"span",19),n.OEk(55,"'ng-zorro-antd/switch'"),n.C$Y(),n.I0R(56,"span",18),n.OEk(57,";"),n.C$Y()()(),n.eAF(),n.C$Y(),n.I0R(58,"h2")(59,"span"),n.OEk(60,"\u4ee3\u7801\u6f14\u793a"),n.C$Y(),n.I0R(61,"span",20),n.qCj("click",function(){return d.expandAllCode()}),n.C$Y()()(),n.I0R(62,"div",21)(63,"div",22)(64,"nz-code-box",23),n.wR5(65,"nz-demo-switch-basic",24),n.I0R(66,"div",25),n.EdD(),n.I0R(67,"p"),n.OEk(68,"\u6700\u7b80\u5355\u7684\u7528\u6cd5\u3002"),n.C$Y(),n.eAF(),n.C$Y()(),n.I0R(69,"nz-code-box",26),n.wR5(70,"nz-demo-switch-text",24),n.I0R(71,"div",25),n.EdD(),n.I0R(72,"p"),n.OEk(73,"\u5e26\u6709\u6587\u5b57\u548c\u56fe\u6807\u3002"),n.C$Y(),n.eAF(),n.C$Y()(),n.I0R(74,"nz-code-box",27),n.wR5(75,"nz-demo-switch-loading",24),n.I0R(76,"div",25),n.EdD(),n.I0R(77,"p"),n.OEk(78,"\u6807\u8bc6\u5f00\u5173\u64cd\u4f5c\u4ecd\u5728\u6267\u884c\u4e2d\u3002"),n.C$Y(),n.eAF(),n.C$Y()()(),n.I0R(79,"div",22)(80,"nz-code-box",28),n.wR5(81,"nz-demo-switch-disabled",24),n.I0R(82,"div",25),n.EdD(),n.I0R(83,"p"),n.OEk(84,"Switch \u5931\u6548\u72b6\u6001\u3002"),n.C$Y(),n.eAF(),n.C$Y()(),n.I0R(85,"nz-code-box",29),n.wR5(86,"nz-demo-switch-size",24),n.I0R(87,"div",25),n.EdD(),n.I0R(88,"p")(89,"code"),n.OEk(90,'nzSize="small"'),n.C$Y(),n.OEk(91," \u8868\u793a\u5c0f\u53f7\u5f00\u5173\u3002"),n.C$Y(),n.eAF(),n.C$Y()(),n.I0R(92,"nz-code-box",30),n.wR5(93,"nz-demo-switch-control",24),n.I0R(94,"div",25),n.EdD(),n.I0R(95,"p")(96,"code"),n.OEk(97,"Switch"),n.C$Y(),n.OEk(98," \u7684\u72b6\u6001\u5b8c\u5168\u7531\u7528\u6237\u63a5\u7ba1\uff0c\u4e0d\u518d\u81ea\u52a8\u6839\u636e\u70b9\u51fb\u4e8b\u4ef6\u6539\u53d8\u6570\u636e\u3002"),n.C$Y(),n.eAF(),n.C$Y()()()(),n.I0R(99,"section",31),n.EdD(),n.I0R(100,"h2",32)(101,"span"),n.OEk(102,"API"),n.C$Y(),n.I0R(103,"a",33),n.OEk(104,"#"),n.C$Y()(),n.I0R(105,"h3",34)(106,"span"),n.OEk(107,"nz-switch"),n.C$Y(),n.I0R(108,"label",35),n.OEk(109,"component"),n.C$Y(),n.I0R(110,"label",36),n.OEk(111,"standalone"),n.C$Y(),n.I0R(112,"a",37),n.OEk(113,"#"),n.C$Y()(),n.I0R(114,"table")(115,"thead")(116,"tr")(117,"th"),n.OEk(118,"\u53c2\u6570"),n.C$Y(),n.I0R(119,"th"),n.OEk(120,"\u8bf4\u660e"),n.C$Y(),n.I0R(121,"th"),n.OEk(122,"\u7c7b\u578b"),n.C$Y(),n.I0R(123,"th"),n.OEk(124,"\u9ed8\u8ba4\u503c"),n.C$Y(),n.I0R(125,"th"),n.OEk(126,"\u5168\u5c40\u914d\u7f6e"),n.C$Y()()(),n.I0R(127,"tbody")(128,"tr")(129,"td")(130,"code"),n.OEk(131,"[nzId]"),n.C$Y()(),n.I0R(132,"td"),n.OEk(133,"\u7ec4\u4ef6\u5185\u90e8 button \u7684 id \u503c"),n.C$Y(),n.I0R(134,"td")(135,"code"),n.OEk(136,"string"),n.C$Y()(),n.I0R(137,"td"),n.OEk(138,"-"),n.C$Y(),n.wR5(139,"td"),n.C$Y(),n.I0R(140,"tr")(141,"td")(142,"code"),n.OEk(143,"[ngModel]"),n.C$Y()(),n.I0R(144,"td"),n.OEk(145,"\u6307\u5b9a\u5f53\u524d\u662f\u5426\u9009\u4e2d\uff0c\u53ef\u53cc\u5411\u7ed1\u5b9a"),n.C$Y(),n.I0R(146,"td")(147,"code"),n.OEk(148,"boolean"),n.C$Y()(),n.I0R(149,"td")(150,"code"),n.OEk(151,"false"),n.C$Y()(),n.wR5(152,"td"),n.C$Y(),n.I0R(153,"tr")(154,"td")(155,"code"),n.OEk(156,"[nzCheckedChildren]"),n.C$Y()(),n.I0R(157,"td"),n.OEk(158,"\u9009\u4e2d\u65f6\u7684\u5185\u5bb9"),n.C$Y(),n.I0R(159,"td")(160,"code"),n.OEk(161,"string | TemplateRef<void>"),n.C$Y()(),n.I0R(162,"td"),n.OEk(163,"-"),n.C$Y(),n.wR5(164,"td"),n.C$Y(),n.I0R(165,"tr")(166,"td")(167,"code"),n.OEk(168,"[nzUnCheckedChildren]"),n.C$Y()(),n.I0R(169,"td"),n.OEk(170,"\u975e\u9009\u4e2d\u65f6\u7684\u5185\u5bb9"),n.C$Y(),n.I0R(171,"td")(172,"code"),n.OEk(173,"string | TemplateRef<void>"),n.C$Y()(),n.I0R(174,"td"),n.OEk(175,"-"),n.C$Y(),n.wR5(176,"td"),n.C$Y(),n.I0R(177,"tr")(178,"td")(179,"code"),n.OEk(180,"[nzDisabled]"),n.C$Y()(),n.I0R(181,"td"),n.OEk(182,"disable \u72b6\u6001"),n.C$Y(),n.I0R(183,"td")(184,"code"),n.OEk(185,"boolean"),n.C$Y()(),n.I0R(186,"td")(187,"code"),n.OEk(188,"false"),n.C$Y()(),n.wR5(189,"td"),n.C$Y(),n.I0R(190,"tr")(191,"td")(192,"code"),n.OEk(193,"[nzSize]"),n.C$Y()(),n.I0R(194,"td"),n.OEk(195,"\u5f00\u5173\u5927\u5c0f\uff0c\u53ef\u9009\u503c\uff1a"),n.I0R(196,"code"),n.OEk(197,"default"),n.C$Y(),n.I0R(198,"code"),n.OEk(199,"small"),n.C$Y()(),n.I0R(200,"td")(201,"code"),n.OEk(202,"'small' | 'default'"),n.C$Y()(),n.I0R(203,"td")(204,"code"),n.OEk(205,"'default'"),n.C$Y()(),n.I0R(206,"td"),n.OEk(207,"\u2705"),n.C$Y()(),n.I0R(208,"tr")(209,"td")(210,"code"),n.OEk(211,"[nzLoading]"),n.C$Y()(),n.I0R(212,"td"),n.OEk(213,"\u52a0\u8f7d\u4e2d\u7684\u5f00\u5173"),n.C$Y(),n.I0R(214,"td")(215,"code"),n.OEk(216,"boolean"),n.C$Y()(),n.I0R(217,"td")(218,"code"),n.OEk(219,"false"),n.C$Y()(),n.wR5(220,"td"),n.C$Y(),n.I0R(221,"tr")(222,"td")(223,"code"),n.OEk(224,"[nzControl]"),n.C$Y()(),n.I0R(225,"td"),n.OEk(226,"\u662f\u5426\u5b8c\u5168\u7531\u7528\u6237\u63a7\u5236\u72b6\u6001"),n.C$Y(),n.I0R(227,"td")(228,"code"),n.OEk(229,"boolean"),n.C$Y()(),n.I0R(230,"td")(231,"code"),n.OEk(232,"false"),n.C$Y()(),n.wR5(233,"td"),n.C$Y(),n.I0R(234,"tr")(235,"td")(236,"code"),n.OEk(237,"(ngModelChange)"),n.C$Y()(),n.I0R(238,"td"),n.OEk(239,"\u5f53\u524d\u662f\u5426\u9009\u4e2d\u7684\u56de\u8c03"),n.C$Y(),n.I0R(240,"td")(241,"code"),n.OEk(242,"EventEmitter<boolean>"),n.C$Y()(),n.I0R(243,"td")(244,"code"),n.OEk(245,"false"),n.C$Y()(),n.wR5(246,"td"),n.C$Y()()(),n.I0R(247,"h4",38)(248,"span"),n.OEk(249,"\u65b9\u6cd5"),n.C$Y(),n.I0R(250,"a",39),n.OEk(251,"#"),n.C$Y()(),n.I0R(252,"table")(253,"thead")(254,"tr")(255,"th"),n.OEk(256,"\u540d\u79f0"),n.C$Y(),n.I0R(257,"th"),n.OEk(258,"\u63cf\u8ff0"),n.C$Y()()(),n.I0R(259,"tbody")(260,"tr")(261,"td"),n.OEk(262,"focus()"),n.C$Y(),n.I0R(263,"td"),n.OEk(264,"\u83b7\u53d6\u7126\u70b9"),n.C$Y()(),n.I0R(265,"tr")(266,"td"),n.OEk(267,"blur()"),n.C$Y(),n.I0R(268,"td"),n.OEk(269,"\u79fb\u9664\u7126\u70b9"),n.C$Y()()()(),n.eAF(),n.C$Y()()),2&o&&(n.yG2(),n.E7m("nzOffsetTop",16),n.yG2(),n.E7m("nzAffix",!1),n.yG2(60),n.E7m("nzGutter",16),n.yG2(),n.E7m("nzXl",12)("nzSpan",24),n.yG2(),n.E7m("nzId","components-switch-demo-basic")("nzLink","components-switch-demo-basic")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/switch/demo/basic.md"),n.yG2(5),n.E7m("nzId","components-switch-demo-text")("nzLink","components-switch-demo-text")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/switch/demo/text.md"),n.yG2(5),n.E7m("nzId","components-switch-demo-loading")("nzLink","components-switch-demo-loading")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/switch/demo/loading.md"),n.yG2(5),n.E7m("nzXl",12)("nzSpan",24),n.yG2(),n.E7m("nzId","components-switch-demo-disabled")("nzLink","components-switch-demo-disabled")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/switch/demo/disabled.md"),n.yG2(5),n.E7m("nzId","components-switch-demo-size")("nzLink","components-switch-demo-size")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/switch/demo/size.md"),n.yG2(7),n.E7m("nzId","components-switch-demo-control")("nzLink","components-switch-demo-control")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/switch/demo/control.md"))},dependencies:[C.A,E.s9,E.mK,g.g,m.QD,m.ox,R.qG,w.If,p.k,Y,$,D,_,b,f],encapsulation:2})}return e})(),c=(()=>{class e{constructor(){this.expanded=!1}
1goLink(i){window&&(window.location.hash=i)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(i=>{i.nzExpanded=this.expanded,i.expandCode(this.expanded),i.check()})}static#n=this.\u0275fac=function(o){return new(o||e)};static#e=this.\u0275cmp=n.In1({type:e,selectors:[["nz-demo-switch"]],viewQuery:function(o,d){if(1&o&&n.CC$(C.A,5),2&o){let l;n.wto(l=n.Gqi())&&(d.codeBoxes=l)}},decls:281,vars:31,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzAffix","nzClick"],["nzHref","#components-switch-demo-basic","nzTitle","Basic"],["nzHref","#components-switch-demo-disabled","nzTitle","Disabled"],["nzHref","#components-switch-demo-text","nzTitle","Text & icon"],["nzHref","#components-switch-demo-size","nzTitle","Two sizes"],["nzHref","#components-switch-demo-loading","nzTitle","Loading"],["nzHref","#components-switch-demo-control","nzTitle","Control"],["nzHref","#api","nzTitle","API"],[1,"markdown"],[1,"subtitle"],[1,"widget"],["aria-label","Edit this page on Github","href","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/switch/doc/index.en-US.md","target","_blank","rel","noopener noreferrer",1,"edit-button"],["nz-icon","","nzType","edit"],["id","when-to-use"],["onclick","window.location.hash = 'when-to-use'",1,"anchor"],[1,"language-ts"],[1,"token","keyword"],[1,"token","punctuation"],[1,"token","string"],["nz-icon","","nzType","appstore","nz-tooltip","","nzTooltipTitle","Expand All Code",1,"code-box-expand-trigger",3,"click"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzXl","nzSpan"],["nzTitle","Basic","nzSelector","nz-demo-switch-basic","nzGenerateCommand","ng g ng-zorro-antd:switch-basic <name>","nzComponentName","NzDemoSwitchBasicComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["demo",""],["intro",""],["nzTitle","Text & icon","nzSelector","nz-demo-switch-text","nzGenerateCommand","ng g ng-zorro-antd:switch-text <name>","nzComponentName","NzDemoSwitchTextComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Loading","nzSelector","nz-demo-switch-loading","nzGenerateCommand","ng g ng-zorro-antd:switch-loading <name>","nzComponentName","NzDemoSwitchLoadingComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Disabled","nzSelector","nz-demo-switch-disabled","nzGenerateCommand","ng g ng-zorro-antd:switch-disabled <name>","nzComponentName","NzDemoSwitchDisabledComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Two sizes","nzSelector","nz-demo-switch-size","nzGenerateCommand","ng g ng-zorro-antd:switch-size <name>","nzComponentName","NzDemoSwitchSizeComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Control","nzSelector","nz-demo-switch-control","nzGenerateCommand","ng g ng-zorro-antd:switch-control <name>","nzComponentName","NzDemoSwitchControlComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],["id","nz-switch:standalone"],[1,"api-type-label","component"],[1,"api-type-label","standalone"],["onclick","window.location.hash = 'nz-switch:standalone'",1,"anchor"],["id","methods"],["onclick","window.location.hash = 'methods'",1,"anchor"]],template:function(o,d){1&o&&(n.I0R(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),n.qCj("nzClick",function(h){return d.goLink(h)}),n.wR5(3,"nz-link",2)(4,"nz-link",3)(5,"nz-link",4)(6,"nz-link",5)(7,"nz-link",6)(8,"nz-link",7)(9,"nz-link",8),n.C$Y()(),n.I0R(10,"section",9)(11,"h1"),n.OEk(12,"Switch"),n.wR5(13,"span",10)(14,"span",11),n.I0R(15,"a",12),n.wR5(16,"span",13),n.C$Y()(),n.I0R(17,"section",9),n.EdD(),n.I0R(18,"p"),n.OEk(19,"Switching Selector."),n.C$Y(),n.I0R(20,"h2",14)(21,"span"),n.OEk(22,"When To Use"),n.C$Y(),n.I0R(23,"a",15),n.OEk(24,"#"),n.C$Y()(),n.I0R(25,"ul")(26,"li"),n.OEk(27,"If you need to represent the switching between two states or on-off state."),n.C$Y(),n.I0R(28,"li"),n.OEk(29,"The difference between "),n.I0R(30,"code"),n.OEk(31,"Switch"),n.C$Y(),n.OEk(32," and "),n.I0R(33,"code"),n.OEk(34,"Checkbox"),n.C$Y(),n.OEk(35," is that "),n.I0R(36,"code"),n.OEk(37,"Switch"),n.C$Y(),n.OEk(38," will trigger a state change directly when you toggle it, while "),n.I0R(39,"code"),n.OEk(40,"Checkbox"),n.C$Y(),n.OEk(41," is generally used for state marking, which should work in conjunction with submit operation."),n.C$Y()(),n.I0R(42,"pre",16)(43,"code")(44,"span",17),n.OEk(45,"import"),n.C$Y(),n.OEk(46," "),n.I0R(47,"span",18),n.OEk(48,"{"),n.C$Y(),n.OEk(49," NzSwitchModule "),n.I0R(50,"span",18),n.OEk(51,"}"),n.C$Y(),n.OEk(52," "),n.I0R(53,"span",17),n.OEk(54,"from"),n.C$Y(),n.OEk(55," "),n.I0R(56,"span",19),n.OEk(57,"'ng-zorro-antd/switch'"),n.C$Y(),n.I0R(58,"span",18),n.OEk(59,";"),n.C$Y()()(),n.eAF(),n.C$Y(),n.I0R(60,"h2")(61,"span"),n.OEk(62,"Examples"),n.C$Y(),n.I0R(63,"span",20),n.qCj("click",function(){return d.expandAllCode()}),n.C$Y()()(),n.I0R(64,"div",21)(65,"div",22)(66,"nz-code-box",23),n.wR5(67,"nz-demo-switch-basic",24),n.I0R(68,"div",25),n.EdD(),n.I0R(69,"p"),n.OEk(70,"The most basic usage."),n.C$Y(),n.eAF(),n.C$Y()(),n.I0R(71,"nz-code-box",26),n.wR5(72,"nz-demo-switch-text",24),n.I0R(73,"div",25),n.EdD(),n.I0R(74,"p"),n.OEk(75,"With text and icon."),n.C$Y(),n.eAF(),n.C$Y()(),n.I0R(76,"nz-code-box",27),n.wR5(77,"nz-demo-switch-loading",24),n.I0R(78,"div",25),n.EdD(),n.I0R(79,"p"),n.OEk(80,"Mark a pen
1ding state of switch."),n.C$Y(),n.eAF(),n.C$Y()()(),n.I0R(81,"div",22)(82,"nz-code-box",28),n.wR5(83,"nz-demo-switch-disabled",24),n.I0R(84,"div",25),n.EdD(),n.I0R(85,"p"),n.OEk(86,"Disabled state of "),n.I0R(87,"code"),n.OEk(88,"Switch"),n.C$Y(),n.OEk(89,"."),n.C$Y(),n.eAF(),n.C$Y()(),n.I0R(90,"nz-code-box",29),n.wR5(91,"nz-demo-switch-size",24),n.I0R(92,"div",25),n.EdD(),n.I0R(93,"p")(94,"code"),n.OEk(95,'nzSize="small"'),n.C$Y(),n.OEk(96," represents a small sized switch."),n.C$Y(),n.eAF(),n.C$Y()(),n.I0R(97,"nz-code-box",30),n.wR5(98,"nz-demo-switch-control",24),n.I0R(99,"div",25),n.EdD(),n.I0R(100,"p"),n.OEk(101,"The status of "),n.I0R(102,"code"),n.OEk(103,"Switch"),n.C$Y(),n.OEk(104," is completely up to the user and no longer automatically changes the data based on the click event."),n.C$Y(),n.eAF(),n.C$Y()()()(),n.I0R(105,"section",31),n.EdD(),n.I0R(106,"h2",32)(107,"span"),n.OEk(108,"API"),n.C$Y(),n.I0R(109,"a",33),n.OEk(110,"#"),n.C$Y()(),n.I0R(111,"h3",34)(112,"span"),n.OEk(113,"nz-switch"),n.C$Y(),n.I0R(114,"label",35),n.OEk(115,"component"),n.C$Y(),n.I0R(116,"label",36),n.OEk(117,"standalone"),n.C$Y(),n.I0R(118,"a",37),n.OEk(119,"#"),n.C$Y()(),n.I0R(120,"table")(121,"thead")(122,"tr")(123,"th"),n.OEk(124,"Property"),n.C$Y(),n.I0R(125,"th"),n.OEk(126,"Description"),n.C$Y(),n.I0R(127,"th"),n.OEk(128,"Type"),n.C$Y(),n.I0R(129,"th"),n.OEk(130,"Default"),n.C$Y(),n.I0R(131,"th"),n.OEk(132,"Global Config"),n.C$Y()()(),n.I0R(133,"tbody")(134,"tr")(135,"td")(136,"code"),n.OEk(137,"[nzId]"),n.C$Y()(),n.I0R(138,"td"),n.OEk(139,"button id attribute inside the component"),n.C$Y(),n.I0R(140,"td")(141,"code"),n.OEk(142,"string"),n.C$Y()(),n.I0R(143,"td"),n.OEk(144,"-"),n.C$Y(),n.wR5(145,"td"),n.C$Y(),n.I0R(146,"tr")(147,"td")(148,"code"),n.OEk(149,"[ngModel]"),n.C$Y()(),n.I0R(150,"td"),n.OEk(151,"determine whether the "),n.I0R(152,"code"),n.OEk(153,"nz-switch"),n.C$Y(),n.OEk(154," is checked, double binding"),n.C$Y(),n.I0R(155,"td")(156,"code"),n.OEk(157,"boolean"),n.C$Y()(),n.I0R(158,"td")(159,"code"),n.OEk(160,"false"),n.C$Y()(),n.wR5(161,"td"),n.C$Y(),n.I0R(162,"tr")(163,"td")(164,"code"),n.OEk(165,"[nzCheckedChildren]"),n.C$Y()(),n.I0R(166,"td"),n.OEk(167,"content to be shown when the state is checked"),n.C$Y(),n.I0R(168,"td")(169,"code"),n.OEk(170,"string | TemplateRef<void>"),n.C$Y()(),n.I0R(171,"td"),n.OEk(172,"-"),n.C$Y(),n.wR5(173,"td"),n.C$Y(),n.I0R(174,"tr")(175,"td")(176,"code"),n.OEk(177,"[nzUnCheckedChildren]"),n.C$Y()(),n.I0R(178,"td"),n.OEk(179,"content to be shown when the state is unchecked"),n.C$Y(),n.I0R(180,"td")(181,"code"),n.OEk(182,"string | TemplateRef<void>"),n.C$Y()(),n.I0R(183,"td"),n.OEk(184,"-"),n.C$Y(),n.wR5(185,"td"),n.C$Y(),n.I0R(186,"tr")(187,"td")(188,"code"),n.OEk(189,"[nzDisabled]"),n.C$Y()(),n.I0R(190,"td"),n.OEk(191,"Disable switch"),n.C$Y(),n.I0R(192,"td")(193,"code"),n.OEk(194,"boolean"),n.C$Y()(),n.I0R(195,"td")(196,"code"),n.OEk(197,"false"),n.C$Y()(),n.wR5(198,"td"),n.C$Y(),n.I0R(199,"tr")(200,"td")(201,"code"),n.OEk(202,"[nzSize]"),n.C$Y()(),n.I0R(203,"td"),n.OEk(204,"the size of the "),n.I0R(205,"code"),n.OEk(206,"nz-switch"),n.C$Y(),n.OEk(207,", options: "),n.I0R(208,"code"),n.OEk(209,"default"),n.C$Y(),n.I0R(210,"code"),n.OEk(211,"small"),n.C$Y()(),n.I0R(212,"td")(213,"code"),n.OEk(214,"'small' | 'default'"),n.C$Y()(),n.I0R(215,"td")(216,"code"),n.OEk(217,"'default'"),n.C$Y()(),n.I0R(218,"td"),n.OEk(219,"\u2705"),n.C$Y()(),n.I0R(220,"tr")(221,"td")(222,"code"),n.OEk(223,"[nzLoading]"),n.C$Y()(),n.I0R(224,"td"),n.OEk(225,"loading state of switch"),n.C$Y(),n.I0R(226,"td")(227,"code"),n.OEk(228,"boolean"),n.C$Y()(),n.I0R(229,"td")(230,"code"),n.OEk(231,"false"),n.C$Y()(),n.wR5(232,"td"),n.C$Y(),n.I0R(233,"tr")(234,"td")(235,"code"),n.OEk(236,"[nzControl]"),n.C$Y()(),n.I0R(237,"td"),n.OEk(238,"determine whether fully control state by user"),n.C$Y(),n.I0R(239,"td")(240,"code"),n.OEk(241,"boolean"),n.C$Y()(),n.I0R(242,"td")(243,"code"),n.OEk(244,"false"),n.C$Y()(),n.wR5(245,"td"),n.C$Y(),n.I0R(246,"tr")(247,"td")(248,"code"),n.OEk(249,"(ngModelChange)"),n.C$Y()(),n.I0R(250,"td"),n.OEk(251,"a callback function, can be executed when the checked state is changing"),n.C$Y(),n.I0R(252,"td")(253,"code"),n.OEk(254,"EventEmitter<boolean>"),n.C$Y()(),n.I0R(255,"td"),n.OEk(256,"-"),n.C$Y(),n.wR5(257,"td"),n.C$Y()()(),n.I0R(258,"h4",38)(259,"span"),n.OEk(260,"Methods"),n.C$Y(),n.I0R(261,"a",39),n.OEk(262,"#"),n.C$Y()(),n.I0R(263,"table")(264,"thead")(265,"tr")(266,"th"),n.OEk(267,"Name"),n.C$Y(),n.I0R(268,"th"),n.OEk(269,"Description"),n.C$Y()()(),n.I0R(270,"tbody")(271,"tr")(272,"td"),n.OEk(273,"focus()"),n.C$Y(),n.I0R(274,"td"),n.OEk(275,"get focus"),n.C$Y()(),n.I0R(276,"tr")(277,"td"),n.OEk(278,"blur()"),n.C$Y(),n.I0R(279,"td"),n.OEk(280,"remove focus"),n.C$Y()()()(),n.eAF(),n.C$Y()()),2&o&&(n.yG2(),n.E7m("nzOffsetTop",16),n.yG2(),n.E7m("nzAffix",!1),n.yG2(62),n.E7m("nzGutter",16),n.yG2(),n.E7m("nzXl",12)("nzSpan",24),n.yG2(),n.E7m("nzId","components-switch-demo-basic")("nzLink","components-switch-demo-basic")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/switch/demo/basic.md"),n.yG2(5),n.E7m("nzId","components-switch-demo-text")("nzLink","components-switch-demo-text")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/switch/demo/text.md"),n.yG2(5),n.E7m("nzId","components-switch-demo-loading")("nzLink","components-switch-demo-loading")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/switch/demo/loading.md"),n.yG2(5),n.E7m("nzXl",12)("nzSpan",24),n.yG2(),n.E7m("nzId","components-switch-demo-disabled")("nzLink","components-switch-demo-disabled")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/switch/demo/disabled.md"),n.yG2(8),n.E7m("nzId","components-switch-demo-size")("nzLink","components-switch-demo-size")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/switch/demo/size.md"),n.yG2(7),n.E7m("nzId","components-switch-demo-control")("nzLink","components-switch-demo-control")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/switch/demo/control.md"))},dependencies:[C.A,E.s9,E.mK,g.g,m.QD,m.ox,R.qG,w.If,p.k,Y,$,D,_,b,f],encapsulation:2})}return e})(),I=(()=>{class e{static#n=this.\u0275fac=function(o){return new(o||e)};static#e=this.\u0275mod=n.a4G({type:e});static#t=this.\u0275inj=n.s3X({imports:[u.K,y,k.qQ.forChild([{path:"en",component:c},{path:"zh",component:N}])]})}return e})()},4299:(G,O,s)=>{s.d(O,{R:()=>N,c:()=>f});var k=s(1316),u=s(7800),z=s(1368),t=s(4496),w=s(6504),y=s(5657),C=s(800),n=s(3616),E=s(2136),g=s(6256),m=s(5739),R=s(7324),p=s(5120),r=s(916),Y=s(1900);const $=["switchElement"];function S(c,I){1&c&&t.wR5(0,"span",8)}function D(c,I){if(1&c&&(t.SAx(0),t.OEk(1),t.k70()),2&c){const e=t.GaO(2);t.yG2(),t.cNF(e.nzCheckedChildren)}}function _(c,I){if(1&c&&(t.SAx(0),t.yuY(1,D,2,1,"ng-container",9),t.k70()),2&c){const e=t.GaO();t.yG2(),t.E7m("nzStringTemplateOutlet",e.nzCheckedChildren)}}function b(c,I){if(1&c&&(t.SAx(0),t.OEk(1),t.k70()),2&c){const e=t.GaO(2);t.yG2(),t.cNF(e.nzUnCheckedChildren)}}function F(c,I){if(1&c&&t.yuY(0,b,2,1,"ng-container",9),2&c){const e=t.GaO();t.E7m("nzStringTemplateOutlet",e.nzUnCheckedChildren)}}let f=(()=>{class c{updateValue(e){this.isChecked!==e&&(this.isChecked=e,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}constructor(e,a,i,o,d,l){this.nzConfigService=e,this.host=a,this.ngZone=i,this.cdr=o,this.focusMonitor=d,this.directionality=l,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.nzId=null,this.dir="ltr",this.destroy$=new y.E,this.isNzDisableFirstChange=!0}ngOnInit(){this.directionality.change.pipe((0,n.a)(this.destroy$)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,C.w)(this.host.nativeElement,"click").pipe((0,n.a)(this.destroy$)).subscribe(e=>{e.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>
1{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,C.w)(this.switchElement.nativeElement,"keydown").pipe((0,n.a)(this.destroy$)).subscribe(e=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:a}=e;a!==u.Mx&&a!==u.a4&&a!==u.Gi&&a!==u.wJ||(e.preventDefault(),this.ngZone.run(()=>{a===u.Mx?this.updateValue(!1):a===u.a4?this.updateValue(!0):(a===u.Gi||a===u.wJ)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,n.a)(this.destroy$)).subscribe(e=>{e||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(e){this.isChecked=e,this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||e,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}static#n=this.\u0275fac=function(a){return new(a||c)(t.GI1(E.gl),t.GI1(t.GMv),t.GI1(t.WW2),t.GI1(t.kD9),t.GI1(r.Kk),t.GI1(Y.yG,8))};static#e=this.\u0275cmp=t.In1({type:c,selectors:[["nz-switch"]],viewQuery:function(a,i){if(1&a&&t.CC$($,7),2&a){let o;t.wto(o=t.Gqi())&&(i.switchElement=o.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize",nzId:"nzId"},exportAs:["nzSwitch"],standalone:!0,features:[t.M5G([{provide:w.Y6,useExisting:(0,t.wd)(()=>c),multi:!0}]),t.UHJ],decls:9,vars:16,consts:[["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],["switchElement",""],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],["uncheckTemplate",""],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(a,i){if(1&a&&(t.I0R(0,"button",0,1)(2,"span",2),t.yuY(3,S,1,0,"span",3),t.C$Y(),t.I0R(4,"span",4),t.yuY(5,_,2,1,"ng-container",5)(6,F,1,1,"ng-template",null,6,t.gJz),t.C$Y(),t.wR5(8,"div",7),t.C$Y()),2&a){const o=t.Gew(7);t.eAK("ant-switch-checked",i.isChecked)("ant-switch-loading",i.nzLoading)("ant-switch-disabled",i.nzDisabled)("ant-switch-small","small"===i.nzSize)("ant-switch-rtl","rtl"===i.dir),t.E7m("disabled",i.nzDisabled)("nzWaveExtraNode",!0),t.e48("id",i.nzId),t.yG2(3),t.E7m("ngIf",i.nzLoading),t.yG2(2),t.E7m("ngIf",i.isChecked)("ngIfElse",o)}},dependencies:[R.gn,R.o9,p.Wy,p.If,z.u_,g.u,g.C],encapsulation:2,changeDetection:0})}return(0,k.UN)([(0,m.U7)()],c.prototype,"nzLoading",void 0),(0,k.UN)([(0,m.U7)()],c.prototype,"nzDisabled",void 0),(0,k.UN)([(0,m.U7)()],c.prototype,"nzControl",void 0),(0,k.UN)([(0,E.Mb)()],c.prototype,"nzSize",void 0),c})(),N=(()=>{class c{static#n=this.\u0275fac=function(a){return new(a||c)};static#e=this.\u0275mod=t.a4G({type:c});static#t=this.\u0275inj=t.s3X({imports:[f]})}return c})()}}]);
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.