관리-도구
편집 파일: control.js.map
{"mappings":"AAAAA,GAAGC,UAAUC,mBAAmB,iBAC9BF,GAAGC,UAAUE,oBAAoBC,OAAO,CACtCC,iBAAkB,SAAUC,GAE1B,IAAMC,GADND,EAAUA,GAAWE,MACED,OAEvBD,EAAQG,UAAUC,KAAK,mBAAmBC,GAAG,gBAAgB,WAC3D,IAAMC,EAAQC,OAAOL,MAAMM,MAGzB,kBAAoBP,EAAOQ,MAC3BR,EAAOS,SACP,WAAaT,EAAOS,QAAQD,OAE5BR,EAAOS,QAAQC,IAAMC,WAAWX,EAAOS,QAAQC,KAC/CV,EAAOS,QAAQG,IAAMD,WAAWX,EAAOS,QAAQG,KAE3CP,EAAQL,EAAOS,QAAQC,IACzBL,EAAQL,EAAOS,QAAQC,IACdL,EAAQL,EAAOS,QAAQG,MAChCP,EAAQL,EAAOS,QAAQG,MAI3Bb,EAAQc,QAAQC,IAAIT","sources":["packages/kirki-framework/control-generic/src/control.js"],"sourcesContent":["wp.customize.controlConstructor[\"kirki-generic\"] =\n wp.customize.kirkiDynamicControl.extend({\n initKirkiControl: function (control) {\n control = control || this;\n const params = control.params;\n\n control.container.find(\"input, textarea\").on(\"change input\", function () {\n const value = jQuery(this).val();\n\n if (\n \"kirki-generic\" === params.type &&\n params.choices &&\n \"number\" === params.choices.type\n ) {\n params.choices.min = parseFloat(params.choices.min);\n params.choices.max = parseFloat(params.choices.max);\n\n if (value < params.choices.min) {\n value = params.choices.min;\n } else if (value > params.choices.max) {\n value = params.choices.max;\n }\n }\n\n control.setting.set(value);\n });\n },\n });\n"],"names":["wp","customize","controlConstructor","kirkiDynamicControl","extend","initKirkiControl","control","params","this","container","find","on","value","jQuery","val","type","choices","min","parseFloat","max","setting","set"],"version":3,"file":"control.js.map"}