1$(function(){function t(){$(".child-option, .js-child-option").each(function(){var t=$(this).attr("parent_id");"interlock"!==$("#"+t).attr("option_type")&&(t=t,(function(t){switch(t){case"stbox":return o;case"chbox":return r;case"text":return s;case"num":return c;case"image":return a;default:return n}}($("#"+t).attr("option_type"))(t)?i:e)($(this)))}),$(".child-option, .js-child-option").each(function(){var t,n=$(this).attr("parent_id");"interlock"===$("#"+n).attr("option_type")&&(t=(n=$("#"+n).find("select")).children(),n=n.prop("selectedIndex"),(t.eq(n).attr("option_text")===$(this).attr("option_text")?i:e)($(this)))})}function e(t){t.css("display","none");var n=t.attr("option_type"),e=t.find(".item_options").first();switch(n){case"stbox":e.prop("selectedIndex",0);break;case"chbox":e.prop("checked",!1);break;case"text":e.val("");break;case"num":e.val(0),e.prev().prop("disabled",!0),e.next().prop("disabled",!1)}}function i(t){t.css("display","")}function n(t){return!0}function o(t){return 0!=$("#"+t).find(".item_options").first().prop("selectedIndex")}function r(t){return $("#"+t).find(".item_options").first().prop("checked")}function s(t){return 0!=$("#"+t).find(".item_options").first().val().length}function c(t){return 0!=$("#"+t).find("select").first().prop("selectedIndex")}function a(t){var n=$("#"+t).find("input[type=file]").first();return""!==n.val()||null!=(n=$("#"+t).find("input[type=hidden]").first())&&"string"==typeof n.val()&&""!==n.val()||null!=(n=$("#"+t).find("img.img_view").first())&&"https://assets.cake.jp/bp/img/carts/photo/upload.svg"!==n.attr("src")}$(".parent-option, .js-parent-option").each(function(){switch($(this).attr("option_type")){case"chbox":case"stbox":case"text":case"interlock":$(this).find(".item_options").on("change",function(){t()});break;case"num":$(this).find("select").on("change",function(){t()});break;case"image":$(this).find("img.img_view").on("load",function(){t()})}}),t()});
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.