{"version":3,"file":"scripts.min.js","sources":["../src/js/ui-touch.js","../src/js/scripts.js"],"names":["a","f","b","c","d","originalEvent","touches","length","preventDefault","changedTouches","document","createEvent","initMouseEvent","window","screenX","screenY","clientX","clientY","target","dispatchEvent","e","support","touch","ui","mouse","prototype","_mouseInit","_mouseDestroy","_touchStart","this","_mouseCapture","_touchMoved","_touchMove","_touchEnd","element","on","touchstart","proxy","touchmove","touchend","call","off","jQuery","addEventListener","translation","pending","dictionary","OrderPicker","prefixFormat","params","JFCustomWidget","getWidgetSettings","lastChangedHeight","isFromCardform","getData","value","$","each","push","find","attr","valid","join","updateFormData","sendData","resizeIframe","currentHeight","body","offsetHeight","requestFrameResize","height","init","formData","_items","items","separator","JFCustomWidgetUtils","isEmpty","search","split","index","item","str","substring","indexOf","padding","sortableList","i","li","span","addClass","id","tabindex","data-name","trim","parseInt","text","append","sortable","type","keyCode","hasClass","removeClass","clickedNowIndex","clickedBeforIndex","clickedBefor","get","clickedNow","insertBefore","insertAfter","trigger","css","fontSize","size","values","ResizeObserver","changedHeight","clientHeight","observe","subscribe","data","widget","sendSubmit","JFWidgetTranslation","translate","translatableData","getTranslatables","sendTranslatables","translationData","getElementById","innerHTML"],"mappings":"AAUA,CAAC,SAASA,GAAG,SAASC,EAAED,EAAEE,GAAG,IAA+DC,EAAoCC,EAA/D,EAA/BJ,EAAEK,cAAcC,QAAQC,SAAWP,EAAEQ,eAAe,EAAML,EAAEH,EAAEK,cAAcI,eAAe,IAAGL,EAAEM,SAASC,YAAY,aAAa,GAAIC,eAAeV,EAAE,CAAA,EAAG,CAAA,EAAGW,OAAO,EAAEV,EAAEW,QAAQX,EAAEY,QAAQZ,EAAEa,QAAQb,EAAEc,QAAQ,CAAA,EAAG,CAAA,EAAG,CAAA,EAAG,CAAA,EAAG,EAAE,IAAI,EAAEjB,EAAEkB,OAAOC,cAAcf,CAAC,EAAE,CAAC,IAAgEgB,EAAElB,EAAuBC,EAAeC,EAArGJ,EAAEqB,QAAQC,M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