import{A as e,_ as o,am as t,an as i,au as n,ao as s,av as a,ai as l}from"./index.module.js";import{s as r,a as d,u as c}from"./FirstLayerCustomization-bab18a58-27434383.js";import{l as u}from"./ButtonsCustomization-a07b1a9d-10719b6b.js";var f=function(r){function f(e,f){var v,g,y,b,m,h=this;h=r.call(this,e,f)||this;var p=f.customization;return h.buttons=o(o(o({},new u(f)),new d(f)),{save:{backgroundColor:t(null===(v=null==p?void 0:p.color)||void 0===v?void 0:v.saveBtnBackground),textColor:t(null===(g=null==p?void 0:p.color)||void 0===g?void 0:g.saveBtnText)}}),h.firstLayer=o(o({},new c(f)),{hideButtonDeny:i(f.tcf2.firstLayerHideButtonDeny,!f.tcf2.buttonsDenyAllIsEnabled),hideCustomizationButton:!0===(null===(y=f.tcf2)||void 0===y?void 0:y.enforceAcceptAll),hideNonIabPurposes:f.tcf2.hideNonIabOnFirstLayer,hideToggles:f.tcf2.firstLayerHideToggles||!0===f.tcf2.enforceAcceptAll,isOverlayEnabled:n(f),showDescriptions:f.tcf2.firstLayerShowDescriptions}),h.secondLayer={dpsDisplayFormat:f.dpsDisplayFormat||s.ALL,hideButtonDeny:i(f.tcf2.secondLayerHideButtonDeny,!f.tcf2.buttonsDenyAllIsEnabled),hideLegitimateInterestToggles:f.tcf2.hideLegitimateInterestToggles,hideToggles:f.tcf2.secondLayerHideToggles||!0===f.tcf2.enforceAcceptAll,isOverlayEnabled:a(f),showToggleAllVendors:f.tcf2.vendorToggleAll,tabColor:l(t(null===(m=null===(b=f.customization)||void 0===b?void 0:b.color)||void 0===m?void 0:m.secondLayerTab),null)},h}return e(f,r),f}(r);export{f as default};