"use strict";$((function(){var t="rtl"===$("html").attr("dir")?"rtl":"ltr";$("#productCategory").select2({dir:t,dropdownAutoWidth:!0}),$("#productStatus").select2({dir:t,dropdownAutoWidth:!0}),$("#backorderAllowed").select2({dir:t,dropdownAutoWidth:!0}),$("#releaseDate").datepicker({})}));const tinyMceOptions={height:250,plugins:"advlist autolink link image lists charmap preview anchor searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media table emoticons",toolbar:"undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | preview media fullpage | forecolor backcolor emoticons",license_key:"gpl",content_style:"body { font-size:14px; }",menubar:!1,content_templates:[{title:"Default Description",description:"Insert a default product description.",content:"<p>This is a default product description template.</p>"},{title:"Features List",description:"Insert a default product features list.",content:"<ul><li>Feature 1</li><li>Feature 2</li><li>Feature 3</li></ul>"}]};document.getElementById("productDescription")&&tinymce.init({selector:"textarea#productDescription",...tinyMceOptions}),document.getElementById("productFeatures")&&tinymce.init({selector:"textarea#productFeatures",...tinyMceOptions});