"use strict";var e=require("../../../common/helpers.js"),t=require("@gem-sdk/core");const o=t=>e.filterTruthy(t),r=e=>`url(https://cdn.shopify.com/s/files/1/1827/4239/t/1/assets/ico-select.svg?v=155563818344741998551488860031) ${e?.includes("linear-gradient")?","+e:""}`;exports.composeContainerStyles=(e,r)=>{let{pos:p,d:s,op:i,right:n,top:c,left:a,bottom:l,z:g,padding:y,margin:d}=e??{},u=e?.["spacing-setting"],m=t.composeAdvanceStyle({pos:p,d:s,op:i,right:n,top:c,left:a,bottom:l,z:g,margin:d,padding:y,"spacing-setting":u});return o({...m,...t.makeStyleResponsive("ta",r?.align)})},exports.composeFormDropdownStyles=(e,p,s)=>{let{border:i,rounded:n,hasBoxShadow:c,boxShadow:a}=e??{},{background:l,size:g}=p??{},{globalSize:y,backgroundColorV2Active:d}=s??{},u=t.composeAdvanceStyle({border:i,rounded:n,hasBoxShadow:c,boxShadow:a}),m=t.makeGlobalSize(y);return o({...m?.width?.["--w"]?m.width:{"--w":"100%"},...m?.height?.["--h"]?m.height:{"--h":"auto"},...m.padding,...u,...g?.type?{}:t.composeSize(g?.custom),appearance:"none",...t.getStyleBackgroundByDevice(l,{ignoreBackgroundImageProperties:!0}),"--bgi":r(l?.desktop?.color),"background-repeat":"no-repeat","background-position":"right 10px center, 0 0","--focus-bgi":r(d?.active)})},exports.getAppendTypoStyleFirstTime=e=>{let r=t.composeTypographyStyle(e?.typo,e?.typography);return o({...r,...!Number(e?.defaultOption)&&{"--c":e?.placeholderColor}})},exports.getStyleOption=e=>{let{typography:r,typo:p}=e??{},s=t.composeTypographyStyle(p,r);return o({...s})};
