{"version":3,"file":"SimulatorWrapper.BqdhNRsi.mjs","names":[],"sources":["https:/framerusercontent.com/modules/HTxc5i8fnwfXIgauSGXY/Jzrv9IY6kNxgmaXCyIa7/SimulatorWrapper.js"],"sourcesContent":["// @framerSupportedLayoutWidth any\n// @framerSupportedLayoutHeight any\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useTracking}from\"framer\";import{useSimulatorURL}from\"https://framerusercontent.com/modules/6yTW9nDSqM7wcBWAdnDT/Kmp6WULrNb624rnrCLtN/useSimulatorURL.js\";export default function SimulatorWrapper(props){const{destinyURL,staticURL,extraParams,tracking,children,style}=props;const track=useTracking();const targetUrl=useSimulatorURL({destinyURL,staticURL,extraParams});function handleClick(){track(tracking||\"simulador\");if(typeof window!==\"undefined\")window.location.href=targetUrl;}return /*#__PURE__*/_jsx(\"div\",{onClick:handleClick,style:{cursor:\"pointer\",...style},children:children});}addPropertyControls(SimulatorWrapper,{destinyURL:{type:ControlType.Enum,title:\"destinyURL\",options:[\"simulador\",\"seguro\",\"consorcio\",\"compraplanejada\"],optionTitles:[\"simulador\",\"seguro\",\"consorcio\",\"compraplanejada\"],defaultValue:\"simulador\"},staticURL:{type:ControlType.Enum,title:\"staticURL\",options:[\"none\",\"auto\",\"celular\",\"cnh\",\"computador\",\"games\",\"imovel\",\"moto\",\"pesado\",\"viagem\"],optionTitles:[\"none\",\"auto\",\"celular\",\"cnh\",\"computador\",\"games\",\"imovel\",\"moto\",\"pesado\",\"viagem\"],defaultValue:\"none\"},extraParams:{type:ControlType.String,title:\"extraParams\",defaultValue:\"\"},tracking:{type:ControlType.String,title:\"tracking\",defaultValue:\"simulador\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SimulatorWrapper\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SimulatorWrapper.map"],"mappings":"wOAE2O,SAAwB,EAAiB,EAAM,CAAC,GAAK,CAAC,aAAW,YAAU,cAAY,WAAS,WAAS,SAAO,EAAY,EAAM,GAAa,CAAO,EAAU,EAAgB,CAAC,aAAW,YAAU,cAAY,CAAC,CAAC,SAAS,GAAa,CAAC,EAAM,GAAU,YAAY,CAAW,IAAS,SAAY,EAAO,SAAS,KAAK,GAAW,OAAoB,EAAK,MAAM,CAAC,QAAQ,EAAY,MAAM,CAAC,OAAO,UAAU,GAAG,EAAM,CAAU,WAAS,CAAC,sBAAhnB,IAAgE,IAAgI,CAAkb,EAAoB,EAAiB,CAAC,WAAW,CAAC,KAAK,EAAY,KAAK,MAAM,aAAa,QAAQ,CAAC,YAAY,SAAS,YAAY,kBAAkB,CAAC,aAAa,CAAC,YAAY,SAAS,YAAY,kBAAkB,CAAC,aAAa,YAAY,CAAC,UAAU,CAAC,KAAK,EAAY,KAAK,MAAM,YAAY,QAAQ,CAAC,OAAO,OAAO,UAAU,MAAM,aAAa,QAAQ,SAAS,OAAO,SAAS,SAAS,CAAC,aAAa,CAAC,OAAO,OAAO,UAAU,MAAM,aAAa,QAAQ,SAAS,OAAO,SAAS,SAAS,CAAC,aAAa,OAAO,CAAC,YAAY,CAAC,KAAK,EAAY,OAAO,MAAM,cAAc,aAAa,GAAG,CAAC,SAAS,CAAC,KAAK,EAAY,OAAO,MAAM,WAAW,aAAa,YAAY,CAAC,CAAC"}