-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchunk.12.1c4b034033e525f8b54c.js
10 lines (9 loc) · 5.72 KB
/
chunk.12.1c4b034033e525f8b54c.js
1
2
3
4
5
6
7
8
9
10
(window.webpackJsonp_ember_auto_import_=window.webpackJsonp_ember_auto_import_||[]).push([[12],{60:function(e,t,r){"use strict"
r.r(t),r.d(t,"market_accessory",(function(){return o})),r.d(t,"market_field",(function(){return a}))
var i=r(9)
const o=class{constructor(e){Object(i.g)(this,e),this.size="icon"}render(){return Object(i.e)(i.a,{size:this.size},Object(i.e)("slot",null))}}
o.style=':host,::slotted(*),*{box-sizing:border-box}:host([disabled]){cursor:not-allowed !important}:host([disabled]) *,:host([disabled]) ::slotted(*){cursor:not-allowed !important;pointer-events:none !important}:host{display:flex;justify-content:center;align-items:center}:host([size="initial"]){}:host([size="icon"]){height:var(--accessory-icon-variant-size);width:var(--accessory-icon-variant-size)}:host([size="image"]){height:var(--accessory-image-variant-size);width:var(--accessory-image-variant-size)}:host ::slotted(market-icon){}:host ::slotted(img){height:100%;width:100%;-o-object-fit:cover;object-fit:cover}:host([size="icon"]) ::slotted(img){border-radius:var(--accessory-icon-variant-border-radius)}:host([size="image"]) ::slotted(img){border-radius:var(--accessory-image-variant-border-radius)}'
const a=class{constructor(e){Object(i.g)(this,e),this.readonly=!1,this.disabled=!1,this.invalid=!1}getSlottedInputs(){return["market-input-text","market-input-password","market-select","market-textarea","market-code-input"].flatMap((e=>[...this.el.getElementsByTagName(e)]))}handleErrorAriaRole(){const e=this.el.querySelector('[slot="error"]')
e&&e.setAttribute("role","alert")}render(){return this.getSlottedInputs().forEach((e=>{e.name=this.name,e.disabled=this.disabled,e.invalid=this.invalid,e.readonly=this.readonly})),Object(i.e)(i.a,null,Object(i.e)("slot",null),this.invalid&&!this.disabled?Object(i.e)("div",null,Object(i.e)("slot",{name:"error",onSlotchange:()=>this.handleErrorAriaRole()})):Object(i.e)("slot",{name:"helper"}),Object(i.e)("slot",{name:"action"}))}get el(){return Object(i.d)(this)}}
a.style=":host,::slotted(*),*{box-sizing:border-box}:host([disabled]){cursor:not-allowed !important}:host([disabled]) *,:host([disabled]) ::slotted(*){cursor:not-allowed !important;pointer-events:none !important}[dir=\"ltr\"] :host{text-align:left}[dir=\"rtl\"] :host{text-align:right}:host{--slot-margin-top:4px;--error-icon-height:16px;--error-icon-width:16px;--error-icon-offset:calc(calc(var(--field-error-message-text-leading) - var(--error-icon-height)) / 2);display:block}::slotted([slot]){margin-top:var(--slot-margin-top) !important}::slotted([slot=\"error\"]){display:block;color:var(--field-error-message-text-color) !important;font-size:var(--field-error-message-text-size) !important;font-weight:var(--field-error-message-text-weight) !important;line-height:var(--field-error-message-text-leading) !important;letter-spacing:var(--field-error-message-text-tracking) !important}::slotted([slot=\"error\"])::before{display:inline-block;height:var(--error-icon-height);width:var(--error-icon-width);vertical-align:calc(-1 * var(--error-icon-offset));margin-left:2px;margin-left:var(--field-error-message-icon-padding, 2px);margin-right:calc(2px + 4px);margin-right:calc(var(--field-error-message-icon-padding, 2px) + var(--field-error-message-icon-margin-right, 4px));content:'';-webkit-mask:url(\"data:image/svg+xml;utf8,<svg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' clip-rule='evenodd' d='M8 15.5C12.1333 15.5 15.5 12.1333 15.5 8C15.5 3.86667 12.1333 0.5 8 0.5C3.86667 0.5 0.5 3.86667 0.5 8C0.5 12.1333 3.86667 15.5 8 15.5ZM8 2.16667C11.2167 2.16667 13.8333 4.78333 13.8333 8C13.8333 11.2167 11.2167 13.8333 8 13.8333C4.78333 13.8333 2.16667 11.2167 2.16667 8C2.16667 4.78333 4.78333 2.16667 8 2.16667ZM8 12.1667C8.5753 12.1667 9.04167 11.7003 9.04167 11.125C9.04167 10.5497 8.5753 10.0833 8 10.0833C7.4247 10.0833 6.95833 10.5497 6.95833 11.125C6.95833 11.7003 7.4247 12.1667 8 12.1667ZM7.16667 3.83333H8.83333V9.25H7.16667V3.83333Z'/></svg>\");mask:url(\"data:image/svg+xml;utf8,<svg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' clip-rule='evenodd' d='M8 15.5C12.1333 15.5 15.5 12.1333 15.5 8C15.5 3.86667 12.1333 0.5 8 0.5C3.86667 0.5 0.5 3.86667 0.5 8C0.5 12.1333 3.86667 15.5 8 15.5ZM8 2.16667C11.2167 2.16667 13.8333 4.78333 13.8333 8C13.8333 11.2167 11.2167 13.8333 8 13.8333C4.78333 13.8333 2.16667 11.2167 2.16667 8C2.16667 4.78333 4.78333 2.16667 8 2.16667ZM8 12.1667C8.5753 12.1667 9.04167 11.7003 9.04167 11.125C9.04167 10.5497 8.5753 10.0833 8 10.0833C7.4247 10.0833 6.95833 10.5497 6.95833 11.125C6.95833 11.7003 7.4247 12.1667 8 12.1667ZM7.16667 3.83333H8.83333V9.25H7.16667V3.83333Z'/></svg>\");-webkit-mask-size:cover;mask-size:cover;background-color:var(--field-error-message-text-color)}::slotted([slot=\"helper\"]){color:var(--field-helper-text-color);font-size:var(--field-helper-text-size);font-weight:var(--field-helper-text-weight);line-height:var(--field-helper-text-leading);letter-spacing:var(--field-helper-text-tracking);margin:var(--field-helper-text-vertical-spacing) var(--field-helper-text-horizontal-spacing);display:block}::slotted([slot=\"action\"]){color:var(--field-action-text-color) !important;cursor:pointer;display:block;font-size:var(--field-action-text-size);font-weight:var(--field-action-text-weight);line-height:var(--field-action-text-leading);letter-spacing:var(--field-action-text-tracking);padding:var(--field-action-vertical-padding-size) 0;text-decoration:none}::slotted(button[slot=\"action\"]){-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;outline:none;border:none;padding:0}"}}])
//# sourceMappingURL=https://multipassui-production-c.squarecdn.com/assets/chunk.12.1c4b034033e525f8b54c-d9f43f2262a1af10685caaf12d809104.map