PageSourceSearch

https://hiroshi-project.jp/wp-content/plugins/contact-form-7-multi…/cf7msm.min.js?ver=4.7&fver=20260817050252

js hiroshi-project.jp collected 2026-10-10 01:50:17 UTC 8,805 bytes, 1 lines download raw bytes

1!function(e){var t,n=!1;function r(){var e="test";try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(t){return!1}}function i(e,t){var n=e.getItem(t);return n&&JSON.parse(n)}function a(a){if(!n){n=!0;var f="wpcf7msm_pipe_flow_id",o=cf7msm_posted_data,s=e("input[name='_cf7msm_multistep_tag']"),l=s.length>0;if(l||(l=(s=e("input[name='cf7msm-step']")).length>0),l){var c=s.closest("form"),u=c.find('input[name="_wpcf7"]').val();r()?null!=(t=i(sessionStorage,"cf7msm"))&&e.each(t,function(e,t){if("cf7msm_prev_urls"==e){var n=c.find(".wpcf7-back, .wpcf7-previous"),r=window.location.href,i=r.replace(/\/$/,""),a=!t.hasOwnProperty(r)||""==t[r];a&&(a=!t.hasOwnProperty(i)||""==t[i]),a&&(r=r.split("?")[0],i=r.replace(/\/$/,""),(a=!t.hasOwnProperty(r)||""==t[r])&&(a=!t.hasOwnProperty(i)||""==t[i])),a?n.hide():n.click(function(e){t.hasOwnProperty(r)&&""!=t[r]?window.location.href=t[r]:t.hasOwnProperty(i)&&""!=t[i]?window.location.href=t[i]:window.history.go(-1),e.preventDefault()})}}):(e("input[name='cf7msm-no-ss']").val(1),e(".wpcf7-previous").hide());var p=wpcf7.submit;wpcf7.submit=function(t,n){return function(t){(function(t){var n=t;n instanceof jQuery||(n=e(t));n.find("input[name='cf7msm_options']").remove();var r=d(n);if(0==r.length)return;r.length>1&&(r=r.last());e("<input />",{type:"hidden",name:"cf7msm_options",value:r.val()}).appendTo(n)})(t),v(t),function(t){var n=t;n instanceof jQuery||(n=e(t));e(".has-free-text",n).each(function(){var t=e(this),n=e("input:checkbox",t);if(0==n.length&&(n=e("input:radio",t)),0==n.length)return!1;var r=n.attr("name");r.indexOf("[]")===r.length-2&&(r=r.substring(0,r.length-2));var i="_cf7msm_free_text_reflen_"+r,a=e('input[name="'+i+'"]',t);n.is(":checked")?(0==a.length&&(a=e('<input type="hidden" name="'+i+'">'),t.append(a)),a.val(n.val().length)):a.length>0&&a.remove()})}(t)}(t),p(t,n)},a&&y(),window.addEventListener("load",function(){y()}),document.addEventListener("wpcf7mailsent",function(n){var a,f,o,s=e("#"+n.detail.unitTag+" form");if(r()){var l=0,c=0,p=[],h={};(t=i(sessionStorage,"cf7msm"))||(t={});var d=!1,v=!1,g=!0,y=!1,x=null,O=!1,b=e(".has-free-text",s),A={},k=_(s);if(e.each(n.detail.inputs,function(t){var r=n.detail.inputs[t].name,i=n.detail.inputs[t].value;if(w(r,k))return!0;var a=e('input[name="'+r+'"]',b);if(a.length>0&&a.is(":checked")){var f=r;r.indexOf("[]")===r.length-2&&(f=r.substring(0,r.length-2));var o=i.length,s=m(b,f).val(),_="_cf7msm_free_text_reflen_"+f;r.indexOf("[]")===r.length-2?A[r]={value:i,free_text:s,ref_len:o,ref_name:_}:(i+=" "+s,h[_]=o)}if(r.indexOf("[]")===r.length-2?(-1===e.inArray(r,p)&&(h[r]=[]),h[r].push(i)):h[r]=i,"cf7msm-step"===r){if(-1!==i.indexOf("-")){d=!0,v=!1;var j=i.split("-");l=parseInt(j[0]),c=parseInt(j[1]),void 0!==cf7msm_redirect_urls[u]&&(x=cf7msm_redirect_urls[u]),l<c?g=!1:l===c&&(y=!0)}}else if("cf7msm_options"===r){d=!0,v=!0,g=!1;var P=JSON.parse(i);P.hasOwnProperty("next_url")&&(x=P.next_url),P.hasOwnProperty("last_step")&&(O=!0,x&&""!==x||(y=!0,g=!0))}else p.push(r)}),e.each(A,function(e,t){if(h.hasOwnProperty(e)&&h[e].length>0){var n=h[e].length-1;h[e][n]===t.value&&(h[e][n]+=" "+t.free_text,h[t.ref_name]=t.ref_len)}}),!d)return;if(!g){var j=e("#"+n.detail.unitTag).find("div.wpcf7-mail-sent-ok");0==j.length&&(j=e("#"+n.detail.unitTag).find(".wpcf7-response-output")),j.remove()}if(y&&(s.find("*").not("div.wpcf7-response-output").hide(),s.find("div.wpcf7-response-output").parentsUntil("form").show()),v?O&&(t={}):0!=l&&l===c&&(t={}),x&&""!=x){var P=document.createElement("a");P.href=x;var S=P.hostname+(P.port?":"+P.port:""),I={};t&&t.cf7msm_prev_urls&&(I=t.cf7msm_prev_urls);var E=window.location.protocol+"//"+window.location.host;0===x.indexOf(E)||""!=S&&S!=window.location.host||(0!==x.indexOf("/")&&(E+="/"),x=E+x),I[x]=window.location.href;var L=x.split("?")[0];x!=L&&(I[L]=window.location.href),t.cf7msm_prev_urls=I}a=sessionStorage,f="cf7msm",o=t,a.setItem(f,JSON.stringify(o)),x&&""!=x&&(window.location.href=x)}},!1)}}function m(t,n){var r=n;r.indexOf("[]")===r.length-2&&(r=r.substring(0,r.length-2));var i=[r+"_free_text","_wpcf7_free_text_"+r];return t.find('input.wpcf7-free-text, input[type="text"]').filter(function(){return-1!==e.inArray(e(this).attr("name"),i)})}function h(){if(window.crypto&&window.crypto.getRandomValues){var e=new Uint8Array(16);window.crypto.getRandomValues(e);for(var t="",n=0;n<e.length;n++){var r=e[n].toString(16);t+=r.length<2?"0"+r:r}return t}return String(Date.now())+Math.random().toString(36).substring(2,14)}function d(e){return e.find("input[name='_cf7msm_multistep_tag']")}function v(n){var r=n;
1if(r instanceof jQuery||(r=e(n)),0!==r.length&&function(e){return e.find("input[name='_cf7msm_multistep_tag']").length>0||e.find("input[name='cf7msm-step']").length>0}(r)){var i=function(e){var t=d(e);if(t.length>0)try{var n=JSON.parse(t.last().val());return!(!n||!n.first_step)}catch(i){return!1}var r=e.find("input[name='cf7msm-step']");return r.length>0&&/^1-\d+$/.test(r.last().val())}(r)?h():function(e){var n=e.find('input[name="'+f+'"]');return n.length>0&&n.last().val()?n.last().val():o&&"object"==typeof o&&o.hasOwnProperty(f)&&o[f]?o[f]:t&&"object"==typeof t&&t.hasOwnProperty(f)&&t[f]?t[f]:h()}(r);r.find('input[name="'+f+'"]').remove(),e("<input />",{type:"hidden",name:f,value:i}).appendTo(r),o&&"object"==typeof o&&(o[f]=i),t&&"object"==typeof t&&(t[f]=i)}}function g(e,t){"string"==typeof t&&""!==t&&(e[t]=!0)}function _(t){var n=Object.create(null),r=t;return r instanceof jQuery||(r=e(r)),r.find("input[name]").each(function(){var t=function(e){if("string"!=typeof e||0===e.length||e.length>255||/[\x00-\x1F\x7F]/.test(e))return null;if("undefined"==typeof cf7msm_honeypot_field_matchers||!Array.isArray(cf7msm_honeypot_field_matchers))return null;for(var t=0;t<cf7msm_honeypot_field_matchers.length;t++){var n=cf7msm_honeypot_field_matchers[t];if(n&&"object"==typeof n){if("exact"===n.type&&"string"==typeof n.value&&e===n.value)return{matcher:n,matches:[e]};if("regex"===n.type&&"string"==typeof n.pattern){var r=n.pattern;if(!(0===r.length||r.length>255||"^"!==r.charAt(0)||"$"!==r.charAt(r.length-1)))try{var i=new RegExp(r).exec(e);if(null!==i)return{matcher:n,matches:i}}catch(a){continue}}}}return null}(this.name);if(null!==t){var r=t.matcher,i=function(t,n){if(!n||"string"!=typeof n.wrapper_selector)return null;var r=n.wrapper_selector;if(0===r.length||r.length>255||/[\x00-\x1F\x7F]/.test(r))return null;try{var i=e(t).closest(r);return i.length>0?i:null}catch(a){return null}}(this,r);if("string"!=typeof r.wrapper_selector||null!==i)if(g(n,this.name),null===i){if(void 0!==r.honeypot_name_capture){var a=parseInt(r.honeypot_name_capture,10);a>0&&t.matches[a]&&g(n,t.matches[a])}}else i.find("input[name]").each(function(){g(n,this.name)})}}),n}function w(e,t){return!(!t||!Object.prototype.hasOwnProperty.call(t,e))}function y(){if(o){var t=_(c);e.each(o,function(n,r){if(n.indexOf("[]")===n.length-2&&(n=n.substring(0,n.length-2)),w(n,t))return!0;if(null==r)return!0;if(0!=n.indexOf("_")&&"cf7msm-step"!=n&&"cf7msm_options"!=n){var i=c.find('*[name="'+n+'"]:not([data-cf7msm-previous])'),a=c.find('input[name="'+n+'[]"]:not([data-cf7msm-previous])'),f=c.find('select[name="'+n+'[]"]:not([data-cf7msm-previous])');if(i.length>0)if("radio"==i.prop("type")||"checkbox"==i.prop("type")){if(null!==(l=x(o,n,r)))(u=i.filter('[value="'+l.new_val+'"]')).length>0&&(m(c,n).val(l.free_val),r=l.new_val);i.filter(function(){return e(this).val()==r}).prop("checked",!1).trigger("click",[{cf7msm:!0}])}else if(i.is("select")){var s=r;s&&s.constructor===Array&&(s=s.length>0?s[0]:""),i.find("option").filter(function(){return this.value==s}).prop("selected",!0)}else i.val(r);else if(a.length>0&&Array.isArray(r)){""!=r&&r.length>0&&e.each(r,function(t,n){a.filter(function(){return e(this).val()==n}).prop("checked",!1).trigger("click",[{cf7msm:!0}])});var l,u,p=r[r.length-1];if(null!==(l=x(o,n,p)))(u=a.filter('[value="'+l.new_val+'"]')).length>0&&(u.prop("checked",!1).trigger("click",[{cf7msm:!0}]),m(c,n).val(l.free_val))}else if(f.length>0&&Array.isArray(r)){var h=r;h&&h.constructor!==Array&&(h=[h]),""!=h&&h.length>0&&e.each(h,function(e,t){f.find("option").filter(function(){return this.value==t}).prop("selected",!0)})}}}),function(t){var n=(t=e(t)).find('input[name="_wpcf7cf_options"]');if(0===n.length)return;n.trigger("change")}(c)}}function x(e,t,n){var r=n;if(Array.isArray(n)&&(r=n[n.length-1]),"string"!=typeof r)return null;var i=null,a="_cf7msm_free_text_reflen_"+t;if(a in e){var f=parseInt(e[a]);f<=r.length&&(i={new_val:r.substring(0,f),free_val:r.substring(f+1)})}return i}}window.addEventListener("DOMContentLoaded",e=>{a()}),window.addEventListener("pagehide",e=>{n=!1}),window.addEventListener("pageshow",e=>{a(e.persisted)})}(jQuery);

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.