PageSourceSearch

https://deskflo.io/4714.768b6f84d1c8a923.js

js deskflo.io collected 2026-10-02 01:58:57 UTC 15,500 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkMyDough_Web_Deskflo=self.webpackChunkMyDough_Web_Deskflo||[]).push([[4714],{74714:(P,k,c)=>{c.d(k,{JC:()=>p,xs:()=>U});var d=c(32881),e=c(41360),b=c(89417),u=c(69744),g=c(5779),f=c(13491),m=c(56263),C=c(10563);const $=["icon"],B=["content"],_=t=>({$implicit:t}),x=(t,s)=>({"p-togglebutton-icon":!0,"p-togglebutton-icon-left":t,"p-togglebutton-icon-right":s});function L(t,s){1&t&&e.eu8(0)}function M(t,s){if(1&t&&e.nrm(0,"span",0),2&t){const o=e.XpG(3);e.HbH(o.checked?o.onIcon:o.offIcon),e.Y8G("ngClass",e.l_i(4,x,"left"===o.iconPos,"right"===o.iconPos)),e.BMQ("data-pc-section","icon")}}function E(t,s){if(1&t&&e.DNE(0,M,1,7,"span",2),2&t){const o=e.XpG(2);e.vxM(o.onIcon||o.offIcon?0:-1)}}function w(t,s){1&t&&e.eu8(0)}function D(t,s){if(1&t&&e.DNE(0,w,1,0,"ng-container",1),2&t){const o=e.XpG(2);e.Y8G("ngTemplateOutlet",o.iconTemplate||o._iconTemplate)("ngTemplateOutletContext",e.eq3(2,_,o.checked))}}function O(t,s){if(1&t&&(e.DNE(0,E,1,1)(1,D,1,4,"ng-container"),e.j41(2,"span",0),e.EFF(3),e.k0s()),2&t){const o=e.XpG();e.vxM(o.iconTemplate?1:0),e.R7$(2),e.Y8G("ngClass",o.cx("label")),e.BMQ("data-pc-section","label"),e.R7$(),e.JRh(o.checked?o.hasOnLabel?o.onLabel:"\xa0":o.hasOffLabel?o.offLabel:"\xa0")}}const G=({dt:t})=>`\n.p-togglebutton {\n    display: inline-flex;\n    cursor: pointer;\n    user-select: none;\n    overflow: hidden;\n    position: relative;\n    color: ${t("togglebutton.color")};\n    background: ${t("togglebutton.background")};\n    border: 1px solid ${t("togglebutton.border.color")};\n    padding: ${t("togglebutton.padding")};\n    font-size: 1rem;\n    font-family: inherit;\n    font-feature-settings: inherit;\n    transition: background ${t("togglebutton.transition.duration")}, color ${t("togglebutton.transition.duration")}, border-color ${t("togglebutton.transition.duration")},\n        outline-color ${t("togglebutton.transition.duration")}, box-shadow ${t("togglebutton.transition.duration")};\n    border-radius: ${t("togglebutton.border.radius")};\n    outline-color: transparent;\n    font-weight: ${t("togglebutton.font.weight")};\n}\n\n.p-togglebutton-content {\n    display: inline-flex;\n    flex: 1 1 auto;\n    align-items: center;\n    justify-content: center;\n    gap: ${t("togglebutton.gap")};\n    padding: ${t("togglebutton.content.padding")};\n    background: transparent;\n    border-radius: ${t("togglebutton.content.border.radius")};\n    transition: background ${t("togglebutton.transition.duration")}, color ${t("togglebutton.transition.duration")}, border-color ${t("togglebutton.transition.duration")},\n            outline-color ${t("togglebutton.transition.duration")}, box-shadow ${t("togglebutton.transition.duration")};\n}\n\n.p-togglebutton:not(:disabled):not(.p-togglebutton-checked):hover {\n    background: ${t("togglebutton.hover.background")};\n    color: ${t("togglebutton.hover.color")};\n}\n\n.p-togglebutton.p-togglebutton-checked {\n    background: ${t("togglebutton.checked.background")};\n    border-color: ${t("togglebutton.checked.border.color")};\n    color: ${t("togglebutton.checked.color")};\n}\n\n.p-togglebutton-checked .p-togglebutton-content {\n    background: ${t("togglebutton.content.checked.background")};\n    box-shadow: ${t("togglebutton.content.checked.shadow")};\n}\n\n.p-togglebutton:focus-visible {\n    box-shadow: ${t("togglebutton.focus.ring.shadow")};\n    outline: ${t("togglebutton.focus.ring.width")} ${t("togglebutton.focus.ring.style")} ${t("togglebutton.focus.ring.color")};\n    outline-offset: ${t("togglebutton.focus.ring.offset")};\n}\n\n.p-togglebutton.p-invalid {\n    border-color: ${t("togglebutton.invalid.border.color")};\n}\n\n.p-togglebutton:disabled:not(.p-togglebutton-checked) {\n    opacity: 1;\n    cursor: default;\n    background: ${t("togglebutton.disabled.background")};\n    border-color: ${t("togglebutton.disabled.border.color")};\n    color: ${t("togglebutton.disabled.color")};\n}\n\n.p-togglebutton-label,\n.p-togglebutton-icon {\n    position: relative;\n    transition: none;\n}\n\n.p-togglebutton-icon {\n    color: ${t("togglebutton.icon.color")};\n}\n\n.p-togglebutton:not(:disabled):not(.p-togglebutton-checked):hover .p-togglebutton-icon {\n    color: ${t("togglebutton.icon.hover.color")};\n}\n\n.p-togglebutton.p-togglebutton-checked .p-togglebutton-icon {\n    color: ${t("togglebutton.icon.checked.color")};\n}\n\n.p-togglebutton:disabled .p-togglebutton-icon {\n    color: ${t("togglebutton.icon.disabled.color")};\n}\n\n.p-togglebutton-sm {\n    padding: ${t("togglebutton.sm.padding")};\n    font-size: ${t("togglebutton.sm.font.size")};\n}\n\n.p-togglebutton-sm .p-togglebutton-content {\n    padding: ${t("togglebutton.content.sm.padding")};\n}\n\n.p-togglebutton-lg {\n    padding: ${t("togglebutton.lg.padding")};\n    font-size: ${t("togglebutton.lg.font.size")};\n}\n\n.p-togglebutton-lg .p-togglebutton-content {\n    padding: ${t("togglebutton.content.lg.padding")};\n}\n\n/* For PrimeNG (iconPos) */\n.p-togglebutton-icon-right {\n    order: 1;\n}\n\n.p-togglebutton.ng-invalid.ng-dirty {\n    border-color: ${t("togglebutton.invalid.border.color")};\n}\n`,S={root:({instance:t})=>({"p-togglebutton p-component":!0,"p-togglebutton-checked":t.checked,"p-disabled":t.disabled,"p-togglebutton-sm p-inputfield-sm":"small"===t.size,"p-togglebutton-lg p-inputfield-lg":"large"===t.size}),content:"p-togglebutton-content",icon:"p-togglebutton-icon",label:"p-togglebutton-label"};let y=(()=>{class t extends m.j{name="togglebutton";theme=G;classes=S;static \u0275fac=(()=>{let o;return function(n){return(o||(o=e.xGo(t)))(n||t)}})();static \u0275prov=e.jDH({token:t,factory:t.\u0275fac})}return t})();const F={provide:b.kq,useExisting:(0,e.Rfq)(()=>v),multi:!0};let v=(()=>{class t extends f.${get hostClass(){return this.styleClass||""}onKeyDown(o){switch(o.code){case"Enter":case"Space":this.toggle(o),o.preventDefault()}}toggle(o){!this.disabled&&(!1!==this.allowEmpty||!this.checked)&&(this.checked=!this.checked,this.onModelChange(this.checked),this.onModelTouched(),this.onChange.emit({originalEvent:o,checked:this.checked}),this.cd.markForCheck())}onLabel="Yes";offLabel="No";onIcon;offIcon;ariaLabel;ariaLabelledBy;disabled;style;styleClass;inputId;tabindex=0;size;iconPos="left";autofocus;allowEmpty;
1onChange=new e.bkB;iconTemplate;contentTemplate;templates;checked=!1;onModelChange=()=>{};onModelTouched=()=>{};_componentStyle=(0,e.WQX)(y);onBlur(){this.onModelTouched()}writeValue(o){this.checked=o,this.cd.markForCheck()}registerOnChange(o){this.onModelChange=o}registerOnTouched(o){this.onModelTouched=o}setDisabledState(o){this.disabled=o,this.cd.markForCheck()}get hasOnLabel(){return this.onLabel&&this.onLabel.length>0}get hasOffLabel(){return this.onLabel&&this.onLabel.length>0}get active(){return!0===this.checked}_iconTemplate;_contentTemplate;ngAfterContentInit(){this.templates.forEach(o=>{"icon"===o.getType()?this._iconTemplate=o.template:this._contentTemplate=o.template})}static \u0275fac=(()=>{let o;return function(n){return(o||(o=e.xGo(t)))(n||t)}})();static \u0275cmp=e.VBU({type:t,selectors:[["p-toggleButton"],["p-togglebutton"],["p-toggle-button"]],contentQueries:function(l,n,i){if(1&l&&(e.wni(i,$,4),e.wni(i,B,4),e.wni(i,g.Ei,4)),2&l){let a;e.mGM(a=e.lsd())&&(n.iconTemplate=a.first),e.mGM(a=e.lsd())&&(n.contentTemplate=a.first),e.mGM(a=e.lsd())&&(n.templates=a)}},hostVars:23,hostBindings:function(l,n){1&l&&e.bIt("keydown",function(a){return n.onKeyDown(a)})("click",function(a){return n.toggle(a)}),2&l&&(e.Mr5("tabindex",n.tabindex),e.BMQ("disabled",n.disabled)("aria-labelledby",n.ariaLabelledBy)("aria-pressed",n.checked)("data-p-checked",n.active)("data-p-disabled",n.disabled)("type","button"),e.HbH(n.hostClass),e.AVh("p-togglebutton",!0)("p-togglebutton-checked",n.checked)("p-disabled",n.disabled)("p-togglebutton-sm","small"===n.size)("p-inputfield-sm","small"===n.size)("p-togglebutton-lg","large"===n.size)("p-inputfield-lg","large"===n.size))},inputs:{onLabel:"onLabel",offLabel:"offLabel",onIcon:"onIcon",offIcon:"offIcon",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",disabled:[2,"disabled","disabled",e.L39],style:"style",styleClass:"styleClass",inputId:"inputId",tabindex:[2,"tabindex","tabindex",e.Udg],size:"size",iconPos:"iconPos",autofocus:[2,"autofocus","autofocus",e.L39],allowEmpty:"allowEmpty"},outputs:{onChange:"onChange"},features:[e.Jv_([F,y]),e.nM4([C.n0]),e.Vt3],decls:3,vars:6,consts:[[3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"class","ngClass"]],template:function(l,n){1&l&&(e.j41(0,"span",0),e.DNE(1,L,1,0,"ng-container",1)(2,O,4,4),e.k0s()),2&l&&(e.Y8G("ngClass",n.cx("content")),e.R7$(),e.Y8G("ngTemplateOutlet",n.contentTemplate||n._contentTemplate)("ngTemplateOutletContext",e.eq3(4,_,n.checked)),e.R7$(),e.vxM(n.contentTemplate?-1:2))},dependencies:[d.MD,d.YU,d.T3,g.Gg],encapsulation:2,changeDetection:0})}return t})();const I=["item"],z=(t,s)=>({$implicit:t,index:s});function A(t,s){return this.getOptionLabel(s)}function N(t,s){1&t&&e.eu8(0)}function j(t,s){if(1&t&&e.DNE(0,N,1,0,"ng-container",3),2&t){const o=e.XpG(2),l=o.$implicit,n=o.$index,i=e.XpG();e.Y8G("ngTemplateOutlet",i.itemTemplate||i._itemTemplate)("ngTemplateOutletContext",e.l_i(2,z,l,n))}}function H(t,s){1&t&&e.DNE(0,j,1,5,"ng-template",null,0,e.C5r)}function K(t,s){if(1&t){const o=e.RV6();e.j41(0,"p-toggleButton",2),e.bIt("onChange",function(n){const i=e.eBV(o),a=i.$implicit,r=i.$index,h=e.XpG();return e.Njj(h.onOptionSelect(n,a,r))}),e.DNE(1,H,2,0),e.k0s()}if(2&t){const o=s.$implicit,l=e.XpG();e.Y8G("autofocus",l.autofocus)("styleClass",l.styleClass)("ngModel",l.isSelected(o))("onLabel",l.getOptionLabel(o))("offLabel",l.getOptionLabel(o))("disabled",l.disabled||l.isOptionDisabled(o))("allowEmpty",l.getAllowEmpty())("size",l.size),e.R7$(),e.vxM(l.itemTemplate||l._itemTemplate?1:-1)}}const R=({dt:t})=>`\n.p-selectbutton {\n    display: inline-flex;\n    user-select: none;\n    vertical-align: bottom;\n    outline-color: transparent;\n    border-radius: ${t("selectbutton.border.radius")};\n}\n\n.p-selectbutton .p-togglebutton {\n    border-radius: 0;\n    border-width: 1px 1px 1px 0;\n}\n\n.p-selectbutton .p-togglebutton:focus-visible {\n    position: relative;\n    z-index: 1;\n}\n\n.p-selectbutton .p-togglebutton:first-child {\n    border-inline-start-width: 1px;
1\n    border-start-start-radius: ${t("selectbutton.border.radius")};\n    border-end-start-radius: ${t("selectbutton.border.radius")};\n}\n\n.p-selectbutton .p-togglebutton:last-child {\n    border-start-end-radius: ${t("selectbutton.border.radius")};\n    border-end-end-radius: ${t("selectbutton.border.radius")};\n}\n\n.p-selectbutton.ng-invalid.ng-dirty {\n    outline: 1px solid ${t("selectbutton.invalid.border.color")};\n    outline-offset: 0;\n}\n`,Q={root:({props:t})=>["p-selectbutton p-component",{"p-invalid":t.invalid}]};let T=(()=>{class t extends m.j{name="selectbutton";theme=R;classes=Q;static \u0275fac=(()=>{let o;return function(n){return(o||(o=e.xGo(t)))(n||t)}})();static \u0275prov=e.jDH({token:t,factory:t.\u0275fac})}return t})();const Y={provide:b.kq,useExisting:(0,e.Rfq)(()=>p),multi:!0};let p=(()=>{class t extends f.${options;optionLabel;optionValue;optionDisabled;get unselectable(){return this._unselectable}_unselectable=!1;set unselectable(o){this._unselectable=o,this.allowEmpty=!o}tabindex=0;multiple;allowEmpty=!0;style;styleClass;ariaLabelledBy;size;disabled;dataKey;autofocus;onOptionClick=new e.bkB;onChange=new e.bkB;itemTemplate;_itemTemplate;get equalityKey(){return this.optionValue?null:this.dataKey}value;onModelChange=()=>{};onModelTouched=()=>{};focusedIndex=0;_componentStyle=(0,e.WQX)(T);getAllowEmpty(){return this.multiple?this.allowEmpty||1!==this.value?.length:this.allowEmpty}getOptionLabel(o){return this.optionLabel?(0,u.L7)(o,this.optionLabel):null!=o.label?o.label:o}getOptionValue(o){return this.optionValue?(0,u.L7)(o,this.optionValue):this.optionLabel||void 0===o.value?o:o.value}isOptionDisabled(o){return this.optionDisabled?(0,u.L7)(o,this.optionDisabled):void 0!==o.disabled&&o.disabled}writeValue(o){this.value=o,this.cd.markForCheck()}registerOnChange(o){this.onModelChange=o}registerOnTouched(o){this.onModelTouched=o}setDisabledState(o){this.disabled=o,this.cd.markForCheck()}onOptionSelect(o,l,n){if(this.disabled||this.isOptionDisabled(l))return;let i=this.isSelected(l);if(i&&this.unselectable)return;let r,a=this.getOptionValue(l);if(this.multiple)r=i?this.value.filter(h=>!(0,u.aI)(h,a,this.equalityKey)):this.value?[...this.value,a]:[a];else{if(i&&!this.allowEmpty)return;r=i?null:a}this.focusedIndex=n,this.value=r,this.onModelChange(this.value),this.onChange.emit({originalEvent:o,value:this.value}),this.onOptionClick.emit({originalEvent:o,option:l,index:n})}changeTabIndexes(o,l){let n,i;for(let a=0;a<=this.el.nativeElement.children.length-1;a++)"0"===this.el.nativeElement.children[a].getAttribute("tabindex")&&(n={elem:this.el.nativeElement.children[a],index:a});i="prev"===l?0===n.index?this.el.nativeElement.children.length-1:n.index-1:n.index===this.el.nativeElement.children.length-1?0:n.index+1,this.focusedIndex=i,this.el.nativeElement.children[i].focus()}onFocus(o,l){this.focusedIndex=l}onBlur(){this.onModelTouched()}removeOption(o){this.value=this.value.filter(l=>!(0,u.aI)(l,this.getOptionValue(o),this.dataKey))}isSelected(o){let l=!1;const n=this.getOptionValue(o);if(this.multiple){if(this.value&&Array.isArray(this.value))for(let i of this.value)if((0,u.aI)(i,n,this.dataKey)){l=!0;break}}else l=(0,u.aI)(this.getOptionValue(o),this.value,this.equalityKey);return l}templates;
1ngAfterContentInit(){this.templates.forEach(o=>{"item"===o.getType()&&(this._itemTemplate=o.template)})}static \u0275fac=(()=>{let o;return function(n){return(o||(o=e.xGo(t)))(n||t)}})();static \u0275cmp=e.VBU({type:t,selectors:[["p-selectButton"],["p-selectbutton"],["p-select-button"]],contentQueries:function(l,n,i){if(1&l&&(e.wni(i,I,4),e.wni(i,g.Ei,4)),2&l){let a;e.mGM(a=e.lsd())&&(n.itemTemplate=a.first),e.mGM(a=e.lsd())&&(n.templates=a)}},hostVars:10,hostBindings:function(l,n){2&l&&(e.BMQ("role","group")("aria-labelledby",n.ariaLabelledBy)("data-pc-section","root")("data-pc-name","selectbutton"),e.Aen(n.style),e.AVh("p-selectbutton",!0)("p-component",!0))},inputs:{options:"options",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",unselectable:[2,"unselectable","unselectable",e.L39],tabindex:[2,"tabindex","tabindex",e.Udg],multiple:[2,"multiple","multiple",e.L39],allowEmpty:[2,"allowEmpty","allowEmpty",e.L39],style:"style",styleClass:"styleClass",ariaLabelledBy:"ariaLabelledBy",size:"size",disabled:[2,"disabled","disabled",e.L39],dataKey:"dataKey",autofocus:[2,"autofocus","autofocus",e.L39]},outputs:{onOptionClick:"onOptionClick",onChange:"onChange"},features:[e.Jv_([Y,T]),e.Vt3],decls:2,vars:0,consts:[["content",""],[3,"autofocus","styleClass","ngModel","onLabel","offLabel","disabled","allowEmpty","size"],[3,"onChange","autofocus","styleClass","ngModel","onLabel","offLabel","disabled","allowEmpty","size"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(l,n){1&l&&e.Z7z(0,K,2,9,"p-toggleButton",1,A,!0),2&l&&e.Dyx(n.options)},dependencies:[v,b.YN,b.BC,b.vS,d.MD,d.T3,g.Gg],encapsulation:2,changeDetection:0})}return t})(),U=(()=>{class t{static \u0275fac=function(l){return new(l||t)};static \u0275mod=e.$C({type:t});static \u0275inj=e.G2t({imports:[p,g.Gg,g.Gg]})}return t})()}}]);

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.