hunk.code_window:   const isOpen = useContext(CollapseContext);
     return (
       <StyledDynamicInput>
         <LazyCodeEditor
           AIAssisted
           additionalDynamicData={props.additionalAutocomplete}
           border={CodeEditorBorder.ALL_SIDE}
           dataTreePath={dataTreePath}
           evaluatedPopUpLabel={label}
           evaluatedValue={evaluatedValue}
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep keep
hunk.after_edit:         AIAssisted={enableAI}
  
hunk.file_path: app/client/src/components/propertyControls/InputTextControl.tsx
hunk.type: replace
file: import { APP_MODE } from "entities/App";
  import urlBuilder from "@appsmith/entities/URLRedirect/URLAssembly";
  import { splitPathPreview } from "utils/helpers";
  
  export const getUrlPreview = (
    pageId: string,
    newPageName: string,
    currentPageName: string,
    newCustomSlug?: string,
    currentCustomSlug?: string,
  ) => {
    let relativePath: string;
  
    newPageName = filterAccentedAndSpecialCharacters(newPageName);
    currentPageName = filterAccentedAndSpecialCharacters(currentPageName);
    newCustomSlug &&
      (newCustomSlug = filterAccentedAndSpecialCharacters(newCustomSlug));
    currentCustomSlug &&
      (currentCustomSlug = filterAccentedAndSpecialCharacters(currentCustomSlug));
  
    // when page name is changed
    // and when custom slug doesn't exist
    if (!newCustomSlug && newPageName !== currentPageName) {
      // show path based on page name
      relativePath = urlBuilder.getPagePathPreview(pageId, newPageName);
    }
    // when custom slug is changed
    else if (newCustomSlug !== currentCustomSlug) {
      if (newCustomSlug) {
        // show custom slug preview
        relativePath = urlBuilder.getCustomSlugPathPreview(pageId, newCustomSlug);
      } else {
        // when custom slug is removed
        // show path based on page name
        relativePath = urlBuilder.getPagePathPreview(pageId, newPageName);
      }
    }
    // when nothing has changed
    else {
      relativePath = urlBuilder.generateBasePath(pageId, APP_MODE.PUBLISHED);
    }
  
    return {
      relativePath,
      splitRelativePath: splitPathPreview(relativePath, newCustomSlug),
    };
  };
  
  export const filterAccentedAndSpecialCharacters = (value: string) => {
    return decodeURI(value)
      .replaceAll(" ", "-")
      .replaceAll(/[^A-Za-z0-9-]/g, "");
  };
  