import{a as $}from"./chunk-M3DKIQAN.js";import"./chunk-HVFZ76UK.js";import{d as E,e as P}from"./chunk-5H5H6C4Y.js";import"./chunk-QEMINC2A.js";import"./chunk-P4KRQVGS.js";import"./chunk-HVLAIORG.js";import{a as O,b as V,g as B}from"./chunk-7NRTBDEV.js";import"./chunk-WTAT2E5Z.js";import"./chunk-4KB2I3K5.js";import"./chunk-4EEGS4SZ.js";import{a as l}from"./chunk-Y46LOK5X.js";import"./chunk-3PEMIHKH.js";import"./chunk-DFPET44C.js";import{L as A,N as H,c as F,d as q,q as N}from"./chunk-3SGEAGU4.js";import"./chunk-AXJC5PD4.js";import"./chunk-KX2PR432.js";import{e as T}from"./chunk-PCQVD4UN.js";import{c as R}from"./chunk-FUKRVTQR.js";import"./chunk-HMHHBN2H.js";import"./chunk-LTTEKZWN.js";import"./chunk-JD7XHN2Y.js";import"./chunk-PNYIEM2I.js";import"./chunk-WAKTITOT.js";import"./chunk-DIZJ6SFW.js";import"./chunk-NGFJDF4M.js";import"./chunk-DQXXLIFV.js";import{n as I}from"./chunk-BKF2JYPP.js";import"./chunk-OFEKULYN.js";import"./chunk-T3Q3DASN.js";import"./chunk-PYC6L6XB.js";import"./chunk-BEQYW66E.js";import{$b as m,Ab as p,Bb as h,Fd as D,Gb as M,Ld as G,Pc as f,Rb as n,Rc as b,ac as a,bc as s,ea as g,fc as S,fd as x,ic as _,kc as c,nb as r,td as y,wa as v,xa as w,yc as d,zc as u}from"./chunk-LU6Q5ONP.js";import"./chunk-5VMFMKJR.js";G();x();var k=(()=>{class i{constructor(){this.mainOptions={navigation:[{id:"sb-formatter-number",label:"Number formatter",link:"./number"}]}}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=p({type:i,selectors:[["paw-sb-formatter-guide"]],standalone:!1,decls:1,vars:1,consts:[[3,"optionsDef"]],template:function(t,o){t&1&&s(0,"paw-main-view",0),t&2&&n("optionsDef",o.mainOptions)},dependencies:[E],encapsulation:2})}}return i})();q();H();x();G();function J(i,C){if(i&1){let e=S();m(0,"div",1)(1,"div",2)(2,"div",3)(3,"span"),d(4),f(5,"pawFormatDecimal"),a()(),m(6,"div",3)(7,"span"),d(8),f(9,"pawFormatCurrency"),a()()(),m(10,"div",4)(11,"div"),s(12,"paw-form",5),a(),m(13,"div")(14,"paw-action",6),_("selected",function(){let o=v(e).$implicit,U=c();return w(U.onGenerateRandomNumber(o))}),a()()()()}if(i&2){let e=C.$implicit,t=C.index,o=c();r(4),u(b(5,7,e.exampleNumber,e.percisionDecimal)),r(4),u(b(9,10,e.exampleNumber,e.percisionDecimal)),r(4),n("fields",o.exampleSettingsFields)("model",e)("settings",o.exampleForm),r(2),n("id",o.randomNumberAction+"-"+t)("action",o.randomNumberAction)}}var z=(()=>{class i{constructor(){this.exampleSettingsFields=[F.number({id:"exampleNumber",label:"Example number",component:N},2),F.number({id:"percisionDecimal",label:"Decimal Precision",component:N},0),{id:"negative",caption:"Negative number",component:A,onChange:(e,t,o)=>{if(e&&o.exampleNumber>0){o.exampleNumber=-o.exampleNumber;return}if(!e&&o.exampleNumber<0){o.exampleNumber=-o.exampleNumber;return}}}],this.exampleForm={showSubmitBtn:!1,inputFieldStyleClass:"paw-label-width-l"},this.randomNumberAction={id:"generateRandomNumber",label:"Generate Random Number"},this.exampleModels=[{percisionDecimal:2,percisionInt:0,exampleNumber:123456789123e-5,negative:!1}]}onGenerateRandomNumber(e){let t=$.randomNumber(0,1e5);e.exampleNumber=e.negative?-t:t}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=p({type:i,selectors:[["paw-sb-formatter-number"]],standalone:!1,decls:1,vars:1,consts:[["class","flex paw-padding-m paw-gap-m",4,"ngFor","ngForOf"],[1,"flex","paw-padding-m","paw-gap-m"],[1,"w-2/3"],[1,"paw-font-size-l"],[1,"w-1/3"],[3,"fields","model","settings"],[3,"selected","id","action"]],template:function(t,o){t&1&&M(0,J,15,13,"div",0),t&2&&n("ngForOf",o.exampleModels)},dependencies:[y,l,R,O,V],encapsulation:2})}}return i})();x();var ue=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=h({type:i})}static{this.\u0275inj=g({imports:[D,P,B,l,T,I.forChild([{path:"",component:k,children:[{path:"",redirectTo:"number",pathMatch:"full"},{path:"number",component:z}]}])]})}}return i})();export{ue as SbFormatterGuideModule};
