import{a as $}from"./chunk-HJM3TZT4.js";import"./chunk-RABF62S5.js";import{a as V,b as B,g as P}from"./chunk-KAQWGQJL.js";import"./chunk-MJMWESWV.js";import{c as A,d as O}from"./chunk-NWQ7TT3N.js";import"./chunk-JEJK4HLJ.js";import"./chunk-MLDEIZ4D.js";import"./chunk-BOGTXGHD.js";import"./chunk-FIGHW4X4.js";import"./chunk-W3A2JYYI.js";import"./chunk-W47YR7MY.js";import{a as l}from"./chunk-Y34C7AHI.js";import"./chunk-CUASPFRX.js";import{A as E,C as H,h as F,i as q,p as N}from"./chunk-HLHVLECB.js";import"./chunk-6IEN3EM2.js";import"./chunk-P5KJQMC2.js";import"./chunk-HCYBOTNG.js";import{g as T}from"./chunk-V47ENDL4.js";import{c as R}from"./chunk-S5VNTSUD.js";import"./chunk-PT2SMVM6.js";import"./chunk-H2CU6EEU.js";import"./chunk-GK2ZGAUD.js";import"./chunk-4TDNJBFX.js";import"./chunk-NUAVJ2U7.js";import"./chunk-KOATU5RH.js";import"./chunk-XWHKIKFV.js";import"./chunk-PBM4LEG7.js";import{p as I}from"./chunk-QVLAHW2O.js";import"./chunk-TI6NUUOB.js";import"./chunk-LYCHGZAM.js";import{$b as n,Ad as y,Gc as d,Ha as v,Hc as u,Ia as w,Kb as p,Lb as h,Md as D,Qb as M,Sd as G,Xc as f,Zc as b,hc as m,ic as a,jc as s,nc as S,nd as x,qc as _,ra as g,sc as c,xb as r}from"./chunk-PGS4AHIT.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:[A],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:E,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,V,B],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,O,P,l,T,I.forChild([{path:"",component:k,children:[{path:"",redirectTo:"number",pathMatch:"full"},{path:"number",component:z}]}])]})}}return i})();export{ue as SbFormatterGuideModule};
