1"use strict";(self.webpackChunkgloboFormbuilder=self.webpackChunkgloboFormbuilder||[]).push([[848],{2226:(t,e,a)=>{a.r(e),a.d(e,{default:()=>o});var i=a(8527),r=a(7908),l=a.n(r);const o={init:function(){document.querySelectorAll('.globo-form-app [data-type="datetime"]').forEach((t=>{let e,a,r,o,d={enableTime:!0,dateFormat:"Y-m-d H:i",time_24hr:!0,disableMobile:!0},u="H:i";e=t.getAttribute("data-format"),a=t.getAttribute("data-locale"),r=t.getAttribute("dataDateFormat")||"Y-m-d",o=t.getAttribute("dataTimeFormat");let s=t.getAttribute("limitDateType"),m=t.getAttribute("limitDateSpecificDates"),n=t.getAttribute("limitDateRangeDates"),b=t.getAttribute("limitDateDOWDates");"12h"==o&&(d.time_24hr=!1,u="h:i K"),"date-and-time"==e?d.dateFormat=r+" "+u:"date"==e?(d.enableTime=!1,d.dateFormat=r):"time"==e&&(d.noCalendar=!0,d.dateFormat=u),a&&(d.locale=l()[a]);let c=[];if(s){if(""!=m&&null!=m&&(c=c.concat(m.split(",").map((t=>new Date(t))))),""!=n&&null!=n){const t=n.split(",");c.push({from:new Date(t[0]),to:new Date(t[1])})}if(""!=b&&null!=b){let t=b.split(",").map((t=>{let e=0;switch(t){case"sunday":default:e=0;break;case"monday":e=1;break;case"tuesday":e=2;break;case"wednesday":e=3;break;case"thursday":e=4;break;case"friday":e=5;break;case"saturday":e=6}return e}));c.push((function(e){return t.indexOf(e.getDay())>-1}))}"disablingDates"==s?d.disable=c:d.enable=c}void 0!==Globo.FormBuilder.flatpickrCustomOptions&&(d=Globo.FormBuilder.flatpickrCustomOptions?.[t.getAttribute("id")]?{...d,...Globo.FormBuilder.flatpickrCustomOptions[t.getAttribute("id")]}:{...d,...Globo.FormBuilder.flatpickrCustomOptions});(0,i.Z)(t,d)}))}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.