"use strict";(self.webpackChunk_pixelpay_ui_core=self.webpackChunk_pixelpay_ui_core||[]).push([[5036],{"./src/components/x-tooltip/playground.stories.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Auto:()=>Auto,Bottom:()=>Bottom,Left:()=>Left,Right:()=>Right,Top:()=>Top,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var _utils_builder__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/utils/builder.ts");const __WEBPACK_DEFAULT_EXPORT__={title:"Elements/Tooltip",component:"x-tooltip",argTypes:{align:{options:["auto","top","bottom","right","left"],control:{type:"radio"}}}},Template=new _utils_builder__WEBPACK_IMPORTED_MODULE_0__.Ay((args=>`<div class="d-flex justify-content-center align-items-center vh-100" style="margin: -1rem;">\n    <x-tooltip ${(0,_utils_builder__WEBPACK_IMPORTED_MODULE_0__.qT)(args)}>\n        <x-button color="primary">Please hover</x-button>\n    </x-tooltip>\n</div>`)),Auto=Template.args({align:"auto",content:"Testing tooltip"}).build(),Top=Template.args({align:"top",content:"Testing tooltip"}).build(),Right=Template.args({align:"right",content:"Testing tooltip"}).build(),Bottom=Template.args({align:"bottom",content:"Testing tooltip"}).build(),Left=Template.args({align:"left",content:"Testing tooltip"}).build(),__namedExportsOrder=["Auto","Top","Right","Bottom","Left"];Auto.parameters={...Auto.parameters,docs:{...Auto.parameters?.docs,source:{originalSource:"Template.args({\n  align: 'auto',\n  content: 'Testing tooltip'\n}).build()",...Auto.parameters?.docs?.source}}},Top.parameters={...Top.parameters,docs:{...Top.parameters?.docs,source:{originalSource:"Template.args({\n  align: 'top',\n  content: 'Testing tooltip'\n}).build()",...Top.parameters?.docs?.source}}},Right.parameters={...Right.parameters,docs:{...Right.parameters?.docs,source:{originalSource:"Template.args({\n  align: 'right',\n  content: 'Testing tooltip'\n}).build()",...Right.parameters?.docs?.source}}},Bottom.parameters={...Bottom.parameters,docs:{...Bottom.parameters?.docs,source:{originalSource:"Template.args({\n  align: 'bottom',\n  content: 'Testing tooltip'\n}).build()",...Bottom.parameters?.docs?.source}}},Left.parameters={...Left.parameters,docs:{...Left.parameters?.docs,source:{originalSource:"Template.args({\n  align: 'left',\n  content: 'Testing tooltip'\n}).build()",...Left.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}}}}]);