UNPKG

@usercentrics/cmp-browser-sdk

Version:
2 lines (1 loc) 1.46 kB
import{_ as e,p as o,an as t,ao as s,av as n,ap as i,aw as a,P as l}from"./index-084e1ef9.js";import{B as r,F as d,C as c}from"./FirstLayerCustomization-222781ab.js";import{B as u}from"./ButtonsCustomization-a56b7368.js";var f=function(c){function f(e,f){var v,g,y,p,h,m=this;m=c.call(this,e,f)||this;var b=f.customization;return m.buttons=o(o(o({},new u(f)),new r(f)),{save:{backgroundColor:t(null===(v=null==b?void 0:b.color)||void 0===v?void 0:v.saveBtnBackground),textColor:t(null===(g=null==b?void 0:b.color)||void 0===g?void 0:g.saveBtnText)}}),m.firstLayer=o(o({},new d(f)),{hideButtonDeny:s(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}),m.secondLayer={dpsDisplayFormat:f.dpsDisplayFormat||i.ALL,hideButtonDeny:s(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===(h=null===(p=f.customization)||void 0===p?void 0:p.color)||void 0===h?void 0:h.secondLayerTab),null)},m}return e(f,c),f}(c);export{f as default};