const _0x130906=_0x42af;(function(_0x579346,_0x407e89){const _0x263212=_0x42af,_0x31ab7a=_0x579346();while(!![]){try{const _0x573882=parseInt(_0x263212(0x76))/0x1*(-parseInt(_0x263212(0x74))/0x2)+parseInt(_0x263212(0x77))/0x3+-parseInt(_0x263212(0x6a))/0x4*(parseInt(_0x263212(0x7a))/0x5)+-parseInt(_0x263212(0x71))/0x6+parseInt(_0x263212(0x6b))/0x7+-parseInt(_0x263212(0x72))/0x8*(-parseInt(_0x263212(0x6c))/0x9)+parseInt(_0x263212(0x75))/0xa*(parseInt(_0x263212(0x6d))/0xb);if(_0x573882===_0x407e89)break;else _0x31ab7a['push'](_0x31ab7a['shift']());}catch(_0x59fb6c){_0x31ab7a['push'](_0x31ab7a['shift']());}}}(_0x5dc8,0xb1473));import{onMounted,onUnmounted,ref}from'vue';import{getCrudStyle}from'./style';export const FORM_COLS_DESKTOP=0x18;function _0x42af(_0x219e90,_0x5256d9){_0x219e90=_0x219e90-0x67;const _0x5dc806=_0x5dc8();let _0x42af67=_0x5dc806[_0x219e90];if(_0x42af['NLBUdo']===undefined){var _0x32a398=function(_0x135b76){const _0x582738='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3b17bc='',_0x3688d2='';for(let _0xf50ffc=0x0,_0x19d67c,_0x4f84b6,_0x45cdf5=0x0;_0x4f84b6=_0x135b76['charAt'](_0x45cdf5++);~_0x4f84b6&&(_0x19d67c=_0xf50ffc%0x4?_0x19d67c*0x40+_0x4f84b6:_0x4f84b6,_0xf50ffc++%0x4)?_0x3b17bc+=String['fromCharCode'](0xff&_0x19d67c>>(-0x2*_0xf50ffc&0x6)):0x0){_0x4f84b6=_0x582738['indexOf'](_0x4f84b6);}for(let _0x4f2a4f=0x0,_0x42599e=_0x3b17bc['length'];_0x4f2a4f<_0x42599e;_0x4f2a4f++){_0x3688d2+='%'+('00'+_0x3b17bc['charCodeAt'](_0x4f2a4f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3688d2);};_0x42af['rsaIJC']=_0x32a398,_0x42af['AvBTxU']={},_0x42af['NLBUdo']=!![];}const _0x1a2fbc=_0x5dc806[0x0],_0x562137=_0x219e90+_0x1a2fbc,_0xd2585c=_0x42af['AvBTxU'][_0x562137];return!_0xd2585c?(_0x42af67=_0x42af['rsaIJC'](_0x42af67),_0x42af['AvBTxU'][_0x562137]=_0x42af67):_0x42af67=_0xd2585c,_0x42af67;}export const FORM_COLS_MOBILE=0xc;export const FORM_SPAN_FULL=0x18;function _0x5dc8(){const _0x4efae9=['ndjhDNH3ANG','mtblre9mruG','nta3ntvuCgzIqw0','mJa2mtG5n1v0zwXUzW','CMvTB3zLrxzLBNrmAxn0zw5LCG','C3bHBG','mte1wgL4sxDL','y2HHBMDL','Bwf0y2HnzwrPyq','Bwf0y2HLCW','ywrKrxzLBNrmAxn0zw5LCG','Dw5KzwzPBMvK','mJi1odeYww1XA3j4','ntG3ode0nxrNEM9Qva','mJDku3bhsKi','mJe1ntiWotfLzKTVzuW','kg1HEc13Awr0AdOGnZy4ChGP','zM9YBq','BwLU','mZeZodqWogf1zxbItW','mZm5mdG4re9JBezk','Bwf4'];_0x5dc8=function(){return _0x4efae9;};return _0x5dc8();}export const FORM_MQ_MOBILE=_0x130906(0x6e);export function getFormCols(){const _0x39219c=_0x130906;if(typeof window!==_0x39219c(0x69)&&window[_0x39219c(0x7c)](FORM_MQ_MOBILE)[_0x39219c(0x67)])return FORM_COLS_MOBILE;return FORM_COLS_DESKTOP;}export function resolveFormSpan(_0x3b17bc,_0x3688d2=getFormCols()){const _0x52c1ee=_0x130906,_0xf50ffc=_0x3b17bc??getCrudStyle()[_0x52c1ee(0x6f)][_0x52c1ee(0x79)]??0xc,_0x19d67c=Math[_0x52c1ee(0x70)](FORM_SPAN_FULL,Math[_0x52c1ee(0x73)](0x1,_0xf50ffc));if(_0x3688d2===FORM_COLS_DESKTOP)return _0x19d67c;return Math['max'](0x1,Math['round'](_0x19d67c/FORM_COLS_DESKTOP*FORM_COLS_MOBILE));}export function useFormCols(){const _0x4f84b6=ref(getFormCols());let _0x45cdf5=null;const _0x4f2a4f=()=>{_0x4f84b6['value']=getFormCols();};return onMounted(()=>{const _0x6f9144=_0x42af;_0x45cdf5=window['matchMedia'](FORM_MQ_MOBILE),_0x45cdf5[_0x6f9144(0x68)]('change',_0x4f2a4f),_0x4f2a4f();}),onUnmounted(()=>{const _0x4c1ec7=_0x42af;_0x45cdf5?.[_0x4c1ec7(0x78)](_0x4c1ec7(0x7b),_0x4f2a4f);}),_0x4f84b6;}