<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag; ?>
<?php foreach($attributes->onlyProps([
    'name' => $name,
    'value' => $value,
    'placeholder' => $placeholder,
]) as $__key => $__value) {
    $$__key = $$__key ?? $__value;
} ?>
<?php $attributes = $attributes->exceptProps([
    'name' => $name,
    'value' => $value,
    'placeholder' => $placeholder,
]); ?>
<?php foreach (array_filter(([
    'name' => $name,
    'value' => $value,
    'placeholder' => $placeholder,
]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
    $$__key = $$__key ?? $__value;
} ?>
<?php $__defined_vars = get_defined_vars(); ?>
<?php foreach ($attributes as $__key => $__value) {
    if (array_key_exists($__key, $__defined_vars)) unset($$__key);
} ?>
<?php unset($__defined_vars); ?>

<div class="tiptap-wrapper"
     data-element-id="<?php echo e($name); ?>-editor"
     data-input-id="<?php echo e($name); ?>-input"
     data-placeholder='<?php echo json_encode($placeholder, 15, 512) ?>'
     data-content='<?php echo json_encode($value, 15, 512) ?>'
     data-prefix="<?php echo e($name); ?>">
     
    
    <div class="mb-2 flex flex-wrap gap-2 items-center border border-optional rounded p-2 bg-white">
        <select id="<?php echo e($name); ?>-block-type" class="border rounded p-1">
            <option value="p">Párrafo</option>
            </select>

        <select id="<?php echo e($name); ?>-font-size" class="border rounded p-1">
            <option value="">Tamaño</option>
            <option value="9">9</option>
            <option value="10">10</option>
            <option value="11">11</option>
        </select>
        
        
        <select id="<?php echo e($name); ?>-font-family" class="border rounded p-1">
            <option value="">Tipo de fuente</option>
            <option value="Century Gothic">Century Gothic</option>
            <option value="Arial">Arial</option>
        </select>

        <button type="button" id="<?php echo e($name); ?>-btn-bold" class="tt-btn">B</button>
        <button type="button" id="<?php echo e($name); ?>-btn-italic" class="tt-btn"><em>I</em></button>
        <button type="button" id="<?php echo e($name); ?>-btn-underline" class="tt-btn"><u>U</u></button>

        <div class="h-6 w-px bg-gray-300 mx-1"></div>

       <button type="button" id="<?php echo e($name); ?>-align-left" class="tt-btn">
            <svg xmlns="http://www.w3.org/2000/svg" class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 6h18M3 12h12M3 18h18" />
            </svg>
        </button>
        <button type="button" id="<?php echo e($name); ?>-align-center" class="tt-btn">
            <svg xmlns="http://www.w3.org/2000/svg" class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 6h18M6 12h12M3 18h18" />
            </svg>
        </button>
        <button type="button" id="<?php echo e($name); ?>-align-right" class="tt-btn">
            <svg xmlns="http://www.w3.org/2000/svg" class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 6h18M9 12h12M3 18h18" />
            </svg>
        </button>
        <button type="button" id="<?php echo e($name); ?>-align-justify" class="tt-btn">
            <svg xmlns="http://www.w3.org/2000/svg" class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 6h18M3 12h18M3 18h18" />
            </svg>
        </button>
        <div class="h-6 w-px bg-gray-300 mx-1"></div>
        
        <button type="button" id="<?php echo e($name); ?>-highlight-yellow" class="tt-btn !bg-[#f6eb14] w-5 h-5 rounded" title="Amarillo"></button>
        <button type="button" id="<?php echo e($name); ?>-highlight-green" class="tt-btn !bg-green-400 w-5 h-5 rounded" title="Verde"></button>
        <button type="button" id="<?php echo e($name); ?>-highlight-pink" class="tt-btn !bg-pink-400 w-5 h-5 rounded" title="Rosa"></button>
        <button type="button" id="<?php echo e($name); ?>-highlight-red" class="tt-btn !bg-red-400 w-5 h-5 rounded" title="Rojo"></button>
        <button type="button" id="<?php echo e($name); ?>-highlight-blue" class="tt-btn !bg-blue-400 w-5 h-5 rounded" title="Azul"></button>
        <div class="h-6 w-px bg-gray-300 mx-1"></div>
        <button type="button" id="<?php echo e($name); ?>-btn-hard-break" class="tt-btn">
            <svg xmlns="http://www.w3.org/2000/svg" class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5v6a3 3 0 003 3h7m0 0l-3-3m3 3l-3 3" />
            </svg>
        </button>
        
        <div class="relative">
            <select id="<?php echo e($name); ?>-list-dropdown" class="border rounded p-1 w-[150px] appearance-none">
                <option value="">Tipo de lista</option>
                <option value="bulletList">• Viñetas</option>
                <option value="orderedList">1. Numerada</option>
                <option value="roman">I. Romana</option>
                <option value="alphaLowerParens">a. Letra minúscula con punto</option>
                <option value="alphaUpperDot">A. Letra mayúscula con punto</option>
            </select>
            <div class="pointer-events-none absolute right-2 top-1/2 -translate-y-1/2">
                <?php if (isset($component)) { $__componentOriginalb812c3d4fc32bd0e54d75382d6e107c7 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalb812c3d4fc32bd0e54d75382d6e107c7 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icons.arrow-down','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('icons.arrow-down'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalb812c3d4fc32bd0e54d75382d6e107c7)): ?>
<?php $attributes = $__attributesOriginalb812c3d4fc32bd0e54d75382d6e107c7; ?>
<?php unset($__attributesOriginalb812c3d4fc32bd0e54d75382d6e107c7); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalb812c3d4fc32bd0e54d75382d6e107c7)): ?>
<?php $component = $__componentOriginalb812c3d4fc32bd0e54d75382d6e107c7; ?>
<?php unset($__componentOriginalb812c3d4fc32bd0e54d75382d6e107c7); ?>
<?php endif; ?>
            </div>
        </div>

        
        <button type="button" id="<?php echo e($name); ?>-btn-select-all" class="tt-btn">Seleccionar todo</button>
    </div>

    
    <div id="<?php echo e($name); ?>-editor" class="border border-optional rounded p-3 min-h-[220px] bg-white cursor-text"></div>
    <input type="hidden" id="<?php echo e($name); ?>-input" name="<?php echo e($name); ?>" value="<?php echo e($value); ?>">

    
    <?php $__errorArgs = [$name];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
        <p class="text-red-500 text-sm mt-2 block"><?php echo e($message); ?></p>
    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
</div><?php /**PATH /home/cnllsandbox/public_html/house-contract.cnll-sandbox.com/resources/views/components/controls/tiptap-editor.blade.php ENDPATH**/ ?>