"use strict";(self.webpackChunk_pixelpay_ui_core=self.webpackChunk_pixelpay_ui_core||[]).push([[9740],{"./src/components/x-quantity/playground.stories.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Simple:()=>Simple,WithValidation:()=>WithValidation,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var _utils_builder__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/utils/builder.ts");const __WEBPACK_DEFAULT_EXPORT__={title:"Fields/Quantity",component:"x-quantity"},Template=new _utils_builder__WEBPACK_IMPORTED_MODULE_0__.Ay((args=>`<x-quantity ${(0,_utils_builder__WEBPACK_IMPORTED_MODULE_0__.qT)(args)}></x-quantity>`)),Simple=Template.args({value:99}).build(),WithValidation=Template.args({required:!0,min:18,max:25}).build(),__namedExportsOrder=["Simple","WithValidation"];Simple.parameters={...Simple.parameters,docs:{...Simple.parameters?.docs,source:{originalSource:"Template.args({\n  value: 99\n}).build()",...Simple.parameters?.docs?.source}}},WithValidation.parameters={...WithValidation.parameters,docs:{...WithValidation.parameters?.docs,source:{originalSource:"Template.args({\n  required: true,\n  min: 18,\n  max: 25\n}).build()",...WithValidation.parameters?.docs?.source}}}},"./src/utils/builder.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{oi:()=>ColorsControl,WZ:()=>CountriesControl,Sx:()=>IconsControl,aM:()=>LogosControl,Ay:()=>Template,qT:()=>toProps});const colors=["default","primary","accent","danger","warning","success","info","blue","indigo","purple","pink","red","orange","yellow","green","teal","cyan","brown","stone"];var dist=__webpack_require__("./node_modules/simply-beautiful/dist/index.js"),dist_default=__webpack_require__.n(dist),icons=__webpack_require__("./node_modules/@pixelpay/fonts/dist/icons.json"),logos=__webpack_require__("./node_modules/@pixelpay/fonts/dist/logos.json"),social=__webpack_require__("./node_modules/@pixelpay/fonts/dist/social.json"),flags=__webpack_require__("./node_modules/@pixelpay/fonts/dist/flags.json");const Icons=Object.keys(icons),Logos=Object.keys(logos),IconsControl=(Object.keys(social),{options:Icons,control:{type:"select"}}),LogosControl={options:Logos,control:{type:"select"}},ColorsControl={options:colors,control:{type:"select"}},CountriesControl={options:flags,control:{type:"select"}},toProps=(args,except=[])=>Object.keys(args).filter((key=>!except.includes(key))).map((key=>`${key.replace(/[A-Z]/g,(match=>"-"+match.toLowerCase()))}="${args[key]}"`)).join(" ");class Template{template;argsValues;argsTypes;doc;constructor(template){this.template=template,this.argsValues={},this.argsTypes={},this.doc=null}args(value){return this.argsValues=value,this}types(value){return this.argsTypes=value,this}build(overrideTemplate=null){const base=overrideTemplate||this.template,build={render:base};return build.args=this.argsValues,build.argTypes=this.argsTypes,build.parameters={storySource:{source:dist_default().html(base(build.args),{indent_size:2})}},build}}}}]);